/* ============================================================
   SEOryon — AI Citability Grader (cite.seoryon.com).
   Reuses the LOCKED brand system v4. Primary: #4A35E8 indigo.
   Sibling of score.seoryon.com / roi.seoryon.com / inspect.seoryon.com
   — same tokens, same fonts, same card idiom, same gradient
   (Oryon, AI/result output only).
   ============================================================ */
:root {
  --brand-primary: #4A35E8;
  --brand-hover:   #3B28CB;
  --brand-pressed: #3525BF;
  --brand-light:   #9A88FF;
  --brand-tint:    #F4F2FF;

  --ink-primary:   #121325;
  --ink-secondary: #52586E;
  --ink-muted:     #7B8096;
  --ink-on-brand:  #FFFFFF;

  --surface-page:      #FFFFFF;
  --surface-section:   #F8F8FC;
  --surface-card:      #FFFFFF;
  --surface-soft-card: #FAFAFE;
  --surface-border:    #E7E4F2;

  --success-bg: #F4FBF6;
  --success-text: #0F7A4A;
  --success-border: #BFE5CB;
  --warning-bg: #FFF4D6;
  --warning-text: #7C4A09;
  --warning-border: #FCD9A1;
  --fail-bg: #FEF3F3;
  --fail-text: #B4231F;
  --fail-border: #F6C9C6;

  /* Oryon gradient — Oryon/AI/result output ONLY */
  --oryon-gradient: linear-gradient(135deg, #9A88FF 0%, #6D5AF6 42%, #4A35E8 100%);

  --shadow-card: 0 12px 30px rgba(18, 19, 37, 0.06);
  --shadow-brand-soft: 0 10px 24px rgba(74, 53, 232, 0.10);
  --shadow-brand: 0 8px 18px rgba(74, 53, 232, 0.16);
}

/* ============================================================
   Base — white-first
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden; /* belt-and-braces against any tiny mobile overflow */
}
a { color: var(--brand-primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--brand-hover); }
.brand-text { color: var(--brand-primary); }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px; max-width: 1240px; margin: 0 auto;
  border-bottom: 1px solid var(--surface-border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 30px; width: auto; display: block; }

.navlinks { display: flex; gap: 10px; align-items: center; }
.navlinks a {
  font-family: 'Geist', sans-serif; font-weight: 500; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.navlinks a.nav-secondary {
  padding: 8px 13px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: var(--surface-card);
  color: var(--brand-hover);
  transition: border-color 0.15s, background-color 0.15s;
}
.navlinks a.nav-secondary:hover {
  border-color: var(--brand-primary);
  background: var(--brand-tint);
  color: var(--brand-hover);
}
.navlinks a.cta-link {
  background: var(--brand-primary);
  color: var(--ink-on-brand);
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  transition: background-color 0.15s;
}
.navlinks a.cta-link:hover { background: var(--brand-hover); color: var(--ink-on-brand); }
.navlinks a.cta-link:active { background: var(--brand-pressed); }

/* ============================================================
   Main + hero
   ============================================================ */
main { max-width: 1240px; margin: 0 auto; padding: 0 32px 96px; }

.hero { padding: 56px 0 8px; }

/* Two-column hero — headline/sub on the left, product preview on the right.
   Mirrors score / inspect / roi. Stacks to a single column at ≤920px. */
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 48px;
}
.hero-content { min-width: 0; }
.hero-visual {
  margin: 0; min-width: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual img {
  width: 100%; height: auto; display: block;
  /* aspect-ratio reserves the box so the hero still lays out cleanly even if
     the image is briefly missing; object-fit guards against any future swap. */
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  border-radius: 14px;
  background: var(--brand-tint);
  box-shadow: 0 18px 40px rgba(74, 53, 232, 0.10),
              0 6px 14px rgba(18, 19, 37, 0.05);
}

.hero-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', monospace; font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success-text);
  box-shadow: 0 0 0 3px rgba(15, 122, 74, 0.15);
}
.status-text { letter-spacing: 0.04em; }

h1 {
  font-family: 'Geist', sans-serif; font-weight: 800;
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.05; letter-spacing: -0.035em;
  color: var(--ink-primary);
  margin-bottom: 18px;
  max-width: 18ch;
}
.sub {
  font-size: 18px; line-height: 1.55; color: var(--ink-secondary);
  max-width: 60ch; margin-bottom: 0;
}
.microcopy { font-size: 13px; color: var(--ink-muted); margin-top: 12px; }

/* ============================================================
   Grader — input card + live result card
   ============================================================ */
.calc { margin-top: 72px; }
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}
.calc-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.card-kicker {
  font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-primary);
  margin-bottom: 18px;
}

