:root {
  --bg: #f6f3ec;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-border: rgba(196, 169, 120, 0.18);
  --ink: #241a12;
  --muted: #665b52;
  --gold: #c99a4b;
  --gold-deep: #9f6d28;
  --peach: #f9d9c8;
  --sky: #dfeef8;
  --mist: #f7efe1;
  --shadow: 0 20px 60px rgba(91, 66, 32, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 234, 203, 0.95), transparent 34%),
    radial-gradient(circle at top right, rgba(208, 232, 245, 0.82), transparent 28%),
    linear-gradient(180deg, #fffaf3 0%, #f7f3eb 34%, #f4efe7 100%);
  min-height: 100vh;
  scroll-snap-type: y proximity;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 16px 16px 108px;
}

.snap-panel {
  min-height: calc(100svh - 34px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 28px;
  border-radius: 36px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 236, 0.82)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow-a {
  top: -36px;
  left: -24px;
  width: 180px;
  height: 180px;
  background: rgba(255, 204, 149, 0.7);
}

.hero-glow-b {
  top: 120px;
  right: -40px;
  width: 190px;
  height: 190px;
  background: rgba(180, 220, 245, 0.58);
}

.hero-topbar,
.section-heading,
.lead-copy,
.story-copy,
.hero-copy,
.hero-actions,
.hero-visual,
.intro-panel,
.proof-card,
.path-card,
.mini-card,
.lead-card {
  position: relative;
  z-index: 1;
}

.hero-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(36, 26, 18, 0.76);
}

.top-link {
  font-size: 13px;
  color: rgba(36, 26, 18, 0.56);
}

.eyebrow,
.section-chip,
.verse-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(202, 158, 98, 0.18);
  color: #7e613d;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(16px);
}

.hero h1,
.section h2,
.story-copy h2 {
  margin: 14px 0 0;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(2.9rem, 10vw, 4rem);
}

.hero-summary,
.section p,
.proof-card p,
.path-card p,
.mini-card p,
.lead-points li {
  color: var(--muted);
  line-height: 1.7;
}

.hero-summary {
  margin: 18px 0 0;
  font-size: 1rem;
}

.hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.button:active {
  transform: translateY(1px) scale(0.995);
}

.button-primary {
  color: #fffdf8;
  background: linear-gradient(135deg, #d7a654 0%, #b87a2e 100%);
  box-shadow: 0 16px 30px rgba(186, 128, 45, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(197, 162, 107, 0.2);
  color: var(--ink);
}

.hero-visual {
  margin-top: 24px;
}

.hero-visual img {
  aspect-ratio: 9 / 11;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 40px rgba(128, 94, 38, 0.12);
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px auto 0;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(197, 162, 107, 0.2);
  color: #7e613d;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(113, 82, 35, 0.08);
}

.scroll-arrow {
  display: inline-flex;
  animation: floatArrow 1.7s ease-in-out infinite;
}

@keyframes floatArrow {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.72;
  }

  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

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

.section {
  border-radius: var(--radius-xl);
}

.intro-panel,
.scripture-proof,
.path-section,
.promise-section,
.lead-card {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section h2 {
  font-size: clamp(1.86rem, 6.9vw, 2.35rem);
  line-height: 1.08;
}

.intro-panel p {
  margin: 16px 0 0;
  font-size: 0.98rem;
}

.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.contrast-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(201, 170, 119, 0.18);
  box-shadow: 0 14px 28px rgba(113, 82, 35, 0.06);
}

.contrast-card span {
  color: #ab7a35;
  font-size: 0.82rem;
  font-weight: 700;
}

.contrast-card strong {
  font-size: 1rem;
  line-height: 1.45;
}

.focus-note,
.proof-footer {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 242, 220, 0.9), rgba(240, 248, 252, 0.84));
  color: #5f4f41;
  font-size: 0.95rem;
  line-height: 1.7;
  border: 1px solid rgba(204, 178, 135, 0.16);
}

.proof-grid,
.path-cards,
.promise-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.proof-grid {
  grid-template-columns: 1fr 1fr;
}

.proof-card,
.path-card,
.mini-card {
  padding: 18px;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid rgba(210, 183, 141, 0.18);
  box-shadow: 0 16px 30px rgba(118, 84, 27, 0.08);
}

.proof-card {
  min-height: 170px;
}

.proof-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7e4c2, #f4cfa1);
  color: #7f5820;
  font-size: 12px;
  font-weight: 700;
}

.proof-card h3,
.path-card h3,
.mini-card h3,
.lead-copy h2 {
  margin: 16px 0 0;
  font-size: 1.22rem;
}

.proof-card p,
.path-card p,
.mini-card p,
.story-copy p {
  margin: 10px 0 0;
  font-size: 0.96rem;
}

.path-step {
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  color: #af7a2d;
}

.path-section,
.promise-section,
.lead-section,
.intro-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.path-cards {
  gap: 12px;
}

.path-card {
  padding: 16px 18px;
}

.story-card {
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(249, 242, 230, 0.94));
  border: 1px solid rgba(198, 165, 108, 0.18);
  box-shadow: var(--shadow);
}

.story-copy {
  padding: 24px 20px 0;
}

