/* ============================================================
   Namewise — Warm Literary Flashcard
   Cream paper · ink-navy · Playfair Display + Lora
   ============================================================ */

:root {
  /* Palette */
  --paper: #F7F1E3;
  --paper-2: #F1E8D4;      /* deeper cream panel */
  --paper-3: #ECE1C9;      /* card edge */
  --ink: #1E274A;          /* deep ink-navy */
  --ink-2: #3a4470;        /* softened ink */
  --ink-3: #6a6f8c;        /* muted ink for meta */
  --terracotta: #B4573A;   /* warm accent */
  --gold: #C08A3E;         /* gilt accent */
  --line: rgba(30, 39, 74, 0.14);
  --line-strong: rgba(30, 39, 74, 0.26);

  --bg: var(--paper);
  --fg: var(--ink);
  --panel: #FBF6EA;
  --card: #FCF8ED;
  --shadow: 24px 30px 60px -30px rgba(30, 39, 74, 0.35);
  --shadow-sm: 0 10px 26px -14px rgba(30, 39, 74, 0.4);

  --serif-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif-body: "Lora", Georgia, serif;

  --maxw: 1160px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Adaptive dark — warm literary night */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14172b;
    --paper-2: #1a1f3b;
    --paper-3: #232948;
    --ink: #F3ECDA;
    --ink-2: #d8cfba;
    --ink-3: #a49c8c;
    --line: rgba(243, 236, 218, 0.14);
    --line-strong: rgba(243, 236, 218, 0.24);
    --bg: var(--paper);
    --fg: var(--ink);
    --panel: #1b2140;
    --card: #1e2547;
    --shadow: 24px 30px 70px -30px rgba(0, 0, 0, 0.7);
    --shadow-sm: 0 12px 30px -16px rgba(0, 0, 0, 0.65);
    --terracotta: #d1795c;
    --gold: #d8a556;
  }
}
:root[data-theme="dark"] {
  --paper: #14172b; --paper-2: #1a1f3b; --paper-3: #232948;
  --ink: #F3ECDA; --ink-2: #d8cfba; --ink-3: #a49c8c;
  --line: rgba(243, 236, 218, 0.14); --line-strong: rgba(243, 236, 218, 0.24);
  --bg: var(--paper); --fg: var(--ink); --panel: #1b2140; --card: #1e2547;
  --shadow: 24px 30px 70px -30px rgba(0,0,0,0.7);
  --shadow-sm: 0 12px 30px -16px rgba(0,0,0,0.65);
  --terracotta: #d1795c; --gold: #d8a556;
}
:root[data-theme="light"] {
  --paper: #F7F1E3; --paper-2: #F1E8D4; --paper-3: #ECE1C9;
  --ink: #1E274A; --ink-2: #3a4470; --ink-3: #6a6f8c;
  --line: rgba(30,39,74,0.14); --line-strong: rgba(30,39,74,0.26);
  --bg: var(--paper); --fg: var(--ink); --panel: #FBF6EA; --card: #FCF8ED;
  --shadow: 24px 30px 60px -30px rgba(30,39,74,0.35);
  --shadow-sm: 0 10px 26px -14px rgba(30,39,74,0.4);
  --terracotta: #B4573A; --gold: #C08A3E;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  position: relative;
  /* warm radial wash */
  background-image:
    radial-gradient(120% 70% at 12% -8%, rgba(192, 138, 62, 0.10), transparent 60%),
    radial-gradient(90% 60% at 100% 0%, rgba(180, 87, 58, 0.08), transparent 55%);
  background-attachment: fixed;
}

/* Paper grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  .grain { mix-blend-mode: screen; opacity: 0.06; }
}
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: 0.06; }
:root[data-theme="light"] .grain { mix-blend-mode: multiply; opacity: 0.5; }

main, .site-header, .site-footer { position: relative; z-index: 2; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ---------- Header ---------- */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px clamp(20px, 5vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-mark { color: var(--terracotta); display: inline-flex; }
.brand-name {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); font-size: 0.98rem; }
.site-nav a { color: var(--ink-2); transition: color 0.25s var(--ease); }
.site-nav a:hover { color: var(--terracotta); }
.nav-cta {
  border: 1.5px solid var(--line-strong);
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--ink) !important;
  transition: all 0.28s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; border-color: var(--ink); }
@media (max-width: 620px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: clamp(28px, 6vw, 70px) auto clamp(60px, 9vw, 120px);
  padding: 0 clamp(20px, 5vw, 44px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
}
.eyebrow {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  margin: 0 0 18px;
}
.wordmark {
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: clamp(4.4rem, 13vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  color: var(--ink);
}
.wordmark em {
  font-weight: 600;
  font-style: italic;
  color: var(--terracotta);
  display: inline-block;
}
.tagline {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.35;
  color: var(--ink-2);
  max-width: 20ch;
  margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 26px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 22px;
  border-radius: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}
.badge:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -16px rgba(30,39,74,0.5); }
.badge-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.badge-text small { font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.8; font-family: var(--serif-body); }
.badge-text strong { font-family: var(--serif-display); font-size: 1.18rem; font-weight: 700; }
.badge-lg { padding: 16px 28px; }
.badge-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  box-shadow: none;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.02rem;
  padding: 14px 22px;
}
.badge-ghost:hover { background: var(--paper-2); box-shadow: none; }

