/*
 * Noah website — Toybox theme.
 * Sunrise (light) and Starlight (dark) mirror the app's two Home scenes.
 * Flat colors are the nearest tokens from apps/mobile/src/theme/noahTheme.ts.
 */

:root {
  --page: #f2efe7;
  --content: #f8f4ec;
  --elevated: #f1eadf;
  --ink: #2b251f;
  --ink-2: #655d54;
  --muted: #71675d;
  --illuminated: #986020;
  --bronze: #b77a32;
  --gold: #e3b86f;
  --cosmos: #f0b26c;
  --peach: #efa06f;
  --line: rgba(43, 37, 31, 0.12);
  --glass: rgba(248, 244, 236, 0.72);
  --glass-strong: rgba(248, 244, 236, 0.9);
  --rim: linear-gradient(135deg, #f2d49a, #d7a45e 55%, #b77a32);
  --mist: radial-gradient(120% 80% at 15% 0%, #f9dcc6 0%, transparent 60%),
    radial-gradient(90% 70% at 100% 20%, #dfe4f2 0%, transparent 65%),
    radial-gradient(110% 90% at 50% 110%, #f6cfae 0%, transparent 60%);
  --shadow-soft: 0 1px 2px rgba(43, 37, 31, 0.06), 0 12px 32px -12px rgba(120, 80, 30, 0.28);
  --shadow-toy: 0 2px 0 rgba(255, 255, 255, 0.6) inset, 0 -3px 0 rgba(0, 0, 0, 0.08) inset,
    0 18px 40px -16px rgba(120, 80, 30, 0.45);
  --badge-bg: #111;
  --badge-ink: #fff;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0c1222;
    --content: #121a2e;
    --elevated: #19223b;
    --ink: #f6efe3;
    --ink-2: #cbc2b3;
    --muted: #a59b8c;
    --illuminated: #f0b26c;
    --line: rgba(246, 239, 227, 0.12);
    --glass: rgba(22, 30, 52, 0.66);
    --glass-strong: rgba(22, 30, 52, 0.9);
    --rim: linear-gradient(135deg, #ffe2a0, #f0b26c 55%, #efa06f);
    --mist: radial-gradient(120% 80% at 15% 0%, rgba(240, 178, 108, 0.16) 0%, transparent 60%),
      radial-gradient(90% 70% at 100% 20%, rgba(80, 104, 170, 0.28) 0%, transparent 65%),
      radial-gradient(110% 90% at 50% 110%, rgba(240, 178, 108, 0.12) 0%, transparent 60%);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    --shadow-toy: 0 2px 0 rgba(255, 255, 255, 0.18) inset, 0 -3px 0 rgba(0, 0, 0, 0.25) inset,
      0 18px 40px -16px rgba(0, 0, 0, 0.8);
    --badge-bg: #f6efe3;
    --badge-ink: #111;
  }
}

:root[data-theme="dark"] {
  --page: #0c1222;
  --content: #121a2e;
  --elevated: #19223b;
  --ink: #f6efe3;
  --ink-2: #cbc2b3;
  --muted: #a59b8c;
  --illuminated: #f0b26c;
  --line: rgba(246, 239, 227, 0.12);
  --glass: rgba(22, 30, 52, 0.66);
  --glass-strong: rgba(22, 30, 52, 0.9);
  --rim: linear-gradient(135deg, #ffe2a0, #f0b26c 55%, #efa06f);
  --mist: radial-gradient(120% 80% at 15% 0%, rgba(240, 178, 108, 0.16) 0%, transparent 60%),
    radial-gradient(90% 70% at 100% 20%, rgba(80, 104, 170, 0.28) 0%, transparent 65%),
    radial-gradient(110% 90% at 50% 110%, rgba(240, 178, 108, 0.12) 0%, transparent 60%);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  --shadow-toy: 0 2px 0 rgba(255, 255, 255, 0.18) inset, 0 -3px 0 rgba(0, 0, 0, 0.25) inset,
    0 18px 40px -16px rgba(0, 0, 0, 0.8);
  --badge-bg: #f6efe3;
  --badge-ink: #111;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cosmos);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* ---------- Type ---------- */

.display,
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.25;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--illuminated);
}

/* The short gold rule under every headline, from the App Store screenshots. */
.rule {
  display: block;
  width: 56px;
  height: 3px;
  border: 0;
  border-radius: 3px;
  margin: 22px 0;
  background: var(--rim);
}

.center {
  text-align: center;
}

.center .rule {
  margin-left: auto;
  margin-right: auto;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.6em;
  margin-right: -0.6em;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--page) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-soft);
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  margin-left: 4px;
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }

  .nav__cta {
    margin-left: auto;
  }
}

/* ---------- Buttons & App Store badge ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  text-decoration: none;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge:hover {
  transform: translateY(-2px);
}

.badge svg {
  width: 24px;
  height: 28px;
  flex: none;
}

.badge small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 3px;
  opacity: 0.85;
}

.badge strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.badge--sm {
  padding: 8px 14px 8px 12px;
  border-radius: 11px;
  gap: 8px;
}

.badge--sm svg {
  width: 16px;
  height: 19px;
}

.badge--sm small {
  font-size: 0.5625rem;
  margin-bottom: 2px;
}

.badge--sm strong {
  font-size: 0.9375rem;
}

/* Gilded pill — the "Hold to create" button material. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: #2b251f;
  background: linear-gradient(180deg, #f6c88a, #e9a964);
  box-shadow: var(--shadow-toy);
  transition: transform 0.2s ease;
}

.pill:hover {
  transform: translateY(-2px);
}

.text-link {
  font-weight: 600;
  color: var(--illuminated);
  text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--illuminated) 35%, transparent);
}

.text-link:hover {
  border-bottom-color: var(--illuminated);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 128px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--mist);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--illuminated);
}

.hero .lede {
  max-width: 30ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 36px;
}

.hero__note {
  font-size: 0.875rem;
  color: var(--muted);
}

.hero__art {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}

/* A tall rounded window onto the Toybox ark, like a toy porthole. */
.porthole {
  position: relative;
  aspect-ratio: 4 / 5.4;
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  padding: 6px;
  background: var(--rim);
  box-shadow: var(--shadow-toy);
}

.porthole img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 38%;
  border-radius: 214px 214px calc(var(--radius-lg) - 6px) calc(var(--radius-lg) - 6px);
}

