/* ============================================
   Page Hundred — design system
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400;1,9..144,500&family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=DM+Mono:wght@300;400;500&display=swap');

:root {
  /* Palette — light (cream paper) */
  --paper: #F7F2E9;
  --paper-2: #EFE7DA;
  --paper-3: #E7DCC9;
  --ink: #121723;
  --ink-2: #1C2434;
  --ink-soft: #4E5562;
  --ink-mute: #838995;
  --rule: #1217231A;
  --rule-strong: #12172333;
  --gold: #B79059;
  --gold-deep: #8B6942;
  --violet: #4C455E;
  --teal: #445B64;
  --danger: #A23B2C;
  --success: #4A6B3E;

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-mute: var(--ink-mute);
  --surface: #FCF8F1;
  --surface-2: #EFE7DA;

  /* Type */
  --serif-display: "Fraunces", Georgia, serif;
  --serif-read: "Lora", Georgia, serif;
  --mono: "DM Mono", monospace;

  /* Scale */
  --fs-mono: 11px;
  --fs-body: 17px;
  --fs-lead: 21px;
  --lh-body: 1.55;

  /* Layout */
  --max: 1320px;
  --gutter: 32px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-gentle: cubic-bezier(.22,.61,.36,1);
  --shadow-soft: 0 24px 48px -28px rgba(14,20,32,0.24);
  --shadow-hover: 0 34px 62px -34px rgba(14,20,32,0.3);
}

:root[data-theme="dark"] {
  --paper: #0E121B;
  --paper-2: #161C28;
  --paper-3: #1D2534;
  --ink: #EFE7D8;
  --ink-2: #E1D6C1;
  --ink-soft: #BBB2A1;
  --ink-mute: #7B766A;
  --rule: #EFE7D81F;
  --rule-strong: #EFE7D833;
  --gold: #C89F64;
  --gold-deep: #A07C4A;
  --violet: #988AAD;
  --surface: #161C28;
  --surface-2: #1D2534;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-read);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  transition: background .4s var(--ease), color .4s var(--ease);
}

body {
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Noise / paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .5;
  mix-blend-mode: multiply;
}

:root[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .35; }

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

.display {
  font-family: var(--serif-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 0.95;
}

.d1 { font-size: clamp(64px, 12vw, 184px); }
.d2 { font-size: clamp(48px, 8vw, 120px); }
.d3 { font-size: clamp(36px, 5.5vw, 72px); }
.d4 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; }

.italic { font-style: italic; font-family: var(--serif-display); font-weight: 400; }

.lead {
  font-family: var(--serif-read);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 300;
}

.label {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
}

:root[data-theme="dark"] .num { color: var(--gold); }

/* ============================================
   Layout primitives
   ============================================ */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

.rule { border-top: 1px solid var(--rule-strong); }
.rule-soft { border-top: 1px solid var(--rule); }

section { position: relative; z-index: 2; }

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background .3s var(--ease), padding .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  padding: 14px var(--gutter);
  border-bottom-color: var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity .2s var(--ease);
}
.brand:hover { opacity: 0.75; }

.brand-monogram {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  display: inline-grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.brand-monogram span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin-top: -2px;
}
.header.scrolled .brand-monogram { width: 40px; height: 40px; }
.brand:hover .brand-monogram { transform: translateY(-1px); border-color: var(--ink-soft); }

.brand-wordmark {
  font-family: var(--serif-display);
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.header.scrolled .brand-wordmark { font-size: 24px; }

.footer-logo {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}
:root[data-theme="dark"] .footer-logo { filter: invert(1) brightness(1.1); }

.colophon-mark {
  display: inline-block;
  height: 72px;
  width: auto;
  opacity: 0.9;
}
:root[data-theme="dark"] .colophon-mark { filter: invert(1) brightness(1.1); }

.mobile-brand-logo {
  height: 56px;
}
:root[data-theme="dark"] .mobile-brand-logo { filter: invert(1) brightness(1.1); }

.nav {
  display: flex; align-items: center; gap: 2px;
}

.nav a {
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
  position: relative;
}
.nav a:hover { color: var(--ink); background: var(--rule); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 1px; background: var(--gold);
}

.header-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  border: 1px solid var(--rule-strong);
  transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer;
  border: 1px solid var(--rule-strong);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink-2);
  color: var(--paper-2);
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.6);
}
.btn-primary:hover {
  background: #0A0F18;
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink-soft) 45%, transparent);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-deep); color: var(--paper); }

.menu-btn {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--ink);
}

/* ============================================
   Mobile nav
   ============================================ */

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 60;
  display: none;
  flex-direction: column;
  padding: 24px var(--gutter);
}
.mobile-nav.open { display: flex; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
  font-family: var(--serif-display);
  font-size: clamp(34px, 10vw, 48px);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 880px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .brand-wordmark { display: none; }
  .hero { padding-top: 132px; }
}

@media (max-width: 640px) {
  .brand-monogram { width: 40px; height: 40px; }
  .hero-stage { min-height: 400px; }
}

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

.hero {
  padding: 148px var(--gutter) 72px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink-soft) 24%, transparent);
}

.hero-meta {
  display: flex; flex-direction: column; gap: 6px;
}
.hero-meta .label { color: var(--ink-soft); }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(54px, 10vw, 154px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.hero-title .line { display: block; }
.hero-title .ital { font-style: italic; color: var(--gold-deep); font-weight: 400; }
:root[data-theme="dark"] .hero-title .ital { color: var(--gold); }

.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: end;
  margin-top: 40px;
}

