/* Homepage. Display: Fraunces. Text: Inter. */
:root{--ink:#0b0b0c;--mute:rgba(0,0,0,.52);--line:rgba(0,0,0,.07);--card:#fff;--serif:"Fraunces",Georgia,serif;--sans:"Inter",-apple-system,system-ui,sans-serif}
body{background:linear-gradient(180deg,#fbfbfc 0,#f1f1f3 900px,#e9e9eb 100%);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}
main{overflow:hidden}
.hd{position:sticky;top:0;z-index:50;background:rgba(251,251,252,.8);backdrop-filter:saturate(180%) blur(14px)}
.hd-in{max-width:1040px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.hd-logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font:600 15px/1 var(--sans);letter-spacing:-.01em}
.hd-logo img{width:32px;height:32px;border-radius:8px;box-shadow:0 0 0 1px var(--line)}
.hd nav{display:flex;gap:24px}
.hd nav a{color:var(--mute);text-decoration:none;font:500 14px/1 var(--sans);transition:color .15s}
.hd nav a:hover,.hd nav a[aria-current]{color:var(--ink)}
.h-hero{max-width:1040px;margin:0 auto;padding:88px 24px 120px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:72px;align-items:center}
.h-hero h1{font:400 clamp(44px,5.6vw,64px)/1.04 var(--serif);letter-spacing:-.025em;margin:0 0 22px;max-width:12em;text-wrap:balance}
.h-lead{font:400 18px/1.62 var(--sans);color:var(--mute);max-width:27em;margin:0 0 36px}
.h-badges{display:flex;flex-wrap:wrap;gap:12px}
.h-badges .store-badge{background:#000;color:#fff;border-radius:14px;padding:11px 22px 11px 18px;min-width:0;box-shadow:0 10px 24px rgba(0,0,0,.16);transition:transform .2s,box-shadow .2s}
.h-badges .store-badge:hover{transform:translateY(-1px);background:#000;box-shadow:0 14px 30px rgba(0,0,0,.22)}
.h-badges .store-badge-text small{font-size:10px;text-transform:none;letter-spacing:.01em;opacity:.75}
.h-badges .store-badge-text strong{font-size:17px}
.h-sec{max-width:1040px;margin:0 auto;padding:0 24px 128px;text-align:center}
.h-sec>h2,.h-end h2{font:400 clamp(34px,4vw,44px)/1.1 var(--serif);letter-spacing:-.02em;margin:0 0 44px}
.h-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;text-align:left}
.h-card{background:var(--card);border-radius:20px;padding:24px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 12px 32px rgba(0,0,0,.05)}
.h-ic{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#000;color:#fff;margin-bottom:20px}
.h-ic svg{width:20px;height:20px}
.h-card h3{font:600 18px/1.4 var(--sans);letter-spacing:-.02em;margin:0 0 8px}
.h-card p{font:400 15px/1.6 var(--sans);color:var(--mute);margin:0}
.h-book{display:grid;grid-template-columns:240px 1fr;gap:56px;align-items:center;text-align:left;background:var(--card);border-radius:28px;padding:48px 56px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 20px 50px rgba(0,0,0,.06)}
.h-book img{width:200px;height:auto;justify-self:center;filter:drop-shadow(0 24px 30px rgba(0,0,0,.18))}
.h-book h2{font:400 40px/1.1 var(--serif);letter-spacing:-.02em;margin:0 0 12px}
.h-book p{font:400 17px/1.6 var(--sans);color:var(--mute);margin:0 0 28px;max-width:28em}
.h-btn,.h-letter button{display:inline-block;background:#000;color:#fff;border:0;border-radius:12px;padding:15px 24px;font:500 15px/1 var(--sans);text-decoration:none;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.16)}
.h-qa{max-width:880px;margin:0 auto;text-align:left;background:var(--card);border-radius:28px;padding:16px 48px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 20px 50px rgba(0,0,0,.06)}
.h-qa-row{display:grid;grid-template-columns:1fr 1.3fr;gap:40px;padding:32px 0;border-top:1px solid var(--line)}
.h-qa-row:first-child{border-top:0}
.h-qa-row h3{font:400 24px/1.35 var(--serif);letter-spacing:-.02em;margin:0}
.h-qa-row p{font:400 16px/1.65 var(--sans);color:var(--mute);margin:0}
.h-qa-row a{color:var(--accent);font-weight:600;text-decoration:none}
.h-qa-row a:hover{text-decoration:underline}
.h-end{background:#000;color:#fff;text-align:center;padding:120px 24px 104px}
.h-end-ic{width:64px;height:64px;border-radius:16px;margin:0 auto 28px;display:block}
.h-end h2{max-width:16ch;margin:0 auto 36px}
.h-end .h-badges{justify-content:center}
.h-end .store-badge{background:#fff;color:#000}.h-end .store-badge:hover{background:#fff}
.h-letter{margin:56px auto 0;max-width:440px}
.h-letter form{display:flex;gap:8px;padding:6px;border-radius:16px;background:rgba(255,255,255,.08);box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.h-letter input[type=email]{flex:1;min-width:0;padding:12px 14px;border:0;background:transparent;color:#fff;font:400 16px var(--sans);outline:none}
.h-letter input::placeholder{color:rgba(255,255,255,.45)}
.h-letter button{background:#fff;color:#000;box-shadow:none;border-radius:11px}
.h-letter .hp-field{display:none}
.email-success{color:rgba(255,255,255,.7)}
.jf-dark{background:#000;color:rgba(255,255,255,.45);border-top:1px solid rgba(255,255,255,.08);font-family:var(--sans)}
.jf-dark a:hover{color:#fff}
.reveal-up{opacity:0;transform:translateY(16px);transition:opacity .7s ease,transform .7s ease}.reveal-up.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.reveal-up{opacity:1;transform:none;transition:none}}
@media(max-width:900px){.h-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){
.hd-in{flex-direction:column;gap:12px;padding:12px 16px}.hd nav{gap:18px}
.h-hero{grid-template-columns:1fr;text-align:center;padding:48px 20px 96px;gap:56px}.h-hero h1{margin:0 auto 18px}.h-lead{margin:0 auto 30px}.h-badges{justify-content:center}
.h-sec{padding:0 20px 96px}.h-cards{grid-template-columns:1fr}
.h-book{grid-template-columns:1fr;text-align:center;padding:40px 24px;gap:28px}.h-book img{width:160px}.h-book p{margin:0 auto 24px}
.h-qa{padding:8px 24px}.h-qa-row{grid-template-columns:1fr;gap:10px;padding:26px 0}.h-qa-row h3{font-size:21px}
.h-end{padding:88px 20px 80px}.h-letter form{flex-direction:column;background:transparent;box-shadow:none;padding:0}.h-letter input[type=email]{background:rgba(255,255,255,.08);border-radius:12px;padding:14px}}

/* iPhone 18 Pro, Silver (71.9 x 150 mm, slim bezels, smaller Dynamic Island).
   The screen is the app's morning story built in HTML: letter -> verse of the day -> prayer. 18 s loop. */
.iph{--w:min(272px,64vw);position:relative;justify-self:center;width:var(--w);aspect-ratio:71.9/150;border-radius:calc(var(--w)*.205);padding:calc(var(--w)*.019);
  /* polished silver aluminium band with bright edge highlights, like Apple's product shots */
  background:
    linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0) 6%,rgba(255,255,255,0) 94%,rgba(0,0,0,.08)),
    linear-gradient(90deg,#8f9296 0%,#e9eaec 3.5%,#bfc2c5 7%,#d9dbde 30%,#cfd1d4 50%,#d9dbde 70%,#bfc2c5 93%,#ecedef 96.5%,#8f9296 100%);
  box-shadow:0 0 0 1px rgba(60,64,70,.45),inset 0 0 0 1px rgba(255,255,255,.75),inset 0 0 0 calc(var(--w)*.012) rgba(150,154,160,.18),
    0 40px 70px -30px rgba(15,20,30,.42),0 14px 28px -20px rgba(15,20,30,.30)}
.iph::before{display:none}
.iph-screen{position:relative;width:100%;height:100%;border-radius:calc(var(--w)*.188);overflow:hidden;background:#0a0a0a;
  box-shadow:0 0 0 calc(var(--w)*.0115) #060607,0 0 0 calc(var(--w)*.0125) rgba(255,255,255,.35);container-type:inline-size;isolation:isolate;transform:translateZ(0)}
/* buttons protrude from the band */
.iph-btn{position:absolute;width:3.5px;background:linear-gradient(90deg,#9ea1a5,#e4e5e7 55%,#b5b8bb);box-shadow:0 0 0 .5px rgba(60,64,70,.4)}
.iph-action,.iph-volup,.iph-voldn{left:-3px;border-radius:2px 0 0 2px}
.iph-side,.iph-cam{right:-3px;border-radius:0 2px 2px 0}
.iph-action{top:18%;height:3.6%}.iph-volup{top:25%;height:6.4%}.iph-voldn{top:33%;height:6.4%}
.iph-side{top:27%;height:10%}.iph-cam{top:55.5%;height:5.4%;background:linear-gradient(90deg,#c7c9cc,#8f9296)}

/* status bar */
.iph-status{position:absolute;inset:0 0 auto;height:12cqw;z-index:6;display:flex;align-items:center;justify-content:space-between;padding:0 7cqw 0 10cqw;color:#fff}
.iph-time{font:600 4.1cqw/1 -apple-system,"SF Pro Text",system-ui,sans-serif;letter-spacing:-.01em}
.iph-island{position:absolute;left:50%;top:2.7cqw;transform:translateX(-50%);width:21cqw;height:7.6cqw;border-radius:9cqw;background:#000}
.iph-icons{display:flex;align-items:center;gap:1.3cqw}.iph-icons svg{height:2.8cqw;width:auto;fill:currentColor}.iph-icons svg:last-child{height:3.1cqw}
.iph-home{position:absolute;left:50%;bottom:2cqw;transform:translateX(-50%);width:34cqw;height:1.25cqw;border-radius:2cqw;background:rgba(255,255,255,.85);z-index:6}

/* story background: slow, gentle drift */
.st-bg{position:absolute;inset:-4%;background:url(/images/story-bg.webp) center 40%/cover;animation:stDrift 18s ease-in-out infinite alternate}
.st-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,34,64,.52) 0%,rgba(22,44,78,.40) 45%,rgba(30,24,16,.30) 100%)}
@keyframes stDrift{from{transform:scale(1.06) translate3d(0,-1%,0)}to{transform:scale(1.0) translate3d(0,1%,0)}}

/* story progress bars, like the app */
.st-bars{position:absolute;top:13.5cqw;left:3.5cqw;right:3.5cqw;z-index:5;display:flex;gap:1.6cqw}
.st-bars i{flex:1;height:.65cqw;border-radius:1cqw;background:rgba(255,247,234,.38);overflow:hidden}
.st-bars b{display:block;height:100%;background:#FFF7EA;transform-origin:left;transform:scaleX(0)}
.st-bars .b1{animation:stBar1 18s linear infinite}.st-bars .b2{animation:stBar2 18s linear infinite}.st-bars .b3{animation:stBar3 18s linear infinite}
@keyframes stBar1{0%{transform:scaleX(0)}33.3%,96%{transform:scaleX(1)}100%{transform:scaleX(0)}}
@keyframes stBar2{0%,33.3%{transform:scaleX(0)}66.6%,96%{transform:scaleX(1)}100%{transform:scaleX(0)}}
@keyframes stBar3{0%,66.6%{transform:scaleX(0)}96%{transform:scaleX(1)}100%{transform:scaleX(0)}}

/* shared story type (app: Jost Bold + Playfair Display Black Italic, cream ink with soft depth) */
.st-slide{position:absolute;inset:0;z-index:3;direction:ltr;color:#FFF7EA;text-shadow:0 .3cqw .9cqw rgba(10,8,6,.55),0 0 3cqw rgba(10,20,40,.25);opacity:0}
.st-slide p{margin:0;color:inherit;text-wrap:pretty}
.st-greet,.st-close,.st-amenline{font-family:"Playfair Display",Georgia,serif!important;font-style:italic;font-weight:900}
.st-body,.st-vtext,.st-ptext,.st-label,.st-ref,.st-amen{font-family:"Jost",system-ui,sans-serif!important;font-weight:700}

/* 1. love letter (0-6 s): greeting, then the body writes in line by line, then the signature */
.st-letter{text-align:left;direction:ltr;padding:30cqw 7cqw 0;animation:stLetter 18s ease-in-out infinite}
.st-greet{font-size:6.6cqw;margin-bottom:3.6cqw!important}
.st-body{font-size:4.3cqw;line-height:1.62}
.st-close{font-size:5.2cqw;line-height:1.35;text-align:right;margin-top:5cqw!important}
.st-letter .st-greet{animation:stIn1 18s ease-out infinite}
.st-letter .st-body{-webkit-mask-image:linear-gradient(180deg,#000 45%,transparent 55%);mask-image:linear-gradient(180deg,#000 45%,transparent 55%);-webkit-mask-size:100% 220%;mask-size:100% 220%;animation:stWrite 18s linear infinite}
.st-letter .st-close{animation:stIn2 18s ease-out infinite}
@keyframes stLetter{0%{opacity:0;transform:translateY(1.5%)}3%,30%{opacity:1;transform:none}34%,100%{opacity:0;transform:translateY(-2%)}}
@keyframes stIn1{0%,1%{opacity:0;transform:translateY(6px)}5%,100%{opacity:1;transform:none}}
@keyframes stWrite{0%,4%{-webkit-mask-position:0 100%;mask-position:0 100%}22%,100%{-webkit-mask-position:0 0;mask-position:0 0}}
@keyframes stIn2{0%,21%{opacity:0;transform:translateY(6px)}25%,100%{opacity:1;transform:none}}

/* 2. verse of the day (6-12 s) */
.st-verse{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:0 9cqw;animation:stVerse 18s ease-in-out infinite}
.st-label{font-size:2.7cqw;letter-spacing:.22em;text-transform:uppercase;margin-bottom:4.5cqw!important;opacity:.92}
.st-vtext{font-size:6.4cqw;line-height:1.38}
.st-ref{font-size:3.1cqw;letter-spacing:.16em;text-transform:uppercase;margin-top:4.5cqw!important;opacity:.92}
@keyframes stVerse{0%,33%{opacity:0;transform:scale(.985)}37.5%,63%{opacity:1;transform:none}67%,100%{opacity:0;transform:scale(1.01)}}

/* 3. prayer (12-18 s), ending on the Amen button */
.st-prayer{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:0 9cqw 10cqw;animation:stPrayer 18s ease-in-out infinite}
.st-hands{width:15cqw;height:15cqw;margin-bottom:5cqw;filter:drop-shadow(0 .4cqw .8cqw rgba(20,10,6,.4))}
.st-ptext{font-size:4.6cqw;line-height:1.55}
.st-amenline{font-size:5.4cqw;line-height:1.35;margin-top:5cqw!important}
.st-amen{position:absolute;left:50%;bottom:9cqw;transform:translateX(-50%);display:inline-flex;align-items:center;gap:1.8cqw;padding:2.8cqw 6cqw;border-radius:20cqw;border:.35cqw solid rgba(255,247,234,.85);background:rgba(18,10,8,.3);font-size:3.4cqw;letter-spacing:.2em;text-transform:uppercase;text-shadow:none;animation:stAmen 18s ease-in-out infinite}
.st-amen svg{width:2.8cqw;height:auto}
@keyframes stPrayer{0%,66.5%{opacity:0;transform:translateY(1.5%)}71%,95%{opacity:1;transform:none}99%,100%{opacity:0}}
@keyframes stAmen{0%,86%{background:rgba(18,10,8,.3);color:#FFF7EA;transform:translateX(-50%) scale(1)}88%{transform:translateX(-50%) scale(.95)}90%,100%{background:#FFF7EA;color:#3A3530;transform:translateX(-50%) scale(1)}}

.iph.is-paused *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.iph *{animation:none!important}.st-letter{opacity:1}.st-bars .b1{transform:scaleX(1)}}
@media(max-width:760px){.iph{--w:min(244px,66vw)}}
.h-ic-img{display:block;width:56px;height:56px;object-fit:contain;margin-bottom:18px}
[dir=rtl] .h-ic-img{margin-left:auto}
.h-rating{margin:18px 0 0;font:500 14px/1.4 var(--sans);color:#555}
.h-rating strong{color:var(--ink);font-weight:600}
.h-stars{color:#E9BA52;letter-spacing:2px;font-size:15px}
@media(max-width:760px){.h-rating{text-align:center}}

/* Phone screen polish: even line breaks (Safari otherwise rebalances these short lines) */
.iph .st-slide p{text-wrap:wrap!important}
.st-amenline,.st-close{white-space:nowrap}
.iph-island{z-index:6}
.st-bars{top:12.5cqw}
.st-letter{padding-top:32cqw}

/* Header always solid white so nothing shows through it; flat download buttons */
.hd,.jn{background:#fff!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.h-badges .store-badge,.h-badges .store-badge:hover{box-shadow:none!important}
.h-badges .store-badge:hover{transform:translateY(-1px);opacity:.88}

/* Tighter vertical rhythm on phones */
@media(max-width:760px){
  .h-hero{padding:36px 20px 64px!important;gap:40px!important}
  .h-sec{padding-bottom:72px!important}
  .h-sec>h2{margin-bottom:28px!important}
  .h-rating{margin-top:14px}
}

/* v3 layout: each screen fills the phone; bars sit just under the island; bars never rewind on screen */
.st-bars{top:15.5cqw;left:4.5cqw;right:4.5cqw;gap:1.8cqw;animation:stBarsFade 18s linear infinite}
.st-bars i{height:.75cqw}
@keyframes stBarsFade{0%{opacity:0}1.5%,96%{opacity:1}98.5%,100%{opacity:0}}
@keyframes stBar1{0%{transform:scaleX(0)}33.3%,99.4%{transform:scaleX(1)}99.5%,100%{transform:scaleX(0)}}
@keyframes stBar2{0%,33.3%{transform:scaleX(0)}66.6%,99.4%{transform:scaleX(1)}99.5%,100%{transform:scaleX(0)}}
@keyframes stBar3{0%,66.6%{transform:scaleX(0)}96%,99.4%{transform:scaleX(1)}99.5%,100%{transform:scaleX(0)}}

/* love letter: bigger type, centered in the screen */
.st-letter{display:flex;flex-direction:column;justify-content:center;padding:22cqw 8cqw 14cqw!important}
.st-greet{font-size:8.4cqw!important;margin-bottom:5cqw!important}
.st-body{font-size:5.15cqw!important;line-height:1.6!important}
.st-close{font-size:6.6cqw!important;margin-top:7cqw!important;line-height:1.3!important}

/* verse of the day: large and centered */
.st-verse{padding:0 8cqw 6cqw!important}
.st-label{font-size:3.3cqw!important;margin-bottom:7cqw!important}
.st-vtext{font-size:8.6cqw!important;line-height:1.32!important}
.st-ref{font-size:3.8cqw!important;margin-top:7cqw!important}

/* prayer: bigger hands and text, Amen button above the home bar */
.st-prayer{padding:0 8cqw 22cqw!important}
.st-hands{width:21cqw!important;height:21cqw!important;margin-bottom:7cqw!important}
.st-ptext{font-size:5.5cqw!important;line-height:1.55!important}
.st-amenline{font-size:7cqw!important;margin-top:7cqw!important;line-height:1.3!important}
.st-amen{bottom:12cqw!important;font-size:4cqw!important;padding:3.4cqw 8cqw!important;gap:2.2cqw!important}
.st-amen svg{width:3.4cqw!important}

/* Mobile hero: more air between headline, subline, buttons, rating and phone */
@media(max-width:760px){
  .h-hero{padding:52px 28px 72px!important;gap:56px!important}
  .h-hero h1{font-size:clamp(34px,10vw,42px)!important;line-height:1.1!important;margin:0 auto 20px!important}
  .h-lead{font-size:17px!important;line-height:1.6!important;max-width:21em;margin:0 auto 34px!important}
  .h-badges{gap:12px!important}
  .h-badges .store-badge{padding:9px 16px 9px 14px!important;border-radius:12px!important}
  .h-badges .store-badge-text strong{font-size:16px!important}
  .h-rating{margin-top:22px!important;font-size:13px!important}
  .hd-in{padding-left:24px!important;padding-right:24px!important}
}

/* "Daily love letters" card uses the real app icon, with iOS-style rounded corners */
.h-cards .h-card:first-child .h-ic-img{border-radius:22.4%;box-shadow:0 0 0 1px rgba(0,0,0,.06)}
.h-ic-img[src*="devotional"]{mix-blend-mode:multiply}
