/* ==========================================================================
   By Myself — website
   Tokens mirror the desktop app (src/ui/tokens.css): Apple palette,
   past / present / future colours, glass surfaces.
   ========================================================================== */

:root {
  color-scheme: light;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;

  --bg: #f7f5f1;
  --bg-2: #efece6;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-solid: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.5);
  --line: rgba(29, 29, 31, 0.08);
  --line-strong: rgba(29, 29, 31, 0.14);
  --text: #1d1d1f;
  --text-2: #4f4f56;
  --text-3: #6e6e75;

  --accent: #0071e3;
  --accent-hover: #0062c3;
  --accent-text: #0055b3;
  --on-accent: #ffffff;

  --past: #5856d6;
  --present: #34c759;
  --future: #ff9500;
  --past-text: #4f4dc9;
  --present-text: #17652c;
  --future-text: #934000;
  --past-soft: rgba(88, 86, 214, 0.12);
  --present-soft: rgba(52, 199, 89, 0.14);
  --future-soft: rgba(255, 149, 0, 0.14);

  --mood-1: #6e6cd8;
  --mood-2: #4a86c8;
  --mood-3: #7c7c82;
  --mood-4: #2fa84f;
  --mood-5: #e98a00;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.05), 0 30px 80px rgba(0, 0, 0, 0.12);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --aura-opacity: 0.55;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(80px, 12vw, 152px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111113;
    --bg-2: #18181b;
    --surface: rgba(38, 38, 42, 0.62);
    --surface-solid: #1f1f23;
    --surface-2: rgba(52, 52, 58, 0.5);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f5f5f7;
    --text-2: #b4b4bb;
    --text-3: #8e8e95;
    --accent: #0a84ff;
    --accent-hover: #3d9bff;
    --accent-text: #5aa8ff;
    --past-text: #a8a7ff;
    --present-text: #63da84;
    --future-text: #ffb54d;
    --past-soft: rgba(94, 92, 230, 0.2);
    --present-soft: rgba(48, 209, 88, 0.18);
    --future-soft: rgba(255, 159, 10, 0.18);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
    --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --aura-opacity: 0.35;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111113;
  --bg-2: #18181b;
  --surface: rgba(38, 38, 42, 0.62);
  --surface-solid: #1f1f23;
  --surface-2: rgba(52, 52, 58, 0.5);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-2: #b4b4bb;
  --text-3: #8e8e95;
  --accent: #0a84ff;
  --accent-hover: #3d9bff;
  --accent-text: #5aa8ff;
  --past-text: #a8a7ff;
  --present-text: #63da84;
  --future-text: #ffb54d;
  --past-soft: rgba(94, 92, 230, 0.2);
  --present-soft: rgba(48, 209, 88, 0.18);
  --future-soft: rgba(255, 159, 10, 0.18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --aura-opacity: 0.35;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
code {
  font-family: "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  word-break: break-all;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--lg { width: 28px; height: 28px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--on-accent);
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

.glass {
  background: var(--surface);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--line);
  box-shadow: var(--glass-edge), var(--shadow-md);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--surface-solid); }
}