@media (max-width: 880px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-top { flex-direction: column; align-items: flex-start; }
}

.hero-copy { max-width: 480px; }
.hero-copy p { margin: 0 0 26px; color: var(--ink-soft); font-size: clamp(18px, 2.4vw, 22px); line-height: 1.5; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-side {
  display: flex; flex-direction: column; gap: 24px;
}
.hero-side .label { margin-bottom: 8px; display: block; }

.hero-blurb {
  font-family: var(--serif-display);
  font-size: 24px;
  line-height: 1.3;
  font-style: italic;
  color: var(--ink);
  padding-left: 20px;
  border-left: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
}
.hero-blurb cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* Hero stage — the book */
.hero-stage {
  margin-top: 46px;
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
}

/* ============================================
   Book (CSS)
   ============================================ */

.book {
  width: 520px; max-width: 94vw;
  aspect-ratio: 1 / 1;
  position: relative;
  perspective: 1800px;
  transform-origin: center bottom;
  animation: bookFloat 12s var(--ease-gentle) infinite;
}

.book-spread {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(-14deg) rotateX(1.5deg);
  transition: transform 1s var(--ease);
}
.book:hover .book-spread { transform: rotateY(-8deg) rotateX(1deg); }

.book-cover {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,223,164,0.22), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(113,173,255,0.22), transparent 38%),
    linear-gradient(155deg, #23304D 0%, #2E4074 35%, #4E4E9A 66%, #D66E6B 100%);
  border-radius: 4px 14px 14px 4px;
  box-shadow:
    0 44px 88px -24px rgba(14,20,32,0.5),
    0 22px 42px -12px rgba(14,20,32,0.36),
    inset -2px 0 6px rgba(0,0,0,0.3);
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--paper);
  overflow: hidden;
}

.book-cover::before {
  content: "";
  position: absolute;
  left: 14px; top: 14px; bottom: 14px; right: 14px;
  border: 1px solid rgba(184,147,90, 0.5);
  border-radius: 2px;
  pointer-events: none;
}

.book-cover::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,.3), transparent);
}

.book-ornament {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.05em;
  text-align: center;
}

.book-title {
  font-family: var(--serif-display);
  font-size: 44px;
  line-height: 1;
  text-align: center;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.book-title .ital { font-style: italic; color: var(--gold); font-weight: 400; display: block; font-size: 56px; margin: 4px 0; }

.book-byline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244,237,224,0.65);
  text-align: center;
}

.book-illustration {
  width: 120px; height: 120px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 28% 24%, #ffd8aa, #5d7ac0 60%, #293253 100%);
  position: relative;
}
.book-illustration svg { width: 70%; }

.book-pages {
  position: absolute;
  top: 6px; right: -2px; bottom: 6px; width: 14px;
  background:
    repeating-linear-gradient(90deg, #F4EDE0 0 2px, #E4D7BD 2px 3px);
  border-radius: 0 4px 4px 0;
  transform: translateZ(-4px);
}

.book-shadow {
  position: absolute;
  left: 8%; right: 8%;
  bottom: -30px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(14,20,32,0.3), transparent 70%);
  filter: blur(6px);
  z-index: -1;
  animation: shadowBreath 10s var(--ease-gentle) infinite;
}

/* Floating ornaments around hero */
.ornament {
  position: absolute;
  color: var(--gold);
  opacity: 0.14;
  pointer-events: none;
}
.ornament svg { width: 100%; height: 100%; }
.orn-1 { top: 8%; right: 12%; width: 72px; transform: rotate(15deg); }
.orn-2 { bottom: 14%; left: 8%; width: 52px; transform: rotate(-20deg); }
.orn-3 { top: 50%; right: 6%; width: 40px; }

.orn-1,
.orn-2,
.orn-3 {
  animation: ornamentDrift 14s var(--ease-gentle) infinite;
}

.orn-2 { animation-duration: 17s; }
.orn-3 { animation-duration: 12s; }

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

@keyframes shadowBreath {
  0%, 100% { transform: scaleX(1); opacity: 0.85; }
  50% { transform: scaleX(0.94); opacity: 0.6; }
}

@keyframes ornamentDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--orn-rot, 0deg)); }
  50% { transform: translate3d(0, -10px, 0) rotate(calc(var(--orn-rot, 0deg) + 4deg)); }
}

.orn-1 { --orn-rot: 15deg; }
.orn-2 { --orn-rot: -20deg; }
.orn-3 { --orn-rot: 0deg; }

/* ============================================
   Marquee ticker
   ============================================ */

