/* =========================================================
   The Connected Couple Playbook — The Family Formula
   Warm, mobile-first VSL landing page
   ========================================================= */

:root {
  /* Palette */
  --cream:    #FBF6EF;   /* page background */
  --sand:     #F3E9DA;   /* cards / panels */
  --sand-2:   #EFE3D1;   /* slightly deeper panel */
  --cocoa:    #3E2D24;   /* headings */
  --body:     #52443B;   /* body text */
  --taupe:    #7A6A5B;   /* muted / secondary */
  --line:     #E6D8C6;   /* borders & dividers */
  --blue:     #2D5BD0;   /* buttons & links ONLY */
  --blue-dk:  #244BAE;   /* button hover */

  /* Warm accents (eyebrows, icons, badges) */
  --terra:    #B15A3A;   /* terracotta — labels / accents */
  --terra-dk: #944827;
  --clay-tint:#F4E3D6;   /* soft warm badge fill */
  --gold:     #C89A3C;   /* stars */

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --wrap: 1080px;
  --wrap-mid: 960px;
  --wrap-narrow: 660px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(62, 45, 36, .05);
  --shadow-md: 0 10px 30px -12px rgba(62, 45, 36, .18);
  --shadow-blue: 0 10px 24px -8px rgba(45, 91, 208, .45);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.0625rem;         /* 17px */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
strong { color: var(--cocoa); font-weight: 600; }
em { font-style: italic; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--cocoa);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 7.5vw, 3.4rem);
  line-height: 1.06;
  margin-bottom: .55em;
}
h2 {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  margin-bottom: .5em;
}
h3 { font-size: 1.22rem; line-height: 1.25; margin-bottom: .35em; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  color: var(--body);
  line-height: 1.55;
  max-width: 34em;
  margin-inline: auto;
}

/* Ryan's fuller intro, sitting below the hero CTA */
.hero__story {
  max-width: 40em;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  text-align: left;
  color: var(--body);
  line-height: 1.75;
}

/* Punchy three-line stanza in the problem section */
.problem-stanza {
  color: var(--cocoa);
  font-weight: 500;
  line-height: 1.95;
}

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.1em;
}

.mini-head {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--cocoa);
  margin: 2.6rem 0 1.3rem;
}

.muted { color: var(--taupe); font-weight: 400; }
.center { text-align: center; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}
.wrap--mid { max-width: var(--wrap-mid); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(3.5rem, 9vw, 6rem); }

.prose { max-width: 40em; margin-inline: auto; }
.prose.center { text-align: center; }
.center > .prose, .center .lead { margin-inline: auto; }

.divider {
  border: 0;
  height: 1px;
  background: var(--line);
  max-width: var(--wrap);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  padding: 22px;
  text-align: center;
}
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cocoa);
}
.wordmark:hover { color: var(--cocoa); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.hero h1 { max-width: 15ch; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;                        /* clip the sheen sweep to the pill */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #fff;
  /* glossy blue — lighter highlight up top, deeper toward the base */
  background: linear-gradient(180deg, #4d74e4 0%, #2d5bd0 52%, #2650bb 100%);
  padding: 1.05em 1.95em;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  /* metallic edge (top highlight + bottom shade) + layered depth + blue glow */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -2px 5px rgba(0, 0, 0, .20),
    0 8px 22px -6px rgba(45, 91, 208, .55),
    0 3px 8px rgba(20, 35, 80, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  text-align: center;
  animation: btnGlow 2.8s ease-in-out infinite;
}
.btn > * { position: relative; z-index: 1; }   /* text/arrow sit above the sheen */
/* silver sheen that sweeps across every few seconds */
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 100%;
  z-index: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
  transform: translateX(-185%) skewX(-16deg);
  animation: btnShine 4.5s ease-in-out infinite;
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07) saturate(1.05); color: #fff; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn__arrow { width: 20px; height: 20px; color: currentColor; transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--wide { width: 100%; max-width: 30rem; }

/* gentle glow "breathing" so the CTA never feels static */
@keyframes btnGlow {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .45),
      inset 0 -2px 5px rgba(0, 0, 0, .20),
      0 8px 22px -6px rgba(45, 91, 208, .5),
      0 3px 8px rgba(20, 35, 80, .22);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .5),
      inset 0 -2px 5px rgba(0, 0, 0, .20),
      0 13px 30px -4px rgba(45, 91, 208, .78),
      0 3px 8px rgba(20, 35, 80, .24);
  }
}
@keyframes btnShine {
  0%        { transform: translateX(-185%) skewX(-16deg); }
  22%, 100% { transform: translateX(330%) skewX(-16deg); }
}