/* ---------- Type ---------- */
.eyebrow {
  font-size: 14px; font-weight: 500; color: var(--text-3);
  letter-spacing: 0.02em; margin-bottom: 20px;
}
.display {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(42px, 6.4vw, 80px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 34em; margin-top: 28px; }
.body-lg { font-size: 17px; color: var(--text-2); max-width: 36em; margin-top: 20px; }
.grad {
  background: linear-gradient(100deg, var(--past) 0%, #3b82f6 45%, var(--present) 75%, var(--future) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--radius-full);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  cursor: pointer; border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 20px rgba(0, 113, 227, 0.25); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text-3); }
.btn--ghost .icon { transition: transform 0.2s var(--ease); }
.btn--ghost:hover .icon { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: transparent; border: 1px solid transparent; color: var(--text-2);
  cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon--moon { display: none; }
:root[data-theme="dark"] .icon--sun { display: none; }
:root[data-theme="dark"] .icon--moon { display: block; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; }
.brand img { border-radius: 7px; }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: var(--radius-full); color: var(--text-2); font-size: 14px;
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.aura { position: absolute; inset: -20% -10% 0; pointer-events: none; opacity: var(--aura-opacity); }
.aura__blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: drift 22s var(--ease) infinite alternate;
}
.aura__blob--past { width: 44vw; height: 44vw; left: -8vw; top: 4vw; background: var(--past); opacity: 0.45; }
.aura__blob--present { width: 36vw; height: 36vw; left: 38vw; top: 22vw; background: var(--present); opacity: 0.32; animation-delay: -7s; }
.aura__blob--future { width: 34vw; height: 34vw; right: -6vw; top: -4vw; background: var(--future); opacity: 0.36; animation-delay: -14s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4vw, 3vw, 0) scale(1.08); }
}

.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; color: var(--text-3); font-size: 14px; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { width: 16px; height: 16px; }

/* App mock */
.mock { position: relative; }
.mock__window { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--glass-edge), var(--shadow-lg); }
.mock__bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.mock__body { display: grid; grid-template-columns: 132px 1fr; min-height: 360px; }
.mock__side { padding: 16px 10px; border-right: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.mock__nav { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--text-2); }
.mock__nav .dot { width: 8px; height: 8px; border-radius: 50%; }
.mock__nav.is-past .dot { background: var(--past); }
.mock__nav.is-present .dot { background: var(--present); }
.mock__nav.is-future .dot { background: var(--future); }
.mock__nav.is-active { background: var(--present-soft); color: var(--text); font-weight: 500; }
.mock__nav.is-muted { padding-left: 28px; color: var(--text-3); }
.mock__sep { height: 1px; background: var(--line); margin: 8px 6px; }
.mock__main { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.mock__date { font-size: 12px; color: var(--text-3); }
.mock__title { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin-top: -6px; }
.mock__card { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.mock__label { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: 0.02em; }
.mock__text { font-size: 13px; line-height: 1.7; color: var(--text-2); margin-top: 6px; }
.mock__small { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.mock__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.moods { display: flex; gap: 6px; margin-top: 10px; }
.moods span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--c); opacity: 0.5; }
.moods span.is-on { background: var(--c); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.thumbs { display: flex; gap: 6px; margin-top: 10px; }
.thumbs span { width: 28px; height: 28px; border-radius: 7px; }
.thumbs span:nth-child(1) { background: linear-gradient(135deg, #9ec5ff, #5856d6); }
.thumbs span:nth-child(2) { background: linear-gradient(135deg, #ffd59e, #ff9500); }
.thumbs span:nth-child(3) { background: linear-gradient(135deg, #b5f0c4, #34c759); }
.mock__letter {
  position: absolute; left: -28px; bottom: -28px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-md);
  color: var(--future-text);
  animation: float 6s ease-in-out infinite;
}
.mock__letter .mock__label { color: var(--text); font-size: 13px; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Storyline ---------- */
.storyline { display: flex; align-items: center; gap: 12px; max-width: 520px; padding-top: 8px; padding-bottom: 8px; }
.storyline__line { flex: 1; height: 2px; border-radius: 2px; background: var(--line-strong); }
.storyline__dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.storyline__dot--past { background: var(--past); opacity: 0.8; }
.storyline__dot--present { width: 20px; height: 20px; background: var(--present); }
.storyline__dot--future { border: 2.5px solid var(--future); }

/* ---------- Chapters ---------- */
.chapter { padding: var(--section) 0; position: relative; }
.chapter--past { --c: var(--past); --c-text: var(--past-text); --c-soft: var(--past-soft); }
.chapter--present { --c: var(--present); --c-text: var(--present-text); --c-soft: var(--present-soft); background: var(--bg-2); }
.chapter--future { --c: var(--future); --c-text: var(--future-text); --c-soft: var(--future-soft); }
.chapter__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.chapter__grid--flip .chapter__copy { order: 2; }
.chapter__kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--c-text); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; margin-bottom: 24px; }
.chip { display: inline-grid; place-items: center; min-width: 36px; height: 26px; padding: 0 8px; border-radius: var(--radius-full); background: var(--c-soft); font-size: 12px; }
.chapter .h2 { color: var(--text); }
.features { display: grid; gap: 24px; margin-top: 40px; }
.features li { display: flex; gap: 16px; }
.features .icon {
  width: 40px; height: 40px; padding: 10px; border-radius: 12px;
  background: var(--c-soft); color: var(--c-text);
}
.features h3 { font-size: 16px; font-weight: 600; }
.features p { color: var(--text-2); font-size: 15px; margin-top: 2px; }

.visual { position: relative; }
.visual::before {
  content: ""; position: absolute; inset: 10% 8%; border-radius: 50%;
  background: var(--c); opacity: 0.18; filter: blur(70px); z-index: -1;
}

/* Timeline */
.timeline { border-radius: var(--radius-xl); padding: 28px; }
.timeline__year { font-family: var(--font-serif); font-size: 28px; font-weight: 600; color: var(--past-text); margin: 4px 0 12px; }
.timeline__year:not(:first-child) { margin-top: 24px; }
.tl-item { position: relative; display: flex; gap: 16px; padding: 12px 0 12px 4px; }
.tl-item + .tl-item::before { content: ""; position: absolute; left: 9px; top: -12px; height: 24px; width: 2px; background: var(--line-strong); }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-top: 6px; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.tl-date { font-size: 13px; color: var(--text-3); }
.tl-text { font-size: 16px; font-weight: 500; }

/* Mood */
.mood-card { border-radius: var(--radius-xl); padding: 28px; }
.mood-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 16px 0 28px; }
.mood {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-height: 84px; padding: 12px 4px; border-radius: var(--radius-md);
  background: transparent; border: 1px solid var(--line);
  font-size: 13px; color: var(--text-2); cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.mood span { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--c); transition: background-color 0.2s, transform 0.3s var(--ease); }
.mood:hover { border-color: var(--line-strong); }
.mood:active { transform: scale(0.96); }
.mood[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 12%, transparent); border-color: color-mix(in srgb, var(--c) 45%, transparent); color: var(--text); font-weight: 500; }
.mood[aria-pressed="true"] span { background: var(--c); transform: scale(1.08); }
.mood-week { display: flex; align-items: flex-end; gap: 10px; height: 96px; padding: 0 4px; }
.mood-week span { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: var(--c); opacity: 0.85; }
.mood-card > .mock__small { margin-top: 12px; }

/* Future */
.future-stack { display: grid; gap: 20px; }
.goal { border-radius: var(--radius-xl); padding: 24px 28px; }
.goal__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.goal__title { font-weight: 600; font-size: 16px; }
.goal__pct { color: var(--future-text); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.progress { height: 8px; border-radius: 8px; background: var(--future-soft); margin: 14px 0 18px; overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--future); }
.steps { display: grid; gap: 10px; font-size: 15px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--text); }
.steps li.is-done { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.steps .icon { width: 18px; height: 18px; color: var(--future-text); }
.step-ring { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }

.letter {
  border-radius: var(--radius-xl); padding: 28px; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--future) 12%, var(--surface)), var(--surface));
}
.letter__seal { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--future); color: #fff; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(255, 149, 0, 0.35); }
.letter__title { font-family: var(--font-serif); font-size: 22px; font-weight: 600; }
.letter__meta { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.countdown { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.countdown div { min-width: 72px; padding: 10px 8px; border-radius: var(--radius-md); background: var(--surface-solid); border: 1px solid var(--line); }
.countdown strong { display: block; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.countdown span { font-size: 12px; color: var(--text-3); }

/* ---------- Privacy ---------- */
.privacy { padding: var(--section) 0; background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--glass-edge), var(--shadow-lg); }
.tile--wide { grid-column: span 2; }
.tile .icon { color: var(--accent-text); margin-bottom: 8px; }
.tile h3 { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.tile p { color: var(--text-2); font-size: 15px; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-full); background: var(--future-soft); color: var(--future-text); letter-spacing: 0.04em; }

/* ---------- Details ---------- */
.details { padding: calc(var(--section) * 0.75) 0; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 40px; }
.detail-grid li { display: flex; flex-direction: column; gap: 12px; }
.detail-grid .icon { color: var(--text-2); width: 24px; height: 24px; }
.detail-grid h3 { font-size: 16px; font-weight: 600; }
.detail-grid p { color: var(--text-2); font-size: 15px; margin-top: 4px; }

/* ---------- Download ---------- */
.download { padding: calc(var(--section) * 0.5) 0 var(--section); }
.download__card {
  position: relative; overflow: hidden;
  border-radius: 36px; padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px);
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.download__card::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 80%;
  background: radial-gradient(closest-side, var(--past-soft), transparent), radial-gradient(closest-side at 80% 50%, var(--future-soft), transparent);
  z-index: -1;
}
.download__icon { border-radius: 22px; margin-bottom: 28px; box-shadow: 0 16px 40px rgba(88, 86, 214, 0.3); }
.download__card .body-lg { margin-left: auto; margin-right: auto; }
.download__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; width: 100%; max-width: 760px; }
.dl {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 24px 16px; border-radius: var(--radius-lg); color: var(--text);
  box-shadow: var(--glass-edge), var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s;
}
a.dl:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--glass-edge), var(--shadow-md); }
.dl .icon { color: var(--accent-text); margin-bottom: 6px; }
.dl__name { font-weight: 600; font-size: 16px; }
.dl__meta { font-size: 13px; color: var(--text-3); }
.dl--soon { opacity: 0.65; cursor: default; }
.dl--soon .icon { color: var(--text-3); }
.note { max-width: 40em; margin-top: 28px; font-size: 13px; color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 var(--section); }
.faq__list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-3); transition: transform 0.3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq summary:hover { color: var(--accent-text); }
.faq details p { color: var(--text-2); padding: 0 0 24px; max-width: 44em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer__tag { color: var(--text-3); font-size: 14px; flex: 1; }
.footer__copy { color: var(--text-3); font-size: 13px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .hero__grid, .chapter__grid { grid-template-columns: 1fr; }
  .chapter__grid--flip .chapter__copy { order: 0; }
  .mock { max-width: 560px; }
  .mock__letter { left: auto; right: 12px; bottom: -24px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento, .download__options, .detail-grid { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile { padding: 24px; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .mood-scale { gap: 4px; }
  .mood { font-size: 11px; min-height: 76px; }
  .mood span { width: 22px; height: 22px; }
  .hero__cta .btn { width: 100%; }
  .timeline, .mood-card, .goal, .letter { padding: 22px; }
  .countdown div { min-width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
