:root {
  --bg: #0d1015;
  --bg-2: #141922;
  --panel: #1c222c;
  --line: rgba(233, 236, 241, 0.1);
  --text: #e9ecf1;
  --muted: #a3acba;
  --card: #eef1f5;
  --card-ink: #1b2029;
  --card-muted: #4d5666;
  --rule: #c3d4e8;
  --red: #d9443a;
  --red-ink: #b8322a;
  --marker: #d4f53c;
  --marker-ink: #141a05;
  --you: #8fc1ff;
  --them: #f5b55f;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Karantina", "Rubik", sans-serif;
  --body: "Rubik", "Segoe UI", sans-serif;
  --pen: "Gveret Levin", "Rubik", cursive;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(143, 193, 255, 0.07), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(212, 245, 60, 0.04), transparent 60%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--marker); color: var(--marker-ink); padding: 10px 16px; z-index: 100; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font: 700 clamp(3.6rem, 10vw, 6rem)/0.92 var(--display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2 {
  font: 700 clamp(2.6rem, 6vw, 4.4rem)/0.95 var(--display);
  text-wrap: balance;
  margin-bottom: clamp(28px, 4vw, 48px);
}
h3 { font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
.marker {
  background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%) no-repeat right / 100% 100%;
  color: var(--marker-ink);
  padding-inline: 0.12em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.js .marker { background-size: 0% 100%; transition: background-size 0.9s var(--ease) 0.25s, color 0.3s 0.4s; color: var(--text); }
.js .marker.in { background-size: 100% 100%; color: var(--marker-ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  font: 500 1.0625rem/1 var(--body);
  text-decoration: none; border: 0; border-radius: 6px; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s;
  touch-action: manipulation;
}
.btn-marker { background: var(--marker); color: var(--marker-ink); box-shadow: 0 6px 20px -8px rgba(212, 245, 60, 0.5); }
.btn-marker:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(212, 245, 60, 0.6); }
.btn-marker:active { transform: translateY(0); }
.btn-marker:disabled { opacity: 0.5; cursor: progress; transform: none; }
.btn-ghost { color: var(--text); box-shadow: inset 0 0 0 1px rgba(233, 236, 241, 0.3); background: transparent; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.btn-lg { min-height: 60px; padding: 0 40px; font-size: 1.2rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(13, 16, 21, 0.86);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.9rem/1 var(--display); text-decoration: none; }
.brand-mark {
  width: 22px; height: 16px; border-radius: 2px; background: var(--card);
  background-image: linear-gradient(var(--red) 0 0), repeating-linear-gradient(to bottom, transparent 0 4px, var(--rule) 4px 5px);
  background-size: 100% 1.5px, 100% 100%; background-position: 0 4px, 0 6px; background-repeat: no-repeat;
  transform: rotate(-6deg);
}
.top-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 0.98rem; padding: 8px 0; }
.top-nav a:hover { color: var(--text); }
@media (max-width: 760px) { .top-nav { display: none; } .top .btn { margin-inline-start: auto; } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 120px);
  min-height: calc(100svh - 65px);
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34ch; margin-top: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.meta { margin-top: 28px; color: var(--muted); font-size: 0.92rem; }

.stage-wrap { position: relative; height: clamp(440px, 46vw, 580px); }
.stage { position: absolute; inset: 6% 0 10% 4%; }
.meeting {
  position: absolute; inset: 0;
  background: #161b23; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.meeting-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 0.78rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(217, 68, 58, 0.25); }
.slide {
  position: absolute; inset: 40px 14px 62px 14px;
  background: linear-gradient(160deg, #e7ebf1, #cfd6e0); border-radius: 6px; padding: 7% 8%;
  filter: brightness(0.42) saturate(0.7);
  color: #1b2029;
}
.slide-num { position: absolute; inset-inline-end: 12px; bottom: 10px; font-size: 0.7rem; }
.slide-title { font: 700 clamp(1.5rem, 3vw, 2.4rem)/1 var(--display); }
.slide-bars { display: flex; align-items: flex-end; gap: 6%; height: 52%; margin-top: 8%; }
.slide-bars i { flex: 1; height: var(--h); background: #3a6ea8; border-radius: 3px 3px 0 0; }
.tiles { position: absolute; inset-inline: 14px; bottom: 10px; height: 42px; display: flex; gap: 8px; }
.tiles i { flex: 1; border-radius: 4px; background: #232a35; }

.win {
  position: absolute; z-index: 2;
  background: var(--panel); border: 1px solid rgba(233, 236, 241, 0.14); border-radius: 10px;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.4);
  font-size: 0.86rem; line-height: 1.5;
}
.win-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--marker); }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.win-transcript { top: 0; inset-inline-start: 0; width: 56%; }
.tr { padding: 10px 12px; display: grid; gap: 8px; min-height: 120px; }
.tr li { animation: lineIn 0.5s var(--ease) both; }
.tr b { font-weight: 500; margin-inline-end: 6px; }
.you { color: var(--you); }
.them { color: var(--them); }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } }

.card-sheet {
  background: var(--card); color: var(--card-ink); border-radius: 4px;
  background-image: linear-gradient(var(--red) 0 0), repeating-linear-gradient(to bottom, transparent 0 25px, var(--rule) 25px 26px);
  background-size: 100% 1.5px, 100% 100%; background-position: 0 36px, 0 37px; background-repeat: no-repeat;
  padding: 10px 16px 14px;
  line-height: 26px;
}
.card-slide { font-size: 0.74rem; color: var(--card-muted); font-weight: 500; height: 26px; line-height: 26px; }
.points { margin-top: 2px; }
.points li { position: relative; padding-inline-start: 16px; width: fit-content; max-width: 100%; }
.points li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--card-muted); }
.points li::after {
  content: ""; position: absolute; inset-inline: 12px -2px; top: 50%; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease);
  border-radius: 2px;
}
.points li.done { color: var(--card-muted); }
.points li.done::after { transform: scaleX(1); }
.card-next { font-family: var(--pen); font-size: 1.05rem; color: var(--red-ink); }