.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 16px 0;
  background: var(--paper);
  display: flex;
  gap: 80px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 80px;
  animation: scroll 54s linear infinite;
  flex-shrink: 0;
  padding-right: 80px;
}
.marquee span {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  white-space: nowrap;
}
.marquee span::before {
  content: "•";
  color: var(--gold);
  margin-right: 52px;
  font-style: normal;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   Flow / steps section
   ============================================ */

.section {
  padding: 120px var(--gutter);
}

.section-header {
  max-width: var(--max);
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 880px) {
  .section-header { grid-template-columns: 1fr; gap: 24px; }
}

.section-title {
  font-family: var(--serif-display);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-title .ital { font-style: italic; color: var(--gold-deep); }
:root[data-theme="dark"] .section-title .ital { color: var(--gold); }

.section-intro { color: var(--ink-soft); font-size: 19px; line-height: 1.5; max-width: 560px; }

.flow {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.flow.flow-4 { grid-template-columns: repeat(4, 1fr); }
.flow-step {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 24px 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: background .45s var(--ease-gentle), border-color .45s var(--ease-gentle), transform .45s var(--ease-gentle);
}
.flow-step:hover {
  background: color-mix(in srgb, var(--surface) 88%, var(--paper));
  border-color: var(--rule-strong);
  transform: translateY(-3px);
}
.flow-step .num { color: var(--gold-deep); }
:root[data-theme="dark"] .flow-step .num { color: var(--gold); }
.flow-step h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.05;
  margin: 4px 0 6px;
}
.flow-step p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0; }
.flow-step .icon {
  position: absolute;
  bottom: 20px; right: 20px;
  width: 36px; height: 36px;
  color: var(--gold);
  opacity: 0.4;
}

@media (max-width: 1100px) { .flow { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) { .flow.flow-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .flow.flow-4 { grid-template-columns: 1fr; } }

/* ============================================
   Demo section (interactive phone)
   ============================================ */

.demo {
  background: var(--surface);
  padding: 120px var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.demo-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .demo-grid { grid-template-columns: 1fr; gap: 48px; }
}

.demo-copy h2 { font-family: var(--serif-display); font-weight: 400; font-size: clamp(36px, 5vw, 64px); line-height: 1; margin: 16px 0 24px; letter-spacing: -0.02em; }
.demo-copy h2 .ital { font-style: italic; color: var(--gold-deep); }
:root[data-theme="dark"] .demo-copy h2 .ital { color: var(--gold); }
.demo-copy p { color: var(--ink-soft); font-size: 18px; line-height: 1.55; max-width: 440px; margin: 0 0 24px; }

.demo-steps-list { list-style: none; padding: 0; margin: 24px 0 0; }
.demo-steps-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  align-items: center;
  cursor: pointer;
  transition: color .3s var(--ease-gentle), transform .45s var(--ease-gentle);
  position: relative;
}
.demo-steps-list li:last-child { border-bottom: 1px solid var(--rule); }
.demo-steps-list li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 54px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-gentle), opacity .45s var(--ease-gentle);
  opacity: 0.55;
}
.demo-steps-list li:hover { color: var(--ink); transform: translateX(4px); }
.demo-steps-list li.active {
  color: var(--ink);
  transform: translateX(8px);
}
.demo-steps-list li.active .num { color: var(--gold); }
.demo-steps-list li.active::after { transform: scaleX(1); }
.demo-steps-list .label-step {
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 500;
}

/* Phone frame */
.phone {
  width: 360px;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 9 / 19;
  background: var(--ink);
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 40px 80px -20px rgba(14,20,32,0.3), 0 10px 30px -10px rgba(14,20,32,0.25);
  position: relative;
  animation: deviceFloat 11s var(--ease-gentle) infinite;
  transition: transform .5s var(--ease-gentle), box-shadow .5s var(--ease-gentle);
}
.demo:hover .phone {
  transform: translateY(-4px);
  box-shadow: 0 48px 92px -24px rgba(14,20,32,0.34), 0 16px 32px -12px rgba(14,20,32,0.2);
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #000;
  border-radius: 100px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

.phone-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink);
}
.progress-bar {
  height: 3px;
  background: var(--rule);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 20px 16px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 70%, white));
  box-shadow: 0 0 16px rgba(184,147,90,0.35);
  transition: width .6s var(--ease);
}

.phone-body {
  padding: 0 20px 24px;
  height: calc(100% - 60px);
  overflow: hidden;
  position: relative;
}
.phone-screen-state {
  position: absolute;
  inset: 0;
  padding: 0 20px 24px;
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  filter: blur(2px);
  transition: opacity .45s var(--ease-gentle), transform .65s var(--ease-gentle), filter .65s var(--ease-gentle);
  pointer-events: none;
}
.phone-screen-state.active { opacity: 1; transform: translateY(0) scale(1); filter: none; pointer-events: auto; }

.phone-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.phone-h { font-family: var(--serif-display); font-size: 28px; line-height: 1; margin: 0 0 12px; font-weight: 500; letter-spacing: -0.01em; }
.phone-h .ital { font-style: italic; color: var(--gold-deep); }

.phone-upload {
  margin-top: 16px;
  aspect-ratio: 1;
  border: 1px dashed var(--rule-strong);
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color .45s var(--ease-gentle), box-shadow .45s var(--ease-gentle);
}
.phone-screen-state.active .phone-upload,
.phone-screen-state.active .phone-prompt,
.phone-screen-state.active .phone-preview,
.phone-screen-state.active .phone-total {
  box-shadow: inset 0 0 0 1px rgba(184,147,90,0.08);
}
.phone-upload-child {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #E4D7BD, #F4EDE0);
  display: grid; place-items: center;
}
.phone-upload-child svg { width: 60%; opacity: 0.5; transition: transform .7s var(--ease-gentle), opacity .7s var(--ease-gentle); }
.phone-screen-state.active .phone-upload-child svg { transform: scale(1.03); opacity: 0.58; }

