/* Endure landing page: mirrors the iOS app (SF Pro black type, crushed monochrome photos,
   grain, fog, embers, Liquid Glass, blur-in reveals). Dark only, like the app. */

:root {
  --bg: #000;
  --fg: #fff;
  --dim: rgba(255, 255, 255, .55);
  --dim2: rgba(255, 255, 255, .4);
  --tile: #171717;
  --amber: rgb(255, 179, 89);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, system-ui, sans-serif;
  --noise: none; /* transparent speckle tile, generated in landing.js (no blend modes: they made scrolling janky) */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --s: .8; /* phone scale */
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 1em; height: 1em; flex: none; }

/* ---------- motion primitives (Reveal / revealGlass / floating) ---------- */
.reveal, .reveal-glass {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s ease-out var(--d, 0s), transform 1.2s ease-out var(--d, 0s), filter 1.2s ease-out var(--d, 0s);
}
.reveal { filter: blur(14px); }
.in.reveal, .in.reveal-glass { opacity: 1; transform: none; filter: blur(0); }
.f-demo.reveal { filter: none; transition-duration: .9s; }
.float.in { animation: float 4.5s ease-in-out calc(var(--d, 0s) + 1.2s) infinite alternate; }
.float-sm { animation: floatSm 2.5s ease-in-out infinite alternate; }
@keyframes float { from { translate: 0 4px; } to { translate: 0 -4px; } }
@keyframes floatSm { from { translate: 0 3px; } to { translate: 0 -3px; } }