/* CTA blocks */
.cta { margin-top: 2.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.cta--tight { margin-top: 1.8rem; }
.trust-line {
  font-size: .9rem;
  color: var(--taupe);
  max-width: 34em;
  margin: 0 auto;
}
.cta__note { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.scarce-line {
  margin: 0;
  font-size: .98rem;
  font-weight: 600;
  color: var(--terra);
  letter-spacing: .005em;
}
.scarce-line strong { color: var(--terra-dk); font-weight: 700; }

/* ---------- Video (VSL) ---------- */
.vsl {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #1c140f;
  box-shadow: var(--shadow-md);
}
.vsl__video { width: 100%; height: 100%; display: block; object-fit: cover; background: #1c140f; cursor: pointer; }

/* Non-interactive progress line — fills fast early, then eases off.
   pointer-events:none means it can't be tapped or dragged to skip. */
.vsl__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: rgba(0, 0, 0, .32);
  pointer-events: none;
  z-index: 3;
}
.vsl__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #FFC83D;
  box-shadow: 0 0 8px rgba(255, 200, 61, .7);
  transition: width .25s linear;
}
.vsl__fallback { color: var(--cream); padding: 1rem; text-align: center; }

.vsl__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 0;
  background: var(--cream);
  color: var(--terra);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.55);
  transition: transform .2s ease, opacity .3s ease;
}
.vsl__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.vsl__play-icon { width: 32px; height: 32px; margin-left: 4px; }
.vsl.is-playing .vsl__play,
.vsl.is-muted .vsl__play { opacity: 0; pointer-events: none; }

/* "Tap for sound" — shown while the video autoplays muted */
.vsl__unmute {
  position: absolute;
  left: 50%; top: 14%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: .5em;
  padding: .65em 1.15em;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .55);
  animation: unmutePulse 1.8s ease-in-out infinite;
}
.vsl.is-muted .vsl__unmute { display: inline-flex; }
.vsl__unmute-icon { width: 20px; height: 20px; color: var(--terra); }
@keyframes unmutePulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.05); }
}

/* ---------- Free bonus badge (hero) ---------- */
.free-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 38em;
  margin: 1.8rem auto 0;
  padding: 12px 18px;
  background: var(--clay-tint);
  border: 1px solid #E9CDB8;
  border-radius: var(--radius-sm);
  color: var(--terra-dk);
  font-size: .98rem;
  text-align: left;
}
.free-badge p { margin: 0; }
.free-badge strong { color: var(--terra-dk); }
.free-badge__star { flex: 0 0 auto; width: 20px; height: 20px; color: var(--gold); }
.free-badge__free {
  display: inline-block;
  background: var(--terra);
  color: #fff;
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ---------- Cards ---------- */
/* Default: single, readable-width column (never a very wide short card). */
.cards { display: grid; gap: 18px; margin-top: 1.5rem; max-width: 560px; margin-inline: auto; }

.card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--body); margin: 0; }

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--clay-tint);
  color: var(--terra);
  margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }

/* ---------- Pull quote ---------- */
.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.6vw, 1.7rem);
  line-height: 1.4;
  color: var(--cocoa);
  text-align: center;
  max-width: 24ch;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.pullquote em { color: var(--terra); font-style: italic; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 2.6rem auto 0; max-width: 40em; display: grid; gap: 8px; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step__num {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cocoa);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}
.step__body h3 { margin-bottom: .25em; }
.step__body p { margin: 0; }

/* ---------- Proof gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 2rem;
}
.shot {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  background: var(--sand);
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  object-fit: cover;
}
.shot__label {
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--taupe);
}
img.shot { border-style: solid; }

/* Quotes */
.quotes { display: grid; gap: 18px; margin: 2.4rem auto 0; }
.quote {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
}
.quote__stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: .9rem; }
.quote__stars svg { width: 18px; height: 18px; }
.quote blockquote {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--cocoa);
  margin-bottom: .9rem;
}
.quote figcaption { font-size: .9rem; color: var(--body); }

/* ---------- Offer ---------- */
.section--offer { }
.offer-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 40px);
  margin-top: 2.2rem;
  box-shadow: var(--shadow-md);
}
.offer-card__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cocoa);
  text-align: center;
  margin-bottom: 1.4rem;
}

