/* ═══════════════════════════════════════════════════════════════════
   Bibly landing page.
   Structure, motion and interactions follow wabi.ai (studied 2026-10-15);
   colors and type come from design/tokens.json (values copied, see README).
   ═══════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "STIX Two Text";
  src: url("assets/fonts/STIXTwoText.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* palette (design/tokens.json) */
  --gold-50: #FAF3E0; --gold-100: #F9E9BD; --gold-200: #F8DE99; --gold-300: #F7D370;
  --gold-500: #F4B400; --gold-700: #B2850F; --gold-900: #6F551D; --gold-950: #362A10;
  --logo-gold: #FFBA18;
  --coral-100: #F5D6CD; --coral-300: #EAA694; --coral-500: #E07A5F; --coral-700: #9F5743;
  --peach-100: #FFF1EB; --peach-300: #FEE2D5;
  --blue-100: #E3EBFF; --blue-200: #D6E1FF; --blue-500: #A6BDFF; --blue-800: #5B688C; --blue-950: #1F263F;
  --green-300: #EAF6D8; --green-700: #9FAB8C;
  --neutral-50: #FAF6EF; --neutral-100: #F0ECE5; --neutral-200: #E2DED5; --neutral-300: #CBC7BF;
  --neutral-400: #A29E96; --neutral-500: #7E7A72; --neutral-600: #615D56;
  --ink-50: #F7F7F6; --ink-100: #EFEFEE; --ink-700: #1B1A19;
  --pink-200: #F5CCDD; --purple-200: #DDD1F2;
  --shield-100: #F1EBDD; --shield-300: #BBB7AC; --shield-900: #1B1A17;
  --emerald-600: #1E8A4C;

  /* page (Wabi's values) */
  --page: #ffffff;
  --ink: #191919;
  --muted: #6b6b66;
  --hair: rgba(25, 25, 25, .08);

  --serif: "STIX Two Text", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease-q: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-wabi: cubic-bezier(0.22, 1, 0.36, 1);

  --phone-w: 344px;
  --phone-h: 727px;
  --k: .811; /* the app screen is laid out at 402 x 874 pt (iPhone 17) and scaled into the frame */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-snap-type: y proximity; scroll-padding-top: 76px; }
/* Each phone settles fully in view (the phone size itself follows the window height: fitPhones in main.js). */
.deck-wrap, .plate, .continuity-visual { scroll-snap-align: center; }
.hero, .closing { scroll-snap-align: start; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
main, .show, .sec { overflow-x: clip; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 16px; }

.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; text-align: center; }

/* ══ Header ═════════════════════════════════════════════════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 98px;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(16px, 2.4vw, 32px);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-logo img { width: auto; height: 34px; }

/* ══ Primary button: BrandGlassButtonStyle (gold glass capsule) ═════
   Clear glass tinted brand.primary at opacity.tint (0.8), the light rising from the bottom (brand.glass-highlight at
   opacity.glass-light, from 35% of the height), GlassRim (gold inner shadow, top glow, top highlight line, hairline)
   and a brand.primary-pressed shadow at opacity.glow. Hover follows Wabi: a slight sink, the cast shadow eases in
   and a glint sweeps across. Press: size.press-scale-down. */