/* ---------- glass ---------- */
.glass, .glass-clear {
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 1px rgba(255, 255, 255, .05), 0 6px 24px rgba(0, 0, 0, .3);
}
.glass-clear { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
/* Inside the 3D phone and on the static demo cards, a live backdrop blur re-renders every frame.
   The content behind never moves relative to them, so a flat tint looks the same and costs nothing. */
.screen .glass, .screen .glass-clear, .screen .glass-circle, .screen .guard-card,
.features .glass, .features .glass-clear, .features .glass-circle {
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.screen .glass, .features .glass { background: rgba(255, 255, 255, .14); }
.screen .glass-clear, .features .glass-clear { background: rgba(255, 255, 255, .1); }

/* ---------- shared atmosphere ---------- */
.grain-page {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background-image: var(--noise); background-size: 128px; opacity: .25;
}
.grain { position: absolute; inset: 0; background-image: var(--noise); background-size: 128px; opacity: .6; pointer-events: none; }
.g30 { opacity: .7; } .g25 { opacity: .6; }

.backdrop { position: absolute; inset: 0; overflow: hidden; }
.backdrop-photo {
  position: absolute; inset: 0;
  background: var(--img) center / cover no-repeat;
  animation: pushIn 18s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(#000 0%, #000 45%, rgba(0, 0, 0, .35) 80%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 45%, rgba(0, 0, 0, .35) 80%, transparent 100%);
}
.backdrop-photo.still { animation-duration: 30s; }
@keyframes pushIn { from { transform: scale(1); } to { transform: scale(1.1); } }

.fog span { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); filter: blur(70px); }
.fog span:nth-child(1) { width: 60vw; height: 30vw; left: 20vw; bottom: 10%; animation: fogA 14s ease-in-out infinite alternate; }
.fog span:nth-child(2) { width: 48vw; height: 24vw; left: 30vw; bottom: -6%; background: rgba(255, 255, 255, .05); filter: blur(60px); animation: fogB 19s ease-in-out infinite alternate; }
@keyframes fogA { from { transform: translateX(-90px); } to { transform: translateX(90px); } }
@keyframes fogB { from { transform: translateX(70px); } to { transform: translateX(-110px); } }
canvas.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- type ---------- */
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
h1, h2, h3 { font-weight: 900; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero .backdrop-photo { left: -10%; right: 30%; opacity: .9; }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 48px); padding-top: max(14px, env(safe-area-inset-top));
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, opacity 1.2s ease-out var(--d, 0s), transform 1.2s ease-out var(--d, 0s), filter 1.2s ease-out var(--d, 0s);
}
.topbar.scrolled {
  background: rgba(0, 0, 0, .72); border-bottom-color: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
.nav-dl {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px 5px 5px; border-radius: 999px;
  background: #fff; color: #000; font-size: 14px; font-weight: 900; white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: transform .25s var(--ease);
}
.nav-dl:hover { transform: scale(1.04); }
.nav-dl:active { transform: scale(.96); }
.nav-dl img { width: 28px; height: 28px; border-radius: 7px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: 4px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.hero-inner {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px;
  padding: 90px clamp(16px, 5vw, 80px) 70px; max-width: 1320px; width: 100%; margin: 0 auto;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin-top: 18px; font-size: clamp(38px, 4.3vw, 64px); line-height: .98; letter-spacing: -.03em; }
.hero h1 span { display: block; }
.lede { margin-top: 24px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.45; font-weight: 500; color: rgba(255, 255, 255, .62); max-width: 460px; }
.ref { margin-top: 14px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .4); }
.ref b { white-space: nowrap; font-size: 10px; font-weight: 800; letter-spacing: 3px; margin-left: 6px; color: rgba(255, 255, 255, .35); }

.store {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 34px;
  padding: 9px 24px 9px 9px; border-radius: 999px; background: #fff; color: #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 40px rgba(255, 255, 255, .12);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.store:hover { transform: scale(1.03); box-shadow: inset 0 1px 0 #fff, 0 12px 50px rgba(255, 255, 255, .2); }
.store:active { transform: scale(.97); }
.store img { width: 44px; height: 44px; border-radius: 11px; }
.store span { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 700; letter-spacing: .3px; opacity: .6; }
.store b { font-size: 18px; font-weight: 900; letter-spacing: -.3px; }
.form-note { margin-top: 12px; padding-left: 20px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .4); }

.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; margin-left: -60px; width: 120px; z-index: 3;
  display: flex; justify-content: center; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 3px; color: rgba(255, 255, 255, .4); white-space: nowrap;
}

/* ---------- 3D phone ---------- */
.hero-phone { display: flex; flex-direction: column; align-items: center; }
.stage { position: relative; perspective: 2000px; perspective-origin: 50% 40%; }
.phone-box { width: calc(421px * var(--s)); height: calc(880px * var(--s)); transform-style: preserve-3d; }
.phone-scale { width: 421px; height: 880px; transform: scale(var(--s)); transform-origin: 0 0; transform-style: preserve-3d; }
.phone-spin { width: 100%; height: 100%; transform-style: preserve-3d; transform: translateY(80px) rotateY(-540deg) rotateX(22deg) scale(.6); }
.phone-spin.go { animation: spinIn 2.6s var(--ease) both; }
/* opacity would flatten the 3D context, so the fade lives on the (flat) stage instead */
.stage { opacity: 0; }
.stage.go { animation: fadeIn .5s ease-out both; }
@keyframes spinIn {
  from { transform: translateY(80px) rotateY(-540deg) rotateX(22deg) scale(.6); }
  to { transform: none; }
}
@keyframes fadeIn { to { opacity: 1; } }
.phone-tilt {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 5deg));
  will-change: transform;
}
.edge, .edge::before, .edge::after { position: absolute; inset: 0; border-radius: 66px; }
/* stacked silhouettes give the frame real thickness at any angle */
.edge { background: linear-gradient(135deg, #5c5c60, #26262a 40%, #4a4a4e 70%, #1d1d20); transform: translateZ(0); }
.face { position: absolute; inset: 0; border-radius: 66px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.front {
  transform: translateZ(7px);
  background: #050505;
  box-shadow: inset 0 0 0 2.5px #6b6b70, inset 0 0 0 4px #1a1a1c, inset 0 0 0 5px #3a3a3e;
}
.face.back {
  transform: rotateY(180deg) translateZ(7px);
  background:
    radial-gradient(120% 70% at 30% 10%, rgba(255, 255, 255, .1), transparent 60%),
    linear-gradient(160deg, #2b2b2f, #18181a 60%, #222225);
  box-shadow: inset 0 0 0 2.5px #6b6b70, inset 0 0 0 5px #222;
}
.cam-plateau {
  position: absolute; top: 26px; left: 26px; width: 178px; height: 178px; border-radius: 52px;
  background: linear-gradient(145deg, #333337, #1b1b1e); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), 0 4px 14px rgba(0, 0, 0, .5);
}
.cam-plateau i {
  position: absolute; width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a4660 0%, #0b0d14 45%, #000 70%);
  box-shadow: 0 0 0 6px #121214, 0 0 0 8px #3c3c40;
}
.cam-plateau i:nth-child(1) { top: 12px; left: 12px; }
.cam-plateau i:nth-child(2) { top: 96px; left: 12px; }
.cam-plateau i:nth-child(3) { top: 54px; left: 96px; }
.cam-plateau b { position: absolute; top: 18px; right: 22px; width: 18px; height: 18px; border-radius: 50%; background: #e8e2d0; opacity: .5; }
.back-logo { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; border-radius: 22px; opacity: .85; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.glare {
  position: absolute; inset: 14px; border-radius: 52px; pointer-events: none; z-index: 30;
  background: linear-gradient(calc(110deg + var(--gx, 0deg)), transparent 30%, rgba(255, 255, 255, .06) 45%, transparent 60%);
}
.floor-shadow {
  width: calc(340px * var(--s)); height: 40px; margin: 10px auto 0; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .1), transparent 70%); filter: blur(10px);
}

/* ---------- inside the phone (393 × 852 pt, same numbers as SwiftUI) ---------- */
.screen {
  position: absolute; top: 14px; left: 14px; width: 393px; height: 852px; border-radius: 52px;
  overflow: hidden; background: #000; isolation: isolate;
  font-family: var(--font); color: #fff; user-select: none;
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 52px;
  font-size: 17px; font-weight: 600; pointer-events: none;
}
.island { position: absolute; top: 11px; left: 50%; width: 126px; height: 37px; margin-left: -63px; border-radius: 20px; background: #000; }
.sb-icons { display: flex; align-items: center; gap: 6px; }
.sb-icons .sig { width: 18px; height: 12px; } .sb-icons .wifi { width: 16px; height: 12px; } .sb-icons .bat { width: 27px; height: 13px; }
.home-indicator { position: absolute; bottom: 8px; left: 50%; width: 139px; height: 5px; margin-left: -70px; border-radius: 3px; background: rgba(255, 255, 255, .85); z-index: 21; }

.scr { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.scr.on { opacity: 1; transform: none; }

.micro { font-size: 10px; font-weight: 700; letter-spacing: 3px; color: rgba(255, 255, 255, .4); }
.micro.wide { font-weight: 800; letter-spacing: 3px; color: rgba(255, 255, 255, .55); }
.micro.wider { font-size: 11px; font-weight: 800; letter-spacing: 4px; }
.dim45 { color: rgba(255, 255, 255, .45) !important; } .dim50 { color: rgba(255, 255, 255, .5) !important; }
.h22 { font-size: 22px; font-weight: 900; letter-spacing: -.5px; }
.h22c { font-size: 22px; font-weight: 900; letter-spacing: -.6px; text-align: center; line-height: 1.12; }
.h26 { font-size: 26px; font-weight: 900; letter-spacing: -.6px; }
.h30 { font-size: 30px; font-weight: 900; letter-spacing: -.8px; margin-top: 6px; }
.h34 { font-size: 34px; font-weight: 900; letter-spacing: -1.1px; margin-top: 6px; line-height: 1.05; }
.h34c { font-size: 34px; font-weight: 900; letter-spacing: -1.1px; text-align: center; margin-top: 12px; }
.h40 { font-size: 40px; font-weight: 900; letter-spacing: -1.2px; line-height: 1; margin-top: 12px; }
.h40c { font-size: 40px; font-weight: 900; letter-spacing: -1.2px; text-align: center; margin-top: 12px; }
.t12 { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .5); }
.t13 { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .5); }
.t14 { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .5); margin-top: 6px; line-height: 1.3; }
.t15 { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .6); margin-top: 14px; line-height: 1.35; }
.t16 { font-size: 16px; font-weight: 800; }
.t17 { font-size: 17px; font-weight: 900; }
.px20 { padding: 0 20px; } .mx20 { margin: 0 20px; }

/* card primitives: MoodyPhoto + CardShading + cardShape */
.card { position: relative; overflow: hidden; border-radius: 28px; isolation: isolate; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .1); pointer-events: none; z-index: 5; }
.card-photo { position: absolute; inset: 0; background: #171717 var(--img) center / cover no-repeat; filter: grayscale(1) contrast(1.25) brightness(.88); }
.card-photo.raw { filter: none; }
.card-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, .5) 50%, transparent 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, .85) 75%);
}
.card-shade::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); background-size: 128px; opacity: .5; }
.tile { background: var(--tile); }
.tile::before { content: ""; position: absolute; inset: 0; background-image: var(--noise); background-size: 128px; opacity: .4; pointer-events: none; }

