/* ============================================================
   Era — bedtime storybook, child of Erasmus Labs.
   Single-typeface system (Geist). Glass + brushed-metal texture.
   Light by default, dark toggle for bedtime.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Single-typeface system. Geist for everything, mono only for fine print. */
  --font-display: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:    'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale */
  --fs-display-xl: 88px; --fs-display-l: 64px; --fs-display-m: 48px;
  --fs-h1: 36px; --fs-h2: 28px; --fs-h3: 22px; --fs-h4: 18px;
  --fs-body-l: 17px; --fs-body: 15px; --fs-body-s: 13px;
  --fs-caption: 12px; --fs-mono: 13px;

  --lh-display: 1.04; --lh-heading: 1.18; --lh-body: 1.55; --lh-tight: 1.3;

  --tracking-display: -0.005em;
  --tracking-heading: -0.005em;
  --tracking-body:    -0.003em;
  --tracking-mono:    0.02em;
  --tracking-eyebrow: 0.22em;

  /* Ink (neutrals) */
  --ink-0:  #FFFFFF; --ink-50: #F4F5F7; --ink-100: #E8EAEF; --ink-200: #D1D5DD;
  --ink-300: #A8AEBC; --ink-400: #7B8294; --ink-500: #5A6274; --ink-600: #3F4757;
  --ink-700: #232938; --ink-800: #141826; --ink-900: #0A0E1A; --ink-950: #05070F;

  /* Light mode semantics */
  --bg:           var(--ink-0);
  --bg-elevated:  var(--ink-0);
  --bg-subtle:    var(--ink-50);
  --bg-muted:     var(--ink-100);

  --fg:           var(--ink-900);
  --fg-strong:    var(--ink-950);
  --fg-muted:     var(--ink-500);
  --fg-subtle:    var(--ink-400);
  --fg-disabled:  var(--ink-300);
  --fg-inverse:   var(--ink-50);

  --border:        var(--ink-100);
  --border-strong: var(--ink-200);

  --accent:        #C15B32;
  --accent-hover:  #A94F2C;

  --inset-hi:      inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --inset-hi-dark: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --shadow-sm: 0 1px 2px rgba(10, 14, 26, 0.05), 0 2px 6px rgba(10, 14, 26, 0.05);
  --shadow-md: 0 1px 3px rgba(10, 14, 26, 0.06), 0 8px 20px -8px rgba(10, 14, 26, 0.12);
  --shadow-lg: 0 1px 3px rgba(10, 14, 26, 0.06), 0 24px 48px -16px rgba(10, 14, 26, 0.18);

  --ease-standard:   cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg:           var(--ink-900);
  --bg-elevated:  var(--ink-800);
  --bg-subtle:    #11151F;
  --bg-muted:     #1B2030;

  --fg:           var(--ink-50);
  --fg-strong:    #FFFFFF;
  --fg-muted:     #8B92A5;
  --fg-subtle:    #6B7285;
  --fg-disabled:  #4A5161;
  --fg-inverse:   var(--ink-900);

  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --accent:        #E08B66;
  --accent-hover:  #F0A27E;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}

/* ============ base ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "cv02";
  /* Subtle ambient warmth — gives surfaces something to reflect */
  background-image:
    radial-gradient(1200px 600px at 78% -10%, rgba(205,122,74,0.07), transparent 60%),
    radial-gradient(900px 500px at 12% 110%, rgba(196,154,87,0.08), transparent 60%);
  transition: background 240ms var(--ease-standard), color 240ms var(--ease-standard);
}
[data-theme="dark"] body {
  background-image:
    radial-gradient(1200px 600px at 78% -10%, rgba(205,122,74,0.10), transparent 60%),
    radial-gradient(900px 500px at 12% 110%, rgba(230,209,160,0.05), transparent 60%);
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 120ms var(--ease-standard);
}
a:hover { color: var(--accent-hover); }

::selection { background: rgba(193, 91, 50, 0.24); color: var(--ink-900); }
[data-theme="dark"] ::selection { background: rgba(224, 139, 102, 0.35); color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ============ container ============ */
.container { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 32px); }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ============ HEADER — sticky, glass blur ============ */
.eh {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex; align-items: center;
}
.eh-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px; }
.eh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.eh-brand-mark {
  width: 26px; height: 26px; border-radius: 6px; overflow: hidden;
  background: #000; flex: none;
  box-shadow: var(--inset-hi-dark), 0 0 0 1px var(--border);
}
.eh-brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eh-brand-name {
  font-weight: 500; font-size: 16px;
  color: var(--fg-strong); letter-spacing: -0.01em;
}
.eh-brand-sub {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-subtle); margin-left: 2px;
}
@media (max-width: 600px) { .eh-brand-sub { display: none; } }

.eh-nav {
  display: flex; align-items: center; gap: 22px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.eh-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 120ms var(--ease-standard);
}
.eh-nav a:hover { color: var(--fg-strong); }
@media (max-width: 720px) { .eh-nav { display: none; } }