.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.includes li { display: flex; gap: 13px; align-items: flex-start; }
.includes span { color: var(--body); }
.tick {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  margin-top: 2px;
  color: #fff;
  background: var(--terra);
  border-radius: 50%;
  padding: 4px;
}

.offer-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.6rem;
  padding: 14px 18px;
  background: var(--clay-tint);
  border: 1px solid #E9CDB8;
  border-radius: var(--radius-sm);
  color: var(--terra-dk);
  font-size: .98rem;
}
.offer-badge strong { color: var(--terra-dk); }
.offer-badge__icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--gold); }

.price {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.price__amount {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3rem, 12vw, 4.2rem);
  line-height: 1;
  color: var(--cocoa);
  font-weight: 500;
}
.price__note { display: block; margin-top: .6rem; color: var(--taupe); font-size: .95rem; }
.price__next { color: var(--body); font-weight: 600; }
.price__value { text-align: center; color: var(--body); margin-top: 1rem; font-style: italic; }
.price__plan { text-align: center; color: var(--taupe); font-size: .9rem; margin-top: .3rem; }

/* Guarantee */
.guarantee {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 2.2rem;
  padding: 26px;
  background: var(--cream);
  border: 1.5px solid var(--terra);
  border-radius: var(--radius);
}
.guarantee__icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--clay-tint);
  color: var(--terra);
}
.guarantee__icon svg { width: 30px; height: 30px; }
.guarantee h3 { margin-bottom: .3em; }
.guarantee p { margin: 0; }

/* Scarcity */
.scarcity {
  margin-top: 2rem;
  padding: 22px 24px;
  border-left: 3px solid var(--terra);
  background: var(--sand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.scarcity p { margin: 0; }

/* ---------- Founder ---------- */
.founder { display: grid; gap: 24px; align-items: center; text-align: center; }
.founder__photo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;              /* keep natural ratio; overrides the width/height attrs */
  border-radius: var(--radius);
  margin-inline: auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--sand);
}
.founder__body h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: .2em; }
.founder__tagline {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--terra);
  margin-bottom: 1.1em;
}
.founder__sign {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--cocoa);
  margin-top: 1rem;
}

/* ---------- FAQ ---------- */
.faq { max-width: 42em; margin: 2.4rem auto 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--cocoa);
  transition: color .15s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--terra); }
.faq__mark {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  color: var(--terra);
  transition: transform .25s ease;
}
.faq__item[open] .faq__mark { transform: rotate(45deg); }
.faq__answer {
  padding: 0 4px 22px;
  color: var(--body);
}
.faq__answer p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 3rem 3.5rem;
  border-top: 1px solid var(--line);
  background: var(--sand);
}
.wordmark--footer { margin-bottom: 1rem; color: var(--cocoa); }
.disclaimer { font-size: .85rem; color: var(--taupe); max-width: 46em; margin: 0 auto .8rem; line-height: 1.6; }
.copyright { font-size: .8rem; color: var(--taupe); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(251, 246, 239, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(120%);
  transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; padding-block: .9em; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 700px) {
  body { font-size: 1.09rem; }

  .cards--2 { grid-template-columns: repeat(2, 1fr); max-width: none; }

  .gallery { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: 1fr 1fr; }

  .founder {
    grid-template-columns: 240px 1fr;
    text-align: left;
    gap: 40px;
  }
  .founder__photo { margin-inline: 0; max-width: 240px; }
  .founder__body h2 { margin-inline: 0; }

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

@media (min-width: 860px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); max-width: none; }
}

@media (max-width: 699px) {
  /* room for the sticky bar */
  body { padding-bottom: 84px; }

  /* Above-the-fold on phones: keep heading + text, video, and button in view
     without scrolling (critical for conversions). */
  .site-header { padding: 11px 22px; }
  .hero { padding-top: .5rem; }
  .hero .eyebrow { margin-bottom: .5em; }
  .hero h1 { font-size: 1.9rem; margin-bottom: .35em; }
  .hero .lead { font-size: 1rem; line-height: 1.4; }
  .hero .vsl { margin-top: .85rem; }
  .hero .cta { margin-top: 1rem; }
  .free-badge { margin-top: 1.2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn, .btn::before, .vsl__unmute { animation: none !important; }
}
