/* =========================================================================
   Allelon — landing page
   Palette is lifted verbatim from apps/mobile/src/lib/theme.ts so the page and
   the app cannot drift. Two palettes are in play at once and that is deliberate:

   --page-*   the DARK app palette (darkColors), used for the page itself
   --app-*    the LIGHT app palette (colors),    used inside the phone mocks

   The mocks render light against a dark page so each one reads as a physical
   device rather than a flat panel. One mock (§5) flips to the dark palette to
   demonstrate the app's theme, which is why the dark tokens are also exposed
   under .screen--dark.
   ========================================================================= */

:root {
  /* --- page: darkColors from theme.ts ---------------------------------- */
  --page-bg: #0d1a1d;
  --page-fg: #f0ebe0;
  --page-card: #162428;
  --page-card-border: #2a4044;
  --page-muted: #9ab0b4;
  --page-muted-warm: #769a9f;
  --page-teal-deep: #003d4d;
  --page-teal-pill: #1a4e58;
  --page-teal-pill-text: #8fd0da;
  --page-accent: #5ea6b2;
  --page-accent-fill: #0a7080;
  --page-gold: #c9a227;
  --page-gold-hover: #d3b044;

  /* --- app light palette, for the phone mocks --------------------------- */
  --app-bg: #fdfbf7;
  --app-fg: #2d2a26;
  --app-card: #ffffff;
  --app-card-border: #e8e5df;
  --app-accent: #005f73;
  --app-teal-deep: #00485a;
  --app-teal-pill: #e2eef0;
  --app-gold: #c9a227;
  --app-done: #8a6d12;
  --app-gold-card: #fbf3de;
  --app-gold-card-border: #f0e2b8;
  --app-muted: #6b6862;
  --app-muted-warm: #756a5a;
  --app-secondary: #f1ede6;
  --app-input: #f4efe6;
  --app-cream: #fdfbf7;

  /* --- type ------------------------------------------------------------- */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- metrics ---------------------------------------------------------- */
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(88px, 13vh, 168px);

  /* radii ladder from theme.ts (sm 8 / md 12 / lg 14 / xl 18) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-pill: 999px;
}

/* =========================================================================
   Base
   ========================================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* A very quiet warm wash so the near-black never reads as flat grey. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(10, 112, 128, 0.24), transparent 62%),
    radial-gradient(900px 560px at 92% 8%, rgba(201, 162, 39, 0.07), transparent 60%);
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--page-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   Shared type roles
   ========================================================================= */

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--page-accent);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--page-gold);
  flex: none;
}

.lede {
  font-size: clamp(17px, 2vw, 19.5px);
  line-height: 1.68;
  color: var(--page-muted);
  max-width: 62ch;
}

.h-display {
  font-size: clamp(38px, 7.4vw, 76px);
  line-height: 1.06;
}

.h-section {
  font-size: clamp(30px, 4.6vw, 47px);
}

.gold {
  color: var(--page-gold);
}

.teal {
  color: var(--page-accent);
}

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

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(13, 26, 29, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.masthead.is-stuck {
  background: rgba(13, 26, 29, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--page-card-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.005em;
}

.brand svg {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: none;
}

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--page-gold);
  color: #23200f;
  box-shadow: 0 10px 30px -12px rgba(201, 162, 39, 0.65);
}

.btn--primary:hover {
  background: var(--page-gold-hover);
}

.btn--ghost {
  border-color: var(--page-card-border);
  color: var(--page-fg);
  background: rgba(240, 235, 224, 0.03);
}

.btn--ghost:hover {
  border-color: var(--page-accent);
  color: var(--page-accent);
}