.porthole__verse {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(20, 26, 44, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff9f0;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.45;
}

.porthole__verse cite {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.peek {
  position: absolute;
  z-index: 2;
  filter: drop-shadow(0 10px 14px rgba(90, 55, 20, 0.28));
}

.peek--giraffes {
  width: 31%;
  top: -13%;
  right: -4%;
  transform: rotate(6deg);
}

.peek--dove {
  width: 18%;
  top: 22%;
  left: -9%;
  animation: float 6s ease-in-out infinite;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__copy {
    text-align: center;
  }

  .hero__copy .rule {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .lede {
    margin: 0 auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__art {
    width: min(86%, 380px);
    margin-top: 28px;
  }
}

/* ---------- Toy app cubes ---------- */

.cubes {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(10px, 2.4vw, 22px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.cube {
  --c1: #ff7aa8;
  --c2: #e94b86;
  position: relative;
  width: clamp(46px, 7vw, 64px);
  aspect-ratio: 1;
  border-radius: 30%;
  background: radial-gradient(120% 90% at 30% 20%, var(--c1), var(--c2));
  box-shadow: 0 3px 0 rgba(255, 255, 255, 0.45) inset, 0 -5px 0 rgba(0, 0, 0, 0.14) inset,
    0 14px 22px -10px rgba(60, 30, 10, 0.5);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  animation: bob 2.8s ease-in-out infinite;
}

/* Stubby legs. */
.cube::before,
.cube::after {
  content: "";
  position: absolute;
  bottom: -11px;
  width: 22%;
  height: 14px;
  border-radius: 0 0 8px 8px;
  background: var(--c2);
  filter: brightness(0.82);
}

.cube::before {
  left: 24%;
}

.cube::after {
  right: 24%;
}

.cube svg {
  width: 46%;
  height: 46%;
  fill: #fff;
  opacity: 0.95;
}

.cube:nth-child(2) { --c1: #ff6b5e; --c2: #dc3b33; animation-delay: -0.4s; }
.cube:nth-child(3) { --c1: #6aa8ff; --c2: #3b73e0; animation-delay: -0.9s; }
.cube:nth-child(4) { --c1: #ffd75e; --c2: #f0ae1f; animation-delay: -1.3s; }
.cube:nth-child(5) { --c1: #6fe08a; --c2: #2fb257; animation-delay: -1.8s; }
.cube:nth-child(6) { --c1: #b98bff; --c2: #8150e6; animation-delay: -2.2s; }

.cube.is-resting {
  animation: none;
  filter: saturate(0.25) brightness(1.05);
  opacity: 0.55;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
  overflow-x: clip;
}

.section--tint {
  background: var(--content);
}

.section__head {
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 72px);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

/* Gilded rim — the emphasis card material from the app. */
.card--gilded {
  border: 0;
}

.card--gilded::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.step {
  padding: 30px 28px 32px;
  counter-increment: step;
}

.step__art {
  height: 92px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 22px;
}

.step__art img {
  height: 84px;
  width: auto;
  filter: drop-shadow(0 10px 12px rgba(90, 55, 20, 0.25));
}

.step__art .cubes {
  justify-content: flex-start;
  gap: 8px;
}

.step__art .cube {
  width: 40px;
}

.step__art .cube::before,
.step__art .cube::after {
  height: 9px;
  bottom: -7px;
}

.step__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--illuminated);
}

.step__num::before {
  content: "Step " counter(step);
}

.step h3 {
  margin: 8px 0 10px;
}

.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
}

.timer {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f6c88a, #e9a964);
  color: #2b251f;
  box-shadow: var(--shadow-toy);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.timer span {
  font-size: 0.875rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* Features */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.feature + .feature {
  margin-top: clamp(96px, 12vw, 160px);
}

.feature--flip .feature__copy {
  order: 2;
}

.feature__glyph {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 10px rgba(90, 55, 20, 0.25));
}

.feature__copy .lede {
  max-width: 34ch;
}

.feature__list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
  color: var(--ink-2);
  font-size: 1rem;
}

.feature__list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.feature__list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rim);
  transform: translateY(-2px);
}

.feature__more {
  margin: 24px 0 0;
}

.feature__visual {
  position: relative;
  display: flex;
  justify-content: center;
  isolation: isolate;
}

.feature__visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cosmos) 45%, transparent), transparent);
  filter: blur(30px);
  opacity: 0.8;
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .feature--flip .feature__copy {
    order: 0;
  }

  .feature__glyph,
  .feature .rule {
    margin-left: auto;
    margin-right: auto;
  }

  .feature__copy .lede {
    margin: 0 auto;
  }

  .feature__list {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .duo {
    width: min(92%, 380px);
    height: auto;
    aspect-ratio: 1 / 1.22;
  }
}

/* Phone frame */

.phone {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1170 / 2392;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(145deg, #3a332c, #14110e);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.08) inset, 0 40px 70px -30px rgba(40, 25, 10, 0.6),
    0 10px 24px -12px rgba(40, 25, 10, 0.4);
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 39px;
  background: #15120f;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone__screen::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 50%;
  width: 30%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.phone--light .phone__screen {
  background: #f3efe6;
}

.phone--tilt-l {
  transform: rotate(-3deg);
}

.phone--tilt-r {
  transform: rotate(3deg);
}

/* Paired phones for the art section */
.duo {
  position: relative;
  width: min(100%, 470px);
  height: clamp(460px, 62vw, 620px);
}

.duo .phone {
  position: absolute;
  width: 62%;
}

.duo .duo__back {
  left: 0;
  top: 0;
  transform: rotate(-5deg);
}

.duo .duo__front {
  right: 0;
  bottom: 0;
  transform: rotate(4deg);
}

/* Floating callouts that sit over a phone */
.callout {
  position: absolute;
  z-index: 3;
  max-width: 240px;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 0.875rem;
  line-height: 1.45;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  text-align: left;
}

.callout b {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--illuminated);
  margin-bottom: 4px;
}

.callout--song {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: #2a231d;
  color: #f6efe3;
  font-weight: 600;
}

.callout--song img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.wave {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  height: 20px;
}

.wave i {
  width: 3px;
  border-radius: 3px;
  background: var(--cosmos);
  animation: wave 1.1s ease-in-out infinite;
}

.wave i:nth-child(1) { height: 40%; animation-delay: -0.1s; }
.wave i:nth-child(2) { height: 90%; animation-delay: -0.5s; }
.wave i:nth-child(3) { height: 60%; animation-delay: -0.3s; }
.wave i:nth-child(4) { height: 100%; animation-delay: -0.7s; }
.wave i:nth-child(5) { height: 50%; animation-delay: -0.2s; }
.wave i:nth-child(6) { height: 75%; animation-delay: -0.6s; }

/* Home Screen widget mock (Keep Scripture in sight) */
.widget {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 36px;
  overflow: hidden;
  padding: 5px;
  background: var(--rim);
  box-shadow: var(--shadow-toy);
}

.widget__inner {
  position: relative;
  height: 100%;
  border-radius: 31px;
  overflow: hidden;
  color: #fff9f0;
}

.widget__inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 70%;
}

.widget__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 20, 15, 0.55), transparent 48%, transparent 75%, rgba(25, 20, 15, 0.45));
}

