/*
  Evelyn landing page — main stylesheet.
  The first-screen styles (reset, tokens, fonts, header, hero) are inlined
  in the <head> of index.html for fast first paint. This file covers
  everything below the hero image.

  Layout: one column, max-width var(--max-width), centred. Desktop does not
  get a different layout — only a slightly larger base font size (see the
  min-width media query at the bottom).
*/

/* Design tokens (:root custom properties) and @font-face rules live in the
   inlined critical CSS in each page's <head> — they apply to this whole
   document either way, and keeping one copy avoids shipping them twice. */

/* ---------- Section colour + spacing helpers ---------- */
.section {
  padding: 2.25rem 1.25rem 2.125rem;
}
.section--tight-top {
  padding-top: 1.25rem;
}
.bg-surface { background: var(--bg-surface); }
.bg-alt { background: var(--bg-surface-alt); }
.bg-dark { background: var(--dark); color: var(--cream); }

/* ---------- Headings & text helpers ---------- */
.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(92, 59, 59, 0.9);
}
.h2 {
  margin: 0 0 1.375rem;
  font-family: var(--font-serif);
  font-size: 1.625rem;
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.h2--tight { margin-bottom: 1rem; }
.sub-heading {
  margin: 2.125rem 0 0.875rem;
  font-family: var(--font-serif);
  font-size: 1.4375rem;
  line-height: 1.3;
  font-weight: 600;
}
.sub-heading:first-child { margin-top: 0; }
.body-lg {
  margin: 0 0 1.125rem;
  font-size: 1.15625rem;
  line-height: 1.65;
}
.body-lg:last-child { margin-bottom: 0; }
.divider {
  margin: 2.125rem 0 0;
  border: none;
  border-top: 1px solid rgba(var(--ink-rgb), 0.12);
}

/* ---------- Checklists (checkmark bullet lists) ---------- */
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 1.09375rem;
  line-height: 1.45;
}
.check-list .mark {
  flex: 0 0 auto;
  color: var(--maroon);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.48;
}
.check-list--dot li { gap: 0.875rem; font-size: 1.15625rem; line-height: 1.55; }
.check-list--dot .mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.875rem;
}

/* Button styles (.btn, .btn--pill, .btn-note) live in the inlined critical
   CSS in each page's <head> — the hero CTA needs them before this file
   loads, and the cascade applies them everywhere else on the page too. */

/* ---------- Facts band ---------- */
.facts {
  padding: 1.875rem 1.125rem 1.5rem;
}
.facts--repeat {
  padding: 1.5rem 1.125rem 1.25rem;
}
.facts__intro {
  margin: 0 0 1.25rem;
  font-size: 0.90625rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(var(--cream-rgb), 0.92);
}
.facts--repeat .facts__intro { margin-bottom: 1rem; font-size: 0.84375rem; }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}
.facts__number {
  margin: 0 0 0.375rem;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gold);
}
.facts--repeat .facts__number { font-size: 1.625rem; margin-bottom: 0.3125rem; }
.facts__label {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgba(var(--cream-rgb), 0.72);
}
.facts--repeat .facts__label { font-size: 0.78125rem; }

/* ---------- Pain point section ---------- */
.pain-quote {
  margin: 1.875rem 0;
  padding: 1.625rem 1.375rem;
  border-radius: 20px;
  background: var(--bg-surface-warm);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4375rem;
  line-height: 1.4;
  color: var(--ink);
}
.pain-strong {
  font-weight: 700;
}
.pain-underline {
  font-weight: 700;
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 2px;
}
.pain-photo {
  margin: 1.875rem -1.125rem;
  height: 230px;
  overflow: hidden;
}
.pain-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Value prop sections ---------- */
.value-prop__frame {
  margin: 0 0 1.625rem;
  border-radius: 22px;
  background: var(--bg-surface-warm);
  overflow: hidden;
}
.value-prop__frame--top {
  padding: 1.125rem 1.125rem 0;
}
.value-prop__frame--top .value-prop__shot {
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 16px 34px rgba(var(--ink-rgb), 0.16);
}
.value-prop__frame--pad {
  padding: 1.25rem 1.125rem;
  background: var(--bg-surface);
}
.value-prop__frame img {
  display: block;
  width: 100%;
  /* Without this, the browser falls back to the HTML height attribute as a
     fixed pixel value instead of scaling with width, which squashes/
     distorts the image (this is what made the mood circles ovals). */
  height: auto;
}
.value-prop__frame--pad img {
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(var(--ink-rgb), 0.1);
}
.value-prop__photo {
  display: block;
  width: 100%;
  /* Same fix as .value-prop__frame img above: without an explicit auto
     height, the HTML height attribute wins over aspect-ratio below and
     the photo renders at full native pixel height (way oversized). */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  margin: 0 0 1.625rem;
}
.value-prop h2 { margin-bottom: 1rem; font-size: 1.5625rem; }
.value-prop p { font-size: 1.125rem; line-height: 1.6; color: rgba(var(--ink-rgb), 0.85); margin: 0; }

