/* Tekshir.si landing. Colours meet WCAG AA (see docs/16_SEO.md · Landing dizayni). */
:root {
  --navy-950: #06152b;
  --navy-900: #0b1f3d;
  --navy-800: #12305a;
  --navy-line: rgba(255, 255, 255, .1);
  --ink: #0b1f3d;
  --blue: #0b63ce;
  --blue-hover: #0952ad;
  --blue-soft: #e8f1fc;
  --blue-bright: #5fa8ff;
  --mint: #3ddc97;
  --mint-ink: #0b7a55;
  --mint-soft: #e6f7ef;
  --amber: #8a5a00;
  --amber-soft: #fff6e5;
  --paper: #f6f7f4;
  --white: #fff;
  --line: #dde3ea;
  --muted: #5a6878;
  --on-navy: #a9b8cc;
  --radius: 10px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(11, 31, 61, .06), 0 12px 32px rgba(11, 31, 61, .08);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: 8px; background: var(--white); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.button { min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 650; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.button.large { min-height: 52px; padding: 0 22px; font-size: 16px; }
.button.primary { background: var(--blue); color: var(--white); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 6px 18px rgba(11, 99, 206, .28); }
.button.primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.button.ghost { color: var(--ink); border-color: var(--line); background: var(--white); }
.button.ghost:hover { border-color: #b8c4d2; }
.button.outline { color: var(--blue); border-color: #b7cdea; background: var(--white); }
.button.outline:hover { border-color: var(--blue); background: var(--blue-soft); }
.button.ghost-dark { color: var(--white); border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.button.ghost-dark:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); }
.button:active { transform: translateY(0) scale(.99); }
/* Pill CTA: arrow chip slides on hover/focus (idea borrowed from the supplied PrismaHero, re-built in CSS). */
.cta-pill { padding-right: 6px; border-radius: 999px; padding-left: 22px; }
.cta-arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--blue); display: grid; place-items: center; transition: transform .3s var(--ease); }
.cta-arrow svg { width: 18px; height: 18px; }
.cta-pill:hover .cta-arrow, .cta-pill:focus-visible .cta-arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .25s, box-shadow .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled, .site-header.menu-open { background: rgba(6, 21, 43, .92); border-color: var(--navy-line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.nav-shell { width: min(var(--max), 100% - 2 * var(--gutter)); height: 72px; margin: auto; display: flex; align-items: center; gap: 28px; }
.logo-link { flex: none; padding: 6px 10px; margin-left: -10px; border-radius: 8px; background: var(--white); }
.logo-link img { width: 132px; height: auto; }
.desktop-nav { display: flex; gap: 4px; margin-left: auto; }
.desktop-nav a { padding: 8px 12px; border-radius: 6px; color: var(--on-navy); font-size: 14px; font-weight: 550; white-space: nowrap; transition: color .2s, background-color .2s; }
.desktop-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.nav-actions { display: flex; gap: 8px; }
.nav-actions .ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .25); }
.nav-actions .ghost:hover { border-color: rgba(255, 255, 255, .6); }
.menu-button { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; background: transparent; cursor: pointer; place-items: center; }
.menu-lines { position: relative; width: 18px; height: 12px; display: block; }
.menu-lines span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--white); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-lines span:first-child { top: 1px; }
.menu-lines span:last-child { top: 9px; }
.menu-button[aria-expanded="true"] .menu-lines span:first-child { top: 5px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-lines span:last-child { top: 5px; transform: rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); background:
    linear-gradient(var(--navy-line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--navy-950); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, var(--navy-950)); }
.hero-inner { position: relative; z-index: 1; width: min(var(--max), 100% - 2 * var(--gutter)); margin: auto; padding: 136px 0 56px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--navy-line); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--on-navy); font-size: 13px; font-weight: 600; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(61, 220, 151, .16); }
.hero-title { margin-top: 22px; font-size: clamp(2.35rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 760; text-wrap: balance; }
.pull { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: top; }
.pull > span { display: inline-block; }
.pull.accent { color: var(--blue-bright); }
.hero-lead { margin-top: 22px; max-width: 590px; color: var(--on-navy); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--on-navy); font-size: 14px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--mint); }

