/* ─────────────────────────────────────────────────────────────
   SnapCount — one page, no build, no tracking, no cookie banner.
   The hero is the product: a working console, not a screenshot.
   ───────────────────────────────────────────────────────────── */

:root{
  color-scheme: light dark;

  --slate-1:#4A6BD0; --slate:#3F5FBF; --slate-2:#2E4A9E;
  --crimson:#E11D48; --crimson-2:#B8123A;
  --turf-1:#2F9A46; --turf-2:#1F7A35;
  --gold:#E3B23C; --sky:#3B8BEA;

  --paper: light-dark(#F7F8FA, #10131A);
  --panel: light-dark(#FFFFFF, #181C25);
  --panel-2: light-dark(#F1F3F7, #202634);
  --ink:   light-dark(#171A1F, #F2F4F8);
  --ink-2: light-dark(#5A6472, #A3AEC0);
  --ink-3: light-dark(#8B94A3, #78849A);
  --edge:  light-dark(#E1E4EA, #2A3240);
  --hairline: light-dark(#EDEFF3, #232A36);
  --shadow: light-dark(0 10px 30px rgba(23,26,31,.10), 0 10px 30px rgba(0,0,0,.5));
  --shadow-lift: light-dark(0 18px 44px rgba(23,26,31,.16), 0 18px 44px rgba(0,0,0,.6));

  --display: Anton, "Arial Narrow", system-ui, sans-serif;
  --text: Archivo, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: 1160px;
}

*,*::before,*::after{ box-sizing:border-box }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--text); font-size:17px; line-height:1.55;
  font-synthesis-weight:none;
}
img{ max-width:100%; display:block }
a{ color:inherit }
h1,h2,h3{ font-family:var(--display); font-weight:400; letter-spacing:.01em; margin:0; text-wrap:balance; line-height:.98 }
p{ text-wrap:pretty }
.wrap{ max-width:var(--page); margin-inline:auto; padding-inline:24px }
.eyebrow{ font:800 11px/1 var(--text); letter-spacing:.16em; text-transform:uppercase; color:var(--ink-3) }

/* ── header ────────────────────────────────────────────────── */
header{
  position:sticky; top:0; z-index:50;
  background: light-dark(rgba(247,248,250,.82), rgba(16,19,26,.82));
  backdrop-filter: blur(14px) saturate(1.6);
  border-bottom:1px solid var(--hairline);
}
.bar{ display:flex; align-items:center; gap:14px; height:62px }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; font-weight:800 }
.brand img{ width:30px; height:30px; border-radius:7px }
.bar nav{ margin-left:auto; display:flex; align-items:center; gap:6px }
.bar nav a{ text-decoration:none; font:700 14px/1 var(--text); color:var(--ink-2); padding:9px 12px; border-radius:8px }
.bar nav a:hover{ color:var(--ink); background:var(--panel-2) }
.bar nav a.cta{ color:#fff; background:var(--slate); padding:9px 15px }
.bar nav a.cta:hover{ background:var(--slate-2); color:#fff }
@media (max-width:640px){ .bar nav a:not(.cta){ display:none } }

/* ── buttons ───────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font:400 19px/1 var(--display); letter-spacing:.02em;
  padding:16px 24px; border-radius:10px; border:1px solid transparent;
  text-decoration:none; cursor:pointer; transition:transform .06s ease, background .15s ease;
}
.btn:active{ transform:scale(.985) }
.btn-primary{ background:var(--slate); color:#fff; box-shadow:var(--shadow) }
.btn-primary:hover{ background:var(--slate-2) }
.btn-primary[aria-disabled="true"]{ background:var(--panel-2); color:var(--ink-3); box-shadow:none; cursor:default; border-color:var(--edge) }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--edge) }
.btn-ghost:hover{ background:var(--panel-2) }
.btn svg{ width:20px; height:20px; flex:none }

/* ── hero ──────────────────────────────────────────────────── */
.hero{ padding:clamp(36px,7vw,84px) 0 clamp(30px,5vw,60px) }
.hero-grid{ display:grid; gap:clamp(28px,5vw,56px); grid-template-columns:1fr; align-items:center }
@media (min-width:940px){ .hero-grid{ grid-template-columns:1.02fr .98fr } }
.hero h1{ font-size:clamp(46px,7.4vw,84px); margin:14px 0 0 }
.hero .lede{ font-size:clamp(17px,2vw,20px); color:var(--ink-2); margin:18px 0 0; max-width:52ch }
.hero .lede b{ color:var(--ink); font-weight:700 }
.hero-cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:26px }
.trust{ margin-top:18px; font-size:14px; color:var(--ink-3); display:flex; flex-wrap:wrap; gap:6px 16px }
.trust span{ display:inline-flex; align-items:center; gap:7px }
.dot{ width:5px; height:5px; border-radius:50%; background:var(--turf-1); display:inline-block }

/* ── the playable console ──────────────────────────────────── */
.console{
  background:var(--panel); border:1px solid var(--edge); border-radius:20px;
  box-shadow:var(--shadow-lift); padding:14px; container-type:inline-size;
  max-width:440px; width:100%; margin-inline:auto;
}
.try{
  display:flex; align-items:center; gap:8px; justify-content:center;
  font:800 11px/1 var(--text); letter-spacing:.16em; text-transform:uppercase;
  color:var(--slate); padding:2px 0 12px; margin:0;
}
.try::before,.try::after{ content:""; height:1px; flex:1; background:var(--hairline) }

.score{
  display:flex; align-items:center; border-radius:12px; padding:9px 12px;
  background:linear-gradient(165deg,var(--slate-1),var(--slate-2)); color:#fff;
}
.side{ flex:1; text-align:center }
.side .nm{ font:700 10px/1 var(--text); letter-spacing:.13em; text-transform:uppercase; opacity:.82 }
.side .pts{ font:400 42px/1 var(--display); font-variant-numeric:tabular-nums; margin-top:4px;
  display:flex; align-items:center; justify-content:center; gap:7px }
.side.has .nm{ opacity:1 }
.ball-ico{ width:20px; height:12px; flex:none; opacity:0; transition:opacity .2s ease }
.side.has .ball-ico{ opacity:1 }
.pts .num.bump{ animation:bump .45s cubic-bezier(.2,1.5,.4,1) }
@keyframes bump{ 0%{transform:scale(1)} 35%{transform:scale(1.22)} 100%{transform:scale(1)} }

.situation{ display:flex; align-items:baseline; gap:10px; padding:12px 4px 10px }
.dd{ font:400 26px/1 var(--display); font-variant-numeric:tabular-nums }
.at{ font:700 13px/1 var(--text); color:var(--ink-2) }
.situation .undo{
  margin-left:auto; font:700 11px/1 var(--text); letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-3); background:none; border:1px solid var(--edge); border-radius:7px;
  padding:7px 10px; cursor:pointer;
}
.situation .undo:hover:not(:disabled){ color:var(--ink); background:var(--panel-2) }
.situation .undo:disabled{ opacity:.35; cursor:default }

/* field */
.field{
  position:relative; height:104px; border-radius:8px; overflow:hidden;
  background:linear-gradient(180deg,var(--turf-1),var(--turf-2));
  touch-action:none; user-select:none;
}
.field .stripes{
  position:absolute; inset:0 9%;
  background:repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 2px), rgba(255,255,255,.72) calc(12.5% - 2px) 12.5%);
}
.field .hash{ position:absolute; left:9%; right:9%; height:0; border-top:2px dashed rgba(255,255,255,.42) }
.field .hash.a{ top:34% } .field .hash.b{ top:66% }
.ez{ position:absolute; top:0; bottom:0; width:9%; display:grid; place-items:center }
.ez.l{ left:0; background:var(--slate) } .ez.r{ right:0; background:var(--crimson) }
.ez span{ font:400 12px/1 var(--display); color:#fff; letter-spacing:.1em;
  writing-mode:vertical-rl; transform:rotate(180deg); opacity:.92 }
.ez.r span{ transform:none }
.marker{ position:absolute; top:0; bottom:0; width:3px; margin-left:-1.5px }
.marker.los{ background:var(--sky); box-shadow:0 0 8px rgba(59,139,234,.8) }
.marker.ltg{ background:var(--gold); box-shadow:0 0 8px rgba(227,178,60,.8) }
.pill{ position:absolute; top:50%; translate:-50% -50%; width:30px; height:19px;
  transition:left .34s cubic-bezier(.3,.9,.3,1) }
.pill svg{ width:100%; height:100%; filter:drop-shadow(0 2px 4px rgba(0,0,0,.45)) }
.field.armed{ cursor:crosshair }
.field.armed .pill{ cursor:grab }
.field .flash{ position:absolute; inset:0; background:#fff; opacity:0; pointer-events:none }
.field .flash.go{ animation:flash .5s ease-out }
@keyframes flash{ 0%{opacity:.55} 100%{opacity:0} }
.hint{ font:500 12.5px/1.4 var(--text); color:var(--ink-2); text-align:center; padding:8px 4px 0; min-height:34px; margin:0 }
.hint b{ color:var(--ink) }

/* the ask + tiles */
.ask{ font:400 19px/1 var(--display); padding:12px 4px 8px; margin:0 }
.tiles{ display:grid; grid-template-columns:1fr 1fr; gap:8px }
.tiles.three{ grid-template-columns:repeat(4,1fr) }
.tile{
  font:400 18px/1 var(--display); letter-spacing:.02em;
  padding:16px 8px; border-radius:9px; border:1px solid transparent; cursor:pointer;
  background:linear-gradient(165deg,var(--slate-1),var(--slate-2)); color:#fff;
  transition:transform .06s ease, filter .15s ease;
}
.tile:hover{ filter:brightness(1.07) } .tile:active{ transform:scale(.985) }
.tile.quiet{ background:var(--panel-2); color:var(--ink); border-color:var(--edge) }
.tile.quiet:hover{ filter:none; background:light-dark(#E8EBF1,#28303F) }
.tile .who{ display:block; font:500 10.5px/1 var(--text); letter-spacing:.06em; text-transform:uppercase; opacity:.72; margin-top:5px }
.commit{ width:100% }

/* log */
.log{ margin-top:12px; border-top:1px solid var(--hairline); padding-top:10px; display:grid; gap:5px }
.row{
  display:flex; gap:9px; align-items:baseline; font-size:13.5px;
  background:var(--panel-2); border-radius:7px; padding:9px 11px;
  border-left:3px solid transparent; animation:slide .28s ease-out;
}
@keyframes slide{ from{ opacity:0; transform:translateY(-5px) } to{ opacity:1; transform:none } }
.row .d{ color:var(--ink-3); font-size:11px; font-variant-numeric:tabular-nums; flex:none; width:58px }
.row .t{ flex:1 }
.row .y{ font-weight:700; font-variant-numeric:tabular-nums; color:var(--crimson) }
.row.first{ border-left-color:var(--turf-1) } .row.first .y{ color:var(--turf-1) }
.row.six{ border-left-color:var(--gold); background:light-dark(#FFF8E6,#2C2716) }
.log .empty{ color:var(--ink-3); font-size:13.5px; text-align:center; padding:10px 0; margin:0 }

@container (max-width:340px){ .side .pts{ font-size:34px } .field{ height:88px } }

/* ── parent lane ───────────────────────────────────────────── */
.lane{
  background:linear-gradient(165deg,var(--turf-1),var(--turf-2)); color:#fff;
  border-radius:20px; padding:clamp(24px,4vw,40px); margin:clamp(30px,6vw,64px) 0;
  box-shadow:var(--shadow);
}
.lane h2{ font-size:clamp(28px,4vw,40px); margin-top:10px }
.lane p{ color:rgba(255,255,255,.9); max-width:56ch; margin:14px 0 0 }
.lane .eyebrow{ color:rgba(255,255,255,.75) }
.steps{ display:grid; gap:14px; grid-template-columns:1fr; margin-top:26px; counter-reset:s }
@media (min-width:780px){ .steps{ grid-template-columns:repeat(3,1fr) } }
.step{ background:rgba(255,255,255,.13); border-radius:12px; padding:18px }
.step::before{
  counter-increment:s; content:counter(s);
  font:400 20px/1 var(--display); display:grid; place-items:center;
  width:32px; height:32px; border-radius:50%; background:#fff; color:var(--turf-2); margin-bottom:12px;
}
.step b{ display:block; font-size:16px; margin-bottom:4px }
.step span{ color:rgba(255,255,255,.86); font-size:14.5px }
.code-demo{ font:400 26px/1 var(--display); letter-spacing:.34em; background:rgba(0,0,0,.22);
  border-radius:8px; padding:11px 6px 11px 12px; margin-top:12px; text-align:center }

/* ── sections ──────────────────────────────────────────────── */
section{ padding:clamp(40px,7vw,86px) 0 }
.tint{ background:var(--panel); border-block:1px solid var(--hairline) }
.head{ max-width:60ch }
.head h2{ font-size:clamp(32px,4.6vw,52px); margin-top:12px }
.head p{ color:var(--ink-2); font-size:clamp(16px,1.7vw,18.5px); margin:16px 0 0 }

.beats{ display:grid; gap:16px; grid-template-columns:1fr; margin-top:clamp(26px,4vw,44px) }
@media (min-width:800px){ .beats{ grid-template-columns:repeat(3,1fr) } }
.beat{ background:var(--panel); border:1px solid var(--edge); border-radius:16px; padding:24px; box-shadow:var(--shadow) }
.tint .beat{ background:var(--paper) }
.beat h3{ font-size:24px; margin:14px 0 8px }
.beat p{ color:var(--ink-2); font-size:15.5px; margin:0 }
.glyph{ width:44px; height:44px; border-radius:11px; display:grid; place-items:center; background:var(--panel-2) }
.glyph svg{ width:24px; height:24px }

/* price: the heading and the card share the width rather than leaving half of
   the screen empty on a desktop */
.price-grid{ display:grid; gap:clamp(24px,4vw,48px); grid-template-columns:1fr; align-items:center }
@media (min-width:900px){ .price-grid{ grid-template-columns:.85fr 1.15fr } }
.price-grid .head h2{ margin-top:12px }
.price-card{
  background:var(--panel); border:1px solid var(--edge); border-radius:20px;
  box-shadow:var(--shadow-lift); padding:clamp(26px,4vw,44px); max-width:620px;
}
@media (max-width:899px){ .price-card{ margin-top:28px } }
.tag{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin:6px 0 4px }
.tag .n{ font:400 clamp(48px,7vw,72px)/.9 var(--display) }
.tag .per{ font-size:17px; color:var(--ink-2) }
.price-card ul{ list-style:none; padding:0; margin:22px 0 0; display:grid; gap:11px }
.price-card li{ display:flex; gap:11px; align-items:flex-start; font-size:16px }
.price-card li svg{ width:18px; height:18px; flex:none; margin-top:4px; color:var(--turf-1) }
.fine{ color:var(--ink-3); font-size:14px; margin-top:22px }

.centred{ margin-inline:auto; text-align:center }
.centred p{ margin-inline:auto }

/* stance */
.stance{ display:grid; gap:14px; grid-template-columns:1fr; margin-top:28px }
@media (min-width:720px){ .stance{ grid-template-columns:1fr 1fr } }
.stance div{ border:1px solid var(--edge); border-radius:14px; padding:20px 22px; background:var(--panel) }
.tint .stance div{ background:var(--paper) }
.stance b{ display:block; margin-bottom:5px; font-size:16px }
.stance span{ color:var(--ink-2); font-size:15px }

/* closer */
.closer{ text-align:center; padding-bottom:clamp(50px,8vw,100px) }
.closer h2{ font-size:clamp(34px,5.4vw,60px) }
.closer p{ color:var(--ink-2); max-width:46ch; margin:16px auto 0 }
.closer .hero-cta{ justify-content:center }

footer{ border-top:1px solid var(--hairline); padding:34px 0 46px; color:var(--ink-3); font-size:14.5px }
.foot{ display:flex; flex-wrap:wrap; gap:10px 22px; align-items:center }
footer a{ color:var(--ink-2); text-decoration:none }
footer a:hover{ color:var(--ink); text-decoration:underline }
.foot .sp{ margin-left:auto }

/* reveal on scroll where the browser can, never for people who asked for less motion */
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline: view()){
    .reveal{ animation:rise linear both; animation-timeline:view(); animation-range:entry 8% cover 26% }
    @keyframes rise{ from{ opacity:0; transform:translateY(22px) } to{ opacity:1; transform:none } }
  }
}
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto }
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important }
  /* a scroll-driven animation is not shortened by a zero duration — it has to be
     switched off, or its content would sit at the opening keyframe for ever */
  .reveal{ animation:none !important; opacity:1 !important; transform:none !important }
}
:focus-visible{ outline:3px solid var(--slate); outline-offset:3px; border-radius:6px }

/* ── the plain pages: privacy, support ─────────────────────── */
.doc{ max-width:72ch; padding:clamp(30px,6vw,64px) 0 }
.doc h1{ font-size:clamp(34px,5vw,52px); margin-bottom:6px }
.doc h2{ font-size:clamp(21px,2.6vw,26px); margin:36px 0 8px }
.doc p, .doc li{ color:var(--ink-2); font-size:16.5px }
.doc .lede{ color:var(--ink); font-size:18.5px; margin-top:16px }
.doc ul{ padding-left:20px; display:grid; gap:9px }
.doc a{ color:var(--slate); font-weight:700 }
.doc .card{
  background:var(--panel); border:1px solid var(--edge); border-radius:14px;
  padding:18px 20px; margin:14px 0;
}
.doc .card p{ margin:0 }
.doc .card p + p{ margin-top:8px }

/* ── waitlist ──────────────────────────────────────────────── */
.signup{ display:flex; gap:10px; flex-wrap:wrap; margin-top:18px }
.signup input{
  flex:1 1 240px; min-width:0; font:500 16.5px/1 var(--text); color:var(--ink);
  background:var(--panel); border:1px solid var(--edge); border-radius:10px;
  padding:16px 16px;
}
.signup input::placeholder{ color:var(--ink-3) }
.signup input:focus{ outline:none; border-color:var(--slate); box-shadow:0 0 0 3px light-dark(rgba(63,95,191,.16),rgba(74,107,208,.28)) }
.signup button{ flex:0 0 auto }
.signup-note{ color:var(--ink-3); font-size:13.5px; margin:12px 0 0 }
.signup-note.ok{ color:var(--turf-1); font-weight:600 }
.signup-note.bad{ color:var(--crimson); font-weight:600 }
.closer .signup{ max-width:520px; margin-inline:auto; justify-content:center }
.closer .signup-note{ text-align:center }

dialog.sheet{
  border:none; padding:0; background:transparent; max-width:min(94vw,520px); width:100%;
  color:var(--ink);
}
dialog.sheet::backdrop{ background:light-dark(rgba(23,26,31,.45),rgba(0,0,0,.65)); backdrop-filter:blur(3px) }
dialog.sheet .inner{
  background:var(--panel); border:1px solid var(--edge); border-radius:20px;
  box-shadow:var(--shadow-lift); padding:clamp(24px,4vw,34px);
}
dialog.sheet h2{ font-size:clamp(26px,4vw,34px); margin:10px 0 0 }
dialog.sheet p{ color:var(--ink-2); margin:12px 0 0; font-size:16px }
dialog.sheet .close{
  position:absolute; top:14px; right:16px; background:none; border:none; cursor:pointer;
  font:700 14px/1 var(--text); color:var(--ink-3); padding:8px;
}
dialog.sheet .close:hover{ color:var(--ink) }
dialog.sheet .wrapper{ position:relative }
@media (prefers-reduced-motion:no-preference){
  dialog.sheet[open]{ animation:pop .18s ease-out }
  @keyframes pop{ from{ opacity:0; transform:translateY(10px) scale(.98) } to{ opacity:1; transform:none } }
}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0;
}
