/* Chopp — same palette as the app (Extensions.swift tr* tokens). */
:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #ffffff;
  --text: #000000;
  --text-2: #6e737a;
  --text-3: #a3a8b0;
  --line: rgba(0, 0, 0, 0.08);
  --positive: #34c759;
  --negative: #ff3b30;
  --radius: 28px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #111111;
    --surface-2: #1c1c1e;
    --text: #ffffff;
    --text-2: #8c939c;
    --text-3: #6b7078;
    --line: rgba(255, 255, 255, 0.1);
    --positive: #30d158;
    --negative: #ff453a;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 24px; }
.logo { display: block; width: 84px; }
.logo img { width: 100%; }
.logo .on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo .on-light { display: none; }
  .logo .on-dark { display: block; }
}
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav ul a { text-decoration: none; color: var(--text-2); }
.nav ul a:hover { color: var(--text); }
@media (max-width: 720px) { .nav ul { display: none; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: 600 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { height: 34px; padding: 0 16px; font-size: 14px; }
.btn[aria-disabled="true"] { cursor: default; }
.btn svg { width: 16px; height: 16px; }

/* Type */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; }
h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.02; }
h2 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.06; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--text-2); letter-spacing: -0.015em; }
.muted { color: var(--text-2); }
.small { font-size: 13px; line-height: 1.5; color: var(--text-2); }
p { margin: 0; }

/* Sections */
section { padding: clamp(80px, 12vw, 140px) 0; }
.section-head { max-width: 760px; }
.section-head .lead { margin-top: 20px; }
.center { text-align: center; margin-inline: auto; }

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 104px); padding-bottom: 0; overflow: hidden; }
.hero .lead { max-width: 640px; margin: 24px auto 0; }
.hero-cta { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-shots {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(12px, 3vw, 40px);
  margin-top: clamp(56px, 8vw, 88px);
  margin-bottom: -2px;
}
.hero-shots .shot { width: clamp(150px, 26vw, 300px); }
.hero-shots .shot.side { width: clamp(120px, 21vw, 250px); opacity: 0.96; }
@media (max-width: 640px) { .hero-shots .shot.side { display: none; } .hero-shots .shot { width: 72%; } }

/* Screenshots: the real app, no fake chrome */
.shot {
  border-radius: clamp(22px, 3.4vw, 44px);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(0, 0, 0, 0.35);
  background: var(--surface);
}
.hero-shots .shot { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 32px 28px 0; overflow: hidden; display: flex; flex-direction: column; }
.step .num { font-size: 15px; font-weight: 600; color: var(--text-2); }
.step h3 { margin-top: 10px; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.step .shot { margin-top: 32px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } .step .shot { width: 78%; margin-inline: auto; } }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.split .shot { width: min(340px, 100%); margin-inline: auto; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .media { order: 2; } }

.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.outcome { background: var(--surface); border-radius: 20px; padding: 22px; }
.outcome .value { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 4px; }
.outcome .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.outcome.ok .label { color: var(--positive); }
.outcome.over .label { color: var(--negative); }
.outcome p { font-size: 15px; color: var(--text-2); }

/* Big number band */
.band { background: #000; color: #fff; }
@media (prefers-color-scheme: dark) { .band { background: #111; } }
.band .lead { color: #a1a1a6; }
.split-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; margin-top: 56px; gap: 4px; }
.split-bar span:first-child { flex: 70; background: var(--positive); border-radius: 99px; }
.split-bar span:last-child { flex: 30; background: #48484a; border-radius: 99px; }
.split-legend { display: flex; justify-content: space-between; margin-top: 14px; font-size: 15px; }
.split-legend b { font-size: 28px; letter-spacing: -0.03em; display: block; }
.band .small { color: #8e8e93; margin-top: 40px; max-width: 720px; }

/* Facts grid */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.fact { background: var(--surface); border-radius: var(--radius); padding: 32px 28px; }
.fact svg { width: 28px; height: 28px; color: var(--text); }
.fact h3 { margin-top: 20px; }
.fact p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 40px 24px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 40px 26px 0; color: var(--text-2); }

/* Closing */
.closing { text-align: center; }
.closing img.icon { width: 96px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 0 0 1px var(--line); }
.closing .hero-cta { margin-top: 32px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 13px; color: var(--text-2); }
footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
footer .fine { margin-top: 20px; max-width: 760px; line-height: 1.55; }

/* Document pages (legal, support, invite) */
.doc { padding: clamp(48px, 8vw, 96px) 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); }
.doc .meta { margin-top: 12px; color: var(--text-2); font-size: 15px; }
.doc .intro { margin-top: 32px; font-size: 19px; line-height: 1.5; }
.doc h2 { font-size: 21px; letter-spacing: -0.02em; margin-top: 40px; }
.doc p { margin-top: 10px; color: var(--text-2); }
.doc p a:not(.btn) { color: var(--text); }
.note { margin-top: 32px; padding: 18px 20px; border-radius: 16px; background: var(--surface); font-size: 15px; color: var(--text-2); }
.code {
  display: inline-block;
  margin-top: 28px;
  padding: 18px 28px;
  border-radius: 18px;
  background: var(--surface);
  font: 700 34px/1 var(--font);
  letter-spacing: 0.08em;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Two phones side by side: blocked, then the optional purchase */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; max-width: 520px; margin-inline: auto; }
.split .pair .shot { width: 100%; }
.pair .shot:last-child { margin-top: 56px; }
.step .shot { aspect-ratio: 780 / 940; object-fit: cover; object-position: top; margin-top: auto; }
.step p { margin-bottom: 32px; }
