/* Review Walkthru site. Palette from the review page: ink, blue for actions, green for
   validated, amber for doubts and comments. Radii: controls 10px, panels 14px, badges full. */
@font-face { font-family: Geist; src: url(fonts/Geist-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --soft: #f3f3f5;
  --line: #e3e3e8;
  --ink: #17171c;
  --muted: #5c5c66;
  --blue: #2156d9;
  --blue-ink: #ffffff;
  --blue-soft: #e3eafc;
  --green: #1f8a4c;
  --amber: #b5560a;
  --term: #17171c;
  --term-ink: #d8d8e0;
  --shadow: 0 40px 80px -40px rgb(23 23 28 / 0.35), 0 12px 24px -16px rgb(23 23 28 / 0.18);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --surface: #1b1b1f;
    --soft: #222227;
    --line: #2f2f36;
    --ink: #ececf1;
    --muted: #a4a4b0;
    --blue: #7aa2ff;
    --blue-ink: #0d0f13;
    --blue-soft: #1a2440;
    --green: #46c27c;
    --amber: #f0a24a;
    --term: #0b0b0e;
    --term-ink: #d8d8e0;
    --shadow: 0 40px 80px -40px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: 0.86em; }
h1, h2, h3 { letter-spacing: -0.03em; margin: 0; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; font-weight: 600; max-width: 22ch; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.lead { color: var(--muted); max-width: 62ch; margin: 18px 0 0; font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px 0 160px; }

/* Header */
.top { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); font-weight: 650; letter-spacing: -0.02em; text-decoration: none; }
.brand:hover, .brand:focus, .brand:active { text-decoration: none; }
.nav .link { color: var(--muted); font-size: 15px; text-decoration: none; }
.nav .link:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 1px solid transparent; font: 600 15px/1.2 Geist, sans-serif; white-space: nowrap; cursor: pointer; text-decoration: none; transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), background-color 160ms; }
.btn:hover, .btn:focus, .btn:active { text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--blue); color: var(--blue-ink); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.small { padding: 8px 13px; font-size: 14px; }
.btn:focus-visible, .copy:focus-visible, summary:focus-visible, .rail a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* The review rail: the page reads like a walkthrough. Desktop: fixed on the left. */
.rail { position: fixed; z-index: 1; left: max(24px, calc(50% - 590px + 24px)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 46px; }
.rail::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.rail a { position: relative; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 550; text-decoration: none; }
.rail a:hover, .rail a:focus, .rail a:active { text-decoration: none; color: var(--ink); }
.rail i { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); display: grid; place-items: center; flex: none; transition: background-color 200ms, border-color 200ms, box-shadow 200ms; }
.rail a[data-state="now"] { color: var(--blue); }
.rail a[data-state="now"] i { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.rail a[data-state="done"] i { background: var(--green); border-color: var(--green); }
.rail a[data-state="done"] i::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }

