/* DONE(kinda) — site styles
   Single shared stylesheet, no build step. Mirrors the app's
   Lavender palette + Crimson Pro typography so the site feels native
   to the product. */

:root {
  /* Brand */
  --accent: #9B7EC8;
  --accent-deep: #6E4FAB;
  --accent-soft: #C8A8DC;
  --accent-tint: #F1E9F8;
  --accent-wash: #FAF6FE;

  /* Surfaces */
  --bg: #FBF8F3;            /* warm paper */
  --bg-deep: #F4EFE6;
  --surface: #FFFFFF;
  --ink: #1F1B2A;
  --ink-2: #4A4259;
  --ink-3: #8E8499;
  --line: #E8DFEF;
  --line-soft: #F0EBE3;

  /* Theme-cycle tokens (driven by JS for the phone mockup) */
  --th-accent: #9B7EC8;
  --th-bg: #FBF8F3;
  --th-surface: #FFFFFF;
  --th-ink: #1F1B2A;
  --th-ink-2: #6F6580;
  --th-line: #ECE4F1;

  --radius-card: 18px;
  --radius-soft: 10px;
  --radius-chip: 999px;
  --shadow-card: 0 1px 0 rgba(40, 22, 82, 0.04), 0 8px 24px -8px rgba(40, 22, 82, 0.10);
  --shadow-elevated: 0 2px 0 rgba(40, 22, 82, 0.04), 0 24px 48px -16px rgba(40, 22, 82, 0.18);
  --shadow-phone: 0 30px 60px -20px rgba(40, 22, 82, 0.32), 0 8px 24px -8px rgba(40, 22, 82, 0.18);
  --max: 1120px;
  --max-prose: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Warm gradient + paper grain backdrop. The grain is a tiny inlined
   SVG (turbulence) so we don't ship an image asset. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 80% at 85% -10%, rgba(200, 168, 220, 0.35), transparent 60%),
    radial-gradient(50% 70% at -10% 30%, rgba(241, 233, 248, 0.6), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.12  0 0 0 0 0.32  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }

::selection {
  background: var(--accent);
  color: #fff;
}

/* ────────────────────────────────────────────────────────────────── */
/* Typography                                                         */

h1, h2, h3, h4 {
  font-family: 'Crimson Pro', Georgia, serif;
  letter-spacing: -0.018em;
  margin: 0 0 12px;
  line-height: 1.08;
  font-weight: 700;
  color: var(--ink);
}
h1 { font-size: clamp(46px, 8.4vw, 96px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; margin-top: 56px; line-height: 1.1; }
h3 { font-size: 22px; font-weight: 600; margin-top: 28px; line-height: 1.25; }
h4 { font-size: 16px; font-weight: 600; margin-top: 18px; color: var(--ink-2); }

p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 14px;
  color: var(--ink-2);
}
p strong, li strong { color: var(--ink); font-weight: 600; }
ul, ol { color: var(--ink-2); line-height: 1.65; padding-left: 22px; }
li { margin-bottom: 6px; }

em.kinda {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-feature-settings: "liga" 1, "calt" 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.scribble {
  font-family: 'Caveat', 'Brush Script MT', cursive;
  font-weight: 500;
  color: var(--accent);
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.9em;
  background: var(--accent-tint);
  color: var(--accent-deep);
  padding: 1px 7px;
  border-radius: 5px;
  letter-spacing: -0.01em;
}

/* ────────────────────────────────────────────────────────────────── */
/* Layout primitives                                                  */

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

/* ────────────────────────────────────────────────────────────────── */
/* Nav                                                                */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 28px 12px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.nav-brand-mark {
  width: 34px;
  height: 34px;
  display: inline-block;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(155, 126, 200, 0.3));
}
.nav-brand-name {
  font-family: 'Crimson Pro', serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.nav-brand-name em {
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  margin-left: 1px;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-chip);
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease;
}
.nav-links a:hover { background: var(--accent-tint); color: var(--accent-deep); }
.nav-links a.active { background: var(--accent-tint); color: var(--accent-deep); }
.nav-cta {
  background: var(--ink) !important;
  color: #fff !important;
  padding: 9px 16px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-deep) !important; color: #fff !important; }

/* ────────────────────────────────────────────────────────────────── */
/* Hero                                                               */

.hero {
  max-width: var(--max);
  margin: 30px auto 60px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 600px;
}
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 16px;
  }
}