.small-btn {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
  padding: 10px 18px; font-size: 15px; font-weight: 700; white-space: nowrap;
}
.small-btn svg { font-size: 13px; }
.round-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; }
.btn-prominent {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 22px; padding: 15px; border-radius: 999px; background: #fff; color: #000;
  font-size: 17px; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 24px rgba(255, 255, 255, .12);
  transition: transform .25s var(--ease), background .3s;
}
.btn-prominent svg { font-size: 15px; }
.btn-prominent.pressed { transform: scale(.95); }

/* HOME */
.home-scroll { position: absolute; inset: 0; transition: transform 1.4s var(--ease); }
.scr-home.scrolled .home-scroll { transform: translateY(-590px); }
.altar { position: relative; height: 852px; padding: 0 20px; display: flex; flex-direction: column; }
.altar-bg {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 0%, #000 40%, rgba(0, 0, 0, .45) 72%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 40%, rgba(0, 0, 0, .45) 72%, transparent 100%);
}
.altar-photo { position: absolute; inset: -4%; background: var(--img) center / cover; animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.05) translateY(-3px); } }
.altar-light { position: absolute; inset: 0; background: radial-gradient(320px circle at 50% 0%, rgba(255, 255, 255, .3), transparent); animation: breathe 8s ease-in-out infinite alternate; }
.altar-bg::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 144px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
@keyframes breathe { from { opacity: .65; } to { opacity: .8; } }
.altar-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding-top: 64px; }
.guard-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .9); }
.guard-badge svg { font-size: 11px; }
.streak { position: relative; margin-top: auto; }
.streak-num { font-size: 96px; font-weight: 900; letter-spacing: -4px; line-height: 1; font-variant-numeric: tabular-nums; transition: transform .6s var(--ease), filter .6s; }
.streak-num.bump { animation: bump .9s var(--ease); }
@keyframes bump { 0% { transform: translateY(18px); filter: blur(8px); opacity: 0; } 100% { transform: none; filter: none; opacity: 1; } }
.streak-label { font-size: 11px; font-weight: 800; letter-spacing: 3.5px; color: rgba(255, 255, 255, .55); margin-top: 2px; }
.week { display: flex; gap: 14px; margin-top: 18px; }
.week > div { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.week span { font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, .4); }
.week .today span { color: rgba(255, 255, 255, .9); }
.dot { width: 12px; height: 12px; border-radius: 50%; transition: all .5s; }
.dot.kept { background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .5); }
.dot.today-ring { border: 1.5px solid #fff; }
.dot.future { background: rgba(255, 255, 255, .08); }
.hint { position: relative; display: flex; justify-content: center; align-items: center; gap: 6px; margin: 90px 0 130px; font-size: 10px; font-weight: 800; letter-spacing: 3px; color: rgba(255, 255, 255, .4); }
.hint svg { font-size: 10px; }
.orders { padding: 8px 16px 0; display: flex; flex-direction: column; gap: 12px; }

.prayer-body { position: relative; padding: 20px; z-index: 2; }
.lock-strip {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 999px;
  margin-bottom: 26px; font-size: 13px; font-weight: 800; transition: background .4s;
}
.lock-strip .lk { font-size: 14px; }
.apps { display: flex; }
.apps i { width: 26px; height: 26px; border-radius: 7px; margin-right: -6px; background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 0 0 1.5px #111, inset 0 1px 0 rgba(255, 255, 255, .15); opacity: .6; transition: opacity .4s; }
.apps i:last-child { margin-right: 4px; }
.unlocked .apps i { opacity: 1; }
.sub { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.prayer-card .card-photo { filter: grayscale(1) contrast(1.3) brightness(.78); }

.train-row { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; text-align: left; width: 100%; }
.train-row > div { position: relative; flex: 1; }
.train-row .tick { position: relative; font-size: 28px; transition: transform .3s var(--ease); }
.train-row .t13 { margin-top: 2px; }
.train-row .cool { position: relative; display: none; padding: 7px 12px; font-size: 13px; font-weight: 800; animation: popIn .4s var(--ease); }
.train-row.done .cool { display: inline-flex; }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } }
.train-row.done .tick { transform: scale(1.08); }

/* DRILLS */
.navtitle { position: absolute; top: 54px; left: 0; right: 0; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; z-index: 3; }
.navtitle .round-btn { position: absolute; right: 16px; top: 0; }
.drills-body { position: absolute; top: 110px; left: 0; right: 0; bottom: 0; transition: transform 1.6s var(--ease); }
.scr-drills.scrolled .drills-body { transform: translateY(-120px); }
.drill-row { display: flex; gap: 12px; padding: 14px 20px 0; transition: transform 1.2s var(--ease); }
.scr-drills.slid .drill-row { transform: translateX(-210px); }
.drill-card { flex: none; width: 198px; height: 257px; }
.drill-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 12px 18px; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.meta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .75); margin: 8px 0 14px; }
.meta svg { font-size: 11px; }
.meta.sm { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .65); margin: 0 0 6px; gap: 4px; }
.meta.sm svg + svg, .meta.sm svg:nth-of-type(2) { margin-left: 8px; }
.med-head { margin: 34px 0 14px; }
.med-card { height: 170px; margin-bottom: 12px; }
.med-text { position: absolute; inset: auto 0 0 0; padding: 18px; display: flex; justify-content: space-between; align-items: flex-end; z-index: 2; }
.med-text .micro { margin-top: 6px; letter-spacing: 2.5px; }
.lockin { font-size: 14px; font-weight: 900; padding: 9px 14px; }

