/* ==========================================================================
   Form 5472 Tool — design system
   Hand-written, mobile-first, dependency-free.
   Palette: deep green (authority/money) + gold accent + warm slate neutrals.
   Breakpoints: 480 / 768 / 1024
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --green-900: #0b2a20;
  --green-800: #123a2c;
  --green-700: #17513c;
  --green-600: #1d6a4d;
  --green-500: #248a63;
  --green-100: #e3f1ea;
  --green-050: #f2f8f5;

  --gold-700: #8a6316;
  --gold-600: #b8860b;
  --gold-500: #d9a520;
  --gold-100: #fbf1d8;
  --gold-050: #fdf8ec;

  --ink-900: #14181b;
  --ink-800: #1f2529;
  --ink-700: #333c42;
  --ink-600: #4c565d;
  --ink-500: #6b767e;
  --ink-300: #aeb7bd;
  --ink-200: #d7dde1;
  --ink-100: #eaeef0;
  --ink-050: #f6f8f9;
  --white: #ffffff;

  --red-700: #9b2226;
  --red-100: #fdeaea;
  --blue-700: #1c4f7c;
  --blue-100: #e8f1f8;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --wrap-narrow: 760px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --sh-1: 0 1px 2px rgba(11, 42, 32, 0.06), 0 1px 3px rgba(11, 42, 32, 0.06);
  --sh-2: 0 4px 12px rgba(11, 42, 32, 0.08), 0 1px 3px rgba(11, 42, 32, 0.06);
  --sh-3: 0 12px 32px rgba(11, 42, 32, 0.12), 0 2px 8px rgba(11, 42, 32, 0.06);

  --step: 0.9375rem; /* 15px base body on mobile */
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step);
  line-height: 1.68;
  color: var(--ink-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  line-height: 1.22;
  color: var(--green-900);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.42rem; margin-top: 2.1em; }
h3 { font-size: 1.12rem; margin-top: 1.7em; }
h4 { font-size: 1rem; margin-top: 1.4em; }

p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: 0.45em; }
li > ul, li > ol { margin-top: 0.45em; }

a { color: var(--green-600); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--green-800); }

strong, b { font-weight: 650; color: var(--ink-900); }
small { font-size: 0.85em; }
hr { border: 0; border-top: 1px solid var(--ink-200); margin: 2.4em 0; }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--ink-050); padding: 0.12em 0.35em; border-radius: 4px; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--green-800); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); text-decoration: none; transition: top 0.15s;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding: 44px 0; }
.section-tight { padding: 28px 0; }
.section-alt { background: var(--ink-050); border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); }
.section-green { background: var(--green-050); border-top: 1px solid var(--green-100); border-bottom: 1px solid var(--green-100); }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

.section-head { max-width: 660px; margin: 0 auto 30px; text-align: center; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--ink-600); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 10px;
}

