/* The public site: landing page plus three legal pages.
 *
 * Hand-written CSS with no build step, because these are four documents, not
 * an application. The palette and type are lifted from apps/web/src/tokens.css
 * so the site and the trail app read as one product -- but written as literal
 * values rather than imported, since nothing here shares a bundler with the
 * app and a second copy of four hex codes is cheaper than a pipeline. */

:root {
  --paper: #f3ede1;
  --paper-dark: #e9e0cc;
  --ink: #14302b;
  --accent: #7a3b69;
  --muted: #4a5f5a;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --page: 1080px;
  --prose: 640px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  /* A long unbroken string (a pasted URL in a legal page) must wrap rather
     than push the page sideways on a phone. */
  overflow-wrap: anywhere;
}

a { color: var(--accent); }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(34px, 7vw, 56px); letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 4.5vw, 36px); letter-spacing: -0.015em; }
h3 { font-size: 21px; }
p { margin: 0 0 16px; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--prose); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

/* Header -------------------------------------------------------------- */

.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark span { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

/* Buttons ------------------------------------------------------------- */

.button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  /* 44px minimum touch target, the same floor the app holds to. */
  min-height: 44px;
}
.button:hover { background: var(--ink); color: #ffffff; }
.button-quiet {
  background: none;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.button-quiet:hover { background: var(--accent); color: #ffffff; }

/* Sections ------------------------------------------------------------ */

section { padding: 56px 0; }
.hero { padding: 48px 0 64px; }
.hero p { font-size: 19px; max-width: 34em; color: var(--muted); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.section-head { margin-bottom: 32px; }
.section-head h2 { margin-top: 8px; }
.section-head p { color: var(--muted); max-width: 42em; margin-top: 12px; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--paper-dark);
  border-radius: 20px;
  padding: 26px;
}
.card .step { font-family: var(--serif); font-size: 15px; color: var(--accent); }
.card h3 { margin: 10px 0 8px; }
.card p { margin: 0; color: var(--muted); }
.card .meta { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

/* The code box -------------------------------------------------------- */

.code-box {
  background: var(--paper-dark);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
}
.code-box h2 { margin-bottom: 12px; }
.code-box p { color: var(--muted); max-width: 38em; margin-inline: auto; }
.code-box .button { margin-top: 20px; }
.code-box .small { font-size: 14px; margin: 16px 0 0; }

/* Questions ----------------------------------------------------------- */

.qa { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.qa h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; }
.qa p { color: var(--muted); margin: 6px 0 0; }

/* Legal pages --------------------------------------------------------- */

.legal { padding: 16px 0 64px; }
.legal .updated { font-size: 14px; color: var(--muted); }
.legal h1 { margin: 10px 0 8px; }
.legal .lede { font-size: 19px; color: var(--muted); }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal address { font-style: normal; color: var(--muted); }
.back { font-size: 15px; font-weight: 500; text-decoration: none; }

/* Footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--paper-dark);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer p { margin: 4px 0 0; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  section { padding: 40px 0; }
  .wrap { padding: 0 18px; }
  .code-box { padding: 30px 20px; }
}
