/* Reed Bible site. Colors are the app's own light tokens (src/next/tokens.ts). One light look on purpose: the courtyard art
   and the screenshots are drawn on the app's paper color. */
:root {
  --bg: #F6F5F1;
  --paper-warm: #F8F3EC;
  --surface: #EAEDE8;
  --raised: #FFFFFF;
  --ink: #202C32;
  --muted: #50616A;
  --action: #315F64;
  --on-action: #FFFFFF;
  --divider: #D4DDD9;
  --reward: #805A22;
  --reward-surface: #F0E4CB;
  --gold: #E3A12F;
  --jesus: #9A3B33;
  --sage: #DCEAE4;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap.wide { max-width: 1080px; }

/* Header and footer */
.top { padding-block: 20px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 500 21px/1 var(--serif); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

.foot { border-top: 1px solid var(--divider); margin-top: 88px; padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--muted); }

/* Shared type */
h2 { font: 500 clamp(30px, 4.6vw, 42px)/1.12 var(--serif); margin: 0 0 16px; text-wrap: balance; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 0 0 4px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--action); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--reward-surface); color: var(--reward); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; vertical-align: 1px; }
.soon { display: inline-block; margin-top: 28px; padding: 13px 24px; border-radius: 999px; background: var(--action); color: var(--on-action); font-weight: 600; font-size: 15px; }
.note { color: var(--muted); font-size: 15px; margin-top: 16px; }

/* Phone frame around a real screenshot */
.phone {
  margin: 0;
  width: min(300px, 78vw);
  justify-self: center;
  padding: 9px;
  border-radius: 46px;
  background: #1E272C;
  box-shadow: 0 30px 60px -20px rgb(32 44 50 / 0.35), 0 0 0 1px rgb(0 0 0 / 0.06);
}
.phone img { display: block; width: 100%; border-radius: 38px; }

/* Live mini feed inside the phone frame */
.screen { position: relative; border-radius: 38px; overflow: hidden; background: var(--bg); aspect-ratio: 550 / 1196; container-type: inline-size; transform: translateZ(0); }
.feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.feed::-webkit-scrollbar { display: none; }
.feed.jump { scroll-snap-type: none; scroll-behavior: auto; }
.feed.dragging { scroll-snap-type: none; cursor: grabbing; }
.feed:focus-visible { outline-offset: -4px; border-radius: 38px; }
.slide { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; justify-content: center; padding: 0 15cqw 0 8.5cqw; background: var(--bg); }
.verse { margin: 0; font: 400 8.6cqw/1.38 var(--serif); color: var(--ink); text-wrap: pretty; }
.verse.red { color: var(--jesus); }
.ref { margin: 5cqw 0 0; font: 600 3.5cqw/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ref span { display: block; margin-top: 1cqw; font-weight: 500; letter-spacing: 0.04em; text-transform: none; font-size: 3.3cqw; opacity: 0.85; }
.topbar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 4.5cqw 6cqw 0; pointer-events: none; z-index: 2; }
.clock { font: 600 3.6cqw/1 var(--sans); color: var(--ink); }
.refpill { font: 600 3.4cqw/1 var(--sans); color: var(--muted); padding: 1.6cqw 3.2cqw; border-radius: 999px; background: var(--surface); }
.actions { position: absolute; right: 4cqw; top: 62%; translate: 0 -50%; display: flex; flex-direction: column; gap: 4.5cqw; z-index: 2; }
.act { width: 9cqw; height: 9cqw; padding: 1.5cqw; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.act svg { width: 100%; height: 100%; display: block; }
.heart.on { color: var(--jesus); }
.heart.on svg { fill: var(--jesus); }
.heart.pop svg { animation: pop 0.38s ease-out; }
@keyframes pop { 0% { scale: 1; } 40% { scale: 1.35; } 100% { scale: 1; } }
.swipe-hint { position: absolute; left: 50%; bottom: 5.5%; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgb(32 44 50 / 0.82); color: #fff; font: 600 12px/1 var(--sans); pointer-events: none; animation: bob 1.8s ease-in-out infinite; transition: opacity 0.5s; }
.screen.used .swipe-hint { opacity: 0; animation: none; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.phone.tilt { transform: rotate(3deg); }
.phone.tilt-r { transform: rotate(-3deg); }

/* Hero */
.hero2 { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; padding-block: 48px 72px; }
.hero-copy { min-width: 0; }
.hero2 h1 { font: 500 clamp(46px, 7.4vw, 84px)/1 var(--serif); margin: 0 0 20px; letter-spacing: -0.02em; text-wrap: balance; }
.hero2 .lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0; max-width: 32ch; }

/* Courtyard band */
.yard { margin-top: 24px; padding-block: 40px 8px; background: linear-gradient(var(--bg), var(--paper-warm) 30%, var(--paper-warm) 70%, var(--bg)); }
.yard-art { position: relative; width: min(860px, 100%); margin: 0 auto; }
.yard-art img {
  display: block; width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 70% 66% at 50% 52%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 66% at 50% 52%, #000 62%, transparent 100%);
}
.glow {
  position: absolute; left: var(--x); top: var(--y);
  width: 13%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgb(255 196 110 / 0.55), rgb(255 196 110 / 0) 68%);
  mix-blend-mode: screen;
  animation: breathe 4.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
/* With JS, lamps start dark and are lit one by one, then breathe. */
.js .glow { opacity: 0; animation: none; }
.js .glow.on { animation: ignite 1.1s ease-out forwards, breathe 4.8s ease-in-out 1.1s infinite; }
@keyframes ignite { 0% { opacity: 0; scale: 0.5; } 55% { opacity: 1; scale: 1.2; } 100% { opacity: 0.25; scale: 0.9; } }
.js .yard-art img { filter: saturate(0.35) brightness(0.97); transition: filter 1.8s ease; }
.js .yard.lit .yard-art img { filter: none; }
.glow.small { width: 8%; }
@keyframes breathe { 0%, 100% { opacity: 0.25; scale: 0.9; } 50% { opacity: 0.95; scale: 1.08; } }
.yard-copy { position: relative; z-index: 1; text-align: center; margin-top: 20px; }
.yard-copy p { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 auto; }

/* Split sections: text beside a phone or a demo */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; margin-top: 104px; }
.split-copy { min-width: 0; }
.split-copy p { color: var(--muted); font-size: 18px; margin: 0; }
.split.flip .phone { order: -1; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--sage); box-shadow: inset 0 0 0 2px var(--action); }

