/* Trang chủ. Layout: a night-navy hero continuing the App's title bar, with a live demo on a document page; then light
   sections (error marquee, bento grid, before/after slider, product tour), one night band for privacy, pricing, FAQ.
   Motion: one orchestrated moment (the hero demo) plus quiet scroll reveals; everything stops under reduced motion. */
:root {
  --night: #0E1522;
  --night-2: #152036;
  --night-line: rgba(180, 190, 208, .14);
  --on-night: #EEF2F8;
  --on-night-2: #A9B4C7;
  --accent-night: #5EA0DE;
  --ok-night: #3DBEA8;
  --err-night: #F0675B;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

/* ---------- Shared bits ---------- */
.l-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.l-h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
.l-lead { font-size: clamp(16.5px, 1.4vw, 18.5px); line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.l-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.l-head-center { margin-inline: auto; text-align: center; justify-items: center; }
.l-section { padding-block: 72px; }
@media (min-width: 900px) { .l-section { padding-block: 104px; } }
.l-desk { background: var(--desk); }
.l-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .l-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.l-split > * { min-width: 0; }

.btn { transition: background-color .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(26, 90, 153, .28); }
.btn:active { transform: none; box-shadow: none; }
.btn-light { background: var(--paper); color: var(--rail); }
.btn-light:hover { background: var(--accent-tint); color: var(--rail); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.btn-ghost-night { background: transparent; color: var(--on-night); border-color: rgba(238, 242, 248, .28); }
.btn-ghost-night:hover { background: rgba(255, 255, 255, .07); border-color: rgba(238, 242, 248, .55); color: var(--on-night); }

/* ---------- Hero ---------- */
.l-hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--on-night-2);
  background: linear-gradient(180deg, var(--rail) 0%, var(--night) 46%, var(--night) 100%);
}
.l-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 72% 42%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 70% at 72% 42%, #000 20%, transparent 72%);
}
.l-hero::after {
  content: ""; position: absolute; z-index: -1; width: 820px; height: 820px; right: -220px; top: -180px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(26, 90, 153, .55), rgba(26, 90, 153, 0));
}
.l-hero > .wrap { display: grid; gap: 56px; align-items: center; padding-block: 52px 88px; }
@media (min-width: 1040px) { .l-hero > .wrap { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); padding-block: 88px 120px; } }
.l-hero-copy { display: grid; gap: 22px; min-width: 0; }
.l-pill {
  justify-self: start; display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; border-radius: 999px;
  border: 1px solid rgba(94, 160, 222, .35); background: rgba(94, 160, 222, .1); color: var(--on-night); font-size: 13.5px; font-weight: 600;
}
.l-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok-night); box-shadow: 0 0 0 4px rgba(61, 190, 168, .18); }
.l-hero h1 {
  font-family: var(--display); font-size: clamp(38px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -.028em;
  color: var(--on-night); font-weight: 700; max-width: 13ch;
}
.l-hero h1 .wavy {
  text-decoration: underline wavy var(--err-night); text-decoration-thickness: 2px; text-underline-offset: 10px;
  text-decoration-skip-ink: none; animation: wavy-in 1.4s .9s both;
}
@keyframes wavy-in { from { text-decoration-color: transparent; } }
.l-hero .l-lead { color: var(--on-night-2); max-width: 52ch; }
.l-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.l-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--on-night-2); }
.l-trust span { display: inline-flex; align-items: center; gap: 7px; }
.l-trust .ic { color: var(--accent-night); }
.l-hero-copy > * { animation: rise .8s var(--ease) both; }
.l-hero-copy > :nth-child(2) { animation-delay: .07s; }
.l-hero-copy > :nth-child(3) { animation-delay: .14s; }
.l-hero-copy > :nth-child(4) { animation-delay: .21s; }
.l-hero-copy > :nth-child(5) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Live demo: scan, flag, fix. States are classes on [data-demo]: is-scanning, is-found, is-fix1, is-fix2. */
.demo { position: relative; min-width: 0; animation: rise 1s .2s var(--ease) both; }
.mock-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 12px; font-size: 13px; }
.mock-file { display: inline-flex; align-items: center; gap: 8px; color: var(--on-night); font-weight: 600; min-width: 0; }
.mock-file .ic { color: var(--accent-night); }
.mock-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; color: var(--on-night);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--night-line); transition: background-color .3s, border-color .3s;
}
.mock-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-night); transition: background-color .3s; }
.demo.is-scanning .mock-status i { animation: blink .9s ease-in-out infinite; }
.demo.is-found .mock-status { border-color: rgba(240, 103, 91, .45); }
.demo.is-found .mock-status i { background: var(--err-night); }
.demo.is-fix2 .mock-status { border-color: rgba(61, 190, 168, .5); background: rgba(61, 190, 168, .1); }
.demo.is-fix2 .mock-status i { background: var(--ok-night); }
@keyframes blink { 50% { opacity: .25; } }

