:root {
  --paper: #f3ece1;
  --paper-2: #ebe2d3;
  --ink: #1a1410;
  --ink-soft: #3a302a;
  --ink-quiet: #6b5b4d;
  --rule: rgba(26, 20, 16, 0.14);
  --ember: #b94a4a;
  --ember-deep: #8a2f30;
  --amber: #c2843a;
  --emerald: #2f5a44;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.22  0 0 0 0 0.12  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: multiply;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(120% 80% at 50% 30%, transparent 40%, rgba(40, 22, 10, 0.18) 100%),
    radial-gradient(60% 40% at 50% 0%, rgba(255, 220, 160, 0.10), transparent 70%);
}

.stage { position: relative; z-index: 3; }

a { color: inherit; }

/* ───────── Top bar ───────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 5vw, 64px);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: 1440px;
  margin: 0 auto;
}
.mark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  text-decoration: none;
}
.mark .amp { color: var(--ember); }
.topbar nav { display: flex; gap: 32px; }
.topbar nav a {
  color: inherit;
  text-decoration: none;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.topbar nav a:hover { color: var(--ember); }
.topbar .version {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
}

/* ───────── Hero ───────── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(40px, 8vh, 96px) clamp(24px, 5vw, 96px) clamp(80px, 12vh, 140px);
  max-width: 1440px;
  margin: 0 auto;
  min-height: 86vh;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--ember);
  display: inline-block;
}

h1.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 360;
  font-size: clamp(56px, 7.4vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 36px;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--ember);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
h1.hero-title .ornament {
  color: var(--amber);
  font-style: normal;
  margin: 0 0.05em;
}

.hero-sub {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 48px;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.3s ease;
}
.appstore:hover { transform: translateY(-1px); }
.appstore svg { width: 28px; height: 28px; flex: none; }
.appstore .as-small {
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.85;
  display: block;
  margin-bottom: 3px;
  font-family: 'Inter', sans-serif;
}
.appstore .as-big {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: 'Inter', sans-serif;
}

.hero-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  line-height: 1.6;
}
.hero-meta b { color: var(--ink); font-weight: 500; }

.hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-phone {
  position: relative;
  width: clamp(260px, 28vw, 380px);
  aspect-ratio: 1284 / 2778;
  border-radius: 44px;
  overflow: hidden;
  box-shadow:
    0 60px 120px -30px rgba(60, 25, 10, 0.55),
    0 24px 48px -16px rgba(60, 25, 10, 0.35),
    0 2px 0 rgba(255, 245, 220, 0.4) inset,
    0 0 0 1px rgba(26, 20, 16, 0.06);
  background: #fff;
  transform: rotate(-1.5deg);
}
.hero-phone img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-phone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 50% at 70% 0%, rgba(255, 200, 130, 0.18), transparent 70%);
  pointer-events: none;
}

.smoke {
  position: absolute;
  top: -8%;
  left: 50%;
  width: 220px;
  height: 100%;
  pointer-events: none;
  transform: translateX(-50%);
  opacity: 0.55;
  filter: blur(2px);
}
.smoke .puff {
  position: absolute;
  bottom: 60%;
  left: 50%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 230, 200, 0.55), transparent 65%);
  transform: translate(-50%, 0);
  animation: drift 9s ease-in infinite;
}
.smoke .puff:nth-child(2) { animation-delay: -3s; left: 42%; width: 60px; height: 60px; opacity: 0.75; }
.smoke .puff:nth-child(3) { animation-delay: -6s; left: 58%; width: 100px; height: 100px; opacity: 0.5; }
@keyframes drift {
  0%   { transform: translate(-50%, 80px) scale(0.6); opacity: 0; }
  20%  { opacity: 0.7; }
  100% { transform: translate(-30%, -300px) scale(1.6); opacity: 0; }
}

.glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 138, 76, 0.30) 0%, rgba(232, 138, 76, 0.10) 35%, transparent 65%);
  z-index: -1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ───────── Pitch ───────── */