.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.hero-meta li { position: relative; padding-left: 18px; }
.hero-meta li::before {
  content: "✦";
  position: absolute; left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

/* Hero art — portrait card stack */
.hero-art { display: flex; justify-content: center; perspective: 1400px; }
.card-stack { position: relative; width: min(340px, 78vw); aspect-ratio: 3 / 4.05; }
.flash-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.card-back-1 { transform: rotate(-5deg) translate(-16px, 12px); opacity: 0.7; }
.card-back-2 { transform: rotate(6deg) translate(20px, 20px); opacity: 0.45; }
.card-front {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  transform: rotate(-1.5deg);
  animation: floatCard 7s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50% { transform: rotate(-1.5deg) translateY(-12px); }
}
.fc-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 6px var(--paper), 0 6px 18px -10px rgba(30,39,74,0.5);
}
.portrait { width: 100%; height: auto; display: block; }
.fc-name { margin-top: 18px; }
.fc-label {
  display: block;
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.fc-value {
  display: block;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--ink);
  margin-top: 3px;
}
.fc-dots { display: flex; gap: 7px; margin-top: 16px; }
.fc-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.fc-dots i.on { background: var(--gold); width: 22px; border-radius: 6px; }

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin: 0 auto clamp(38px, 6vw, 64px); text-align: center; padding: 0 20px; }
.kicker {
  font-family: var(--serif-body);
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--terracotta);
  margin: 0 0 14px;
}
.section-head h2 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.05rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ink);
}
.lede { font-size: 1.08rem; color: var(--ink-2); margin: 0 auto; max-width: 58ch; }

/* ---------- Features ---------- */
.features { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 8vw, 90px) clamp(20px, 5vw, 44px); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 26px);
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature-card:hover::after { transform: scaleX(1); }
.fi {
  display: inline-flex;
  width: 52px; height: 52px;
  border-radius: 13px;
  align-items: center; justify-content: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--terracotta);
  margin-bottom: 20px;
}
.fi svg { width: 26px; height: 26px; }
.feature-card h3 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
.feature-card p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.feature-card p em { color: var(--terracotta); font-style: italic; }
.feature-pro { background: linear-gradient(160deg, var(--ink), #171e3c); color: var(--paper); border-color: transparent; }
.feature-pro h3 { color: var(--paper); }
.feature-pro p { color: rgba(247,241,227,0.82); }
.feature-pro .fi { background: rgba(247,241,227,0.10); border-color: rgba(247,241,227,0.18); color: var(--gold); }
.feature-pro p em { color: var(--gold); }
.text-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.text-link:hover { border-color: var(--gold); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Screens ---------- */
.screens {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 44px);
}
.phone-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  justify-items: center;
}
.phone { margin: 0; text-align: center; width: 100%; max-width: 300px; }
.phone-lift { transform: translateY(-26px); }
.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, #2a3358, var(--ink));
  border-radius: 40px;
  padding: 11px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(247,241,227,0.08);
}
.phone-notch {
  position: absolute;
  top: 11px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 22px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--paper);
  position: relative;
}
.scr {
  position: absolute; inset: 0;
  padding: 34px 16px 18px;
  display: flex;
  flex-direction: column;
  font-family: var(--serif-body);
}
.scr-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.68rem; color: var(--ink-3); letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.scr-chip {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px;
  color: var(--ink-2); font-size: 0.62rem;
}
.scr-chip-live { background: var(--terracotta); color: var(--paper); border-color: transparent; }

/* Study screen */
.study-portrait { border-radius: 14px; overflow: hidden; box-shadow: 0 8px 20px -12px rgba(30,39,74,0.5); }
.study-name {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  margin-top: 16px;
  color: var(--ink);
}
.study-sub { text-align: center; font-style: italic; font-size: 0.78rem; color: var(--ink-3); margin-top: 4px; }
.study-cta { display: flex; gap: 8px; margin-top: auto; }
.pill { flex: 1; text-align: center; padding: 10px; border-radius: 12px; font-size: 0.82rem; font-family: var(--serif-display); }
.pill-ghost { border: 1.5px solid var(--line-strong); color: var(--ink-2); }
.pill-solid { background: var(--terracotta); color: var(--paper); font-weight: 600; }

