/* ==========================================================================
   Scripture Time website
   One stylesheet for index.html, privacy.html, terms.html, eula.html and
   redirect.html. Colors and type come from the app's Angelic Aura and
   Cosmic Creation themes (src/theme in the app repo).
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Merriweather Display"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/merriweather-display-300.woff2") format("woff2"); }
@font-face { font-family: "Merriweather Display"; font-style: italic; font-weight: 300; font-display: swap; src: url("assets/fonts/merriweather-display-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/merriweather-400.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/merriweather-700.woff2") format("woff2"); }
@font-face { font-family: "Merriweather Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("assets/fonts/merriweather-sans.woff2") format("woff2"); }
@font-face { font-family: "Tangerine"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/tangerine-700.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Angelic Aura */
  --aura-1: #100811;
  --aura-2: #210635;
  --aura-3: #420d4b;
  --aura-4: #622965;
  --aura-5: #7b337e;
  --aura-6: #c478b9;
  --aura-7: #6667ab;
  --aura-8: #f5d5e0;
  /* Cosmic Creation */
  --cosmic-1: #0c152f;
  --cosmic-2: #142146;
  --cosmic-3: #1e346f;
  --cosmic-7: #8fb4dd;
  --cosmic-8: #cde8fc;
  /* Shared */
  --gold: #d4a860;
  --gold-bright: #f8d566;
  --gold-soft: #ecd092;
  --bronze: #7a5410;
  --parchment: #fdf8ef;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #5a4e46;
  --rule: #e8dfcf;
  --flame-red: #ba122c;
  --flame-orange: #f7b557;
  --progress: #e86e53;
  --progress-ink: #b4432a;
  --hl-yellow: #ffff9e;
  --hl-green: #b3f5be;
  --hl-blue: #bde0fe;
  --hl-pink: #ffc5d3;
  --dawn-edge: #f8e0ae;
  --dusk-ground: #2a0f45;

  --on-dark: #f6edf1;
  --on-dark-soft: rgba(246, 237, 241, 0.76);

  --font-display: "Merriweather Display", "Merriweather", Georgia, "Times New Roman", serif;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-sans: "Merriweather Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-script: "Tangerine", "Snell Roundhand", "Apple Chancery", cursive;

  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --wrap: 1180px;
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --focus: var(--gold-bright);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--aura-1);
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--aura-2); }

