/* Snipflag site: calm, minimal, readable. Tokens and rules: site/docs/02-art-direction.md */
:root {
  --bg: #0C1F1B; --bg-2: #122A25; --bg-3: #1A3731;
  --text: #EEF2EE; --muted: #A7B7B0; --faint: #7F948C;
  --line: rgba(238, 242, 238, .1);
  --accent: #FFB25B; --accent-ink: #2A1804; --mint: #8CDCC1;

  --font: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --max: 1120px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(5rem, 11vw, 8.5rem);
  --radius: 14px;
  --radius-sm: 9px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.125rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code, kbd { font-family: var(--mono); font-size: .85em; }
kbd { padding: .1em .45em; border-radius: 6px; background: var(--bg-3); color: var(--text); white-space: nowrap; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; font-weight: 600; border-radius: var(--radius-sm); transition: top var(--dur) var(--ease-out); }
.skip:focus { top: 16px; }

/* Layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.pt0 { padding-top: 0; }
.mt2 { margin-top: 2rem; }

/* Type */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.1; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.015em; }
p { margin: 0; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34rem; text-wrap: pretty; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.eyebrow, .label { font: 500 .8125rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.eyebrow { margin-bottom: 1rem; }
.inline-link, .prose a { text-decoration: underline; text-decoration-color: rgba(255,178,91,.6); text-underline-offset: 3px; transition: color var(--dur); }
.inline-link:hover, .prose a:hover { color: var(--accent); }
.prose p + p { margin-top: 1em; }

.wipe { position: relative; display: inline-block; }
.wipe::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 320ms var(--ease-out); }
.wipe:hover::after, .wipe:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* Buttons */
.btn {
  --b: var(--bg-3); --f: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 50px; padding: 0 1.35em;
  border: 0; border-radius: 999px; background: var(--b); color: var(--f); cursor: pointer;
  font: 600 1rem/1 var(--font); white-space: nowrap;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small { font: 500 .8125rem/1 var(--font); opacity: .7; }
.btn-primary { --b: var(--accent); --f: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 8px 24px -10px rgba(255,178,91,.7); }
.btn-ghost { --b: transparent; box-shadow: inset 0 0 0 1px rgba(238,242,238,.18); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(238,242,238,.36); }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .9375rem; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: transform 380ms var(--ease-out), background-color 250ms, box-shadow 250ms; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.site-header.scrolled { background: rgba(12,31,27,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1.125rem; letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: .9375rem; color: var(--muted); }
.nav a { transition: color var(--dur); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--text); border-radius: 2px; transition: transform 280ms var(--ease-out), opacity 200ms; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding-top: clamp(7rem, 12vw, 9rem); text-align: center; overflow: clip; }
.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero .lede { margin: 1.5rem auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.25rem; }
.hero-meta { margin-top: 1.25rem; font-size: .9375rem; color: var(--faint); }
.hero-meta a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.hero-shot { margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; max-width: 1080px; position: relative; }
.hero-shot::before { content: ""; position: absolute; inset: 12% 10% -4%; z-index: -1; background: radial-gradient(closest-side, rgba(255,178,91,.2), transparent 75%); filter: blur(30px); }
.hero-shot img { width: 100%; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0,0,0,.75); }

/* Section heads */
.head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.head p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); }
.head.center { margin-inline: auto; text-align: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 1.75rem; background: var(--bg-2); border-radius: var(--radius); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 1.25rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 .9375rem/1 var(--font); }
.steps p { margin-top: .5rem; color: var(--muted); font-size: 1rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.feature { padding: 1.75rem; border-radius: var(--radius); background: var(--bg-2); }
.feature p { margin-top: .5rem; color: var(--muted); font-size: 1rem; }

/* Statement */
.statement { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem); border-radius: var(--radius); background: radial-gradient(ellipse at 50% 0%, rgba(140,220,193,.1), transparent 70%), var(--bg-2); }
.statement h2 { max-width: 22ch; margin-inline: auto; }
.statement p { margin: 1.25rem auto 0; max-width: 36rem; color: var(--muted); }
.statement p.eyebrow { margin: 0 auto 1rem; color: var(--mint); }
.statement .statement-link { margin-top: 1.5rem; color: var(--text); }

