/* ============================================================
   Soft Reset — Landing Engine
   Reusable template stylesheet. Niche-neutral: all copy + colors
   come from the config. Colors below are DEFAULTS; render.js
   overrides the --c-* variables from config.colors at load.
   Mobile-first, single column, big tap targets, no build step.
   ============================================================ */

:root {
  /* colors (overridden from config.colors by render.js) */
  --c-cream: #FFF8F0;
  --c-peach: #FDE4CF;
  --c-blush: #F7D6D0;
  --c-sage: #9CAF88;
  --c-sage-deep: #6E8259;
  --c-ink: #4A4038;
  --c-ink-soft: #8A7D70;
  --c-card: #FFFFFF;
  --c-btn: #6E8259;
  --c-btn-ink: #FFFFFF;

  /* system */
  --radius: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;
  --maxw: 640px;
  --shadow: 0 10px 30px rgba(74, 64, 56, 0.08);
  --shadow-soft: 0 4px 16px rgba(74, 64, 56, 0.06);
  --gap: 18px;

  --font: ui-rounded, "SF Pro Rounded", "Segoe UI", Nunito, "Helvetica Neue",
    system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--c-cream);
  color: var(--c-ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--c-sage-deep); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

section { padding: 54px 0; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-bottom: 14px; }
h3 { font-size: 1.15rem; }

p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-sage-deep);
  background: var(--c-peach);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.muted { color: var(--c-ink-soft); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  padding: 16px 26px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn-cta {
  background: var(--c-btn);
  color: var(--c-btn-ink);
  box-shadow: 0 8px 20px rgba(110, 130, 89, 0.35);
}
.btn-cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-cta:active { transform: translateY(0); }
.cta-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--c-ink-soft);
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--c-peach) 0%, var(--c-cream) 78%);
  padding: 48px 0 40px;
  text-align: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .subhead {
  font-size: 1.1rem;
  color: var(--c-ink-soft);
  margin-bottom: 26px;
}
.hero-cta-wrap { max-width: 460px; margin: 0 auto; }
.hero-visual {
  margin-top: 34px;
}

/* ---------- Media placeholder ---------- */
.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--c-card);
}
.media img { width: 100%; height: auto; }
.media-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 220px;
  padding: 28px;
  background: repeating-linear-gradient(
    45deg,
    var(--c-blush),
    var(--c-blush) 14px,
    var(--c-peach) 14px,
    var(--c-peach) 28px
  );
  color: var(--c-ink);
  border: 2px dashed rgba(74, 64, 56, 0.25);
  border-radius: var(--radius-lg);
}
.media-ph .ph-badge {
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.75);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.media-ph .ph-label { font-size: 0.92rem; color: var(--c-ink-soft); max-width: 320px; }
.media-ph .ph-emoji { font-size: 2rem; }

/* ---------- Problem ---------- */
.problem h2 { text-align: center; }
.problem .card { background: var(--c-card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); }
.pain-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pain-list li {
  background: var(--c-blush);
  color: var(--c-ink);
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Shift / turn ---------- */
.shift {
  background: var(--c-sage);
  color: #fff;
  text-align: center;
  border-radius: 0;
}
.shift h2 { color: #fff; }
.shift .body { color: rgba(255, 255, 255, 0.95); font-size: 1.12rem; max-width: 520px; margin: 0 auto; }

/* ---------- Pillars ---------- */
.pillars-grid { display: grid; gap: var(--gap); }
.pillar {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.pillar .p-icon { font-size: 1.9rem; margin-bottom: 10px; }
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--c-ink-soft); font-size: 0.98rem; }

/* ---------- What's inside ---------- */
.inside .sub { text-align: center; color: var(--c-ink-soft); margin-bottom: 24px; }
.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery .media { flex: 0 0 78%; scroll-snap-align: center; }
.gallery .media-ph { min-height: 180px; }

.inside-grid { display: grid; gap: 14px; }
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.feature .f-icon {
  font-size: 1.5rem;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-peach);
  border-radius: 14px;
}
.feature .f-body h3 { font-size: 1.02rem; margin-bottom: 3px; }
.feature .f-body p { font-size: 0.94rem; color: var(--c-ink-soft); }
.feature.is-signature { outline: 2px solid var(--c-sage); }

