/*
 * Trailboss beta site. The tokens are web/src/app/globals.css's, so the site reads as the
 * same product: warm umber-black by default, warm paper in light mode, copper for the brand.
 * No JavaScript: the theme follows the visitor's system setting.
 */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-mono-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); }

:root {
  --bg: #0e0c0a;
  --bg-grad-a: rgb(150 102 64 / 0.11);
  --bg-grad-b: #14110e;
  --bg-grad-c: #0b0a08;
  --surface: #15120f;
  --surface-2: #1b1714;
  --ink-rgb: 255 248 240;
  --line: rgb(255 240 225 / 0.075);
  --line-strong: rgb(255 240 225 / 0.13);
  --fg: #f4efe9;
  --fg-muted: #bdb3a8;
  --fg-dim: #918679;
  --accent: #8cc4ff;
  --copper: #d9925c;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -16px rgb(0 0 0 / 0.7);
  --sheen: rgb(255 244 232 / 0.06);
  --lift: rgb(255 244 232 / 0.022);
  --dusk-end: #0e0c0a;
  --dusk-mid: #6b3a2c;
  --dusk-low: #3b2219;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f2ed;
    --bg-grad-a: rgb(214 160 112 / 0.16);
    --bg-grad-b: #f8f5f1;
    --bg-grad-c: #f1ebe4;
    --surface: #fdfbf8;
    --surface-2: #f7f3ee;
    --ink-rgb: 40 28 18;
    --line: rgb(60 40 20 / 0.09);
    --line-strong: rgb(60 40 20 / 0.16);
    --fg: #1d1915;
    --fg-muted: #5c544b;
    --fg-dim: #6f665d;
    --accent: #2459b0;
    --copper: #8c4b1f;
    --shadow: 0 1px 2px rgb(60 40 20 / 0.06), 0 12px 32px -18px rgb(60 40 20 / 0.18);
    --sheen: rgb(255 255 255 / 0.9);
    --lift: rgb(255 255 255 / 0.55);
    --dusk-end: #f6f2ed;
    --dusk-mid: #a85b3d;
    --dusk-low: #dc9a6a;
    color-scheme: light;
  }
}