.widget__text {
  text-align: left;
  position: absolute;
  z-index: 1;
  inset: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.widget__label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.85;
}

.widget__verse {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2.3vw, 1.375rem);
  line-height: 1.32;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.widget__ref {
  font-family: var(--serif);
  font-size: 0.9375rem;
}

/* ---------- Interlude band ---------- */

.interlude {
  position: relative;
  overflow: hidden;
}

.interlude img {
  width: 100%;
  height: clamp(280px, 46vw, 620px);
  object-fit: cover;
  object-position: center 42%;
}

.interlude::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(38, 30, 52, 0.62));
  pointer-events: none;
}

.interlude__quote {
  position: absolute;
  z-index: 1;
  inset: auto 0 clamp(24px, 6vw, 72px);
  text-align: center;
  padding: 0 var(--gutter);
  color: #fff9f0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.35;
  text-shadow: 0 2px 24px rgba(40, 30, 60, 0.55);
}

.interlude__quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- Screenshot strip ---------- */

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 24vw, 270px);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 28px;
  margin: 0;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--bronze) 50%, transparent) transparent;
}

.strip li {
  scroll-snap-align: start;
}

.strip img {
  width: 100%;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1179 / 2556;
  object-fit: cover;
}

/* ---------- Plans ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}

.plan {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.plan__name {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
}

.plan__tag {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.96875rem;
  color: var(--ink-2);
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.plan li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--illuminated);
  border-bottom: 2px solid var(--illuminated);
  transform: rotate(-45deg) translateY(-3px);
}

.plan--feature {
  background: linear-gradient(180deg, color-mix(in srgb, var(--cosmos) 16%, var(--glass-strong)), var(--glass-strong));
}

.plans__note {
  margin: 28px auto 0;
  max-width: 640px;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ---------- FAQ ---------- */