.win-card { width: 52%; top: 24%; inset-inline-end: 0; transform: rotate(-1.5deg); }
.win-card .card-sheet { box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.9); border-radius: 4px; }
.win-card.win { background: none; border: 0; }

.win-answer { bottom: 2%; inset-inline-start: 3%; width: 48%; }
.q { padding: 10px 12px 0; color: var(--muted); font-size: 0.8rem; }
.a { padding: 6px 12px 12px; }
.a.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--marker); margin-inline-start: 2px; vertical-align: -2px; animation: pulse 0.8s infinite; }
.demo-tag { position: absolute; bottom: -4px; inset-inline-end: 0; font-size: 0.75rem; color: var(--muted); }

/* ---------- problem ---------- */
.moments { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.moments li { font-size: clamp(1.35rem, 2.8vw, 2.1rem); line-height: 1.3; max-width: 30ch; color: var(--muted); }
.moments li span {
  background: linear-gradient(var(--red), var(--red)) no-repeat right 58% / 0% 3px;
  transition: background-size 1s var(--ease) 0.5s, color 0.6s 0.5s;
}
.moments li.in span { background-size: 100% 3px; }
.problem-close { margin-top: clamp(40px, 6vw, 72px); font-size: clamp(1.2rem, 2vw, 1.5rem); max-width: 40ch; color: var(--text); border-top: 1px solid var(--line); padding-top: 28px; }

/* ---------- how ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px clamp(16px, 2.5vw, 36px) 8px; border-inline-start: 1px solid var(--line); }
.step:first-child { border-inline-start: 0; padding-inline-start: 0; }
.step-n { display: block; font: 700 4.5rem/1 var(--display); color: var(--marker); margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 34ch; }
.step:nth-child(2) { transition-delay: 0.08s; }
.step:nth-child(3) { transition-delay: 0.16s; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 0; display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; }
  .step:first-child { border-top: 0; }
  .step-n { grid-row: span 2; font-size: 3.4rem; margin: 0; }
}

/* ---------- pinned story ---------- */
.story { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter) 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 80px); }
.story-stage { position: relative; }
.sstage { position: sticky; top: 14vh; height: 72vh; max-height: 600px; }
.ss-screen {
  position: absolute; inset: 0; border-radius: 12px; border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, #12161d 0 14px, #141920 14px 28px);
  display: grid; place-items: center; color: rgba(163, 172, 186, 0.5); font-size: 0.85rem;
}
.ss { position: absolute; transition: transform 0.6s var(--ease), filter 0.6s var(--ease), box-shadow 0.6s var(--ease); filter: brightness(0.38) saturate(0.3); }
.ss-t { top: 6%; inset-inline-start: 5%; width: 60%; background: var(--panel); border: 1px solid rgba(233, 236, 241, 0.14); border-radius: 10px; font-size: 0.9rem; }
.ss-c { top: 30%; inset-inline-end: 5%; width: 58%; transform: rotate(1.5deg); }
.ss-c .card-sheet { box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.9); font-size: 0.95rem; }
.ss-a { bottom: 6%; inset-inline-start: 8%; width: 60%; background: var(--panel); border: 1px solid rgba(233, 236, 241, 0.14); border-radius: 10px; font-size: 0.9rem; }
.sstage[data-active="0"] .ss-t,
.sstage[data-active="1"] .ss-c,
.sstage[data-active="2"] .ss-a { filter: none; z-index: 3; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 2px var(--marker); }
.sstage[data-active="1"] .ss-c { box-shadow: none; transform: rotate(0deg) scale(1.04); }
.sstage[data-active="1"] .ss-c .card-sheet { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 2px var(--marker); }
.tr-sm { min-height: 0; }