/* How it works: the usual routine next to the Snipflag way */
.flow { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--gutter); align-items: stretch; }
.flow-card { display: flex; flex-direction: column; padding: 1.75rem; border-radius: var(--radius); background: var(--bg-2); }
.flow-card.new { box-shadow: inset 0 0 0 1.5px var(--accent); }
.flow-card .label { font-weight: 500; }
.flow-card.old .label { color: var(--faint); }
.chain { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; counter-reset: c; }
.chain li { counter-increment: c; display: inline-flex; align-items: baseline; gap: .45rem; padding: .45rem .75rem; border-radius: 999px; background: var(--bg-3); color: var(--muted); font-size: .9375rem; }
.chain li span { text-decoration: line-through; text-decoration-color: rgba(238,242,238,.35); }
.chain li::before { content: counter(c); font: 500 .75rem/1 var(--mono); color: var(--faint); }
.steps-short { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
.steps-short li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: .9rem; color: var(--muted); font-size: 1rem; }
.steps-short li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 .9375rem/1 var(--font); }
.steps-short strong { color: var(--text); font-weight: 600; }
.flow-foot { margin-top: auto; padding-top: 1.25rem; font-size: .9375rem; color: var(--faint); }
.flow-card.new .flow-foot { color: var(--mint); }
.site-footer .fine .more { margin-top: .6rem; }
.site-footer .fine .more a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.site-footer .fine .tagline { margin-bottom: .6rem; color: var(--muted); font-size: .9375rem; }

/* Compare */
.table-scroll { overflow-x: auto; border-radius: var(--radius); background: var(--bg-2); -webkit-overflow-scrolling: touch; }
table.matrix { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .9375rem; }
.matrix caption { text-align: left; padding: 1rem 1.25rem; color: var(--faint); caption-side: bottom; font-size: .8125rem; }
.matrix th, .matrix td { padding: .95rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.matrix thead th { font-weight: 600; color: var(--text); }
.matrix thead th.us { color: var(--accent); }
.matrix tbody th { font-weight: 500; color: var(--muted); width: 22%; }
.matrix td { color: var(--muted); }
.matrix td.us { color: var(--text); background: rgba(255,178,91,.05); }
.yes, .no, .part { display: inline-flex; align-items: baseline; gap: .5rem; }
.yes::before, .no::before, .part::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; transform: translateY(-1px); }
.yes::before { background: var(--mint); }
.no::before { box-shadow: inset 0 0 0 1.5px var(--faint); }
.part::before { background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--accent); }
.compare-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.compare-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem; border-radius: var(--radius); background: var(--bg-2); transition: background-color var(--dur), transform var(--dur) var(--ease-out); }
.compare-card:hover { background: var(--bg-3); transform: translateY(-2px); }
.compare-card .h3 { font-weight: 600; font-size: 1.125rem; }
.compare-card p { color: var(--muted); font-size: .9375rem; }
.compare-card .go { margin-top: auto; padding-top: .6rem; color: var(--accent); font-size: .9375rem; }

/* FAQ */
.faq { max-width: 46rem; margin-inline: auto; }
details.qa { border-bottom: 1px solid var(--line); }
details.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; cursor: pointer; font-weight: 500; font-size: 1.0625rem; transition: color var(--dur); }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary:hover { color: var(--accent); }
details.qa summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform 300ms var(--ease-out); }
details.qa[open] summary::after { transform: translateY(2px) rotate(225deg); }
details.qa .a { padding: 0 0 1.4rem; color: var(--muted); font-size: 1rem; }
details.qa .a a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,178,91,.6); text-underline-offset: 3px; }

/* Download */
.download { text-align: center; }
.download h2 { max-width: 16ch; margin-inline: auto; }
.download .lede { margin: 1rem auto 0; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 860px; margin: 2.5rem auto 0; text-align: left; }
.dl { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; border-radius: var(--radius); background: var(--bg-2); }
.dl h3 { font-size: 1.0625rem; margin-bottom: .25rem; }
.dl a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .65rem .85rem; border-radius: var(--radius-sm); background: var(--bg-3); font-size: .9375rem; font-weight: 500; transition: background-color var(--dur), color var(--dur); }
.dl a:hover { background: var(--accent); color: var(--accent-ink); }
.dl a small { font-size: .8125rem; opacity: .75; font-weight: 400; }
.dl.is-you { box-shadow: inset 0 0 0 1.5px var(--accent); }
.foot-note { margin: 1.5rem auto 0; max-width: 40rem; font-size: .875rem; color: var(--faint); }
.foot-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem; font-size: .9375rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.site-footer nav h2 { font: 500 .8125rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: .4rem; }
.site-footer a:hover { color: var(--text); }
.site-footer .fine { font-size: .8125rem; color: var(--faint); max-width: 32ch; }
.site-footer .fine .brand { color: var(--text); margin-bottom: .8rem; }