main, .site-footer { overflow-x: hidden; overflow-x: clip; }
main > * + * { margin-top: -1px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.center { text-align: center; margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: 0.7rem 1.1rem; border-radius: 999px; background: var(--gold); color: var(--aura-2); font-weight: 700; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 1rem; }

.dark { color: var(--on-dark); --focus: var(--gold-bright); }
.paper { background: var(--parchment); color: var(--ink); --focus: var(--aura-3); }

/* ---------- Type ---------- */
.eyebrow {
  display: block;
  font: 600 0.8125rem/1.4 var(--font-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.paper .eyebrow { color: var(--bronze); }
h1, h2 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.25rem + 3.1vw, 3.5rem); line-height: 1.12; }
h1 em, h2 em { font-style: italic; color: var(--gold-soft); }
.paper h2 { color: var(--aura-3); }
.paper h2 em { color: var(--aura-5); }
h3 { font: 700 1.1875rem/1.35 var(--font-serif); }
.paper h3 { color: var(--aura-3); }
.chapter h3, .badges-head h3 { font: 300 clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem)/1.22 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
.duo h3 + p, .topics-head h3 + p { margin-top: 1rem; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.6; color: var(--on-dark-soft); }
.paper .lead, .paper p { color: var(--ink-soft); }
.paper p strong { color: var(--ink); }

.verse { margin-inline: auto; }
.verse blockquote {
  font: italic 300 clamp(1.375rem, 1.05rem + 1.4vw, 2rem)/1.42 var(--font-display);
  color: var(--aura-8);
  text-wrap: balance;
}
.paper .verse blockquote { color: var(--aura-4); }
.verse figcaption { margin-top: 0.9rem; font: 600 0.8125rem/1.4 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.paper .verse figcaption { color: var(--bronze); }

/* ---------- Buttons and store badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 999px;
  font: 700 0.9375rem/1 var(--font-sans); text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--aura-2); box-shadow: 0 8px 24px -10px rgba(212, 168, 96, 0.8); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(248, 213, 102, 0.9); }
.btn-small { padding: 0.62rem 1.1rem; font-size: 0.875rem; }

.stores { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.store { display: inline-block; border-radius: 10px; transition: transform 0.25s var(--ease), filter 0.25s; }
.store img { height: clamp(48px, 4.6vw, 58px); width: auto; }
.store:hover { transform: translateY(-3px); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.8rem var(--gutter);
  transition: background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.site-header.is-stuck { background: rgba(22, 8, 30, 0.78); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgba(212, 168, 96, 0.22); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font: 700 1.1875rem/1 var(--font-serif); color: var(--gold); }
.brand img { width: 40px; height: 40px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(212, 168, 96, 0.45), 0 6px 14px -6px #000; }
.site-nav { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
.site-nav a { font: 500 0.9375rem/1 var(--font-sans); color: var(--on-dark-soft); text-decoration: none; padding: 0.5rem 0; position: relative; transition: color 0.2s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.site-nav a:hover { color: var(--on-dark); }
.site-nav a:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .site-nav { display: none; } }

/* ---------- Hero: first light ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 46rem);
  display: grid; align-items: center;
  padding: 7rem 0 clamp(10rem, 25vh, 15rem);
  background: linear-gradient(180deg, #0d0612 0%, #1b0730 26%, #36104a 52%, #5b2168 74%, #7b337e 100%);
  --sun-x: 71%;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 8rem; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(248, 224, 174, 0), var(--dawn-edge) 92%); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.horizon {
  position: absolute; inset: auto 0 0 0; height: clamp(9rem, 22vh, 15rem); z-index: -2;
  background: linear-gradient(180deg, rgba(196, 120, 185, 0) 0%, rgba(196, 120, 185, 0.55) 38%, #e9a27c 68%, #f6cf8a 88%, var(--dawn-edge) 100%);
}
.sun {
  position: absolute; left: var(--sun-x); bottom: 0; z-index: -2;
  width: clamp(17rem, 38vw, 34rem); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fffaf0 0 15%, #fdeeb7 30%, rgba(248, 213, 102, 0.6) 46%, rgba(247, 181, 87, 0.2) 62%, rgba(247, 181, 87, 0) 71%);
  transform: translate(-50%, calc(52% - var(--lift, 0px)));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero h1 { display: grid; gap: 1.35rem; }
.hero .display { font-size: clamp(2.5rem, 1.1rem + 4.3vw, 4.6rem); line-height: 1.07; }
.hero .display em { display: block; }
.hero .lead { margin-top: 1.6rem; max-width: 34rem; }
.hero .stores { margin-top: 2.1rem; }
.assure { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-top: 1.5rem; font-size: 0.9375rem; color: var(--on-dark); }
.assure li { display: inline-flex; align-items: center; gap: 0.55rem; }
.assure li::before { content: ""; width: 0.42rem; height: 0.78rem; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }

.hero-device { position: relative; display: grid; justify-items: center; gap: 1.2rem; }
.halo { position: absolute; top: 46%; left: 50%; width: min(135%, 34rem); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.halo::before, .halo::after { content: ""; position: absolute; border-radius: 50%; }
.halo::before { inset: 0; border: 1px dashed rgba(236, 208, 146, 0.42); animation: spin 70s linear infinite; }
.halo::after { inset: 9%; border: 1px solid rgba(236, 208, 146, 0.2); box-shadow: 0 0 90px 10px rgba(248, 213, 102, 0.1) inset; }

.phone {
  position: relative; width: clamp(13rem, min(23vw, 37svh), 19rem); padding: 10px; border-radius: 46px;
  background: linear-gradient(150deg, #33203f, #0b0610 42%, #1c0f25);
  box-shadow: 0 0 0 1px rgba(212, 168, 96, 0.42), 0 44px 70px -26px rgba(0, 0, 0, 0.8), 0 0 110px -18px rgba(248, 213, 102, 0.34);
  animation: float 8s ease-in-out infinite;
}
.phone-screen { position: relative; aspect-ratio: 1 / 2; border-radius: 37px; overflow: hidden; background: var(--aura-2); }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.phone-screen img.is-active { opacity: 1; }
.phone-meta { position: relative; display: grid; justify-items: center; gap: 0.6rem; padding: 0.55rem 1.1rem 0.65rem; border-radius: 999px; background: rgba(22, 8, 30, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.phone-caption { font: 500 0.875rem/1.3 var(--font-sans); color: var(--on-dark); min-width: 13.5rem; text-align: center; }
.phone-caption b { color: var(--gold-soft); font-weight: 700; }
.phone-dots { display: flex; gap: 0.15rem; }
.phone-dots button { width: 1.5rem; height: 1.5rem; display: grid; place-items: center; }
.phone-dots button::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgba(246, 237, 241, 0.34); transition: background-color 0.3s, transform 0.3s; }
.phone-dots button[aria-pressed="true"]::before { background: var(--gold-bright); transform: scale(1.35); }

@media (max-width: 900px) {
  .hero { padding-top: 6.25rem; --sun-x: 50%; }
  .phone { width: clamp(14.5rem, 40vw, 19rem); }
  .hero-grid { grid-template-columns: 1fr; gap: 3.25rem; }
  .hero .display em { display: inline; }
}

/* ---------- Day intro: the arc ---------- */
.day-intro { padding: clamp(4rem, 9vw, 7rem) 0 clamp(1rem, 3vw, 2rem); background: linear-gradient(180deg, var(--dawn-edge) 0, #fcefd3 5.5rem, var(--parchment) 19rem); }
.day-intro h2 { margin-top: 1rem; }
.day-intro .verse { margin-top: 2rem; max-width: 40rem; }
.arc { position: relative; width: min(100% - 2 * var(--gutter), 60rem); margin: clamp(2rem, 5vw, 3.5rem) auto 0; }
.arc svg { width: 100%; height: auto; overflow: visible; }
.arc-line { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 2 9; stroke-linecap: round; opacity: 0.9; }
.arc-ground { stroke: var(--rule); stroke-width: 1.5; }
.arc-sun { fill: var(--gold-bright); filter: drop-shadow(0 0 10px rgba(247, 181, 87, 0.95)); }
.arc-glow { fill: rgba(248, 213, 102, 0.28); }
.arc-body.is-moon .arc-sun { fill: #dfe9fb; filter: drop-shadow(0 0 10px rgba(102, 103, 171, 0.9)); }
.arc-body.is-moon .arc-glow { fill: rgba(102, 103, 171, 0.22); }
.arc-stops { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 0.4rem; border-top: 1px solid var(--rule); }
.arc-stops a { display: grid; justify-items: center; gap: 0.5rem; padding: 1.1rem 0.25rem 0.4rem; text-decoration: none; font: 600 0.8125rem/1.3 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); transition: color 0.3s; }
.arc-stops a small { font: 400 0.875rem/1.35 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink-soft); opacity: 0.85; }
.arc-stops a:hover, .arc-stops li.is-now a { color: var(--aura-3); }
.arc-stops li { position: relative; }
.arc-stops li::before { content: ""; position: absolute; top: -1px; left: 50%; width: 0; height: 2px; background: var(--gold); transform: translateX(-50%); transition: width 0.5s var(--ease); }
.arc-stops li.is-now::before { width: 68%; }
@media (max-width: 560px) { .arc-stops a small { display: none; } .arc-stops a { letter-spacing: 0.08em; font-size: 0.75rem; } }

/* ---------- Chapter scaffolding ---------- */
.chapter { position: relative; padding: var(--section-y) 0; }
.chapter-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; column-gap: clamp(1rem, 2.4vw, 2rem); row-gap: 3rem; }
.chapter-copy { grid-column: 1 / span 5; }
.chapter-visual { grid-column: 7 / span 6; }
.flip .chapter-copy { grid-column: 8 / span 5; grid-row: 1; }
.flip .chapter-visual { grid-column: 1 / span 6; grid-row: 1; }
@media (max-width: 900px) {
  .chapter-copy, .chapter-visual, .flip .chapter-copy, .flip .chapter-visual { grid-column: 1 / -1; grid-row: auto; }
}
.when { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; font: 600 0.8125rem/1 var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.paper .when { color: var(--bronze); }
.chapter-copy > p:not(.when) { margin-top: 1.25rem; max-width: 33rem; }
.chapter-copy .verse { margin-top: 1.9rem; margin-inline: 0; }
.chapter-copy .verse blockquote { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); }

/* celestial glyphs, drawn in CSS */
.glyph { position: relative; flex: none; width: 1.5rem; height: 1.5rem; }
.glyph::before, .glyph::after { content: ""; position: absolute; }
.g-dawn::before, .g-dusk::before { left: 50%; bottom: 0.4rem; width: 0.95rem; height: 0.48rem; transform: translateX(-50%); border-radius: 0.95rem 0.95rem 0 0; background: currentColor; }
.g-dawn::after, .g-dusk::after { left: 0; right: 0; bottom: 0.28rem; height: 1.5px; background: currentColor; opacity: 0.8; }
.g-dusk::before { opacity: 0.75; }
.g-noon::before { inset: 0.35rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0.2rem color-mix(in srgb, currentColor 26%, transparent); }
.g-night::before { inset: 0.22rem; border-radius: 50%; box-shadow: inset -0.34rem 0.08rem 0 0 currentColor; transform: rotate(-18deg); }

.ticks { display: grid; gap: 0.85rem; margin-top: 1.7rem; max-width: 33rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: 0.28rem; top: 0.42em; width: 0.4rem; height: 0.72rem; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.paper .ticks li { color: var(--ink-soft); }
.paper .ticks li::before { border-color: var(--aura-5); }
.ticks strong { font-weight: 700; }
.paper .ticks strong { color: var(--ink); }

/* ---------- Morning: the devotional ---------- */
.devo {
  position: relative; max-width: 31rem; margin-inline: auto; padding: clamp(1.4rem, 3vw, 2.1rem);
  border-radius: 28px; background: var(--paper);
  box-shadow: 0 1px 0 #fff inset, 0 0 0 1px var(--rule), 0 40px 70px -40px rgba(66, 13, 75, 0.5), 0 18px 30px -22px rgba(66, 13, 75, 0.35);
}
.devo::before { content: ""; position: absolute; inset: -14% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(248, 213, 102, 0.42), rgba(248, 213, 102, 0)); }
.devo-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font: 600 0.8125rem/1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.devo-progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.35rem; margin: 0.9rem 0 1.4rem; }
.devo-progress li { height: 4px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.devo-progress li::after { content: ""; display: block; height: 100%; width: 100%; background: var(--progress); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.devo-progress li.is-done::after { transform: scaleX(1); }
.devo-progress li.is-now::after { animation: fill var(--devo-ms, 6000ms) linear forwards; }
.devo-stage { display: grid; }
.devo-step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(14px); transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s 0.22s; }
.devo-step.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.55s var(--ease) 0.22s, transform 0.55s var(--ease) 0.22s, visibility 0s 0s; }
.devo-step .devo-label { margin-top: 0; font: 700 0.75rem/1 var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--progress-ink); }
.devo-step .devo-title { margin-top: 0.9rem; font: 700 1.1875rem/1.35 var(--font-serif); color: var(--aura-3); }
.devo-step p, .devo-step blockquote { margin-top: 0.9rem; font: 400 1.0625rem/1.75 var(--font-serif); color: var(--ink); }
.devo-step .ref { margin-top: 0.8rem; font: 600 0.875rem/1.4 var(--font-sans); color: var(--aura-5); }
.devo-step .devo-field { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 12px; border: 1px dashed #cdbfa6; font: 400 0.9375rem/1.4 var(--font-sans); color: #73675a; }
.devo-step .devo-reward { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem; padding: 0.42rem 0.85rem 0.42rem 0.5rem; border-radius: 999px; background: #f6ecd6; font: 700 0.875rem/1 var(--font-sans); color: var(--bronze); }
.devo-reward img { width: 1.5rem; height: 1.5rem; }
.devo-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.devo-nav button { font: 700 0.875rem/1 var(--font-sans); border-radius: 999px; padding: 0.7rem 1.15rem; transition: background-color 0.2s, color 0.2s, transform 0.2s; }
.devo-prev { color: var(--ink-soft); }
.devo-prev:hover { background: #f4ecdd; }
.devo-next { background: var(--aura-3); color: #fff; }
.devo-next:hover { background: var(--aura-5); transform: translateX(2px); }
.devo-note { margin-top: 1.1rem; text-align: center; font-size: 0.875rem; color: var(--ink-soft); }

/* topics marquee */
.topics { margin-top: clamp(4rem, 8vw, 6.5rem); }
.topics-head { max-width: 44rem; }
.topics-head p { margin-top: 1rem; }
.marquee { overflow: hidden; margin-top: 0.8rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.topics .marquee:first-of-type { margin-top: 2.2rem; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-s, 60s) linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; gap: 0.8rem; padding-right: 0.8rem; }
.chip { flex: none; padding: 0.7rem 1.25rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); font: 500 0.9375rem/1.2 var(--font-sans); color: var(--aura-3); white-space: nowrap; box-shadow: 0 6px 14px -12px rgba(66, 13, 75, 0.6); }

/* reminders and widgets */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: clamp(4rem, 8vw, 6.5rem); }
.duo figure { position: relative; }
.duo figure img { width: 100%; border-radius: 22px; box-shadow: 0 30px 50px -30px rgba(12, 21, 47, 0.75), 0 0 0 1px rgba(12, 21, 47, 0.08); }
.nudges { display: grid; gap: 0.6rem; margin-top: 1.6rem; }
.nudge { display: grid; grid-template-columns: 4.6rem 1fr; align-items: baseline; gap: 0.9rem; padding: 0.8rem 1.1rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--rule); font-size: 0.9375rem; color: var(--ink); }
.nudge b { font: 700 0.8125rem/1 var(--font-sans); letter-spacing: 0.08em; color: var(--aura-5); }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Midday: the Bible ---------- */
.reader { max-width: 30rem; margin-inline: auto; border-radius: 26px; background: var(--parchment); box-shadow: 0 0 0 1px var(--rule), 0 40px 70px -40px rgba(66, 13, 75, 0.5), 0 18px 30px -22px rgba(66, 13, 75, 0.35); overflow: hidden; }
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.4rem; border-bottom: 1px solid var(--rule); color: var(--aura-3); }
.reader-bar span { font: 600 0.875rem/1 var(--font-sans); letter-spacing: 0.04em; }
.reader-bar strong { font: 400 1.1875rem/1 var(--font-serif); }
.reader-verses { padding: 0.35rem 1.4rem 0.6rem; }
.reader-verses li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.5rem; padding: 0.82rem 0; font: 400 1rem/1.62 var(--font-serif); color: var(--ink); border-bottom: 1px solid #efe7d8; }
.reader-verses li:last-child { border-bottom: 0; }
.reader-verses .vn { font: 400 0.8125rem/2 var(--font-sans); color: rgba(29, 29, 31, 0.68); }
.reader-verses .hl { position: relative; margin: 0.3rem -0.7rem; padding: 0.7rem; border-radius: 10px; border-bottom: 0; isolation: isolate; }
.reader-verses .hl::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 10px; background: var(--hl, var(--hl-green)); transform-origin: left; transition: background-color 0.5s; }
.reader.is-sweeping .hl::before { animation: sweep 0.9s var(--ease); }
.reader-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1rem; padding: 0.9rem 1.4rem 1.1rem; border-top: 1px solid var(--rule); background: var(--paper); }
.swatches { display: flex; gap: 0.5rem; }
.swatches button { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.16); transition: transform 0.25s var(--ease), border-color 0.25s; }
.swatches button[aria-pressed="true"] { border-color: var(--aura-3); transform: scale(1.14); }
.reader-acts { display: flex; gap: 1.1rem; white-space: nowrap; font: 600 0.8125rem/1 var(--font-sans); color: var(--aura-5); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 5rem); margin-top: clamp(4rem, 8vw, 6.5rem); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.feature p { margin-top: 0.8rem; }
.feature-art { position: relative; margin-bottom: 1.8rem; }