.bglass {
  --h: 56px;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 32px; border-radius: 999px; overflow: hidden;
  color: #000; font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.2px; white-space: nowrap;
  background:
    linear-gradient(to bottom, rgba(249,233,189,0) 35%, rgba(249,233,189,.42) 100%),
    linear-gradient(to bottom, #FFD21F, #F7B400 70%);
  -webkit-backdrop-filter: blur(10px) saturate(1.6); backdrop-filter: blur(10px) saturate(1.6);
  box-shadow:
    inset 0 0 0 .6px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(249,233,189,.7),
    inset 0 5px 4px -3px rgba(249,233,189,.8),
    inset 0 0 6px 2px rgba(211,156,10,.25),
    0 2px 4px rgba(211,156,10,.4);
  transition: transform 320ms var(--ease-q), box-shadow 320ms var(--ease-q);
  -webkit-tap-highlight-color: transparent; outline: 2px solid transparent; outline-offset: 3px;
}
.bglass::before { /* glint */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(-75deg, transparent 30%, rgba(255,255,255,.55) 45% 52%, transparent 66%) 120% 0 / 250% 100% no-repeat;
  transition: background-position 800ms var(--ease-q);
}
.bglass .ico { width: 19px; height: 19px; flex: none; margin-top: -2px; }
.bglass-label { position: relative; }
.bglass:hover { transform: scale(.975);
  box-shadow:
    inset 0 0 0 .6px rgba(0,0,0,.16), inset 0 1px 0 rgba(249,233,189,.7), inset 0 5px 4px -3px rgba(249,233,189,.8),
    inset 0 0 6px 2px rgba(211,156,10,.25), 0 10px 22px -6px rgba(211,156,10,.55), 0 2px 4px rgba(211,156,10,.35); }
.bglass:hover::before { background-position: -20% 0; }
.bglass:active { transform: scale(.96); transition-duration: 120ms; }
.bglass:focus-visible { outline-color: rgba(25,25,25,.58); }
.bglass--compact { --h: 44px; padding: 0 18px; font-size: 15px; letter-spacing: -0.15px; }
@media (min-width: 1200px) {
  .bglass { --h: 64px; padding: 0 40px; font-size: 19px; }
  .bglass .ico { width: 22px; height: 22px; }
  .bglass--compact { --h: 48px; padding: 0 22px; font-size: 16px; }
  .nav-logo img { height: 40px; }
}

/* ══ Download button that expands into the App Store QR code ═══════
   Desktop with a mouse only (hover + focus-within). The capsule keeps its place in the layout (.dl is sized by main.js to
   the collapsed button, --w0/--h0) and the anchor grows over what is below it: the capsule turns into a card, then the
   QR code settles in. Touch and no-JS: a plain link, the QR block stays hidden. */
.dl { position: relative; }
.dl .dl-row { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); flex: none; }
.dl .dl-qr { display: none; }
@media (hover: hover) and (pointer: fine) {
  .dl[data-ready] { width: var(--w0); height: var(--h0); }
  .dl[data-ready]:hover, .dl[data-ready]:focus-within { z-index: 30; }
  .dl[data-ready] .dl-btn {
    position: absolute; top: 0; left: 50%; translate: -50% 0;
    width: var(--w0); height: var(--h0); padding: 0; border-radius: calc(var(--h0) / 2);
    flex-direction: column; align-items: center; justify-content: flex-start; gap: 0;
    transition: width 560ms var(--ease-expo), height 560ms var(--ease-expo), border-radius 560ms var(--ease-expo),
      transform 320ms var(--ease-q), box-shadow 420ms var(--ease-q);
  }
  .dl[data-ready]:hover .dl-btn, .dl[data-ready]:focus-within .dl-btn {
    width: max(var(--w0), 248px); height: calc(var(--h0) + 196px); border-radius: 34px; transform: none;
    box-shadow:
      inset 0 0 0 .6px rgba(0,0,0,.16), inset 0 1px 0 rgba(249,233,189,.7), inset 0 5px 4px -3px rgba(249,233,189,.8),
      inset 0 0 6px 2px rgba(211,156,10,.25), 0 22px 44px -12px rgba(211,156,10,.6), 0 4px 10px rgba(211,156,10,.3);
  }
  .dl[data-ready] .dl-btn:active { transform: scale(.985); }
  /* in the header the button sits at the right edge: it grows leftwards, anchored to the right */
  .dl--end[data-ready] .dl-btn { left: auto; right: 0; translate: none; }
  .dl[data-ready] .dl-qr {
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 2px;
    opacity: 0; transform: translateY(-12px) scale(.92); transform-origin: top center; pointer-events: none;
    transition: opacity 140ms var(--ease-q), transform 240ms var(--ease-q);
  }
  .dl[data-ready]:hover .dl-qr, .dl[data-ready]:focus-within .dl-qr {
    opacity: 1; transform: none;
    transition: opacity 320ms var(--ease-q) 170ms, transform 560ms var(--ease-expo) 120ms;
  }
  .dl-qr img { box-sizing: content-box; width: 132px; height: 132px; padding: 10px; background: #fff; border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 6px 16px -6px rgba(111,85,29,.35); }
  .dl-qr small { font-size: 12.5px; font-weight: 500; letter-spacing: -0.1px; color: rgba(0,0,0,.66); }
}

/* ══ Word entrance (Wabi: .fxwrap .ln .w + blur-in) ═════════════════ */
[data-words] .ln { display: block; white-space: nowrap; }
[data-words] .w { display: inline-block; white-space: pre; }
.js [data-words] .w { opacity: 0; filter: blur(12px); transform: translateY(.18em); }
.js [data-words].is-in .w {
  opacity: 1; filter: none; transform: none;
  transition: opacity 900ms var(--ease-expo), filter 900ms var(--ease-expo), transform 1050ms var(--ease-expo);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .copy-in:not([data-words]) { opacity: 0; filter: blur(10px); transform: translateY(18px); }
.js .copy-in.is-in:not([data-words]) {
  opacity: 1; filter: none; transform: none;
  transition: opacity 800ms var(--ease-wabi), filter 800ms var(--ease-wabi), transform 900ms var(--ease-wabi);
  transition-delay: var(--delay, 0ms);
}

/* ══ Hero ═══════════════════════════════════════════════════════════ */
.hero { position: relative; padding-top: 94px; min-height: 100svh; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.hero-title {
  font-family: var(--serif); font-weight: 400; text-align: center;
  font-size: var(--fit, clamp(48px, 8.6vw, 150px)); line-height: .98; letter-spacing: -0.012em;
  color: var(--ink); cursor: default; user-select: none;
}
/* Wabi's letter hover: each letter is a box (.ch) holding its glyph (.g) and a tile (.o). On hover the box widens to
   the tile, the glyph shrinks away and a piece of the app pops in with a slight turn. */
.hero-title .ch { display: inline-block; position: relative; width: var(--w); text-align: center; vertical-align: top;
  perspective: 520px; transition: width 380ms var(--ease-wabi); }
.hero-title .ch.on { width: calc(var(--fs) * var(--wNow, .8)); }
.hero-title .g { display: inline-block; font-style: normal; transform-origin: 50% 62%;
  transition: opacity 220ms var(--ease-q), transform 320ms var(--ease-q), filter 220ms var(--ease-q); transition-delay: 60ms; }
.hero-title .ch.on .g { opacity: 0; transform: translateY(-.22em) scale(.5); filter: blur(4px); transition-delay: 0ms; transition-duration: 160ms, 280ms, 160ms; }
/* The piece: arrives from below with a soft overshoot and a turn; leaves by sinking, shrinking and blurring. */
.hero-title .o {
  --tile: .62em; position: absolute; left: 50%; top: 50%; width: var(--tile); height: var(--tile);
  margin: calc(var(--tile) / -2 + .06em) 0 0 calc(var(--tile) / -2);
  background: center / contain no-repeat; opacity: 0; pointer-events: none; font-style: normal;
  transform: translateY(.32em) rotateX(65deg) rotate(calc(var(--r, 0deg) * -2)) scale(.25); filter: blur(5px);
  transition: opacity 140ms linear 60ms, filter 180ms var(--ease-q), transform 220ms cubic-bezier(.55,0,.75,.25);
}
.hero-title .ch.on .o { opacity: 1; filter: blur(0); transform: translateY(0) rotateX(0deg) rotate(var(--r, 0deg)) scale(1);
  transition: opacity 160ms linear, filter 260ms var(--ease-q), transform 640ms cubic-bezier(.3,1.45,.55,1); }
.hero-title .o.medal { --tile: .8em; filter: drop-shadow(0 .03em .04em rgba(0,0,0,.2)); }
.hero-title .ch:not(.on) .o.medal { filter: blur(5px); }
/* Mini Caixinha cards with real text (BoxHighlightCard, BoxNoteCard, BoxSavedCard) and a plan card (PlanTile). */
.hero-title .o.txt { --tile: .98em; width: var(--tile); height: auto; min-height: calc(var(--tile) * .9);
  margin-top: calc(var(--tile) * -.45); text-align: left; letter-spacing: 0; white-space: normal;
  background: #fff; border-radius: .085em; padding: .07em .075em .065em;
  box-shadow: inset 0 0 0 .006em rgba(0,0,0,.1), 0 .04em .09em rgba(0,0,0,.12);
  display: flex; flex-direction: column; gap: .045em; }
.hero-title .o.txt .q { font-family: var(--serif); font-size: .105em; line-height: 1.38; color: #000; }
.hero-title .o.txt .q mark { background: linear-gradient(transparent 66%, var(--hlc) 66%); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: .04em; }
.hero-title .o.txt .r { font-family: var(--sans); font-size: .068em; font-weight: 600; color: #615D56; display: flex; align-items: center; gap: .4em; }
.hero-title .o.txt .r .dot { width: .75em; height: .75em; border-radius: 50%; background: var(--hlc); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1); }
.hero-title .o.txt .hd { font-family: var(--sans); font-size: .068em; font-weight: 600; color: #6F551D; display: flex; align-items: center; gap: .35em; }
.hero-title .o.txt .hd img { width: 1.2em; height: 1.2em; opacity: .9; }
.hero-title .o.txt .n { font-family: var(--sans); font-size: .088em; line-height: 1.3; color: #000; }
.hero-title .o.txt .it { font-family: var(--serif); font-style: italic; font-size: .09em; line-height: 1.35; color: #615D56; }
.hero-title .o.note { background: #F7F7F6; box-shadow: inset 0 0 0 .006em #CBC7BF, 0 .04em .09em rgba(0,0,0,.12); }
.hero-title .o.plan { --tile: .78em; height: calc(var(--tile) / .78); margin-top: calc(var(--tile) / -1.56); padding: .075em; overflow: hidden; }
.hero-title .o.plan::before { content: ""; position: absolute; inset: 0; background: var(--art) center bottom / cover no-repeat; border-radius: inherit; }
.hero-title .o.plan .pt { position: relative; font-family: var(--serif); font-size: .125em; font-weight: 600; line-height: 1.2; }
.hero-title .o.plan .ps { position: relative; font-family: var(--sans); font-size: .068em; line-height: 1.3; color: #615D56; }
.cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-cta { margin-top: 48px; }
.js .hero-cta { opacity: 0; filter: blur(8px); transform: translateY(10px); }
.js .is-ready .hero-cta, .js.ready .hero-cta { opacity: 1; filter: none; transform: none; transition: all 650ms var(--ease-wabi) 450ms; }

.deck-wrap { position: relative; width: 100%; height: calc(var(--phone-h) + 60px); margin-top: 36px; perspective: 1200px; }
.deck { position: absolute; left: 50%; top: 15px; width: 0; height: var(--phone-h); }
.dcard {
  position: absolute; left: calc(var(--phone-w) / -2); top: 0; width: var(--phone-w); height: var(--phone-h);
  border: 0; padding: 0; background: none; border-radius: 60px;
  transform-origin: 50% 85%;
  transition: transform 900ms var(--ease-wabi), filter 900ms var(--ease-wabi), opacity 900ms var(--ease-wabi);
  outline: 2px solid transparent; outline-offset: 6px;
}
.dcard:focus-visible { outline-color: rgba(25,25,25,.4); }
.dcard[data-slot="0"] { z-index: 3; transform: none; filter: none; opacity: 1; cursor: default; }
.dcard:not([data-slot="0"]) { pointer-events: none; }
.dcard[data-slot="1"] { z-index: 2; transform: translate(-80px, 16px) rotate(-4.5deg) scale(.86); filter: blur(6.75px); opacity: .96; }
.dcard[data-slot="2"] { z-index: 1; transform: translate(80px, 22px) rotate(4.5deg) scale(.86); filter: blur(6.75px); opacity: .92; }
.js .deck:not(.is-in) .dcard { transform: translateY(120px) scale(.92); opacity: 0; }

/* ══ Phone (Wabi: data-phone-frame=glass) ═══════════════════════════ */
.phone {
  position: relative; width: var(--phone-w); height: var(--phone-h); border-radius: calc(var(--k) * 73px);
  background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(236,238,242,.85) 45%, rgba(255,255,255,.95));
  box-shadow: 0 30px 48px -30px rgba(39,52,64,.26), 0 9px 16px -11px rgba(39,52,64,.22),
              inset 0 0 0 1px rgba(255,255,255,.9), inset 0 0 0 2px rgba(25,25,25,.06);
  padding: 9px;
}
.phone::before { /* dynamic island */
  content: ""; position: absolute; z-index: 5; top: calc(9px + var(--k) * 13.5px); left: 50%; width: calc(var(--k) * 128px); height: calc(var(--k) * 38px); transform: translateX(-50%);
  border-radius: calc(var(--k) * 24px); background: #10131a;
  box-shadow: inset 0 0 0 1.5px rgba(80,90,110,.5);
}
.phone::after { /* camera */
  content: ""; position: absolute; z-index: 6; top: calc(9px + var(--k) * 26px); left: calc(50% + var(--k) * 39.5px); width: calc(var(--k) * 12.3px); height: calc(var(--k) * 12.3px); border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #4a5ea8, #141a2c 60%);
}
.screen {
  position: relative; width: 100%; height: 100%; border-radius: calc(var(--k) * 63px); overflow: hidden;
  background: #fff; isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(25,25,25,.06);
}

/* ══ Home, as the app draws it (HomeScreen, PlanTile, NewPlanTile, HomeHeaderPill, native tab bar) ══
   Laid out in points at 402 x 874 and scaled with --k, so every measure below is the app's own (tokens). */
.app402 { position: absolute; left: 0; top: 0; width: 402px; height: 874px; transform: scale(var(--k)); transform-origin: 0 0;
  font-family: var(--sans); color: #000; text-align: left; background: #fff; overflow: hidden; }
.sb { position: absolute; z-index: 20; inset: 0 0 auto 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 52px; }
.sb-time { font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.sb-icons { display: flex; align-items: center; gap: 6px; }
.sb-icons svg { display: block; }
.h-nav { position: absolute; left: 0; right: 0; top: 62px; height: 44px; padding: 0 16px 0 20px; display: flex; align-items: center; justify-content: space-between; }
.h-nav .logo { height: 32px; width: auto; }
.h-pill { height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 6px 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 0 0 .6px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 6px 1px rgba(0,0,0,.05), 0 4px 14px -6px rgba(0,0,0,.18); }
.h-streak { display: flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.h-streak svg { width: 11px; height: 15px; }
.h-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #F9E9BD; font-size: 13px; font-weight: 600; overflow: hidden; }
.h-avatar img { width: 100%; height: 100%; object-fit: cover; }
.h-grid { position: absolute; left: 20px; right: 20px; top: 132px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 20px; }

.tile { position: relative; aspect-ratio: .78; }
.tile-sheet { position: absolute; inset: 0; clip-path: inset(0 -40px -24px -40px); pointer-events: none; }
.tile-sheet::before { content: ""; position: absolute; inset: 8px 4px -8px 8px; border-radius: 24px; background: rgba(0,0,0,.1); transform: rotate(4deg); }
.tile-face { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.16), 0 6px 24px rgba(0,0,0,.08), 0 1px 8px rgba(0,0,0,.06); }
.tile-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tile-face > :not(.tile-art) { position: relative; }
.tile-title { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.27; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-sum { font-size: 12px; line-height: 1.333; color: #615D56; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { margin-top: auto; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; white-space: nowrap;
  background: rgba(255,255,255,.45); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1), inset 0 .5px 0 rgba(255,255,255,.5), 0 2px 8px rgba(0,0,0,.08); }
.status-pill.started { padding-left: 6px; }
.status-pill b { font-weight: 600; color: #000; }
.status-pill .st-txt { color: #615D56; }
.pring { width: 18px; height: 18px; flex: none; }
.pring .track { stroke: rgba(0,0,0,.12); }
.pring .bar { stroke: #000; stroke-linecap: round; transition: stroke-dashoffset 900ms cubic-bezier(.2,.7,.2,1); }

.tile--new .tile-face { background: rgba(0,0,0,.03); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.06); align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.tile--new .tile-sheet { display: none; }
.gcircle { width: 72px; height: 72px; margin: 8px; border-radius: 50%; display: grid; place-items: center; color: #000;
  background: linear-gradient(to bottom, rgba(249,233,189,0) 35%, rgba(249,233,189,.42) 100%), linear-gradient(to bottom, #FFD21F, #F7B400 70%);
  box-shadow: inset 0 0 0 .6px rgba(0,0,0,.16), inset 0 1px 0 rgba(249,233,189,.7), inset 0 5px 4px -3px rgba(249,233,189,.8), inset 0 0 6px 2px rgba(211,156,10,.25), 0 2px 4px rgba(211,156,10,.4); }
.gcircle svg { width: 20px; height: 20px; }
.tile-new-label { font-size: 15px; font-weight: 500; color: #615D56; }

.h-tabbar { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: 292px; height: 62px; padding: 4px; border-radius: 999px; display: flex;
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.9), 0 8px 30px -8px rgba(0,0,0,.18); }
.h-tab { flex: 1; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 10px; font-weight: 600; color: #000; }
.h-tab img { width: 28px; height: 28px; }
.h-tab.on { background: rgba(0,0,0,.07); }
.h-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to top, rgba(255,255,255,.95), rgba(255,255,255,0)); pointer-events: none; }

.js .deck .tile { opacity: 0; transform: translateY(26px) scale(.97); }
.js .deck.is-in .tile { opacity: 1; transform: none; transition: opacity 600ms var(--ease-wabi), transform 800ms var(--ease-wabi); transition-delay: calc(380ms + var(--i) * 90ms); }
.js .deck .dcard.is-replay .tile { opacity: 0; transform: translateY(26px) scale(.97); transition: none; }

/* ══ Plan day: reading (PlanDayScreen + ReadingContent + ReadingLight) and context (ReadingContextScreen) ══ */
.gbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #000; flex: none;
  background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5);
  box-shadow: inset 0 0 0 .6px rgba(0,0,0,.12), inset 0 1.5px 0 #fff, inset 0 0 12px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.06); }
.gbtn svg { width: 18px; height: 18px; }
.gbtn--56 { width: 56px; height: 56px; }
.gbtn--36 { width: 36px; height: 36px; }
.gbtn--36 svg { width: 14px; height: 14px; }
.gbtn--text { font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.gbtn.is-disabled { color: #7E7A72; background: #E2DED5; }
.dh { position: absolute; z-index: 5; left: 0; right: 0; top: 54px; padding: 8px 20px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(#fff 0, #fff 70%, rgba(255,255,255,0)); }
.dh::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 54px; background: #fff; }
.dprog { position: absolute; left: 50%; top: 26px; width: 160px; height: 8px; margin-left: -80px; border-radius: 99px; background: rgba(0,0,0,.12); overflow: hidden; }
.dprog i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: #F4B400; transition: width 700ms var(--ease-q), opacity 300ms; }
.fpill { height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 0; padding: 0; border-radius: 99px; color: #615D56;
  background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 .6px rgba(0,0,0,.12), inset 0 1.5px 0 #fff, inset 0 0 12px rgba(0,0,0,.06); transition: padding 450ms var(--ease-q), gap 450ms var(--ease-q); }
.fpill svg { width: 17px; height: 17px; }
.fpill b { font-size: 15px; font-weight: 600; color: #000; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transform: translateX(-8px);
  transition: max-width 450ms var(--ease-q), opacity 250ms, transform 450ms var(--ease-q); }
.fpill.is-open { padding: 0 12px; gap: 6px; }
.fpill.is-open b { max-width: 90px; opacity: 1; transform: none; }
.fpill.is-active { color: #E07A5F; }
.soft-top, .soft-bottom { position: absolute; z-index: 4; left: 0; right: 0; pointer-events: none; }
.soft-top { top: 0; height: 140px; background: linear-gradient(#fff 60%, rgba(255,255,255,0)); }
.soft-bottom { bottom: 0; height: 150px; background: linear-gradient(rgba(255,255,255,0), #fff 70%); }

.rd { background: #fff; }
.rd-scroll { position: absolute; inset: 0; overflow: hidden; }
.rd-page { position: absolute; left: 0; right: 0; top: 116px; padding: 24px 24px 192px; display: flex; flex-direction: column; gap: 24px;
  transition: transform 900ms var(--ease-q); }
.rd-title { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.2; color: #7E7A72; text-align: center; transition: filter 360ms, opacity 360ms; }
.rd-verse { position: relative; margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 32px; color: #000; transition: filter 360ms var(--ease-q), opacity 360ms var(--ease-q); }
.rd-verse .vn { font-size: 17px; color: #7E7A72; position: relative; top: -6px; }
.rd-verse::before { content: ""; position: absolute; inset: -4px -8px; border-radius: 12px; background: rgba(244,180,0,.16); box-shadow: 0 0 24px rgba(244,180,0,.4); opacity: 0; transition: opacity 300ms; z-index: -1; }
.rd-verse::after { content: ""; position: absolute; left: -8px; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: #F4B400; opacity: 0; transition: opacity 300ms; }
.rd-verse.is-lit::before, .rd-verse.is-lit::after { opacity: 1; }
.rv { animation: rv 700ms cubic-bezier(.2,.9,.25,1) both; }
@keyframes rv { from { opacity: 0; transform: translateY(16px); } }
.rd-bar { position: absolute; z-index: 5; left: 20px; right: 20px; bottom: 50px; height: 56px; display: flex; justify-content: center; gap: 32px; }
.rd-bar .gbtn { transition: transform 450ms cubic-bezier(.3,1.4,.5,1), opacity 300ms; }
.gcta { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; color: #000; font-size: 17px; font-weight: 600;
  background: linear-gradient(to bottom, rgba(249,233,189,0) 35%, rgba(249,233,189,.42) 100%), linear-gradient(#FFD21F, #F7B400 70%);
  box-shadow: inset 0 0 0 .6px rgba(0,0,0,.16), inset 0 1px 0 rgba(249,233,189,.7), inset 0 5px 4px -3px rgba(249,233,189,.8), inset 0 0 6px 2px rgba(211,156,10,.25), 0 2px 4px rgba(211,156,10,.4);
  opacity: 0; transform: scaleX(.3); transition: transform 500ms cubic-bezier(.3,1.35,.5,1), opacity 250ms; }
.gcta svg { width: 18px; height: 18px; }
.rd-bar.is-finish .gbtn { transform: scale(.4); opacity: 0; }
.rd-bar.is-finish .gcta, .gcta.is-on { opacity: 1; transform: none; }
.gcta.is-pressed { transform: scale(.96) !important; }

.cx { position: absolute; inset: 0; z-index: 8; background: #fff; transform: translateX(100%); transition: transform 600ms cubic-bezier(.3,.9,.3,1); box-shadow: -10px 0 30px rgba(0,0,0,.08); }
.cx.is-in { transform: none; }
.cx-scroll { position: absolute; left: 0; right: 0; top: 116px; padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 32px; }
.cx-scroll section { display: flex; flex-direction: column; gap: 12px; }
.cx-h { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.27; }
.cx-p { margin: 0; font-size: 16px; line-height: 25px; color: #000; }
.cx-more { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 600; margin-top: -4px; }
.cx-more svg { width: 12px; height: 12px; }
.cx-q { margin: 0; font-size: 15px; font-weight: 600; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border-radius: 99px; background: #F7F7F6; box-shadow: inset 0 0 0 .5px #CBC7BF;
  font-size: 15px; font-weight: 500; transition: transform 200ms; }
.cx-chip.person { padding-left: 6px; }
.cx-chip .mono { width: 32px; height: 32px; border-radius: 50%; background: #F9E9BD; color: #6F551D; display: grid; place-items: center; font-size: 15px; font-weight: 500; }
.cx-chip .orig { font-size: 22px; font-weight: 600; }
.cx-chip i { width: 1px; height: 24px; background: #CBC7BF; margin: 0 4px; }
.cx-chip.is-pressed { transform: scale(.96); }
.cx-card { padding: 16px; border-radius: 16px; background: #F7F7F6; box-shadow: inset 0 0 0 .5px #CBC7BF; display: flex; flex-direction: column; gap: 16px; }
.cx-card-row { display: flex; gap: 12px; align-items: flex-start; }
.cx-card-row p { margin: 0; font-size: 16px; line-height: 21px; }
.cx-quote { color: #6F551D; flex: none; }
.cx-quote svg { width: 26px; height: 26px; }
.cx-open { height: 56px; border-radius: 99px; background: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 600; }
.cx-bar { position: absolute; z-index: 5; left: 20px; right: 20px; bottom: 50px; height: 56px; }

.wsheet { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.wsheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.2); opacity: 0; transition: opacity 400ms; }
.wsheet-card { position: absolute; left: 0; right: 0; bottom: 0; top: 64px; border-radius: 34px 34px 0 0; background: #fff; padding: 8px 20px 32px; transform: translateY(100%);
  transition: transform 560ms cubic-bezier(.3,.9,.3,1); box-shadow: 0 -8px 30px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.wsheet.is-in .wsheet-scrim { opacity: 1; }
.wsheet.is-in .wsheet-card { transform: none; }
.grab { align-self: center; width: 36px; height: 5px; border-radius: 3px; background: #CBC7BF; margin-bottom: 8px; }
.wsheet-nav { height: 44px; display: flex; align-items: center; margin-bottom: 8px; }
.ws-eyebrow { font-size: 15px; font-weight: 500; color: #6F551D; margin-bottom: 8px; }
.ws-title { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.27; margin-bottom: 24px; }
.ws-orig { padding: 24px 16px; border-radius: 24px; background: #F7F7F6; box-shadow: inset 0 0 0 .5px #CBC7BF; text-align: center; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.ws-orig .o { font-size: 34px; }
.ws-orig .m { font-size: 16px; color: #615D56; }
.ws-q { font-size: 15px; font-weight: 500; color: #615D56; margin-bottom: 8px; }
.ws-p { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 30px; }

/* ══ Focus Mode (FocusSetupContainer, FocusBlockedAppsHero, FocusAppsContent, shield) ══ */
.fsheet { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.fsheet .wsheet-card { top: 58px; padding: 8px 0 0; }
.fs-step { position: absolute; left: 0; right: 0; top: 24px; bottom: 0; padding: 24px 20px 0; display: flex; flex-direction: column; align-items: stretch; transition: opacity 400ms, transform 500ms var(--ease-q); }
.fs-step.is-out { opacity: 0; transform: translateX(-30px); pointer-events: none; }
.fs-step.is-next { opacity: 0; transform: translateX(30px); }
.fhero { position: relative; height: 280px; margin: 0 -20px 16px; }
.fhero.compact { height: 200px; }
.fhero .icon { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px; border-radius: 21.5px; background: url("assets/brand/app-icon.png") center / cover;
  box-shadow: 0 0 32px rgba(244,180,0,.4), 0 4px 16px rgba(0,0,0,.08); z-index: 2; }
.fhero.compact .icon { width: 72px; height: 72px; margin: -36px; border-radius: 16.1px; }
.fhero .ring { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px; border-radius: 21.5px; box-shadow: inset 0 0 0 2px #F4B400;
  animation: fring 2.4s linear infinite; opacity: 0; }
.fhero.compact .ring { width: 72px; height: 72px; margin: -36px; border-radius: 16.1px; animation-duration: 3.6s; }
.fhero .ring:nth-child(2) { animation-delay: -.8s; } .fhero .ring:nth-child(3) { animation-delay: -1.6s; }
.fhero.compact .ring:nth-child(2) { animation-delay: -1.2s; } .fhero.compact .ring:nth-child(3) { animation-delay: -2.4s; }
@keyframes fring { from { transform: scale(1); opacity: .4; } to { transform: scale(2.4); opacity: 0; } }
.ftile { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; border-radius: 11.6px; background: var(--c); z-index: 1;
  transform: translate(calc(var(--x) - 50%), calc(var(--y) - 50%)); box-shadow: inset 0 0 0 1px #7E7A72; transition: all 500ms var(--ease-q); }
.fhero.compact .ftile { width: 40px; height: 40px; border-radius: 8.9px; transform: translate(calc(var(--xc) - 50%), calc(var(--yc) - 50%)); }
.ftile::before { content: ""; position: absolute; inset: 24%; background: var(--g, #fff); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transition: opacity 500ms; }
.ftile.is-faded { background: color-mix(in srgb, var(--c) 40%, #E2DED5); box-shadow: none; filter: saturate(.6); opacity: .6; }
.fhero:not(.compact) .ftile.is-faded { transform: translate(calc(var(--x) * 1.1 - 50%), calc(var(--y) * 1.1 - 50%)); }
.ftile.is-locked { background: color-mix(in srgb, var(--c) 40%, #E2DED5); box-shadow: none; filter: saturate(.6); }
.ftile.is-faded::before, .ftile.is-locked::before { opacity: .7; }
.ftile .lock { position: absolute; right: -8px; bottom: -8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #E2DED5; display: grid; place-items: center;
  opacity: 0; transform: scale(.4); transition: all 400ms cubic-bezier(.3,1.5,.5,1); }
.ftile .lock svg { width: 11px; height: 11px; }
.ftile.is-locked .lock { opacity: 1; transform: none; }
.fs-title { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.27; text-align: center; margin: 0; }
.fs-sub { font-size: 16px; line-height: 21px; color: #615D56; text-align: center; margin: 8px 0 0; }
.finfo { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; }
.finfo-row { display: flex; gap: 12px; align-items: baseline; }
.finfo-row svg { width: 18px; height: 18px; flex: none; color: #6F551D; position: relative; top: 3px; }
.finfo-row b { display: block; font-size: 15px; font-weight: 600; }
.finfo-row span { display: block; font-size: 13px; line-height: 18px; color: #615D56; margin-top: 2px; }
.fs-actions { position: absolute; left: 20px; right: 20px; bottom: 34px; display: flex; flex-direction: column; gap: 4px; }
.fs-actions .gcta { position: relative; height: 56px; opacity: 1; transform: none; }
.fs-actions .gcta.is-disabled { background: #E2DED5; color: #7E7A72; box-shadow: inset 0 0 0 .6px rgba(0,0,0,.12); }
.fs-text { height: 44px; display: grid; place-items: center; font-size: 17px; font-weight: 600; color: #615D56; }
.fsum { margin-top: 20px; padding: 12px 16px; border-radius: 24px; background: #F7F7F6; box-shadow: inset 0 0 0 .5px #CBC7BF; display: flex; flex-direction: column; gap: 8px; }
.fsum-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fsum-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px; background: #EFEFEE; box-shadow: inset 0 0 0 .5px #CBC7BF; font-size: 13px; }
.fsum-chips span svg { width: 15px; height: 15px; color: #2969C2; }
.fsum-foot { display: flex; justify-content: space-between; align-items: center; }
.fsum-foot .more { font-size: 13px; font-weight: 600; color: #615D56; padding: 4px 12px; border-radius: 99px; background: #EFEFEE; }
.fsum-foot .edit { font-size: 13px; font-weight: 600; min-height: 28px; padding: 0 16px; display: grid; place-items: center; border-radius: 99px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 .6px rgba(0,0,0,.12), inset 0 1.5px 0 #fff; }
.shieldscr { position: absolute; inset: 0; z-index: 12; background: #1B1A17; color: #F1EBDD; display: flex; flex-direction: column; align-items: center; padding: 0 28px;
  opacity: 0; transform: scale(1.04); transition: opacity 450ms, transform 600ms var(--ease-q); }
.shieldscr.is-in { opacity: 1; transform: none; }
.shieldscr .logo { width: 72px; height: 72px; margin-top: 250px; }
.shieldscr .t { font-size: 28px; font-weight: 700; margin-top: 22px; text-align: center; }
.shieldscr .s { font-size: 17px; line-height: 23px; color: #BBB7AC; text-align: center; margin-top: 10px; }
.shieldscr .p { position: absolute; left: 28px; right: 28px; bottom: 112px; height: 52px; border-radius: 14px; background: #F4B400; color: #000; font-size: 17px; font-weight: 600; display: grid; place-items: center; }
.shieldscr .q { position: absolute; left: 28px; right: 28px; bottom: 62px; height: 40px; color: #F7D370; font-size: 17px; display: grid; place-items: center; }

/* ══ Caixinha (BoxScreen, BoxFilterChips, BoxCards) ══ */
.bx { background: #fff; }
.bx-head { position: absolute; left: 20px; right: 20px; top: 70px; }
.bx-head h4 { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.2; }
.bx-head p { margin: 4px 0 0; font-size: 15px; font-weight: 500; color: #615D56; }
.bx-chips { position: absolute; left: 0; right: 0; top: 147px; padding: 0 20px; display: flex; gap: 8px; overflow: hidden; }
.bx-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 99px; font-size: 15px; font-weight: 500;
  background: linear-gradient(#fff, #F7F7F6); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1); }
.bx-chip.on { background: linear-gradient(#F9E9BD, #fff); box-shadow: inset 0 0 0 1.5px #F4B400; }
.bx-chip svg, .bx-chip img { width: 16px; height: 16px; }
.bx-grid { position: absolute; left: 20px; right: 20px; top: 211px; display: flex; gap: 12px; align-items: flex-start; }
.bx-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bcard { position: relative; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1), 0 6px 24px rgba(0,0,0,.08); padding: 12px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; text-align: left; color: #000; }
.bcard .ref { font-size: 12px; font-weight: 600; color: #615D56; line-height: 1.333; }
.bcard .verse-t { font-family: var(--serif); font-size: 17px; line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.bcard .verse-t mark { background: linear-gradient(transparent 68%, var(--hl) 68%); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 4px; }
.bcard .foot { display: flex; align-items: center; gap: 6px; }
.bcard .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hl); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1); flex: none; }
.bcard .row1 { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.bcard .row1 img { width: 16px; height: 16px; opacity: .85; }
.bcard .ver { font-size: 12px; color: #615D56; }
.bcard.note { background: #F7F7F6; box-shadow: inset 0 0 0 .5px #CBC7BF, 0 6px 24px rgba(0,0,0,.08); }
.bcard.note .hd { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #6F551D; }
.bcard.note .hd img { width: 16px; height: 16px; }
.bcard.note .quote { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; color: #615D56; }
.bcard.note .txt { font-size: 16px; line-height: 21px; }
.bcard.note .meta { font-size: 12px; color: #615D56; }
.bcard.photo { padding: 6px; gap: 8px; border-radius: 12px; margin: 4px; transform: rotate(var(--tilt, 2.5deg)); overflow: visible; }
.bcard.photo .ph { aspect-ratio: .75; border-radius: 8px; background: var(--photo) center / cover; }
.bcard.photo .cap { padding: 0 4px 4px; display: flex; flex-direction: column; gap: 2px; }
.bcard.photo .cap b { font-size: 13px; font-weight: 600; }
.bcard.photo .cap span { font-size: 12px; color: #615D56; }
.bcard.photo .seal { position: absolute; right: -6px; top: -6px; width: 26px; height: 26px; }
.bcard.badge { padding: 20px 12px 16px; gap: 4px; align-items: center; text-align: center; }
.bcard.badge img { height: 88px; width: auto; }
.bcard.badge .nm { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.27; }
.bcard.badge .dt { font-size: 12px; color: #615D56; }
@keyframes drop { 0% { transform: translateY(-40px) scale(.7); opacity: 0; filter: blur(6px); } 60% { transform: translateY(4px) scale(1.03); opacity: 1; filter: none; } 100% { transform: none; } }
.bcard.is-drop { animation: drop 700ms var(--ease-wabi) both; }

/* ══ Show sections ══════════════════════════════════════════════════ */
.sec { position: relative; padding-top: 80px; }
.sec-title { font-family: var(--sans); font-weight: 500; font-size: clamp(32px, 4.1vw, 60px); line-height: 1.02; letter-spacing: -0.04em; }
.value-description { margin: 18px auto 0; max-width: 34em; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.45; letter-spacing: -0.015em; color: var(--muted); }
.value-description.has-line-break { max-width: 42em; }
@media (max-width: 720px) { .br-desk { display: none; } }

.strike { position: relative; display: inline-block; }
.strike::after {
  content: ""; position: absolute; left: -3%; width: 106%; top: 54%; height: .12em; border-radius: 1em;
  background: var(--coral-500); transform-origin: left center; transform: translateY(-50%) scaleX(0) rotate(-1.4deg);
}
.strike.is-struck::after { transform: translateY(-50%) scaleX(1) rotate(-1.4deg); transition: transform 700ms var(--ease-expo) 700ms; }

/* ── Story plate ── */
.plate { position: relative; height: calc(var(--phone-h) + 114px); margin-top: -40px; display: grid; place-items: center; overflow: hidden; }
.story-plate::before { /* background "dream": soft light behind the phones */
  content: ""; position: absolute; inset: 8% 6% 4%; z-index: 0; border-radius: 50%; filter: blur(60px); opacity: .9;
  background: radial-gradient(40% 50% at 30% 60%, var(--glow-a), transparent 70%), radial-gradient(40% 50% at 70% 45%, var(--glow-b), transparent 70%);
}
.story-plate[data-background="dawn"] { --glow-a: rgba(249,233,189,.75); --glow-b: rgba(214,225,255,.7); }
.story-plate[data-background="ember"] { --glow-a: rgba(245,214,205,.8); --glow-b: rgba(249,233,189,.6); }
.ribbon-plate[data-background="sunrise"] { --glow-a: rgba(249,233,189,.7); --glow-b: rgba(255,241,235,.9); }
.plate .phone { z-index: 2; }
.ghost { position: absolute; z-index: 1; top: 50%; left: 50%; filter: blur(9px); opacity: .8; pointer-events: none; }
.ghost--l { transform: translate(calc(-50% - 210px), -48%) scale(.88); }
.ghost--r { transform: translate(calc(-50% + 210px), -48%) scale(.88); }

/* the phone sits near the top of the plate and the replay/pause controls sit centred under it */
.story-plate { height: calc(var(--phone-h) + 92px); margin-top: 24px; align-items: start; padding-top: 0; }
.story-plate .ghost { top: calc(var(--phone-h) / 2); }
.story-controls { position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: row; gap: 12px; }
.story-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.95); cursor: pointer; display: grid; place-items: center; color: #444;
  background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 -3px 4px rgba(255,255,255,.8), 0 8px 18px -6px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04);
  transition: transform 240ms var(--ease-q);
}
.story-btn:hover { transform: scale(.95); }
.story-btn:focus-visible { outline: 2px solid rgba(25,25,25,.5); outline-offset: 2px; }
.story-btn svg { width: 18px; height: 18px; }
.story-btn .i-play { display: none; }
.story-plate.is-paused .story-btn .i-play { display: block; }
.story-plate.is-paused .story-btn .i-pause { display: none; }

/* ── Ribbon (Wabi: ios-widget-ribbon, arch) ── */
.sec--ribbon { padding-top: 190px; }
.ribbon-plate { height: calc(var(--phone-h) + 114px); }
.ribbon { position: absolute; inset: 0; z-index: 1; touch-action: pan-y; cursor: grab; }
.ribbon.is-dragging { cursor: grabbing; }
.ribbon-belt { position: absolute; left: 50%; top: 255px; width: 0; height: 0; }
.rb-item {
  position: absolute; left: -64px; top: -64px; width: 128px; height: 128px; border-radius: 30px; border: 0; padding: 0;
  cursor: pointer; will-change: transform; background: #fff; overflow: hidden; text-align: left;
  box-shadow: 0 18px 30px -16px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.04);
  outline: none;
}
.rb-item:focus-visible { box-shadow: 0 0 0 3px rgba(25,25,25,.45); }
.phone--box { z-index: 2; margin-top: 60px; pointer-events: none; }

/* ══ Continuity (Wabi: desktop-continuity) ═══════════════════════════ */
.continuity { position: relative; overflow: hidden; padding: 100px 0 0; min-height: 813px; background: #f3f5fa; }
.atmosphere { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.continuity > *:not(.atmosphere) { position: relative; z-index: 1; }
.continuity-copy h2 { font-weight: 500; font-size: clamp(28px, 3.3vw, 48px); letter-spacing: -0.04em; line-height: 1.05; }
.continuity-copy p { margin-top: 18px; font-size: clamp(16px, 1.98vw, 24px); color: var(--muted); letter-spacing: -0.015em; }
.continuity-visual { position: relative; width: min(100% - 32px, 980px); height: 600px; margin: 40px auto 0; }
.continuity-visual { height: calc(var(--phone-h) + 70px); }
.continuity-visual .phone { position: absolute; top: 0; }
/* three phones: the context step (left) and the word sheet (right) lean behind the Bible tab (center, live) */
.continuity-visual .cv-c { z-index: 2; left: 50%; top: 0; transform: translateX(-50%); }
.continuity-visual .cv-a { z-index: 1; left: calc(50% - var(--phone-w) * .85); top: 34px; transform: translateX(-50%) rotate(-5deg) scale(.9); }
.continuity-visual .cv-b { z-index: 1; left: calc(50% + var(--phone-w) * .85); top: 34px; transform: translateX(-50%) rotate(5deg) scale(.9); }
.rb-item { width: 140px; height: auto; left: -70px; top: -90px; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.rb-inner { width: 175px; zoom: .8; pointer-events: none; }
.rb-item:focus-visible { box-shadow: none; outline: 3px solid rgba(25,25,25,.45); outline-offset: 4px; border-radius: 16px; }

/* the closing and the footer share the brand mesh, transparent at the top and full at the bottom */
.end { position: relative; isolation: isolate; overflow: hidden; }
.end-mesh { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: 72%; transform-origin: 40% 70%; animation: mesh-drift 24s ease-in-out infinite alternate;
  -webkit-mask: linear-gradient(transparent, #000 55%); mask: linear-gradient(transparent, #000 55%); }
@keyframes mesh-drift { from { transform: scale(1.04) translate(-1.2%, 0); } to { transform: scale(1.1) translate(1.5%, -2%) rotate(.6deg); } }
@media (prefers-reduced-motion: reduce) { .end-mesh { animation: none; } }
.end .footer { border-top: 0; }
/* ══ Closing ════════════════════════════════════════════════════════ */
.closing { min-height: 812px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 16px; }
.closing-title { font-weight: 500; font-size: clamp(40px, 5.4vw, 80px); line-height: 1.1; letter-spacing: -0.04em; }
.closing-title .ln { display: block; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rot-word { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .22em; justify-self: start; white-space: nowrap; }
.rot-av { width: .86em; height: .86em; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: inset 0 .02em .04em rgba(255,255,255,.35), inset 0 -.04em .08em rgba(0,0,0,.18); }
.rot-av svg { width: 60%; height: 60%; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
/* one after the other: the old word leaves first, the new one comes in once it is gone */
.rot-word.out { animation: rot-out 320ms ease-in both; }
.rot-word.in { animation: rot-in 620ms var(--ease-wabi) 300ms both; }
@keyframes rot-out { to { opacity: 0; filter: blur(8px); transform: translateY(-.35em); } }
@keyframes rot-in { from { opacity: 0; filter: blur(8px); transform: translateY(.35em); } }
.store-subtitle { margin-top: 20px; font-size: clamp(17px, 1.9vw, 24px); color: var(--muted); letter-spacing: -0.015em; }
.acquisition { margin-top: 44px; }

/* ══ Footer ═════════════════════════════════════════════════════════ */
.footer { border-top: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(16px, 2.4vw, 32px) 26px; flex-wrap: wrap; }
.footer-legal { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; color: #555; }
.footer-legal a:hover { color: var(--ink); }
.lang-switch { display: inline-flex; gap: 10px; }
.lang-switch a { color: #777; }
.lang-switch a[aria-current] { color: var(--ink); font-weight: 600; }
.footer-legal .dot { color: #aaa; font-size: 10px; }
.footer-social { display: flex; gap: 10px; }
.social { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #333; background: rgba(255,255,255,.7); box-shadow: inset 0 -3px 4px rgba(255,255,255,.8), 0 6px 14px -6px rgba(0,0,0,.2), 0 0 0 1px rgba(0,0,0,.05); transition: transform 240ms var(--ease-q); }
.social:hover { transform: scale(.94); }
.social svg { width: 17px; height: 17px; }

/* ══ Small screens ══════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .nav { height: 76px; }
  .nav-logo img { height: 30px; }
    .hero { padding-top: 104px; }
  .hero-cta { margin-top: 30px; flex-direction: column; align-items: center; gap: 12px; }
  .dcard[data-slot="1"] { transform: translate(-56px, 16px) rotate(-4.5deg) scale(.86); }
  .dcard[data-slot="2"] { transform: translate(56px, 22px) rotate(4.5deg) scale(.86); }
  .ghost--l { transform: translate(calc(-50% - 150px), -48%) scale(.84); }
  .ghost--r { transform: translate(calc(-50% + 150px), -48%) scale(.84); }
  .sec--ribbon { padding-top: 120px; }
  .ribbon-belt { top: 215px; }
  .rb-item { width: 116px; left: -58px; top: -70px; }
  .rb-inner { zoom: .66; }
  .continuity { min-height: 0; padding-bottom: 40px; }
  .continuity-visual { height: 520px; }
  .continuity-visual .cv-a, .continuity-visual .cv-b { display: none; }
  .continuity-visual { height: calc(var(--phone-h) + 30px); }
  .closing { min-height: 640px; }
  .store-subtitle { margin-top: 14px; }
  .acquisition { flex-direction: column; align-items: center; gap: 12px; }
  .footer { flex-direction: column-reverse; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
.ghost, .dcard:not([data-slot="0"]) { contain: layout paint; }

/* No backdrop-filter anywhere on the page (2026-10-17). In Chrome, while scrolling, layers that hold a backdrop-filter
   (the fixed header, the gold buttons, the phones full of glass pills and bars, all inside scaled and clipped screens)
   were dropped for a frame or two and blinked white. Almost all of them sit on white, where the blur showed nothing, so
   the glass is now a slightly more opaque white instead. */
*, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.gbtn, .fpill { background: rgba(255,255,255,.86); }
.h-pill { background: rgba(255,255,255,.88); }
.status-pill { background: rgba(255,255,255,.84); }
.h-tabbar { background: rgba(255,255,255,.92); }
.story-btn { background: rgba(255,255,255,.9); }