/* ---------- Signature spotlight ---------- */
.signature { background: var(--c-peach); }
.signature .eyebrow { background: #fff; }
.signature h2 { text-align: center; }
.signature .body { color: var(--c-ink); max-width: 520px; margin: 0 auto 26px; text-align: center; }

/* ---------- Who it's for ---------- */
.who-cols { display: grid; gap: var(--gap); }
.who-card { background: var(--c-card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.who-card h3 { margin-bottom: 14px; }
.who-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.who-card li { position: relative; padding-left: 30px; font-size: 0.97rem; color: var(--c-ink-soft); }
.who-card.is-for li::before { content: "✓"; position: absolute; left: 0; color: var(--c-sage-deep); font-weight: 800; }
.who-card.is-not li::before { content: "–"; position: absolute; left: 4px; color: var(--c-ink-soft); font-weight: 800; }

/* ---------- Testimonials ---------- */
.testimonials h2 { text-align: center; }
.ph-ribbon {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  background: repeating-linear-gradient(45deg, rgba(0,0,0,0.03), rgba(0,0,0,0.03) 8px, transparent 8px, transparent 16px);
  border: 1px dashed rgba(74, 64, 56, 0.3);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  max-width: 480px;
  margin: 0 auto 22px;
}
.tst-grid { display: grid; gap: 14px; }
.tst {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px dashed rgba(74, 64, 56, 0.22);
}
.tst .quote { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.tst .quote::before { content: "\201C"; }
.tst .quote::after { content: "\201D"; }
.tst .attr { font-size: 0.88rem; color: var(--c-ink-soft); }

/* ---------- Offer ---------- */
.offer { background: linear-gradient(180deg, var(--c-cream) 0%, var(--c-peach) 100%); }
.offer-card {
  background: var(--c-card);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}
.offer-card h2 { margin-bottom: 18px; }
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: 6px; }
.price-now { font-size: 3rem; font-weight: 800; color: var(--c-ink); }
.price-was { font-size: 1.4rem; color: var(--c-ink-soft); text-decoration: line-through; }
.price-note { color: var(--c-sage-deep); font-weight: 700; font-size: 0.9rem; margin-bottom: 22px; }
.offer-bullets { list-style: none; text-align: left; margin: 0 auto 24px; max-width: 340px; display: flex; flex-direction: column; gap: 11px; }
.offer-bullets li { position: relative; padding-left: 30px; font-size: 0.97rem; }
.offer-bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--c-sage-deep); font-weight: 800; }
.trust-row { margin-top: 14px; font-size: 0.85rem; color: var(--c-ink-soft); }

/* ---------- Guarantee ---------- */
.guarantee .g-card {
  background: var(--c-card);
  border: 2px solid var(--c-sage);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}
.guarantee .g-icon { font-size: 2rem; margin-bottom: 10px; }
.guarantee p { color: var(--c-ink-soft); }

/* ---------- FAQ ---------- */
.faq h2 { text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details.faq-item {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 4px 4px;
  overflow: hidden;
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--c-sage-deep); font-weight: 700; }
details.faq-item[open] summary::after { content: "\2013"; }
details.faq-item .faq-a { padding: 0 20px 20px; color: var(--c-ink-soft); font-size: 0.97rem; }

/* ---------- Final CTA ---------- */
.final { background: var(--c-sage); color: #fff; text-align: center; }
.final h2 { color: #fff; font-size: 1.8rem; }
.final .sub { color: rgba(255, 255, 255, 0.95); margin-bottom: 26px; font-size: 1.1rem; }
.final .hero-cta-wrap { max-width: 420px; }
.final .btn-cta { background: #fff; color: var(--c-sage-deep); }

/* ---------- Footer ---------- */
footer {
  background: var(--c-cream);
  padding: 40px 0 120px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--c-ink-soft);
}
footer .disclaimer { max-width: 520px; margin: 0 auto 18px; line-height: 1.5; }
footer .f-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-bottom: 14px; }
footer .f-links a { color: var(--c-ink-soft); text-decoration: none; }
footer .f-links a:hover { text-decoration: underline; }

/* ---------- 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(255, 248, 240, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -6px 20px rgba(74, 64, 56, 0.1);
}
.sticky-cta .btn { min-height: 52px; }

/* ============================================================
   Email capture — "pick one of three"
   Design brief: this overlay must feel like the PRODUCT, not like
   an interruption. No countdown, no confetti, no pulsing, no
   scale-bounce. It fades. The ICP is being sold calm; a busy
   overlay contradicts the product it is selling.
   ============================================================ */
.cap-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(74, 64, 56, 0.42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: cap-fade 0.28s ease both;
  overflow-y: auto;
}
.cap-backdrop[hidden] { display: none; }
@keyframes cap-fade { from { opacity: 0; } to { opacity: 1; } }
body.cap-open { overflow: hidden; }

.cap-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: auto;
  background: var(--c-cream);
  border-radius: var(--radius-lg);
  /* top padding clears the ✕ STRUCTURALLY — this is FIXED code, so product #2's
     heading may be longer than Soft Reset's. Side padding alone only held for
     this one string; the ✕ box still overlapped the heading box at 375px. */
  padding: 52px 22px 22px;
  box-shadow: 0 24px 60px rgba(74, 64, 56, 0.28);
  text-align: center;
}
.cap-modal h2 { font-size: 1.35rem; margin-bottom: 10px; padding: 0 14px; }
.cap-body { color: var(--c-ink-soft); font-size: 0.96rem; margin-bottom: 20px; }

.cap-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-ink-soft);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.cap-x:hover { background: rgba(74, 64, 56, 0.07); }