.btn--sm {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 14.5px;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

/* =========================================================================
   ACT I — the crossfade reel
   Three scenes dissolve into one another inside one sticky stage. The stage is
   3x viewport-tall; app.js maps scroll progress to per-scene opacity. With
   JS off or reduced motion on, .reel degrades to three normal stacked
   sections (see the no-js / reduced-motion blocks at the foot of this file).
   ========================================================================= */

/* DEFAULT = static and fully readable. The pinned crossfade is opt-in: app.js
   adds `.fx` to <html> only when JS runs AND motion is allowed. If the script
   is blocked, errors, or the visitor prefers reduced motion, the reel is simply
   three ordinary stacked sections and nothing is ever hidden. */

.reel {
  position: relative;
}

.scene {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: var(--section-y);
}

.scene + .scene {
  border-top: 1px solid rgba(42, 64, 68, 0.55);
}

.fx .reel {
  height: 340vh;
}

.fx .reel__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.fx .scene {
  grid-area: 1 / 1;
  padding-block: 0;
  border-top: 0;
  opacity: 0;
  transform: translateY(26px) scale(0.994);
  transition: opacity 0.1s linear, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  /* No `will-change` here on purpose. It would promote three full-viewport
     layers permanently — real memory cost on the mid-range Android this page
     is aimed at, for an animation that is already just an opacity change. */
}

.fx .scene[data-active="true"] {
  transform: none;
}

/* A faded-out scene still sits in the same grid cell, so without this it would
   keep swallowing taps and clicks meant for the visible one. */
.fx .scene[aria-hidden="true"] {
  pointer-events: none;
}

.scene__inner {
  max-width: 860px;
}

/* Scene 1 — the problem */
.scene--problem h1 {
  margin-bottom: 26px;
}

.scene--problem .lede {
  max-width: 54ch;
}

.bookmark {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px 13px 16px;
  border: 1px solid var(--page-card-border);
  border-left: 2px solid var(--page-gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(22, 36, 40, 0.72);
  font-size: 14.5px;
  color: var(--page-muted);
}

.bookmark b {
  color: var(--page-fg);
  font-weight: 600;
}

/* Scene 2 — the word */
.scene--word {
  text-align: center;
}

.scene--word .scene__inner {
  margin-inline: auto;
}

.word {
  font-family: var(--serif);
  font-size: clamp(52px, 12vw, 132px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.word__pron {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--page-gold);
  margin-bottom: 30px;
}

.word__gloss {
  font-family: var(--serif);
  font-size: clamp(20px, 2.9vw, 29px);
  line-height: 1.42;
  color: var(--page-fg);
  max-width: 22ch;
  margin: 0 auto 22px;
}

.scene--word .lede {
  margin-inline: auto;
  max-width: 52ch;
}

.rule-gold {
  width: 46px;
  height: 2px;
  background: var(--page-gold);
  margin: 0 auto 30px;
  border-radius: 2px;
}

/* Scene 3 — the thesis */
.scene--thesis .h-display {
  margin-bottom: 24px;
}

.thesis-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--page-card-border);
  border: 1px solid var(--page-card-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.thesis-grid > div {
  background: var(--page-bg);
  padding: 22px 24px;
}

.thesis-grid h3 {
  font-size: 17.5px;
  margin-bottom: 7px;
  color: var(--page-fg);
}

.thesis-grid p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--page-muted);
}

/* Scroll hint */
.scroll-hint {
  display: none;
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--page-muted-warm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.fx .scroll-hint {
  display: flex;
}

.scroll-hint span {
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, var(--page-gold), transparent);
  animation: hintdrop 2.1s ease-in-out infinite;
}

@keyframes hintdrop {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleY(0.5);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* =========================================================================
   ACT II — feature sections
   ========================================================================= */

.feature {
  padding-block: var(--section-y);
  border-top: 1px solid rgba(42, 64, 68, 0.55);
}

.feature__grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.feature--flip .feature__grid {
  grid-template-columns: minmax(280px, 380px) 1fr;
}

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

.feature--flip .feature__art {
  order: 1;
}

.feature__num {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--page-gold);
}

.feature__copy h2 {
  margin: 16px 0 20px;
}

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

.feature__art {
  display: flex;
  justify-content: center;
}

/* Cast strip — who the mock is showing */
.cast {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--page-card-border);
  border-radius: var(--r-md);
  background: rgba(22, 36, 40, 0.55);
  font-size: 14px;
  color: var(--page-muted);
}

.cast__dot {
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--page-teal-pill);
  color: var(--page-teal-pill-text);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}

.cast b {
  color: var(--page-fg);
  font-weight: 600;
}

/* Point list */
.points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 15px;
}

.points li {
  position: relative;
  padding-left: 27px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--page-muted);
}

.points li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--page-gold);
}

.points b {
  color: var(--page-fg);
  font-weight: 600;
}

/* Emoji runs need their own breathing room — they render wider than the
   surrounding text and the default word-spacing bunches them together. */
