/* Scene Skipper — site styles.
 *
 * A faithful web port of the design system in mobile/services/theme.js
 * (the Claude-designer pass applied to the phone + companion apps).
 * Tokens below are transcribed, not re-invented — if theme.js changes,
 * change these to match.
 *
 * NOTE: the system is deliberately LIGHT (the app's old dark theme was an
 * accident of development, not a decision). No dark-mode palette exists in
 * theme.js, so this site does not invent one.
 */

:root {
  /* warm neutrals */
  --bg:           #F7F4EF;
  --surface:      #FFFFFF;
  --sunken:       #EFEAE2;
  --border:       #E3DCD2;
  --ink:          #2A2521;
  --ink-2:        #6B6259;
  --ink-3:        #9C9187;
  /* brand — one green, three jobs */
  --primary:      #1E6E5A;
  --primary-down: #175647;
  --primary-tint: #E4EFE9;
  /* semantic */
  --danger:       #B4463C;
  --danger-tint:  #F6E7E4;
  --warn-ink:     #7A5A17;
  --warn-tint:    #F6EED9;

  /* space scale: [0,4,8,12,16,20,24,32] */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 32px;

  /* radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;

  --max: 62rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  /* RN default is the system face; match it */
  font: 16px/22px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s6); }
.narrow { max-width: 44rem; }

/* Links are brand green everywhere by default — never the browser blue.
   Chrome (brand/nav/footer/buttons) opts out below. */
a { color: var(--primary); }

/* ── Type scale (theme.js `type`) ───────────────────────── */
h1, .type-title {
  font-size: 28px; font-weight: 700; letter-spacing: -0.3px;
  color: var(--ink); margin: 0 0 var(--s3);
}
/* Hero is the one deliberate web-only step above the app's 28px title —
   a landing page needs a larger entry point than a phone screen. */
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; }

h2, .type-h2 {
  font-size: 20px; font-weight: 600; color: var(--ink); margin: 0 0 var(--s3);
}
h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin: var(--s6) 0 var(--s2); }

p { margin: 0 0 var(--s4); }
.body { font-size: 16px; line-height: 22px; color: var(--ink); }
.caption, .small { font-size: 13px; color: var(--ink-2); }
.muted { color: var(--ink-2); }

.overline {
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--ink-2);
  margin: 0 0 var(--s2);
}

/* ── Header ─────────────────────────────────────────────── */
header.site { border-bottom: 1px solid var(--border); background: var(--surface); }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); padding-top: var(--s4); padding-bottom: var(--s4);
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none;
}
/* The app icon, inline: cream shield + green play on the brand green.
   Traced from mobile/assets/icon.png so the site, phone app, and TV
   companion all show the same mark. */
.brand .mark { width: 30px; height: 30px; display: block; flex: none; }
nav.site a {
  color: var(--ink-2); text-decoration: none; margin-left: var(--s5);
  font-size: 15px; font-weight: 500;
}
nav.site a:hover { color: var(--primary); text-decoration: underline; }

/* ── Sections ───────────────────────────────────────────── */
section { padding: var(--s7) 0; }
@media (min-width: 40rem) { section { padding: 56px 0; } }
.hero { padding: 48px 0 var(--s7); }
.hero p.lede {
  font-size: 18px; line-height: 26px; color: var(--ink-2);
  margin: 0 0 var(--s6); max-width: 38rem;
}
.band { background: var(--surface); border-block: 1px solid var(--border); }

/* ── Buttons (theme.js `btn`) ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 var(--s6);
  background: var(--primary); color: #FFFFFF;
  font-size: 16px; font-weight: 600;
  border: 0; border-radius: var(--r-md); text-decoration: none;
}
.btn:hover { background: var(--primary-down); }
.btn.secondary {
  height: 44px; background: var(--primary-tint); color: var(--primary);
  font-size: 15px;
}
.btn.secondary:hover { background: #D9E8E1; }
.btn-quiet {
  color: var(--primary); font-size: 15px; font-weight: 500; text-decoration: none;
}
.btn-quiet:hover { text-decoration: underline; }
.btn-row { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.trial-note { color: var(--ink-2); font-size: 15px; margin-top: var(--s3); }

/* ── Cards ──────────────────────────────────────────────── */
.cards {
  display: grid; gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: var(--s5);
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s5);
}
.band .card { background: var(--bg); }
.card h3 { margin: 0 0 var(--s1); font-size: 16px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ── Numbered steps (mirrors DeviceSetup's step badges) ─── */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: var(--s5) 0 0; }
ol.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 var(--s5) 44px; color: var(--ink-2); font-size: 15px;
}
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: var(--r-pill);
  background: var(--primary-tint); color: var(--primary);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
ol.steps strong { color: var(--ink); display: block; font-weight: 600; }

/* ── Tables ─────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin-top: var(--s5); }
table { border-collapse: collapse; width: 100%; min-width: 32rem; }
th, td {
  text-align: left; padding: var(--s3); border-bottom: 1px solid var(--border);
  font-size: 15px;
}
th {
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--ink-2);
}
td { color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 600; }

/* ── Prose (privacy / support) ──────────────────────────── */
.prose h2 { margin-top: var(--s7); }
.prose ul { padding-left: var(--s5); color: var(--ink-2); }
.prose li { margin-bottom: var(--s2); }
.prose a { color: var(--primary); }
.prose strong { color: var(--ink); }
.updated { color: var(--ink-3); font-size: 13px; }

.callout {
  background: var(--sunken); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s4) var(--s5); margin: var(--s5) 0;
}
.callout p:last-child { margin-bottom: 0; }

details {
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--s4) var(--s5); margin-bottom: var(--s3);
  background: var(--surface);
}
details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin: var(--s3) 0 0; color: var(--ink-2); font-size: 15px; }
details p:last-child { margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--border); background: var(--surface);
  padding: var(--s6) 0; margin-top: var(--s7);
}
footer.site .wrap {
  display: flex; justify-content: space-between; gap: var(--s4);
  flex-wrap: wrap; color: var(--ink-3); font-size: 13px;
}
footer.site a {
  color: var(--ink-2); text-decoration: none; margin-right: var(--s5);
}
footer.site a:hover { color: var(--primary); text-decoration: underline; }

img, svg { max-width: 100%; height: auto; }

a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