/* chat window, cropped from the real screen */
.chatpane { position: relative; height: 25rem; border-radius: 24px; overflow: hidden; background: var(--parchment); box-shadow: 0 0 0 1px var(--rule), 0 34px 60px -40px rgba(66, 13, 75, 0.55); }
.chatpane img { width: 100%; height: auto; }
.chatpane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 9rem; background: linear-gradient(180deg, rgba(253, 248, 239, 0), var(--parchment) 52%); }
@media (max-width: 760px) { .chatpane::after { height: 13rem; background: linear-gradient(180deg, rgba(253, 248, 239, 0), var(--parchment) 34%); } }
.asks { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.asks li { padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--aura-5); color: #fff; font: 500 0.8125rem/1.2 var(--font-sans); box-shadow: 0 8px 16px -10px rgba(66, 13, 75, 0.9); }

/* bible scan */
.scan { position: relative; height: 25rem; border-radius: 24px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, #fff 0, #f6ecd9 70%); box-shadow: 0 0 0 1px var(--rule), 0 34px 60px -40px rgba(66, 13, 75, 0.55); }
.scan-target { position: relative; width: min(13.5rem, 58%); }
.scan-target img { width: 100%; }
.scan-beam { position: absolute; left: -12%; right: -12%; top: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--progress) 18%, var(--gold-bright) 50%, var(--progress) 82%, transparent); box-shadow: 0 0 18px 4px rgba(232, 110, 83, 0.45); animation: beam 3.6s ease-in-out infinite; }
.scan-chip { position: absolute; left: 50%; bottom: 1.3rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.95rem 0.5rem 0.55rem; border-radius: 999px; background: var(--aura-3); color: #fff; font: 700 0.8125rem/1 var(--font-sans); white-space: nowrap; transform: translateX(-50%); animation: chip 3.6s var(--ease) infinite; }
.scan-chip img { width: 1.35rem; height: 1.35rem; }

/* ---------- Sunset band ---------- */
.sunset { position: relative; height: clamp(19rem, 56vh, 33rem); overflow: hidden; background: linear-gradient(180deg, var(--parchment) 0%, #fcecce 22%, #f8cf9f 44%, #f0a68f 64%, #d98aa6 82%, #b06aae 100%); }
.sunset-sun { position: absolute; left: 50%; bottom: 14%; width: clamp(15rem, 32vw, 26rem); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #fffaf0 0 24%, #feecbb 38%, rgba(252, 214, 140, 0.62) 52%, rgba(247, 181, 87, 0.26) 68%, rgba(247, 181, 87, 0.08) 84%, rgba(247, 181, 87, 0) 100%); transform: translate(-50%, calc(var(--p, 0) * 62%)); }
.hills { position: absolute; inset: auto 0 -1px 0; width: 100%; height: 62%; }
.hills path { transform: translateY(calc((1 - var(--p, 0)) * var(--k, 0px))); }
.hill-far { fill: #8a4a8f; --k: 46px; }
.hill-mid { fill: #55206c; --k: 26px; }
.hill-near { fill: var(--dusk-ground); --k: 0px; }

/* ---------- Evening: stillness ---------- */
.evening { background: linear-gradient(180deg, var(--dusk-ground) 0%, #1d0b3a 100%); padding-top: clamp(2rem, 5vw, 4rem); }
.timer { position: relative; width: min(100%, 23rem); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.timer::before { content: ""; position: absolute; inset: -16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(196, 120, 185, 0.34), rgba(196, 120, 185, 0)); animation: breathe 9s ease-in-out infinite; }
.timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-track { fill: rgba(16, 8, 17, 0.35); stroke: rgba(246, 237, 241, 0.14); stroke-width: 3; }
.timer-arc { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--left, 0); transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 0 7px rgba(248, 213, 102, 0.6)); }
.timer-face { position: relative; display: grid; justify-items: center; gap: 0.45rem; text-align: center; }
.timer-label { font: 700 clamp(2.1rem, 4vw, 2.7rem)/1 var(--font-script); color: var(--gold-soft); }
.timer-clock { font: 300 clamp(3.2rem, 7vw, 4.5rem)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.timer-note { font-size: 0.875rem; color: var(--on-dark-soft); }

.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(4rem, 8vw, 6rem); }
@media (max-width: 720px) { .cards2 { grid-template-columns: 1fr; } }
.cards2 p { margin-top: 1.1rem; color: var(--on-dark-soft); max-width: 30rem; }
.cards2 h3 { margin-top: 1.4rem; color: var(--gold-soft); }

/* art cards, the same framing the app uses */
.artcard { position: relative; display: block; aspect-ratio: 7 / 3; border-radius: 16px; overflow: hidden; border: 1px solid rgba(212, 168, 96, 0.8); background: var(--cosmic-2); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.75); }
.artcard img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8) saturate(1.05); transition: transform 1.2s var(--ease), filter 0.6s; }
.artcard:hover img { transform: scale(1.05); filter: brightness(0.95) saturate(1.1); }
.artcard-title { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.2rem; padding: 0 0.6em; text-align: center; font: 700 clamp(2.1rem, 1.5rem + 1.6vw, 3rem)/0.92 var(--font-script); color: #e9c682; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.6); }
.artcard-title small { font: 600 0.75rem/1 var(--font-sans); letter-spacing: 0.34em; text-indent: 0.34em; color: #e9c682; }
.flame { position: absolute; left: var(--x); top: var(--y); width: 30%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 214, 130, 0.5), rgba(255, 190, 90, 0.14) 52%, rgba(255, 190, 90, 0)); mix-blend-mode: screen; animation: flicker 3.4s ease-in-out infinite; pointer-events: none; }

/* ---------- Night: rest ---------- */
.night { background: linear-gradient(180deg, #1d0b3a 0%, #121a40 22%, var(--cosmic-1) 62%, var(--cosmic-1) 100%); overflow: hidden; overflow: clip; isolation: isolate; }
.night .sky { position: sticky; inset: auto; top: 0; height: 100vh; height: 100lvh; margin: calc(-1 * var(--section-y)) 0 calc(var(--section-y) - 100vh); margin-bottom: calc(var(--section-y) - 100lvh); }
.night .when { color: var(--cosmic-7); }
.night h2 em { color: var(--cosmic-8); }
.night .lead { margin-top: 1.25rem; }
.night .verse { margin-top: 2.2rem; max-width: 40rem; }
.night .verse blockquote { color: var(--cosmic-8); }
.moon { position: absolute; top: clamp(3rem, 9vw, 7rem); right: clamp(1.5rem, 9vw, 9rem); width: clamp(4.5rem, 9vw, 7.5rem); aspect-ratio: 1; border-radius: 50%; box-shadow: inset -1.5rem 0.4rem 0 0 #f7ecc4; transform: rotate(-22deg) translateY(calc((1 - var(--p, 0.5)) * 60px)); filter: drop-shadow(0 0 22px rgba(247, 236, 196, 0.5)); z-index: -1; }
@media (max-width: 760px) { .moon { box-shadow: inset -0.95rem 0.25rem 0 0 #f7ecc4; opacity: 0.85; } }

.shelves { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; gap: 1.1rem; }
.shelf-label { margin: 0 0 -0.2rem; font: 600 0.8125rem/1 var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cosmic-7); text-align: center; }
.shelves .marquee { margin-top: 0; padding-block: 0.4rem 1.2rem; }
.shelves .marquee ul { gap: 1.1rem; padding-right: 1.1rem; }
.shelves .artcard { width: clamp(15rem, 26vw, 20rem); flex: none; }
.shelves .artcard-title { font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem); }

.player { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; width: min(100% - 2 * var(--gutter), 27rem); margin: clamp(1.6rem, 3vw, 2.4rem) auto 0; padding: 0.8rem 1.1rem 0.8rem 0.8rem; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 26px 46px -24px rgba(0, 0, 0, 0.85); }
.player-art { width: 3.6rem; height: 3.6rem; border-radius: 12px; object-fit: cover; }
.player strong { display: block; font: 700 1rem/1.3 var(--font-serif); }
.player span { display: block; font-size: 0.8125rem; line-height: 1.45; color: #5d5d63; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 1.9rem; }
.eq i { width: 4px; height: 100%; border-radius: 2px; background: var(--aura-5); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.35s; animation-duration: 0.9s; }
.eq i:nth-child(3) { animation-delay: -0.7s; animation-duration: 1.3s; }
.eq i:nth-child(4) { animation-delay: -0.2s; animation-duration: 1s; }
.eq i:nth-child(5) { animation-delay: -0.55s; animation-duration: 1.2s; }
.music > .fine { text-align: center; }
.fine { margin-top: 1.4rem; font-size: 0.875rem; line-height: 1.6; color: var(--on-dark-soft); }
.paper .fine { color: var(--ink-soft); }

.music { margin-top: clamp(4rem, 8vw, 6.5rem); }
.music-head { display: grid; gap: 0.9rem; max-width: 40rem; margin-inline: auto; text-align: center; }
.music-head p { color: var(--on-dark-soft); }
.music-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin-top: 2.2rem; }
.music-grid .artcard-title { font-size: clamp(1.7rem, 1.1rem + 1.5vw, 2.5rem); }
@media (max-width: 1040px) { .music-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .music-grid { gap: 0.7rem; } .music-grid .artcard-title { font-size: 1.5rem; } .music-grid .artcard-title small { font-size: 0.5625rem; letter-spacing: 0.26em; } .music-grid .artcard { border-radius: 12px; } }

/* ---------- Day by day: streaks, tokens, badges ---------- */
.growth { position: relative; padding: var(--section-y) 0 0; background: linear-gradient(180deg, var(--cosmic-1) 0%, #150a2c 16%, var(--aura-2) 46%, #36104a 100%); }
.growth-head { max-width: 44rem; }
.growth-head h2, .honest-head h2 { margin-top: 1rem; }
.growth-head .lead { margin-top: 1.25rem; }
.growth-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 900px) { .growth-grid { grid-template-columns: 1fr; } }

.week { padding: clamp(1.4rem, 3vw, 2rem); border-radius: 24px; background: rgba(66, 13, 75, 0.45); border: 1px solid rgba(206, 174, 118, 0.3); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 30px 50px -30px #000; }
.week ol { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(0.3rem, 1.2vw, 0.75rem); }
.week li { display: grid; justify-items: center; gap: 0.6rem; font: 700 0.8125rem/1 var(--font-sans); color: var(--on-dark); }
.day { position: relative; width: 100%; max-width: 3.6rem; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--parchment); transition: background-color 0.5s, box-shadow 0.5s, transform 0.5s var(--ease); }
.day img { width: 72%; height: 72%; object-fit: contain; opacity: 0.2; filter: grayscale(1); transition: opacity 0.5s, filter 0.5s; }
.day.is-lit { background: var(--gold-bright); box-shadow: 0 0 22px -2px rgba(248, 213, 102, 0.75); transform: scale(1.04); }
.day.is-lit img { opacity: 1; filter: none; }
.day.is-open { background: var(--gold-bright); box-shadow: 0 0 0 3px rgba(248, 213, 102, 0.3); }
.week-note { margin-top: 1.4rem; min-height: 3.1em; font-size: 0.9375rem; color: var(--on-dark-soft); }
.week-note b { color: var(--gold-soft); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.stat { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.9rem; padding: 1.05rem 1.1rem; border-radius: 18px; border: 1px solid rgba(206, 174, 118, 0.42); background: linear-gradient(135deg, var(--aura-1) 0%, var(--aura-2) 38%, var(--aura-3) 72%, #b98fb0 130%); box-shadow: 0 16px 26px -18px #000; }
.stat img { width: clamp(2.4rem, 4vw, 3rem); height: clamp(2.4rem, 4vw, 3rem); object-fit: contain; }
.stat p { display: grid; gap: 0.2rem; }
.stat span { font: 500 0.875rem/1.25 var(--font-sans); color: var(--on-dark); }
.stat b { font: 700 clamp(1.3rem, 1rem + 1vw, 1.7rem)/1.1 var(--font-serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.stat b sup { font-size: 0.55em; }
@media (max-width: 420px) { .stat { grid-template-columns: 1fr; justify-items: start; } }

.badges { margin-top: clamp(4rem, 8vw, 6rem); }
.badges-head { display: grid; gap: 0.9rem; max-width: 42rem; }
.badges-head p { color: var(--on-dark-soft); }
.badge-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(0.6rem, 1.6vw, 1.4rem); margin-top: 2.4rem; }
.badge-row li { display: grid; justify-items: center; align-content: start; gap: 0.7rem; text-align: center; }
.badge-row img { width: 100%; max-width: 5.2rem; aspect-ratio: 1 / 1.18; object-fit: contain; animation: shine 6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.42s); }
.badge-row b { font: 700 0.875rem/1.2 var(--font-serif); color: var(--gold-soft); }
.badge-row span { display: block; margin-top: 0.2rem; font: 400 0.75rem/1.3 var(--font-sans); color: var(--on-dark-soft); }
@media (max-width: 960px) { .badge-row { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 1.8rem; } }
@media (max-width: 460px) { .badge-row span { display: none; } }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 3.4vw, 2.8rem); margin-top: clamp(4rem, 8vw, 6rem); }
@media (max-width: 980px) { .trio { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; } }
.trio h3 { margin-top: 1.4rem; color: var(--gold-soft); }
.trio p { margin-top: 0.7rem; color: var(--on-dark-soft); }
.quiz { margin-top: 1.2rem; padding: 1.1rem; border-radius: 18px; background: var(--parchment); color: var(--ink); }
.quiz p { margin: 0; font: 700 0.9375rem/1.45 var(--font-serif); color: var(--aura-3); }
.quiz ol { display: grid; gap: 0.45rem; margin-top: 0.8rem; }
.quiz li { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.55rem 0.8rem; border-radius: 10px; border: 1px solid var(--rule); background: #fff; font-size: 0.875rem; line-height: 1.3; transition: background-color 0.5s, border-color 0.5s; }
.quiz li.is-right { background: var(--hl-green); border-color: #7fd48f; font-weight: 700; }
.quiz li i { font-style: normal; font-weight: 700; color: #1e6b33; opacity: 0; transition: opacity 0.5s; }
.quiz li.is-right i { opacity: 1; }
.match { margin-top: 1.2rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: rgba(66, 13, 75, 0.45); border: 1px solid rgba(206, 174, 118, 0.3); }
.match span { display: block; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); }
.match b { display: block; margin-top: 0.35rem; font: 300 clamp(1.7rem, 3vw, 2.1rem)/1.1 var(--font-display); color: var(--gold-soft); min-height: 1.15em; transition: opacity 0.4s, transform 0.4s var(--ease); }
.match b.is-out { opacity: 0; transform: translateY(8px); }
.board { margin-top: 1.2rem; padding: 0.5rem 1.1rem; border-radius: 18px; background: rgba(66, 13, 75, 0.45); border: 1px solid rgba(206, 174, 118, 0.3); }
.board-art { aspect-ratio: 7 / 3; border-radius: 16px; border: 1px solid rgba(212, 168, 96, 0.8); background: radial-gradient(circle at 50% 120%, rgba(248, 213, 102, 0.34), rgba(248, 213, 102, 0) 60%), linear-gradient(135deg, var(--aura-1), var(--aura-3)); display: grid; place-content: center; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.75); }
.board-art span { font: 700 clamp(2.1rem, 1.5rem + 1.6vw, 3rem)/0.92 var(--font-script); color: #e9c682; }
.board li { display: grid; grid-template-columns: 1.4rem 1fr auto; align-items: center; gap: 0.7rem; padding: 0.62rem 0; border-bottom: 1px solid rgba(246, 237, 241, 0.1); font-size: 0.9375rem; }
.board li:last-child { border-bottom: 0; }
.board li > span:first-child { font: 700 0.875rem/1 var(--font-serif); color: var(--gold); }
.board li b { font-weight: 500; }
.board li em { font: 700 0.9375rem/1 var(--font-serif); font-style: normal; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.board li.is-you b { color: var(--gold-soft); font-weight: 700; }

.dawn-band { position: relative; height: clamp(15rem, 40vh, 24rem); margin-top: var(--section-y); overflow: hidden; background: linear-gradient(180deg, rgba(91, 33, 104, 0) 0%, #5b2168 24%, #9a4f93 44%, #d98aa6 60%, #f0b58a 76%, #f6cf8a 90%, var(--dawn-edge) 100%); }
.dawn-band .sunset-sun { bottom: 0; transform: translate(-50%, calc(62% - var(--p, 0) * 38%)); }
.dawn-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 7rem; background: linear-gradient(180deg, rgba(248, 224, 174, 0), var(--dawn-edge) 92%); }
.dawn-band p { position: absolute; left: 0; right: 0; top: 16%; text-align: center; font: italic 300 clamp(1.25rem, 1rem + 1.2vw, 1.875rem)/1.4 var(--font-display); color: var(--aura-8); padding-inline: var(--gutter); }

/* ---------- Free and Premium ---------- */
.honest { padding: var(--section-y) 0; background: linear-gradient(180deg, var(--dawn-edge) 0, #fcefd3 5rem, var(--parchment) 17rem); }
.honest-head { max-width: 44rem; }
.honest-head .lead { margin-top: 1.25rem; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(2.8rem, 6vw, 4.2rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan h3 { font: 300 clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem)/1.15 var(--font-display); color: var(--aura-3); }
.plan .price { margin-top: 0.6rem; font: 600 0.9375rem/1.5 var(--font-sans); color: var(--bronze); }
.plan .ticks { margin-top: 1.4rem; }
.plan .fine { margin-top: 1.5rem; }
.yours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
@media (max-width: 760px) { .yours { grid-template-columns: 1fr; } }
.yours p { margin-top: 0.6rem; }
.langs { margin-top: clamp(2.6rem, 5vw, 3.6rem); font-size: 0.9375rem; color: var(--ink-soft); }
.langs b { color: var(--aura-3); }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 var(--section-y); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-top: var(--section-y); border-top: 1px solid var(--rule); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.25rem 0; cursor: pointer; list-style: none; font: 700 1.0625rem/1.4 var(--font-serif); color: var(--aura-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0.7rem; height: 0.7rem; border: solid var(--aura-5); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 2.2rem 1.4rem 0; }

/* ---------- Final call ---------- */
.cta-wrap { padding: 0 0 var(--section-y); }
.cta { position: relative; isolation: isolate; overflow: hidden; border-radius: clamp(24px, 4vw, 44px); padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter) clamp(9rem, 20vw, 13rem); text-align: center; background: linear-gradient(180deg, #0d0612 0%, #1b0730 28%, #36104a 54%, #6a2a73 74%, #b5639f 86%, #e9a27c 94%, #f6cf8a 100%); box-shadow: 0 50px 80px -50px rgba(66, 13, 75, 0.9); --sun-x: 50%; }
.cta .sun { width: clamp(15rem, 34vw, 28rem); }
.cta-icon { position: relative; width: 5.5rem; height: 5.5rem; margin: 0 auto 1.8rem; }
.cta-icon img { width: 100%; height: 100%; border-radius: 22%; box-shadow: 0 0 0 1px rgba(212, 168, 96, 0.5), 0 20px 34px -14px #000; }
.cta-icon::before, .cta-icon::after { content: ""; position: absolute; inset: -55%; border-radius: 50%; border: 1px dashed rgba(236, 208, 146, 0.4); animation: spin 60s linear infinite; }
.cta-icon::after { inset: -30%; border-style: solid; border-color: rgba(236, 208, 146, 0.18); animation: none; }
.cta h2 { max-width: 20ch; margin-inline: auto; color: var(--on-dark); }
.cta h2 em { color: var(--gold-soft); }
.cta .verse blockquote { color: var(--aura-8); }
.cta .verse figcaption { color: var(--gold-soft); }
.cta .verse { margin-top: 1.5rem; max-width: 34rem; }
.cta .verse blockquote { font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem); color: var(--aura-8); }
.cta .stores { justify-content: center; margin-top: 2.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--aura-1); padding: clamp(3rem, 6vw, 4.5rem) 0 2.2rem; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about p { margin-top: 1.1rem; max-width: 26rem; color: var(--on-dark-soft); }
.footer-col h2 { font: 600 0.8125rem/1 var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.footer-col ul { display: grid; gap: 0.7rem; margin-top: 1.2rem; }
.footer-col a { color: var(--on-dark-soft); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 0.25em; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.6rem; border-top: 1px solid rgba(246, 237, 241, 0.12); color: var(--on-dark-soft); font-size: 0.8125rem; }
.footer-marks { margin-top: 1rem; font-size: 0.75rem; line-height: 1.6; color: rgba(246, 237, 241, 0.6); max-width: 60rem; }
.motion-toggle { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid rgba(246, 237, 241, 0.26); font: 600 0.8125rem/1 var(--font-sans); color: var(--on-dark); transition: border-color 0.2s, background-color 0.2s; }
.motion-toggle:hover { border-color: var(--gold); background: rgba(212, 168, 96, 0.12); }
.motion-toggle::before { content: ""; width: 0.6rem; height: 0.7rem; border: solid currentColor; border-width: 0 0.2rem; }
.motion-toggle[aria-pressed="true"]::before { width: 0; height: 0; border-width: 0.38rem 0 0.38rem 0.62rem; border-color: transparent transparent transparent currentColor; }

/* ---------- Day dial (wide screens) ---------- */
.dial { position: fixed; right: 1.1rem; top: 50%; z-index: 40; display: none; padding: 1rem 0.85rem; border-radius: 999px; background: rgba(22, 8, 30, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(212, 168, 96, 0.25); transform: translateY(-50%) translateX(140%); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.4s; }
.dial.is-on { transform: translateY(-50%); opacity: 1; }
.dial-track { position: relative; }
.dial ol { display: grid; gap: 2.1rem; }
.dial-track::before { content: ""; position: absolute; left: 50%; top: 0.5rem; bottom: 0.5rem; width: 1px; background: rgba(246, 237, 241, 0.22); }
.dial a { position: relative; display: block; width: 1rem; height: 1rem; }
.dial a::before { content: ""; position: absolute; inset: 0.3rem; border-radius: 50%; background: rgba(246, 237, 241, 0.5); transition: background-color 0.3s, transform 0.3s; }
.dial a span { position: absolute; right: 1.9rem; top: 50%; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(22, 8, 30, 0.9); font: 600 0.75rem/1 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark); white-space: nowrap; transform: translateY(-50%) translateX(6px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
.dial a:hover span, .dial a:focus-visible span { opacity: 1; transform: translateY(-50%); }
.dial li.is-now a::before { background: transparent; }
.dial-mark { position: absolute; left: 50%; top: calc(0.5rem + var(--dial, 0) * (100% - 1rem)); width: 1rem; height: 1rem; margin: -0.5rem 0 0 -0.5rem; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 14px 2px rgba(248, 213, 102, 0.8); pointer-events: none; transition: background-color 0.6s, box-shadow 0.6s; }
.dial.is-night .dial-mark { background: #dfe9fb; box-shadow: 0 0 14px 2px rgba(143, 180, 221, 0.8); }
@media (min-width: 1380px) { .dial { display: block; } }

/* ---------- Reveal on scroll (only when the motion class is set) ---------- */
html.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
html.motion .reveal.in { opacity: 1; transform: none; }
html.motion .hero .w { display: inline-block; opacity: 0; transform: translateY(0.55em); animation: word 0.9s var(--ease) forwards; animation-delay: calc(0.2s + var(--i) * 75ms); }
html.motion .hero .rise { opacity: 0; transform: translateY(18px); animation: word 1s var(--ease) forwards; animation-delay: calc(0.95s + var(--i, 0) * 140ms); }
html.motion .hero .sun { animation: sunrise 3.2s var(--ease) both; }
html.motion .badge-row li { opacity: 0; transform: translateY(18px) scale(0.92); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i) * 70ms); }
html.motion .badge-row.in li { opacity: 1; transform: none; }

@keyframes word { to { opacity: 1; transform: none; } }
@keyframes sunrise { from { transform: translate(-50%, 78%); opacity: 0.5; } to { transform: translate(-50%, calc(52% - var(--lift, 0px))); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.4deg); } 50% { transform: translateY(-12px) rotate(-0.4deg); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes beam { 0%, 100% { top: 4%; opacity: 0; } 12% { opacity: 1; } 50% { top: 94%; opacity: 1; } 62% { opacity: 0; } }
@keyframes chip { 0%, 52% { opacity: 0; transform: translate(-50%, 10px); } 62%, 92% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes breathe { 0%, 100% { transform: scale(0.9); opacity: 0.6; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes flicker { 0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); } 22% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 41% { opacity: 0.62; transform: translate(-50%, -50%) scale(0.95); } 63% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.05); } 82% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.98); } }
@keyframes eq { 0%, 100% { transform: scaleY(0.28); } 50% { transform: scaleY(1); } }
@keyframes shine { 0%, 78%, 100% { filter: drop-shadow(0 0 0 rgba(248, 213, 102, 0)); } 88% { filter: drop-shadow(0 0 12px rgba(248, 213, 102, 0.85)) brightness(1.2); } }

/* visitor paused motion: freeze everything where it is */
html.is-paused *, html.is-paused *::before, html.is-paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .scan-chip { opacity: 1; transform: translateX(-50%); animation: none; }
  .scan-beam { display: none; }
}

/* ==========================================================================
   Legal documents (privacy.html, terms.html, eula.html)
   Same palette and type as the landing page. No header, hero or menu.
   ========================================================================== */
body.legal { background: var(--parchment); color: var(--ink); --focus: var(--aura-3); font-family: var(--font-serif); font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem); line-height: 1.8; }
body.legal::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 2; background: linear-gradient(90deg, var(--aura-3), var(--aura-5) 30%, var(--gold) 55%, var(--aura-6) 78%, var(--aura-7)); }
.doc { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 5.5rem); }
.doc a { color: var(--aura-5); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 0.2s; overflow-wrap: anywhere; }
.doc a:hover { color: var(--aura-3); text-decoration-thickness: 2px; }
.doc p.doc-back { margin: 0 0 clamp(2.5rem, 6vw, 4rem); font: 600 0.875rem/1 var(--font-sans); }
.doc-back a { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.doc-back a::before { content: ""; width: 0.5rem; height: 0.5rem; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.doc-back a:hover { text-decoration: underline; }
.doc p.doc-brand { margin: 0; text-align: center; font: 600 0.8125rem/1.4 var(--font-sans); letter-spacing: 0.24em; color: var(--bronze); }
.doc .doc-brand strong, .doc .doc-callout strong { font-weight: inherit; color: inherit; }
.doc h1 { margin-top: 1rem; text-align: center; font: 300 clamp(2rem, 1.3rem + 3vw, 3.25rem)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--aura-3); text-wrap: balance; }
.doc p.doc-meta { margin: 0.35rem 0 0; text-align: center; font: 400 0.9375rem/1.6 var(--font-sans); color: var(--ink-soft); }
.doc h1 + p.doc-meta { margin-top: 1.4rem; }
.doc-rule { margin: clamp(2rem, 5vw, 3rem) auto; width: 4.5rem; height: 1px; border: 0; background: var(--gold); }
.doc p.doc-callout { margin: 0 0 1.6rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: #f8efdc; font-weight: 700; color: var(--aura-3); }
.doc h2 { margin: clamp(2.4rem, 5vw, 3.2rem) 0 0.9rem; font: 700 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.35 var(--font-serif); letter-spacing: 0; color: var(--aura-3); text-wrap: balance; }
.doc h3 { margin: 1.9rem 0 0.6rem; font: 700 1.0625rem/1.4 var(--font-serif); color: var(--aura-5); }
.doc p { margin: 0 0 1.1rem; color: var(--ink); }
.doc strong { font-weight: 700; color: var(--ink); }
.doc ul { margin: 0 0 1.3rem; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.doc ul li { position: relative; padding-left: 1.5rem; }
.doc ul li::before { content: ""; position: absolute; left: 0.2rem; top: 0.78em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--gold); }
.doc p.doc-contact { margin: 0 0 0.3rem; font-family: var(--font-sans); }
.doc p.doc-contact + p:not(.doc-contact) { margin-top: clamp(1.8rem, 4vw, 2.4rem); }
.doc p.doc-thanks { margin-top: clamp(1.8rem, 4vw, 2.4rem); text-align: center; font: 400 1.0625rem/1.7 var(--font-serif); color: var(--aura-4); text-wrap: balance; }
.doc h3.doc-org { margin: clamp(2.2rem, 5vw, 3rem) 0 0; padding-top: clamp(1.8rem, 4vw, 2.4rem); border-top: 1px solid var(--rule); text-align: center; font: 600 0.8125rem/1.4 var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); }
.doc p.doc-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.6rem; margin: 1.1rem 0 0; font: 600 0.875rem/1.4 var(--font-sans); }
.doc-links a[aria-current="page"] { color: var(--ink-soft); text-decoration: none; }
.doc p.doc-copyright { margin: 1.4rem 0 0; text-align: center; font: 400 0.8125rem/1.5 var(--font-sans); color: var(--ink-soft); }

/* ==========================================================================
   Redirect page (redirect.html)
   ========================================================================== */
body.redirect { min-height: 100svh; display: grid; place-items: center; padding: 2rem var(--gutter); text-align: center; background: linear-gradient(180deg, #0d0612 0%, #1b0730 30%, #36104a 58%, #6a2a73 80%, #b5639f 100%); }
.redirect-card { display: grid; justify-items: center; gap: 1.4rem; max-width: 30rem; }
.redirect-card img.icon { width: 5.5rem; height: 5.5rem; border-radius: 22%; box-shadow: 0 0 0 1px rgba(212, 168, 96, 0.5), 0 20px 34px -14px #000; }
.redirect-card h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.2; }
.redirect-card p { color: var(--on-dark-soft); }
.redirect-card .stores { justify-content: center; }

@media print {
  .site-header, .dial, .sky, .skip { display: none !important; }
  body.legal::before { display: none; }
}