/* The dusk hero stays night in both themes, with its own fixed light text. */
.theme-dark {
  --fg: #f6efe6;
  --fg-muted: rgb(246 239 230 / 0.72);
  --fg-dim: rgb(246 239 230 / 0.5);
  --line: rgb(255 240 225 / 0.1);
  --line-strong: rgb(255 240 225 / 0.18);
  --copper: #d9925c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 18% -8%, var(--bg-grad-a), transparent 65%),
    linear-gradient(180deg, var(--bg-grad-b), var(--bg-grad-c));
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: rgb(121 191 255 / 0.25); }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 50; background: var(--surface-2); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Header ───────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgb(14 12 10 / 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgb(255 240 225 / 0.08);
  color: #f6efe6;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 22px; height: 22px; color: #d9925c; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 16px; font-weight: 600; letter-spacing: -0.03em; }
.logo-co { margin-top: 4px; font-size: 11px; font-weight: 500; color: rgb(246 239 230 / 0.55); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a { text-decoration: none; color: rgb(246 239 230 / 0.72); }
.nav-links a:hover { color: #f6efe6; }
.nav-links .hide-sm { display: none; }
@media (min-width: 720px) { .nav-links .hide-sm { display: inline; } }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #d9925c; padding: 5px 10px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(217 146 92 / 0.35);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #d9925c; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ── Type ─────────────────────────────── */
.mark { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); }
.mark::before { content: ""; display: block; height: 1px; width: 24px; background: linear-gradient(90deg, var(--copper), transparent); }
.mark b { font-weight: 400; color: var(--copper); }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 0.98; }
.display em, .h2 em { font-style: italic; color: var(--copper); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.04; letter-spacing: -0.015em; }
@media (min-width: 640px) { .h2 { font-size: 56px; } }
.lede { font-size: 16.5px; line-height: 1.65; color: var(--fg-muted); }

/* ── Buttons ──────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px; border-radius: 999px; font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background 0.15s; }
.btn-light { background: #f6efe6; color: #1d1915; box-shadow: 0 8px 30px -10px rgb(0 0 0 / 0.6); }
.btn-light:hover { background: #fff; }
.btn-ink { background: var(--fg); color: var(--bg); }
.btn-ink:hover { opacity: 0.9; }
.btn-line { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-line:hover { background: rgb(var(--ink-rgb) / 0.04); }
.link-arrow { font-size: 14.5px; color: var(--fg-muted); text-decoration: none; }
.link-arrow:hover { color: var(--fg); }

/* ── Hero ─────────────────────────────── */
.hero {
  background-color: #120c17;
  background-image: linear-gradient(180deg, #120c17 0%, #1f1322 22%, #3a1e2b 42%, var(--dusk-mid) 64%, var(--dusk-low) 80%, var(--dusk-end) 100%);
  padding: 112px 0 180px;
}
@media (min-width: 1024px) { .hero { padding: 160px 0 220px; } }
.hero-grid { display: grid; gap: 40px; margin-top: 32px; align-items: end; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 80px; } }
.hero h1 { font-size: 50px; color: #f6efe6; }
@media (min-width: 640px) { .hero h1 { font-size: 76px; } }
@media (min-width: 1280px) { .hero h1 { font-size: 96px; } }
.hero .lede { color: rgb(246 239 230 / 0.72); font-size: 16px; }
.hero .lede strong { color: #f6efe6; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
.fine { margin-top: 20px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-dim); }
.hero .fine { color: rgb(246 239 230 / 0.5); }

/* ── Sections ─────────────────────────── */
.section { padding: 96px 0; }
@media (min-width: 1024px) { .section { padding: 128px 0; } }
.section + .section { border-top: 1px solid var(--line); }
.intro { display: grid; gap: 24px; }
@media (min-width: 1024px) { .intro { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; } .intro .lede { align-self: end; padding-bottom: 8px; } }
.intro .h2 { margin-top: 24px; }

.grid-box { margin-top: 56px; display: grid; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.grid-box > * { padding: 28px; border-top: 1px solid var(--line); }
.grid-box > *:first-child { border-top: 0; }
@media (min-width: 768px) {
  .grid-box.cols-2, .grid-box.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-box.cols-2 > *, .grid-box.cols-4 > * { border-top: 0; }
  .grid-box.cols-2 > *:nth-child(n+3), .grid-box.cols-4 > *:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-box.cols-2 > *:nth-child(even), .grid-box.cols-4 > *:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .grid-box.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-box.cols-4 > *:nth-child(n+3) { border-top: 0; }
  .grid-box.cols-4 > *:nth-child(n+2) { border-left: 1px solid var(--line); }
}

.step-n { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--copper); }
.step-title { display: block; margin-top: 20px; font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.step-body { margin-top: 12px; font-size: 14.5px; line-height: 1.65; color: var(--fg-muted); }
.step-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--fg-dim); }

/* ── Pricing ──────────────────────────── */
.tier { position: relative; display: flex; flex-direction: column; }
.tier.featured { background: rgb(var(--ink-rgb) / 0.025); }
.tier.featured::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--copper); }
.tier-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); }
.tier-head .tag { font-size: 11px; color: var(--copper); }
.price { display: block; margin-top: 24px; font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: -0.01em; }
.price-note { display: block; margin-top: 8px; font-size: 13px; color: var(--fg-dim); }
.founding { display: block; margin-top: 12px; font-size: 12.5px; line-height: 1.4; color: var(--copper); }
.features { list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); flex: 1; }
.features li { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--fg-muted); }
.features li + li { margin-top: 10px; }
.features li::before { content: ""; flex-shrink: 0; width: 4px; height: 4px; margin-top: 7px; border-radius: 50%; background: var(--fg-dim); }
.tier .btn { margin-top: 32px; height: 40px; border-radius: 10px; font-size: 14px; }
.notes { margin-top: 20px; display: grid; gap: 12px; padding: 0 4px; font-size: 14px; color: var(--fg-muted); }
.notes strong { color: var(--fg); font-weight: 500; }
.tabular { font-variant-numeric: tabular-nums; }