/* ---- the three picks ---- */
.cap-picks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.cap-pick {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  padding: 15px 16px;
  font-family: var(--font);
  text-align: left;
  background: var(--c-card);
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color 0.14s ease, transform 0.14s ease;
}
.cap-pick:hover, .cap-pick:focus-visible {
  border-color: var(--c-sage);
  transform: translateY(-1px);
  outline: none;
}
.cap-pick-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: var(--c-peach);
  border-radius: 13px;
}
.cap-pick-txt { display: flex; flex-direction: column; gap: 3px; }
.cap-pick-label { font-weight: 800; font-size: 1rem; color: var(--c-ink); }
.cap-pick-desc { font-size: 0.87rem; color: var(--c-ink-soft); line-height: 1.45; }

/* ---- guilt-free exit: quiet, never a shame-close ---- */
.cap-dismiss {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--c-ink-soft);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cap-dismiss:hover { color: var(--c-ink); }

/* ---- email step ---- */
.cap-chosen { margin-bottom: 14px; }
.cap-chip {
  display: inline-block;
  padding: 7px 15px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-sage-deep);
  background: var(--c-peach);
  border-radius: var(--radius-pill);
}
.cap-form { display: flex; flex-direction: column; gap: 12px; }
.cap-input {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-card);
  border: 2px solid var(--c-blush);
  border-radius: var(--radius-pill);
  text-align: center;
}
.cap-input:focus { outline: none; border-color: var(--c-sage); }
.cap-err { font-size: 0.85rem; color: #A8534A; margin: 0; }
.cap-consent {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--c-ink-soft);
  line-height: 1.5;
}

/* ---- done ---- */
.cap-done-icon { font-size: 2.4rem; margin-bottom: 8px; }
.cap-step[data-step="done"] .btn { margin-top: 6px; }

@media (min-width: 720px) {
  .cap-modal { padding: 54px 30px 26px; }
  .cap-step[data-step="done"] .btn, .cap-submit { width: 100%; min-width: 0; }
}

/* ---------- noscript ---------- */
.noscript {
  padding: 20px;
  text-align: center;
  background: var(--c-peach);
  color: var(--c-ink);
}

/* ============================================================
   Larger screens — the page stays centered + single-column,
   but gets a little more room and 3-up grids where it helps.
   ============================================================ */
@media (min-width: 720px) {
  :root { --maxw: 780px; }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.9rem; }
  .hero { padding: 72px 0 56px; }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .inside-grid { grid-template-columns: repeat(2, 1fr); }
  .who-cols { grid-template-columns: repeat(2, 1fr); }
  .tst-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery .media { flex: 0 0 46%; }
  /* sticky bar is a mobile aid — hide it on wider screens */
  .sticky-cta { display: none; }
  footer { padding-bottom: 40px; }
  .btn { width: auto; min-width: 280px; }
  .hero-cta-wrap .btn, .offer-card .btn, .final .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