.emoji {
  letter-spacing: 0.18em;
  margin-inline: 0.12em;
  white-space: nowrap;
}

/* =========================================================================
   Phone mock
   ========================================================================= */

.phone {
  width: 100%;
  max-width: 340px;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(158deg, #35494e, #101d20 42%, #24373b);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, 0.86), 0 0 0 1px rgba(240, 235, 224, 0.07),
    0 2px 5px rgba(255, 255, 255, 0.06) inset;
}

.phone__screen {
  border-radius: 34px;
  overflow: hidden;
  background: var(--app-bg);
  color: var(--app-fg);
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  min-height: 588px;
}

/* the one dark mock (§5) */
.phone__screen--dark {
  background: var(--page-bg);
  color: var(--page-fg);
  --app-bg: #0d1a1d;
  --app-fg: #f0ebe0;
  --app-card: #162428;
  --app-card-border: #2a4044;
  --app-accent: #5ea6b2;
  --app-teal-deep: #003d4d;
  --app-teal-pill: #1a4e58;
  --app-muted: #9ab0b4;
  --app-muted-warm: #769a9f;
  --app-secondary: #1e3035;
  --app-input: #1e3035;
  --app-done: #c9a227;
  --app-gold-card: #1e1608;
  --app-gold-card-border: #3d3018;
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--app-fg);
  letter-spacing: 0.01em;
}

.statusbar__right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.statusbar__batt {
  width: 21px;
  height: 10.5px;
  border: 1.2px solid currentColor;
  border-radius: 3px;
  position: relative;
  opacity: 0.85;
}

.statusbar__batt::after {
  content: "";
  position: absolute;
  inset: 1.6px;
  right: 5px;
  background: currentColor;
  border-radius: 1px;
}

.statusbar__sig {
  display: flex;
  align-items: flex-end;
  gap: 1.6px;
  opacity: 0.85;
}

.statusbar__sig i {
  width: 2.6px;
  background: currentColor;
  border-radius: 1px;
}

.statusbar__sig i:nth-child(1) { height: 4px; }
.statusbar__sig i:nth-child(2) { height: 7px; }
.statusbar__sig i:nth-child(3) { height: 10px; }

.appbody {
  flex: 1;
  padding: 6px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
}

.apphead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 1px 3px;
}

.apphead__greet {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
}

.apphead__date {
  font-size: 11.5px;
  color: var(--app-muted);
  margin-top: 2px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--app-teal-pill);
  color: var(--app-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex: none;
}

/* app cards */
.acard {
  background: var(--app-card);
  border: 1px solid var(--app-card-border);
  border-radius: var(--r-xl);
  padding: 14px;
}

.acard--teal {
  background: var(--app-accent);
  border-color: transparent;
  color: var(--app-cream);
}

.phone__screen--dark .acard--teal {
  background: var(--app-teal-deep);
}

.acard--gold {
  background: var(--app-gold-card);
  border-color: var(--app-gold-card-border);
}

.aeyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
}

.acard--teal .aeyebrow {
  color: rgba(253, 251, 247, 0.82);
}

.apassage {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin: 7px 0 4px;
}

.astatus {
  font-size: 12px;
  opacity: 0.9;
}

.pills {
  display: flex;
  gap: 7px;
  margin: 12px 0 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid rgba(253, 251, 247, 0.32);
  color: var(--app-cream);
}

.pill__tick {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.4px solid currentColor;
  display: grid;
  place-items: center;
  opacity: 0.6;
}

.pill--done {
  background: rgba(253, 251, 247, 0.16);
  border-color: transparent;
}

.pill--done .pill__tick {
  opacity: 1;
  background: var(--app-gold);
  border-color: var(--app-gold);
  color: #23200f;
}

.pill--done .pill__tick svg {
  width: 8px;
  height: 8px;
}

.acta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--app-cream);
  color: var(--app-accent);
  border-radius: var(--r-pill);
  padding: 10px 15px;
  font-weight: 700;
  font-size: 13px;
}

.acta svg {
  width: 14px;
  height: 14px;
}

/* group card / roster */
.arow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--app-card-border);
}

.arow:first-of-type {
  border-top: 0;
}

