/* ============================================================
   Shared Lives — landing page styles
   Palette: berry #6D2E46 · rose #A26769 · cream #ECE2D0
            base #FDFBF8 · ink #2E2A2B · sage #5F8272 · tint #F4EEE9
   ============================================================ */

:root {
  --berry: #6d2e46;
  --berry-dark: #571f36;
  --rose: #a26769;
  --cream: #ece2d0;
  --base: #fdfbf8;
  --ink: #2e2a2b;
  --sage: #5f8272;
  --sage-dark: #46654f;
  --tint: #f4eee9;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --container: 1120px;
  --shadow-soft: 0 6px 30px rgba(46, 42, 43, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--base);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--berry);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container.narrow {
  max-width: 780px;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease,
    box-shadow 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

.btn-berry {
  background: var(--berry);
  color: var(--base);
}

.btn-berry:hover {
  background: var(--berry-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(109, 46, 70, 0.3);
}

.btn-cream {
  background: var(--cream);
  color: var(--berry);
}

.btn-cream:hover {
  background: var(--base);
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 19px;
  padding: 17px 34px;
}

.btn-block {
  display: block;
  width: 100%;
}

.microcopy {
  font-size: 15px;
  color: var(--ink);
  opacity: 0.72;
  margin-top: 12px;
}

.microcopy-cream {
  color: var(--cream);
  opacity: 0.85;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 248, 0.92);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(46, 42, 43, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
}

.wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--berry);
  text-decoration: none;
}

.wordmark:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn-header {
  font-size: 16px;
  padding: 10px 20px;
}

.cta-mobile {
  display: none;
}

@media (max-width: 640px) {
  .cta-desktop {
    display: none;
  }
  .cta-mobile {
    display: inline;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 56px 72px;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 6.5vw, 3.9rem);
}

.hero-sub {
  font-size: clamp(1.06rem, 2.2vw, 1.25rem);
  max-width: 34em;
}

.hero-cta {
  margin-top: 28px;
}

.hero-art {
  width: 100%;
  max-width: 460px;
}

@media (min-width: 900px) {
  .hero {
    padding-block: 80px 96px;
  }
  .hero-grid {
    flex-direction: row;
    gap: 56px;
  }
  .hero-copy {
    flex: 1 1 55%;
  }
  .hero-art {
    flex: 1 1 45%;
  }
}

/* hero waveform idle pulse */
@keyframes wavePulse {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.55);
  }
}

.hero-wave .wbar {
  transform-origin: center;
  transform-box: fill-box;
  animation: wavePulse 1.6s ease-in-out infinite;
}

.hero-wave .wbar:nth-child(2n) {
  animation-delay: 0.2s;
}

.hero-wave .wbar:nth-child(3n) {
  animation-delay: 0.45s;
}

.hero-wave .wbar:nth-child(4n) {
  animation-delay: 0.7s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave .wbar {
    animation: none;
  }
}

/* ---------- Bands ---------- */
.band-cream {
  background: var(--cream);
}

/* ---------- Problem ---------- */
.problem {
  padding-block: 72px;
  text-align: center;
}

.problem-line {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 26em;
  margin-inline: auto;
  margin-bottom: 1.1em;
  text-wrap: balance;
}

.problem-pivot {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  color: var(--sage-dark);
  margin-top: 1.6em;
  margin-bottom: 0;
}

/* ---------- Family calls ---------- */
.family-calls {
  padding-block: 72px;
  background: var(--base);
}

.family-calls-intro {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 36px;
  text-align: center;
}

.family-calls-intro h2 {
  margin-block: 10px 14px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  color: var(--berry);
}

.family-calls-intro > p:last-child {
  max-width: 42rem;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.family-calls-grid {
  display: grid;
  gap: 18px;
}

.family-call-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}

.family-call-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.family-call-card figcaption {
  padding: 18px 20px 20px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
}

@media (min-width: 800px) {
  .family-calls {
    padding-block: 96px;
  }

  .family-calls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Scroll story ---------- */
.story {
  background: var(--base);
}

.story-stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.story-dots {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}

.story-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  opacity: 0.35;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.story-dots .dot.is-active {
  opacity: 1;
  background: var(--berry);
  transform: scale(1.4);
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  opacity: 0;
  visibility: hidden;
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
}

.scene-art {
  width: 100%;
  max-width: 640px;
  flex: 0 1 auto;
}

.scene-caption {
  max-width: 560px;
  text-align: center;
  margin-top: 12px;
}

.scene-caption h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 0.35em;
}

.scene-caption p {
  font-size: clamp(1rem, 2.2vw, 1.13rem);
  margin: 0;
}