.hero-copy { position: relative; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  padding: 7px 14px 7px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
}
.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6FBE8E;
  box-shadow: 0 0 0 3px rgba(111, 190, 142, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(111, 190, 142, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(111, 190, 142, 0); }
}

.hero-title {
  font-size: clamp(54px, 9vw, 108px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero-title em {
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 6%;
  bottom: 0.04em;
  height: 0.18em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 7 C 40 3, 70 10, 110 5 S 180 8, 198 4' stroke='%239B7EC8' stroke-width='2.4' fill='none' stroke-linecap='round' opacity='0.7'/></svg>") no-repeat center / 100% 100%;
  pointer-events: none;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 480px;
  color: var(--ink-2);
}
.hero-sub b { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-chip);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(40, 22, 82, 0.4);
}
.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(110, 79, 171, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--accent-deep);
  border-color: var(--accent-soft);
}
.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 36px;
  font-size: 14px;
  color: var(--ink-3);
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* Hero stage (the right column with phone + QR) */

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}
@media (max-width: 880px) {
  .hero-stage { min-height: 520px; }
}

/* QR card — floats around the phone */

.qr-card {
  position: absolute;
  right: 0;
  bottom: 30px;
  width: 168px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-elevated);
  text-align: center;
  z-index: 3;
  transform: rotate(3deg);
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.qr-card:hover { transform: rotate(0deg) scale(1.04); }
.qr-card img,
.qr-card .qr-fallback {
  width: 136px;
  height: 136px;
  margin: 0 auto 10px;
  display: block;
  border-radius: 8px;
  background: var(--accent-tint);
}
.qr-card .qr-fallback {
  display: grid;
  place-items: center;
  font-family: 'Caveat', cursive;
  font-size: 14px;
  color: var(--accent-deep);
  line-height: 1.2;
  padding: 8px;
}
.qr-card .qr-fallback span { display: block; }
.qr-card-label {
  font-family: 'Crimson Pro', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.qr-card-sub {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.qr-card-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 56px;
  height: 22px;
  background: rgba(155, 126, 200, 0.28);
  border: 1px solid rgba(155, 126, 200, 0.18);
  transform: translateX(-50%) rotate(-3deg);
  border-radius: 2px;
  backdrop-filter: blur(2px);
}
@media (max-width: 880px) {
  .qr-card { right: 8px; bottom: 8px; }
}
@media (max-width: 480px) {
  .qr-card { display: none; }
}

/* Phone mockup — the centerpiece. CSS-only, theme-driven. */

.phone {
  position: relative;
  width: 280px;
  height: 580px;
  background: #1F1B2A;
  border-radius: 44px;
  padding: 8px;
  box-shadow: var(--shadow-phone);
  z-index: 2;
  transform: rotate(-2deg);
  transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.phone:hover { transform: rotate(0deg) translateY(-4px); }
.phone::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #1F1B2A;
  border-radius: 12px;
  z-index: 4;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--th-bg);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 800ms ease;
}
/* Status bar */
.phone-status {
  height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 22px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--th-ink);
  font-family: 'DM Sans', sans-serif;
  transition: color 600ms ease;
}
/* Header */
.phone-header {
  padding: 14px 22px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.phone-date {
  font-family: 'Crimson Pro', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--th-ink);
  letter-spacing: -0.02em;
  transition: color 600ms ease;
}
.phone-date small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--th-ink-2);
  margin-bottom: 2px;
  transition: color 600ms ease;
}
.phone-header-icons {
  display: flex;
  gap: 10px;
}
.phone-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--th-line);
  transition: background 600ms ease;
}
/* Meaningful carousel */
.phone-meaningful {
  margin: 0 14px 12px;
  padding: 10px 12px;
  background: var(--th-surface);
  border: 1px solid var(--th-line);
  border-radius: 10px;
  font-size: 11px;
  color: var(--th-ink);
  font-style: italic;
  font-family: 'Crimson Pro', serif;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 600ms ease, border-color 600ms ease, color 600ms ease;
}
.phone-meaningful::before {
  content: "★";
  color: var(--th-accent);
  font-size: 13px;
  transition: color 600ms ease;
}
/* Bucket label */
.phone-bucket {
  padding: 14px 22px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--th-ink-2);
  transition: color 600ms ease;
}
/* Task rows */
.phone-tasks {
  flex: 1;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.phone-task {
  background: var(--th-surface);
  border: 1px solid var(--th-line);
  border-radius: 12px;
  padding: 11px 12px 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: background 600ms ease, border-color 600ms ease;
}
.phone-task::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--th-accent);
  border-radius: 0 2px 2px 0;
  transition: background 600ms ease;
}
.phone-task .check {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--th-ink-2);
  flex-shrink: 0;
  background: transparent;
  transition: border-color 600ms ease;
}
.phone-task.done .check {
  background: var(--th-accent);
  border-color: var(--th-accent);
  position: relative;
}
.phone-task.done .check::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 4px;
  height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.phone-task.in-progress .check {
  background: linear-gradient(90deg, var(--th-accent) 50%, transparent 50%);
  border-color: var(--th-accent);
}
.phone-task .label {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--th-ink);
  font-family: 'DM Sans', sans-serif;
  transition: color 600ms ease;
}
.phone-task.done .label {
  text-decoration: line-through;
  text-decoration-color: var(--th-ink-2);
  color: var(--th-ink-2);
}
.phone-task .chip {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--th-line);
  color: var(--th-ink-2);
  transition: background 600ms ease, color 600ms ease;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Add line */