.story-steps { padding-bottom: 20vh; }
.sstep { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.35; transition: opacity 0.5s var(--ease); }
.sstep.active { opacity: 1; }
.sstep-k { font-family: var(--pen); font-size: 1.5rem; color: var(--marker); }
.sstep h3 { font: 700 clamp(2.4rem, 4.5vw, 3.6rem)/1 var(--display); margin: 6px 0 16px; }
.sstep p:last-child { font-size: 1.15rem; color: var(--muted); max-width: 36ch; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-stage { position: sticky; top: 64px; z-index: 5; height: 330px; background: var(--bg); padding-bottom: 12px; }
  .sstage { position: relative; top: 0; height: 318px; }
  .ss { font-size: 0.78rem !important; }
  .ss-t { width: 74%; }
  .ss-c { width: 72%; top: 28%; }
  .ss-c .card-sheet { font-size: 0.8rem; }
  .ss-a { width: 76%; inset-inline-start: 4%; }
  .story-steps { padding-bottom: 8vh; }
  .sstep { min-height: 62vh; justify-content: flex-start; padding-top: 32px; }
}

/* ---------- invisible ---------- */
.invisible { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.inv-copy > p { color: var(--muted); font-size: 1.15rem; max-width: 40ch; }
.seg { display: inline-flex; margin-top: 32px; padding: 4px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.seg-btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: 500 1rem var(--body); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.seg-btn[aria-pressed="true"] { background: var(--card); color: var(--card-ink); }
.inv-stage { position: relative; aspect-ratio: 16 / 10.5; }
.inv-screen {
  position: absolute; inset: 0; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #e7ebf1, #cfd6e0); color: var(--card-ink); padding: 8%;
  transition: filter 0.6s var(--ease);
  filter: brightness(0.45) saturate(0.7);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.inv-slide-title { font: 700 clamp(1.6rem, 3.4vw, 2.6rem)/1 var(--display); }
.inv-slide-list { margin-top: 8%; display: grid; gap: 14px; }
.inv-slide-list li { height: 12px; border-radius: 6px; background: #9aa6b8; width: 80%; }
.inv-slide-list li:nth-child(2) { width: 64%; }
.inv-slide-list li:nth-child(3) { width: 72%; }
.inv-win {
  position: absolute; display: grid; gap: 7px; align-content: start; padding: 10px 12px;
  background: var(--panel); border: 1px solid rgba(233, 236, 241, 0.16); border-radius: 8px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.9);
  font-size: 0.72rem; color: var(--muted);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), clip-path 0.6s var(--ease);
  clip-path: inset(0 0 0 0 round 8px);
}
.inv-win i { height: 6px; border-radius: 3px; background: rgba(233, 236, 241, 0.25); }
.inv-win i:nth-of-type(2) { width: 75%; }
.inv-w1 { top: -6%; inset-inline-start: -4%; width: 40%; }
.inv-w2 { top: 30%; inset-inline-end: -5%; width: 38%; padding: 8px 12px 14px; background: var(--card); border: 0; color: var(--card-muted); }
.inv-w2 span { padding-bottom: 6px; border-bottom: 1.5px solid var(--red); }
.inv-w2 i { background: #c3cbd7; }
.inv-w3 { bottom: -8%; inset-inline-start: 10%; width: 42%; }
.inv-stage[data-view="audience"] .inv-screen { filter: none; }
.inv-stage[data-view="audience"] .inv-win { opacity: 0; transform: scale(0.96); clip-path: inset(50% 50% 50% 50% round 8px); }
.inv-caption { position: absolute; bottom: -56px; inset-inline-start: 0; font-size: 0.9rem; color: var(--muted); }

@media (max-width: 900px) {
  .invisible { grid-template-columns: 1fr; }
  .inv-stage { margin: 24px 12px 56px; }
  .inv-w1 { inset-inline-start: -2%; }
  .inv-w2 { inset-inline-end: -2%; }
}

/* ---------- who ---------- */
.who { position: relative; }
.who-list { border-top: 1px solid var(--line); }
.who-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: background-color 0.3s;
}
.who-list h3 { font: 700 clamp(1.9rem, 3.6vw, 2.9rem)/1 var(--display); }
.who-list p { color: var(--muted); font-size: 1.1rem; }
.who-list li:hover h3 { color: var(--marker); }
.pen-note {
  position: absolute; inset-inline-end: var(--gutter); top: clamp(80px, 12vw, 160px);
  font: 1.8rem/1 var(--pen); color: var(--red); transform: rotate(-4deg);
}
@media (max-width: 760px) {
  .who-list li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .pen-note { position: static; margin-top: 28px; display: block; }
}

/* ---------- pricing ---------- */
.sub { color: var(--muted); font-size: 1.15rem; max-width: 46ch; margin-top: -16px; margin-bottom: 48px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 16px 22px 22px; min-height: 340px;
  transition: transform 0.4s var(--ease);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.95);
}
.plan:nth-child(1) { transform: rotate(1deg); }
.plan:nth-child(3) { transform: rotate(-0.8deg); }
.plan:hover { transform: rotate(0deg) translateY(-6px); }
.plan.featured { transform: translateY(-14px); }
.plan.featured:hover { transform: translateY(-18px); }
.plan-name { font: 700 2.4rem/26px var(--display); height: 26px; padding-top: 6px; }
.plan-price { margin-top: 30px; font: 700 4.8rem/52px var(--display); }
.plan-price small { font-size: 2rem; margin-inline-start: 4px; }
.plan-desc { color: var(--card-muted); margin-top: 0; }
.plan-facts { margin: 0 0 22px; }
.plan-facts li { font-variant-numeric: tabular-nums; }
.plan .btn { margin-top: auto; background: var(--card-ink); color: var(--card); box-shadow: none; }
.plan .btn:hover { background: #000; }
.plan.featured .btn { background: var(--marker); color: var(--marker-ink); }
.plan-flag { position: absolute; top: -18px; inset-inline-end: 18px; font: 1.6rem/1 var(--pen); color: var(--marker); transform: rotate(-5deg); }
.fine { margin-top: 32px; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; max-width: 440px; }
  .plan, .plan:nth-child(n), .plan.featured { transform: none; min-height: 0; }
}

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--marker); }
.faq details p { color: var(--muted); padding-bottom: 24px; max-width: 64ch; }
.faq details p a { color: var(--text); }