.demo .sheet { box-shadow: 0 34px 90px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .35); overflow: hidden; }
.scan {
  position: absolute; left: 0; right: 0; top: -80px; height: 80px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(26, 90, 153, 0), rgba(26, 90, 153, .14)); border-bottom: 2px solid rgba(26, 90, 153, .6);
}
.demo.is-scanning .scan { animation: scan 1.5s var(--ease) both; }
@keyframes scan { 0% { top: -80px; opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.demo .flag {
  text-decoration-line: underline; text-decoration-style: wavy; text-decoration-thickness: 1.4px; text-underline-offset: 3px;
  text-decoration-color: transparent; text-decoration-skip-ink: none;
  transition: text-decoration-color .45s ease, font-size .6s var(--ease), font-weight .2s;
}
.demo .flag-warn-k { text-decoration-style: dashed; }
.demo.is-found .flag-err-k { text-decoration-color: var(--err); }
.demo.is-found .flag-warn-k { text-decoration-color: var(--warn); }
.demo [data-fix="motto"] { font-size: .9em; }
.demo.is-fix1 [data-fix="motto"] { font-size: 1.04em; text-decoration-color: transparent; }
.demo [data-fix="org"] { font-weight: 400; }
.demo.is-fix2 [data-fix="org"] { font-weight: 700; text-decoration-color: transparent; }

.demo .findings { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.demo.is-found .findings { opacity: 1; transform: none; }
.demo .finding { opacity: 0; transform: translateX(10px); transition: opacity .4s var(--ease), transform .4s var(--ease), background-color .3s; }
.demo.is-found .finding { opacity: 1; transform: none; }
.demo.is-found .finding:nth-child(2) { transition-delay: .12s; }
.demo.is-found .finding:nth-child(3) { transition-delay: .24s; }
.demo .finding .mk-ok { display: none; }
.demo .finding.is-fixed .mk-err { display: none; }
.demo .finding.is-fixed .mk-ok { display: block; }
.demo .finding.is-fixed > div > span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-3); }
.demo .finding.is-fixed { background: transparent; box-shadow: none; }
.mk-ok .mk-shape { fill: var(--sugg); }
.fix-alt { display: none; }
.demo.is-fix1 .fix-first { display: none; }
.demo.is-fix1 .fix-alt { display: flex; }
.demo.is-fix2 .fix-alt .btn { opacity: .55; }
.demo-done { display: none; align-items: center; gap: 8px; color: var(--sugg-ink); font-size: 14px; font-weight: 600; }
.demo.is-fix2 .fix-alt { display: none; }
.demo.is-fix2 .demo-done { display: flex; animation: rise .5s var(--ease) both; }
.demo .press { transition: transform .12s ease, filter .12s ease; }
.demo.is-pressing .press { transform: scale(.95); filter: brightness(1.12); }
.demo-cursor {
  position: absolute; left: var(--cx, 70%); top: var(--cy, 105%); z-index: 6; width: 24px; height: 24px; pointer-events: none;
  opacity: 0; transition: left .85s var(--ease), top .85s var(--ease), opacity .3s ease, transform .12s ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.demo.is-pointing .demo-cursor { opacity: 1; }
.demo.is-pressing .demo-cursor { transform: scale(.82); }
.demo.is-resetting { opacity: .35; transition: opacity .5s ease; }

/* ---------- Error marquee ---------- */
.l-strip { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 26px 28px; display: grid; gap: 14px; }
.l-strip .eyebrow { color: var(--ink-3); }
.marquee {
  overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: 12px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.issue-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper-2); font-size: 14.5px; white-space: nowrap; color: var(--ink);
}
.issue-chip .mk { margin-top: 0; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-a, .tile-f { grid-column: span 2; }
}
@media (min-width: 1060px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile-a { grid-column: span 2; grid-row: span 2; }
  .tile-f { grid-column: auto; }
}
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 26px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r2); background: linear-gradient(180deg, var(--paper), var(--paper-2));
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: 0 18px 40px rgba(16, 24, 40, .1); }
.tile-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--accent-tint); color: var(--accent); }
.tile h3 { font-size: 20px; letter-spacing: -.01em; }
.tile p { color: var(--ink-2); font-size: 15.5px; max-width: 52ch; }
.tile-visual { margin-top: auto; padding-top: 8px; }
.mini-panel { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--paper); box-shadow: var(--shadow-card); }
.mini-panel .finding { font-size: 14px; }
.sys-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* The four systems share one cell, so the tile keeps the height of the longest and nothing below it jumps. */
.sys-stage { display: grid; flex: 1 1 auto; }
.sys-panel { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; visibility: hidden; opacity: 0; }
.sys-panel.is-on { visibility: visible; opacity: 1; transition: opacity .25s var(--ease); }
.sys-panel .mini-panel { margin-top: auto; }
.sys-basis { display: inline-flex; align-items: center; gap: 6px; font-size: 14px !important; font-weight: 600; color: var(--accent-2) !important; }
.sys-chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border: 1px solid var(--accent-line); border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-2); font: 600 14px/1 var(--font-ui); cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.sys-chip:hover { border-color: var(--accent); }
.sys-chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.sys-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="on"]) .sys-panel { transition: none; } }
.compare { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.spell { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font-doc); font-size: 19px; }
.spell s { color: var(--err); text-decoration-color: var(--err); }
.spell b { color: var(--sugg-ink); font-weight: 700; }
.spell .ic { color: var(--ink-3); }
.big-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--r); background: var(--accent); color: var(--paper); font-weight: 600; box-shadow: 0 10px 24px rgba(26, 90, 153, .3); }
.ribbon { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; background: var(--paper); font-size: 13px; }
.ribbon-tabs { display: flex; gap: 2px; padding: 6px 10px 0; background: #2B579A; color: #DCE6F4; }
.ribbon-tabs span { padding: 6px 10px; border-radius: 4px 4px 0 0; }
.ribbon-tabs .on { background: var(--paper); color: #2B579A; font-weight: 700; }
.ribbon-body { display: flex; gap: 14px; padding: 10px 12px; color: var(--ink-2); }
.ribbon-body span { display: grid; justify-items: center; gap: 4px; font-size: 12px; }
.ribbon-body .ic { color: var(--accent); }
.mini-table { display: grid; gap: 6px; font-size: 13.5px; }
.mini-table div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.mini-table b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offline-art { display: flex; align-items: center; gap: 14px; }
.offline-art .ring { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sugg-tint); color: var(--sugg); border: 1px solid var(--sugg-line); }

/* ---------- Before / after ---------- */
.ba { position: relative; display: grid; border-radius: 3px; box-shadow: var(--shadow-sheet); user-select: none; -webkit-user-select: none; touch-action: pan-y; --pos: 50%; }
.ba-layer { grid-area: 1 / 1; min-width: 0; }
.ba-layer .sheet { height: 100%; box-shadow: none; padding-top: 50px; padding-bottom: 30px; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; background: var(--accent); transform: translateX(-1px); pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent); color: var(--accent); transform: translate(-50%, -50%); box-shadow: var(--shadow-pop);
}
.ba-range:focus-visible ~ .ba-handle .ba-knob { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.ba-tag { position: absolute; top: 12px; z-index: 2; padding: 6px 10px; border-radius: 999px; font: 700 12px/1 var(--font-ui); letter-spacing: .03em; pointer-events: none; }
.ba-tag-before { left: 12px; background: var(--err-tint); color: var(--err-ink); border: 1px solid var(--err-line); }
.ba-tag-after { right: 12px; background: var(--sugg-tint); color: var(--sugg-ink); border: 1px solid var(--sugg-line); }
.ba .sheet-body { text-indent: 1.27cm; }
.ba-before .sp2 { position: relative; }
.ba-before .sp2::after { content: ""; position: absolute; left: -.08em; right: -.08em; top: .12em; bottom: -.04em; border: 1.5px dashed var(--err); border-radius: 2px; }
.ba .eq { display: inline-block; width: .25em; }
.ba-before .bad { text-decoration: underline wavy var(--err); text-decoration-thickness: 1.4px; text-underline-offset: 3px; text-decoration-skip-ink: none; }
.l-steps { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.l-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; counter-increment: s; }
.l-steps li::before {
  content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--accent-line); color: var(--accent-2); font-weight: 700;
}
.l-steps b { display: block; }
.l-steps span { color: var(--ink-2); font-size: 15px; }

