/* Whisper site — one stylesheet for every page. Colours follow the app:
   Bedtime navy #121528, child accent #C25425 (whisper_design_system). */
:root {
  --night: #121528;
  --night-2: #1c2140;
  --ink: #1f2333;
  --ink-muted: #5b6075;
  --paper: #fbf8f3;
  --card: #ffffff;
  --line: #e7e1d6;
  --accent: #c25425;
  --accent-soft: #f6e3d8;
  --moon: #f3e7c4;
  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.site-header { background: var(--night); color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: .2px; }
.brand img { width: 36px; height: 36px; }
.site-nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-nav a { color: #dfe2f2; text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.lang { border: 1px solid #3a4170; border-radius: 999px; padding: 2px 12px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #2b3266 0%, var(--night) 60%); color: #fff; padding: 72px 0 84px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 16px; }
.hero p { font-size: 1.15rem; color: #dfe2f2; margin: 0 0 24px; max-width: 34em; }
.hero .mark { justify-self: center; width: min(280px, 70vw); filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
.badge { display: inline-block; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .9rem; color: var(--moon); }

/* Sections */
section { padding: 64px 0; }
section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; }
.lead { color: var(--ink-muted); margin: 0 0 32px; max-width: 42em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; }
.band { background: var(--night-2); color: #fff; }
.band .lead { color: #c9cde3; }
.band .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.band .card p { color: #c9cde3; }
.band .icon { background: rgba(243,231,196,.15); color: var(--moon); }
.promise { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.promise li { padding-left: 34px; position: relative; }
.promise li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; display: grid; place-items: center; font-weight: 800; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 4px; }
.doc .meta { color: var(--ink-muted); margin: 0 0 28px; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 8px; }
.doc th { background: #f3eee5; }
.doc .table-scroll { overflow-x: auto; }
.note { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 16px; margin: 20px 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 28px; }
.toc ol { margin: 0; padding-left: 20px; }

/* Footer */
.site-footer { background: var(--night); color: #c9cde3; padding: 32px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer a { color: #fff; }
.site-footer .spacer { margin-left: auto; }

@media (max-width: 800px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .mark { width: 160px; grid-row: 1; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .site-nav { margin-left: 0; width: 100%; padding-bottom: 12px; }
  .site-footer .spacer { margin-left: 0; }
}