/* Compare subpages */
.page-hero { padding-top: clamp(8rem, 15vw, 10rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); max-width: 18ch; }
.page-hero .lede { margin-top: 1.25rem; max-width: 40rem; }
.crumbs { margin-bottom: 1.75rem; font-size: .875rem; color: var(--faint); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.crumbs li { list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; }
.crumbs a:hover { color: var(--text); }
.checked { margin-top: 1rem; font-size: .875rem; color: var(--faint); }
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.verdict .pick { padding: 1.75rem; border-radius: var(--radius); background: var(--bg-2); }
.verdict .pick.us { box-shadow: inset 0 0 0 1.5px var(--accent); }
.verdict h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: .75rem 0 0; }
.verdict ul { margin: 1rem 0 0; padding-left: 1.1rem; display: grid; gap: .5rem; color: var(--muted); font-size: 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--gutter); }
.diff-title { margin-top: .75rem; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.sources { font-size: .875rem; color: var(--faint); }
.sources a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius); background: var(--bg-2); }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); max-width: 18ch; }
.cta-band .hero-actions { margin-top: 0; justify-content: flex-start; }

/* Reveal: visible without JS; JS hides then reveals */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.reduced [data-reveal] { opacity: 1 !important; transform: none !important; }

/* Responsive */
@media (max-width: 1060px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .site-header.open { background: var(--bg); }
  .site-header.open .nav { display: flex; position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: var(--bg); font-size: 1.25rem; color: var(--text); box-shadow: 0 1px 0 var(--line); }
  .site-header.open .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .steps, .features, .verdict, .two-col, .dl-grid, .flow { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .fine { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Hero demo video */
.hero-video { max-width: 1120px; }
.hero-video video { width: 100%; height: auto; display: block; border-radius: var(--radius); background: #111; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0,0,0,.75); }
.hero-video figcaption { margin-top: 1rem; font-size: .9375rem; color: var(--faint); }
.video-toggle { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(12,31,27,.78); color: var(--text); cursor: pointer; opacity: .8; transition: opacity var(--dur), transform var(--dur) var(--ease-out); backdrop-filter: blur(6px); }
.video-toggle:hover, .video-toggle:focus-visible { opacity: 1; transform: scale(1.06); }
.video-toggle svg { width: 16px; height: 16px; }
.video-toggle .i-play { display: none; }
.video-toggle.paused .i-play { display: block; }
.video-toggle.paused .i-pause { display: none; }
@media (max-width: 520px) { .video-toggle { right: 8px; top: 8px; width: 34px; height: 34px; } }

/* Hero launch film: autoplays muted when scrolled into view; speaker and pause controls */
.video-controls { position: absolute; right: 14px; top: 14px; display: flex; gap: 8px; }
.video-controls .video-toggle { position: static; }
.video-toggle .i-sound, .video-toggle.on .i-muted { display: none; }
.video-toggle.on .i-sound { display: block; }
.video-toggle.sound svg { width: 18px; height: 18px; }
.hero-video video[data-film] { aspect-ratio: 16 / 9; }
.demo-frame { position: relative; max-width: 1120px; margin: 0 auto; }
@media (max-width: 640px) {
  .hero { padding-top: 6.5rem; }
  .hero-shot { margin-top: 2rem; }
  .hero-video { margin-inline: calc(10px - var(--gutter)); }
  .hero-video video { border-radius: 10px; }
  .hero-video figcaption { padding-inline: var(--gutter); font-size: .875rem; }
  .hero-shot::before { inset: 0 0 -8%; }
}
@media (max-width: 520px) {
  .video-controls { right: 8px; top: 8px; gap: 6px; }
  .video-controls .video-toggle { width: 34px; height: 34px; }
}
