@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --surface-card: #1d1830;
  --veil: rgba(244, 237, 228, 0.08);
  --veil-line: rgba(244, 237, 228, 0.15);
  --accent-soft: #35282a;
  --seed: #deab73;
  --feel-joyful: #e8a869;
  --feel-excited: #e79b7a;
  --feel-sad: #8fb2c2;
  --feel-angry: #c97f86;
  --feel-anxious: #b79ab8;
  --feel-numb: #8e8999;
  --sky-top: #161427;
  --sky-mid: #221b2e;
  --horizon: #3d2a26;
  --night: #120f1f;
  --card: #1e1b28;
  --card-muted: #282436;
  --text: #f4ede4;
  --text-2: #b8afa6;
  --text-3: #9d94a6;
  --accent: #e8a869;
  --button: #efe3d3;
  --on-button: #221e2a;
  --border: #332e42;
  --border-strong: #807890;
  --ayah: #232838;
  --ayah-line: #3a4458;
  --ayah-accent: #8fb2c2;
  --serif: 'Fraunces', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--night);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.35rem; line-height: 1.3; margin-bottom: 8px; }

.wrap { width: min(1100px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 680px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--button); color: var(--on-button); padding: 8px 16px; border-radius: 8px; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(22, 20, 39, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 237, 228, 0.08);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo img { width: 132px; height: auto; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--text); }

.button {
  display: inline-block; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--button); color: var(--on-button);
  font: 600 1rem var(--sans); text-decoration: none;
  padding: 14px 24px; border-radius: 999px;
  transition: transform 0.2s, opacity 0.2s;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: 0.6; cursor: default; transform: none; }
.button.small { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-size: 0.9rem; }
.button.secondary { background: var(--veil); border: 1px solid var(--veil-line); color: var(--text); }

.hero {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--horizon) 88%, var(--night) 100%);
  padding: 72px 0 112px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--text-2); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow.ayah { color: var(--ayah-accent); }
.lead { color: var(--text-2); font-size: 1.15rem; margin: 22px 0 32px; max-width: 34em; }

.waitlist { max-width: 500px; }
.field { display: flex; gap: 8px; padding: 6px; background: rgba(244, 237, 228, 0.08); border: 1px solid rgba(244, 237, 228, 0.15); border-radius: 999px; }
.field:focus-within { border-color: var(--accent); }
.field input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: 1rem var(--sans); padding: 0 16px; }
.field input::placeholder { color: var(--text-3); }
.field input:focus-visible { outline: none; }
.trap { display: none; }
.fine { font-size: 0.85rem; color: var(--text-3); margin-top: 12px; }
.status { color: var(--accent); margin-top: 8px; }
.status:empty { display: none; }

.hero-visual { position: relative; display: flex; justify-content: flex-start; }
.bloom { position: absolute; width: 340px; top: 40px; right: -100px; opacity: 0.7; pointer-events: none; }
.sway { transform-origin: 70% 100%; animation: sway 7s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.8deg); } }
.drift { position: absolute; width: 26px; height: auto; opacity: 0; pointer-events: none; animation: drift 14s linear infinite; }
.drift.one { right: 40px; top: 190px; }
.drift.two { right: -10px; top: 330px; animation-duration: 17s; animation-delay: 4s; }
.drift.three { right: 90px; top: 90px; width: 20px; animation-duration: 20s; animation-delay: 8s; }
@keyframes drift { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 15%, 70% { opacity: 0.8; } 100% { transform: translate(-190px, -170px) rotate(-28deg); opacity: 0; } }