.lede { font-size: 1.06rem; color: var(--ink-700); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--ink-100);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 62px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 750; font-size: 1.02rem; color: var(--green-900);
  text-decoration: none; letter-spacing: -0.02em; flex-shrink: 0;
}
.brand:hover { color: var(--green-700); }
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.brand-sub { display: block; font-size: 0.63rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); margin-top: 1px; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--r-sm); padding: 8px 11px;
  font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink-700);
  cursor: pointer;
}
.nav-toggle svg { width: 16px; height: 16px; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--ink-200);
  box-shadow: var(--sh-2); padding: 10px 18px 18px;
  max-height: calc(100vh - 62px); overflow-y: auto;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: 11px 4px; text-decoration: none;
  color: var(--ink-800); font-weight: 550; font-size: 0.95rem;
  border-bottom: 1px solid var(--ink-100);
}
.site-nav a:hover { color: var(--green-600); }
.site-nav a[aria-current="page"] { color: var(--green-700); font-weight: 700; }
.nav-group-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-500);
  padding: 16px 4px 5px;
}
.nav-cta-wrap { padding-top: 14px; }
.nav-cta-wrap .btn { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 0.97rem; font-weight: 650;
  line-height: 1.2; text-align: center; text-decoration: none;
  padding: 13px 22px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
  min-height: 46px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(180deg, var(--green-600), var(--green-700));
  color: #fff; border-color: var(--green-700); box-shadow: var(--sh-2);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--green-500), var(--green-600)); color: #fff; box-shadow: var(--sh-3); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-500), var(--gold-600));
  color: #22190a; border-color: var(--gold-600); box-shadow: var(--sh-2);
}
.btn-gold:hover { color: #22190a; box-shadow: var(--sh-3); filter: brightness(1.04); }

.btn-outline { background: var(--white); color: var(--green-700); border-color: var(--ink-200); }
.btn-outline:hover { border-color: var(--green-500); color: var(--green-800); background: var(--green-050); }

.btn-ghost { background: transparent; color: var(--ink-700); border-color: transparent; padding: 10px 12px; text-decoration: underline; }
.btn-ghost:hover { color: var(--green-700); background: var(--ink-050); }

.btn-lg { font-size: 1.05rem; padding: 16px 28px; min-height: 54px; }
.btn-sm { font-size: 0.87rem; padding: 9px 15px; min-height: 38px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.btn-row { display: flex; flex-direction: column; gap: 10px; }
.btn-note { font-size: 0.83rem; color: var(--ink-500); margin: 10px 0 0; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 460px at 82% -8%, rgba(217, 165, 32, 0.16), transparent 62%),
    linear-gradient(168deg, var(--green-900), var(--green-800) 58%, #0e3327);
  color: #eaf3ee;
  padding: 34px 0 40px;
  position: relative; overflow: hidden;
}
.hero h1 { color: #fff; font-size: 1.95rem; margin-bottom: 14px; }
.hero .eyebrow { color: var(--gold-500); }
.hero p { color: #c9dcd2; }
/* Bold words inherit dark ink globally — override inside dark sections */
.hero strong, .hero b, .hero-lede strong { color: #fff; }
.hero-lede { font-size: 1.05rem; max-width: 44ch; }
.hero-grid { display: grid; gap: 30px; align-items: center; }
.hero .btn-row { margin-top: 22px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 22px 0 0; padding: 0; list-style: none;
  font-size: 0.86rem; color: #b6cdc1;
}
.hero-trust li { display: flex; align-items: center; gap: 7px; margin: 0; }
.hero-trust svg { width: 15px; height: 15px; color: var(--gold-500); flex-shrink: 0; }

/* Urgency / deadline strip */
.urgency {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(217, 165, 32, 0.13);
  border: 1px solid rgba(217, 165, 32, 0.4);
  color: #f3e2b8;
  border-radius: 999px; padding: 7px 15px;
  font-size: 0.84rem; font-weight: 600; margin-bottom: 18px;
}
.urgency svg { width: 15px; height: 15px; color: var(--gold-500); }
.urgency b { color: #fff; font-weight: 700; }
.urgency-light {
  background: var(--gold-050); border-color: var(--gold-100);
  color: var(--gold-700);
}
.urgency-light b { color: var(--ink-900); }

/* ---------- Document preview mockup (CSS/SVG only) ---------- */
.doc-mock {
  background: #fff; border-radius: var(--r-md);
  box-shadow: var(--sh-3); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: rotate(-0.5deg);
}
.doc-mock-bar {
  display: flex; align-items: center; gap: 6px;
  background: var(--ink-050); border-bottom: 1px solid var(--ink-200);
  padding: 8px 12px; font-size: 0.7rem; color: var(--ink-500); font-weight: 600;
}
.doc-mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-300); }
.doc-mock-body { padding: 16px 18px 22px; position: relative; }

.docprev {
  font-family: var(--font-sans);
  color: var(--ink-800);
  font-size: 0.78rem;
  line-height: 1.4;
}
.docprev-head { display: flex; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--ink-800); padding-bottom: 7px; margin-bottom: 10px; }
.docprev-title { font-weight: 800; font-size: 0.9rem; color: var(--ink-900); letter-spacing: -0.01em; }
.docprev-sub { font-size: 0.66rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.05em; }
.docprev-rows { display: grid; gap: 0; }
.docprev-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; border-bottom: 1px solid var(--ink-100); padding: 6px 0; }
.docprev-k { color: var(--ink-500); font-size: 0.72rem; }
.docprev-v { font-weight: 600; color: var(--ink-900); font-family: var(--font-mono); font-size: 0.72rem; word-break: break-word; }
.docprev-part {
  background: var(--ink-800); color: #fff; font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; padding: 4px 8px;
  margin: 12px 0 6px; border-radius: 3px;
}
.docprev-check { display: inline-block; width: 11px; height: 11px; border: 1px solid var(--ink-700); text-align: center; line-height: 9px; font-size: 0.6rem; margin-right: 5px; vertical-align: -1px; }
.docprev-check.on { background: var(--ink-800); color: #fff; }

/* Watermark: dense diagonal tile, visible but readable */
.wm { position: relative; }
.wm::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    -32deg,
    rgba(29, 106, 77, 0.11) 0 118px,
    rgba(29, 106, 77, 0) 118px 236px
  );
}
.wm-label {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--gold-100); color: var(--gold-700);
  border: 1px solid var(--gold-500);
  font-size: 0.63rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.wm-text {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: grid; place-items: center;
}
/* Tiled variant used by the generated preview: many rotated labels so any
   cropped screenshot still carries the marking. */
.wm-text.wm-tile {
  display: grid; grid-template-columns: repeat(2, 1fr);
  align-content: space-evenly; justify-items: center; overflow: hidden;
  transform: rotate(-24deg) scale(1.35);
}
.wm-text.wm-tile span {
  transform: none; font-size: clamp(0.9rem, 3.2vw, 1.35rem);
  color: rgba(29, 106, 77, 0.16); padding: 6px 0;
}
/* Unpaid preview: block text selection, copy, drag and right-click; hide on print. */
.wm-locked, .wm-locked * {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.wm-locked img { pointer-events: none; }
@media print {
  .wm-locked .docprev { visibility: hidden; }
  .wm-locked::before {
    content: "Unpaid draft preview — printing is disabled. Purchase unlocks the print-ready PDF files.";
    display: block; visibility: visible; padding: 20px; font-weight: 700;
  }
}
.wm-text span {
  transform: rotate(-24deg);
  font-size: clamp(1.1rem, 5vw, 2rem); font-weight: 800; letter-spacing: 0.16em;
  color: rgba(29, 106, 77, 0.13); text-transform: uppercase; white-space: nowrap;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--r-md); padding: 20px; box-shadow: var(--sh-1);
}
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.grid { display: grid; gap: 16px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }

.feature-card { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-md); padding: 20px; }
.feature-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; margin-bottom: 13px;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 1.02rem; margin: 0 0 7px; }
.feature-card p { font-size: 0.92rem; color: var(--ink-600); margin: 0; }