.phone-add {
  margin-top: 4px;
  padding: 10px 14px;
  font-size: 11px;
  color: var(--th-ink-2);
  font-style: italic;
  font-family: 'Crimson Pro', serif;
  opacity: 0.6;
  transition: color 600ms ease;
}
/* Floating button */
.phone-fab {
  position: absolute;
  bottom: 64px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--th-accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.25);
  transition: background 600ms ease;
}
/* Bottom tab bar */
.phone-tabs {
  height: 56px;
  background: var(--th-surface);
  border-top: 1px solid var(--th-line);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  transition: background 600ms ease, border-color 600ms ease;
}
.phone-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 600;
  color: var(--th-ink-2);
  font-family: 'DM Sans', sans-serif;
  transition: color 600ms ease;
}
.phone-tab .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}
.phone-tab.active { color: var(--th-accent); }
.phone-tab.active .dot { opacity: 1; transform: scale(1.6); }

/* Theme-cycle indicator floating near the phone */
.theme-pill {
  position: absolute;
  top: 60px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  padding: 6px 14px 6px 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-card);
  z-index: 3;
  transform: rotate(-3deg);
}
.theme-pill .swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--th-accent);
  border: 2px solid #fff;
  transition: background 600ms ease;
}
.theme-pill .name { transition: color 200ms ease; }
@media (max-width: 880px) {
  .theme-pill { top: 24px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
}

/* ────────────────────────────────────────────────────────────────── */
/* Manifesto                                                          */

.manifesto {
  max-width: 880px;
  margin: 100px auto 80px;
  padding: 0 28px;
  text-align: center;
  position: relative;
}
.manifesto-text {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.manifesto-text em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.manifesto-mark {
  font-family: 'Crimson Pro', serif;
  font-size: 100px;
  line-height: 0.7;
  color: var(--accent-soft);
  display: block;
  margin-bottom: -28px;
}
.manifesto-by {
  margin-top: 28px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--accent-deep);
}

/* ────────────────────────────────────────────────────────────────── */
/* Pillars (3 columns)                                                */

.pillars {
  max-width: var(--max);
  margin: 80px auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; gap: 28px; }
}
.pillar {
  position: relative;
  padding-top: 16px;
}
.pillar-num {
  font-family: 'Crimson Pro', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.pillar h3 {
  font-size: 26px;
  margin: 0 0 10px;
  font-weight: 700;
}
.pillar p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

/* ────────────────────────────────────────────────────────────────── */
/* Section blocks                                                     */

.section {
  max-width: var(--max);
  margin: 100px auto;
  padding: 0 28px;
}
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.025em;
}
.section-head p {
  font-size: 18px;
  color: var(--ink-2);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
  overflow: hidden;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--accent-soft);
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}
.feature p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: var(--ink-2);
}

/* ────────────────────────────────────────────────────────────────── */
/* Themes section                                                     */

