/* WakeStrong — hidden app site (home, support, privacy, terms).
   Palette mirrors the app's "Kinetic" dark theme (constants/colors.ts). */

/* Inter, self-hosted on purpose: loading it from Google Fonts would send every
   EU visitor's IP address to Google without consent, which the privacy policy
   would then have to justify. One variable file per subset covers 400–800. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/wakestrong/fonts/inter-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/wakestrong/fonts/inter-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;
}

:root {
  --bg:        #0B0F0D;
  --card:      #151B18;
  --input:     #1C231F;
  --primary:   #34D96C;
  --primary-d: #2AB558;
  --tint:      #12281A;
  --orange:    #FF6B35;
  --gold:      #FFD447;
  --text:      #F5F7F5;
  --muted:     #9AA69F;
  --dim:       #7C8880;
  --line:      rgba(245, 247, 245, 0.10);
  --radius:    16px;
  --wrap:      1080px;
  --read:      720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.read { max-width: var(--read); }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 13, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 18px;
  min-height: 62px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; display: block; }
.nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding: 84px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 50% auto; transform: translateX(50%);
  width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 217, 108, 0.14) 0%, rgba(52, 217, 108, 0) 62%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero img.mark { width: 92px; height: 92px; border-radius: 22px; margin-bottom: 26px; }
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); background: var(--tint);
  border: 1px solid rgba(52, 217, 108, 0.25); border-radius: 999px; padding: 6px 14px;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 800; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 620px; margin: 0 auto 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--primary); color: #0B0F0D;
  font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 999px;
}
.btn:hover { background: var(--primary-d); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--card); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.req { margin-top: 18px; font-size: 14px; color: var(--dim); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
section { padding: 54px 0; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 800; }
h3 { font-size: 1.12rem; margin: 34px 0 8px; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1rem; margin: 22px 0 6px; font-weight: 700; color: var(--text); }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong { color: var(--text); font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 30px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.note {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--primary);
  border-radius: 12px; padding: 18px 20px; margin: 22px 0; font-size: 15.5px; color: var(--muted);
}
.note.warn { border-left-color: var(--orange); }
.note strong { color: var(--text); }

/* ── Legal documents ──────────────────────────────────────────────────────── */
.doc { padding: 52px 0 24px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.7rem); margin-bottom: 10px; }
.updated { color: var(--dim); font-size: 14.5px; margin-bottom: 34px; }
.doc h2 {
  font-size: 1.32rem; margin: 44px 0 12px; padding-top: 22px;
  border-top: 1px solid var(--line); font-weight: 800;
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc p, .doc li { color: #D6DCD8; }

.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 12px; }
.toc p { margin: 0 0 10px; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; font-size: 15px; }
.toc li { margin-bottom: 5px; break-inside: avoid; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--primary); }

.table-scroll { overflow-x: auto; margin: 18px 0 24px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--input); font-weight: 700; font-size: 13.5px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--dim); }
tr:last-child td { border-bottom: 0; }

/* Placeholder that must be replaced before shipping — deliberately loud. */
.pending {
  background: rgba(255, 107, 53, 0.16); color: var(--orange);
  border: 1px dashed rgba(255, 107, 53, 0.5); border-radius: 6px;
  padding: 1px 7px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em; font-weight: 600;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 10px;
}
details[open] { border-color: rgba(52, 217, 108, 0.28); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-weight: 700; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details > *:not(summary) { color: var(--muted); font-size: 15.5px; }
details > p:first-of-type { margin-top: 14px; }
details > p:last-child { margin-bottom: 0; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding: 34px 0 46px; margin-top: 40px; color: var(--dim); font-size: 14.5px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.site-foot a { color: var(--muted); }
.site-foot .spacer { margin-left: auto; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 60px 0 46px; }
  .toc ol { columns: 1; }
  .site-head .wrap { min-height: 56px; }
  .nav { gap: 14px; width: 100%; margin-left: 0; padding-bottom: 10px; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-head, .site-foot, .toc { display: none; }
  .doc p, .doc li { color: #000; }
}