/* Inputs */
.field { margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 0; }
.field > label,
.field-label-static {
  display: block;
  font-family: 'Geist', sans-serif; font-weight: 600; font-size: 13.5px;
  color: var(--ink-primary); margin-bottom: 7px; letter-spacing: -0.01em;
}
.field > label .opt { color: var(--ink-muted); font-weight: 500; }
.input-card input[type="text"],
.input-card textarea {
  width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px;
  color: var(--ink-primary);
  padding: 12px 14px;
  border: 1.5px solid var(--surface-border);
  background: var(--surface-card);
  border-radius: 10px;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input-card textarea {
  resize: vertical; min-height: 220px; line-height: 1.5;
}
.input-card input[type="text"]::placeholder,
.input-card textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.input-card input[type="text"]:focus,
.input-card textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(74, 53, 232, 0.10);
}
.field-help { font-size: 12.5px; line-height: 1.5; color: var(--ink-muted); margin-top: 6px; }

.field-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 8px;
}
.wordcount {
  font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--ink-muted);
}
.wordcount.warn { color: var(--warning-text); }
.linkbtn {
  font-family: 'Geist', sans-serif; font-weight: 600; font-size: 13px;
  color: var(--brand-primary); background: none; border: none; cursor: pointer;
  padding: 0; transition: color 0.15s;
}
.linkbtn:hover { color: var(--brand-hover); }

.assumptions-note {
  font-size: 12px; line-height: 1.5; color: var(--ink-muted);
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--surface-border);
}
.assumptions-note strong { color: var(--ink-secondary); font-weight: 700; }

/* ----- Result card ----- */
.result-card { display: flex; flex-direction: column; gap: 0; }

.res-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 320px; color: var(--ink-muted);
  gap: 12px;
}
.res-empty .res-empty-mark {
  font-family: 'Geist', sans-serif; font-weight: 800; font-size: 40px;
  background: var(--oryon-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.res-empty p { font-size: 14px; line-height: 1.5; max-width: 34ch; }
.res-empty .res-empty-sub { font-size: 12.5px; color: var(--ink-muted); max-width: 34ch; }

/* Score header — big number + verdict */
.res-kicker {
  font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: 10px;
}
.score-head {
  display: flex; align-items: center; gap: 20px;
}
.score-ring {
  position: relative; width: 108px; height: 108px; flex: none;
}
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .ring-bg { fill: none; stroke: var(--surface-border); stroke-width: 9; }
.score-ring .ring-fg {
  fill: none; stroke: url(#scoreGrad); stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}
.score-ring .ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Geist', sans-serif; font-weight: 800; font-size: 32px;
  letter-spacing: -0.03em; color: var(--ink-primary);
}
.score-verdict { min-width: 0; }
.score-verdict .verdict-label {
  font-family: 'Geist', sans-serif; font-weight: 800; font-size: 22px;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 4px;
}
.verdict-good .verdict-label { color: var(--success-text); }
.verdict-mid  .verdict-label { color: var(--warning-text); }
.verdict-bad  .verdict-label { color: var(--fail-text); }
.score-verdict .verdict-sub {
  font-size: 13.5px; line-height: 1.5; color: var(--ink-secondary);
}

.res-divider { height: 1px; background: var(--surface-border); margin: 20px 0; }

.res-block-title {
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--ink-primary); margin-bottom: 12px; letter-spacing: -0.01em;
}

/* Per-factor breakdown */
.factors { display: grid; gap: 8px; }
.factor {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start;
  background: var(--surface-soft-card);
  border: 1px solid var(--surface-border);
  border-radius: 12px; padding: 12px 14px;
}
.factor-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex: none; margin-top: 1px;
  font-family: 'Geist', sans-serif;
}
.factor.pass .factor-icon { background: var(--success-bg); color: var(--success-text); border: 1px solid var(--success-border); }
.factor.warn .factor-icon { background: var(--warning-bg); color: var(--warning-text); border: 1px solid var(--warning-border); }
.factor.fail .factor-icon { background: var(--fail-bg); color: var(--fail-text); border: 1px solid var(--fail-border); }
.factor-body { min-width: 0; }
.factor-name {
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--ink-primary); letter-spacing: -0.01em;
}
.factor-why { font-size: 12.5px; line-height: 1.5; color: var(--ink-muted); margin-top: 2px; }
.factor-score {
  font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 600;
  color: var(--ink-secondary); white-space: nowrap; text-align: right;
}
.factor-tag {
  display: inline-block; font-family: 'Geist Mono', monospace; font-size: 10px;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 5px; margin-top: 4px;
}
.factor.pass .factor-tag { background: var(--success-bg); color: var(--success-text); }
.factor.warn .factor-tag { background: var(--warning-bg); color: var(--warning-text); }
.factor.fail .factor-tag { background: var(--fail-bg); color: var(--fail-text); }

