:root {
  color-scheme: light dark;
  --warm-frame: #efe8db;
  --parchment: #fbf7ef;
  --surface: #fffdf8;
  --evergreen: #0b6e4f;
  --forest: #073d2d;
  --mint: #e5f0ea;
  --sky: #e7edf0;
  --gold-soft: #f6efd5;
  --gold: #bd8b35;
  --ink: #1a1714;
  --ink-muted: #5c5344;
  --rule: #d9cebd;
  --shadow: 0 1.5rem 4rem rgba(54, 42, 27, 0.12);
  --max: 42rem;
  --max-wide: 76rem;

  /* Compatibility aliases for the legal pages. */
  --bg: var(--warm-frame);
  --accent: var(--evergreen);
}

@media (prefers-color-scheme: dark) {
  :root {
    --warm-frame: #08130f;
    --parchment: #172d25;
    --surface: #10231b;
    --evergreen: #72d3a7;
    --forest: #10231b;
    --mint: #1b3b2e;
    --sky: #1b3340;
    --gold-soft: #403820;
    --gold: #e1be70;
    --ink: #f3f6ee;
    --ink-muted: #b6c5b9;
    --rule: #29483a;
    --shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% -10%, rgba(189, 139, 53, 0.14), transparent 31rem),
    var(--warm-frame);
  color: var(--ink);
  font: 1rem/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--evergreen); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 10;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site {
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 78%, transparent);
  background: color-mix(in srgb, var(--warm-frame) 90%, transparent);
}

header.site nav,
.site-nav {
  max-width: var(--max-wide);
  min-height: 4.75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font: 700 1.22rem/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}

header.site nav a:not(.brand),
.nav-links a,
.footer-nav a {
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

header.site nav a:not(.brand):hover,
.nav-links a:hover,
.footer-nav a:hover { color: var(--evergreen); }

.nav-cta {
  padding: 0.62rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--evergreen) 40%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  color: var(--evergreen) !important;
}

main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 6rem;
}

main.page-shell {
  max-width: var(--max-wide);
  padding-top: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.25rem, 8vw, 6.7rem);
  line-height: 0.96;
}

h2 { font-size: clamp(2rem, 4.5vw, 3.7rem); line-height: 1.02; }
h3 { font-size: 1.35rem; line-height: 1.1; }
p { margin: 0; }

.eyebrow,
.card-kicker,
.slot-label,
.strip-label,
.feature-number {
  color: var(--evergreen);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.84fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: 0;
  padding: clamp(2.5rem, 5vh, 5rem) 0;
}

.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { margin-bottom: 1.4rem; }
.hero-lede { max-width: 34rem; margin-top: 1.6rem; color: var(--ink-muted); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--evergreen); color: var(--warm-frame); box-shadow: 0 0.5rem 1.2rem color-mix(in srgb, var(--evergreen) 22%, transparent); }
.button-primary:hover { color: var(--warm-frame); box-shadow: 0 0.8rem 1.5rem color-mix(in srgb, var(--evergreen) 28%, transparent); }
.button-quiet { border-color: var(--rule); color: var(--ink); background: color-mix(in srgb, var(--surface) 42%, transparent); }
.button-quiet:hover { color: var(--evergreen); border-color: var(--evergreen); }
.button-light { background: var(--gold-soft); color: var(--ink); }
.button-light:hover { color: var(--ink); box-shadow: 0 0.7rem 1.5rem rgba(0, 0, 0, 0.12); }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.availability-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--gold) 18%, transparent); }

.hero-visual {
  position: relative;
  align-self: start;
  min-height: min(48rem, max(20rem, calc(100svh - 11rem)));
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual-wash {
  position: absolute;
  inset: 4% 5% 3%;
  border-radius: 2.5rem 2.5rem 10rem 10rem;
  background: linear-gradient(145deg, var(--mint), var(--gold-soft));
  transform: rotate(3deg);
}

.hero-visual::after {
  position: absolute;
  right: 4%;
  top: 4%;
  width: 7rem;
  height: 7rem;
  border: 1px solid color-mix(in srgb, var(--gold) 68%, transparent);
  border-radius: 50%;
  content: "";
}

.hero-screenshot-frame {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  height: min(48rem, max(20rem, calc(100svh - 11rem)));
  aspect-ratio: 1320 / 2868;
  padding: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--evergreen) 18%, var(--rule));
  border-radius: 2rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1.35rem;
  object-fit: contain;
}

.hero-companion {
  position: absolute;
  right: 0;
  bottom: 2%;
  z-index: 0;
  width: min(22%, 7rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1.25rem 1.4rem rgba(38, 31, 18, 0.17));
  pointer-events: none;
}

.learning-loop-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem 1.3rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.strip-label { white-space: nowrap; }
.strip-steps { display: flex; align-items: center; justify-content: flex-end; gap: 0.85rem; color: var(--ink-muted); font: 700 0.92rem Georgia, "Times New Roman", serif; }
.strip-steps i { color: var(--gold); font: normal 0.9rem ui-sans-serif, sans-serif; }