/* ---------- Product tour ---------- */
.tour { display: grid; gap: 26px; }
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 5px; margin-inline: auto; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2); }
.tour-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-2); font: 600 15px/1.2 var(--font-ui); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s;
}
.tour-tab:hover { color: var(--ink); }
.tour-tab[aria-selected="true"] { background: var(--paper); color: var(--accent-2); box-shadow: var(--shadow-card); }
.tour-panel { display: grid; gap: 28px; align-items: center; }
@media (min-width: 980px) { .tour-panel { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; } }
.tour-panel > * { min-width: 0; }
.js-tabs .tour-panel[hidden] { display: none; }
.js-tabs .tour-panel:not([hidden]) { animation: fade-in .45s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } }
.tour-shot { border-radius: var(--r2); overflow: hidden; border: 1px solid var(--line-2); background: var(--paper); box-shadow: 0 30px 70px rgba(16, 24, 40, .18); }
.tour-shot img { width: 100%; }
.tour-shot-narrow { max-width: 360px; margin-inline: auto; }
.tour-text { display: grid; gap: 14px; }
.tour-text h3 { font-size: 22px; }
.tour-note { font-size: 13px; color: var(--ink-3); }

/* ---------- Night band (privacy, offline activation) ---------- */
.l-night { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--on-night-2); }
.l-night::after {
  content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; left: -240px; bottom: -320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(26, 90, 153, .45), rgba(26, 90, 153, 0));
}
.l-night .l-h2 { color: var(--on-night); }
.l-night .l-eyebrow { color: var(--accent-night); }
.l-night .l-lead { color: var(--on-night-2); }
.night-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.night-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.night-list .ic-box { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: rgba(94, 160, 222, .12); color: var(--accent-night); border: 1px solid rgba(94, 160, 222, .25); }
.night-list b { display: block; color: var(--on-night); font-size: 17px; }
.night-list span { font-size: 15px; }
.phone-wrap { display: grid; justify-items: center; gap: 18px; }
.phone {
  position: relative; width: 236px; padding: 12px; border-radius: 34px; background: #05080F; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone-screen { display: grid; gap: 12px; justify-items: center; padding: 30px 16px 22px; border-radius: 24px; background: var(--paper); color: var(--ink); text-align: center; }
.phone-screen small { color: var(--ink-3); font-size: 11.5px; }
.phone-screen b { font-size: 14px; }
.phone-qr { position: relative; width: 150px; height: 150px; overflow: hidden; border-radius: 6px; }
.phone-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.phone-qr::after {
  content: ""; position: absolute; left: 0; right: 0; height: 36px; top: -36px;
  background: linear-gradient(180deg, rgba(61, 190, 168, 0), rgba(61, 190, 168, .35)); border-bottom: 2px solid var(--ok-night);
  animation: qr-scan 2.6s ease-in-out infinite;
}
@keyframes qr-scan { 0% { top: -36px; } 60%, 100% { top: 100%; } }
.phone-key { width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); font: 600 12px/1.2 var(--font-mono); color: var(--ink-2); letter-spacing: .04em; }
.phone-btn { width: 100%; padding: 9px; border-radius: var(--r); background: var(--accent); color: var(--paper); font-size: 13px; font-weight: 600; }
.phone-caption { max-width: 34ch; text-align: center; font-size: 14.5px; }
.phone-caption a { color: var(--accent-night); }

