/* ==========================================================================
   Fieldtested Labs — design system v2 ("precision instrument")
   Tokens → base → layout → components → motion. Documented in brand/DESIGN_SYSTEM.md
   ========================================================================== */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin.woff2") format("woff2-variations"); font-weight: 300 700; font-display: swap; }

:root {
  /* colour: dark surfaces */
  --ink-0: #070d0c; --ink-1: #0c1614; --ink-2: #111f1c; --ink-3: #18302a;
  --on-dark: #e9f1ee; --on-dark-2: #a9bdb6; --line-dark: rgba(233, 241, 238, .10);
  /* colour: light surfaces */
  --paper: #f6f7f4; --white: #ffffff; --ink: #0b1210; --slate: #4a5753; --line: #dbe2de;
  /* colour: brand */
  --green: #0f5c4b; --green-2: #0b4538; --mint: #7fe0bf; --mint-2: #b5f0da; --mint-soft: #e3f4ed;
  --amber: #f4b740;
  /* colour: severity */
  --crit: #a32617; --crit-dark: #ff8f80; --serious: #8a4a0c; --serious-dark: #f6c05c; --ok: #1d6b43; --ok-dark: #7fe0bf;
  /* type */
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  /* space (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  /* shape and depth */
  --r1: 8px; --r2: 12px; --r3: 18px; --r4: 28px;
  --shadow-1: 0 1px 2px rgba(11, 18, 16, .06), 0 2px 8px rgba(11, 18, 16, .05);
  --shadow-2: 0 18px 50px -24px rgba(7, 13, 12, .45);
  --glow: 0 0 0 1px rgba(127, 224, 191, .25), 0 20px 60px -20px rgba(127, 224, 191, .25);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: var(--green);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 17px/1.65 var(--text); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.dark, .site-footer, .site-header { --focus: var(--amber); }
.dark a { color: var(--mint); }
::selection { background: var(--mint); color: var(--ink); }
.skip { position: absolute; left: 16px; top: -120px; background: var(--amber); color: var(--ink); padding: 12px 18px; border-radius: var(--r1); z-index: 200; font-weight: 700; }
.skip:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; margin: 0 0 var(--s4); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.25; }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0 0 var(--s4); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--slate); max-width: 62ch; }
.dark .lede, .dark p { color: var(--on-dark-2); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--on-dark); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin: 0 0 var(--s5); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.dark .eyebrow { color: var(--mint); }
.muted { color: var(--slate); } .dark .muted { color: var(--on-dark-2); }
.small { font-size: .9rem; }
.mono { font-family: var(--mono); }
.measure { max-width: 70ch; }
.center { text-align: center; } .center .lede { margin-left: auto; margin-right: auto; }
.grad { background: linear-gradient(100deg, var(--mint) 0%, var(--mint-2) 50%, var(--amber) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(7, 13, 12, .94); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--on-dark); font: 600 1.1rem/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand .wm b { color: var(--mint); font-weight: 600; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--on-dark-2); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: var(--r1); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--on-dark); background: rgba(233, 241, 238, .06); }
.nav a[aria-current="page"] { color: var(--on-dark); }
.nav .btn[aria-current="page"] { color: var(--ink); }
.nav a:not(.btn)[aria-current="page"]::after { content: ""; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--mint); margin-left: 6px; }
.nav .btn { margin-left: 10px; color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; background: transparent; color: var(--on-dark); border: 1px solid var(--line-dark); border-radius: var(--r1); min-height: 44px; padding: 0 14px; font: 600 15px var(--text); cursor: pointer; }
@media (max-width: 1020px) {
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .site-header .wrap { flex-wrap: wrap; padding-block: 10px; }
  .nav { width: 100%; margin: 0; }
  .js .nav { display: none; }
  .js .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 0 14px; }
  .nav a { padding: 0 12px; min-height: 48px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn { --b: var(--green); color: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; background: var(--b); font: 600 1rem/1 var(--text); text-decoration: none; border: 1.5px solid var(--b); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(15, 92, 75, .6); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.ghost, .btn.secondary { background: transparent; color: var(--green); border-color: var(--green); }
.btn.ghost:hover, .btn.secondary:hover { background: var(--mint-soft); box-shadow: none; }
.dark .btn, .site-header .btn { --b: var(--mint); color: var(--ink); }
.dark .btn:hover, .site-header .btn:hover { box-shadow: 0 10px 30px -10px rgba(127, 224, 191, .55); }
.dark .btn.ghost, .dark .btn.secondary { background: transparent; color: var(--on-dark); border-color: rgba(233, 241, 238, .35); }
.dark .btn.ghost:hover, .dark .btn.secondary:hover { background: rgba(233, 241, 238, .07); }
.tint { background: var(--white); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* ---------- sections ---------- */
section { padding: clamp(72px, 10vw, var(--s10)) 0; position: relative; }
section, .page-head { position: relative; overflow: clip; } /* decorative glows must never cause sideways scrolling */
.dark { background: var(--ink-0); color: var(--on-dark); }
.dark.raised { background: var(--ink-1); }
.light { background: var(--paper); }
.white { background: var(--white); }
.section-head { max-width: 760px; margin-bottom: var(--s7); }
.section-head.center { margin-left: auto; margin-right: auto; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.dark .rule { border-top-color: var(--line-dark); }

/* grid backdrop for dark sections */
.gridbg::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 35%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 35%, transparent 80%); opacity: .55; }
.glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; filter: blur(80px); opacity: .22; pointer-events: none; background: radial-gradient(circle, var(--mint) 0%, transparent 65%); }
.glow.a { top: -260px; right: -120px; } .glow.b { bottom: -300px; left: -200px; background: radial-gradient(circle, #1f8f74 0%, transparent 65%); opacity: .25; }
@media (prefers-reduced-motion: no-preference) { .glow.a { animation: drift 18s ease-in-out infinite alternate; } .glow.b { animation: drift 22s ease-in-out infinite alternate-reverse; } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 40px, 0) scale(1.08); } }

/* ---------- grids and cards ---------- */
.grid { display: grid; gap: var(--s5); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s6); box-shadow: var(--shadow-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: #c5d2cd; }
.dark .card { background: linear-gradient(180deg, rgba(233, 241, 238, .045), rgba(233, 241, 238, .02)); border-color: var(--line-dark); box-shadow: none; }
.dark .card.lift:hover { border-color: rgba(127, 224, 191, .35); box-shadow: var(--glow); }
.card h3 { margin-bottom: var(--s3); }
.card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mint-soft); color: var(--green); margin-bottom: var(--s4); }
.dark .icon { background: rgba(127, 224, 191, .1); color: var(--mint); border: 1px solid rgba(127, 224, 191, .2); }
.icon svg { width: 22px; height: 22px; }
.num { font: 600 .8rem/1 var(--mono); color: var(--green); letter-spacing: .1em; margin-bottom: var(--s3); display: block; }
.dark .num { color: var(--mint); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r3); overflow: hidden; }
.stat { background: var(--ink-1); padding: var(--s6); }
.stat .v { font: 600 clamp(2.6rem, 5vw, 3.6rem)/1 var(--display); letter-spacing: -.03em; color: var(--on-dark); margin-bottom: var(--s3); display: block; font-variant-numeric: tabular-nums; }
.stat .v em { font-style: normal; color: var(--mint); }
.stat p { font-size: .98rem; }
.source { font: 400 .78rem/1.5 var(--mono); color: var(--on-dark-2); opacity: .85; margin: var(--s3) 0 0; }
.light .source { color: var(--slate); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--mint-soft); color: var(--green); vertical-align: 2px; white-space: nowrap; }
.chip.demo { background: #fbecd0; color: #6b4300; }
.dark .chip { background: rgba(127, 224, 191, .12); color: var(--mint); }
.dark .chip.demo { background: rgba(244, 183, 64, .14); color: var(--amber); }
.sev { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.sev::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sev.c { color: var(--crit); } .sev.s { color: var(--serious); } .sev.f { color: var(--ok); }
.dark .sev.c { color: var(--crit-dark); } .dark .sev.s { color: var(--serious-dark); } .dark .sev.f { color: var(--ok-dark); }

/* lists */
ul.ticks, ul.crosses { list-style: none; padding: 0; margin: var(--s3) 0 0; }
ul.ticks li, ul.crosses li { position: relative; padding-left: 30px; margin: 10px 0; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230f5c4b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.dark ul.ticks li::before { background-color: rgba(127, 224, 191, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%237fe0bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
ul.crosses li { color: var(--slate); }
ul.crosses li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 10px; height: 2px; background: currentColor; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 6vw, 84px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero .split { align-items: center; }
.hero h1 { max-width: 17ch; font-size: clamp(2.4rem, 4.6vw, 3.7rem); }
.hero .lede { margin-bottom: var(--s4); font-size: 1.12rem; max-width: 52ch; }
.trustline { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: var(--s6); font: 500 .84rem/1.4 var(--mono); color: var(--on-dark-2); }
.trustline span { display: inline-flex; align-items: center; gap: 8px; }
.trustline span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

/* ---------- scan demonstration (hero visual) ---------- */
.scan { position: relative; }
.scan-frame { position: relative; border-radius: var(--r3); background: var(--ink-1); border: 1px solid var(--line-dark); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8), var(--glow); overflow: hidden; }
.scan-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-dark); font: 500 .72rem/1 var(--mono); color: var(--on-dark-2); }
.scan-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3d38; }
.scan-bar .url { margin-left: 10px; padding: 6px 10px; border-radius: 6px; background: rgba(233, 241, 238, .05); flex: 1; }
.scan-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; }
.mock { position: relative; padding: 18px; background: #fbfaf7; color: #2b2b2b; min-height: 330px; }
.mock .m-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock .m-logo { width: 54px; height: 12px; border-radius: 3px; background: #d8d2c6; }
.mock .m-icons { display: flex; gap: 8px; }
.mock .m-ico { position: relative; width: 22px; height: 22px; border-radius: 6px; background: #e8e3d9; }
.mock .m-img { height: 122px; border-radius: 10px; background: linear-gradient(135deg, #e7c9ad, #c98b5b); margin-bottom: 12px; }
.mock .m-title { width: 70%; height: 12px; border-radius: 3px; background: #3a3a3a; margin-bottom: 9px; }
.mock .m-price { position: relative; width: 26%; height: 10px; border-radius: 3px; background: #ddd6cb; margin-bottom: 14px; }
.mock .m-row { display: flex; gap: 8px; margin-bottom: 12px; }
.mock .m-select { position: relative; flex: 1; height: 30px; border-radius: 7px; border: 1.5px solid #ddd6cb; background: #fff; }
.mock .m-qty { width: 64px; height: 30px; border-radius: 7px; border: 1.5px solid #ddd6cb; }
.mock .m-btn { position: relative; height: 36px; border-radius: 8px; background: #d9c3a5; }
.mock .beam { position: absolute; left: 0; right: 0; top: 0; height: 70px; background: linear-gradient(180deg, transparent, rgba(127, 224, 191, .38) 85%, rgba(127, 224, 191, .9)); border-bottom: 2px solid var(--mint); opacity: 0; pointer-events: none; }
.pin { position: absolute; z-index: 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--mono); color: #fff; background: var(--crit); box-shadow: 0 0 0 4px rgba(163, 38, 23, .2); opacity: 0; transform: scale(.4); }
.pin.s { background: #b8650f; box-shadow: 0 0 0 4px rgba(184, 101, 15, .22); }
.pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.p1 { top: -7px; right: -7px; } .p2 { top: -6px; right: -26px; } .p3 { top: 5px; right: -8px; } .p4 { top: 8px; right: 10px; }
.pin .ok { position: absolute; opacity: 0; }
.pin .x { position: absolute; }
.findings { padding: 18px; display: flex; flex-direction: column; gap: 9px; font: 500 .78rem/1.35 var(--mono); color: var(--on-dark-2); }
.findings .fh { display: flex; justify-content: space-between; color: var(--on-dark); font-weight: 600; margin-bottom: 4px; }
.findings .f { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; padding: 9px 10px; border-radius: 9px; background: rgba(233, 241, 238, .04); border: 1px solid var(--line-dark); opacity: 0; transform: translateY(6px); }
.findings .f b { display: block; color: var(--on-dark); font-weight: 600; }
.findings .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 3px; background: var(--crit-dark); }
.findings .dot.s { background: var(--serious-dark); }
.findings .score { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px dashed var(--line-dark); }
.findings .score strong { font: 600 1.6rem/1 var(--display); color: var(--on-dark); }
.findings .score .after { color: var(--mint); }
.scan-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: var(--s4); font: 500 .8rem/1.4 var(--mono); color: var(--on-dark-2); }
.scan-controls button { background: transparent; color: var(--on-dark); border: 1px solid var(--line-dark); border-radius: 999px; min-height: 40px; padding: 0 16px; font: 600 .8rem/1 var(--mono); cursor: pointer; }
.scan-controls button:hover { border-color: rgba(127, 224, 191, .4); }
.status-txt b { color: var(--mint); font-weight: 600; }
@media (max-width: 560px) { .scan-body { grid-template-columns: 1fr; } .mock { min-height: 300px; } }

/* timeline: 10s loop. phases: 0–35% scan + pins, 35–60% fixes, 60–100% verified */
.scan.play .beam { animation: beam 10s var(--ease) infinite; }
.scan.play .pin { animation: pin 10s var(--ease) infinite; }
.scan.play .pin.p2 { animation-delay: .25s; } .scan.play .pin.p3 { animation-delay: .5s; } .scan.play .pin.p4 { animation-delay: .75s; }
.scan.play .f { animation: f 10s var(--ease) infinite; }
.scan.play .f:nth-of-type(2) { animation-delay: .25s; } .scan.play .f:nth-of-type(3) { animation-delay: .5s; } .scan.play .f:nth-of-type(4) { animation-delay: .75s; }
.scan.play .f .dot { animation: dotfix 10s var(--ease) infinite; }
.scan.play .m-price { animation: price 10s infinite; } .scan.play .m-btn { animation: btn 10s infinite; }
.scan.play .pin .x { animation: px 10s infinite; } .scan.play .pin .ok { animation: pok 10s infinite; }
.scan.play .m-icons .m-ico:last-child { animation: fr1 10s infinite; } .scan.play .m-select { animation: fr2 10s infinite; } .scan.play .m-btn { animation: btn 10s infinite, fr3 10s infinite; }
.scan.play .before-n { animation: beforeN 10s infinite; } .scan.play .after-n { animation: afterN 10s infinite; }
@keyframes beam { 0% { opacity: 0; transform: translateY(-70px); } 4% { opacity: 1; } 30% { opacity: 1; transform: translateY(300px); } 34%, 100% { opacity: 0; transform: translateY(300px); } }
@keyframes pin { 0%, 10% { opacity: 0; transform: scale(.4); } 14%, 40% { opacity: 1; transform: scale(1); background: var(--crit); } 46%, 92% { opacity: 1; transform: scale(1); background: #1d8a63; box-shadow: 0 0 0 4px rgba(29, 138, 99, .25); } 100% { opacity: 0; transform: scale(.4); } }
@keyframes f { 0%, 12% { opacity: 0; transform: translateY(6px); } 16%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes dotfix { 0%, 44% { background: var(--crit-dark); } 48%, 100% { background: var(--mint); } }
@keyframes price { 0%, 44% { background: #ddd6cb; } 48%, 100% { background: #6f665a; } }
@keyframes btn { 0%, 44% { background: #d9c3a5; } 48%, 100% { background: #7a4a1f; } }
@keyframes px { 0%, 44% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes pok { 0%, 44% { opacity: 0; } 48%, 100% { opacity: 1; } }
@keyframes fr1 { 0%, 58% { box-shadow: none; } 60%, 68% { box-shadow: 0 0 0 3px #fbfaf7, 0 0 0 6px var(--amber); } 70%, 100% { box-shadow: none; } }
@keyframes fr2 { 0%, 68% { box-shadow: none; } 70%, 78% { box-shadow: 0 0 0 3px #fbfaf7, 0 0 0 6px var(--amber); } 80%, 100% { box-shadow: none; } }
@keyframes fr3 { 0%, 78% { box-shadow: none; } 80%, 92% { box-shadow: 0 0 0 3px #fbfaf7, 0 0 0 6px var(--amber); } 96%, 100% { box-shadow: none; } }
@keyframes beforeN { 0%, 46% { opacity: 1; } 50%, 100% { opacity: .35; text-decoration: line-through; } }
@keyframes afterN { 0%, 46% { opacity: .25; } 50%, 100% { opacity: 1; } }
/* static end state when motion is reduced or before JS starts: show findings */
.scan:not(.play) .pin, .scan:not(.play) .f { opacity: 1; transform: none; }

/* ---------- tabs (process stepper and code examples) ---------- */
.tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(233, 241, 238, .05); border: 1px solid var(--line-dark); width: fit-content; max-width: 100%; }
.light .tabs [role="tablist"], .white .tabs [role="tablist"] { background: var(--white); border-color: var(--line); }
.tabs [role="tab"] { appearance: none; border: 0; background: transparent; color: var(--on-dark-2); font: 600 .9rem/1 var(--text); padding: 12px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; transition: background-color .25s, color .25s; }
.light .tabs [role="tab"], .white .tabs [role="tab"] { color: var(--slate); }
.tabs [role="tab"][aria-selected="true"] { background: var(--mint); color: var(--ink); }
.light .tabs [role="tab"][aria-selected="true"], .white .tabs [role="tab"][aria-selected="true"] { background: var(--green); color: #fff; }
.tabs [role="tabpanel"] { margin-top: var(--s6); }
.tabs [role="tabpanel"]:focus-visible { outline-offset: 6px; }
.js .tabs [role="tabpanel"][hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .tabs [role="tabpanel"]:not([hidden]) { animation: rise .45s var(--ease); } }

/* process stepper */
.stepper .bar { height: 2px; background: var(--line-dark); border-radius: 2px; margin: var(--s5) 0 0; overflow: hidden; }
.stepper .bar i { display: block; height: 100%; width: var(--p, 20%); background: linear-gradient(90deg, var(--mint), var(--amber)); transition: width .6s var(--ease); }
.step-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s6); align-items: start; }
@media (max-width: 860px) { .step-panel { grid-template-columns: 1fr; } }
.step-meta { display: grid; gap: 10px; }
.step-meta div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: var(--r2); border: 1px solid var(--line-dark); font: 500 .85rem/1.4 var(--mono); color: var(--on-dark-2); }
.step-meta div b { color: var(--on-dark); font-weight: 600; text-align: right; }

/* code / diff */
.code { position: relative; background: #08100e; color: #d8e6e1; border: 1px solid var(--line-dark); border-radius: var(--r2); padding: 18px 20px; overflow-x: auto; font: 400 13.5px/1.65 var(--mono); }
.code .c { color: #7f948d; } .code .add { color: var(--mint); } .code .del { color: #ff9e93; }
.code .label { position: absolute; top: 10px; right: 12px; font: 600 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.fix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 860px) { .fix-grid { grid-template-columns: 1fr; } }

/* before / after comparison */
.compare { position: relative; border-radius: var(--r3); overflow: hidden; border: 1px solid var(--line-dark); box-shadow: var(--shadow-2); aspect-ratio: 1000 / 560; background: #fff; --pos: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--amber); transform: translateX(-1px); pointer-events: none; }
.compare .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; font: 700 16px/1 var(--text); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.compare .tag { position: absolute; top: 12px; font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(7, 13, 12, .85); color: #fff; }
.compare .tag.l { left: 12px; } .compare .tag.r { right: 12px; background: var(--mint); color: var(--ink); }
.compare-range { display: block; width: 100%; margin-top: var(--s4); accent-color: var(--amber); min-height: 44px; }
.compare-caption { font: 400 .85rem/1.5 var(--mono); color: var(--on-dark-2); margin-top: var(--s2); }
.light .compare-caption { color: var(--slate); }

/* findings table / evidence rows */
.evidence { border: 1px solid var(--line-dark); border-radius: var(--r3); overflow: hidden; }
.evidence .row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 90px; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-dark); align-items: center; font-size: .97rem; }
.evidence .row:last-child { border-bottom: 0; }
.evidence .row.head { font: 600 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); background: rgba(233, 241, 238, .03); }
.evidence .b, .evidence .a { font: 600 1.2rem/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.evidence .b { color: var(--crit-dark); } .evidence .a { color: var(--mint); }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r3); background: var(--white); }
.dark .table-wrap { border-color: var(--line-dark); background: transparent; }
table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: .96rem; }
caption { text-align: left; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dark th, .dark td { border-bottom-color: var(--line-dark); }
thead th { font: 600 .74rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); background: var(--paper); }
.dark thead th { color: var(--on-dark-2); background: rgba(233, 241, 238, .03); }
tbody th { font-weight: 600; background: transparent; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.us td, tr.us th { background: rgba(127, 224, 191, .07); }
.light tr.us td, .light tr.us th, .white tr.us td, .white tr.us th { background: var(--mint-soft); }
.table-wrap:focus-visible { outline-offset: 2px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s5); align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card .tier { font: 600 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: var(--s3); }
.dark .price-card .tier { color: var(--mint); }
.price-card .price { font: 600 3rem/1 var(--display); letter-spacing: -.03em; margin: var(--s2) 0 var(--s2); }
.price-card .price small { font: 500 1rem/1 var(--text); letter-spacing: 0; color: var(--slate); }
.dark .price-card .price small { color: var(--on-dark-2); }
.price-card .for { color: var(--slate); min-height: 3.2em; }
.dark .price-card .for { color: var(--on-dark-2); }
.price-card ul.ticks { margin-bottom: var(--s6); flex: 1; }
.price-card .btn { align-self: flex-start; }
.price-card.featured { border: 1.5px solid var(--green); box-shadow: 0 30px 70px -40px rgba(15, 92, 75, .7); }
.dark .price-card.featured { border-color: rgba(127, 224, 191, .55); box-shadow: var(--glow); }
.badge { align-self: flex-start; display: inline-flex; font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; background: var(--green); color: #fff; margin-bottom: var(--s4); }
.dark .badge { background: var(--mint); color: var(--ink); }

/* steps (static list on inner pages) */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: var(--s3); }
ol.steps > li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: var(--r3); padding: 24px 24px 24px 84px; position: relative; }
ol.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 24px; top: 22px; font: 600 1.1rem/1 var(--mono); color: var(--green); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mint-soft); }
ol.steps h3 { margin-bottom: 6px; font-size: 1.15rem; }
ol.steps p { margin: 0; color: var(--slate); }

/* note / callout */
.note { border: 1px solid var(--line); border-left: 3px solid var(--green); background: var(--white); border-radius: var(--r2); padding: var(--s5) var(--s6); }
.dark .note { background: rgba(233, 241, 238, .03); border-color: var(--line-dark); border-left-color: var(--amber); }
.note p:last-child { margin: 0; }

/* page head (inner pages) */
.page-head { padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.page-head h1 { max-width: 22ch; font-size: clamp(2.3rem, 5vw, 3.8rem); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.dark .faq details { border-bottom-color: var(--line-dark); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; min-height: 56px; font: 600 1.08rem/1.35 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font: 400 1.2rem/1 var(--text); transition: transform .3s var(--ease); }
.dark .faq summary::after { border-color: var(--line-dark); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 4px 22px; color: var(--slate); max-width: 75ch; }
.dark .faq details > div { color: var(--on-dark-2); }

/* forms */
form .field { margin: 0 0 20px; }
label { display: block; font-weight: 600; margin: 0 0 8px; }
.hint { display: block; font-weight: 400; color: var(--slate); font-size: .9rem; margin-top: 2px; }
input, textarea, select { width: 100%; font: 400 16px/1.4 var(--text); padding: 13px 15px; border: 1.5px solid #7d8a86; border-radius: var(--r1); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:hover, textarea:hover, select:hover { border-color: var(--ink); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--crit); }
.error { color: var(--crit); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.form-status { padding: 16px 18px; border-radius: var(--r2); margin: 0 0 18px; font-weight: 600; }
.form-status.ok { background: var(--mint-soft); color: var(--green-2); }
.form-status.bad { background: #fbe4df; color: #7a1d12; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r3); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-1); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }

/* footer */
.site-footer { background: var(--ink-0); color: var(--on-dark-2); padding: var(--s9) 0 var(--s6); font-size: .95rem; border-top: 1px solid var(--line-dark); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s6); }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h2 { font: 600 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: var(--s4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 10px 0; }
.site-footer .legal { border-top: 1px solid var(--line-dark); margin-top: var(--s8); padding-top: var(--s5); font-size: .84rem; line-height: 1.6; }

/* sample report frame (inner pages) */
.doc-card { display: block; text-decoration: none; color: inherit; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .hero-in > * { animation: rise .9s var(--ease) both; }
  .hero-in > *:nth-child(2) { animation-delay: .08s; } .hero-in > *:nth-child(3) { animation-delay: .16s; } .hero-in > *:nth-child(4) { animation-delay: .24s; } .hero-in > *:nth-child(5) { animation-delay: .32s; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print { .site-header, .site-footer, .skip, .scan-controls { display: none; } body { background: #fff; } .dark { background: #fff; color: #000; } }
/* inquiry registration and confirmation */
.case-progress, .case-confirm { background: var(--white); border: 1px solid var(--line); border-radius: var(--r3); padding: 24px; box-shadow: var(--shadow-1); }
.case-progress h2:focus, .case-confirm h2:focus { outline: none; }
.case-steps { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.case-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; animation: stepIn .35s var(--ease) both; }
.case-steps .ic { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--line); }
.case-steps .st-done .ic { background: var(--green); border-color: var(--green); }
.case-steps .st-done .ic::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.case-steps .st-run .ic { border-color: var(--green); border-right-color: transparent; animation: spin .8s linear infinite; }
.case-steps .st-fail .ic { background: var(--crit); border-color: var(--crit); }
.case-steps .st-fail .ic::after { content: "!"; color: #fff; font-size: 13px; font-weight: 800; }
.case-ref { display: flex; flex-direction: column; gap: 4px; background: var(--mint-soft); border-radius: var(--r2); padding: 14px 18px; margin: 16px 0; }
.case-ref span { font: 600 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); }
.case-ref b { font: 700 1.6rem/1.2 var(--mono); color: var(--ink); letter-spacing: .02em; }
.case-next { padding-left: 1.2em; }
.case-next li { margin-bottom: 6px; }
@keyframes stepIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .case-steps li { animation: none; } .case-steps .st-run .ic { animation: none; border-right-color: var(--green); } }
/* Part 2: price anchor, quick start, verification panel, comparison table */
.price-anchor { margin: 0 0 var(--s4); color: var(--on-dark-2); max-width: 46ch; }
.price-anchor strong { color: var(--on-dark); }
.quick-start { margin: 0 0 var(--s4); max-width: 520px; }
.quick-start label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--on-dark); }
.qs-row { display: flex; gap: 10px; flex-wrap: wrap; }
.qs-row input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 10px 14px; border-radius: var(--r2); border: 1px solid var(--line-dark); background: rgba(255,255,255,.06); color: var(--on-dark); font: inherit; }
.qs-row input::placeholder { color: var(--on-dark-2); }
.verify h3, .verify h2 { margin-top: 0; }
.verify-list { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--mint-soft); color: var(--ink); }
table.compare tbody th { width: 22%; font-weight: 600; }