.arow__who {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.arow__name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arow__name span {
  color: var(--app-muted);
  font-weight: 400;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex: none;
}

.tag--done {
  background: var(--app-gold-card);
  color: var(--app-done);
}

.tag--part {
  background: var(--app-teal-pill);
  color: var(--app-accent);
}

.tag--none {
  background: var(--app-secondary);
  color: var(--app-muted);
}

.tag--skip {
  background: var(--app-secondary);
  color: var(--app-muted-warm);
}

.tag svg {
  width: 10px;
  height: 10px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.heartbtn {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--app-secondary);
  display: grid;
  place-items: center;
  color: #c2564f;
  flex: none;
}

.heartbtn svg {
  width: 13px;
  height: 13px;
}

.acount {
  font-size: 12.5px;
  margin: 3px 0 9px;
  color: var(--app-fg);
}

.acount b {
  font-weight: 700;
}

.alink {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--app-accent);
  white-space: nowrap;
}

.acardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.astreak {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--app-card-border);
  font-size: 11.5px;
  color: var(--app-muted-warm);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* floating reaction, §1 */
/* Live reaction floats. They rise out of the roster card — where a real tap
   would land — rather than drifting across the whole device. */
.floats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  height: 46%;
  pointer-events: none;
  overflow: hidden;
}

.float {
  position: absolute;
  bottom: 0;
  font-size: 21px;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.4));
  animation: floatup 4.2s ease-out infinite;
  opacity: 0;
}

.float:nth-child(1) { right: 12%; animation-delay: 0s; }
.float:nth-child(2) { right: 24%; animation-delay: 1.4s; }
.float:nth-child(3) { right: 5%;  animation-delay: 2.8s; }

@keyframes floatup {
  0% { opacity: 0; transform: translateY(10px) scale(0.6); }
  12% { opacity: 1; transform: translateY(0) scale(1.08); }
  22% { transform: translateY(-14px) scale(1); }
  75% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-118px) scale(0.85); }
}

.phone__wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
}

/* reflection composer */
.textarea {
  background: var(--app-input);
  border: 1px solid var(--app-card-border);
  border-radius: var(--r-md);
  padding: 10px 11px;
  font-size: 12px;
  color: var(--app-muted);
  min-height: 62px;
  font-style: italic;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 11.5px;
}

.switch {
  width: 34px;
  height: 20px;
  border-radius: var(--r-pill);
  background: var(--app-accent);
  position: relative;
  flex: none;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2.5px;
  right: 2.5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
}

.switch--off {
  background: var(--app-card-border);
}

.switch--off::after {
  right: auto;
  left: 2.5px;
}

/* shared reflection */
.quote {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.55;
  font-style: italic;
  color: var(--app-fg);
  margin: 7px 0 10px;
}

.reactbar {
  display: flex;
  gap: 7px;
}

.reactbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--app-card-border);
  font-size: 11px;
  font-weight: 600;
  color: var(--app-muted-warm);
}

.reactbtn--on {
  background: var(--app-teal-pill);
  border-color: transparent;
  color: var(--app-accent);
}

/* pause / jeda */
.seg {
  display: flex;
  gap: 5px;
  margin: 10px 0 12px;
}

.seg > div {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--app-card-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--app-muted);
}

.seg > div.on {
  background: var(--app-accent);
  border-color: transparent;
  color: var(--app-cream);
}

.banner {
  background: var(--app-gold-card);
  border: 1px solid var(--app-gold-card-border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--app-fg);
}

.btn-app {
  display: block;
  text-align: center;
  background: var(--app-accent);
  color: var(--app-cream);
  border-radius: var(--r-pill);
  padding: 11px;
  font-size: 13px;
  font-weight: 700;
}

.btn-app--ghost {
  background: transparent;
  border: 1px solid var(--app-card-border);
  color: var(--app-fg);
}

/* bible reader + translation sheet */
.verse {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.68;
  color: var(--app-fg);
}

.verse sup {
  color: var(--app-accent);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  margin-right: 3px;
}

.sheet {
  margin-top: auto;
  background: var(--app-card);
  border-top: 1px solid var(--app-card-border);
  border-radius: 20px 20px 0 0;
  padding: 12px 15px 16px;
  box-shadow: 0 -18px 40px -22px rgba(0, 0, 0, 0.4);
}

.sheet__grab {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--app-card-border);
  margin: 0 auto 11px;
}