/* Topic / hub cards */
.topic-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--white); border: 1px solid var(--ink-200);
  border-left: 3px solid var(--green-500);
  border-radius: var(--r-sm); padding: 16px 17px;
  text-decoration: none; color: inherit; box-shadow: var(--sh-1);
  transition: box-shadow 0.15s, transform 0.12s, border-color 0.15s;
}
.topic-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-left-color: var(--gold-500); color: inherit; }
.topic-card strong { font-size: 0.99rem; color: var(--green-800); }
.topic-card span { font-size: 0.88rem; color: var(--ink-600); line-height: 1.5; }
.topic-card em { font-style: normal; font-size: 0.76rem; font-weight: 700; color: var(--gold-700); text-transform: uppercase; letter-spacing: 0.05em; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-700); color: #fff;
  font-weight: 700; font-size: 0.92rem;
  display: grid; place-items: center;
}
.steps strong { display: block; margin-bottom: 2px; color: var(--green-900); }
.steps p { margin: 0; font-size: 0.93rem; color: var(--ink-600); }

/* ---------- TL;DR box ---------- */
.tldr-box {
  background: var(--green-050);
  border: 1px solid var(--green-100);
  border-left: 4px solid var(--green-600);
  border-radius: var(--r-sm);
  padding: 17px 19px; margin: 0 0 26px;
}
.tldr-box h2, .tldr-box h3, .tldr-box p.tldr-title {
  margin: 0 0 9px; font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-700);
}
.tldr-box ul { margin: 0; padding-left: 1.15em; }
.tldr-box li { font-size: 0.95rem; }
.tldr-box > :last-child { margin-bottom: 0; }