/* COUNSEL */
.chat { position: absolute; top: 112px; left: 0; right: 0; padding: 0 16px; display: flex; flex-direction: column; }
.bubble-user {
  align-self: flex-end; max-width: 78%; background: #fff; color: #000; border-radius: 22px;
  padding: 11px 16px; font-size: 16.5px; font-weight: 500; line-height: 1.3;
}
.scr-counsel .bubble-user { opacity: 0; transform: translateY(14px) scale(.96); transition: all .5s var(--ease); }
.scr-counsel .typing { opacity: 0; display: flex; gap: 5px; padding: 18px 4px; transition: opacity .3s; height: 0; overflow: visible; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.reply { margin-top: 16px; font-size: 16.5px; line-height: 1.42; font-weight: 400; color: rgba(255, 255, 255, .92); }
.prayer-block {
  margin-top: 14px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1); font-size: 16px; line-height: 1.42;
}
.scr-counsel .prayer-block { opacity: 0; transition: opacity .5s; }
.prayer-block .pin { margin-top: 12px; padding: 7px 12px; font-size: 14px; font-weight: 700; }
.scr-counsel.s1 .bubble-user { opacity: 1; transform: none; }
.scr-counsel.s2 .typing { opacity: 1; }
.scr-counsel.s3 .typing { opacity: 0; }
.scr-counsel.s4 .prayer-block { opacity: 1; }
[data-stream] .w { opacity: 0; transition: opacity .3s; }
[data-stream] .w.on { opacity: 1; }
.ask {
  position: absolute; left: 16px; right: 16px; bottom: 112px; height: 48px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 18px;
  font-size: 16px; color: rgba(255, 255, 255, .45);
}
.send { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 16px; }