.eh-actions { display: flex; align-items: center; gap: 12px; }
.eh-coord {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; color: var(--fg-subtle);
}
@media (max-width: 980px) { .eh-coord { display: none; } }

/* Locale select */
.eh-locale {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-muted);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, #fff 6%) 0%, var(--bg) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 6px 26px 6px 10px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 180ms var(--ease-standard);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 1.5px),
    calc(100% - 10px) calc(50% - 1.5px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
[data-theme="dark"] .eh-locale {
  background-color: transparent;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.eh-locale:hover { color: var(--fg-strong); border-color: var(--fg-muted); }

/* Theme toggle — brushed-metal pill */
.toggle {
  height: 36px; width: 36px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, #fff 6%) 0%, var(--bg) 100%);
  border: 1px solid var(--border-strong); color: var(--fg);
  cursor: pointer; padding: 0;
  transition: all 180ms var(--ease-standard);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
[data-theme="dark"] .toggle { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.toggle:hover { background: var(--bg-subtle); }
.toggle svg { width: 14px; height: 14px; }
.toggle .icon-sun { display: none; }
[data-theme="dark"] .toggle .icon-sun { display: inline; }
[data-theme="dark"] .toggle .icon-moon { display: none; }

/* ============ entry head — observatory mark ============ */
.entry-head {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-subtle);
  padding: 96px 0 36px;
}
.entry-num { color: var(--fg-strong); }
.entry-rule { flex: 1; height: 1px; background: var(--border); }

/* ============ link arrow ============ */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--fg-strong); font-size: 14px; font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--fg-strong);
  padding-bottom: 2px;
  transition: gap 180ms var(--ease-standard), opacity 180ms var(--ease-standard);
}
.link-arrow:hover { gap: 10px; opacity: 0.75; text-decoration: none; }
.link-arrow svg { width: 12px; height: 12px; }

/* ============ buttons — brushed metal ============ */
.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  height: 44px; padding: 0 20px; border-radius: 6px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: all 180ms var(--ease-standard);
  white-space: nowrap;
}
.button-primary, .btn-primary {
  background: linear-gradient(180deg, #2a3046 0%, #0f1322 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 1px 2px rgba(0,0,0,0.2);
}
.button-primary:hover, .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 6px 16px -6px rgba(0,0,0,0.35);
  color: #fff;
}
[data-theme="dark"] .button-primary, [data-theme="dark"] .btn-primary {
  background: linear-gradient(180deg, #fff6e8 0%, #e6d1a0 100%);
  color: var(--ink-900);
  border-color: rgba(0,0,0,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.4);
}
.button-secondary, .btn-secondary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, #fff 6%) 0%, var(--bg) 100%);
  color: var(--fg-strong); border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
[data-theme="dark"] .button-secondary, [data-theme="dark"] .btn-secondary {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.button-secondary:hover, .btn-secondary:hover { background: var(--bg-subtle); border-color: var(--fg-muted); color: var(--fg-strong); }

/* ============ HERO ============ */
.hero { padding: 64px 0 96px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 80px;
  align-items: center;
}
@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr 380px; gap: 56px; } }
@media (max-width: 900px)  { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
/* Let grid/flex children shrink below their content width so long words wrap
   instead of forcing horizontal overflow (text touching the viewport edge). */
.hero-grid > *, .how-step, .feat-cell, .foot-col, .foot-brand, .policy-card > * { min-width: 0; }
.hero h1, .closer h2, .how-title, .feat-cell h3, .foot-col a, .policy-card h2, .policy-card p { overflow-wrap: break-word; }

.hero-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 28px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.hero-eyebrow .sep { color: var(--fg-subtle); opacity: 0.6; }
.hero-eyebrow .filed { color: var(--fg-strong); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.2vw, 96px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.0;
  margin: 0 0 32px;
  color: var(--fg-strong);
  text-wrap: balance;
}

.hero p.lead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 52ch;
  margin: 0 0 36px;
  text-wrap: pretty;
  letter-spacing: -0.005em;
}

.hero-ctas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-meta-row {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-subtle);
}
.hero-meta-row strong { color: var(--fg); font-weight: 500; }

/* ---- hero figure: warm editorial frame + app icon card ---- */
.hero-figure { position: relative; aspect-ratio: 1 / 1.08; max-width: 460px; }
.hero-sky {
  position: absolute; inset: 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(245, 175, 72, 0.20), transparent 34%),
    radial-gradient(ellipse at 28% 74%, rgba(138, 94, 45, 0.10), transparent 46%),
    linear-gradient(180deg, rgba(255, 250, 238, 0.96) 0%, rgba(244, 233, 210, 0.84) 100%);
  box-shadow:
    0 28px 56px -28px rgba(92, 61, 24, 0.30),
    0 8px 18px -14px rgba(92, 61, 24, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.76);
  border: 1px solid rgba(130, 94, 44, 0.14);
}

/* Soft shine across the hero panel */
.hero-sky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0) 38%, rgba(118,78,32,0.08) 100%),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(118,78,32,0.06) 100%);
  z-index: 1;
}