/* Hero */
.hero { padding-top: 64px; }
.hero-text { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.badge { display: inline-block; font-size: 13px; font-weight: 550; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; }
h1 { font-size: clamp(40px, 4.4vw, 54px); line-height: 1.0; font-weight: 600; letter-spacing: -0.045em; margin-top: 18px; }
.sub { color: var(--muted); font-size: 19px; margin: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-visual { position: relative; margin: 56px 0 0; }
.window { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); margin: 0; }
.term { background: var(--term); color: var(--term-ink); border-radius: 12px; padding: 16px 18px; font: 14px/1.7 "Geist Mono", ui-monospace, monospace; box-shadow: 0 28px 56px -24px rgb(0 0 0 / 0.55); }
.term p { margin: 0; white-space: pre-wrap; }
.t-p { color: #7aa2ff; } .t-ok { color: #46c27c; } .t-am { color: #f0a24a; } .t-dim { color: #a4a4b0; }
.hero-term { position: absolute; left: -48px; bottom: 48px; width: 380px; }
.point-card { position: absolute; display: grid; grid-template-columns: 26px 1fr; gap: 10px; width: 270px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 22px 44px -22px rgb(23 23 28 / 0.45); font-size: 14px; line-height: 1.45; color: var(--muted); }
.point-card p { margin: 0; }
.point-card b { display: block; color: var(--ink); font-weight: 600; }
.st { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; }
.st.ok { background: #1f8a4c; } .st.doubt { background: #b5560a; }
.hero-card-1 { right: 330px; top: -26px; }
.hero-note { text-align: right; }
.hero-card-2 { right: -40px; top: 120px; }

/* Sections */
section.wrap { margin-top: 140px; }

/* Why: three pains and their answers, next to the product showing them */
.pains { display: grid; grid-template-columns: 1fr 0.9fr; gap: 56px; align-items: center; margin-top: 48px; }
.pains ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
/* Each pain comes with its answer: a green check, as on the rail. */
.pains li { position: relative; padding-left: 40px; }
.pains li::before { content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); }
.pains li::after { content: ""; position: absolute; left: 7px; top: 10px; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.pains li p { margin: 0; }
.pains .pain { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 6px; }
.proof { margin-top: 72px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: grid; grid-template-columns: 0.8fr 2fr; gap: 32px; }
.proof-head p { color: var(--muted); margin: 8px 0 0; }
.rounds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; }
.rounds li { padding: 0 24px; border-left: 1px solid var(--line); }
.rounds li p { margin: 0; color: var(--muted); font-size: 15px; }
.rounds .round { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.rounds .round::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--amber); }
.rounds .round.done::before { background: var(--green); border-color: var(--green); }
.rounds .big { color: var(--ink) !important; font-size: 26px !important; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin: 10px 0 6px !important; }

/* How: steps on the left, a sticky visual that follows them */
.how { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; margin-top: 48px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { min-height: 58vh; padding: 8px 0 0; }
.steps li:last-child { min-height: 40vh; }
.steps li:not(.on) .num { background: var(--soft); color: var(--muted); }
.steps p { color: var(--muted); margin: 10px 0 0; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 14px; font-weight: 650; margin-right: 10px; vertical-align: 2px; }
.steps h3 { font-size: 22px; }
.steps code { background: var(--soft); border-radius: 6px; padding: 2px 6px; }
.stage { position: sticky; top: 120px; height: min(70vh, 560px); display: grid; align-items: center; }
.frame { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity 300ms, transform 300ms cubic-bezier(0.16, 1, 0.3, 1); }
.stage[data-active="run"] [data-for="run"], .stage[data-active="walk"] [data-for="walk"],
.stage[data-active="send"] [data-for="send"], .stage[data-active="repeat"] [data-for="repeat"] { opacity: 1; transform: none; }
.frame .term { font-size: 15px; padding: 22px 24px; }
.note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* Try it: the real page, playable */
.demo { margin-top: 40px; }
.tabs { height: 42px; display: flex; align-items: flex-end; gap: 2px; padding: 10px 10px 0; background: var(--soft); }
.tabs i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); margin: 0 4px 15px; }
.tabs i:nth-child(3) { margin-right: 12px; }
.tabs span { height: 32px; width: 230px; background: var(--surface); border-radius: 10px 10px 0 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 13px; color: var(--muted); }
.tabs b { width: 15px; height: 15px; border-radius: 4px; background: #17171c; }
.tabs img { width: 15px; height: 15px; }
.panes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 8px; height: 720px; background: var(--surface); }
.panes iframe { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.demo noscript img { width: 100%; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.demo-bar p { margin: 0; font-size: 14px; }
.received { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 28px; }
.received h3 { display: flex; align-items: center; gap: 10px; }
.received h3::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; }
.received p { margin: 8px 0 0; color: var(--muted); }
.received ul { margin: 12px 0 0; padding-left: 20px; }
.received details { margin-top: 14px; }
.received summary { cursor: pointer; font-weight: 550; }
.received pre { background: var(--term); color: var(--term-ink); border-radius: 10px; padding: 16px; overflow: auto; max-height: 320px; font-size: 13px; }

/* Install */
.install { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.install .wide { grid-column: 1 / -1; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.card p { margin: 0; color: var(--muted); }
.card h3 { display: flex; align-items: center; }
.code { position: relative; width: 100%; margin: 0; background: var(--term); color: var(--term-ink); border-radius: 10px; padding: 14px 16px; padding-right: 78px; overflow-x: auto; line-height: 1.7; }
.copy { position: absolute; top: 10px; right: 10px; padding: 5px 11px; border-radius: 8px; border: 1px solid #3a3a44; background: #24242b; color: #ececf1; font: 600 12px/1.4 Geist, sans-serif; cursor: pointer; }
.faq { margin-top: 56px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer { margin-top: 140px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .grow { margin-right: auto; }

/* Privacy page */
.doc { max-width: 680px; padding-top: 56px; }
.doc h1 { font-size: 44px; }
.doc h2 { font-size: 24px; margin: 40px 0 8px; }
.doc p { color: var(--muted); }

/* Without JavaScript the demo cannot run: show its picture and the way to install instead. */
@media (scripting: none) { .panes, .demo-bar, .received { display: none; } }
.noscript { margin: 0; padding: 16px 20px; color: var(--muted); }

/* Motion: the hero rises once; the rail and the How visual react to scroll. */
@media (prefers-reduced-motion: no-preference) {
  .hero-text, .hero-visual { animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-visual { animation-delay: 120ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame, .rail i { transition: none; }
}

/* Below 1100px the rail becomes a segmented bar under the header. */
@media (max-width: 1099px) {
  .wrap { padding: 0 32px; }
  .rail { left: 0; right: 0; top: 68px; transform: none; flex-direction: row; gap: 4px; padding: 0 32px; height: 4px; }
  .rail::before { display: none; }
  .rail a { flex: 1; height: 4px; }
  .rail a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rail i { width: 100%; height: 4px; border: 0; border-radius: 2px; background: var(--line); }
  .rail a[data-state="now"] i { background: var(--blue); box-shadow: none; }
  .rail a[data-state="done"] i::after { display: none; }
  .hero-term { left: 16px; bottom: 16px; }
  .hero-card-2 { right: 16px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .wrap, .rail { padding: 0 16px; }
  .nav { gap: 16px; }
  .nav .link { display: none; }
  .hero { padding-top: 36px; }
  .hero-text, .pains, .proof, .how, .install { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { margin-top: 36px; }
  .hero-term, .point-card { display: none; }
  section.wrap { margin-top: 96px; }
  .rounds { grid-template-columns: 1fr; gap: 20px; }
  .rounds li { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
  .proof { padding: 24px; }
  .steps li { min-height: 0; padding-bottom: 28px; }
  .stage { position: static; height: auto; }
  .stage .frame { display: none; }
  .stage .frame[data-for="walk"] { display: block; opacity: 1; transform: none; }
  .panes { grid-template-columns: 1fr; height: 640px; }
  #demo-app, .tabs span:first-of-type { display: none; }
  .demo-bar { flex-wrap: wrap; }
  footer { margin-top: 96px; }
}