.sheet__title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.sheet__group {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-muted);
  margin: 11px 0 5px;
}

.trow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
}

.trow.on {
  background: var(--app-teal-pill);
  color: var(--app-accent);
  font-weight: 600;
}

.trow__meta {
  font-size: 10px;
  color: var(--app-muted);
  font-weight: 500;
}

.trow.on .trow__meta {
  color: var(--app-accent);
  opacity: 0.85;
}

/* reader toolbar (Aa) */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  background: var(--app-secondary);
  border-radius: var(--r-md);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--app-muted);
}

.toolbar__aa {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--app-accent);
}

.steps {
  display: flex;
  gap: 4px;
  align-items: center;
}

.steps i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--app-card-border);
}

.steps i.on {
  background: var(--app-accent);
  width: 16px;
  border-radius: 3px;
}

/* celebration, §6 */
.celebrate {
  text-align: center;
  padding: 22px 16px;
}

.celebrate__ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--app-gold);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--app-done);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
}

.celebrate h4 {
  font-size: 19px;
  margin-bottom: 7px;
}

.celebrate p {
  font-size: 12.5px;
  color: var(--app-muted);
  line-height: 1.6;
}

/* season card */
.season__weeks {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.season__weeks div {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--app-card-border);
}

.season__weeks div.on {
  background: var(--app-gold);
}

/* tabbar */
.tabbar {
  display: flex;
  border-top: 1px solid var(--app-card-border);
  background: var(--app-card);
  padding: 8px 0 12px;
}

.tabbar div {
  flex: 1;
  text-align: center;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--app-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.tabbar div.on {
  color: var(--app-accent);
}

.tabbar svg {
  width: 17px;
  height: 17px;
}

/* =========================================================================
   Manifesto
   ========================================================================= */

.manifesto {
  padding-block: var(--section-y);
  border-top: 1px solid rgba(42, 64, 68, 0.55);
}

.manifesto__list {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--page-card-border);
  border: 1px solid var(--page-card-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.manifesto__list li {
  background: var(--page-bg);
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 24px clamp(20px, 3vw, 30px);
  flex-wrap: wrap;
}

.manifesto__no {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--page-gold);
  flex: none;
  min-width: 96px;
}

.manifesto__list p {
  font-size: 15.5px;
  color: var(--page-muted);
  flex: 1 1 320px;
}

.manifesto__list b {
  color: var(--page-fg);
  font-weight: 600;
}

/* =========================================================================
   FAQ — "Tanya jawab", between the manifesto and the CTA.
   Replaced the social-proof placeholder. Answers are native <details>, so
   the section works with JS off. The left column sticks on desktop.
   ========================================================================= */

.faq {
  padding-block: var(--section-y);
  border-top: 1px solid rgba(42, 64, 68, 0.55);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(250px, 340px) 1fr;
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: 104px;
}

.faq__intro h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 18px;
}

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

/* Topic list — plain anchors; chips on narrow screens */
.faq__toc {
  list-style: none;
  counter-reset: toc;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
}

.faq__toc li {
  counter-increment: toc;
  border-top: 1px solid rgba(42, 64, 68, 0.55);
}

.faq__toc li:last-child {
  border-bottom: 1px solid rgba(42, 64, 68, 0.55);
}

.faq__toc a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  font-size: 15px;
  color: var(--page-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.faq__toc a::before {
  content: "0" counter(toc);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--page-gold);
}

.faq__toc a:hover {
  color: var(--page-fg);
}

.faq__ask {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--page-muted-warm);
}

.faq__ask a {
  color: var(--page-accent);
  text-underline-offset: 3px;
}

.faq__ask a:hover {
  color: var(--page-fg);
}

/* Question groups */
.faq__groups {
  counter-reset: grp;
}

.faq__group {
  scroll-margin-top: 84px;
}

.faq__group + .faq__group {
  margin-top: 46px;
}

.faq__group h3 {
  margin-bottom: 16px;
  font-size: clamp(22px, 2.6vw, 27px);
}

.faq__group h3::before {
  counter-increment: grp;
  content: "0" counter(grp);
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--page-gold);
}

/* One question = one native <details> */
.qa {
  scroll-margin-top: 84px;
  background: var(--page-card);
  border: 1px solid var(--page-card-border);
  border-radius: var(--r-lg);
  transition: border-color 0.2s ease;
}