/* GUARD */
.guard-photo {
  position: absolute; inset: 0 0 30% 0; background: var(--img) center 20% / cover;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent);
  animation: pushIn 18s ease-in-out infinite alternate;
}
.guard-body { position: absolute; left: 20px; right: 20px; bottom: 112px; }
.guard-card {
  position: relative; margin-top: 22px; padding: 18px; border-radius: 24px; background: rgba(23, 23, 23, .92);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.gc-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; margin-bottom: 6px; }
.gc-title svg { font-size: 15px; color: rgba(255, 255, 255, .6); }
.gc-title .guard-badge { margin-left: auto; }
.rule { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.rule:last-of-type { border-bottom: 0; }
.rule > div { flex: 1; }
.rule .t12 { margin-top: 2px; }
.rk { font-size: 19px; width: 26px; }
.rl { font-size: 15px; color: rgba(255, 255, 255, .7); transition: all .4s; }
.guard-card .btn-prominent { margin-top: 12px; padding: 13px; font-size: 16px; }

/* LOCK IN */
.lock-photo { position: absolute; inset: 0; background: var(--img) center / cover; animation: pushIn 18s ease-in-out infinite alternate; }
.lock-photo::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.close { position: absolute; top: 62px; left: 20px; width: 36px; height: 36px; font-size: 14px; z-index: 3; }
.lock-body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 30px; text-align: center; }
.verse { font-size: 18px; font-weight: 700; line-height: 1.38; color: rgba(255, 255, 255, .9); margin: 12px 0 10px; }
.verse.sm { font-size: 16px; margin: 8px 0; }
.hold { position: relative; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; margin: 36px 0 20px; touch-action: none; }
.glass-circle {
  background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .4);
}
.ring { position: absolute; inset: 6px; width: 120px; height: 120px; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 3; }
.ring .fill { stroke: #fff; stroke-linecap: round; stroke-dasharray: 364.4; stroke-dashoffset: 364.4; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .6)); transition: stroke-dashoffset .4s ease-out; }
.hold.holding .fill { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s linear; }
.hold.done .fill { stroke-dashoffset: 0; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .9)); }
.hold-icon { font-size: 34px; transition: transform .3s; }
.hold.holding .hold-icon { transform: scale(.9); }

