/* Sidestep site: "the path" look, same tokens as the app (design/tokens.json). */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #F4F5F1;
  --surface: #FFFFFF;
  --ink: #15171C;
  --secondary: #4A505B;
  --muted: #575D69;
  --line: #E2E4DF;
  --rail: #D5D7D1;
  --signal: #E5431E;
  --signal-text: #B8330F;
  --signal-soft: #FCE4DC;
  --warning-soft: #FDF1DE;
  --warning-border: #F3D7A8;
  --warning-icon: #8A5A0B;
  --stone: #D9C3B0;
  --action-bg: #15171C;
  --action-text: #FFFFFF;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Inter", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1014;
    --surface: #191C23;
    --ink: #ECEEF2;
    --secondary: #B9BEC9;
    --muted: #A3A9B6;
    --line: #2A2E37;
    --rail: #2E323B;
    --signal: #FF6B47;
    --signal-text: #FF8A6B;
    --signal-soft: #3A1A12;
    --warning-soft: #33260F;
    --warning-border: #6B4A17;
    --warning-icon: #F7C97A;
    --stone: #6B6075;
    --action-bg: #ECEEF2;
    --action-text: #15171C;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--signal-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 21px/1 var(--display); letter-spacing: -0.4px;
  color: var(--ink); text-decoration: none;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .stone { fill: var(--stone); }
.brand .move { fill: var(--signal); }

.nav { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.nav a {
  color: var(--secondary); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 7px 14px; border-radius: 999px; min-height: 36px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--action-bg); color: var(--action-text); }

/* Hero */
.hero { padding: 40px 0 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-text);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
h1 {
  font: 600 clamp(38px, 8vw, 52px)/1.04 var(--display); letter-spacing: -1.4px;
  margin: 14px 0 16px; text-wrap: balance;
}
.lead { font-size: 19px; color: var(--secondary); margin: 0; max-width: 34em; text-wrap: pretty; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 24px;
}
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 12px; }
.glance .card { padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; }
.glance strong { display: block; font: 600 17px/1.3 var(--display); }
.glance div > span { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 2px; }
.check {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--signal-soft);
  display: grid; place-items: center; margin-top: 1px;
}
.glance .check { display: grid; margin-top: 1px; }
.check svg { width: 14px; height: 14px; stroke: var(--signal-text); }

.note {
  background: var(--warning-soft); border-color: var(--warning-border);
  display: flex; gap: 14px; align-items: flex-start;
}
.note svg { flex: none; width: 22px; height: 22px; color: var(--warning-icon); margin-top: 2px; }
.note p { margin: 0; color: var(--ink); }

/* The path: sections hang off a rail, like moves in the app. */
.path { list-style: none; margin: 28px 0 0; padding: 0; }
.path > li { position: relative; padding: 0 0 30px 40px; }
.path > li::before {
  content: ""; position: absolute; left: 7px; top: 22px; bottom: -4px; width: 2px; background: var(--rail);
}
.path > li::after {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink);
}
.path > li:first-child::after { background: var(--signal); box-shadow: 0 0 0 5px var(--signal-soft); }
.path > li:last-child { padding-bottom: 4px; }
.path > li:last-child::before { display: none; }
.path > li:last-child::after { background: var(--bg); border: 2px solid var(--muted); }
h2 { font: 600 23px/1.25 var(--display); letter-spacing: -0.3px; margin: 0 0 8px; }
.path p { margin: 0 0 10px; color: var(--secondary); }
.path p:last-child { margin-bottom: 0; }
.path strong { color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 20px; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font: 600 17px/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details > div { padding: 0 20px 18px; color: var(--secondary); }
.faq details > div p { margin: 0 0 8px; }
.faq details > div p:last-child { margin: 0; }

section { margin-top: 44px; }
.section-title { font: 600 27px/1.2 var(--display); letter-spacing: -0.5px; margin: 0; }

.contact { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.contact h2 { margin-bottom: 4px; }
.contact p { margin: 0; color: var(--secondary); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--action-bg); color: var(--action-text); text-decoration: none;
  font-weight: 600; padding: 0 22px; min-height: 50px; border-radius: 999px; white-space: nowrap;
}
.button:hover { text-decoration: none; opacity: .9; }

.steps { margin: 6px 0 0; padding-left: 20px; }
.steps li { margin: 4px 0; }
kbd {
  font: 600 14px/1 var(--body); background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 7px; color: var(--ink); white-space: nowrap;
}

/* Footer */
footer { margin-top: 56px; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
footer .links a { color: var(--secondary); font-weight: 600; }
footer p { margin: 4px 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .top { padding: 16px 0; }
  .hero { padding: 24px 0 20px; }
  .lead { font-size: 17px; }
  .glance { grid-template-columns: 1fr; }
  .card { padding: 18px 18px; border-radius: 18px; }
  .path > li { padding-left: 34px; }
  .contact .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