/* Fix list — the value */
.fixes { display: grid; gap: 10px; }
.fix {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  background: var(--surface-soft-card);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--brand-primary);
  border-radius: 12px; padding: 14px 16px;
}
.fix-rank {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: var(--brand-tint); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 12px; margin-top: 1px;
}
.fix-body { min-width: 0; }
.fix-title {
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--ink-primary); letter-spacing: -0.01em; margin-bottom: 3px;
}
.fix-text { font-size: 13px; line-height: 1.55; color: var(--ink-secondary); }
.fix-text strong { color: var(--ink-primary); font-weight: 700; }
.fixes-none {
  background: var(--success-bg); border: 1px solid var(--success-border);
  border-radius: 12px; padding: 16px;
  font-size: 13.5px; line-height: 1.55; color: var(--success-text);
}

.res-disclaimer {
  font-size: 12px; line-height: 1.5; color: var(--ink-muted);
  margin-top: 18px;
}

.res-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  background: var(--brand-primary);
  color: var(--ink-on-brand);
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 15px;
  padding: 14px 20px; border-radius: 10px; margin-top: 18px;
  transition: background-color 0.15s, transform 0.05s;
  text-align: center;
}
.res-cta:hover { background: var(--brand-hover); color: var(--ink-on-brand); }
.res-cta:active { background: var(--brand-pressed); transform: translateY(1px); }
.res-cta-fine {
  font-size: 11.5px; line-height: 1.5; color: var(--ink-muted);
  text-align: center; margin-top: 10px;
}

/* Privacy line under the grader */
.calc-privacy {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 13px; color: var(--ink-muted); margin-top: 20px; text-align: center;
}

/* ============================================================
   Cross-link (score vs cite — complementary companions)
   ============================================================ */
.crosslink { margin-top: 28px; }
.crosslink-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--surface-section);
  border: 1px solid var(--surface-border);
  border-radius: 14px; padding: 20px 24px;
}
.crosslink-text { min-width: 0; }
.crosslink-kicker {
  display: block;
  font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 11px;
  letter-spacing: 0.16em; color: var(--brand-primary); margin-bottom: 6px;
}
.crosslink-text p { font-size: 14.5px; line-height: 1.55; color: var(--ink-secondary); max-width: 62ch; }
.crosslink-text strong { color: var(--ink-primary); font-weight: 700; }
.crosslink-cta {
  flex: none;
  font-family: 'Geist', sans-serif; font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 10px;
  border: 1px solid var(--surface-border); background: var(--surface-card);
  color: var(--brand-hover); transition: border-color 0.15s, background-color 0.15s;
}
.crosslink-cta:hover { border-color: var(--brand-primary); background: var(--brand-tint); color: var(--brand-hover); }

/* ============================================================
   How it works
   ============================================================ */
.how { margin-top: 88px; }
.how h2 {
  font-family: 'Geist', sans-serif; font-weight: 800; font-size: 36px;
  letter-spacing: -0.03em; color: var(--ink-primary); margin-bottom: 24px;
}
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 24px;
}
.card .num {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand-tint); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 16px;
  margin-bottom: 14px;
}
.card h3 {
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 18px;
  margin-bottom: 8px; letter-spacing: -0.02em; color: var(--ink-primary);
}
.card p { font-size: 14px; color: var(--ink-secondary); line-height: 1.55; }

/* ============================================================
   Method / transparency section (reuses .learn idiom from score/roi)
   ============================================================ */
.learn { margin-top: 88px; max-width: 100%; }
.learn-kicker {
  display: inline-block;
  font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; color: var(--brand-primary);
  margin-bottom: 14px;
}
.learn h2 {
  font-family: 'Geist', sans-serif; font-weight: 800; font-size: 36px;
  letter-spacing: -0.03em; color: var(--ink-primary); margin-bottom: 16px;
  max-width: 22ch;
}
.learn-lead {
  font-size: 17px; line-height: 1.6; color: var(--ink-secondary);
  max-width: 68ch; margin-bottom: 32px;
}
.learn-lead em { color: var(--ink-primary); font-style: normal; font-weight: 600; }
.learn-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.learn-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 22px 24px;
}
.learn-card h3 {
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 17px;
  letter-spacing: -0.02em; color: var(--ink-primary); margin-bottom: 8px;
}
.learn-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-secondary); }
.method-note {
  font-size: 13px; line-height: 1.6; color: var(--ink-muted);
  max-width: 78ch; margin-top: 24px;
}

/* ============================================================
   Upsell card — white-first, small gradient tag only
   ============================================================ */