.qa + .qa {
  margin-top: 10px;
}

.qa:hover {
  border-color: rgba(94, 166, 178, 0.4);
}

.qa[open] {
  border-color: rgba(94, 166, 178, 0.55);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(17.5px, 2.2vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--page-fg);
}

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

.qa summary::after {
  content: "";
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--page-card-border);
  border-radius: 50%;
  color: var(--page-gold);
  /* a plus drawn from two bars; the vertical bar collapses when open */
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 11px no-repeat;
}

.qa[open] summary::after {
  background-size: 11px 1.6px, 0 0;
  border-color: rgba(201, 162, 39, 0.5);
}

.qa__a {
  padding: 0 20px 20px;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--page-muted);
}

.qa__a p + p {
  margin-top: 12px;
}

.qa__a ul,
.qa__a ol {
  margin: 10px 0 0;
  padding-left: 1.3em;
}

.qa__a li + li {
  margin-top: 6px;
}

.qa__a b {
  color: var(--page-fg);
}

.qa__a a:not(.btn) {
  color: var(--page-accent);
  text-underline-offset: 3px;
}

.qa__a a:not(.btn):hover {
  color: var(--page-fg);
}

.qa__a .btn {
  margin-top: 16px;
}

.qa__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.qa__actions .btn {
  margin-top: 0;
}

.qa__a .qa__warn {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--page-gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(201, 162, 39, 0.07);
  font-size: 15.5px;
  color: var(--page-fg);
}

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

  .faq__intro {
    position: static;
  }

  .faq__intro .lede {
    max-width: 46ch;
  }

  .faq__toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .faq__toc li,
  .faq__toc li:last-child {
    border: 0;
  }

  .faq__toc a {
    padding: 8px 15px;
    border: 1px solid var(--page-card-border);
    border-radius: var(--r-pill);
    background: rgba(22, 36, 40, 0.5);
    font-size: 14px;
    line-height: 1.2;
  }

  .faq__toc a::before {
    display: none;
  }

  .faq__toc a:hover {
    border-color: var(--page-accent);
  }
}

@media (max-width: 560px) {
  .qa summary {
    padding: 16px;
  }

  .qa__a {
    padding: 0 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qa,
  .faq__toc a {
    transition: none;
  }
}

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

.cta {
  padding-block: var(--section-y);
  border-top: 1px solid rgba(42, 64, 68, 0.55);
  text-align: center;
}

.cta__inner {
  max-width: 760px;
  margin-inline: auto;
}

.cta .eyebrow {
  justify-content: center;
}

.cta .lede {
  margin-inline: auto;
  margin-top: 20px;
}

.cta__actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta__note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--page-muted-warm);
}

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

.footer {
  border-top: 1px solid var(--page-card-border);
  padding-block: 42px 56px;
  font-size: 13.5px;
  color: var(--page-muted-warm);
}

.footer__grid {
  display: flex;
  gap: 22px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--page-fg);
}

.footer__mark svg {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.footer__meta {
  max-width: 46ch;
  line-height: 1.6;
}

/* =========================================================================
   Reveal-on-scroll (ACT II onward)
   ========================================================================= */

/* Same opt-in rule as the reel: visible by default, hidden only once `.fx`
   confirms JS is alive to bring it back. */
.fx .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.fx .reveal--d1 { transition-delay: 0.08s; }
.fx .reveal--d2 { transition-delay: 0.16s; }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 900px) {
  .feature__grid,
  .feature--flip .feature__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .feature--flip .feature__copy,
  .feature--flip .feature__art {
    order: initial;
  }

  .feature__art {
    order: -1 !important;
  }

  .reel {
    height: 320vh;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .reel__stage {
    height: 100svh;
  }

  .phone__screen {
    min-height: 540px;
  }

  .manifesto__no {
    min-width: auto;
  }

  /* Full-width only where a button is the section's main action. The masthead
     button must stay a chip — stretching it across a fixed header reads as a
     banner, not a control. */
  .cta__actions .btn {
    width: 100%;
  }
}

/* =========================================================================
   Reduced motion
   app.js already withholds `.fx` when motion is reduced, so the reel and the
   reveals are static by construction. This block only has to stop the small
   ambient animations and the hover lift.
   ========================================================================= */

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

  .scroll-hint,
  .float {
    display: none !important;
  }

  .btn:hover {
    transform: none;
  }

  .reveal {
    transition: none !important;
  }
}