/* ---------- Guides ---------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.guide-card {
  display: block;
  padding: clamp(24px, 4vw, 38px);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.guide-card h3 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.guide-card p {
  margin: 0 0 20px;
  color: var(--ink-2);
}

.guide-download {
  flex: none;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.guide-page {
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 100px);
}

.guide-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 310px);
  align-items: start;
  gap: clamp(28px, 6vw, 88px);
}

.guide-article {
  max-width: 760px;
}

.guide-article h1,
.guide-article h2,
.guide-more h2 {
  font-family: var(--serif);
  line-height: 1.13;
}

.guide-article h1 {
  margin: 12px 0 22px;
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  letter-spacing: -0.035em;
}

.guide-article h2 {
  margin: 48px 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.guide-article p,
.guide-article li {
  color: var(--ink-2);
}

.guide-article .lede {
  color: var(--ink);
}

.guide-article ol {
  padding-left: 24px;
}

.guide-article li {
  margin-bottom: 16px;
  padding-left: 4px;
}

.guide-article li strong {
  color: var(--ink);
}

.guide-answer {
  margin: 32px 0;
  padding: 25px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--illuminated);
  border-radius: var(--radius-sm);
  background: var(--content);
}

.guide-answer strong {
  color: var(--illuminated);
}

.guide-answer p {
  margin: 8px 0 0;
}

.guide-aside {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--content);
  box-shadow: var(--shadow-soft);
}

.guide-aside img {
  width: 100%;
}

.guide-aside__copy {
  padding: 22px 24px 26px;
}

.guide-aside__copy strong {
  font-family: var(--serif);
  font-size: 1.3rem;
}

.guide-aside__copy p {
  margin: 7px 0 12px;
  color: var(--ink-2);
  font-size: 0.93rem;
}

.guide-aside__copy a {
  color: var(--illuminated);
  font-weight: 700;
}

.guide-faq {
  margin: 24px 0 0;
}

.guide-more {
  margin-top: 64px;
}

.guide-more .guide-card {
  max-width: 640px;
}

@media (max-width: 760px) {
  .guide-grid,
  .guide-page__grid {
    grid-template-columns: 1fr;
  }

  .guide-aside {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 120px) 1fr;
    align-items: center;
  }

  .guide-download {
    font-size: 0.75rem;
    padding: 8px 10px;
  }
}

.faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: 18px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.faq details[open] {
  box-shadow: var(--shadow-soft);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--illuminated);
  border-bottom: 2px solid var(--illuminated);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.faq details > div {
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 1rem;
}

.faq details > div p {
  margin: 0 0 10px;
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* ---------- Final CTA (Starlight) ---------- */

