/* ============================================================
   Echo — marketing site design system.
   Faithful to the app: deep ink canvas, a slow aurora of dusk
   violet / rose / amber / teal, liquid glass, rounded display
   type and serif "reading" passages. Tokens mirror Theme.swift.
   ============================================================ */

:root {
  /* Canvas (Theme.ink / Theme.inkRaised) */
  --ink: #0b0d17;
  --ink-raised: #131623;
  --ink-deep: #07080f;

  /* Aurora hues */
  --violet: #6d5ae6;
  --rose: #ff7a8a;
  --amber: #ffb35c;
  --teal: #4fa3a6;

  /* The voice color — Theme.record */
  --coral: #ff8f73;

  /* Valence palette: −1 indigo → 0 teal → +1 coral amber */
  --valence-neg: #4a40bf;
  --valence-mid: #4fa3a6;
  --valence-pos: #ff8a5c;
  --valence-gradient: linear-gradient(90deg,
      var(--valence-neg), var(--valence-mid), #f2b866, var(--valence-pos));

  /* Text */
  --text: rgba(255, 255, 255, 0.93);
  --text-dim: rgba(255, 255, 255, 0.62);
  --text-faint: rgba(255, 255, 255, 0.42);

  /* Liquid glass */
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.085);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-blur: 20px;

  /* Shadows & radii */
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, 0.55);
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;

  /* Type */
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito",
      -apple-system, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text",
      "Segoe UI", Roboto, sans-serif;
  --font-reading: ui-serif, "New York", "Source Serif 4",
      Georgia, serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
  accent-color: var(--coral);
}

/* ---------- Reset-ish ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}

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

a { color: inherit; }

a, button, .btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ============================================================
   Aurora — the living canvas behind every screen.
   Four blurred blobs drifting slowly, like AuroraBackground.swift.
   ============================================================ */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--ink);
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(clamp(60px, 9vw, 110px));
  will-change: transform;
}

.aurora .a-violet {
  width: 68vmax; height: 68vmax;
  left: -12vmax; top: -20vmax;
  background: radial-gradient(circle, rgba(109, 90, 230, 0.42), transparent 65%);
  animation: drift-a 52s var(--ease-out) infinite alternate;
}
.aurora .a-rose {
  width: 54vmax; height: 54vmax;
  right: -16vmax; top: 4vmax;
  background: radial-gradient(circle, rgba(255, 122, 138, 0.26), transparent 65%);
  animation: drift-b 64s var(--ease-out) infinite alternate;
}
.aurora .a-amber {
  width: 60vmax; height: 60vmax;
  right: -8vmax; bottom: -22vmax;
  background: radial-gradient(circle, rgba(255, 179, 92, 0.18), transparent 65%);
  animation: drift-c 58s var(--ease-out) infinite alternate;
}
.aurora .a-teal {
  width: 48vmax; height: 48vmax;
  left: -10vmax; bottom: -12vmax;
  background: radial-gradient(circle, rgba(79, 163, 166, 0.22), transparent 65%);
  animation: drift-d 47s var(--ease-out) infinite alternate;
}

@keyframes drift-a { to { transform: translate(9vmax, 7vmax) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-7vmax, 9vmax) scale(0.94); } }
@keyframes drift-c { to { transform: translate(-9vmax, -7vmax) scale(1.06); } }
@keyframes drift-d { to { transform: translate(8vmax, -8vmax) scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
  .aurora span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Type
   ============================================================ */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(42px, 7vw, 76px); }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: 21px; font-weight: 700; }

p { text-wrap: pretty; }

.lead {
  font-family: var(--font-reading);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 20px 0 0;
}