.phone-traits { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.chip {
  padding: 5px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer; transition: all .3s var(--ease-gentle);
}
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.phone-styles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px;
}
.style-card {
  aspect-ratio: 1;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .45s var(--ease-gentle), box-shadow .45s var(--ease-gentle), border-color .45s var(--ease-gentle);
}
.phone-screen-state.active .style-card:hover,
.phone-screen-state.active .avatar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.style-card.watercolor { background: linear-gradient(135deg, #C9D4E8, #E4D7BD); }
.style-card.manga { background: linear-gradient(135deg, #2D3A57, #5B4B7A); color: #F4EDE0; }
.style-card.classic { background: linear-gradient(135deg, #E4D7BD, #B8935A); }
.style-card.threeD { background: linear-gradient(135deg, #A897C4, #5B4B7A); color: #F4EDE0; }
.style-card.on { outline: 2px solid var(--gold); outline-offset: 2px; }
.style-card span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }

.phone-avatars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.avatar-card {
  aspect-ratio: 1;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .45s var(--ease-gentle), border-color .3s var(--ease-gentle), box-shadow .45s var(--ease-gentle);
}
.avatar-card.on { border-color: var(--gold); }
.avatar-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3));
}
.avatar-a { background: linear-gradient(135deg, #5B4B7A, #2D3A57); }
.avatar-b { background: linear-gradient(135deg, #8E6E3D, #B8935A); }
.avatar-card svg { position: absolute; bottom: 8px; right: 8px; z-index: 2; width: 18px; color: white; opacity: 0; transition: opacity .2s; }
.avatar-card.on svg { opacity: 1; }

.phone-prompt {
  margin-top: 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  padding: 14px;
  min-height: 110px;
  font-family: var(--serif-read);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color .45s var(--ease-gentle), box-shadow .45s var(--ease-gentle);
}
.phone-prompt .ghost { color: var(--ink-mute); font-style: italic; }
.phone-cursor { display: inline-block; width: 1px; height: 1em; background: var(--ink); vertical-align: middle; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.phone-concepts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.concept {
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  padding: 12px;
  font-family: var(--serif-display);
  font-size: 16px;
  line-height: 1.15;
  cursor: pointer;
}
.concept.on { border-color: var(--gold); background: var(--paper-2); }
.concept small { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 4px; }

.phone-preview {
  margin-top: 16px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(145deg, #1A2744, #0E1420);
  padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--paper);
  position: relative;
  overflow: hidden;
  transition: transform .6s var(--ease-gentle), box-shadow .6s var(--ease-gentle);
}
.phone-screen-state.active .phone-preview { transform: translateY(-2px); box-shadow: 0 18px 30px -22px rgba(14,20,32,0.5); }
.phone-preview::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px; right: 8px;
  border: 1px solid rgba(184,147,90,0.5);
  border-radius: 4px;
  pointer-events: none;
}
.phone-preview .tiny {
  font-family: var(--serif-display); font-size: 22px; line-height: 1; text-align: center;
}
.phone-preview .tiny .ital { font-style: italic; color: var(--gold); display: block; font-size: 28px; }

.phone-total {
  margin-top: 16px;
  padding: 14px;
  background: var(--paper-2);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform .45s var(--ease-gentle), box-shadow .45s var(--ease-gentle);
}
.phone-total .t-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.phone-total .t-val { font-family: var(--serif-display); font-size: 26px; font-weight: 500; }

.phone-cta {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  transition: transform .45s var(--ease-gentle), background .45s var(--ease-gentle), box-shadow .45s var(--ease-gentle);
}
.phone-screen-state.active .phone-cta {
  transform: translateY(-1px);
  box-shadow: 0 16px 24px -18px rgba(14,20,32,0.55);
}

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

/* ============================================
   Features grid
   ============================================ */

.features {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.feature {
  grid-column: span 4;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 240px;
  transition: transform .45s var(--ease-gentle), box-shadow .45s var(--ease-gentle), border-color .45s var(--ease-gentle), background .45s var(--ease-gentle);
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--rule-strong);
}
.feature.span-6 { grid-column: span 6; }
.feature.span-8 { grid-column: span 8; }
.feature h3 { font-family: var(--serif-display); font-size: 32px; line-height: 1.05; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.feature p { color: var(--ink-soft); font-size: 16px; margin: 0; line-height: 1.5; }
.feature .label { margin-bottom: 8px; }

.feature-big {
  grid-column: span 12;
  min-height: 340px;
  padding: 48px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.feature-big h3 { font-family: var(--serif-display); font-weight: 400; font-size: clamp(32px, 4.5vw, 56px); line-height: 1; margin: 0; }
.feature-big h3 .ital { font-style: italic; color: var(--gold); }
.feature-big p { font-size: 18px; color: rgba(244,237,224,0.7); margin: 20px 0 0; }

.feature-big-visual {
  aspect-ratio: 4/3;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(184,147,90,0.3), rgba(91,75,122,0.3)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(244,237,224,0.04) 12px 13px);
  border: 1px solid rgba(184,147,90,0.3);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244,237,224,0.5);
}

@media (max-width: 880px) {
  .feature, .feature.span-6, .feature.span-8 { grid-column: span 12; }
  .feature-big { grid-template-columns: 1fr; padding: 32px; }
}

/* ============================================
   Styles carousel
   ============================================ */

.styles-showcase {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.style-tile {
  aspect-ratio: 3/4;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: white;
  transition: transform .5s var(--ease-gentle), box-shadow .5s var(--ease-gentle);
}
.style-tile:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.style-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.6));
  pointer-events: none;
}
.style-tile > * { position: relative; z-index: 2; }
.style-tile .label { color: rgba(255,255,255,0.6); }
.style-tile h4 { font-family: var(--serif-display); font-size: 32px; font-weight: 400; margin: 4px 0 0; font-style: italic; line-height: 1; }

.tile-watercolor { background: linear-gradient(160deg, #B6C9E1 0%, #E4D7BD 55%, #C4A87A 100%); }
.tile-manga { background: linear-gradient(160deg, #1A2744 0%, #5B4B7A 100%); }
.tile-classic { background: linear-gradient(160deg, #8E6E3D 0%, #E4D7BD 100%); color: #1A2744; }
.tile-classic .label { color: rgba(26,39,68,0.6); }
.tile-3d { background: linear-gradient(160deg, #A897C4 0%, #5B4B7A 60%, #1A2744 100%); }
.tile-super { background: linear-gradient(160deg, #A23B2C 0%, #1A2744 100%); }

@media (max-width: 980px) { .styles-showcase { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .styles-showcase { grid-template-columns: repeat(2, 1fr); } }

/* ============================================
   Trust row
   ============================================ */

.trust-row {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.trust-cell {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface);
  transition: background .45s var(--ease-gentle), box-shadow .45s var(--ease-gentle);
}
.trust-cell:last-child { border-right: 0; }
.trust-cell:hover { background: color-mix(in srgb, var(--surface) 84%, var(--paper)); }
.trust-cell .label { color: var(--gold-deep); }
:root[data-theme="dark"] .trust-cell .label { color: var(--gold); }
.trust-cell h4 { font-family: var(--serif-display); font-size: 22px; margin: 0; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
.trust-cell p { color: var(--ink-soft); font-size: 15px; margin: 0; line-height: 1.5; }

@media (max-width: 880px) { .trust-row { grid-template-columns: 1fr 1fr; } .trust-cell:nth-child(2n) { border-right: 0; } .trust-cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 520px) { .trust-row { grid-template-columns: 1fr; } .trust-cell { border-right: 0; border-bottom: 1px solid var(--rule); } .trust-cell:last-child { border-bottom: 0; } }

/* ============================================
   Merch
   ============================================ */

.merch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
}
.merch-card {
  aspect-ratio: 4/5;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  display: flex; align-items: flex-end;
  padding: 20px;
  border: 1px solid var(--rule);
  transition: transform .45s var(--ease-gentle), box-shadow .45s var(--ease-gentle), border-color .45s var(--ease-gentle);
}
.merch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--rule-strong);
}
.merch-bg {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--paper-2);
}
.merch-bg svg { width: 55%; color: var(--ink); opacity: 0.7; }
.merch-meta { position: relative; z-index: 2; }
.merch-meta .label { display: block; margin-bottom: 4px; }
.merch-meta h5 { font-family: var(--serif-display); font-size: 22px; margin: 0; font-weight: 500; }

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

/* ============================================
   Waitlist / CTA
   ============================================ */

.waitlist {
  padding: 160px var(--gutter);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.waitlist-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.waitlist .label { color: var(--gold); }

.waitlist h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.95;
  margin: 16px 0 24px;
  letter-spacing: -0.02em;
}
.waitlist h2 .ital { font-style: italic; color: var(--gold); }

.waitlist p { font-size: 20px; color: rgba(244,237,224,0.7); max-width: 560px; margin: 0 auto 40px; }

.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(244,237,224,0.08);
  border: 1px solid rgba(244,237,224,0.2);
  border-radius: 999px;
  padding: 6px;
  transition: border-color .2s;
}
.waitlist-form:focus-within { border-color: var(--gold); }
.waitlist-form input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 14px 20px;
  color: var(--paper);
  font-family: var(--serif-read);
  font-size: 16px;
  outline: none;
}
.waitlist-form input::placeholder { color: rgba(244,237,224,0.4); }
.waitlist-form button {
  padding: 14px 24px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500;
  transition: background .2s;
}
.waitlist-form button:hover { background: var(--paper); }

.waitlist-error, .waitlist-success {
  display: block;
  margin-top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0;
  transition: opacity .3s;
  min-height: 1em;
}
.waitlist-error { color: #E8A595; }
.waitlist-success { color: var(--gold); }
.waitlist-error.visible, .waitlist-success.visible { opacity: 1; }

.waitlist-note { margin-top: 40px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,237,224,0.4); }

.waitlist-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}
.waitlist-bg::before, .waitlist-bg::after {
  content: "✦";
  position: absolute;
  font-size: 180px;
  color: var(--gold);
  font-family: var(--serif-display);
}
.waitlist-bg::before { top: 10%; left: 8%; transform: rotate(15deg); }
.waitlist-bg::after { bottom: 10%; right: 8%; transform: rotate(-20deg); }

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

.footer {
  padding: 80px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  position: relative;
  z-index: 2;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 20px; font-weight: 400; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--ink); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--gold-deep); }
:root[data-theme="dark"] .footer ul a:hover { color: var(--gold); }
.footer-brand { font-family: var(--serif-display); font-style: italic; font-size: 32px; line-height: 1; margin-bottom: 8px; }
.footer-brand-sub { color: var(--ink-soft); font-size: 15px; max-width: 320px; }
.footer-meta {
  max-width: var(--max);
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 640px) { .footer-meta { flex-direction: column; gap: 8px; } }

/* ============================================
   Reveal animations
   ============================================ */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-gentle), transform .9s var(--ease-gentle); }
.reveal.in { opacity: 1; transform: none; }

.flow.reveal .flow-step,
.features.reveal > *,
.styles-showcase.reveal > *,
.trust-row.reveal > *,
.merch.reveal > *,
.principles-grid.reveal > *,
.big-stat.reveal > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .8s var(--ease-gentle),
    transform .8s var(--ease-gentle),
    box-shadow .45s var(--ease-gentle),
    background .45s var(--ease-gentle),
    border-color .45s var(--ease-gentle);
  transition-delay: var(--stagger-delay, 0ms);
}

.flow.reveal.in .flow-step,
.features.reveal.in > *,
.styles-showcase.reveal.in > *,
.trust-row.reveal.in > *,
.merch.reveal.in > *,
.principles-grid.reveal.in > *,
.big-stat.reveal.in > * {
  opacity: 1;
  transform: none;
}

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

/* ============================================
   Tweaks panel
   ============================================ */

.tweaks {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 70;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  box-shadow: 0 20px 60px -20px rgba(14,20,32,0.3);
  padding: 18px;
  display: none;
  flex-direction: column;
  gap: 14px;
}
.tweaks.open { display: flex; }
.tweaks h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 4px; display: flex; justify-content: space-between; align-items: center; font-weight: 400; }
.tweaks h4 button { color: var(--ink-soft); }
.tweak-row { display: flex; flex-direction: column; gap: 6px; }
.tweak-row label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.tweak-swatches { display: flex; gap: 6px; }
.tweak-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--rule-strong); cursor: pointer; }
.tweak-swatch.on { outline: 2px solid var(--gold); outline-offset: 2px; }
.tweak-select {
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  font-family: var(--serif-read);
  font-size: 13px;
  color: var(--ink);
}

/* Page-specific tweaks */
[data-hero="book"] .hero-alt { display: none; }
[data-hero="type"] .hero-book-stage { display: none; }
[data-hero="type"] .hero-alt { display: block; }

.hero-alt {
  margin-top: 56px;
  text-align: center;
  font-family: var(--serif-display);
  font-size: clamp(48px, 10vw, 140px);
  line-height: 0.95;
  color: var(--gold-deep);
}
.hero-alt .line { display: block; font-style: italic; }
.hero-alt .line:nth-child(2) { color: var(--ink); font-style: normal; }

:root[data-theme="dark"] .hero-alt { color: var(--gold); }

/* About page specific */
.about-hero { padding: 180px var(--gutter) 80px; }
.about-hero h1 { font-family: var(--serif-display); font-weight: 400; font-size: clamp(64px, 10vw, 160px); line-height: 0.9; margin: 0; letter-spacing: -0.02em; }
.about-hero h1 .ital { font-style: italic; color: var(--gold-deep); }
:root[data-theme="dark"] .about-hero h1 .ital { color: var(--gold); }
.about-hero p { font-size: 22px; line-height: 1.5; color: var(--ink-soft); max-width: 640px; margin-top: 32px; }

.about-quote {
  max-width: 1000px;
  margin: 80px auto;
  padding: 40px var(--gutter);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
}
.about-quote::before, .about-quote::after { content: "❝"; color: var(--gold); font-size: 72px; display: block; font-style: normal; line-height: 0.5; margin-bottom: 16px; }
.about-quote::after { content: "❞"; margin-top: 24px; }

.principles-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.principle {
  padding: 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 240px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background .45s var(--ease-gentle), transform .45s var(--ease-gentle);
}
.principle:hover {
  background: color-mix(in srgb, var(--surface) 78%, var(--paper));
  transform: translateY(-3px);
}
.principle .num { color: var(--gold-deep); }
:root[data-theme="dark"] .principle .num { color: var(--gold); }
.principle h3 { font-family: var(--serif-display); font-size: 26px; font-weight: 500; margin: 0; line-height: 1.1; }
.principle p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0; }

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

.timeline-block {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.timeline-block:last-child { border-bottom: 1px solid var(--rule); }
.timeline-year { font-family: var(--serif-display); font-size: 48px; font-style: italic; color: var(--gold-deep); }
:root[data-theme="dark"] .timeline-year { color: var(--gold); }
.timeline-content h4 { font-family: var(--serif-display); font-size: 32px; font-weight: 500; margin: 0 0 12px; line-height: 1.1; }
.timeline-content p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; margin: 0; max-width: 640px; }

@media (max-width: 640px) {
  .timeline-block { grid-template-columns: 1fr; gap: 12px; }
  .timeline-year { font-size: 32px; }
}

/* Contact page */
.contact-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  padding: 40px 0;
}
@media (max-width: 880px) { .contact-wrap { grid-template-columns: 1fr; gap: 48px; } }

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 10px 0;
  font-family: var(--serif-read);
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field.error input, .field.error textarea { border-color: var(--danger); }
.field-error { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--danger); min-height: 1em; }