/* ---------- Three women / persona cards ---------- */
.persona-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.persona-card {
  padding: 1.25rem 1.125rem;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid rgba(var(--ink-rgb), 0.06);
}
.persona-card h3 {
  margin: 0 0 0.625rem;
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  line-height: 1.3;
  font-weight: 600;
}
.persona-card p {
  margin: 0;
  font-size: 1.09375rem;
  line-height: 1.55;
  color: rgba(var(--ink-rgb), 0.85);
}

/* ---------- Differentiator cards ---------- */
.diff-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.diff-card {
  padding: 1.25rem 1.125rem;
  border-radius: 18px;
  background: var(--bg-surface-alt);
}
.diff-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 0 0.875rem;
}
.diff-card__icon span { display: block; }
.diff-card h3 {
  margin: 0 0 0.5625rem;
  font-size: 1.1875rem;
  line-height: 1.35;
  font-weight: 700;
}
.diff-card p {
  margin: 0;
  font-size: 1.09375rem;
  line-height: 1.55;
  color: rgba(var(--ink-rgb), 0.82);
}

/* ---------- How it works steps ---------- */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 1.625rem;
  margin: 0 0 1.75rem;
}
.step__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.625rem;
}
.step__number {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  padding-bottom: 2px;
}
.step h3 {
  margin: 0;
  font-size: 1.21875rem;
  line-height: 1.3;
  font-weight: 700;
}
.step p {
  margin: 0 0 1rem;
  font-size: 1.09375rem;
  line-height: 1.55;
  color: rgba(var(--ink-rgb), 0.82);
}
.step__shot {
  padding: 1rem;
  border-radius: 20px;
  background: var(--bg-surface);
}
.step__shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(var(--ink-rgb), 0.14);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0 0 1.625rem;
}
.faq-item {
  border-radius: 16px;
  background: var(--bg-surface-alt);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 60px;
  padding: 1rem 1.125rem;
  font-size: 1.09375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--maroon);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item__answer {
  margin: 0;
  padding: 0 1.125rem 1.125rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(var(--ink-rgb), 0.85);
}

/* ---------- Closer ---------- */
.closer p { margin: 0 0 1.375rem; font-size: 1.125rem; line-height: 1.6; color: rgba(var(--ink-rgb), 0.85); }
.closer .check-list { margin: 0 0 1.5rem; }
.closer .check-list li { font-size: 1.125rem; }
.closer .check-list .mark { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 1.875rem 1.25rem calc(1.875rem + var(--sticky-bar-height));
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  pointer-events: none;
  user-select: none;
}
.site-footer__brand img { width: 28px; height: 28px; border-radius: 8px; display: block; }
.site-footer__brand span {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--cream);
}
.site-footer__disclaimer {
  margin: 0 0 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  font-style: italic;
}
.site-footer__links {
  display: flex;
  gap: 1.125rem;
  margin: 0 0 1rem;
}
.site-footer__links a {
  font-size: 0.84375rem;
  color: rgba(var(--cream-rgb), 0.72);
  text-decoration: underline;
}
.site-footer__links a:hover { color: var(--cream); }
.site-footer__copyright {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(var(--cream-rgb), 0.5);
}

/* Reserve space so the sticky CTA bar never covers footer content */
body { padding-bottom: var(--sticky-bar-height); }

/* ---------- Sticky CTA bar ---------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  z-index: 40;
  width: 100%;
  max-width: var(--max-width);
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(var(--surface-rgb), 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(var(--ink-rgb), 0.1);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.sticky-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.sticky-cta .btn { min-height: 58px; box-shadow: 0 8px 20px rgba(var(--terracotta-rgb), 0.3); }

@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
  .btn:active { transform: none; }
}

/* ---------- Desktop: same column, slightly larger type ---------- */
@media (min-width: 640px) {
  html { font-size: 17.5px; }
}