/* Kept-verse demo */
.recall { background: var(--raised); border: 1px solid var(--divider); border-radius: 26px; padding: 30px 30px 24px; box-shadow: 0 20px 40px -24px rgb(32 44 50 / 0.25); min-width: 0; }
.recall-ref { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.recall-text { font: 400 clamp(26px, 3.4vw, 32px)/1.4 var(--serif); margin: 0 0 22px; }
.sc { font-variant: small-caps; }
.blank { display: inline-block; min-width: 4.6em; border-bottom: 2px solid var(--action); color: transparent; transition: color 0.3s; }
.recall.done .blank { color: var(--action); border-bottom-color: transparent; background: var(--sage); border-radius: 6px; padding: 0 6px; }
.recall-options { display: flex; flex-wrap: wrap; gap: 10px; }
.recall-options button {
  font: 500 17px/1 var(--sans); color: var(--ink); cursor: pointer;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--divider); background: var(--bg);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.recall-options button:hover { border-color: var(--action); }
.recall-options button:active { transform: scale(0.97); }
.recall-options button.right { background: var(--action); border-color: var(--action); color: var(--on-action); }
.recall-options button.wrong { animation: shake 0.36s; }
@keyframes shake { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }
.recall-note { min-height: 1.6em; margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.recall.done .blank { animation: goldpulse 1.4s ease-out; }
@keyframes goldpulse { 0% { box-shadow: 0 0 0 0 rgb(227 161 47 / 0.6); } 40% { box-shadow: 0 0 22px 6px rgb(227 161 47 / 0.55); } 100% { box-shadow: 0 0 0 0 rgb(227 161 47 / 0); } }
.recall-after { display: none; margin-top: 4px; }
.recall.done .recall-after { display: block; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 18px; font-size: 13px; font-weight: 600; color: var(--muted); }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 22px; }
.steps i { width: 14px; height: 14px; border-radius: 50%; background: var(--divider); transition: background 0.5s 0.3s, box-shadow 0.5s 0.3s; }
.recall.done .steps li.on i { background: var(--gold); box-shadow: 0 0 10px rgb(227 161 47 / 0.6); }
.steps-cap { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.again { margin-top: 10px; padding: 0; border: 0; background: none; font: 500 15px/1.4 var(--sans); color: var(--action); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* The verse behind the name */
.name-band { margin-top: 112px; padding-block: 72px; background: var(--action); color: #EFF2EE; text-align: center; }
.name-band blockquote { margin: 0 auto; max-width: 30ch; font: italic 400 clamp(26px, 4vw, 38px)/1.4 var(--serif); text-wrap: balance; }
.name-band cite { display: block; margin-top: 18px; font: normal 13px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: #A6D4CC; }

/* Price */
section > h2.center { margin-top: 96px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 28px; }
.plan { background: var(--surface); border-radius: 22px; padding: 24px; min-width: 0; }
.plan.plus { background: var(--raised); border: 1px solid var(--divider); }
.plan h3 { font: 500 24px/1.2 var(--serif); margin-bottom: 10px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); }
.plan .price { margin: 14px 0 0; font-size: 15px; }
.private { margin-top: 80px; text-align: center; }
.private p { color: var(--muted); }

/* Text pages (privacy, support) */
.doc { padding-top: 32px; }
.doc h1 { font: 500 clamp(34px, 7vw, 46px)/1.1 var(--serif); margin: 0 0 8px; text-wrap: balance; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc p, .doc li { max-width: 65ch; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.summary { background: var(--raised); border: 1px solid var(--divider); border-radius: 18px; padding: 18px 22px; }
.summary p { margin: 0; }
.contact { font-size: 20px; font-weight: 600; }
.faq details { border-bottom: 1px solid var(--divider); padding-block: 14px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Narrow screens */
@media (max-width: 800px) {
  .hero2 { grid-template-columns: 1fr; text-align: center; gap: 40px; padding-block: 24px 48px; }
  .hero2 .lede { margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 36px; margin-top: 80px; }
  .split.flip .phone { order: 0; }
  .split-copy { text-align: left; }
}

/* Scroll reveal: hidden only when JS is running */
.js .rv { opacity: 0; translate: 0 24px; transition: opacity 0.6s ease, translate 0.6s ease; }
.js .rv.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .glow, .js .glow, .js .glow.on { animation: none; opacity: 0.6; }
  .js .yard-art img { filter: none; transition: none; }
  .recall-options button.wrong, .recall.done .blank { animation: none; }
  .js .rv { opacity: 1; translate: 0 0; transition: none; }
  .swipe-hint { animation: none; }
  .heart.pop svg { animation: none; }
  .feed { scroll-behavior: auto; }
}
