/*
 * Takeoff landing page. Colours mirror the app's tokens (piping-takeoff
 * src/index.css: shadcn neutral, near-ink primary), so the page and the app
 * read as one product. Light by default, dark when the visitor's OS asks.
 */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: oklch(1 0 0);
  --bg-soft: oklch(0.985 0 0);
  --fg: oklch(0.145 0 0);
  --muted: oklch(0.556 0 0);
  --line: oklch(0.922 0 0);
  --line-strong: oklch(0.85 0 0);
  --tint: oklch(0.97 0 0);
  --primary: oklch(0.205 0 0);
  --primary-fg: oklch(0.985 0 0);
  --amber-bg: #fdf1dc;
  --amber-fg: #8a5410;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -12px rgb(0 0 0 / 0.14);
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  --sans: 'Geist', system-ui, 'Segoe UI', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.145 0 0);
    --bg-soft: oklch(0.18 0 0);
    --fg: oklch(0.985 0 0);
    --muted: oklch(0.708 0 0);
    --line: oklch(1 0 0 / 0.1);
    --line-strong: oklch(1 0 0 / 0.18);
    --tint: oklch(0.269 0 0);
    --primary: oklch(0.922 0 0);
    --primary-fg: oklch(0.205 0 0);
    --amber-bg: #3a2c15;
    --amber-fg: #eec27d;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.muted { color: var(--muted); }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { width: 12px; height: 12px; border-radius: 2px; background: var(--primary); }
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.header-cta { display: flex; gap: 8px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 6px; }
.site-nav a:hover { color: var(--fg); background: var(--tint); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 8px;
  font: 550 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--fg);
}
.btn:hover { background: var(--tint); }
.btn-primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary); opacity: 0.88; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn:focus-visible, .site-nav a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 22px;
  flex-wrap: wrap; justify-content: center; max-width: 100%;
}
.eyebrow b { color: var(--fg); font-weight: 600; }
h1 {
  font-size: clamp(34px, 5.6vw, 60px); line-height: 1.05; letter-spacing: -0.035em;
  font-weight: 700; margin: 0 auto; max-width: 15ch; text-wrap: balance;
}
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 60ch; margin: 20px auto 0; text-wrap: pretty; }
.lede b { color: var(--fg); font-weight: 550; }
.hero-cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.hero-note a { color: var(--fg); text-underline-offset: 3px; }