.story-copy h2 {
  font-size: clamp(1.9rem, 7vw, 2.55rem);
  line-height: 1.08;
}

.story-visual {
  margin: 20px 0 0;
}

.story-visual img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.verse-tag {
  margin-top: 16px;
}

.warning-section {
  display: flex;
  align-items: stretch;
}

.warning-card {
  width: 100%;
  padding: 24px 20px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 210, 122, 0.3), transparent 24%),
    radial-gradient(circle at bottom left, rgba(255, 136, 78, 0.14), transparent 28%),
    linear-gradient(180deg, #2f2016 0%, #16100c 52%, #0f0a08 100%);
  box-shadow: 0 28px 70px rgba(22, 13, 7, 0.34);
  color: #fff6ea;
}

.warning-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 214, 159, 0.18);
  color: #ffd58d;
}

.warning-card h2 {
  color: #fff7ee;
  font-size: clamp(1.84rem, 6.8vw, 2.3rem);
  line-height: 1.12;
}

.warning-lead {
  margin: 14px 0 0;
  color: rgba(255, 234, 207, 0.82);
  font-size: 1rem;
  line-height: 1.65;
}

.warning-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.warning-item {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 214, 159, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 244, 227, 0.06);
}

.warning-item h3 {
  margin: 0;
  color: #fff3df;
  font-size: 1.02rem;
}

.warning-item p {
  margin: 8px 0 0;
  color: rgba(255, 241, 220, 0.82);
  line-height: 1.65;
  font-size: 0.94rem;
}

.warning-item span {
  display: inline-block;
  margin-top: 10px;
  color: #ffcf84;
  font-size: 0.82rem;
  font-weight: 600;
}

.mini-card span {
  display: inline-block;
  margin-top: 12px;
  color: #9a7747;
  font-size: 0.88rem;
  font-weight: 600;
}

.lead-card {
  display: grid;
  gap: 20px;
}

.lead-points {
  padding-left: 18px;
  margin: 16px 0 20px;
}

.lead-points li + li {
  margin-top: 10px;
}

.form-shell {
  min-height: 580px;
  padding: 0;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(198, 165, 108, 0.16);
  overflow: hidden;
}

.tally-frame {
  width: 100%;
  min-height: 580px;
  display: block;
  border: 0;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(calc(100% - 24px), 456px);
  padding: 14px;
  transform: translateX(-50%);
  border-radius: 24px;
  background: rgba(27, 20, 14, 0.88);
  color: #fff8ee;
  box-shadow: 0 20px 50px rgba(16, 11, 7, 0.28);
  backdrop-filter: blur(18px);
}

.sticky-cta strong,
.sticky-cta span {
  display: block;
}

.sticky-cta strong {
  font-size: 0.98rem;
}

.sticky-cta span {
  margin-top: 2px;
  color: rgba(255, 248, 238, 0.74);
  font-size: 0.82rem;
}

.sticky-cta .button {
  min-height: 48px;
  padding: 0 18px;
  white-space: nowrap;
}

body.modal-open {
  overflow: hidden;
}

.tally-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.tally-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tally-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 13, 9, 0.54);
  backdrop-filter: blur(8px);
}

.tally-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(100%, 480px);
  height: min(86svh, 860px);
  margin: 0 auto;
  background: linear-gradient(180deg, #fffdf8, #f7f1e7);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 50px rgba(18, 12, 9, 0.24);
  overflow: hidden;
  transform: translateY(22px);
  transition: transform 260ms ease;
}

.tally-modal.is-open .tally-modal-dialog {
  transform: translateY(0);
}

.tally-modal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(197, 162, 107, 0.16);
}

.tally-modal-label {
  margin: 0;
  color: #a3773a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tally-modal-topbar h3 {
  margin: 6px 0 0;
  font-size: 1.24rem;
}

.tally-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #624828;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(90, 64, 28, 0.08);
}

.tally-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 481px) {
  .page-shell {
    padding-top: 28px;
  }

  .hero,
  .intro-panel,
  .scripture-proof,
  .path-section,
  .promise-section,
  .lead-card,
  .story-card {
    border-radius: 36px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 12px;
  }

  .hero {
    padding: 16px 16px 20px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.2rem);
  }

  .hero-summary {
    font-size: 0.96rem;
  }

  .section h2,
  .story-copy h2 {
    font-size: clamp(1.62rem, 8vw, 2.08rem);
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-card,
  .path-card,
  .mini-card {
    padding: 16px;
    border-radius: 22px;
  }

  .proof-card p,
  .path-card p,
  .mini-card p,
  .warning-item p,
  .warning-lead,
  .story-copy p,
  .lead-points li,
  .intro-panel p {
    font-size: 0.93rem;
    line-height: 1.6;
  }

  .contrast-grid {
    grid-template-columns: 1fr;
  }

  .focus-note,
  .proof-footer {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .form-shell,
  .tally-frame {
    min-height: 520px;
  }

  .tally-modal-dialog {
    height: min(88svh, 820px);
    border-radius: 24px 24px 0 0;
  }

  .sticky-cta {
    padding: 12px;
  }

  .sticky-cta strong {
    font-size: 0.92rem;
  }

  .sticky-cta span {
    font-size: 0.78rem;
  }
}