.themes {
  max-width: var(--max);
  margin: 100px auto;
  padding: 0 28px;
}
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.theme-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  transition: transform 220ms ease, box-shadow 220ms ease;
  cursor: pointer;
}
.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.theme-swatch {
  height: 92px;
  border-radius: 10px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.theme-swatch::before,
.theme-swatch::after {
  content: "";
  position: absolute;
  border-radius: 4px;
}
.theme-swatch::before {
  left: 12px; right: 12px; top: 12px; height: 14px;
  background: rgba(255, 255, 255, 0.3);
}
.theme-swatch::after {
  left: 12px; bottom: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.theme-name {
  font-family: 'Crimson Pro', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.theme-kind {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ────────────────────────────────────────────────────────────────── */
/* Privacy promise band                                               */

.promise {
  max-width: var(--max);
  margin: 100px auto;
  padding: 56px 48px;
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.promise::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(155, 126, 200, 0.4), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(200, 168, 220, 0.3), transparent 60%);
  pointer-events: none;
}
.promise > * { position: relative; }
.promise .eyebrow { color: var(--accent-soft); }
.promise h2 {
  font-size: clamp(34px, 5vw, 54px);
  color: #fff;
  letter-spacing: -0.025em;
  margin: 14px 0 18px;
  max-width: 720px;
}
.promise p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  max-width: 640px;
  margin: 0 0 28px;
}
.promise-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.promise-point {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}
.promise-point strong {
  display: block;
  color: #fff;
  font-family: 'Crimson Pro', serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
}
@media (max-width: 760px) {
  .promise { padding: 40px 28px; }
}

/* ────────────────────────────────────────────────────────────────── */
/* Final download CTA                                                 */

.download {
  max-width: var(--max);
  margin: 100px auto;
  padding: 0 28px;
  text-align: center;
}
.download-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 70% at 50% 0%, rgba(241, 233, 248, 0.8), transparent 70%);
  pointer-events: none;
}
.download-card > * { position: relative; }
.download-card h2 {
  margin: 6px 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.025em;
}
.download-card h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.download-card p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 auto 32px;
}
.download-qr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--accent-tint);
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.download-qr img,
.download-qr .qr-fallback {
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: 'Caveat', cursive;
  font-size: 16px;
  color: var(--accent-deep);
  text-align: center;
  padding: 12px;
  line-height: 1.3;
}
.download-qr-label {
  font-family: 'Crimson Pro', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.download-qr-sub {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: -8px;
}

/* ────────────────────────────────────────────────────────────────── */
/* Footer                                                             */

.footer {
  max-width: var(--max);
  margin: 60px auto 36px;
  padding: 32px 28px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  font-size: 14px;
}
.footer-left .nav-brand-mark { width: 24px; height: 24px; }
.footer-right {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.footer-right a { color: var(--ink-2); }
.footer-right a:hover { color: var(--accent-deep); }
.footer-tagline {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--accent-deep);
  width: 100%;
  text-align: center;
  margin-top: 8px;
  opacity: 0.8;
}

/* ────────────────────────────────────────────────────────────────── */
/* Guide layout (left TOC + body)                                     */

.guide-layout {
  max-width: var(--max);
  margin: 30px auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
}
@media (max-width: 920px) {
  .guide-layout { grid-template-columns: 1fr; gap: 24px; }
  .guide-toc { position: static; max-height: none; }
}
.guide-toc {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 22px 18px;
  font-size: 14px;
  box-shadow: var(--shadow-card);
}
.guide-toc h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.guide-toc ul { list-style: none; padding: 0; margin: 0; }
.guide-toc li { margin-bottom: 2px; }
.guide-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: background 160ms ease, color 160ms ease;
}
.guide-toc a:hover { background: var(--accent-tint); color: var(--accent-deep); }
.guide-toc a.active {
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-weight: 600;
}

.guide-body { min-width: 0; max-width: 720px; }
.guide-body section { margin-bottom: 60px; scroll-margin-top: 24px; }
.guide-body section:first-child { margin-top: 0; }
.guide-body section:first-child h2 { margin-top: 0; }
.guide-body h2 { font-size: clamp(28px, 4vw, 38px); }
.guide-body h3 { font-size: 19px; margin-top: 26px; }

