:root {
  --bg: #f3f6fb;
  --bg-soft: #ecf1f8;
  --ink: #122133;
  --muted: #5a6b7f;
  --line: rgba(18, 33, 51, 0.14);
  --card: rgba(255, 255, 255, 0.86);
  --forest: #1f4f8b;
  --moss: #2f6db3;
  --gold: #c7903a;
  --clay: #8ba1bc;
  --cream: #f4f9ff;
  --shadow: 0 20px 46px rgba(19, 36, 57, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 0%, rgba(47, 109, 179, 0.14), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(139, 161, 188, 0.18), transparent 28%),
    linear-gradient(180deg, #eef3fa 0%, #f6f9fc 34%, #fbfdff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 33, 51, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 33, 51, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 82%);
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 56px;
}

.hero {
  padding: 18px 0 28px;
}

.hero-home {
  padding-top: 8px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 42px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(19, 36, 57, 0.08);
}

.brand {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.topbar-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar-links a,
.footer-links a,
.text-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  transition: color 180ms ease;
}

.topbar-links a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--forest);
}

.hero-grid,
.tool-layout,
.article-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.tool-layout,
.article-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.eyebrow,
.panel-kicker,
.signal-label,
.promo-tag,
.tool-tag,
.breadcrumb {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--forest);
}

.breadcrumb {
  display: inline-block;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.05;
}

h1,
h2 {
  font-family: "IBM Plex Serif", Georgia, serif;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.2rem);
  max-width: 10ch;
  font-weight: 600;
  font-style: italic;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 13ch;
}

h3 {
  font-size: 1.35rem;
}

p,
li {
  line-height: 1.72;
}

.lead,
.section-heading p,
.hero-points,
.metric-card p,
.content-card p,
.promo-card p,
.article-prose p,
.article-prose li,
.tool-copy p,
.faq-list p,
.signup-card p {
  color: var(--muted);
}

.lead {
  max-width: 60ch;
  margin: 20px 0 0;
  font-size: 1.06rem;
}

.compact {
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
button:hover,
button:focus-visible {
  transform: translateY(-2px);
}

.button-primary,
button {
  color: var(--cream);
  background: linear-gradient(135deg, var(--forest), var(--moss));
  box-shadow: 0 14px 28px rgba(31, 79, 139, 0.24);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.hero-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  margin-top: 10px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-panel,
.metric-card,
.content-card,
.tool-panel,
.result-card,
.signal-band,
.promo-card,
.signup-card,
.cta-band,
.site-footer,
.faq-list,
.article-aside-card {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-panel,
.tool-panel,
.signup-card,
.article-aside-card {
  padding: 24px;
  border-radius: 28px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.metric-card span,
.card-meta,
.article-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
}

.accent-card {
  background: linear-gradient(160deg, rgba(31, 79, 139, 0.94), rgba(47, 109, 179, 0.9));
  color: var(--cream);
}

.accent-card span,
.accent-card p {
  color: rgba(248, 244, 235, 0.8);
}

.signal-band,
.monetize-grid,
.content-grid {
  display: grid;
  gap: 18px;
}

.signal-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 20px 24px;
  border-radius: 24px;
  margin-top: 8px;
}

.signal-band strong {
  display: block;
  font-size: 1rem;
}

.section-block {
  padding-top: 72px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  margin-top: 16px;
}

.content-grid,
.monetize-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card,
.promo-card {
  border-radius: 24px;
  padding: 22px;
}

.card-meta,
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.content-card p,
.promo-card p {
  margin: 12px 0 18px;
}

.content-card a,
.promo-card a,
.article-aside-card a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
  padding: 28px;
  border-radius: 28px;
}

.signup-form {
  display: grid;
  gap: 12px;
}

.signup-inline {
  align-self: center;
}

.signup-form label,
.tool-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

input:not([type="checkbox"]),
select {
  width: 100%;
  border: 1px solid rgba(31, 42, 42, 0.16);
  border-radius: 12px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
}

input:not([type="checkbox"]):focus,
select:focus {
  outline: 2px solid rgba(31, 79, 139, 0.2);
  border-color: rgba(31, 79, 139, 0.36);
}

.form-note {
  min-height: 24px;
  margin: 2px 0 0;
  color: var(--forest);
  font-weight: 700;
}

.consent-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--muted);
}

.consent-row a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tool-shell,
.article-shell {
  padding-top: 8px;
}

.tool-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.result-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
}

.result-card strong {
  color: var(--ink);
}

.result-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.result-list li {
  margin-top: 8px;
}

.result-note {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--forest);
  font-weight: 600;
}

.brief-card h4 {
  margin: 14px 0 8px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
}

.tool-copy,
.article-prose,
.article-aside-stack {
  display: grid;
  gap: 22px;
}

.hero,
.section-block,
.site-footer {
  animation: rise-fade 560ms ease both;
}

.hero-panel,
.metric-card,
.content-card,
.promo-card,
.tool-panel,
.signup-card,
.faq-list,
.article-aside-card,
.cta-band,
.site-footer {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-card:hover,
.content-card:hover,
.promo-card:hover,
.article-aside-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 79, 139, 0.24);
  box-shadow: 0 18px 36px rgba(19, 36, 57, 0.14);
}

.tool-copy section,
.article-prose section {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(31, 42, 42, 0.08);
}

.tool-copy section:last-child,
.article-prose section:last-child {
  border-bottom: 0;
}

.tool-copy ul,
.article-prose ul {
  padding-left: 18px;
  color: var(--muted);
}

.faq-list {
  padding: 22px;
  border-radius: 24px;
}

.faq-list h3 {
  margin-bottom: 14px;
}

.faq-item + .faq-item {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(31, 42, 42, 0.08);
}

.article-meta {
  justify-content: flex-start;
  gap: 18px;
  margin: 14px 0 0;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 72px;
  padding: 24px;
  border-radius: 24px;
}

.site-footer p {
  margin: 12px 0 0;
  max-width: 42ch;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 25, 39, 0.96);
  color: #eef5ff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-actions .button-secondary {
  border-color: rgba(238, 245, 255, 0.35);
  color: #eef5ff;
  background: transparent;
}

@keyframes rise-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .hero-grid,
  .tool-layout,
  .article-layout,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .content-grid,
  .monetize-grid,
  .signal-band {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .topbar,
  .topbar-links,
  .hero-actions,
  .footer-links,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-grid,
  .content-grid,
  .monetize-grid,
  .signal-band {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .tool-panel,
  .signup-card,
  .article-aside-card,
  .cta-band {
    border-radius: 22px;
  }

  .button,
  button {
    width: 100%;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    position: static;
    top: auto;
  }

  h1,
  h2 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