/* Deep Recall screen */
.recall-portrait { width: 60%; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 20px -12px rgba(30,39,74,0.5); }
.recall-q { text-align: center; font-style: italic; color: var(--ink-3); font-size: 0.86rem; margin: 12px 0 8px; }
.recall-input {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  border-bottom: 2px solid var(--gold);
  padding: 6px 4px;
  font-family: var(--serif-display);
  font-size: 1.12rem;
  color: var(--ink);
  margin: 0 6px 12px;
}
.caret { width: 2px; height: 18px; background: var(--terracotta); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.recall-keys {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: 3px; justify-content: center;
}
.recall-keys span {
  flex: 0 0 auto;
  min-width: 16px;
  padding: 6px 0;
  width: calc((100% - 27px) / 10);
  text-align: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.58rem;
  color: var(--ink-2);
}
.recall-keys .key-wide { width: 46%; }
.recall-keys .key-go { width: 30%; background: var(--terracotta); color: var(--paper); border-color: transparent; }

/* Trend screen */
.trend-score { text-align: center; margin: 10px 0 6px; }
.ts-num {
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--ink);
  display: block;
}
.ts-delta { font-size: 0.72rem; color: var(--terracotta); font-style: italic; }
.trend-chart { flex: 1; margin: 12px 0 8px; display: flex; align-items: flex-end; }
.trend-chart svg { width: 100%; height: 100%; }
.trend-legend {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 0.66rem; color: var(--ink-3); font-style: italic;
}
.tl-line { width: 26px; height: 3px; border-radius: 2px; background: var(--gold); }
.trend-streak {
  margin-top: 12px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}
.flame { color: var(--gold); }

.phone figcaption {
  margin-top: 20px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-2);
  line-height: 1.35;
}
@media (max-width: 820px) {
  .phone-row { grid-template-columns: 1fr; gap: 44px; }
  .phone { max-width: 260px; }
  .phone-lift { transform: none; }
}

/* ---------- Honest strip ---------- */
.honest {
  max-width: var(--maxw);
  margin: clamp(20px, 5vw, 50px) auto;
  padding: 0 clamp(20px, 5vw, 44px);
}
.honest-inner {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(34px, 6vw, 62px);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.honest-inner::before {
  content: "“";
  position: absolute; top: -6px; left: 26px;
  font-family: var(--serif-display);
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
}
.honest blockquote {
  margin: 0 auto;
  max-width: 40ch;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
}
.honest blockquote em { color: var(--terracotta); }
.honest-note { margin: 22px auto 0; max-width: 46ch; font-size: 0.92rem; color: var(--ink-3); }

/* ---------- Final CTA ---------- */
.final-cta { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 7vw, 90px) clamp(20px, 5vw, 44px); }
.cta-card {
  background: linear-gradient(155deg, var(--ink), #171e3c);
  color: var(--paper);
  border-radius: 28px;
  padding: clamp(40px, 7vw, 74px);
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(192,138,62,0.28), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(180,87,58,0.26), transparent 60%);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card h2 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 14px;
  color: var(--paper);
}
.cta-card p { color: rgba(247,241,227,0.82); margin: 0 auto 30px; max-width: 40ch; }
.cta-card .badge-store { background: var(--paper); color: var(--ink); }
.cta-card .badge-text small { opacity: 0.7; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 70px) clamp(20px, 5vw, 44px) 50px;
  border-top: 1px solid var(--line);
}
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.foot-brand .brand-name { font-size: 1.5rem; }
.foot-brand p { margin: 8px 0 0; color: var(--ink-3); font-style: italic; max-width: 30ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; font-family: var(--serif-display); }
.foot-links a { color: var(--ink-2); border-bottom: 1px solid transparent; transition: all 0.28s var(--ease); }
.foot-links a:hover { color: var(--terracotta); border-color: var(--terracotta); }
.foot-fine { margin: 34px 0 0; font-size: 0.82rem; color: var(--ink-3); max-width: 66ch; }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: clamp(20px, 5vw, 40px) auto clamp(50px, 8vw, 90px);
  padding: 0 clamp(20px, 5vw, 44px);
}
.legal-head { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-head h1 {
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.legal-head p { margin: 0; color: var(--ink-3); font-style: italic; }
.legal h2 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 40px 0 12px;
  color: var(--ink);
}
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); font-size: 1.04rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--terracotta); border-bottom: 1px solid var(--line-strong); }
.legal .back-link {
  display: inline-block; margin-bottom: 24px;
  font-family: var(--serif-display); font-style: italic;
  color: var(--ink-3); border: none;
}
.legal .back-link:hover { color: var(--terracotta); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card-front { animation: none; }
  .caret { animation: none; opacity: 1; }
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; margin-bottom: 10px; }
  .card-stack { width: min(280px, 70vw); }
  .tagline { max-width: none; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .badge { width: 100%; justify-content: center; }
  .badge-ghost { width: 100%; justify-content: center; }
}