/* ---------- Callouts ---------- */
.callout {
  border-radius: var(--r-sm); padding: 15px 17px; margin: 20px 0;
  border: 1px solid var(--ink-200); border-left: 4px solid var(--ink-500);
  background: var(--ink-050); font-size: 0.94rem;
}
.callout > :last-child { margin-bottom: 0; }
.callout-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 6px; color: var(--ink-900); }
.callout-title svg { width: 17px; height: 17px; flex-shrink: 0; }

.callout-warn { background: var(--red-100); border-color: #f3cfcf; border-left-color: var(--red-700); }
.callout-warn .callout-title { color: var(--red-700); }
.callout-info { background: var(--blue-100); border-color: #cfe0ee; border-left-color: var(--blue-700); }
.callout-info .callout-title { color: var(--blue-700); }
.callout-good { background: var(--green-050); border-color: var(--green-100); border-left-color: var(--green-600); }
.callout-good .callout-title { color: var(--green-700); }
.callout-note { background: var(--gold-050); border-color: var(--gold-100); border-left-color: var(--gold-600); }
.callout-note .callout-title { color: var(--gold-700); }

.info-note {
  font-size: 0.88rem; color: var(--ink-700); line-height: 1.55;
  background: var(--ink-050); border: 1px solid var(--ink-100);
  border-radius: var(--r-sm); padding: 12px 14px; margin: 18px 0;
}
.info-note > :last-child { margin-bottom: 0; }

/* Scope & limitations block */
.scope {
  margin: 34px 0 0; padding: 16px 18px;
  background: var(--ink-050); border: 1px solid var(--ink-200);
  border-radius: var(--r-sm); font-size: 0.88rem; color: var(--ink-600);
}
.scope h2, .scope h3 {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-700); margin: 0 0 8px;
}
.scope > :last-child { margin-bottom: 0; }
.scope ul { padding-left: 1.15em; margin-bottom: 0; }

/* ---------- read-more (collapsed depth) ---------- */
.read-more {
  border: 1px solid var(--ink-200); border-radius: var(--r-sm);
  margin: 20px 0; background: var(--white); overflow: hidden;
}
.read-more > summary {
  cursor: pointer; padding: 14px 17px; list-style: none;
  font-weight: 650; color: var(--green-800); font-size: 0.96rem;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink-050);
}
.read-more > summary::-webkit-details-marker { display: none; }
.read-more > summary::after {
  content: ""; width: 9px; height: 9px; flex-shrink: 0;
  border-right: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600);
  transform: rotate(45deg); transition: transform 0.2s; margin-top: -3px;
}
.read-more[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.read-more[open] > summary { border-bottom: 1px solid var(--ink-200); }
.read-more-body { padding: 4px 17px 17px; }
.read-more-body > :first-child { margin-top: 1em; }
.read-more-body > :last-child { margin-bottom: 0; }
.read-more-body h3:first-child, .read-more-body h4:first-child { margin-top: 0.8em; }

/* ---------- FAQ ---------- */
.faq-list { margin: 22px 0; }
.faq-item {
  border: 1px solid var(--ink-200); border-radius: var(--r-sm);
  margin-bottom: 10px; background: var(--white);
}
.faq-item > summary {
  cursor: pointer; list-style: none; padding: 15px 17px;
  font-weight: 650; color: var(--green-900); font-size: 0.98rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: ""; width: 9px; height: 9px; flex-shrink: 0; margin-top: 5px;
  border-right: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600);
  transform: rotate(45deg); transition: transform 0.2s;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-answer { padding: 0 17px 16px; font-size: 0.94rem; color: var(--ink-700); }
.faq-answer > :last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; border-radius: var(--r-sm); }
.swipe-hint { font-size: 0.78rem; color: var(--ink-500); margin: -12px 0 16px; display: flex; align-items: center; gap: 6px; }
.swipe-hint svg { width: 14px; height: 14px; }