.pitch {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(80px, 14vh, 180px) clamp(24px, 6vw, 96px);
  text-align: left;
}
.ornament-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 56px;
  color: var(--amber);
}
.ornament-rule .line {
  height: 1px; flex: 1; max-width: 120px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}
.ornament-rule .glyph {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 22px;
}

.pitch p {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.pitch p em {
  font-style: italic;
  color: var(--ember-deep);
  font-weight: 300;
}
.pitch .by {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-top: 56px;
  text-align: center;
  font-style: normal;
}

/* ───────── Chapters ───────── */
.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) clamp(24px, 6vw, 96px);
  border-top: 1px solid var(--rule);
}
.chapter:nth-child(even) { direction: rtl; }
.chapter:nth-child(even) > * { direction: ltr; }

.chapter-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.chapter-num span {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 28px;
  color: var(--ember);
  letter-spacing: -0.01em;
  text-transform: none;
}

.chapter h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 380;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 22px;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  text-wrap: balance;
}
.chapter h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--ember);
}
.chapter p.lede {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 38ch;
}
.chapter p.body {
  font-size: 16px;
  color: var(--ink-quiet);
  line-height: 1.65;
  max-width: 44ch;
  margin: 0;
}

.chapter-phone {
  position: relative;
  display: flex;
  justify-content: center;
}
.chapter-phone .device-wrap {
  position: relative;
  width: clamp(240px, 26vw, 340px);
}
.chapter-phone .device {
  position: relative;
  width: 100%;
  aspect-ratio: 1284 / 2778;
  border-radius: 38px;
  overflow: hidden;
  box-shadow:
    0 50px 100px -30px rgba(60, 25, 10, 0.45),
    0 18px 36px -12px rgba(60, 25, 10, 0.28),
    0 0 0 1px rgba(26, 20, 16, 0.05);
  background: #fff;
}
.chapter:nth-child(2) .chapter-phone .device { transform: rotate(2deg); }
.chapter:nth-child(3) .chapter-phone .device { transform: rotate(-1.5deg); }
.chapter:nth-child(4) .chapter-phone .device { transform: rotate(1.2deg); }
.chapter-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