/* =========================================================================
   Footer links + legal pages (/privasi/, /hapus-akun/)
   Plain reading pages: no JS, no reveal animations, no masthead script.
   ========================================================================= */

.footer__links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer__links a,
.footer__meta a {
  color: var(--page-accent);
  text-underline-offset: 3px;
}
.footer__links a:hover,
.footer__meta a:hover {
  color: var(--page-fg);
}
.cta__note a {
  color: var(--page-accent);
  text-underline-offset: 3px;
}

.masthead--static {
  position: sticky;
  background: rgba(13, 26, 29, 0.9);
  border-bottom-color: var(--page-card-border);
}

.legal {
  padding-block: clamp(56px, 9vh, 104px) clamp(72px, 11vh, 128px);
}
.legal__inner {
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(32px, 5.4vw, 52px);
  margin-bottom: 14px;
}
.legal__meta {
  color: var(--page-muted-warm);
  font-size: 14px;
  margin-bottom: 36px;
}
.legal h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 46px 0 14px;
}
.legal h3 {
  font-size: 18px;
  margin: 26px 0 8px;
}
.legal p,
.legal li {
  color: var(--page-muted);
  line-height: 1.72;
}
.legal p + p {
  margin-top: 14px;
}
.legal ul,
.legal ol {
  padding-left: 1.3em;
  margin: 12px 0 0;
}
.legal li + li {
  margin-top: 8px;
}
.legal a {
  color: var(--page-accent);
  text-underline-offset: 3px;
}
.legal a:hover {
  color: var(--page-fg);
}
.legal b,
.legal strong {
  color: var(--page-fg);
}
.legal__summary {
  background: var(--page-card);
  border: 1px solid var(--page-card-border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 8px;
}
.legal__summary h2 {
  margin-top: 0;
  font-size: 20px;
}
.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 15px;
}
.legal__table th,
.legal__table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--page-card-border);
  color: var(--page-muted);
}
.legal__table th {
  color: var(--page-fg);
  font-weight: 600;
}
@media (max-width: 640px) {
  .legal__table,
  .legal__table tbody,
  .legal__table tr,
  .legal__table td,
  .legal__table th {
    display: block;
  }
  .legal__table thead {
    display: none;
  }
  .legal__table td:first-child {
    color: var(--page-fg);
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 0;
  }
}

/* GEMAR BACA ALKITAB — the three steps in the closing section */
.cta__steps {
  list-style: none;
  counter-reset: step;
  margin: 36px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}
.cta__steps li {
  counter-increment: step;
  padding: 18px 18px 20px;
  border: 1px solid var(--page-card-border);
  border-radius: var(--r-md);
  background: rgba(22, 36, 40, 0.6);
  font-size: 15px;
  line-height: 1.55;
  color: var(--page-muted);
}
.cta__steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--page-gold);
}
.cta__steps b {
  display: block;
  color: var(--page-fg);
}
@media (max-width: 720px) {
  .cta__steps {
    grid-template-columns: 1fr;
  }
}

/* "Unduh Sekarang" is long for the fixed header on the narrowest phones
   (320px): drop the icon and tighten the chip so it never wraps. */
.masthead .btn {
  white-space: nowrap;
}

/* Masthead right-hand group: FAQ text link + download chip */
.masthead__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.masthead__link {
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--page-muted);
  text-decoration: none;
  border-radius: var(--r-pill);
  transition: color 0.2s ease;
}
.masthead__link:hover {
  color: var(--page-fg);
}

/* With the FAQ link added, the icon goes first on narrow phones so
   brand + link + chip fit on one line from 320px up. */
@media (max-width: 430px) {
  .masthead .btn svg {
    display: none;
  }
}
@media (max-width: 360px) {
  .masthead .btn {
    padding-inline: 14px;
    font-size: 13.5px;
  }
  .masthead__link {
    padding-inline: 8px;
    font-size: 13.5px;
  }
}
/* Brand + FAQ + chip need ~350px; below that the FAQ link steps aside (it is
   still in the closing section and the footer). */
@media (max-width: 350px) {
  .masthead__link {
    display: none;
  }
}
