@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/nunito-400.woff") format("woff");
}

@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/nunito-600.woff") format("woff");
}

:root {
  color-scheme: light;
  --cream: #fbf7f0;
  --ink: #2c2825;
  --muted: #6b6560;
  --accent: #9a5340;
  --accent-soft: #f6e4dc;
  --sage: #245233;
  --sage-soft: #e4efe5;
  --line: #e8e0d4;
  --white: #fff;
  --chip: #f3ede4;
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.45;
}

img { max-width: 100%; }

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

a:hover { color: #7a3e2e; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--white);
  padding: 8px 12px;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 25%;
}

.brand-mark {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 0 12px;
  border-radius: 25%;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.header-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.button,
button.button {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--cream);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button:hover { color: var(--cream); }

.button.secondary:hover { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 400px);
  grid-template-areas: "beats phone";
  gap: 28px 32px;
  align-items: start;
  padding: 12px 0 40px;
}

.hero-beats,
.hero > .beats { grid-area: beats; }
.phone-mount { grid-area: phone; }

.hero-beats,
.hero > .beats {
  min-width: 0;
}

.screen-cue { display: none; margin: 0; }

h1 {
  margin: 12px 0 8px;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

@media (min-width: 801px) {
  .wrap.site-tab > .scripture-epigraph,
  .wrap.site-tab > h1,
  .wrap.site-tab > .lede {
    margin-inline: auto;
    text-align: center;
  }

  .wrap.site-tab > .scripture-epigraph {
    padding-left: 0;
    border-left: 0;
    padding-top: 0.65rem;
    border-top: 3px solid var(--sage-soft);
  }

  .wrap.site-tab-centered {
    text-align: center;
  }

  .wrap.site-tab-centered > .brand-mark,
  .wrap.site-tab-centered > h1,
  .wrap.site-tab-centered > .lede,
  .wrap.site-tab-centered > p,
  .wrap.site-tab-centered > .footnote,
  .wrap.site-tab-centered > .note {
    margin-inline: auto;
  }

  .wrap.site-tab-centered .actions {
    justify-content: center;
  }

  .wrap.site-tab-centered table.plans {
    width: 100%;
    margin-inline: auto;
  }

  .wrap.site-tab-centered .plans th,
  .wrap.site-tab-centered .plans td {
    text-align: center;
  }
}

.scripture-epigraph {
  margin: 8px 0 22px;
  max-width: 38rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--sage-soft);
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--sage);
}

.scripture-epigraph strong {
  font-weight: 700;
  color: var(--sage);
}

h1 + .lede,
.scripture-epigraph + h1 { margin-top: 0; }

.lede { margin: 0; max-width: 38rem; font-size: 1.05rem; }

.plan-cell-label { display: none; }

.plans td.per-member .plan-cell-label a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.note { margin: 10px 0 0; color: var(--muted); }

.footnote {
  margin: 20px 0 0;
  max-width: 38rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.footnote a { color: var(--muted); }

.note sup a,
.plans sup a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.beats { margin-top: 18px; display: grid; gap: 0; }

.beats button {
  text-align: left;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 10px 0;
  cursor: pointer;
}

.beats button[aria-current="true"] { color: var(--accent); }

.device-label { margin: 0; color: var(--muted); text-align: center; }

.phone-mount {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  justify-self: center;
}

.phone-shell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
}

.device {
  width: 100%;
  height: min(498px, 58vh);
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--cream);
  overflow: hidden;
  font-size: 0.93rem;
  line-height: 1.4;
}

.track {
  display: flex;
  width: calc(var(--slides, 7) * 100%);
  height: 100%;
  min-height: 0;
  align-items: stretch;
  transition: transform 420ms ease;
}

.slide {
  width: calc(100% / var(--slides, 7));
  height: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  padding: 16px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#slide-practice,
#slide-question,
#slide-draft {
  gap: 6px;
  padding: 14px 12px 12px;
}

#slide-draft .card {
  padding: 10px 12px;
  gap: 4px;
}

#slide-draft .choice {
  padding: 8px 12px;
}

#slide-question .field {
  padding: 9px 11px;
}

#slide-question .ask {
  padding: 8px 14px;
}

.app-title { margin: 0; font-size: 1.12rem; font-weight: 600; }

.sub { margin: 0; font-weight: 600; }

.muted { margin: 0; color: var(--muted); }

.caption { margin: 0; color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }

.label {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.label.ink { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  align-self: flex-start;
  background: var(--chip);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.chip.sage { background: var(--sage-soft); color: var(--sage); }

.chip.accent { background: var(--accent-soft); color: var(--accent); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.argument {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.argument p, .passage p { margin: 0; }

.passage {
  background: var(--sage-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.passage-top { display: flex; justify-content: space-between; gap: 8px; }

.player { gap: 10px; }

.transport { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.transport span {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 52px;
  text-align: center;
}

.transport .speed { margin-left: auto; }

.scrub {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
}

.scrub-fill {
  display: block;
  width: 35%;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.times { display: flex; justify-content: space-between; }

.choice, .field {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 12px 14px;
}

.choice.correct {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.mock-btn {
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  margin: 0;
}

.mock-btn.secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.fact-card {
  background: #f8f1dc;
  border-color: #e2c27a;
}

.link-title {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.medal-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.medal-row > div { min-width: 0; }

.medal {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #e0a06a, #8a4b2a);
  box-shadow: inset 0 0 0 3px #f3e6c8;
}

.celebrate-slide {
  position: relative;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  overflow: hidden;
}

.celebrate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
}

.celebrate-stage {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
}

.celebrate-stage img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  animation: celebrate-pop 1.6s ease-in-out infinite;
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
  animation: sparkle 1.6s ease-in-out infinite;
}

.spark:nth-child(1) {
  top: 12px;
  right: 18px;
  animation-delay: 0s;
}

.spark:nth-child(2) {
  top: 80px;
  left: 8px;
  animation-delay: 0.25s;
}

.spark:nth-child(3) {
  bottom: 16px;
  right: 22px;
  animation-delay: 0.5s;
}

@keyframes celebrate-pop {
  0%, 100% { transform: translateY(0) scale(0.94); }
  40% { transform: translateY(-8px) scale(1.05); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.2; transform: scale(0.6); }
  40% { opacity: 1; transform: scale(1); }
}

.field { color: var(--muted); border-radius: 12px; overflow-wrap: anywhere; }

.field-label { margin: 0; font-size: 0.78rem; font-weight: 600; }

.public-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--chip);
  flex: 0 0 auto;
}

.ask {
  margin: 0;
  text-align: center;
  background: var(--chip);
  color: #a8988c;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
}

.carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 6px;
  row-gap: 8px;
  width: 100%;
  padding-top: 2px;
}

.carousel > button {
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
}

.carousel .dots {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-content: center;
}

.carousel > button:disabled { color: #a8988c; cursor: default; }

.carousel > #screen-prev { grid-column: 1; grid-row: 2; justify-self: start; }

.carousel > #screen-next { grid-column: 3; grid-row: 2; justify-self: end; }

.dots { display: flex; gap: 5px; flex-wrap: wrap; }

.dots button {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 0;
  position: relative;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  cursor: pointer;
}

.dots button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  position: absolute;
  top: 14px;
  left: 14px;
}

.dots button[aria-current="true"] {
  background: var(--accent);
  color: var(--cream);
  border-color: var(--accent);
}

.band { padding: 8px 0 48px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.steps li { padding-top: 12px; border-top: 1px solid var(--line); }

.steps strong { display: block; margin-bottom: 4px; }

h2 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 600; }

.plans { width: 100%; border-collapse: collapse; margin-top: 16px; }

.plans th, .plans td {
  text-align: left;
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.plans th { font-weight: 600; }

.price { font-size: 1.2rem; font-weight: 600; }

.legal { padding-bottom: 48px; }

.legal h1 { font-size: 1.7rem; }

.legal h2 { margin-top: 28px; font-size: 1.2rem; }

.legal h3 { margin: 20px 0 8px; font-size: 1.05rem; }

.legal p, .legal li { max-width: 42rem; }

.legal table { border-collapse: collapse; width: min(100%, 42rem); margin: 12px 0; }

.legal th, .legal td { border-top: 1px solid var(--line); text-align: left; padding: 8px 10px 8px 0; vertical-align: top; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }

.site-footer a { color: var(--muted); }

.from-app .site-nav,
.from-app .header-actions,
.from-app .site-footer nav {
  display: none !important;
}

.from-app .site-header .brand {
  pointer-events: none;
  cursor: default;
}

@media (max-width: 800px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
  }

  .brand { min-width: 0; }

  .header-actions { margin-left: 0; }

  .header-actions .button.secondary { display: none; }

  .site-nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-radius: 999px;
    font-size: 0.88rem;
  }

  .site-nav a[aria-current="page"] { background: var(--accent-soft); }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero-beats,
  .hero > .beats { order: 2; }
  .phone-mount { order: 3; max-width: none; }

  .screen-cue {
    display: block;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.92rem;
  }

  .actions { flex-direction: column; align-items: stretch; }

  .actions .button { text-align: center; }

  .beats { gap: 8px; }

  .beats button {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    padding: 12px 14px;
  }

  .beats button[aria-current="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--ink);
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    counter-reset: week;
  }

  .steps li {
    position: relative;
    border-top: 0;
    padding: 2px 0 2px 44px;
  }

  .steps li::before {
    counter-increment: week;
    content: counter(week);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--cream);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .plans thead { display: none; }

  .plans, .plans tbody, .plans tr, .plans td { display: block; width: 100%; }

  .plans tr {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    margin: 0 0 12px;
    padding: 12px 14px;
  }

  .plans td { border: 0; padding: 6px 0; }

  .plans td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
  }

  .plans td:first-child { font-size: 1.15rem; font-weight: 600; }

  .plans td:first-child::before { content: none; }

  .plans td.per-member::before { content: none; }

  .plans td.per-member .plan-cell-label {
    display: block;
    font-size: 0.78rem;
    margin-bottom: 2px;
  }

  .site-footer { flex-direction: column; align-items: flex-start; }

  .site-footer nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }

  h1 { font-size: 1.7rem; }

  .dots { flex-wrap: nowrap; }

  .dots button {
    width: 28px;
    height: 28px;
  }

  .dots button::after {
    width: 7px;
    height: 7px;
    top: 10px;
    left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track { transition: none; }

  .celebrate-stage img,
  .spark { animation: none; }
}
