/* Clearer Days - shared styles for the secondary pages
   (thanks.html, 404.html, privacy.html, terms.html).

   index.html keeps its CSS inline on purpose: on a slow connection a
   separate stylesheet is one more blocking request before first paint.
   If you change a brand token below (colour, font), change it in the
   :root block of index.html too. */

/* ---- Font: self-hosted Geist (variable, 300-600) -------------------------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens (keep in sync with index.html) ------------------------------- */
:root {
  --bg: #101B33;
  --ink: #E7E2D9;
  --muted: #A9A398;
  --faint: #9A9589;
  --hair: rgba(231, 226, 217, 0.08);
  --hair-2: rgba(231, 226, 217, 0.14);
  --core: #16203A;
  --coral: #C9992E;
  --coral-deep: #A87B1F;
  --reef: #FAF8F4;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --mono: "Geist", system-ui, sans-serif;   /* was the system monospace; one family site-wide */
}

/* ---- Base ------------------------------------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Geist", system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--coral); color: #101B33; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.orb { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==== Card pages: thanks.html, 404.html ==================================== */
.card-page { display: flex; flex-direction: column; align-items: center; padding: 0 24px; line-height: 1.55; }
.card-page main.card { margin: auto 0; }   /* centred between the header and the footer */
.card-page .sub-foot { margin-top: 40px; }
.card-page a { color: inherit; text-decoration: none; }
.card-page a.btn { color: #101B33; } /* navy text on the gold button (the rule above would make it light) */
.card-page .orb { opacity: 0.5; }
.card-page .orb.one { width: 560px; height: 560px; background: radial-gradient(circle, rgba(201, 153, 46,0.5), transparent 65%); top: -240px; left: 50%; margin-left: -280px; }
.card-page .orb.two { width: 500px; height: 500px; background: radial-gradient(circle, rgba(250, 248, 244,0.32), transparent 65%); top: -160px; left: 50%; margin-left: 40px; }

.card {
  position: relative; z-index: 1; width: 100%; max-width: 560px;
  border-radius: 24px; padding: 6px;
  background: rgba(231, 226, 217,0.025); border: 1px solid var(--hair-2);
}
.card .core {
  border-radius: 18px; background: var(--core); padding: 52px 40px; text-align: center;
  box-shadow: inset 0 1px 1px rgba(231, 226, 217,0.07);
}
.card-page .logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.95rem; margin-bottom: 30px; }
.card-page .logo svg, .card-page .logo img { width: 24px; height: 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; border-radius: 999px;
  cursor: pointer; font: 500 0.92rem/1 "Geist", sans-serif; padding: 5px 5px 5px 20px; height: 48px;
  background: linear-gradient(180deg, #E8C66A, var(--coral) 45%, var(--coral-deep)); color: #101B33;
  box-shadow: inset 0 1px 0 rgba(231, 226, 217,0.45), 0 16px 36px -14px rgba(201, 153, 46,0.55);
  transition: transform 0.6s var(--spring);
}
.btn:active { transform: scale(0.97); }
.btn .ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 27, 51,0.9); color: var(--coral); transition: transform 0.6s var(--spring); }
.btn:hover .ico { transform: translate(2px, -2px) scale(1.06); }
.btn .ico svg { width: 14px; height: 14px; }

/* ==== Legal pages: privacy.html, terms.html ================================ */
.legal-page { line-height: 1.65; }
.legal-page a { color: var(--coral); text-decoration: none; border-bottom: 1px solid rgba(201, 153, 46,0.35); }
.legal-page a:hover { border-bottom-color: var(--coral); }
.legal-page a:focus-visible { border-radius: 2px; }
.legal-page .orb { opacity: 0.4; }
.legal-page .orb.one { width: 560px; height: 560px; background: radial-gradient(circle, rgba(201, 153, 46,0.4), transparent 65%); top: -260px; right: -160px; }
.legal-page .orb.two { width: 480px; height: 480px; background: radial-gradient(circle, rgba(250, 248, 244,0.28), transparent 65%); bottom: -220px; left: -180px; }

.legal-page .wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; position: relative; }
.legal-page .back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: none; margin-bottom: 56px; padding: 8px 0; }
.legal-page .back:hover { color: var(--ink); }
.legal-page .back svg { width: 14px; height: 14px; }

.legal-page .label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--reef); display: block; margin-bottom: 16px; }
.legal-page h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 16px; }
.legal-page .updated { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.legal-page .lede { font-size: 18px; color: var(--muted); max-width: 60ch; margin-bottom: 56px; }
.legal-page .lede b { color: var(--ink); font-weight: 500; }

.legal-page section { border-top: 1px solid var(--hair); padding: 36px 0; }
.legal-page h2 { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 14px; }
.legal-page h2 .num { font-family: var(--mono); font-size: 13px; color: var(--coral); margin-right: 12px; vertical-align: 4px; }
.legal-page p { color: var(--muted); margin-bottom: 14px; max-width: 68ch; }
.legal-page p:last-child { margin-bottom: 0; }
.legal-page b, .legal-page strong { color: var(--ink); font-weight: 500; }
.legal-page ul { margin: 0 0 14px 20px; color: var(--muted); max-width: 68ch; }
.legal-page li { margin-bottom: 8px; }
.legal-page li::marker { color: var(--coral); }

.legal-page .callout { background: var(--core); border: 1px solid var(--hair); border-radius: 14px; padding: 20px 22px; margin-top: 18px; }
.legal-page .callout p { font-size: 15px; }

.legal-page .sign { display: block; margin-top: 72px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.legal-page .sign .accent { color: var(--coral); }
.legal-page .legal-nav { margin-top: 18px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.legal-page .legal-nav a { display: inline-block; padding: 8px 0; margin-right: 22px; }

/* ==== Shared slim header + footer (every secondary page) =================== */
.sub-head { position: relative; z-index: 2; width: 100%; max-width: 1120px; margin: 0 auto; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-page .sub-head { padding: 18px 24px; }
.sub-head .logo { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: 0; font-weight: 600; font-size: 0.95rem; color: var(--ink); border-bottom: none; }
.sub-head .logo img { width: 24px; height: 24px; }
.sub-cta { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; font-size: 0.86rem; font-weight: 500;
  color: #101B33 !important; border-bottom: none !important; background: linear-gradient(180deg, #E8C66A, var(--coral) 45%, var(--coral-deep));
  box-shadow: inset 0 1px 0 rgba(231, 226, 217,0.45), 0 0 0 1px rgba(201, 153, 46,0.4); }
.sub-foot { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 0 32px; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; font-size: 0.84rem; color: var(--faint); }
.legal-page .sub-foot { padding: 28px 24px 32px; }
.sub-foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.sub-foot nav a { display: inline-block; padding: 12px 0; color: var(--faint); border-bottom: none; }
.sub-foot nav a:hover { color: var(--ink); }
.sub-foot .social-nav { display: flex; gap: 4px; margin-left: -10px; }
.sub-foot .social-nav a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); border-bottom: none; }
.sub-foot .social-nav a:hover { color: var(--coral); }
.sub-foot .social-nav svg { width: 19px; height: 19px; }