/* TAB BAR */
.tabbar {
  position: absolute; left: 21px; right: 21px; bottom: 26px; height: 62px; border-radius: 999px; z-index: 15;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 4px;
  background: rgba(34, 34, 36, .86); transition: opacity .5s, transform .5s;
}
.scr-lockin.on ~ .tabbar { opacity: 0; transform: translateY(20px); }
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.tab svg { font-size: 23px; }
.tab-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 999px;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: transform .6s var(--ease);
  transform: translateX(calc(var(--tab, 0) * 100%));
}

/* screen picker under the phone */
.screen-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.screen-picker button {
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, .45);
  border: 1px solid transparent; transition: all .4s;
}
.screen-picker button.on { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .14); }

/* ---------- tagline ---------- */
.tagline { padding: 140px 20px 60px; text-align: center; }
.tagline h2 { margin-top: 22px; font-size: clamp(44px, 8vw, 104px); line-height: .95; letter-spacing: -.035em; }
.tagline .dim { color: rgba(255, 255, 255, .35); }

/* ---------- features ---------- */
.features { max-width: 1120px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 80px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding: 70px 0; }
.feature.flip .f-copy { order: 2; }
.f-copy h3 { margin-top: 16px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -.03em; }
.f-copy > p:last-child { margin-top: 18px; font-size: 17px; line-height: 1.5; font-weight: 500; color: rgba(255, 255, 255, .58); max-width: 440px; }
.f-demo { display: flex; flex-direction: column; align-items: center; }
.try { margin-top: 14px; font-size: 10px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: rgba(255, 255, 255, .3); }
.demo-card { width: 100%; max-width: 380px; }
.demo-card .btn-prominent { cursor: pointer; }
.demo-stack { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.demo-drill { width: 230px; height: 299px; }
.demo-train { cursor: pointer; }
.chat-demo { width: 100%; max-width: 400px; padding: 20px; border-radius: 28px; display: flex; flex-direction: column; }
.chat-demo > * { position: relative; }
.chat-demo .pin { align-self: flex-start; margin-top: 14px; padding: 7px 12px; font-size: 14px; }
.lockin-demo { width: 100%; max-width: 380px; height: 520px; }
.lockin-inner { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 28px; text-align: center; }
.lockin-demo .hold { margin: 28px 0 16px; cursor: pointer; }
.guard-card.standalone { width: 100%; max-width: 400px; margin: 0; padding: 20px; background: var(--tile); }

/* ---------- scripture ---------- */
.scripture { position: relative; min-height: 80vh; display: grid; place-items: center; padding: 100px 20px; overflow: hidden; }
.scripture .backdrop-photo { opacity: .7; -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 70%, transparent); }
.scripture blockquote { position: relative; max-width: 900px; text-align: center; font-size: clamp(30px, 4.6vw, 58px); font-weight: 900; line-height: 1.06; letter-spacing: -.03em; }
.scripture cite { display: block; margin-top: 22px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 4px; color: rgba(255, 255, 255, .45); }