table.compare-table, table.data-table {
  width: 100%; border-collapse: collapse; font-size: 0.88rem;
  background: var(--white); min-width: 540px;
}
.compare-table th, .compare-table td, .data-table th, .data-table td {
  border: 1px solid var(--ink-200); padding: 11px 13px; text-align: left; vertical-align: top;
}
.compare-table thead th, .data-table thead th {
  background: var(--green-800); color: #fff; font-weight: 650;
  font-size: 0.82rem; letter-spacing: 0.01em;
}
.compare-table tbody tr:nth-child(even), .data-table tbody tr:nth-child(even) { background: var(--ink-050); }
.compare-table tbody th {
  background: var(--white); font-weight: 650; color: var(--green-900);
  position: sticky; left: 0; z-index: 1; min-width: 150px;
}
.compare-table tbody tr:nth-child(even) th { background: var(--ink-050); }
.col-highlight { background: var(--green-050) !important; }
.yes { color: var(--green-600); font-weight: 700; }
.no { color: var(--red-700); font-weight: 700; }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--white); border: 2px solid var(--green-600);
  border-radius: var(--r-lg); padding: 26px 22px;
  box-shadow: var(--sh-3); max-width: 460px; margin: 0 auto; position: relative;
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500); color: #22190a;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 6px 0 4px; }
.price-amount .num { font-size: 3rem; font-weight: 800; color: var(--green-900); letter-spacing: -0.03em; line-height: 1; }
.price-amount .cur { font-size: 1.3rem; font-weight: 700; color: var(--green-900); }
.price-amount .num small { font-size: 1.4rem; font-weight: 700; letter-spacing: 0; vertical-align: baseline; }
.price-amount .price-was { font-size: 1.25rem; font-weight: 600; color: var(--ink-500); margin-right: 6px; }
.price-amount .price-was s { text-decoration-thickness: 2px; text-decoration-color: var(--red-700); }
.price-badge-promo { background: var(--red-700); color: #fff; }
s[data-cfg="REGULAR_PRICE_DISPLAY"] { color: var(--ink-500); font-weight: 500; }
.hero s[data-cfg="REGULAR_PRICE_DISPLAY"], .cta-band s[data-cfg="REGULAR_PRICE_DISPLAY"] { color: #9fbdaf; }

/* Paywall price line + activation-key form */
.paywall-price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.paywall-price s { font-size: 1.1rem; color: var(--ink-500); }
.paywall-price strong { font-size: 2rem; color: var(--green-900); letter-spacing: -0.02em; }
.key-form { margin: 26px auto 0; max-width: 520px; text-align: left; border-top: 1px dashed var(--ink-200); padding-top: 20px; }
.key-form label { display: block; font-weight: 700; color: var(--green-900); margin-bottom: 8px; font-size: 0.95rem; }
.key-row { display: flex; gap: 8px; flex-wrap: wrap; }
.key-row input {
  flex: 1 1 240px; min-width: 0; font-family: var(--font-mono); font-size: 0.92rem;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 11px 12px; border: 1.5px solid var(--ink-300); border-radius: var(--r-sm);
}
.key-row input:focus { outline: 2px solid var(--green-500); outline-offset: 1px; border-color: var(--green-500); }
.key-row .btn { flex: 0 0 auto; }
.key-status { margin: 10px 0 0; font-size: 0.9rem; min-height: 1.3em; color: var(--ink-600); }
.key-status.is-ok { color: var(--green-700); font-weight: 600; }
.key-status.is-err { color: var(--red-700); }
.price-meta { text-align: center; color: var(--ink-500); font-size: 0.87rem; margin: 0 0 18px; }
.price-list { list-style: none; margin: 0 0 20px; padding: 0; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; margin-bottom: 10px; }
.price-list svg { width: 17px; height: 17px; color: var(--green-600); flex-shrink: 0; margin-top: 3px; }
.price-foot { font-size: 0.83rem; color: var(--ink-500); text-align: center; margin: 12px 0 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: #eaf3ee; border-radius: var(--r-lg);
  padding: 28px 22px; text-align: center; margin: 34px 0;
}
.cta-band h2, .cta-band h3 { color: #fff; margin-top: 0; }
.cta-band p { color: #c1d6ca; max-width: 52ch; margin: 0 auto 18px; }
.cta-band strong, .cta-band b { color: #fff; }
.cta-band-plain strong, .cta-band-plain b { color: var(--ink-900); }
.cta-band .btn-note { color: #9fbdaf; }
.cta-band-plain {
  background: var(--green-050); border: 1px solid var(--green-100);
  color: var(--ink-800);
}
.cta-band-plain h2, .cta-band-plain h3 { color: var(--green-900); }
.cta-band-plain p { color: var(--ink-600); }

/* ---------- Sticky mobile CTA ---------- */
.cta-bar-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--ink-200);
  box-shadow: 0 -4px 16px rgba(11, 42, 32, 0.1);
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  transform: translateY(115%); transition: transform 0.25s ease;
  backdrop-filter: blur(6px);
}
.cta-bar-mobile.is-visible { transform: translateY(0); }
/* Reserve room under the page so the fixed bar never covers footer links (mobile/tablet only). */
body.has-cta-bar .site-footer { padding-bottom: calc(26px + 72px + env(safe-area-inset-bottom)); }
.cta-bar-mobile .bar-text { flex: 1; min-width: 0; font-size: 0.8rem; line-height: 1.3; color: var(--ink-600); }
.cta-bar-mobile .bar-text b { display: block; font-size: 0.9rem; color: var(--green-900); }
.cta-bar-mobile .btn { flex-shrink: 0; padding: 11px 16px; min-height: 42px; font-size: 0.9rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.81rem; color: var(--ink-500); padding: 12px 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--ink-300); }
.breadcrumbs a { color: var(--ink-600); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-600); text-decoration: underline; }

/* ---------- Article ---------- */
.article-head { padding: 6px 0 4px; }
.article-head h1 { margin-bottom: 12px; }
.article-meta { font-size: 0.82rem; color: var(--ink-500); display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 22px; }
.article-body h2 { padding-top: 4px; }
.article-body > h2:first-child { margin-top: 0; }
.toc {
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--r-sm); padding: 15px 18px; margin: 0 0 26px;
}
.toc p { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 0.92rem; }
.toc li { margin-bottom: 5px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.next-reads { margin: 34px 0 0; }
.next-reads h2 { font-size: 1.12rem; }

/* ---------- Forms / tool ---------- */
.tool-shell {
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden;
}
.tool-progress { background: var(--ink-050); border-bottom: 1px solid var(--ink-200); padding: 13px 18px; }
.tool-progress-track { height: 6px; background: var(--ink-200); border-radius: 999px; overflow: hidden; }
.tool-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green-500), var(--gold-500)); transition: width 0.3s ease; border-radius: 999px; }
.tool-progress-label { display: flex; justify-content: space-between; gap: 10px; font-size: 0.79rem; color: var(--ink-600); font-weight: 600; margin-bottom: 8px; }
.tool-body { padding: 20px 18px 22px; }
.tool-step { display: none; }
.tool-step.is-active { display: block; animation: fadeIn 0.22s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.tool-step h2 { margin-top: 0; font-size: 1.24rem; }
.tool-step-hint { color: var(--ink-600); font-size: 0.92rem; margin-top: -4px; }
.tool-nav { display: flex; gap: 10px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ink-100); }
.tool-nav .btn-primary { flex: 1; }