/* ── Beta band ────────────────────────── */
.band {
  margin-top: 56px; padding: 32px; border-radius: 16px;
  background: linear-gradient(180deg, var(--lift), transparent 160px), var(--surface);
  box-shadow: inset 0 1px 0 var(--sheen), inset 0 0 0 1px var(--line), var(--shadow);
  display: grid; gap: 20px; align-items: center;
}
@media (min-width: 900px) { .band { grid-template-columns: 1fr auto; gap: 40px; } }
.band h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.band p { margin-top: 8px; color: var(--fg-muted); }

/* ── Footer ───────────────────────────── */
.footer { border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 40px; padding: 64px 0 40px; font-size: 14px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .logo { color: var(--fg); }
.footer .logo-co { color: var(--fg-dim); }
.footer-blurb { margin-top: 16px; max-width: 20rem; font-size: 13.5px; line-height: 1.6; color: var(--fg-dim); }
.footer-title { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); }
.footer ul { list-style: none; margin: 16px 0 0; padding: 0; }
.footer li + li { margin-top: 8px; }
.footer ul a { text-decoration: none; color: var(--fg-muted); }
.footer ul a:hover { color: var(--fg); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--fg-dim); }
.wordmark {
  user-select: none; pointer-events: none; text-align: center;
  font-family: var(--serif); font-size: 22vw; line-height: 0.8; letter-spacing: -0.02em;
  background: linear-gradient(180deg, rgb(var(--ink-rgb) / 0.13), rgb(var(--ink-rgb) / 0.015));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Legal pages ──────────────────────── */
.doc-head { padding: 72px 0 8px; }
.doc-head h1 { margin-top: 20px; font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.05; letter-spacing: -0.015em; }
@media (min-width: 640px) { .doc-head h1 { font-size: 58px; } }
.doc-layout { display: grid; gap: 40px; padding: 40px 0 112px; }
@media (min-width: 1024px) { .doc-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 64px; } }
.doc-nav { font-size: 14px; }
.doc-nav ul { list-style: none; margin: 14px 0 0; padding: 0; }
.doc-nav li + li { margin-top: 8px; }
.doc-nav a { text-decoration: none; color: var(--fg-muted); }
.doc-nav a:hover, .doc-nav a[aria-current] { color: var(--fg); }
.doc-nav a[aria-current] { box-shadow: inset 2px 0 0 var(--copper); padding-left: 10px; }
.doc-prose { max-width: 44rem; font-size: 15px; line-height: 1.75; color: var(--fg-muted); }
.doc-prose > * + * { margin-top: 1em; }
.doc-prose h1 { display: none; }
.doc-prose h2 { margin-top: 2.4em; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.doc-prose h3 { margin-top: 1.8em; font-size: 16.5px; font-weight: 600; color: var(--fg); }
.doc-prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.doc-prose a:hover { text-decoration-color: var(--copper); }
.doc-prose strong { color: var(--fg); font-weight: 600; }
.doc-prose ul, .doc-prose ol { padding-left: 1.25em; }
.doc-prose li + li { margin-top: 0.35em; }
.doc-prose li::marker { color: var(--fg-dim); }
.doc-prose code { font-family: var(--mono); font-size: 0.86em; color: var(--fg); background: rgb(var(--ink-rgb) / 0.05); border-radius: 5px; padding: 0.12em 0.36em; }
.doc-prose .table { overflow-x: auto; }
.doc-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-prose th { text-align: left; font-weight: 500; color: var(--fg-dim); font-size: 12.5px; border-bottom: 1px solid var(--line-strong); padding: 8px 12px 8px 0; }
.doc-prose td { vertical-align: top; border-bottom: 1px solid var(--line); padding: 9px 12px 9px 0; }
.doc-prose blockquote { margin: 1em 0 0; border-left: 2px solid var(--copper); padding-left: 1em; }
.doc-meta { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }

/* ── 404 ──────────────────────────────── */
.lost { padding: 160px 0; text-align: left; }
.lost h1 { font-size: 64px; margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