.seal {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--ember) 0%, var(--ember-deep) 70%);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 32px;
  box-shadow: 0 14px 28px -8px rgba(138, 47, 48, 0.5), inset 0 -3px 6px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.2);
  top: -20px;
  left: -20px;
  transform: rotate(-12deg);
  z-index: 2;
}
.chapter:nth-child(3) .seal { background: radial-gradient(circle at 35% 30%, var(--amber) 0%, #8a5215 70%); box-shadow: 0 14px 28px -8px rgba(138, 82, 21, 0.5), inset 0 -3px 6px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.2); }
.chapter:nth-child(4) .seal { background: radial-gradient(circle at 35% 30%, var(--emerald) 0%, #1a3a2a 70%); box-shadow: 0 14px 28px -8px rgba(47, 90, 68, 0.5), inset 0 -3px 6px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.2); }

/* ───────── Dark interlude ───────── */
.interlude {
  background: #14100d;
  color: #efe6d8;
  padding: clamp(100px, 16vh, 180px) clamp(24px, 6vw, 96px);
  margin: clamp(40px, 8vh, 100px) 0 0;
  position: relative;
  overflow: hidden;
}
.interlude::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 70% 30%, rgba(232, 138, 76, 0.18), transparent 70%),
              radial-gradient(40% 50% at 20% 80%, rgba(185, 74, 74, 0.12), transparent 70%);
  pointer-events: none;
}
.interlude::after {
  content: '';
  position: absolute;
  inset: 0;
  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.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.85  0 0 0 0 0.7  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  mix-blend-mode: screen;
}
.interlude .inner { position: relative; max-width: 980px; margin: 0 auto; }
.interlude .label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
}
.interlude h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 320;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.interlude h3 em { font-style: italic; color: #f0a86b; font-weight: 300; }
.interlude p {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
  color: rgba(239, 230, 216, 0.78);
  max-width: 54ch;
  margin: 0 0 18px;
}
.interlude p:last-child { margin-bottom: 0; }
.interlude a {
  color: #f0a86b;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 168, 107, 0.35);
}
.interlude a:hover { border-bottom-color: #f0a86b; }

/* ───────── FAQ ───────── */
.faq {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) clamp(24px, 6vw, 64px);
}
.faq-head {
  text-align: center;
  margin-bottom: 72px;
}
.faq-head .label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 16px;
}
.faq-head h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 320;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.faq-head h2 em { font-style: italic; color: var(--ember); font-weight: 300; }

.faq dl { margin: 0; counter-reset: faq; }
.faq dt {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.faq dt::before {
  content: counter(faq, decimal-leading-zero) ' / ';
  counter-increment: faq;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.18em;
  margin-right: 10px;
  vertical-align: 6px;
}
.faq dd {
  margin: 0 0 44px;
  color: var(--ink-quiet);
  font-size: 16px;
  line-height: 1.65;
  max-width: 64ch;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
.faq dd:last-of-type { border-bottom: none; }
.faq dt em { font-style: italic; color: var(--ember-deep); }

/* ───────── Download CTA ───────── */
.download {
  text-align: center;
  padding: 48px 24px 80px;
}
.download .ornament-glyph {
  text-align: center;
  color: var(--amber);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 28px;
  margin: 0;
  line-height: 1;
}
.download h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 320;
  font-size: clamp(36px, 4.6vw, 56px);
  letter-spacing: -0.02em;
  margin: 28px 0 14px;
  line-height: 1.05;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.download h2 em { font-style: italic; font-weight: 300; color: var(--ember); }
.download .sub {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-quiet);
  font-size: 18px;
  margin: 0 auto 36px;
  max-width: 38ch;
}
.download .appstore { justify-content: center; }

/* ───────── Footer ───────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 72px clamp(24px, 6vw, 96px) 56px;
  max-width: 1440px;
  margin: 0 auto;
}
.colophon {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}
.colophon .imprint .mark { font-size: 28px; }
.colophon .imprint p {
  margin: 14px 0 0;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-quiet);
  font-size: 17px;
  max-width: 32ch;
  line-height: 1.5;
}
.colophon h4 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin: 0 0 18px;
  font-weight: 500;
}
.colophon ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.colophon a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.colophon a:hover { color: var(--ember); }

.footer-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
  margin: 0 auto 24px;
}
.fineprint {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.fineprint .ornament { color: var(--amber); font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 18px; text-transform: none; letter-spacing: 0; }

/* ───────── Page utility (privacy / support) ───────── */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 96px) clamp(24px, 5vw, 48px) clamp(80px, 12vh, 140px);
}
.page .eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 20px;
}
.page h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 360;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.page h1 em { font-style: italic; font-weight: 300; color: var(--ember); }
.page .meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin: 0 0 40px;
}
.page h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 380;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
  color: var(--ink);
}
.page p, .page li {
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.65;
}
.page ul { padding-left: 22px; margin: 0 0 14px; }
.page a {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ember) 35%, transparent);
}
.page a:hover { border-bottom-color: var(--ember); }
.page .back {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin: 0 0 32px;
}
.page .back a {
  color: var(--ink-quiet);
  border-bottom: none;
}
.page .back a:hover { color: var(--ember); }

/* ───────── Responsive ───────── */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; min-height: auto; }
  .hero-phone-wrap { order: -1; margin-bottom: 24px; }
  .chapter { grid-template-columns: 1fr; gap: 56px; }
  .chapter:nth-child(even) { direction: ltr; }
  .colophon { grid-template-columns: 1fr 1fr; gap: 40px; }
  .topbar nav { display: none; }
  .fineprint { flex-direction: column; gap: 8px; align-items: flex-start; }
}