.field { margin-bottom: 18px; }
.field > label, .field-label {
  display: block; font-weight: 650; font-size: 0.93rem;
  color: var(--green-900); margin-bottom: 5px;
}
.field-help { font-size: 0.83rem; color: var(--ink-500); margin: 0 0 8px; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: 11px 13px; border: 1.5px solid var(--ink-200);
  border-radius: var(--r-sm); background: var(--white); color: var(--ink-900);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%234c565d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 11px;
  padding-right: 36px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green-500); outline: none;
  box-shadow: 0 0 0 3px rgba(36, 138, 99, 0.16);
}
input.is-error, select.is-error { border-color: var(--red-700); }
.field-error { color: var(--red-700); font-size: 0.83rem; font-weight: 600; margin: 5px 0 0; display: none; }
.field-error.is-shown { display: block; }
.field-row { display: grid; gap: 14px; }

/* radio / checkbox choice cards */
.choices { display: grid; gap: 9px; }
.choice {
  display: flex; gap: 11px; align-items: flex-start;
  border: 1.5px solid var(--ink-200); border-radius: var(--r-sm);
  padding: 13px 15px; cursor: pointer; background: var(--white);
  transition: border-color 0.15s, background 0.15s;
}
.choice:hover { border-color: var(--green-500); background: var(--green-050); }
.choice input { margin: 3px 0 0; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--green-600); }
.choice-text { font-size: 0.94rem; }
.choice-text b { display: block; font-weight: 650; color: var(--green-900); }
.choice-text span { color: var(--ink-600); font-size: 0.87rem; display: block; margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--green-600); background: var(--green-050); box-shadow: 0 0 0 1px var(--green-600) inset; }