/* ---------- Pricing teaser ---------- */
.price-row { display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: minmax(210px, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; }
@media (min-width: 720px) { .price-row { grid-auto-columns: minmax(210px, 40%); } }
@media (min-width: 1080px) { .price-row { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; } }
.price-card {
  scroll-snap-align: start; display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r2);
  background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: 0 16px 36px rgba(16, 24, 40, .1); color: var(--ink); }
.price-card.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-card .name { font-weight: 600; color: var(--ink-2); }
.price-card .amount { font-size: 26px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price-card .per { font-size: 13.5px; color: var(--ink-3); }
.price-card .go { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14.5px; }

/* ---------- Final call to action ---------- */
.l-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--on-night-2); }
.l-cta::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(ellipse 60% 120% at 50% 120%, rgba(26, 90, 153, .55), rgba(26, 90, 153, 0));
}
.l-cta .wrap { display: grid; justify-items: center; gap: 18px; text-align: center; padding-block: 88px; }
.l-cta .l-h2 { color: var(--on-night); max-width: 20ch; }
.l-cta p { max-width: 52ch; }
.l-cta .row { justify-content: center; }

/* ---------- Scroll reveal (progressive: only where the browser drives it from scrolling) ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  .bento .reveal:nth-child(2), .price-row > :nth-child(2) { animation-range: entry 4% cover 26%; }
  .bento .reveal:nth-child(3), .price-row > :nth-child(3) { animation-range: entry 8% cover 30%; }
  .tilt { animation: untilt linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; transform-origin: 50% 100%; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(32px); } }
@keyframes untilt { from { transform: perspective(1400px) rotateX(14deg) scale(.94); opacity: .4; } }

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="on"]) .marquee-track { animation: none; width: auto; flex-wrap: wrap; }
  :root:not([data-motion="on"]) .marquee-set + .marquee-set { display: none; }
  :root:not([data-motion="on"]) .marquee { -webkit-mask-image: none; mask-image: none; }
  :root:not([data-motion="on"]) .marquee-set { flex-wrap: wrap; }
  :root:not([data-motion="on"]) .phone-qr::after { display: none; }
}

.mock-play {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(94, 160, 222, .45); background: rgba(94, 160, 222, .12); color: var(--on-night); font: 600 13px/1.2 var(--font-ui);
}
.mock-play:hover { background: rgba(94, 160, 222, .22); }
.mock-play .ic { color: var(--accent-night); }

/* The results card is a light surface inside the night hero: give it its own ink. One line for the bar above the page. */
.demo .findings { color: var(--ink); }
.mock-bar { flex-wrap: nowrap; min-height: 32px; }
.mock-file { flex: 1 1 auto; overflow: hidden; }
.mock-file > :last-child, .mock-file { white-space: nowrap; text-overflow: ellipsis; }
.mock-bar > .row { flex: none; flex-wrap: nowrap; }
@media (max-width: 520px) { .mock-file { display: none; } .mock-bar { justify-content: flex-end; } }