/* ---------- final ---------- */
.final { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 120px 16px 80px; overflow: hidden; }
.final .backdrop-photo {
  /* portrait photo: keep it a centred column on wide screens instead of a blown-up crop */
  left: max(0px, calc(50% - 460px)); right: max(0px, calc(50% - 460px)); background-position: center 35%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 100%);
}
.final-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 30vh; }
.final h2 { margin-top: 16px; font-size: clamp(48px, 8vw, 96px); letter-spacing: -.04em; line-height: 1; }
.final .lede { margin-left: auto; margin-right: auto; }
.final .form-note { padding-left: 0; }

.footer {
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
  padding: 30px clamp(16px, 4vw, 48px) 40px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .45);
}
.footer .links { display: flex; gap: 22px; }
.footer a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --s: .66; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 30px; padding-bottom: 80px; }
  .hero-copy { margin: 0 auto; }
  .hero .backdrop-photo { left: 0; right: 0; opacity: .75; }
  .lede { margin-left: auto; margin-right: auto; }
  .form-note { padding-left: 0; }
  .feature, .feature.flip { grid-template-columns: 1fr; padding: 50px 0; }
  .feature.flip .f-copy { order: 0; }
  .f-copy { text-align: center; }
  .f-copy > p:last-child { margin-left: auto; margin-right: auto; }
  .scroll-hint { display: none; }
}
@media (max-width: 480px) {
  :root { --s: .62; }
  .nav-dl-long { display: none; }
  .tagline { padding-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
}

/* animated layers get their own compositor layer */
.backdrop-photo, .fog span, .altar-photo, .altar-light, .guard-photo, .lock-photo,
.home-scroll, .drills-body, .drill-row, .phone-spin, .float.in, .float-sm { will-change: transform; }
.altar-light { will-change: opacity; }


/* ---------- mobile hero: button and phone above the fold ---------- */
@media (max-width: 900px) {
  .hero-inner { gap: 10px; padding-top: 76px; padding-bottom: 40px; align-content: start; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); margin-top: 10px; }
  .lede { margin-top: 12px; font-size: 16px; max-width: 340px; }
  .ref { display: none; }
  .store { margin-top: 20px; }
  .form-note { margin-top: 8px; }
}
@media (max-width: 480px) {
  :root { --s: .56; }
}

/* ---------- sticky download bar (mobile only) ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 22px;
  background: rgba(20, 20, 20, .82); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
  transform: translateY(140%); transition: transform .35s ease;
}
.sticky-cta img { width: 40px; height: 40px; border-radius: 10px; }
.sticky-cta span { flex: 1; display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.sticky-cta b { font-size: 15px; font-weight: 800; }
.sticky-cta small { font-size: 12px; color: rgba(255, 255, 255, .55); font-weight: 600; }
.sticky-cta em { font-style: normal; background: #fff; color: #000; font-weight: 900; font-size: 15px; padding: 9px 22px; border-radius: 999px; }
.sticky-cta.show { transform: none; }
@media (max-width: 900px) { .sticky-cta { display: flex; } }