.contact-info { padding: 32px; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--surface); display: flex; flex-direction: column; gap: 32px; }
.contact-info {
  transition: transform .45s var(--ease-gentle), box-shadow .45s var(--ease-gentle), border-color .45s var(--ease-gentle);
}
.contact-info:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--rule);
}
.contact-info-block .label { display: block; margin-bottom: 8px; }
.contact-info-block h4 { font-family: var(--serif-display); font-size: 22px; font-weight: 500; margin: 0 0 4px; }
.contact-info-block p { color: var(--ink-soft); margin: 0; }
.contact-info-block a { color: var(--ink); border-bottom: 1px solid var(--gold); }

.contact-success {
  display: none;
  padding: 16px 20px;
  background: var(--paper-2);
  border: 1px solid var(--gold);
  border-radius: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep);
}
:root[data-theme="dark"] .contact-success { color: var(--gold); }
.contact-success.visible { display: block; }

/* Features page */
.big-stat {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.big-stat .cell {
  padding: 48px 32px;
  border-right: 1px solid var(--rule);
}
.big-stat .cell:last-child { border-right: 0; }
.big-stat .num-big { font-family: var(--serif-display); font-size: clamp(48px, 7vw, 96px); font-weight: 400; line-height: 1; color: var(--gold-deep); letter-spacing: -0.02em; margin-bottom: 8px; }
:root[data-theme="dark"] .big-stat .num-big { color: var(--gold); }
.big-stat .stat-label { font-family: var(--serif-display); font-size: 24px; line-height: 1.2; margin-bottom: 6px; }
.big-stat .stat-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

@media (max-width: 880px) { .big-stat { grid-template-columns: 1fr; } .big-stat .cell { border-right: 0; border-bottom: 1px solid var(--rule); } .big-stat .cell:last-child { border-bottom: 0; } }

.age-table {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}
.age-table th, .age-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif-read);
  font-size: 16px;
}
.age-table th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-strong);
}
.age-table tr:hover td { background: var(--surface); }
.age-table td:first-child { font-family: var(--serif-display); font-size: 20px; color: var(--gold-deep); font-weight: 500; }
:root[data-theme="dark"] .age-table td:first-child { color: var(--gold); }

