/* Grace Before — landing page.
   Tokens follow DESIGN.md (Still Waters) and match redesign-onboard / redesign-main-screens. */
@font-face { font-family: 'Instrument Serif'; src: url('assets/fonts/InstrumentSerif-Regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/fonts/InstrumentSerif-Italic.ttf') format('truetype'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('assets/fonts/Newsreader-Regular.ttf') format('truetype'); font-style: normal; font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('assets/fonts/Newsreader-Italic.ttf') format('truetype'); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --canvas: #F4F7F8;
  --hush: #CFE0EA;
  --primary: #3E5967;
  --primary-press: #334B57;
  --deep: #2D4450;
  --ink: #203641;
  --muted: #526873;
  --line: #D8E3E9;
  --white: #FFFFFF;
  --tint: #E7EFF3;
  --tint-2: #EEF4F7;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --read: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow-card: 0 1px 2px rgba(32, 54, 65, .04), 0 10px 28px -14px rgba(32, 54, 65, .16);
  --shadow-cta: 0 10px 24px -10px rgba(32, 54, 65, .55);
  --gutter: clamp(20px, 5vw, 48px);
  --s: .8; /* phone scale */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }

/* ---------- Type ---------- */
.display-xl { font-size: clamp(50px, 10.4vw, 124px); font-weight: 700; letter-spacing: -.045em; line-height: .94; text-wrap: balance; }
.display-l { font-size: clamp(34px, 5.4vw, 62px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.display-xl em, .display-l em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.13em; letter-spacing: -.015em; color: var(--primary); }
.lead { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; color: var(--muted); text-wrap: balance; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--primary); }
.fine { font-size: 13.5px; color: var(--muted); text-align: center; text-wrap: balance; }
.fine.left { text-align: left; }
/* The pause mark: the icon's twin windows */
.ii { display: inline-flex; gap: 3px; }
.ii i { width: 5px; height: 14px; border-radius: 3px 3px 1px 1px; background: var(--primary); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 28px; background: var(--primary); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.01em; box-shadow: var(--shadow-cta); transition: transform .2s var(--ease), background .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { background: var(--primary-press); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn i { font-size: 20px; }
.btn-sm { height: 40px; padding: 0 18px; border-radius: 20px; font-size: 14.5px; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--primary); box-shadow: none; padding: 0 20px; }
.btn-ghost:hover { background: rgba(62, 89, 103, .08); transform: none; }
.btn-ghost i { font-size: 17px; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 8px 20px -10px rgba(10, 20, 26, .5); }
.btn-light:hover { background: #EEF3F5; }

/* ---------- Nav (floating, frosted — the app's tab bar) ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 8px; width: min(760px, calc(100% - 24px)); padding: 6px 6px 6px 10px; border-radius: 30px;
  background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 0 0 .5px rgba(32, 54, 65, .08), 0 12px 32px -18px rgba(32, 54, 65, .25); transition: box-shadow .3s, background .3s; }
.nav.scrolled { background: rgba(255, 255, 255, .78); box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 0 0 .5px rgba(32, 54, 65, .1), 0 14px 34px -14px rgba(32, 54, 65, .38); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 23px; line-height: 1; color: var(--ink); white-space: nowrap; }
.brand img { border-radius: 8px; box-shadow: 0 4px 10px -5px rgba(32, 54, 65, .6); }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { height: 40px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 20px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(62, 89, 103, .08); color: var(--ink); }
.nav .btn-sm { margin-left: 4px; }
@media (max-width: 720px) { .nav-links { display: none; } .nav .btn-sm { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(118px, 17vh, 176px); text-align: center; background: linear-gradient(180deg, #FAFCFC 0%, var(--canvas) 46%); }
.hero-copy { position: relative; z-index: 3; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; }
.hero-copy .display-xl { margin-top: 18px; }
.hero-copy .lead { max-width: 30em; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.hero-copy .fine { margin-top: 16px; }

.hero-stage { position: relative; height: calc(876px * var(--s) * .8); margin-top: clamp(36px, 6vh, 64px); overflow: hidden; }
.lake { position: absolute; inset: -4% 0 -8%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 42%); mask-image: linear-gradient(to bottom, transparent 0%, #000 42%); }
.lake img { width: 100%; height: 100%; object-fit: cover; object-position: center 88%; }
.reeds { position: absolute; left: 50%; bottom: -2%; width: max(100%, 1180px); transform: translateX(-50%); z-index: 4; pointer-events: none; }
.reeds img { width: 100%; height: auto; }
.mist { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 5; pointer-events: none; background: linear-gradient(to top, var(--canvas) 6%, rgba(244, 247, 248, .82) 38%, rgba(244, 247, 248, 0)); }
.hero-phone { position: absolute; left: 50%; top: 0; margin-left: calc(417px * var(--s) / -2); z-index: 3; }

.float { position: absolute; top: 20%; z-index: 3; }
.float-l { right: calc(50% + 417px * var(--s) / 2 + 34px); }
.float-r { left: calc(50% + 417px * var(--s) / 2 + 34px); top: 38%; }
.glass { text-align: left; padding: 16px 18px; border-radius: 26px; color: var(--ink);
  background: rgba(255, 255, 255, .56); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 24px 44px -24px rgba(32, 54, 65, .45); }
.glass-top { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--primary); }
.glass-top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: breathe 2.4s ease-in-out 3; }
.tiles { display: flex; gap: 10px; margin-top: 14px; }
.tiles .app { position: relative; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-size: 28px; }
.tiles .fb { background: #1877F2; font-size: 31px; }
.tiles .tt { background: #111; }
.tiles .ig { background: radial-gradient(circle at 28% 108%, #FEDA75 0%, #FA7E1E 24%, #D62976 52%, #962FBF 76%, #4F5BD5 100%); }
.tiles .app b { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; font-size: 11px; box-shadow: 0 0 0 2.5px #fff; }
.amen { font-family: var(--serif); font-size: 46px; line-height: 1; }
.glass-sub { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--primary); }
@keyframes breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@media (max-width: 980px) { .float { display: none; } }

/* ---------- Phone (iPhone frame from the prototypes, scaled by --s) ---------- */
.phone { width: calc(417px * var(--s)); height: calc(876px * var(--s)); flex: none; }
.device { position: relative; width: 417px; height: 876px; padding: 12px; border-radius: 68px; background: #1B2126; transform: scale(var(--s)); transform-origin: top left; text-align: left;
  box-shadow: inset 0 0 0 2px #3A444B, inset 0 0 0 5px #0B0F12, 0 50px 90px -34px rgba(20, 40, 52, .55), 0 24px 34px -22px rgba(20, 40, 52, .35); }
.side-btn { position: absolute; width: 4px; background: #2A3238; border-radius: 2px; }
.side-btn.a { left: -3px; top: 140px; height: 30px; } .side-btn.b { left: -3px; top: 200px; height: 58px; }
.side-btn.c { left: -3px; top: 270px; height: 58px; } .side-btn.d { right: -3px; top: 230px; height: 90px; }
.display { position: relative; width: 393px; height: 852px; border-radius: 56px; overflow: hidden; background: var(--canvas); color: var(--ink); isolation: isolate; font-size: 16px; line-height: 1.35; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 124px; height: 36px; background: #000; border-radius: 20px; z-index: 90; }
.statusbar { position: absolute; top: 0; left: 0; right: 0; height: 54px; padding: 18px 34px 0 46px; display: flex; justify-content: space-between; z-index: 85; font-weight: 600; font-size: 16.5px; }
.sb-icons { display: flex; gap: 6px; font-size: 17px; align-items: center; }
.view { position: absolute; inset: 0; overflow: hidden; background: var(--canvas); padding: 54px 0 0; }
.pad { padding: 0 20px; }
.display .over { font-size: 14px; color: var(--muted); font-weight: 500; }
.display .h1 { font-size: 28px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; margin-top: 4px; }
.display .h1 em, .card-title em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.14em; letter-spacing: -.005em; color: var(--primary); }
.h-large { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.display .body { font-size: 16px; line-height: 1.45; color: var(--muted); }
.display .small { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.card { background: var(--white); border-radius: 24px; box-shadow: var(--shadow-card); }
.cta { height: 56px; border-radius: 28px; background: var(--primary); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: var(--shadow-cta); width: 100%; }
.cta.light { background: #fff; color: var(--ink); box-shadow: 0 8px 20px -10px rgba(10, 20, 26, .5); }
.cta i { font-size: 19px; }
.cta .soft { opacity: .7; font-weight: 500; }
.link-btn { color: var(--primary); font-size: 15.5px; font-weight: 600; height: 44px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.link-btn.muted { color: var(--muted); font-weight: 500; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 12px; }
.sec-h h5 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.sec-h span { font-size: 14.5px; color: var(--muted); }
.sec-h .act { color: var(--primary); font-weight: 600; }

.tabbar { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 70; display: flex; gap: 4px; padding: 6px; border-radius: 34px;
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 12px 32px -12px rgba(32, 54, 65, .35), 0 0 0 .5px rgba(32, 54, 65, .08); }
.tabbar > span { width: 96px; height: 54px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); }
.tabbar > span i { font-size: 23px; }
.tabbar > span span { font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.tabbar > span.on { background: rgba(62, 89, 103, .1); color: var(--primary); }

/* Today */
.today-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 20px 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 17px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 6px 14px -8px rgba(32, 54, 65, .6); flex: none; }
.scene { position: relative; margin: 20px 16px 0; height: 392px; border-radius: 30px; overflow: hidden; color: #fff; box-shadow: 0 30px 50px -30px rgba(32, 54, 65, .7); background: linear-gradient(170deg, #7D98A6, #3E5967 60%, #2D4450); }
.scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32, 54, 65, .38) 0%, rgba(32, 54, 65, 0) 20%, rgba(32, 54, 65, 0) 32%, rgba(29, 47, 57, .86) 72%, rgba(29, 47, 57, .94) 100%); }
.scene .in { position: absolute; inset: 0; z-index: 2; padding: 18px 20px 20px; display: flex; flex-direction: column; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: 16px; font-size: 13.5px; font-weight: 600; align-self: flex-start;
  background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: breathe 2.4s ease-in-out 3; }
.scene .meta { margin-top: auto; font-size: 13.5px; font-weight: 500; opacity: .85; display: flex; gap: 8px; align-items: center; }
.card-title { font-size: 28px; font-weight: 600; letter-spacing: -.025em; line-height: 1.12; margin-top: 6px; }
.card-title em { color: #fff; }
.scene .desc { font-size: 15.5px; line-height: 1.4; opacity: .88; margin-top: 8px; }
.scene .cta { margin-top: 18px; }
.under-scene { display: flex; justify-content: center; margin-top: 6px; }
.checkin { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; margin: 0 16px; }
.checkin img { width: 40px; height: 40px; }
.checkin .tx { flex: 1; }
.checkin .tx small { display: block; font-size: 13px; color: var(--muted); }
.checkin .tx b { font-size: 15.5px; font-weight: 600; }
.pill-btn { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--tint); color: var(--primary); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; }

/* Pauses */
.large-head { padding: 10px 20px 0; }
.large-head .body { margin-top: 6px; }
.apps-card { padding: 16px; display: flex; align-items: center; gap: 14px; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 32px); gap: 6px; }
.apps-grid .app { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 15px; }
.apps-card b { display: block; font-size: 16px; font-weight: 600; }
.apps-card small { font-size: 13.5px; color: var(--muted); }
.times { display: flex; flex-direction: column; gap: 10px; }
.time-card { padding: 16px 16px 14px 18px; }
.time-top { display: flex; align-items: center; justify-content: space-between; }
.time-top .t { font-size: 30px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.time-top .t span { font-size: 16px; font-weight: 600; margin-left: 4px; color: var(--muted); letter-spacing: 0; }
.time-top .lbl { font-size: 13.5px; color: var(--muted); margin-top: 1px; }
.days { display: flex; gap: 6px; margin-top: 12px; }
.days span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; background: var(--tint); color: #8FA2AC; }
.days span.on { background: var(--primary); color: #fff; }
.switch { width: 51px; height: 31px; border-radius: 16px; background: #D4DEE3; position: relative; flex: none; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(20px); }

/* Shield */
.view.shield { padding: 0; display: flex; flex-direction: column; align-items: center; text-align: center; background: linear-gradient(180deg, #E1EAEF, var(--canvas) 55%); }
.shield-icon { width: 84px; height: 84px; border-radius: 20px; overflow: hidden; margin-top: 250px; box-shadow: 0 16px 30px -14px rgba(32, 54, 65, .55); }
.shield h4 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 26px; }
.shield p { font-size: 16px; line-height: 1.45; color: var(--muted); margin: 10px 36px 0; }
.shield-btns { position: absolute; left: 20px; right: 20px; bottom: 44px; display: flex; flex-direction: column; gap: 6px; }

/* Prayer reader */
.prayer-top { position: absolute; top: 0; left: 0; right: 0; height: 250px; overflow: hidden; }
.prayer-top img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .9;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%); mask-image: linear-gradient(to bottom, #000 35%, transparent 100%); }
.navbar { position: relative; z-index: 3; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.circle-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 20px; color: var(--ink); box-shadow: var(--shadow-card); }
.circle-btn.aa { font-family: var(--read); font-size: 18px; }
.prayer-head { position: relative; z-index: 2; padding: 64px 26px 0; }
.prayer-head .over { color: var(--ink); opacity: .75; }
.prayer-title { font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1.02; letter-spacing: -.01em; margin-top: 8px; color: var(--ink); }
.prayer-body { padding: 18px 26px 0; font-family: var(--read); font-size: 19px; line-height: 1.62; color: var(--ink); }
.prayer-body p + p { margin-top: .85em; }
.prayer-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 60; padding: 46px 20px 38px; background: linear-gradient(to top, var(--canvas) 66%, rgba(244, 247, 248, 0)); }
.prayer-foot .small { text-align: center; margin-top: 10px; }

/* Amen */
.view.done-view { background: linear-gradient(180deg, #DCE7ED 0%, #EAF1F4 38%, var(--canvas) 62%); display: flex; flex-direction: column; }
.done-art { position: relative; height: 230px; display: grid; place-items: center; margin-top: 10px; flex: none; }
.done-art img { width: 180px; height: 180px; object-fit: contain; position: relative; z-index: 2; }
.done-art .wave { position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 1.5px solid rgba(62, 89, 103, .25); transform: scale(1.1); opacity: .55; }
.done-art .wave.b { transform: scale(1.45); opacity: .32; }
.done-art .wave.c { transform: scale(1.8); opacity: .14; }
.on .done-art .wave { animation: wave 2.6s var(--ease) both; }
.on .done-art .wave.b { animation-delay: .45s; }
.on .done-art .wave.c { animation-delay: .9s; }
@keyframes wave { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.done-title { font-family: var(--serif); font-size: 64px; font-weight: 400; line-height: 1; text-align: center; }
.done-sub { text-align: center; font-size: 17px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.unlock-pill { display: flex; align-items: center; gap: 12px; margin: 24px 20px 0; padding: 14px 16px; }
.unlock-pill .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.unlock-pill b { display: block; font-size: 16px; font-weight: 600; }
.unlock-pill small { font-size: 13.5px; color: var(--muted); }
.week-card { padding: 18px 18px 16px; }
.streak { display: flex; align-items: center; gap: 10px; }
.streak .flame { width: 40px; height: 40px; border-radius: 13px; background: var(--tint); display: grid; place-items: center; color: var(--primary); font-size: 22px; }
.streak b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; display: block; line-height: 1.1; }
.streak small { font-size: 13px; color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 16px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); font-weight: 500; }
.wd i { width: 34px; height: 34px; border-radius: 50%; border: 1.5px dashed #B7C7D0; display: grid; place-items: center; font-style: normal; font-size: 16px; color: #fff; }
.wd.done i { background: var(--primary); border: 1.5px solid var(--primary); }
.wd.today { color: var(--ink); font-weight: 700; }
.done-foot { margin-top: auto; padding-bottom: 38px; }

/* ---------- Sections ---------- */
section { position: relative; }
.sec-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.sec-head .display-l { margin-top: 14px; }
.sec-head .lead { margin-top: 18px; max-width: 30em; }

/* How it works: sticky phone, scrolling steps */
.how { padding-top: clamp(72px, 12vh, 140px); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); margin-top: 24px; }
.step { min-height: 78vh; display: flex; align-items: center; }
.step-copy { max-width: 400px; margin-left: auto; opacity: .3; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.step.on .step-copy { opacity: 1; transform: none; }
.num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 25px; line-height: 1; background: var(--white); color: var(--primary); box-shadow: var(--shadow-card); transition: background .4s, color .4s; }
.step.on .num { background: var(--primary); color: #fff; }
.step h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin-top: 20px; text-wrap: balance; }
.step p { font-size: 18px; line-height: 1.5; color: var(--muted); margin-top: 12px; text-wrap: pretty; }
.step-phone { display: none; }
.how-sticky { position: sticky; top: calc(50vh - 876px * var(--s) / 2 + 20px); height: calc(876px * var(--s)); align-self: start; margin: calc(39vh - 876px * var(--s) / 2) 0; display: flex; align-items: center; gap: 28px; }
.how-sticky .halo { position: absolute; left: calc(417px * var(--s) / 2); top: 50%; width: 640px; height: 640px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(207, 224, 234, .85) 0%, rgba(207, 224, 234, .3) 48%, rgba(207, 224, 234, 0) 70%); }
.sticky-phone { position: relative; }
.display-stack { position: relative; width: 393px; height: 852px; border-radius: 56px; overflow: hidden; background: var(--canvas); isolation: isolate; }
.display-stack .display { position: absolute; inset: 0; border-radius: 0; opacity: 0; transform: scale(1.03); transition: opacity .55s var(--ease), transform .7s var(--ease); pointer-events: none; }
.display-stack .display.on { opacity: 1; transform: none; }
.progress { position: relative; display: flex; flex-direction: column; gap: 6px; }
.progress i { width: 5px; height: 22px; border-radius: 3px; background: var(--line); transition: background .4s, height .4s var(--ease); }
.progress i.on { background: var(--primary); height: 38px; }

@media (max-height: 860px) { :root { --s: .7; } }
@media (max-height: 740px) { :root { --s: .6; } }
@media (max-width: 860px) {
  :root { --s: .72; }
  .how-grid { display: block; margin-top: 8px; }
  .how-sticky { display: none; }
  .step { min-height: 0; display: block; padding: 56px 0 0; text-align: center; }
  .step-copy { margin: 0 auto; opacity: 1; transform: none; }
  .step .num { margin: 0 auto; background: var(--primary); color: #fff; }
  .step-phone { display: block; margin: 32px auto 0; --s: .66; height: calc(876px * var(--s) * .72); overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
  .step-phone .device { box-shadow: inset 0 0 0 2px #3A444B, inset 0 0 0 5px #0B0F12; }
}
@media (max-width: 420px) { :root { --s: .64; } .step-phone { --s: .6; } }

/* Prayers */
.prayers { padding-top: clamp(96px, 16vh, 180px); }
.prayers-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 7vw, 96px); align-items: center; }
.prayers-copy .display-l { margin-top: 14px; }
.prayers-copy .lead { margin-top: 18px; max-width: 26em; }
.moods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.moods button { height: 48px; padding: 0 16px 0 10px; border-radius: 24px; border: 1.5px solid var(--line); background: var(--white); display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 500; color: var(--ink); transition: all .2s var(--ease); }
.moods button img { width: 28px; height: 28px; transition: transform .25s var(--ease); }
.moods button:hover { border-color: #B7C7D0; }
.moods button[aria-selected="true"] { border-color: var(--primary); background: var(--tint-2); font-weight: 600; box-shadow: 0 0 0 3px rgba(62, 89, 103, .1); }
.moods button[aria-selected="true"] img { transform: scale(1.12); }
.prayers-copy .fine { margin-top: 14px; }
.sheet { position: relative; border-radius: 36px; background: var(--white); box-shadow: 0 1px 2px rgba(32, 54, 65, .04), 0 40px 70px -40px rgba(32, 54, 65, .4); overflow: hidden; }
.sheet-art { position: absolute; top: 0; left: 0; right: 0; height: 170px; }
.sheet-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: .8;
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 88%); mask-image: linear-gradient(to bottom, #000 10%, transparent 88%); }
.sheet-in { position: relative; padding: 112px 30px 28px; transition: opacity .28s ease, transform .28s var(--ease); }
.sheet-in.swap { opacity: 0; transform: translateY(8px); }
.sheet .over { font-size: 14px; font-weight: 500; color: var(--ink); opacity: .75; }
.sheet .prayer-title { font-size: clamp(34px, 4vw, 44px); }
.sheet .prayer-body { padding: 18px 0 0; }
.verse { position: relative; margin-top: 24px; padding: 48px 22px 20px; border-radius: 24px; background: rgba(207, 224, 234, .55); }
.verse .q { position: absolute; top: 18px; left: 20px; font-size: 24px; color: rgba(62, 89, 103, .35); }
.verse p { font-family: var(--read); font-style: italic; font-size: 17.5px; line-height: 1.55; }
.verse small { display: block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--primary); }
.source { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .prayers-grid { grid-template-columns: 1fr; }
  .prayers-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .moods { justify-content: center; }
  .fine.left { text-align: center; }
  .sheet { max-width: 460px; margin: 0 auto; width: 100%; }
  .sheet-in { padding: 104px 24px 24px; }
}

/* Privacy */
.privacy { padding-top: clamp(96px, 16vh, 180px); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 6vw, 72px); }
.fact { padding: 4px clamp(18px, 3vw, 40px) 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; } .fact:last-child { padding-right: 0; }
.fact .ico { width: 52px; height: 52px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-card); display: grid; place-items: center; color: var(--primary); font-size: 26px; }
.fact h3 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; margin-top: 22px; }
.fact p { font-size: 16.5px; line-height: 1.5; color: var(--muted); margin-top: 8px; text-wrap: pretty; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .fact, .fact:first-child, .fact:last-child { padding: 26px 0; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
  .fact:first-child { padding-top: 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact .ico { grid-row: span 2; }
  .fact h3 { margin-top: 2px; font-size: 20px; }
  .fact p { margin-top: 4px; }
}

/* Pricing */
.pricing { padding-top: clamp(96px, 16vh, 180px); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin: 40px auto 0; }
.plan { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 22px 20px 20px; border-radius: 26px; border: 1.5px solid var(--line); background: var(--white); }
.plan .nm { font-size: 15.5px; font-weight: 600; color: var(--muted); }
.plan .pr { font-size: clamp(30px, 5vw, 40px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-top: 12px; font-variant-numeric: tabular-nums; }
.plan .per { font-size: 14px; color: var(--muted); margin-top: 8px; }
.plan .badge { position: absolute; top: -12px; left: 18px; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.plan.sel { border-color: var(--primary); background: var(--tint-2); box-shadow: 0 0 0 3px rgba(62, 89, 103, .1); }
.plan.sel .nm { color: var(--primary); }
.pricing .fine { margin-top: 20px; }

/* Closing */
.closing { padding: clamp(96px, 16vh, 180px) 0 clamp(28px, 4vw, 48px); }
.dusk { position: relative; border-radius: clamp(30px, 4vw, 48px); overflow: hidden; color: #fff; text-align: center; background: linear-gradient(170deg, #4D6B7A, #2D4450); box-shadow: 0 50px 80px -50px rgba(32, 54, 65, .8); }
.dusk > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dusk::after { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 80% at 50% 50%, rgba(29, 47, 57, .55), rgba(29, 47, 57, .2) 70%), linear-gradient(180deg, rgba(29, 47, 57, .3), rgba(29, 47, 57, .1) 40%, rgba(29, 47, 57, .55)); }
.dusk-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: clamp(64px, 11vw, 132px) 24px; }
.dusk-icon { border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 18px 30px -14px rgba(0, 0, 0, .6); }
.dusk .display-l { margin-top: 28px; }
.dusk .display-l em { color: #fff; }
.dusk p { font-size: 18px; opacity: .88; margin-top: 16px; }
.dusk .btn { margin-top: 32px; }

/* Footer */
.foot { padding: 28px 0 44px; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .brand { font-size: 21px; }
.foot nav { display: flex; gap: 4px; margin-left: auto; }
.foot nav a { height: 44px; padding: 0 12px; display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 500; color: var(--muted); border-radius: 22px; }
.foot nav a:hover { color: var(--ink); background: rgba(62, 89, 103, .08); }
.foot p { font-size: 14px; color: var(--muted); }
@media (max-width: 620px) { .foot-in { flex-direction: column; gap: 10px; } .foot nav { margin-left: 0; } }

/* ---------- Motion ---------- */
.rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
