/* Public pages (landing, privacy, terms, acknowledgments): the new design's
   look, outside the app. Same tokens as webapp/src/index.css. Light by default;
   site-theme.js applies the person's saved choice (the app's cp-theme). */
:root {
  --ground: #f1f2f4;
  --surface: #ffffff;
  --raised: #eceef1;
  --line: #dfe2e7;
  --ink: #15161a;
  --ink-2: #474b54;
  --ink-3: #656972;
  --gold: #8a5c00;          /* accent for text, readable on white */
  --gold-soft: rgba(242, 179, 61, 0.16);
  --amber: #f2b33d;         /* the one button colour, both themes */
  --amber-deep: #b9831f;
  --on-amber: #1b1300;
  --sq-light: #dcd6c8;      /* our board: stone and slate */
  --sq-dark: #7286a0;
  --chip: rgba(21, 22, 26, 0.86);
  --chip-ink: #ffffff;
  --shadow: 0 1px 2px rgba(20, 22, 28, 0.06), 0 10px 30px rgba(20, 22, 28, 0.08);
  --display: "Figtree", -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Figtree", -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #16171a; --surface: #222327; --raised: #2b2d32; --line: #34363c;
    --ink: #f1f1f3; --ink-2: #b4b7be; --ink-3: #8d9099; --gold: #f2b33d; --gold-soft: rgba(242, 179, 61, 0.14);
    --chip: rgba(241, 241, 243, 0.92); --chip-ink: #15161a; --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #16171a; --surface: #222327; --raised: #2b2d32; --line: #34363c;
  --ink: #f1f1f3; --ink-2: #b4b7be; --ink-3: #8d9099; --gold: #f2b33d; --gold-soft: rgba(242, 179, 61, 0.14);
  --chip: rgba(241, 241, 243, 0.92); --chip-ink: #15161a; --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 72rem; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand .mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--amber); color: var(--on-amber); }
.brand .mark svg { width: 22px; height: 22px; }
.brand b { color: var(--gold); font-weight: 800; }
.top nav { display: flex; align-items: center; gap: 6px; }
.link { padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--ink-2); }
.link:hover { color: var(--ink); background: var(--raised); }

/* buttons: the same chunky pressed edge as the app */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding-inline: 22px; border-radius: 14px; font-weight: 800; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--amber); color: var(--on-amber); box-shadow: 0 4px 0 var(--amber-deep); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { box-shadow: 0 2px 0 var(--amber-deep); }
.btn-quiet { background: var(--raised); color: var(--ink); box-shadow: 0 4px 0 var(--line); }
.btn-sm { height: 42px; padding-inline: 16px; font-size: .95rem; border-radius: 12px; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }

/* phones: the header keeps Sign in; sign-up stays one tap away in the page itself */
@media (max-width: 560px) {
  .top .btn-sm { display: none; }
  .top .wrap { height: 60px; }
}

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--ink-3); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover, footer a[aria-current="page"] { color: var(--ink); }
footer a[aria-current="page"] { font-weight: 800; }

/* legal and info pages: one readable column */
.legal-container { max-width: 46rem; margin: 0 auto; padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 40px) clamp(48px, 7vw, 88px); color: var(--ink-2); }
.legal-container h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.1rem, 4.6vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 8px; text-wrap: balance; }
.legal-container .legal-date { font-size: .9rem; color: var(--ink-3); margin: 0 0 28px; }
.legal-container h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); margin: 40px 0 10px; text-wrap: balance; }
.legal-container h3 { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin: 24px 0 8px; }
.legal-container p { margin: 0 0 14px; }
.legal-container ul, .legal-container ol { margin: 0 0 16px; padding-left: 1.3em; }
.legal-container li { margin: 0 0 6px; }
.legal-container strong { color: var(--ink); font-weight: 700; }
.legal-container a { color: var(--gold); font-weight: 700; text-underline-offset: 3px; }
.legal-container .highlight-box { background: var(--gold-soft); border-radius: 16px; padding: 18px 20px; margin: 0 0 24px; }
.legal-container .highlight-box p:last-child { margin-bottom: 0; }
.legal-container .intro-text { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 28px; }
.legal-container .ack-card { background: var(--surface); box-shadow: var(--shadow); border-radius: 18px; padding: 22px 24px; margin: 0 0 16px; }
.legal-container .ack-card h2 { margin: 0 0 6px; font-size: 1.15rem; }
.legal-container .ack-card p:last-child { margin-bottom: 0; }
.legal-container .ack-license { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 8px; background: var(--raised); font-size: .8rem; font-weight: 800; color: var(--ink-2); }
.legal-container .community-note { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 8px; }
