/* 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; }
.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);
}
.glow.small { width: 8%; }
@keyframes breathe { 0%, 100% { opacity: 0.25; scale: 0.9; } 50% { opacity: 0.95; scale: 1.08; } }
.yard-copy { text-align: center; margin-top: -8px; }
.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); }

/* 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; }
}

@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; opacity: 0.6; }
  .recall-options button.wrong { animation: none; }
}