@media (max-width: 640px) {
  .scene-art {
    max-width: 400px;
  }
  .scene-caption {
    position: absolute;
    /* clear the sticky mobile CTA (~72px) plus breathing room */
    bottom: max(8svh, 92px);
    left: 20px;
    right: 20px;
    max-width: none;
  }
  .scene-caption p {
    font-size: 0.95rem;
  }
  .scene {
    justify-content: flex-start;
    padding-top: 10svh;
  }
}

/* SVG text inside scenes */
.svg-text {
  font-family: var(--font-serif);
  font-size: 24px;
}

.svg-text-sm {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
}

.svg-label {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
}

.svg-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
}

.svg-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
}

/* Story exit CTA */
.story-exit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  z-index: 6;
}

.story-exit.is-active {
  opacity: 1;
  visibility: visible;
}

.story-exit-card {
  background: var(--base);
  border: 2px solid var(--berry);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 36px 32px;
  text-align: center;
  max-width: 520px;
}

.story-exit-line {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  color: var(--berry);
  line-height: 1.35;
  text-wrap: balance;
}

/* ---- Reduced-motion / no-JS story fallback: stacked panels ---- */
.story.story-static .story-stage {
  min-height: 0;
  display: block;
  overflow: visible;
}

.story.story-static .story-dots {
  display: none;
}

.story.story-static .scene,
.story.story-static .story-exit {
  position: static;
  opacity: 1;
  visibility: visible;
  padding-block: 48px;
}

.story.story-static .scene:nth-child(even) {
  background: var(--tint);
}

/* No-JS: same stacked fallback via <noscript>-free approach — JS adds .story-pinned */
@media (scripting: none) {
  .story .story-stage {
    min-height: 0;
    display: block;
    overflow: visible;
  }
  .story .story-dots {
    display: none;
  }
  .story .scene,
  .story .story-exit {
    position: static;
    opacity: 1;
    visibility: visible;
    padding-block: 48px;
  }
}

/* ---------- Plan ---------- */
.plan {
  padding-block: 88px;
}

.plan-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-card {
  position: relative;
  background: var(--tint);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
}

.plan-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.plan-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--rose);
  opacity: 0.55;
}

.plan-card h3 {
  font-size: 1.35rem;
}

.plan-card p {
  margin: 0;
}

.plan-cta {
  text-align: center;
  margin-top: 44px;
}

/* ---------- Programme selector and chapters ---------- */
.programme {
  padding-block: 96px;
  background: var(--base);
}

.programme-intro,
.chapters-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.programme-intro > p:last-child,
.chapters-head > p:last-child {
  max-width: 42rem;
  margin-inline: auto;
  color: var(--ink);
  opacity: 0.78;
}

.duration-picker {
  display: grid;
  gap: 12px;
  margin-block: 36px 20px;
}

.duration-option {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 18px 20px;
  border: 2px solid var(--cream);
  border-radius: var(--radius);
  background: var(--base);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.duration-option:hover {
  border-color: var(--rose);
  transform: translateY(-2px);
}

.duration-option:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

.duration-option.is-selected {
  border-color: var(--berry);
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--berry);
}

.duration-option strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--berry);
}

.duration-option span {
  font-size: 0.9rem;
  opacity: 0.72;
}

.duration-summary {
  max-width: 720px;
  margin: 0 auto 84px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--cream);
  text-align: center;
}

.chapters-head h3 {
  margin-block: 10px 14px;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08;
}

.chapter-grid {
  display: grid;
  gap: 14px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.chapter-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  background: var(--tint);
}

.chapter-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
}

.chapter-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--berry);
}

.chapter-card p {
  margin: 10px 0 0;
  line-height: 1.5;
  opacity: 0.78;
}

@media (min-width: 700px) {
  .duration-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .chapter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Guide ---------- */
.guide {
  padding-block: 72px;
  text-align: center;
}

.guide-empathy {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  color: var(--berry);
  line-height: 1.35;
  max-width: 24em;
  margin-inline: auto;
}

.proof-chips {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.proof-chips li {
  background: var(--base);
  border: 1.5px solid var(--rose);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 15.5px;
  font-weight: 500;
}

/* ---------- Stakes ---------- */
.stakes {
  padding-block: 88px;
}

.stakes-card {
  display: grid;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 800px) {
  .stakes-card {
    grid-template-columns: 1fr 1fr;
  }
}

.stakes-col {
  padding: 40px 36px;
}

.stakes-col h2 {
  font-size: 1.5rem;
}

.stakes-without {
  background: var(--tint);
}

.stakes-without h2 {
  color: var(--ink);
}

.stakes-without p {
  margin: 0;
}

.stakes-with {
  background: var(--berry);
}

.stakes-with h2 {
  color: var(--cream);
}

.stakes-with ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--base);
}

.stakes-with li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.stakes-with li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sage);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>')
    center / 100% no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>')
    center / 100% no-repeat;
  background-color: #9dc2ae;
}