.finale {
  padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 120px);
}

.finale__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 80px);
  color: #f6efe3;
  text-align: center;
  background: #0c1222;
  box-shadow: var(--shadow-soft);
}

.finale__card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.finale__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.6), rgba(10, 16, 32, 0.15) 50%, rgba(10, 16, 32, 0.7));
}

.finale__card .lede {
  color: rgba(246, 239, 227, 0.82);
  max-width: 34ch;
  margin: 0 auto;
}

.finale__card .badge {
  margin-top: 34px;
  background: #f6efe3;
  color: #111;
}

.finale__card .wordmark {
  display: inline-block;
  margin-bottom: 22px;
  color: rgba(246, 239, 227, 0.9);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  text-decoration: none;
  color: var(--ink-2);
}

.footer a:hover {
  color: var(--ink);
}

.footer__fine {
  width: 100%;
  margin: 0;
  font-size: 0.8125rem;
}

/* ---------- Legal pages ---------- */

.legal-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 56px);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--mist);
}

.legal-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.legal-hero .meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.legal {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(72px, 10vw, 120px);
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 0.875rem;
}

.toc p {
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--illuminated);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  border-left: 2px solid var(--line);
}

.toc a {
  display: block;
  padding: 2px 0 2px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: var(--ink-2);
  line-height: 1.4;
}

.toc a:hover,
.toc a[aria-current="true"] {
  color: var(--ink);
  border-left-color: var(--bronze);
}

.prose {
  max-width: 70ch;
  font-size: 1.0625rem;
  color: var(--ink-2);
}

.prose > p:first-child {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
  margin-top: 0;
}

.prose section {
  padding-top: 12px;
}

.prose section + section {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  color: var(--ink);
  margin-bottom: 16px;
}

.prose h3 {
  font-size: 1.1875rem;
  color: var(--ink);
  margin: 28px 0 10px;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--bronze);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--illuminated);
  text-underline-offset: 3px;
}

.prose .caps {
  text-transform: uppercase;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-size: 0.96875rem;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

.prose th {
  color: var(--ink);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.summary-card {
  padding: 24px 26px;
  margin: 0 0 40px;
}

.summary-card h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.summary-card ul {
  margin: 0;
}

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

  .toc {
    position: static;
  }

  .toc ol {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* ---------- Simple centered pages (verse, 404) ---------- */

.solo {
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  padding: 48px 0 72px;
  text-align: center;
}

.solo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--mist);
}

.solo__art {
  width: 150px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 14px 18px rgba(90, 55, 20, 0.28));
  animation: float 6s ease-in-out infinite;
}