/* ---------- Quiz result ---------- */
.result-card { border-radius: var(--r-md); padding: 22px 20px; margin: 0 0 20px; border: 1px solid; }
.result-card h2, .result-card h3 { margin-top: 0; }
.result-yes { background: var(--red-100); border-color: #f0c9c9; }
.result-yes h2, .result-yes h3 { color: var(--red-700); }
.result-no { background: var(--green-050); border-color: var(--green-100); }
.result-no h2, .result-no h3 { color: var(--green-700); }
.result-maybe { background: var(--gold-050); border-color: var(--gold-100); }
.result-maybe h2, .result-maybe h3 { color: var(--gold-700); }
.result-verdict {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; margin-bottom: 10px;
}
.result-answers { list-style: none; margin: 16px 0 0; padding: 0; font-size: 0.87rem; }
.result-answers li { display: flex; gap: 8px; justify-content: space-between; border-bottom: 1px dashed var(--ink-200); padding: 6px 0; }
.result-answers span:first-child { color: var(--ink-600); }
.result-answers span:last-child { font-weight: 650; text-align: right; }

/* ---------- Calculator ---------- */
.calc {
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--r-md); box-shadow: var(--sh-2); overflow: hidden;
}
.calc-body { padding: 20px 18px; }
.calc-out {
  background: var(--green-900); color: #fff; padding: 20px 18px; text-align: center;
}
.calc-out .calc-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #9fbdaf; margin: 0 0 4px; }
.calc-out .calc-num { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--gold-500); line-height: 1.1; }
.calc-out .calc-formula { font-size: 0.84rem; color: #c1d6ca; margin: 8px 0 0; }
.calc-out strong, .calc-out b { color: #fff; }

/* ---------- Paywall / unlock ---------- */
.paywall {
  background: var(--white); border: 2px dashed var(--green-500);
  border-radius: var(--r-md); padding: 24px 20px; text-align: center; margin: 24px 0;
  min-width: 0; overflow-wrap: break-word;
}
.paywall .btn { max-width: 100%; white-space: normal; text-align: center; }
.paywall .btn [data-cfg], .paywall-price * { white-space: nowrap; }
#output { min-width: 0; }
.paywall h3 { margin-top: 0; }
.paywall.is-pulse { animation: paywall-pulse 1.2s ease; }
@keyframes paywall-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 165, 32, 0); }
  30% { box-shadow: 0 0 0 8px rgba(217, 165, 32, 0.35); }
}
.unlocked-banner {
  display: none; align-items: center; gap: 11px;
  background: var(--green-050); border: 1px solid var(--green-500);
  border-radius: var(--r-sm); padding: 14px 16px; margin: 0 0 20px;
  font-size: 0.93rem;
}
.unlocked-banner.is-shown { display: flex; }
.unlocked-banner svg { width: 20px; height: 20px; color: var(--green-600); flex-shrink: 0; }