.band { padding: 88px 0; }
.intro { text-align: center; padding-bottom: 24px; }
.intro p, .section-lead { color: var(--text-2); font-size: 1.15rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.steps > li > .phone { margin: 0 auto 24px; }
.steps > li > p { color: var(--text-2); font-size: 0.95rem; }
.faith { background: var(--ayah); border-block: 1px solid var(--ayah-line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split p:not(.eyebrow) { color: var(--text-2); }
.ticks li { padding: 18px 0; border-top: 1px solid var(--ayah-line); color: var(--text-2); }
.ticks li:last-child { border-bottom: 1px solid var(--ayah-line); }
.ticks strong { color: var(--text); }

.cards { display: grid; gap: 20px; margin-top: 36px; }
.cards article { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 28px; }
.cards p { color: var(--text-2); }

.narrow > p { color: var(--text-2); }
.facts { margin: 28px 0; }
.facts div { padding: 20px 0; border-top: 1px solid var(--border); }
.facts dt { font: 1.2rem var(--serif); margin-bottom: 4px; }
.facts dd { color: var(--text-2); }

details { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font: 1.15rem var(--serif); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--text-3); }
details[open] summary::after { content: '−'; }
details p { color: var(--text-2); padding-bottom: 20px; }

.join { text-align: center; background: linear-gradient(180deg, var(--night), var(--sky-mid) 55%, var(--horizon)); padding: 104px 0; }
.join .waitlist { margin: 32px auto 0; }
.seed { margin: 0 auto 24px; }

.site-footer { padding: 48px 0; color: var(--text-2); font-size: 0.92rem; text-align: center; }
.site-footer p + p { margin-top: 10px; }

.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 20px; }
.page h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.page p, .page li { color: var(--text-2); margin-bottom: 12px; }
.page ul { list-style: disc; padding-left: 22px; }
.page strong { color: var(--text); }
.notice { border: 1px solid var(--accent); border-radius: 16px; padding: 16px 20px; margin-bottom: 24px; }
.notice p { margin: 0; color: var(--text); }
.page h3 { font-size: 1.15rem; margin: 20px 0 8px; }
.page ul { margin-bottom: 12px; }
.page .updated { color: var(--text-3); font-size: 0.9rem; }
.page section { scroll-margin-top: 88px; }
.toc { display: block; margin: 28px 0 0; padding: 20px 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); }
.toc ul { columns: 2 220px; list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; break-inside: avoid; }
.toc a { display: block; padding: 6px 0; font-size: 0.95rem; }
.table-wrap { overflow-x: auto; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); }
th { color: var(--text); font-weight: 600; }
td { color: var(--text-2); }
.centre-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding: 40px 0; }

.notebook { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.notebook > .phone { margin-inline: auto; }

.shot { display: block; width: 250px; max-width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 13.2% / 6.1%; box-shadow: 0 0 0 2px var(--border), 0 30px 60px rgba(0, 0, 0, 0.45); }
.hero-shot, .home-shot { position: relative; width: 290px; }
.steps > li > .shot, .steps > li > .shot-stack { margin: 0 auto 24px; }
.shot-stack { display: grid; width: 250px; max-width: 100%; }
.shot-stack .shot { grid-area: 1 / 1; width: 100%; }
.shot-stack .second { animation: reveal 12s ease-in-out infinite; }
@keyframes reveal { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }

.notebook { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.notebook > .shot { margin-inline: auto; }

.motion-toggle { display: block; margin: 32px auto 0; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--veil-line); background: var(--veil); color: var(--text-2); font: 500 0.9rem var(--sans); cursor: pointer; }
.still *, .still *::before, .still *::after { animation-play-state: paused !important; }

@media (max-width: 1130px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}

@media (max-width: 960px) {
  .site-header nav { display: none; }
  .split, .hero-grid, .notebook { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .hero { padding-top: 48px; text-align: center; }
  .waitlist, .lead { margin-inline: auto; }
  .hero-visual { margin-top: 16px; justify-content: center; }
  .bloom { right: -140px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .band { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps > li > .shot, .steps > li > .shot-stack { width: 280px; }
  .field { flex-direction: column; background: none; border: 0; padding: 0; }
  .field input { flex: none; height: 52px; border-radius: 999px; background: rgba(244, 237, 228, 0.08); border: 1px solid rgba(244, 237, 228, 0.15); text-align: center; }
  .field input:focus-visible { border-color: var(--accent); }
  .bar .button { padding: 0 14px; font-size: 0.82rem; }
  .logo img { width: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-toggle { display: none; }
}