/* Misc */
.tiny-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--gold-deep);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
:root[data-theme="dark"] .tiny-label { color: var(--gold); background: var(--paper-3); }

/* ============================================
   Home Launch Redesign — premium product page
   ============================================ */

.home-launch {
  --paper: #f6f2ea;
  --paper-2: #eee7dc;
  --paper-3: #dfd5c6;
  --ink: #141b27;
  --ink-2: #111827;
  --ink-soft: #465061;
  --ink-mute: #728096;
  --rule: rgba(20, 27, 39, 0.12);
  --rule-strong: rgba(20, 27, 39, 0.2);
  --gold: #b79059;
  --gold-deep: #8d6a3f;
  background: var(--paper);
}

.home-launch .header {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
}

.home-launch .header.scrolled,
.home-launch .header {
  padding: 14px 28px;
}

.home-launch .header.scrolled {
  border-bottom-color: var(--rule);
}

.home-launch .brand-wordmark {
  font-size: 22px;
}

.home-launch .nav a {
  font-size: 10px;
  letter-spacing: .17em;
}

.home-launch .header-cta {
  padding-inline: 18px;
}

.home-launch .launch-main {
  position: relative;
  z-index: 2;
}

.home-launch .launch-hero,
.home-launch .launch-section,
.home-launch .launch-statement,
.home-launch .colour-reveal,
.home-launch .launch-waitlist,
.home-launch .footer {
  width: min(1260px, calc(100% - 56px));
  margin-inline: auto;
}