.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section-heading { max-width: 48rem; }
.section-heading--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.7fr); gap: 3rem; align-items: end; max-width: none; }
.section-heading--split .eyebrow { margin-bottom: 1rem; }
.section-heading--split > p { color: var(--ink-muted); font-size: 1.08rem; }
.section-heading--centered { margin: 0 auto 3rem; text-align: center; }
.section-heading--centered .eyebrow { margin-bottom: 1rem; }
.section-heading--centered > p:last-child { max-width: 34rem; margin: 1.1rem auto 0; color: var(--ink-muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.feature-card { display: flex; min-height: 29rem; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid color-mix(in srgb, var(--rule) 74%, transparent); border-radius: 1.4rem; }
.feature-card--mint { background: var(--mint); }
.feature-card--sky { background: var(--sky); }
.feature-card--gold { background: var(--gold-soft); }
.feature-copy { padding: 1.6rem 1.55rem 0; }
.feature-number { display: block; margin-bottom: 1.2rem; color: color-mix(in srgb, var(--evergreen) 75%, var(--ink)); }
.feature-copy p { margin-top: 0.8rem; color: var(--ink-muted); font-size: 0.94rem; line-height: 1.55; }
.feature-art { display: flex; min-height: 12rem; align-items: end; justify-content: center; padding: 0 1rem; }
.feature-art img { width: min(78%, 12rem); max-height: 15rem; object-fit: contain; object-position: bottom; }

.loop-section { padding: clamp(3rem, 7vw, 5.5rem); border-radius: 2rem; background: var(--forest); color: #f3f6ee; }
.loop-section h2 { color: #f3f6ee; }
.loop-section .eyebrow { color: var(--gold); }
.loop-section .section-heading--centered > p:last-child { color: #b6c5b9; }
.loop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.loop-step { padding-top: 1.2rem; border-top: 1px solid rgba(243, 246, 238, 0.22); }
.loop-step > span { color: var(--gold); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.loop-step h3 { margin-top: 1.5rem; color: #f3f6ee; font-size: 1.4rem; }
.loop-step p { margin-top: 0.55rem; color: #b6c5b9; font-size: 0.9rem; }

.scripture-band { display: grid; grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; padding: clamp(4rem, 8vw, 7rem) 0; }
.scripture-art { display: grid; min-height: 20rem; place-items: center; border-radius: 1.5rem; background: var(--parchment); }
.scripture-art img { width: min(75%, 20rem); border-radius: 1.25rem; object-fit: contain; }
.scripture-copy .eyebrow { margin-bottom: 1rem; }
.scripture-copy > p:not(.eyebrow) { max-width: 32rem; margin-top: 1.2rem; color: var(--ink-muted); font-size: 1.08rem; }
.text-link { display: inline-flex; gap: 0.5rem; margin-top: 1.5rem; color: var(--evergreen); font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.preview-section { padding-top: 4rem; }
.practice-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 2rem; margin-top: 2.5rem; }
.practice-details article { padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.practice-details p { margin-top: 0.8rem; color: var(--ink-muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.screenshot-card { margin: 0; }
.capture-slot { position: relative; display: block; min-height: 0; padding: 0.65rem; border: 1px solid color-mix(in srgb, var(--evergreen) 22%, var(--rule)); border-radius: 1.25rem; background: var(--surface); box-shadow: 0 0.8rem 2rem rgba(54, 42, 27, 0.08); }
.capture-slot--image img { display: block; width: 100%; height: auto; border-radius: 0.9rem; object-fit: contain; }
.screenshot-card figcaption { display: grid; gap: 0.2rem; padding: 0.9rem 0.25rem; }
.screenshot-card figcaption strong { font: 700 1.12rem/1.1 Georgia, "Times New Roman", serif; }
.screenshot-card figcaption span { color: var(--ink-muted); font-size: 0.86rem; }

.try-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.78fr); gap: 2.5rem; align-items: center; padding: clamp(2.2rem, 6vw, 4.5rem); border: 1px solid color-mix(in srgb, var(--evergreen) 22%, var(--rule)); border-radius: 2rem; background: var(--mint); }
.try-section h2 { max-width: 13ch; margin-top: 0.9rem; }
.try-section > div > p:not(.eyebrow):not(.try-note) { max-width: 34rem; margin-top: 1.2rem; color: var(--ink-muted); }
.try-note { max-width: 38rem; margin-top: 1rem; color: var(--ink-muted); font-size: 0.78rem; }
.try-actions { display: grid; gap: 0.75rem; justify-items: stretch; }
.try-actions .button { width: 100%; }
.try-fallback { color: var(--evergreen); font-size: 0.8rem; font-weight: 750; text-align: center; }

.beta-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; margin-top: 1rem; padding: clamp(2rem, 6vw, 4rem); border-radius: 2rem; background: var(--forest); }
.beta-section h2 { max-width: 12ch; margin-top: 0.9rem; color: #f3f6ee; }
.beta-section .eyebrow { color: var(--gold); }
.beta-section > div > p:not(.eyebrow):not(.beta-note) { max-width: 34rem; margin-top: 1.2rem; color: #b6c5b9; }
.beta-note { margin-top: 1rem; color: #e1be70; font-size: 0.82rem; }

.footer { margin-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--rule) 78%, transparent); border-bottom: 0; background: transparent; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: start; }
.footer-brand { font-size: 1rem; }
.footer-brand .brand-mark { width: 1.65rem; height: 1.65rem; }
.footer-note, .footer-legal { color: var(--ink-muted); font-size: 0.78rem; }
.footer-note { margin-top: 0.8rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem 1.1rem; }
.footer-legal { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--rule); }

/* Existing legal and support pages share these deliberately quiet primitives. */
main > h1 { max-width: 18ch; }
main > h1 + .muted { margin-top: 0.75rem; }
main:not(.page-shell) > h2 { margin-top: 2.6rem; }
main:not(.page-shell) > h3 { margin-top: 1.6rem; }
main > p, main > ul, main > ol { max-width: 52rem; }
main > p { margin-top: 1rem; }
main > ul, main > ol { padding-left: 1.35rem; }
main li { margin: 0.45rem 0; }
.muted { color: var(--ink-muted); font-size: 0.94rem; }
.card { margin: 1.7rem 0; padding: 1.35rem 1.5rem; border: 1px solid var(--rule); border-radius: 1rem; background: var(--surface); box-shadow: 0 0.7rem 2rem rgba(54, 42, 27, 0.05); }
.card p + p { margin-top: 0.8rem; }
main h2 + p, main h2 + ul, main h2 + ol { margin-top: 0.8rem; }

.support-main { max-width: 66rem; }
.support-hero { max-width: 44rem; }
.support-hero h1 { margin-top: 0.8rem; }
.support-hero > p:last-child { margin-top: 1.1rem; color: var(--ink-muted); font-size: 1.1rem; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(15rem, 0.9fr); gap: 1rem; margin-top: 3rem; }
.contact-card { display: flex; min-height: 100%; flex-direction: column; justify-content: space-between; margin: 0; background: var(--mint); }
.contact-card h2, .faq-card h2 { margin-top: 0; font-size: 2rem; }
.contact-card p { margin-top: 0.8rem; }
.contact-address { display: inline-flex; margin-top: 1.5rem; color: var(--evergreen); font-weight: 800; overflow-wrap: anywhere; }
.faq-card { margin: 0; }
.faq-card h3 { margin-top: 1.5rem; font-size: 1.12rem; }
.faq-card h3:first-of-type { margin-top: 1.2rem; }
.faq-card p { margin-top: 0.45rem; color: var(--ink-muted); font-size: 0.92rem; }
.support-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin-top: 2.6rem; }
.support-links a { font-weight: 750; }

footer.site > div { max-width: var(--max-wide); margin: 0 auto; }
footer.site > div:not(.footer-inner) { color: var(--ink-muted); font-size: 0.9rem; }
footer.site a { color: var(--ink-muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.8fr); gap: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 18rem; flex-direction: row; }
  .feature-copy { flex: 1; padding-right: 0; }
  .feature-art { width: 35%; min-height: 16rem; }
  .loop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid .screenshot-card:last-child { grid-column: 1 / -1; max-width: 100%; }
}

@media (max-width: 680px) {
  .site-nav { min-height: auto; align-items: flex-start; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem; }
  .nav-links { width: 100%; justify-content: space-between; gap: 0.65rem; margin-left: 0; }
  .nav-links a { font-size: 0.78rem; }
  .nav-links .nav-cta { padding: 0.5rem 0.7rem; }
  .hero { display: block; min-height: auto; padding: 4.75rem 0 3.5rem; }
  h1 { font-size: clamp(3.35rem, 16vw, 5.2rem); }
  .hero-visual { display: flex; flex-direction: column; align-items: center; min-height: auto; margin-top: 3.5rem; padding-bottom: 2rem; }
  .hero-screenshot-frame { width: min(78vw, 24rem); height: auto; max-height: none; aspect-ratio: auto; }
  .hero-screenshot { width: 100%; height: auto; }
  .hero-companion { position: relative; right: auto; bottom: auto; align-self: flex-end; width: 24%; margin: 1rem 4% 0 0; }
  .learning-loop-strip { display: block; }
  .strip-steps { justify-content: flex-start; flex-wrap: wrap; margin-top: 0.8rem; gap: 0.5rem; font-size: 0.82rem; }
  .section-heading--split, .scripture-band, .try-section, .beta-section, .support-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-heading--split > p { font-size: 1rem; }
  .loop-section { padding: 2.2rem 1.25rem; border-radius: 1.4rem; }
  .scripture-art { min-height: 16rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .screenshot-card:last-child { grid-column: auto; max-width: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .footer-legal { grid-column: auto; }
}

@media (max-width: 420px) {
  main { padding-right: 1rem; padding-left: 1rem; }
  header.site nav, .site-nav { padding-right: 1rem; padding-left: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-screenshot-frame { width: 84vw; }
  .hero-companion { width: 26%; }
  .feature-card { display: block; }
  .feature-art { width: 100%; min-height: 13rem; }
  .feature-art img { max-height: 13rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
