/* Glyssn site — shared styles. Brand: ink/charcoal base, coral + teal
   accents, warm sunset gradient. Fonts: Space Grotesk + JetBrains Mono. */

/* 1.0 launch (2026-10-17): fonts are self-hosted. Google Fonts sent every
   visitor's IP address to Google, on the page that promises no tracking
   (store-readiness S6). These are the app's own OFL fonts
   (Glyssn/Resources/Fonts), converted to woff2; license in /fonts/OFL.txt.
   Keep every font request on this domain — no third-party font CDN. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  --ink: #14110f;
  --ink-soft: #6b635d;
  --paper: #faf7f4;
  --coral: #C2412F;   /* link text on paper, 4.7:1 (was #e96b52, 2.9:1) */
  --teal: #2f9e8f;
  --line: rgba(20, 17, 15, 0.10);
  --max: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(155deg, #ffb48a 0%, #e96b52 45%, #1f2a22 100%);
  color: #fff;
  padding: 96px 0 88px;
  text-align: center;
}
.wordmark {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.42em;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.9;
  margin: 0 0 28px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(40px, 9vw, 72px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero p {
  font-size: clamp(17px, 3.6vw, 21px);
  max-width: 30ch;
  margin: 0 auto 36px;
  opacity: 0.94;
}
.badge {
  display: inline-block;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.badge.soon { opacity: 0.85; cursor: default; }

/* ---- Sections ---- */
/* Longhands + element.class: these elements also carry .wrap, whose
   `padding: 0 24px` used to win and erase the vertical rhythm (and
   .legal's shorthand erased the 24px gutter on phones). */
section.wrap { padding-top: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.lead { font-size: clamp(20px, 4.4vw, 26px); font-weight: 600; letter-spacing: -0.01em; }
.muted { color: var(--ink-soft); }

.features { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; gap: 36px 40px; } }
.feat h3 { margin: 0 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 10px;
}

/* ---- Footer ---- */
footer.wrap { padding-top: 48px; padding-bottom: 64px; }
footer { color: var(--ink-soft); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
footer a { color: var(--ink); }

/* ---- Legal pages ---- */
.legal { padding-top: 64px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(30px, 6vw, 40px); letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--ink-soft); margin: 0 0 40px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #2a2622; }
.legal .kicker { color: #1F6F64; } /* teal deep enough for 12px text, 5.6:1 */
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .back { font-family: "JetBrains Mono", monospace; font-size: 13px; display: inline-block; margin-bottom: 36px; }
.topbar { border-bottom: 1px solid var(--line); padding: 18px 0; }
/* Was an inline style="" on each page; the CSP (vercel.json) allows
   only this stylesheet, so it lives here now. */
.topbar a { text-decoration: none; }
.topbar .wordmark { color: var(--ink); margin: 0; }

/* ---- Support page ---- */
.legal h3 { font-size: 18px; margin: 32px 0 8px; letter-spacing: -0.01em; }
.legal ol { padding-left: 22px; }
.legal code { font-family: "JetBrains Mono", monospace; font-size: 0.88em; }
.contact {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 20px 22px;
  margin: 28px 0 8px;
}
.contact p { margin: 0; }
.contact .kicker { margin-bottom: 6px; }
.contact .contact-address { font-size: clamp(20px, 5vw, 24px); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; overflow-wrap: anywhere; }
footer a[aria-current="page"] { color: var(--ink-soft); }