/* ---------- product frame (an HTML copy of the real screen) ---------- */
.shot { margin: 52px auto 0; max-width: 1040px; }
.frame {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  box-shadow: var(--shadow); overflow: hidden; text-align: left;
}
.frame-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.frame-bar .brand { font-size: 13px; }
.frame-bar .brand-mark { width: 9px; height: 9px; }
.crumbs { display: flex; gap: 6px; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.crumbs .sep { color: var(--line-strong); }
.crumbs .here { color: var(--fg); }
.frame-body { padding: 16px; overflow-x: auto; }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 1px 9px; font-size: 11.5px; font-weight: 550; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.chip-tint { background: var(--tint); border-color: transparent; }
.chip-amber { background: var(--amber-bg); color: var(--amber-fg); border-color: transparent; }

.linecard { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; min-width: 760px; }
.line-label { font: 650 17px/1 var(--mono); }
.tag { font-family: var(--mono); background: var(--tint); border-radius: 4px; padding: 1px 6px; font-size: 13px; }
.stats { margin-left: auto; display: flex; gap: 20px; text-align: right; }
.stat .v { font-size: 14.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.spec { width: 100%; font-size: 12.5px; color: var(--muted); }
.spec b { color: var(--fg); font-weight: 550; }

.grid-toolbar { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; min-width: 760px; font-size: 13px; }
.grid-toolbar b { font-weight: 650; }
.grid-toolbar .spacer { margin-left: auto; }
.fake-btn { border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 10px; font-size: 12.5px; font-weight: 550; }
.fake-btn.primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

table.grid { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; border: 1px solid var(--line); border-radius: 10px; }
.grid th { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid th.num { text-align: right; }
.grid td { padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid td.item { font-weight: 550; }
.grid td .std { color: var(--muted); font-weight: 400; font-size: 11.5px; margin-left: 5px; }
.grid td.dim { color: var(--muted); }
.grid tr.derived td { color: var(--muted); }
.autotag { font-size: 10px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 4px; margin-left: 6px; letter-spacing: 0.04em; }
.grid tfoot td { font-weight: 650; border-bottom: 0; border-top: 1px solid var(--line-strong); padding: 8px 10px; }
.qty { display: inline-block; min-width: 40px; padding: 1px 5px; border: 1px solid var(--line-strong); border-radius: 5px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.025em; margin: 0; font-weight: 700; text-wrap: balance; }
.section-lede { color: var(--muted); max-width: 62ch; margin: 12px 0 0; font-size: 17px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .glyph { display: block; width: 36px; height: 22px; margin-bottom: 14px; stroke: var(--fg); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 40px; }
.steps ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 22px; }
.steps ol > li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.steps ol > li::before {
  content: counter(step); width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center; font-size: 13px; font-weight: 650;
  border: 1px solid var(--line-strong);
}
.steps h3 { margin: 2px 0 4px; font-size: 16.5px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* the catalog picker, an HTML copy */
.picker { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: var(--shadow); padding: 14px; font-size: 13px; position: sticky; top: 80px; }
.picker-title { font-weight: 650; }
.picker-sub { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.search { border: 1px solid var(--fg); border-radius: 7px; padding: 6px 10px; color: var(--fg); margin-bottom: 10px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.tab { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 6px; padding: 3px 8px; color: var(--muted); font-size: 12.5px; }
.tab.on { border-color: var(--line-strong); background: var(--tint); color: var(--fg); }
.tab svg, .res svg { width: 22px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.results { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.res { display: grid; grid-template-columns: 28px 1fr 44px 40px 46px; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.res:last-child { border-bottom: 0; }
.res.on { background: var(--tint); }
.res .std { color: var(--muted); font-size: 11px; margin-left: 4px; }
.kit { margin-top: 10px; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; }
.kit b { font-weight: 600; }
.kit .spacer { margin-left: auto; display: flex; gap: 6px; }

.who { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checks li::before { content: ''; width: 16px; height: 16px; margin-top: 4px; border-radius: 4px; background: var(--primary); mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3.5 8.5l3 3 6-7" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 16px no-repeat; }
.honest { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--bg); }
.honest h3 { margin: 0 0 10px; font-size: 16.5px; }
.honest ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: flex; flex-direction: column; gap: 8px; }
.honest ul b { color: var(--fg); font-weight: 550; }

/* "Start here": the getting-in card beside the first-session steps */
.steps b { color: var(--fg); font-weight: 550; }
.getting-in .btn { margin-top: 18px; }
.getting-in .tell { margin-top: 26px; }
.getting-in p { margin: 0; color: var(--muted); font-size: 15px; }
.getting-in p a { color: var(--fg); text-underline-offset: 3px; }

.cta { text-align: center; }
.cta h2 { margin: 0 auto; max-width: 22ch; }
.cta p { color: var(--muted); max-width: 54ch; margin: 14px auto 26px; font-size: 17px; }
.cta .fine { font-size: 13px; margin: 14px auto 0; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer .spacer { margin-left: auto; }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .steps, .who { grid-template-columns: 1fr; gap: 32px; }
  .picker { position: static; }
  section { padding: 56px 0; }
  .hero { padding-top: 48px; }
}
@media (max-width: 560px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
  .shot { margin-top: 36px; }
  .frame-body { padding: 12px; }
  .res { grid-template-columns: 24px 1fr 40px 46px; }
  .res .cl { display: none; }
}