.upsell { margin-top: 88px; }
.upsell-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 40px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px;
  box-shadow: var(--shadow-card);
}
.upsell-left { display: flex; flex-direction: column; min-width: 0; }
.upsell-right {
  border-left: 1px solid var(--surface-border);
  padding-left: 32px;
  display: flex; flex-direction: column; gap: 20px; justify-content: center;
}
.oryon-tag {
  display: inline-block; align-self: flex-start;
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; color: var(--ink-on-brand);
  background: var(--oryon-gradient);
  padding: 5px 10px; border-radius: 6px;
  margin-bottom: 18px;
}
.upsell h2 {
  font-family: 'Geist', sans-serif; font-weight: 800; font-size: 32px;
  letter-spacing: -0.03em; color: var(--ink-primary);
  line-height: 1.15; margin-bottom: 14px;
}
.upsell p {
  font-size: 16px; line-height: 1.55; color: var(--ink-secondary);
  margin-bottom: 22px;
}
.upsell .microcopy { color: var(--ink-muted); margin-top: 12px; }
.bigcta {
  display: inline-flex; align-items: center; align-self: flex-start;
  background: var(--brand-primary);
  color: var(--ink-on-brand);
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 10px;
  transition: background-color 0.15s;
}
.bigcta:hover { background: var(--brand-hover); color: var(--ink-on-brand); }
.bigcta:active { background: var(--brand-pressed); }
.upsell-benefit { display: flex; flex-direction: column; gap: 4px; }
.upsell-benefit h4 {
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; color: var(--brand-primary);
}
.upsell-benefit p {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px;
  color: var(--ink-secondary); line-height: 1.5; margin: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 96px; }
.faq h2 {
  font-family: 'Geist', sans-serif; font-weight: 800; font-size: 36px;
  letter-spacing: -0.03em; color: var(--ink-primary); margin-bottom: 28px;
}
.faq-group { max-width: 820px; }
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 4px 20px;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  font-family: 'Geist', sans-serif; font-weight: 600; font-size: 16px;
  color: var(--ink-primary);
  padding: 16px 0; position: relative; padding-right: 28px;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-hover); }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: 'Geist Mono', monospace; font-size: 20px; font-weight: 500;
  color: var(--brand-primary); transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  font-size: 15px; line-height: 1.6; color: var(--ink-secondary);
  padding: 0 0 18px; max-width: 70ch;
}
.faq-item p strong { color: var(--ink-primary); font-weight: 700; }
.faq-item p em { color: var(--ink-primary); font-style: italic; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  margin-top: 72px; padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  color: var(--ink-muted); font-size: 12.5px; text-align: center;
}
footer a { color: var(--ink-secondary); }
footer a:hover { color: var(--brand-hover); }
footer .wordmark.sm {
  display: inline-block; vertical-align: middle;
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: 13px;
  color: var(--ink-primary);
}
footer .microcopy { max-width: 70ch; margin: 10px auto 0; }

/* ============================================================
   Language switcher
   ============================================================ */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--surface-border);
  border-radius: 10px; overflow: hidden; background: var(--surface-card);
}
.lang-btn {
  font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink-muted);
  background: transparent; border: none; cursor: pointer;
  padding: 7px 10px; transition: background-color 0.15s, color 0.15s;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--surface-border); }
.lang-btn:hover { color: var(--brand-hover); background: var(--brand-tint); }
.lang-btn.active { color: var(--ink-on-brand); background: var(--brand-primary); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: 2; }
  .hero-visual img { max-width: 640px; margin: 0 auto; }
  .calc-grid { grid-template-columns: 1fr; }
  .crosslink-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .crosslink-cta { align-self: stretch; text-align: center; }
  .upsell-card { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .upsell-right {
    border-left: none; border-top: 1px solid var(--surface-border);
    padding-left: 0; padding-top: 24px;
  }
  .learn-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar { padding: 14px 18px; }
  main { padding: 0 18px 72px; }
  .hero { padding: 40px 0 4px; }
  .calc { margin-top: 48px; }
  .grid3 { grid-template-columns: 1fr; }
  .how h2, .faq h2, .learn h2 { font-size: 28px; }
  .upsell h2 { font-size: 26px; }
  .calc-card { padding: 20px; }
  .navlinks { gap: 6px; }
  .navlinks a.cta-link { padding: 8px 12px; font-size: 13px; }
  .lang-btn { padding: 6px 8px; font-size: 11px; }
  /* keep the two utility nav links out of the way on the smallest screens */
  .navlinks a[data-i18n="nav_how"], .navlinks a[data-i18n="nav_faq"] { display: none; }
}
@media (max-width: 400px) {
  .score-head { gap: 14px; }
  .score-ring { width: 92px; height: 92px; }
  .score-ring .ring-num { font-size: 27px; }
  .score-verdict .verdict-label { font-size: 19px; }
}