/* ---------- Lead magnet ---------- */
.leadmagnet {
  padding-block: 8px 88px;
}

.leadmagnet-card {
  background: var(--tint);
  border: 1.5px dashed var(--rose);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.leadmagnet-copy h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25em;
}

.leadmagnet-copy p {
  margin: 0;
}

.leadmagnet-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.leadmagnet-form[hidden] {
  display: none;
}

.leadmagnet-form input[type="email"] {
  flex: 1 1 240px;
  font-family: var(--font-sans);
  font-size: 17px;
  padding: 13px 18px;
  border: 2px solid var(--rose);
  border-radius: 999px;
  background: var(--base);
  color: var(--ink);
}

.leadmagnet-form input[type="email"]:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
}

.leadmagnet-done {
  margin: 0;
  font-weight: 600;
  color: var(--sage-dark);
}

/* ---------- Trust ---------- */
.trust {
  padding-block: 88px;
}

.section-heading {
  text-align: center;
  font-size: clamp(1.7rem, 4.2vw, 2.4rem);
  margin-bottom: 48px;
}

.trust-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-card {
  background: var(--base);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
}

.trust-card h3 {
  font-size: 1.25rem;
}

.trust-card p {
  margin: 0;
}

/* ---------- Pricing ---------- */
.pricing {
  padding-block: 88px;
}

.pricing-card {
  background: var(--cream);
  border: 2.5px solid var(--berry);
  border-radius: 20px;
  padding: 44px 36px;
  text-align: center;
}

.pricing-eyebrow {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--berry);
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing-price {
  margin-bottom: 24px;
}

.price-figure {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 4.2rem);
  font-weight: 700;
  color: var(--berry);
}

.price-period {
  font-size: 1.2rem;
  color: var(--ink);
  opacity: 0.7;
}

.pricing-list {
  list-style: none;
  margin: 0 auto 32px;
  padding: 0;
  max-width: 460px;
  text-align: left;
}

.pricing-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 19px;
  height: 19px;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>')
    center / 100% no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>')
    center / 100% no-repeat;
  background-color: var(--sage);
}

.print-options {
  display: grid;
  gap: 28px;
  margin-top: 28px;
  padding: 32px;
  border-radius: 20px;
  background: var(--tint);
  box-shadow: var(--shadow-soft);
}

.print-options-copy h3 {
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.print-options-copy p:last-child {
  margin: 0;
}

.print-editions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.print-editions div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--rose);
  border-radius: 12px;
  background: var(--base);
}

.print-editions strong {
  font-size: 0.95rem;
}

.print-editions span {
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--berry);
}

@media (min-width: 700px) {
  .print-options {
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    align-items: center;
  }
}

/* ---------- FAQ ---------- */
.faq {
  padding-block: 24px 88px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--tint);
  border-radius: 12px;
  padding: 0;
}

.faq-item summary {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--berry);
  cursor: pointer;
  padding: 20px 52px 20px 24px;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--rose);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: -3px;
  border-radius: 12px;
}

.faq-item p {
  padding: 0 24px 22px;
  margin: 0;
}

/* ---------- Final CTA band ---------- */
.final-band {
  background: var(--berry);
  padding-block: 96px;
  text-align: center;
}

.final-band h2 {
  color: var(--cream);
  font-size: clamp(1.8rem, 4.6vw, 2.7rem);
  max-width: 18em;
  margin-inline: auto;
  margin-bottom: 36px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--base);
  border-top: 1px solid var(--tint);
  padding-block: 44px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.wordmark-footer {
  font-size: 22px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.site-footer a {
  color: var(--ink);
  font-size: 15.5px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--berry);
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer p {
  margin: 0;
  font-size: 14.5px;
  opacity: 0.65;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
}

@media (max-width: 640px) {
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(253, 251, 248, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 -4px 20px rgba(46, 42, 43, 0.12);
    transform: translateY(110%);
    transition: transform 0.3s ease;
  }
  .sticky-cta.is-visible {
    transform: translateY(0);
  }
  .sticky-cta[hidden] {
    display: none;
  }
}

/* ---------- Scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Stagger for problem lines */
.problem-line.reveal:nth-of-type(1).is-in {
  transition-delay: 0s;
}
.problem-line.reveal:nth-of-type(2).is-in {
  transition-delay: 0.25s;
}
.problem-line.reveal:nth-of-type(3).is-in {
  transition-delay: 0.5s;
}
.problem-pivot.reveal.is-in {
  transition-delay: 0.85s;
}

/* No JS: show everything */
@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: opacity 0.4s ease;
    transform: none;
  }
  .btn {
    transition: none;
  }
  .sticky-cta {
    transition: none;
  }
}
