/* Still. site. Clean, Apple-style system. White by default; dark when the header switch is on.
   Rules: system font for UI (SF on Apple devices), serif only for Bible verses, one accent (deep gold),
   radii 28 (tiles) / 20 (cards) / full (buttons), generous whitespace, hairline borders. */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/newsreader-400.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/newsreader-400-italic.woff2') format('woff2'); }

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #8a6420;
  --btn: #1d1d1f;
  --on-btn: #ffffff;
  --glass: rgba(255, 255, 255, 0.78);
  --shadow: rgba(29, 29, 31, 0.18);
  --ui: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --serif: 'Newsreader', 'New York', 'Iowan Old Style', Georgia, serif;
  --gutter: 22px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0b0b0c;
  --bg-2: #161617;
  --card: #1c1c1e;
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #dcbc7e;
  --btn: #f5f5f7;
  --on-btn: #1d1d1f;
  --glass: rgba(11, 11, 12, 0.74);
  --shadow: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.022em; line-height: 1.08; color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 8.5vw, 4.75rem); letter-spacing: -0.035em; line-height: 1.03; }
h2 { font-size: clamp(1.875rem, 5vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.375rem; letter-spacing: -0.018em; line-height: 1.2; }
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }
.lede { font-size: clamp(1.125rem, 2.4vw, 1.4rem); line-height: 1.45; color: var(--ink-2); max-width: 36rem; }
.meta { font-size: 0.875rem; color: var(--muted); margin: 0 0 2rem; }

/* ---------- header (translucent, Apple-style) ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.bar-end { display: flex; align-items: center; gap: 2px; }
nav.site { display: none; }
nav.site a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 0.9375rem; color: var(--ink-2); text-decoration: none; border-radius: 999px; transition: color 0.2s ease; }
nav.site a:hover { color: var(--ink); }
nav.site a[aria-current='page'] { color: var(--ink); font-weight: 600; }
@media (min-width: 720px) { nav.site { display: flex; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  background: var(--btn); color: var(--on-btn);
  font: inherit; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em;
  border: 0; border-radius: 999px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn.sm { min-height: 36px; padding: 0 16px; font-size: 0.875rem; margin-left: 6px; }
.btn.ghost { background: transparent; color: var(--accent); padding: 0 8px; }
.btn.ghost:hover { opacity: 1; text-decoration: underline; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: clamp(48px, 9vw, 96px); overflow: hidden; }
.hero h1 { max-width: 15ch; margin: 0 auto 18px; }
.hero h1 span { display: block; color: var(--muted); }
.hero .lede { margin: 0 auto 28px; }
.hero .cta-row { justify-content: center; }
.stage { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 3vw, 36px); margin-top: clamp(40px, 7vw, 72px); height: clamp(380px, 62vw, 640px); overflow: hidden; }
.stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.stage .device:nth-child(1), .stage .device:nth-child(3) { margin-top: 48px; display: none; }
@media (min-width: 720px) { .stage .device:nth-child(1), .stage .device:nth-child(3) { display: block; } }

/* ---------- device (realistic iPhone frame around real app screenshots) ---------- */
.device {
  position: relative; flex: none; width: min(60vw, 17.5rem); padding: 7px 7px 0;
  background: linear-gradient(150deg, #4a4a4d 0%, #1b1b1d 38%, #2c2c2e 100%);
  border-radius: 46px 46px 0 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 40px 80px -30px var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}
.device img { width: 100%; border-radius: 40px 40px 0 0; background: #0b0b0c; aspect-ratio: 660 / 1204; object-fit: cover; }

/* ---------- sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding-top: clamp(64px, 10vw, 112px); padding-bottom: clamp(16px, 3vw, 32px); }
.section-head { text-align: center; margin: 0 auto clamp(32px, 6vw, 56px); max-width: 40rem; }
.section-head p { color: var(--ink-2); font-size: 1.1875rem; margin: 14px 0 0; }

/* bento tiles */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--bg-2); border-radius: 28px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px) 0; overflow: hidden; min-height: 28rem; }
.tile h3 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); letter-spacing: -0.028em; margin-bottom: 10px; }
.tile p { color: var(--ink-2); max-width: 26rem; margin: 0; }
.tile .device { margin: 28px auto 0; width: min(100%, 15.5rem); }
.tile.plain { min-height: 0; padding-bottom: clamp(28px, 4vw, 40px); }
@media (min-width: 800px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }

/* quote */
.verse-band { text-align: center; padding-top: clamp(72px, 12vw, 140px); padding-bottom: clamp(72px, 12vw, 140px); }
.verse-band blockquote { margin: 0 auto; max-width: 18ch; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.verse-band cite { display: block; margin-top: 22px; font-family: var(--ui); font-style: normal; font-size: 0.9375rem; color: var(--muted); letter-spacing: 0; }
.verse-band p { max-width: 30rem; margin: 22px auto 0; color: var(--ink-2); }

/* plans */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 52rem; margin: 0 auto; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { background: var(--bg-2); border-radius: 28px; padding: 32px 30px; }
.plan.premium { background: var(--btn); color: var(--on-btn); }
.plan.premium h3, .plan.premium li { color: var(--on-btn); }
.plan h3 { margin-bottom: 4px; }
.plan .price { font-size: 0.9375rem; color: var(--muted); margin: 0 0 18px; }
.plan.premium .price { color: var(--on-btn); opacity: 0.72; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 9px 0; border-top: 1px solid var(--line); margin: 0; font-size: 1rem; }
.plan.premium li { border-top-color: rgba(128, 128, 128, 0.3); }
.fine { font-size: 0.8125rem; color: var(--muted); max-width: 52rem; margin: 20px auto 0; line-height: 1.5; }

/* guides grid */
.guide-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 720px) { .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-grid li { margin: 0; }
.guide-grid a { display: flex; flex-direction: column; height: 100%; padding: 22px 22px 20px; background: var(--bg-2); border-radius: 22px; text-decoration: none; color: var(--ink); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.guide-grid a:hover { transform: translateY(-3px); }
.guide-grid strong { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.guide-grid span { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }
.more { text-align: center; margin-top: 26px; }

/* FAQ */
.faq { max-width: 46rem; margin: 0 auto; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; min-height: 56px; padding: 16px 0; font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.012em; line-height: 1.3; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--muted); font-size: 1.6rem; font-weight: 300; flex: none; transition: transform 0.25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 0 18px; color: var(--ink-2); max-width: 40rem; }

/* closing */
.closing { text-align: center; padding-top: clamp(72px, 12vw, 130px); padding-bottom: clamp(72px, 12vw, 130px); }
.closing h2 { margin-bottom: 14px; }
.closing .lede { margin: 0 auto 26px; }
.closing .cta-row { justify-content: center; }
.soon { margin: 18px 0 0; font-size: 0.9375rem; color: var(--muted); }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.875rem; color: var(--muted); background: var(--bg-2); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-bottom: 6px; }
footer.site a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }
footer.site p { margin: 0; }