/* ---------- final ---------- */
.final { text-align: center; display: grid; justify-items: center; gap: 44px; padding-bottom: clamp(100px, 14vw, 180px); }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  padding: 32px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem;
}
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; padding: 8px 0; }
.foot nav a:hover { color: var(--text); }
.foot > p { margin-inline-start: auto; }

/* ---------- checkout dialog ---------- */
.checkout {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 8px;
  color: var(--card-ink); background: var(--card);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
}
.checkout::backdrop { background: rgba(5, 7, 10, 0.72); backdrop-filter: blur(3px); }
.checkout[open] { animation: dlgIn 0.35s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.checkout form {
  position: relative; padding: 12px 24px 26px; display: grid;
  background-image: linear-gradient(var(--red) 0 0); background-size: 100% 1.5px; background-position: 0 38px; background-repeat: no-repeat;
}
.checkout h2 { font: 700 2.6rem/1 var(--display); margin-top: 22px; }
.co-sub { color: var(--card-muted); margin: 8px 0 18px; font-size: 0.98rem; }
.co-close { position: absolute; top: 4px; inset-inline-end: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--card-muted); cursor: pointer; display: grid; place-items: center; border-radius: 6px; }
.co-close:hover { color: var(--card-ink); }
.checkout label { font-weight: 500; font-size: 0.95rem; margin-top: 10px; }
.checkout input:not([type="checkbox"]) {
  min-height: 48px; margin-top: 6px; padding: 0 14px; font: 400 1rem var(--body); color: var(--card-ink);
  background: #fff; border: 1px solid #c4ccd8; border-radius: 6px;
}
.checkout input[dir="ltr"] { text-align: left; }
.checkout input:focus-visible { outline: 3px solid #3a6ea8; outline-offset: 1px; }
.checkout input[aria-invalid="true"] { border-color: var(--red-ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin-top: 16px !important; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--card-ink); flex: none; }
.field-err { color: var(--red-ink); font-size: 0.88rem; min-height: 0; }
.field-err:not(:empty) { margin-top: 4px; }
.form-err { color: var(--red-ink); background: rgba(217, 68, 58, 0.1); border-radius: 6px; font-size: 0.95rem; }
.form-err:not(:empty) { padding: 10px 12px; margin-top: 14px; }
.checkout .btn { margin-top: 18px; }

/* ---------- inner pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) 96px; }
.page h1 { font: 700 clamp(2.8rem, 7vw, 4.4rem)/1 var(--display); margin-bottom: 20px; }
.page h2 { font-weight: 500; font-size: 1.3rem; margin: 36px 0 10px; }
.page p, .page li { color: var(--muted); max-width: 68ch; }
.page ul { list-style: disc; padding-inline-start: 22px; display: grid; gap: 6px; }
.draft-flag { display: inline-block; font: 1.4rem/1.2 var(--pen); color: var(--red); border: 2px solid var(--red); padding: 4px 12px; transform: rotate(-2deg); margin-bottom: 24px; }

/* success */
.status-card { margin-top: 28px; padding: 18px 24px 26px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.95); }
.status-card[hidden] { display: none; }
.status-card .card-slide { margin-bottom: 18px; }
.status-card p { color: var(--card-muted); }
.status-card h2 { color: var(--card-ink); font: 700 2.4rem/1 var(--display); margin: 8px 0 12px; }
.waiting-line { height: 4px; border-radius: 2px; background: rgba(27, 32, 41, 0.1); overflow: hidden; margin: 22px 0 12px; }
.waiting-line::after { content: ""; display: block; height: 100%; width: 35%; background: var(--card-ink); border-radius: 2px; animation: wait 1.8s var(--ease) infinite; }
@keyframes wait { from { transform: translateX(100%); } to { transform: translateX(-300%); } }
.key-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 8px; }
.key {
  font: 700 clamp(1.25rem, 5vw, 2rem)/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em;
  color: var(--card-ink); background: var(--marker); padding: 10px 14px; border-radius: 4px; direction: ltr; word-break: break-all;
}
.btn-ink { background: var(--card-ink); color: var(--card); }
.btn-ink:hover { background: #000; }
.btn-line { background: transparent; color: var(--card-ink); box-shadow: inset 0 0 0 1.5px var(--card-ink); }
.install { counter-reset: s; margin-top: 22px; display: grid; gap: 4px; }
.install li { counter-increment: s; color: var(--card-ink) !important; padding-inline-start: 34px; position: relative; list-style: none; }
.install li::before { content: counter(s); position: absolute; inset-inline-start: 0; font: 700 1.6rem/26px var(--display); color: var(--red-ink); }
.copied { font-size: 0.9rem; color: var(--card-ink); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- responsive hero ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 48px; }
  .stage-wrap { height: 460px; max-width: 620px; width: 100%; }
}
@media (max-width: 560px) {
  .stage-wrap { height: 400px; }
  .stage { inset: 10% 0 12% 0; }
  .win { font-size: 0.74rem; }
  .win-transcript { width: 72%; }
  .win-answer { width: 66%; bottom: 0; inset-inline-start: 0; }
  .win-card { width: 64%; top: 30%; }
  .card-sheet { line-height: 22px; background-image: linear-gradient(var(--red) 0 0), repeating-linear-gradient(to bottom, transparent 0 21px, var(--rule) 21px 22px); background-size: 100% 1.5px, 100% 100%; background-position: 0 32px, 0 33px; padding: 8px 12px 10px; }
  .card-slide { height: 22px; line-height: 22px; font-size: 0.68rem; }
  .points li::before { top: 9px; }
  .card-next { font-size: 0.92rem; }
  .tr { min-height: 104px; }
  .demo-tag { bottom: -10px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  [data-parallax] { transform: none !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- download (people who already have a code) ---------- */
.dl-card { background: var(--card); color: var(--card-ink); border-radius: 6px; padding: clamp(22px, 4vw, 40px);
  max-width: 680px; margin-top: 32px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  background-image: repeating-linear-gradient(transparent 0 31px, var(--rule) 31px 32px); }
.dl-card .install { margin-top: 26px; }
.dl-fine { color: var(--card-muted); font-size: .9rem; margin-top: 18px; }
.dl-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.dl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-row input { flex: 1 1 220px; min-width: 0; font: 600 1.05rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: 1px;
  padding: 12px 14px; border: 2px solid var(--card-ink); border-radius: 6px; background: #fff; color: var(--card-ink); }
.dl-row input:focus { outline: 3px solid var(--marker); outline-offset: 2px; }
.dl-error { color: var(--red-ink); min-height: 1.4em; margin-top: 8px; font-weight: 600; }