/* ---------- Proof: tested on real documents ---------- */
.l-proof { padding-block: 56px 8px; }
.l-proof-card {
  display: grid; gap: 26px; align-items: center; padding: 30px 26px; border: 1px solid var(--accent-line); border-radius: 16px;
  background: radial-gradient(120% 140% at 0% 0%, var(--accent-tint) 0%, var(--paper) 58%); box-shadow: 0 18px 40px rgba(16, 24, 40, .06);
}
@media (min-width: 860px) { .l-proof-card { grid-template-columns: auto minmax(0, 1fr); gap: 52px; padding: 40px 48px; } }
.l-proof-figure { display: grid; gap: 4px; justify-items: start; }
.l-proof-num {
  font-family: var(--display); font-size: clamp(50px, 7vw, 78px); line-height: 1; font-weight: 800; letter-spacing: -.03em;
  color: var(--accent-2); font-variant-numeric: tabular-nums;
}
.l-proof-unit { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.l-proof-copy { display: grid; gap: 12px; min-width: 0; }
.l-proof-title { font-family: var(--display); font-size: clamp(22px, 2.4vw, 29px); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.l-proof-copy p { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 62ch; }
.l-proof-chips { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.l-proof-chips li {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); font-size: 14px; font-weight: 600; color: var(--ink);
}
.l-proof-chips .ic { color: var(--accent); }

/* ---------- Four checking systems, Word versions ---------- */
.systems { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .systems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .systems { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.system {
  display: grid; gap: 8px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--r2);
  background: var(--paper); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.system:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: 0 16px 36px rgba(16, 24, 40, .09); }
.system-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--paper); box-shadow: 0 8px 18px rgba(26, 90, 153, .25);
}
.system h3 { font-size: 20px; }
.system b { color: var(--accent-2); font-size: 15px; }
.system > span:not(.system-icon) { color: var(--ink-2); font-size: 15px; }
.word-band {
  display: grid; gap: 16px; margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--paper);
}
@media (min-width: 980px) { .word-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .word-band p { grid-column: 1 / -1; } }
.word-band-head { display: flex; gap: 14px; align-items: center; }
.word-band-head > div { display: grid; gap: 2px; }
.word-band-head b { font-size: 17px; }
.word-band-head > div > span { color: var(--ink-2); font-size: 15px; }
.word-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.word-chips span {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: #E8EEF8; color: #2B579A; border: 1px solid #C3D2EA;
}
.word-band p { color: var(--ink-3); font-size: 14px; }