.solo h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}

.solo .lede {
  max-width: 34ch;
  margin: 0 auto;
}

.solo__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.verse-ref {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--glass-strong);
  box-shadow: var(--shadow-soft);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--illuminated);
}

/* ---------- Song share pages ---------- */

.song-excerpt {
  max-width: 38ch;
  margin: 0 auto 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}

.song-excerpt p {
  margin: 0 0 10px;
}

.song-excerpt cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--muted);
}

.song-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 360px);
  margin: 0 auto 28px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--glass-strong);
  box-shadow: var(--shadow-soft);
}

.song-preview[hidden] {
  display: none;
}

.song-preview__play {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #2b251f;
  background: linear-gradient(180deg, #f6c88a, #e9a964);
  box-shadow: var(--shadow-toy);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.song-preview__play:hover {
  transform: scale(1.05);
}

.song-preview__play:focus-visible {
  outline: 3px solid var(--illuminated);
  outline-offset: 3px;
}

.song-preview__icon {
  width: 22px;
  height: 22px;
}

.song-preview__icon--pause,
.song-preview.is-playing .song-preview__icon--play {
  display: none;
}

.song-preview.is-playing .song-preview__icon--pause {
  display: block;
}

.song-preview__track {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
}

.song-preview__track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--rim);
  transition: width 0.25s linear;
}

.song-preview__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}





.song-embed {
  display: block;
  width: min(100%, 440px);
  height: 152px;
  margin: 0 auto 12px;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.song-listen {
  margin: 0 0 28px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.song-get {
  margin-top: 28px;
}

.song-get__panel[hidden] {
  display: none;
}

.song-get__button img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.song-get__button strong {
  font-size: 1.125rem;
}

.song-get__caption {
  max-width: 36ch;
  margin: 14px auto 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

.song-get .qr {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-soft);
}













/* Songs page: album header, the selected song, and the track list. */

.songs-page {
  position: relative;
  isolation: isolate;
  padding: clamp(32px, 6vw, 72px) 0 96px;
}

.songs-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--mist);
}

.album {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.album__cover {
  width: clamp(150px, 20vw, 220px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-toy);
}

.album__glyph {
  width: clamp(110px, 14vw, 150px);
  filter: drop-shadow(0 14px 18px rgba(90, 55, 20, 0.28));
  animation: float 6s ease-in-out infinite;
}

.album h1 {
  margin: 10px 0 0;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.album .rule {
  margin: 18px 0;
}

.album .lede {
  max-width: 44ch;
}

.album .song-listen {
  margin: 16px 0 0;
}

.songs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.song-panel {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.song-panel[hidden] {
  display: none;
}

.song-panel .verse-ref {
  margin-bottom: 14px;
}

.song-panel__title {
  margin: 0 0 22px;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}

.song-panel__title:focus {
  outline: none;
}

.song-panel__pitch {
  max-width: 34ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.song-panel__pitch.is-highlighted {
  color: var(--illuminated);
}

.songs-layout__tracks {
  position: sticky;
  top: 88px;
}

.tracklist__heading {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tracklist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.track:hover {
  background: var(--glass);
}

.track:focus-visible {
  outline: 3px solid var(--illuminated);
  outline-offset: 2px;
}

.track[aria-current="true"] {
  background: var(--glass-strong);
  box-shadow: var(--shadow-soft);
}

.track__number {
  flex: none;
  width: 1.5em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--muted);
}

.track[aria-current="true"] .track__number {
  color: var(--illuminated);
}

.track__cover {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.track__text {
  flex: 1;
  min-width: 0;
}

.track__text strong {
  display: block;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track__text small {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}

.track .wave {
  flex: none;
  visibility: hidden;
}

.track[aria-current="true"] .wave {
  visibility: visible;
}

.songs-empty {
  display: flex;
  justify-content: center;
}

@media (max-width: 860px) {
  .album {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .album .rule,
  .album .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .songs-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .songs-layout__tracks {
    position: static;
  }
}

/* ---------- Motion ---------- */

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

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

@keyframes wave {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