/* Flow card: titul → skan → tekshirish → natija */
.flow-card { border: 1px solid var(--navy-line); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); padding: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); transition: transform .5s var(--ease); }
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.flow-title { font-weight: 650; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-tag { flex: none; padding: 2px 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); color: var(--on-navy); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.flow-stages { margin: 14px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: stage; }
.flow-stages li { position: relative; padding: 7px 8px 7px 26px; border-radius: 6px; background: rgba(255, 255, 255, .05); color: var(--on-navy); font-size: 12px; font-weight: 650; white-space: nowrap; }
.flow-stages li::before { counter-increment: stage; content: counter(stage); position: absolute; left: 8px; top: 50%; translate: 0 -50%; width: 13px; height: 13px; border-radius: 50%; font-size: 9px; line-height: 13px; text-align: center; background: var(--mint); color: var(--navy-950); }
.flow-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.sheet { position: relative; overflow: hidden; border-radius: 8px; background: #fbfbf8; color: #3a4655; padding: 12px; }
.sheet-top { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px dashed #d4d9df; }
.qr { width: 30px; height: 30px; border-radius: 3px; background:
    linear-gradient(90deg, #0b1f3d 33%, transparent 33% 66%, #0b1f3d 66%) 0 0 / 10px 10px,
    linear-gradient(#0b1f3d 33%, transparent 33% 66%, #0b1f3d 66%) 0 0 / 10px 10px; opacity: .85; }
.sheet-lines { flex: 1; display: grid; gap: 6px; }
.sheet-lines i { height: 5px; border-radius: 3px; background: #dfe3e8; }
.sheet-lines i:last-child { width: 60%; }
.sheet-rows { margin-top: 10px; display: grid; gap: 5px; }
.row { position: relative; display: grid; grid-template-columns: 22px repeat(4, 1fr); align-items: center; gap: 6px; padding: 2px 4px; border-radius: 4px; font-size: 10px; font-weight: 700; color: #7a8594; }
.row i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #c3cad3; justify-self: center; }
.row i.on { background: #12305a; border-color: #12305a; }
.row::after { content: ""; position: absolute; right: -2px; top: 50%; width: 6px; height: 6px; translate: 0 -50%; border-radius: 50%; background: var(--mint-ink); }
.row.miss::after { background: #c2410c; }
.row { background: rgba(61, 220, 151, .1); }
.row.miss { background: rgba(194, 65, 12, .08); }
.row.written { grid-template-columns: 22px 1fr; }
.row .hand { font: italic 600 13px/1 "Segoe Script", "Bradley Hand", cursive; color: #2350a8; }
.row.written::after { background: #d29700; }
.scan-line { position: absolute; left: 0; right: 0; top: 0; height: 36px; translate: 0 -40px; background: linear-gradient(180deg, transparent, rgba(95, 168, 255, .35) 70%, #5fa8ff); opacity: 0; pointer-events: none; }
.flow-result { display: grid; grid-template-rows: 1fr auto; gap: 10px; min-width: 0; }
.score-card { border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--navy-line); padding: 12px; }
.score-card small { color: var(--on-navy); font-size: 12px; }
.score-card p { margin-top: 2px; display: flex; align-items: baseline; gap: 6px; }
.score-card p b { font-size: 34px; line-height: 1.1; font-weight: 760; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.score-card p span { color: var(--on-navy); font-size: 14px; }
.bar { margin-top: 8px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar span { display: block; height: 100%; width: 85%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-bright), var(--mint)); transform-origin: left; }
.checks { margin-top: 10px; display: grid; gap: 5px; font-size: 12px; color: #d6deea; }
.checks li { display: flex; gap: 7px; align-items: center; }
.checks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex: none; }
.checks li.warn::before { background: #f5b83d; }
.files { display: flex; flex-wrap: wrap; gap: 6px; }
.files span { padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 650; background: rgba(255, 255, 255, .08); border: 1px solid var(--navy-line); }
.files .xlsx { color: #8fe3bd; }
.files .pdf { color: #ffb4a3; }

.hero-band { position: relative; z-index: 1; width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--navy-line); }
.hero-band p { padding: 18px 16px 0 0; display: grid; gap: 2px; }
.hero-band b { font-size: 15px; }
.hero-band span { color: var(--on-navy); font-size: 13px; }

/* ---------- shared section scaffolding ---------- */
section { position: relative; }
.contrast, .process, .formats, .features, .pricing, .faq { width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(72px, 9vw, 120px) 0 0; }
.kicker { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.kicker.light { color: var(--mint); }
.section-head h2, .faq-head h2, .final-cta h2 { margin-top: 12px; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 750; text-wrap: balance; }
.section-head { max-width: 760px; }
.section-head.split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; }
.section-head.split > p, .faq-head > p { color: var(--muted); font-size: 17px; }

/* problem → solution */
.compare { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--white); }
.compare-col h3 { font-size: 18px; letter-spacing: -.01em; }
.compare-col ul { margin-top: 18px; display: grid; gap: 16px; }
.compare-col li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--muted); }
.compare-col li b { color: var(--ink); }
.compare-col svg { width: 20px; height: 20px; margin-top: 3px; }
.before svg { color: #b42318; }
.after { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
.after li { color: var(--on-navy); }
.after li b { color: var(--white); }
.after svg { color: var(--mint); }

/* process */
.process-track { position: relative; margin-top: 48px; height: 2px; background: var(--line); }
.process-fill { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(1); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding-top: 28px; }
.step::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--paper); transition: background-color .3s, transform .3s var(--ease); }
.step-no { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.step h3 { margin-top: 6px; font-size: 19px; letter-spacing: -.01em; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.step-ui { margin-top: 16px; min-height: 64px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); }
.chip { padding: 4px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 650; white-space: nowrap; }
.chip.ok { background: var(--mint-soft); color: var(--mint-ink); }
.chip.warn { background: var(--amber-soft); color: var(--amber); }
.chip.file { background: #f1f4f8; color: var(--ink); }
.mini-sheet { width: 30px; height: 40px; border-radius: 3px; border: 1px solid #c9d2dd; background: linear-gradient(#0b1f3d, #0b1f3d) 4px 4px / 9px 9px no-repeat, repeating-linear-gradient(#fff 0 6px, #e5e9ee 6px 7px) 4px 18px / 20px 18px no-repeat, #fff; }
.mini-sheet + .mini-sheet { margin-left: -14px; }
.progress { flex: 1 1 100%; height: 6px; border-radius: 6px; background: #e8edf3; overflow: hidden; }
.progress span { display: block; height: 100%; width: 96%; background: var(--blue); border-radius: inherit; transform-origin: left; }

/* formats */
.format-layout { margin-top: 40px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.format-tabs { display: grid; gap: 6px; }
.format-tabs[hidden] { display: none; }
.format-tabs [role="tab"] { text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 16px; font-weight: 650; cursor: pointer; display: grid; gap: 2px; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.format-tabs [role="tab"] span { color: var(--muted); font-size: 13px; font-weight: 500; }
.format-tabs [role="tab"]:hover { border-color: #b8c4d2; }
.format-tabs [role="tab"][aria-selected="true"] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.format-panels { display: grid; gap: 16px; }
/* With tabs, all panels share one grid cell so switching never changes the section height. */
.js .format-panels { gap: 0; }
.js .format-panel { grid-area: 1 / 1; }
.js .format-panel[hidden] { display: block; visibility: hidden; }
.format-panel { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.format-panel h3 { margin-top: 10px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.25; letter-spacing: -.02em; }
.format-panel > p:not(.kicker) { margin-top: 12px; color: var(--muted); max-width: 680px; }
.facts { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.format-panel .note { margin-top: 16px; padding: 10px 12px; border-radius: 6px; background: var(--amber-soft); color: var(--amber) !important; font-size: 14px; }

/* features bento */
.bento { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.tile:hover { border-color: #b8c4d2; transform: translateY(-2px); box-shadow: var(--shadow); }
.tile.wide { grid-column: span 2; }
.tile-icon { width: 36px; height: 36px; padding: 7px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }
.tile h3 { margin-top: 16px; font-size: 17px; letter-spacing: -.01em; }
.tile p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.tile-ui { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tile-ui span { padding: 6px 10px; border-radius: 6px; background: var(--paper); font-size: 13px; font-weight: 600; }
.tile-ui em { margin-left: 6px; font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-results { margin-top: 16px; display: grid; gap: 8px; }
.mini-results div { display: grid; grid-template-columns: 110px 1fr 28px; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; }
.mini-results i { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--blue) calc(var(--v) * 100%), #e8edf3 0); transform-origin: left; }
.mini-results b { text-align: right; font-variant-numeric: tabular-nums; }

/* pricing */
.price-trial { margin-top: 36px; padding: 18px 22px; border-radius: var(--radius); background: var(--mint-soft); border: 1px solid #bfe9d5; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price-trial p { display: grid; gap: 2px; }
.price-trial b { font-size: 17px; }
.price-trial span { color: var(--muted); }
.price-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.price-card h3 { font-size: 19px; }
.price-for { margin-top: 4px; min-height: 48px; color: var(--muted); font-size: 14px; }
.price-sum { margin-top: 14px; font-size: 32px; font-weight: 770; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-sum small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-unit { margin-top: 4px; color: var(--muted); font-size: 14px; }
.price-unit b { color: var(--amber); }
.price-card ul { margin: 18px 0 22px; display: grid; align-content: start; gap: 9px; font-size: 14px; flex: 1; }
.price-card li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.price-card li::before { content: ""; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a55' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }
.price-card .button { width: 100%; }
.price-card.featured { border: 2px solid var(--blue); box-shadow: 0 18px 48px rgba(11, 99, 206, .16); }
.price-badge { position: absolute; top: -12px; left: 20px; padding: 4px 10px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.price-note { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-head > p { margin-top: 14px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 40px 20px 0; list-style: none; cursor: pointer; font-size: 17px; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease), margin-top .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 40px 20px 0; color: var(--muted); }

/* final cta */
.final-cta { margin-top: clamp(80px, 10vw, 128px); background: var(--navy-950); color: var(--white); }
.final-inner { width: min(var(--max), 100% - 2 * var(--gutter)); margin: auto; padding: clamp(64px, 8vw, 104px) 0; }
.final-cta h2 { max-width: 820px; }
.next-steps { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--on-navy); }
.next-steps li { display: flex; align-items: center; gap: 10px; }
.next-steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--white); font-size: 13px; font-weight: 700; }
.final-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* footer */
.site-footer { background: var(--navy-950); color: var(--on-navy); border-top: 1px solid var(--navy-line); }
.site-footer { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding: 48px max(var(--gutter), calc((100vw - var(--max)) / 2)) 28px; }
.footer-brand img { width: 150px; height: auto; padding: 6px 10px; border-radius: 8px; background: var(--white); }
.footer-brand p { margin-top: 14px; max-width: 380px; font-size: 14px; }
.site-footer nav { display: grid; gap: 8px; align-content: start; font-size: 14px; }
.site-footer nav b { color: var(--white); margin-bottom: 4px; }
.site-footer nav a:hover { color: var(--white); }
.copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--navy-line); font-size: 13px; }

/* ---------- motion ---------- */
/* Hero runs on pure CSS (works without JavaScript); every animated element ends in its natural state. */
@media (prefers-reduced-motion: no-preference) {
  .hero-in { animation: rise .8s var(--ease) both; animation-delay: var(--d, 0ms); }
  .pull > span { animation: pull-up .75s var(--ease) both; animation-delay: calc(120ms + var(--w) * 70ms); }
  .flow-stages li { animation: stage-on .45s var(--ease) both; animation-delay: calc(900ms + var(--s) * 620ms); }
  .scan-line { animation: scan 1.5s cubic-bezier(.4, 0, .2, 1) 1.45s both; }
  .row { animation: row-read .35s ease both; animation-delay: calc(1.6s + var(--i) * 170ms); }
  .row::after { animation: pop .3s var(--ease) both; animation-delay: calc(1.7s + var(--i) * 170ms); }
  .score-card, .files span { animation: rise .6s var(--ease) both; }
  .score-card { animation-delay: 2.9s; }
  .bar span { animation: grow 1.1s var(--ease) 3.1s both; }
  .checks li { animation: rise .45s var(--ease) both; }
  .checks li:nth-child(1) { animation-delay: 3.25s; }
  .checks li:nth-child(2) { animation-delay: 3.4s; }
  .checks li:nth-child(3) { animation-delay: 3.55s; }
  .files span:nth-child(1) { animation-delay: 3.8s; }
  .files span:nth-child(2) { animation-delay: 3.95s; }
  .flow-card:hover { transform: translateY(-4px); }

  /* Scroll reveals only exist once JavaScript has marked the page; without it everything is visible. */
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.visible { opacity: 1; transform: none; }
  .js .bento .reveal:nth-child(2n), .js .price-grid .reveal:nth-child(2n) { transition-delay: 80ms; }
  .js .bento .reveal:nth-child(3n), .js .price-grid .reveal:nth-child(3n) { transition-delay: 160ms; }
  .js .process-fill { transform: scaleX(0); transition: transform .25s linear; }
  .js .step::before { background: var(--line); transform: scale(.8); }
  .js .step.active::before { background: var(--blue); transform: scale(1); }
  .js .step .step-ui { opacity: .45; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .step.active .step-ui { opacity: 1; transform: none; }
  .js .step .progress span { transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
  .js .step.active .progress span { transform: scaleX(1); }
  .js .mini-results i { transform: scaleX(0); transition: transform 1s var(--ease); }
  .js .mini-results.visible i { transform: scaleX(1); }
  .js .mini-results.visible div:nth-child(2) i { transition-delay: .12s; }
  .js .mini-results.visible div:nth-child(3) i { transition-delay: .24s; }
  .format-panel.entering { animation: panel-in .45s var(--ease) both; }
  .mobile-menu { transition: opacity .25s ease, transform .35s var(--ease), visibility 0s linear .35s; }
  .mobile-menu.open { transition: opacity .25s ease, transform .35s var(--ease), visibility 0s; }
  .mobile-menu.open nav a { animation: rise .45s var(--ease) both; }
  .mobile-menu.open nav a:nth-child(2) { animation-delay: 40ms; }
  .mobile-menu.open nav a:nth-child(3) { animation-delay: 80ms; }
  .mobile-menu.open nav a:nth-child(4) { animation-delay: 120ms; }
  .mobile-menu.open nav a:nth-child(5) { animation-delay: 160ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pull-up { from { opacity: 0; transform: translateY(105%); } }
@keyframes stage-on { from { background: rgba(255, 255, 255, .05); color: var(--on-navy); } to { background: rgba(95, 168, 255, .16); color: var(--white); } }
@keyframes scan { 0% { opacity: 0; translate: 0 -40px; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; translate: 0 300px; } }
@keyframes row-read { from { background: transparent; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.flow-stages li { background: rgba(95, 168, 255, .16); color: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 120px; gap: 40px; }
  .flow-card { max-width: 620px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .process-track { display: none; }
  .js .step::before { background: var(--blue); transform: none; }
}
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-actions .ghost { display: none; }
  /* The menu needs JavaScript; without it the header keeps a direct sign-up button. */
  .js .nav-actions { display: none; }
  .js .menu-button { display: grid; }
  .js .mobile-menu { display: block; position: absolute; inset: 72px 0 auto; height: calc(100dvh - 72px); overflow-y: auto; padding: 16px var(--gutter) 32px; background: var(--navy-950); visibility: hidden; opacity: 0; transform: translateY(-8px); }
  .js .mobile-menu.open { visibility: visible; opacity: 1; transform: none; }
  .mobile-menu nav { display: grid; }
  .mobile-menu nav a { padding: 16px 4px; border-bottom: 1px solid var(--navy-line); color: var(--white); font-size: 20px; font-weight: 650; }
  .mobile-actions { margin-top: 24px; display: grid; gap: 10px; }
  .section-head.split, .faq, .format-layout { grid-template-columns: 1fr; gap: 16px; }
  .faq { gap: 24px; }
  .compare { grid-template-columns: 1fr; }
  .format-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-shell { height: 64px; }
  .js .mobile-menu { inset: 64px 0 auto; height: calc(100dvh - 64px); }
  .logo-link img { width: 116px; }
  .hero-inner { padding: 104px 0 40px; }
  .hero-title { font-size: clamp(2rem, 9.4vw, 2.6rem); line-height: 1.08; }
  .hero-actions .button { width: 100%; }
  .cta-pill { justify-content: space-between; }
  .flow-card { padding: 14px; }
  .flow-stages li { padding-left: 8px; text-align: center; font-size: 11px; }
  .flow-stages li::before { display: none; }
  .flow-body { grid-template-columns: 1fr; }
  .flow-result { grid-template-rows: auto; }
  .hero-band { grid-template-columns: 1fr 1fr; padding-bottom: 28px; }
  .compare-col, .format-panel { padding: 22px; }
  .process-steps, .bento, .price-grid { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .format-tabs { grid-template-columns: 1fr 1fr; }
  .format-tabs [role="tab"] { padding: 12px; font-size: 15px; }
  .price-for { min-height: 0; }
  .price-trial .button { width: 100%; }
  .mini-results div { grid-template-columns: 92px 1fr 26px; }
  .final-actions .button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .hero-trust { font-size: 13px; }
  .format-tabs [role="tab"] { padding: 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0ms !important; }
}

/* 404 page shares these tokens */
.not-found { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 60px max(24px, calc((100vw - 760px) / 2)); }
.not-found .logo-link { margin-bottom: 28px; align-self: flex-start; }
.not-found h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -.04em; }
.not-found p { max-width: 560px; color: var(--muted); font-size: 17px; }
.not-found .hero-actions { margin-top: 8px; }