/* ---------- legal / support pages ---------- */
main.prose { padding-top: 48px; padding-bottom: 72px; }
main.prose > * { max-width: 44rem; }
main.prose h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); margin-bottom: 12px; }
main.prose h2 { font-size: 1.75rem; margin: 2.75rem 0 0.75rem; }
main.prose h3 { margin: 1.75rem 0 0.5rem; }
.card { background: var(--bg-2); border-radius: 20px; padding: 20px 22px; margin: 0 0 1rem; }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
dl.facts dt { font-weight: 600; margin-top: 1rem; }
dl.facts dd { margin: 0.15rem 0 0; color: var(--ink-2); }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--ink-2); margin: 1.25rem 0; }

/* ---------- theme toggle: a sun that falls asleep as a moon ---------- */
html:not([data-theme]) .theme-toggle { display: none; }
html.theme-anim body, html.theme-anim header.site, html.theme-anim footer.site, html.theme-anim .tile, html.theme-anim .plan, html.theme-anim .guide-grid a, html.theme-anim .card, html.theme-anim .answer, html.theme-anim .cta {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.theme-toggle {
  --tt-track: #e5e5ea; --tt-body: #f2b544; --tt-face: #6b4a0e; --tt-cheek: #f08f6b;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 64px; min-height: 44px; padding: 0; margin-left: 4px;
  background: none; border: 0; border-radius: 999px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
html[data-theme='dark'] .theme-toggle { --tt-track: #2c2c2e; --tt-body: #f5f5f7; --tt-face: #1d1d1f; --tt-cheek: #dcbc7e; }
.tt-track { position: relative; display: block; width: 56px; height: 32px; border-radius: 999px; background: var(--tt-track); overflow: hidden; transition: background-color 0.4s ease; }
.tt-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.tt-star, .tt-cloud { transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); transform-box: fill-box; transform-origin: center; }
.tt-star { fill: #f5f5f7; opacity: 0; transform: scale(0.2); }
.tt-cloud { fill: #ffffff; opacity: 1; }
html[data-theme='dark'] .tt-star { opacity: 1; transform: scale(1); }
html[data-theme='dark'] .tt-star:nth-of-type(2) { transition-delay: 0.08s; }
html[data-theme='dark'] .tt-star:nth-of-type(3) { transition-delay: 0.16s; }
html[data-theme='dark'] .tt-cloud { opacity: 0; transform: translateX(10px); }
.tt-knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
html[data-theme='dark'] .tt-knob { transform: translateX(24px); }
.tt-knob svg { display: block; width: 26px; height: 26px; overflow: visible; transition: transform 0.2s ease; }
.theme-toggle:active .tt-knob svg { transform: scale(0.9); }
.tt-rays { transform-box: fill-box; transform-origin: center; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease; stroke: var(--tt-body); }
html[data-theme='dark'] .tt-rays { transform: rotate(90deg) scale(0.4); opacity: 0; }
.tt-body { fill: var(--tt-body); transition: fill 0.4s ease; }
.tt-crater { fill: var(--tt-face); opacity: 0; transition: opacity 0.4s ease 0.15s; }
html[data-theme='dark'] .tt-crater { opacity: 0.16; }
.tt-eye { fill: var(--tt-face); transform-box: fill-box; transform-origin: center; transition: transform 0.3s ease; }
html[data-theme='dark'] .tt-eye { transform: scaleY(0.18); }
.tt-mouth { fill: none; stroke: var(--tt-face); stroke-width: 1.6; stroke-linecap: round; transform-box: fill-box; transform-origin: center; transition: transform 0.4s ease; }
html[data-theme='dark'] .tt-mouth { transform: scale(0.6) translateY(-1px); }
.tt-cheek { fill: var(--tt-cheek); opacity: 0.55; transition: fill 0.4s ease; }

@media (prefers-reduced-motion: no-preference) {
  .hero > .wrap > * { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero > .wrap > *:nth-child(2) { animation-delay: 0.08s; }
  .hero > .wrap > *:nth-child(3) { animation-delay: 0.16s; }
  .hero > .wrap > *:nth-child(4) { animation-delay: 0.26s; }
  .theme-toggle:hover .tt-eye { animation: tt-blink 1.2s ease 1; }
  html[data-theme='dark'] .theme-toggle:hover .tt-eye { animation: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tt-blink { 0%, 40%, 100% { transform: scaleY(1); } 48% { transform: scaleY(0.12); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}
@media (prefers-reduced-transparency: reduce) {
  header.site { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