.home-launch .launch-hero {
  padding-top: 132px;
  padding-bottom: 48px;
  text-align: center;
}

.home-launch .hero-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.home-launch .launch-hero h1 {
  margin: 12px auto 0;
  max-width: 12ch;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(52px, 8.8vw, 136px);
  letter-spacing: -0.03em;
  line-height: .9;
  color: var(--ink-2);
}

.home-launch .hero-sub {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
}

.home-launch .hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.home-launch .hero-product {
  margin: 58px auto 0;
  max-width: 1120px;
}

.home-launch .book-object {
  position: relative;
  height: min(64vw, 740px);
  min-height: 520px;
  border-radius: 34px;
  border: 1px solid var(--rule-strong);
  background: linear-gradient(180deg, #ebe4d7 0%, #e2d8c7 100%);
  overflow: hidden;
  box-shadow: 0 44px 72px -56px rgba(8, 14, 24, .55);
}

.home-launch .book-front {
  position: absolute;
  inset: 8% 41% 12% 7%;
  border-radius: 22px;
  padding: clamp(22px, 2.8vw, 36px);
  border: 1px solid rgba(255,255,255,.26);
  color: #fff6e9;
  background:
    radial-gradient(120% 120% at 88% 10%, rgba(255, 196, 139, .46), transparent 58%),
    radial-gradient(130% 130% at 12% 86%, rgba(126, 156, 239, .36), transparent 62%),
    linear-gradient(145deg, #142845 0%, #213f73 53%, #2d4f8d 100%);
}

.home-launch .book-edge {
  position: absolute;
  left: 55%;
  top: 8%;
  bottom: 12%;
  width: 2px;
  background: rgba(255,255,255,.38);
}

.home-launch .book-imprint {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.home-launch .book-front h2 {
  margin: 24px 0 14px;
  font-family: var(--serif-display);
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: .95;
  font-weight: 500;
}

.home-launch .book-front .ital {
  display: block;
  font-style: italic;
  font-weight: 400;
}

.home-launch .book-tagline {
  margin: 0;
  color: rgba(255,246,233,.86);
}

.home-launch .book-stars {
  margin-top: 26px;
  font-size: 15px;
  letter-spacing: .35em;
  opacity: .8;
}

.home-launch .book-preview {
  position: absolute;
  right: 6%;
  width: 32%;
  border-radius: 16px;
  border: 1px solid rgba(18, 25, 39, .22);
  box-shadow: 0 24px 40px -30px rgba(16, 24, 39, .45);
}

.home-launch .preview-top {
  top: 13%;
  bottom: 52%;
  background:
    radial-gradient(160% 120% at 15% 20%, rgba(255,214,167,.95), transparent 40%),
    linear-gradient(130deg, #e49874, #b87185 55%, #5f4f93);
}

.home-launch .preview-bottom {
  top: 50%;
  bottom: 14%;
  background:
    radial-gradient(130% 130% at 82% 10%, rgba(202,236,255,.94), transparent 44%),
    linear-gradient(130deg, #6e9ece, #8ec3b9 55%, #436ca3);
}

.home-launch .hero-product figcaption {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 16px;
}

.home-launch .launch-section {
  display: grid;
  gap: 22px;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  padding: 88px 0;
  border-top: 1px solid var(--rule);
}

.home-launch .section-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.home-launch .launch-section h2,
.home-launch .launch-statement h2,
.home-launch .colour-reveal h2 {
  margin: 10px 0 0;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(42px, 6.4vw, 94px);
  line-height: .93;
  letter-spacing: -0.02em;
}

.home-launch .launch-section p,
.home-launch .launch-statement p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: clamp(19px, 1.8vw, 28px);
  line-height: 1.35;
}

.home-launch .closed-book {
  position: relative;
  min-height: 290px;
  border-radius: 20px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 86%, #fff);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-launch .closed-book::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  height: 1px;
  background: var(--rule);
}

.home-launch .tiny-label {
  align-self: flex-start;
  padding: 8px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-launch .closed-title {
  font-family: var(--serif-display);
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: .95;
  max-width: 14ch;
}

.home-launch .launch-statement {
  text-align: center;
  padding: 84px 0;
  border-top: 1px solid var(--rule);
}

.home-launch .launch-statement h2 {
  max-width: 12ch;
  margin-inline: auto;
}

.home-launch .launch-statement p {
  max-width: 34ch;
  margin-inline: auto;
}

.home-launch .value-slice {
  grid-template-columns: 1.2fr .8fr;
}

.home-launch .colour-reveal {
  text-align: center;
  padding: 96px 0;
  border-top: 1px solid var(--rule);
}

.home-launch .spread {
  margin: 40px auto 0;
  max-width: 1040px;
  min-height: 520px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--rule-strong);
  background: #f5efe3;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.home-launch .spread-page {
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
}

.home-launch .spread-page span {
  font-family: var(--serif-display);
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1;
  color: #fff9ee;
  text-align: left;
  max-width: 13ch;
}

.home-launch .spread-page.left {
  background:
    radial-gradient(120% 130% at 20% 10%, rgba(255,214,165,.95), transparent 42%),
    linear-gradient(135deg, #e08869 0%, #bc6a82 44%, #674f93 100%);
}

.home-launch .spread-page.right {
  background:
    radial-gradient(120% 130% at 80% 8%, rgba(204,239,255,.96), transparent 40%),
    linear-gradient(135deg, #5f89ba 0%, #83b7b7 44%, #3f648f 100%);
}

.home-launch .emotional {
  border-bottom: 1px solid var(--rule);
}

.home-launch .launch-waitlist {
  margin-top: 84px;
}

.home-launch .waitlist-inner {
  background: linear-gradient(180deg, #f3ebe0 0%, #ebdfcf 100%);
  border: 1px solid var(--rule-strong);
}

.home-launch .waitlist h2 {
  max-width: 12ch;
  margin-inline: auto;
}

.home-launch .waitlist p {
  max-width: 42ch;
  margin-inline: auto;
}

.home-launch .waitlist-form {
  justify-content: center;
}

@media (max-width: 1080px) {
  .home-launch .launch-hero,
  .home-launch .launch-section,
  .home-launch .launch-statement,
  .home-launch .colour-reveal,
  .home-launch .launch-waitlist,
  .home-launch .footer {
    width: min(1260px, calc(100% - 34px));
  }

  .home-launch .book-front {
    inset: 7% 9% 56% 9%;
  }

  .home-launch .book-edge {
    left: 50%;
    top: 47%;
    bottom: auto;
    width: auto;
    height: 1px;
    right: 50%;
  }

  .home-launch .book-preview {
    right: 9%;
    left: 9%;
    width: auto;
  }

  .home-launch .preview-top {
    top: 50%;
    bottom: 28%;
  }

  .home-launch .preview-bottom {
    top: 72%;
    bottom: 8%;
  }

  .home-launch .launch-section,
  .home-launch .value-slice {
    grid-template-columns: 1fr;
  }

  .home-launch .spread {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .home-launch .header,
  .home-launch .header.scrolled {
    padding-inline: 16px;
  }

  .home-launch .brand-wordmark,
  .home-launch .nav,
  .home-launch .header-cta {
    display: none;
  }

  .home-launch .menu-btn {
    display: grid;
  }

  .home-launch .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .home-launch .book-object {
    min-height: 600px;
  }

  .home-launch .spread {
    grid-template-columns: 1fr;
    min-height: 540px;
  }

  .home-launch .launch-section,
  .home-launch .launch-statement,
  .home-launch .colour-reveal {
    padding-block: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-launch .hero-product,
  .home-launch .spread-page,
  .home-launch .closed-book {
    transition: none !important;
    animation: none !important;
  }
}