.download-grid { display: grid; gap: 10px; margin: 18px 0 0; }
.download-item {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--ink-200); border-radius: var(--r-sm);
  padding: 13px 15px; background: var(--white); text-align: left;
}
.download-item .dl-ico { width: 34px; height: 34px; border-radius: 7px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; }
.download-item .dl-ico svg { width: 17px; height: 17px; }
.download-item .dl-text { flex: 1; min-width: 0; }
.download-item .dl-text b { display: block; font-size: 0.93rem; color: var(--green-900); }
.download-item .dl-text span { font-size: 0.8rem; color: var(--ink-500); word-break: break-word; }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: grid; gap: 14px; padding: 26px 0;
  border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100);
  background: var(--ink-050);
}
.trust-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-700); }
.trust-item svg { width: 18px; height: 18px; color: var(--green-600); flex-shrink: 0; margin-top: 2px; }
.trust-item b { color: var(--green-900); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900); color: #a9c4b6;
  padding: 36px 0 26px; margin-top: 46px; font-size: 0.89rem;
}
.site-footer a { color: #d5e5dc; text-decoration: none; }
.site-footer strong, .site-footer b { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 26px; }
.footer-brand .brand { color: #fff; margin-bottom: 10px; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand-sub { color: #8aa89a; }
.footer-brand p { color: #97b3a5; font-size: 0.86rem; max-width: 40ch; }
.footer-col h3 {
  color: #fff; font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 11px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  margin-top: 28px; padding-top: 18px;
  font-size: 0.81rem; color: #8aa89a;
}
.footer-bottom p { margin: 0 0 8px; }
.footer-disclaimer { max-width: 78ch; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.not-affiliated {
  display: inline-block; border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-sm); padding: 8px 12px; margin-bottom: 12px;
  color: #c6dbcf; font-size: 0.82rem; font-weight: 600;
}

/* ---------- Utilities ---------- */
.pill {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--green-100); color: var(--green-700);
  padding: 3px 9px; border-radius: 999px;
}
.pill-gold { background: var(--gold-100); color: var(--gold-700); }
.pill-red { background: var(--red-100); color: var(--red-700); }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.big-num { font-size: 1.9rem; font-weight: 800; color: var(--green-900); letter-spacing: -0.03em; display: block; line-height: 1.1; }
.stat-grid { display: grid; gap: 14px; }
.stat { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-md); padding: 17px; text-align: center; }
.stat span.k { display: block; font-size: 0.83rem; color: var(--ink-600); margin-top: 4px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 480px) {
  :root { --step: 0.96rem; }
  h1 { font-size: 2.05rem; }
  .hero h1 { font-size: 2.2rem; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn { flex: 0 1 auto; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  html { scroll-padding-top: 86px; }
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.68rem; }
  h3 { font-size: 1.24rem; }
  .wrap { padding: 0 24px; }
  .section { padding: 60px 0; }
  .section-tight { padding: 36px 0; }
  .hero { padding: 52px 0 60px; }
  .hero h1 { font-size: 2.6rem; }
  .hero-lede { font-size: 1.14rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-bar { grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 30px 0; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .tool-body { padding: 28px 30px 30px; }
  .calc-body { padding: 26px 28px; }
  .article-body { font-size: 1.01rem; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 22px 26px; }
  table.compare-table, table.data-table { min-width: 0; }
  .swipe-hint { display: none; }
  .cta-band { padding: 40px 34px; }
  .doc-mock-body { padding: 22px 26px 30px; }
  .docprev { font-size: 0.84rem; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 46px; }
  .hero h1 { font-size: 2.95rem; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav.is-open {
    position: static; box-shadow: none; border: 0; padding: 0;
    max-height: none; overflow: visible;
  }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav a { border: 0; padding: 8px 11px; font-size: 0.9rem; border-radius: var(--r-sm); }
  .site-nav a:hover { background: var(--green-050); }
  .site-nav a[aria-current="page"] { background: var(--green-050); }
  .nav-group-label { display: none; }
  .nav-cta-wrap { padding: 0 0 0 8px; }
  .nav-cta-wrap .btn { width: auto; }
  .header-inner { min-height: 72px; }
  .cta-bar-mobile { display: none; }
  body.has-cta-bar .site-footer { padding-bottom: 26px; }
  .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 44px; align-items: start; }
  .article-aside { position: sticky; top: 96px; }
  .toc { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-bar-mobile, .cta-band, .paywall, .btn { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .read-more-body, .faq-answer { display: block !important; }
}