.callout {
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 15px;
  color: var(--ink-2);
}
.callout strong { color: var(--accent-deep); }

.kbd {
  display: inline-block;
  padding: 1px 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

/* ────────────────────────────────────────────────────────────────── */
/* Privacy / prose pages                                              */

.prose {
  max-width: var(--max-prose);
  margin: 30px auto 60px;
  padding: 0 28px;
}
.prose h1 {
  font-size: clamp(46px, 8vw, 78px);
  letter-spacing: -0.03em;
}
.prose h2 {
  font-size: clamp(26px, 3.5vw, 32px);
  margin-top: 48px;
}
.prose .updated {
  font-family: 'Caveat', cursive;
  color: var(--accent-deep);
  font-size: 18px;
  margin-top: -2px;
  margin-bottom: 36px;
}

/* ────────────────────────────────────────────────────────────────── */
/* FAQ page                                                           */

.faq-page {
  max-width: 760px;
  margin: 30px auto 80px;
  padding: 0 28px;
}
.faq-head {
  margin-bottom: 60px;
  text-align: left;
}
.faq-head h1 {
  font-size: clamp(48px, 8vw, 88px);
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
}
.faq-head h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.faq-head p {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0;
}
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: faq;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 36px 0 8px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px 24px;
  position: relative;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-num {
  font-family: 'Crimson Pro', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 6px;
  grid-row: 1 / span 2;
}
.faq-q {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
}
.faq-q em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.faq-a {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.65;
}
.faq-a p { margin: 0 0 12px; font-size: 16.5px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul { margin: 8px 0 12px; padding-left: 20px; }
.faq-a li { margin-bottom: 4px; }
.faq-a a { color: var(--accent-deep); text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; }
.faq-a a:hover { text-decoration-color: var(--accent); }

.faq-foot {
  margin-top: 60px;
  text-align: center;
  font-size: 16px;
  color: var(--ink-3);
}
.faq-foot a { color: var(--accent-deep); text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; }
.faq-foot .scribble { font-size: 21px; }

@media (max-width: 600px) {
  .faq-item {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 28px 0 4px;
  }
  .faq-num { padding-top: 0; margin-bottom: 8px; grid-row: auto; }
}

/* ────────────────────────────────────────────────────────────────── */
/* Icons reference page                                               */

.icons-page {
  max-width: 960px;
  margin: 30px auto 80px;
  padding: 0 28px;
}
.icons-head {
  margin-bottom: 36px;
}
.icons-head h1 {
  font-size: clamp(48px, 8vw, 88px);
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
}
.icons-head h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.icons-head p {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0;
}

.icons-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 56px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.icons-toc a {
  padding: 8px 14px;
  border-radius: var(--radius-chip);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}
.icons-toc a:hover { background: var(--accent-tint); color: var(--accent-deep); }

.icons-section { margin-bottom: 64px; scroll-margin-top: 24px; }
.icons-section-head {
  margin-bottom: 24px;
  max-width: 640px;
}
.icons-section-head h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.icons-section-head p {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0;
}

.icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.icon-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.icon-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-soft);
}
.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-tile svg { width: 28px; height: 28px; display: block; }
.icon-card h3 {
  font-family: 'Crimson Pro', serif;
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.icon-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.icon-card p em { font-style: italic; color: var(--ink); font-weight: 500; }

.icons-foot {
  margin-top: 60px;
  text-align: center;
  font-size: 16px;
  color: var(--ink-3);
}
.icons-foot a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
}
.icons-foot a:hover { text-decoration-color: var(--accent); }

/* ────────────────────────────────────────────────────────────────── */
/* Reveal-on-scroll                                                   */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

/* Hero entrance */
.hero-copy > * {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 80ms; }
.hero-copy > *:nth-child(2) { animation-delay: 200ms; }
.hero-copy > *:nth-child(3) { animation-delay: 320ms; }
.hero-copy > *:nth-child(4) { animation-delay: 440ms; }
.hero-copy > *:nth-child(5) { animation-delay: 560ms; }
.hero-stage {
  opacity: 0;
  animation: stage-in 1100ms cubic-bezier(0.22, 1, 0.36, 1) 300ms forwards;
}
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes stage-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > *, .hero-copy > *, .hero-stage {
    opacity: 1 !important;
    transform: none !important;
  }
}