.hero-card {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(62%, 260px);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 249, 236, 0.96) 0%, rgba(230, 209, 160, 0.74) 100%);
  border: 1px solid rgba(130, 94, 44, 0.18);
  box-shadow:
    0 30px 54px -22px rgba(76, 48, 20, 0.42),
    0 12px 26px -18px rgba(76, 48, 20, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.72);
  z-index: 2;
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 20px;
  box-shadow: 0 12px 22px -16px rgba(76, 48, 20, 0.42);
}

.hero-figure-cap {
  position: absolute; left: 18px; bottom: 14px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(87, 64, 38, 0.52);
  z-index: 3;
}
.hero-figure-cap.right { left: auto; right: 18px; }

/* ============ section ============ */
.section { padding: 16px 0 40px; }

/* ============ HOW IT WORKS ============ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; gap: 0; } }

.how-step {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.how-step:last-child { border-right: none; padding-right: 0; }
@media (max-width: 900px) {
  .how-step { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 0; }
  .how-step:last-child { border-bottom: none; }
}
.how-num {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 18px;
}
.how-num strong { color: var(--accent); font-weight: 500; }
.how-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500;
  color: var(--fg-strong);
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.how-body {
  font-size: 15px; line-height: 1.55; color: var(--fg-muted);
  margin: 0; max-width: 36ch;
}
.how-icon {
  width: 28px; height: 28px;
  margin-bottom: 22px;
  color: var(--fg-strong);
  opacity: 0.85;
}
.how-icon svg { width: 100%; height: 100%; }

/* ============ FEATURES ============ */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 0; padding: 0;
}
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-cell {
  background: var(--bg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  list-style: none;
}
.feat-cell .feat-k {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-subtle);
}
.feat-cell h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500; margin: 0;
  color: var(--fg-strong); letter-spacing: -0.012em;
  line-height: 1.2;
}
.feat-cell p {
  font-size: 14px; line-height: 1.55; color: var(--fg-muted); margin: 0;
}

/* ============ CLOSER ============ */
.closer { padding: 56px 0 96px; }
.closer-body { max-width: 720px; padding-top: 8px; }
.closer h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--fg-strong);
  text-wrap: balance;
}
.closer p {
  font-size: 16px; color: var(--fg-muted);
  max-width: 56ch; margin: 0 0 32px; line-height: 1.55;
}
.closer-ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ============ App Store / Google Play badges (official assets) ============ */
.badge-row { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-block; line-height: 0;
  transition: opacity 180ms var(--ease-standard), transform 120ms var(--ease-standard);
}
.badge:hover { opacity: 0.85; }
.badge:active { transform: translateY(1px); }
.badge img { display: block; height: 44px; width: auto; }
.badge-google img { height: 64px; margin: -10px 0; }

/* ============ FOOTER ============ */
.foot { padding: 64px 0 28px; }
.foot-rule { height: 1px; background: var(--border); margin-bottom: 40px; }
.foot-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 720px) { .foot-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.foot-brand .row { display: flex; align-items: center; gap: 10px; }
.foot-brand-mark { width: 22px; height: 22px; border-radius: 5px; overflow: hidden; background: #000; }
.foot-brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foot-brand-name { font-weight: 500; font-size: 15px; color: var(--fg-strong); letter-spacing: -0.01em; }
.foot-brand p {
  font-size: 13px; color: var(--fg-muted); margin: 0; line-height: 1.5;
}
.foot-col h5 {
  font-family: var(--font-mono); font-size: 10px;
  font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-subtle); margin: 0 0 14px;
}
.foot-col a {
  display: block; color: var(--fg); font-size: 13px;
  padding: 4px 0; text-decoration: none;
  font-family: var(--font-mono);
}
.foot-col a:hover { color: var(--fg-strong); text-decoration: underline; text-underline-offset: 3px; }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-subtle);
  flex-wrap: wrap; gap: 12px;
}

/* ============ POLICY (privacy / terms) ============ */
.policy-layout { padding: 32px 0 96px; }
.policy-intro { max-width: 760px; padding-top: 24px; }
.policy-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 24px;
}
.policy-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 0 24px;
  color: var(--fg-strong);
  text-wrap: balance;
}
.policy-intro .lead {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 64ch;
  margin: 0;
  text-wrap: pretty;
}

.policy-grid {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.policy-card {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  scroll-margin-top: 80px;
}
.policy-card:last-child { border-bottom: none; }
@media (max-width: 820px) { .policy-card { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; } }
.policy-card h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--fg-strong);
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}
.policy-card > div, .policy-card-body {
  display: flex; flex-direction: column; gap: 14px;
}
.policy-card p {
  font-size: 15px; line-height: 1.65; color: var(--fg);
  margin: 0; max-width: 70ch; text-wrap: pretty;
}
.policy-list {
  margin: 4px 0 0; padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.policy-list li {
  font-size: 14px; line-height: 1.55; color: var(--fg-muted);
  padding-left: 18px; position: relative; max-width: 68ch;
}
.policy-list li::before {
  content: ""; position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 1px;
  background: var(--fg-subtle);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body, a, .toggle, .eh-locale, .button, .badge { transition: none; }
}