/* Gradient highlight — the voice, rose → amber */
.hl {
  background: linear-gradient(100deg, var(--rose), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 8px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================================
   Glass & buttons
   ============================================================ */

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
      background 0.25s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--coral {
  color: #2b1009;
  background: linear-gradient(120deg, var(--rose), var(--amber));
  box-shadow: 0 6px 24px rgba(255, 122, 138, 0.35);
}
.btn--coral:hover { box-shadow: 0 10px 32px rgba(255, 143, 115, 0.45); }

.btn--glass {
  color: var(--text);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--glass:hover { background: var(--glass-bg-strong); }

/* App Store badge (placeholder until launch) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #0b0d17;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.72;
}
.store-badge .big {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
}

/* ============================================================
   Nav — floating glass pill
   ============================================================ */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  translate: -50% 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  /* width: auto on a fixed box at left:50% resolves against the remaining
     half-viewport, shrinking flex items on phones — force content width. */
  width: max-content;
  max-width: calc(100vw - 16px);
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: rgba(11, 13, 23, 0.55);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

.nav.scrolled {
  background: rgba(11, 13, 23, 0.78);
  box-shadow: var(--shadow-soft);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}
.nav__brand img { border-radius: 8px; }

.nav__links {
  display: flex;
  gap: 18px;
}
.nav__links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

.nav__lang {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 6px 12px;
  transition: color 0.2s, background 0.2s;
}
.nav__lang:hover { color: var(--text); background: var(--glass-bg); }

.nav .btn { padding: 10px 20px; font-size: 15px; }

@media (max-width: 720px) {
  .nav { gap: 12px; }
  .nav__links { display: none; }
}

/* Compact pill on small phones — everything still fits at 320px */
@media (max-width: 420px) {
  .nav { gap: 9px; padding: 6px 8px 6px 12px; }
  .nav__brand { font-size: 17px; gap: 8px; }
  .nav__brand img { width: 26px; height: 26px; }
  .nav__lang { padding: 6px 10px; font-size: 12px; }
  .nav .btn { padding: 9px 15px; font-size: 14px; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero { padding: clamp(130px, 18vh, 190px) 0 clamp(60px, 9vw, 110px); }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 { margin-top: 22px; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.hero__note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-faint);
}

.hero__stage {
  position: relative;
  display: grid;
  justify-items: center;
}

/* Phone frame */
.phone {
  width: min(320px, 78vw);
  padding: 11px;
  border-radius: 48px;
  background: #05060c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 38px; }

.phone--float { animation: float 8s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .phone--float { animation: none; }
}

/* Mood orb — the app's daily feeling, in CSS */
.orb-mood {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%,
      #ffd9a8, var(--amber) 55%, #e08c4d);
  box-shadow: 0 0 18px rgba(255, 179, 92, 0.55);
}
.orb-mood--calm {
  background: radial-gradient(circle at 32% 28%,
      #b9e6e2, var(--teal) 55%, #35787c);
  box-shadow: 0 0 18px rgba(79, 163, 166, 0.55);
}

/* Floating glass chips over the phone */
.float-card {
  position: absolute;
  right: clamp(-8px, 1vw, 12px);
  bottom: 14%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(19, 22, 35, 0.72);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  animation: float 8s ease-in-out 1.2s infinite;
}
.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
}
.float-card small {
  font-family: var(--font-reading);
  font-style: italic;
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__stage { order: 2; margin-top: 12px; }
  /* Anchor the chip to the phone (stage spans the full column here) */
  .float-card { right: calc(50% - 200px); bottom: 12%; }
}

/* ============================================================
   Section scaffolding
   ============================================================ */

section { position: relative; }

.section-pad { padding: clamp(70px, 11vw, 130px) 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  display: grid;
  justify-items: center;
}
.section-head h2 { margin-top: 18px; }

/* ============================================================
   Features (How it works)
   ============================================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  padding: 28px 24px;
  display: grid;
  gap: 12px;
  align-content: start;
  transition: transform 0.35s var(--ease-out), background 0.35s;
}
.feature:hover {
  transform: translateY(-6px);
  background: var(--glass-bg-strong);
}

.feature .ico {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
}
.feature .ico svg { width: 28px; height: 28px; }

.feature p { margin: 0; font-size: 15px; color: var(--text-dim); }

.ico--coral { color: var(--coral); }
.ico--violet { color: #9d8cf0; }
.ico--amber { color: var(--amber); }
.ico--teal { color: #7cc4c6; }

@media (max-width: 980px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* Steps chips */
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(36px, 5vw, 52px);
}
.step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}
.step b {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--rose), var(--amber));
  color: #2b1009;
  font-size: 14px;
}

/* ============================================================
   Graph story — deep band, phone left / copy right
   ============================================================ */

.graph-story {
  background: linear-gradient(var(--ink-deep), var(--ink-deep));
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.graph-story .wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.graph-story__stage {
  position: relative;
  display: grid;
  justify-items: center;
}

/* Floating week-strip card: seven mood orbs */
.week-card {
  position: absolute;
  left: clamp(-10px, 1vw, 10px);
  top: 9%;
  padding: 14px 16px 12px;
  border-radius: 22px;
  background: rgba(19, 22, 35, 0.74);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  animation: float 9s ease-in-out 0.6s infinite;
}
.week-card .days {
  display: flex;
  gap: 9px;
}
.week-card .day {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-faint);
}
.week-card .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
}
.week-card .dot--empty {
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
}
.d-good  { background: radial-gradient(circle at 32% 28%, #ffd9a8, #f2a35e 60%, #d97f3e); box-shadow: 0 0 10px rgba(255,179,92,.5); }
.d-warm  { background: radial-gradient(circle at 32% 28%, #ffc2b0, #ff8f73 60%, #e06a4e); box-shadow: 0 0 10px rgba(255,143,115,.5); }
.d-calm  { background: radial-gradient(circle at 32% 28%, #b9e6e2, #4fa3a6 60%, #35787c); box-shadow: 0 0 10px rgba(79,163,166,.5); }
.d-heavy { background: radial-gradient(circle at 32% 28%, #a79ef0, #6d5ae6 60%, #4a40bf); box-shadow: 0 0 10px rgba(109,90,230,.5); }

.perks {
  list-style: none;
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 32px 0 0;
}
.perks li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--r-md);
}
.perks .emoji { font-size: 24px; line-height: 1.3; }
.perks b {
  display: block;
  font-family: var(--font-display);
  font-size: 16.5px;
}
.perks span:not(.emoji) {
  font-size: 14.5px;
  color: var(--text-dim);
}

@media (max-width: 980px) {
  .graph-story .wrap { grid-template-columns: 1fr; }
  .graph-story__stage { order: 2; margin-top: 8px; }
  /* Anchor the week strip to the phone */
  .week-card { left: calc(50% - 205px); top: 6%; }
}

/* ============================================================
   Screens — three tilted shots
   ============================================================ */

.shots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}
.shots a {
  border-radius: 30px;
  transition: transform 0.4s var(--ease-out);
}
.shots a:nth-child(1) { transform: rotate(-2.2deg); }
.shots a:nth-child(3) { transform: rotate(2.2deg); }
.shots a:hover { transform: rotate(0) translateY(-10px) scale(1.02); }

.shots img {
  width: min(280px, 27vw);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-deep);
}

/* Mobile: swipeable scroll-snap carousel, full-bleed, hidden scrollbar */
@media (max-width: 720px) {
  .shots {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * clamp(20px, 4vw, 32px));
    padding-inline: clamp(20px, 4vw, 32px);
    scroll-padding-inline: clamp(20px, 4vw, 32px);
    padding-bottom: 10px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots a {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
  .shots a:nth-child(1), .shots a:nth-child(3) { transform: none; }
  .shots img { width: min(72vw, 340px); }
}

/* ============================================================
   Privacy panel
   ============================================================ */

.privacy__panel {
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
  display: grid;
  justify-items: center;
}

.privacy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
  margin-top: clamp(32px, 4vw, 48px);
  text-align: left;
  width: 100%;
  max-width: 860px;
}

.privacy__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.privacy__item .check {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(130deg, var(--teal), #7cc4c6);
  color: #05231f;
  margin-top: 2px;
}
.privacy__item .check svg { width: 14px; height: 14px; }
.privacy__item b {
  display: block;
  font-family: var(--font-display);
  font-size: 16.5px;
}
.privacy__item span {
  font-size: 14.5px;
  color: var(--text-dim);
}

.privacy__more {
  margin-top: clamp(28px, 4vw, 40px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--coral);
  text-decoration: none;
}
.privacy__more:hover { text-decoration: underline; }

@media (max-width: 720px) { .privacy__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Get — final CTA
   ============================================================ */

.get__panel {
  border-radius: var(--r-xl);
  padding: clamp(44px, 7vw, 80px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.get__panel .appicon {
  width: 88px; height: 88px;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}
.get__panel .lead { margin-top: 0; }
.get__panel .store-badge { margin-top: 10px; }

/* ============================================================
   Footer
   ============================================================ */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(48px, 7vw, 72px) 0 40px;
  background: rgba(5, 6, 12, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
}
.foot-brand img { border-radius: 8px; }

.foot-tag {
  font-family: var(--font-reading);
  font-style: italic;
  color: var(--text-dim);
  margin-top: 12px;
}

.foot-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 14px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a {
  display: inline-block;
  padding-block: 4px;
  font-size: 15px;
  color: var(--text-dim);
  text-decoration: none;
}
.foot-col a:hover { color: var(--text); }

.foot-bottom {
  margin-top: 48px;
  font-size: 13.5px;
  color: var(--text-faint);
}

@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Legal / document pages
   ============================================================ */

.legal { padding: clamp(130px, 18vh, 170px) 0 clamp(60px, 9vw, 100px); }
.legal .wrap.doc { max-width: 680px; }

.legal h1 { font-size: clamp(34px, 5vw, 48px); }
.legal .updated {
  color: var(--text-faint);
  font-size: 14.5px;
  margin: 14px 0 0;
}
.legal section { margin-top: 40px; }
.legal h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.legal h3 { font-size: 17px; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--text-dim); font-size: 16px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal a { color: var(--coral); }
.legal .summary {
  margin-top: 28px;
  padding: 24px 28px;
  border-radius: var(--r-md);
}
.legal .summary ul { margin: 8px 0 0; display: grid; gap: 6px; }

/* ============================================================
   Rendering performance
   ============================================================ */

/* Below-the-fold sections skip layout/paint until approached. */
.cv {
  content-visibility: auto;
  contain-intrinsic-size: auto 1000px;
}

/* Cheaper glass on small screens */
@media (max-width: 720px) {
  :root { --glass-blur: 14px; }
}

/* ============================================================
   Reveal animations — armed only when JS is present,
   skipped for reduced motion.
   ============================================================ */

html.js .reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out);
}
html.js .reveal.in {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}
