/* =========================================================================
   GUT LOCK FIX — Paid-Traffic Landing Pages
   Shared stylesheet for /story/dismissed, /story/probiotics, /story/bloating

   ────────────────────────────────────────────────────────────────────────
   ALIGN WITH HOMEPAGE: when you have the real homepage tokens, edit the
   :root block below. Every page reads from these vars — nothing else
   needs to change.
   ========================================================================= */

:root {
  /* Colors — values from PaidTrafficLandingPages_BuildGuide.docx §6 */
  --color-cream:        #faf8f5;   /* page background */
  --color-text:         #1f1b16;   /* body text */
  --color-text-muted:   #5c5246;   /* eyebrows, trust line, captions */
  --color-teal:         #0f4c5c;   /* CTA buttons, brand accent */
  --color-teal-hover:   #0a3a47;   /* CTA hover state */
  --color-card:         #f3f0eb;   /* offer card background */
  --color-hairline:     #ddd9d2;   /* dividers, card borders */
  --color-footer-bg:    #ede9e2;   /* footer background */

  /* Typography */
  --font-serif:  'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:   'Source Sans 3', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, sans-serif;

  /* Sizing — mobile-first defaults; desktop overrides further down */
  --text-base:        17px;        /* body text on mobile */
  --line-height-body: 1.55;
  --radius-cta:       3px;
  --radius-card:      6px;

  /* Layout */
  --content-max:      1100px;      /* hero + below content cap on desktop */
  --reading-max:      640px;       /* single-column reading width */
  --gutter:           20px;        /* mobile horizontal padding */
}

/* Desktop adjustments at 768px+ */
@media (min-width: 768px) {
  :root {
    --text-base: 18px;
    --gutter:    32px;
  }
}

/* =========================================================================
   Reset & base
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a  { color: inherit; }

html {
  scroll-behavior: smooth;          /* for the "See how the sequence works" anchor */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-cream);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--line-height-body);
  font-weight: 400;
}

/* Container — centers content and adds gutter on mobile */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================================
   Block 1 — Header
   Logo only on left, optional small CTA top-right (per guide §4 Block 1)
   ========================================================================= */

.site-header {
  border-bottom: 1px solid var(--color-hairline);
  background: var(--color-cream);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-header__logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.site-header__logo:hover { color: var(--color-teal); }

.site-header__cta {
  /* Small "Take the Quiz" link — only shows on >=480px to keep mobile clean */
  display: none;
  font-size: 14px;
  color: var(--color-teal);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-header__cta:hover { text-decoration: underline; }

@media (min-width: 480px) {
  .site-header__cta { display: inline-block; }
}

/* =========================================================================
   Block 2 — Hero (the scene)
   Two-column layout on desktop, stacked on mobile
   ========================================================================= */

.hero {
  padding-top: 28px;
  padding-bottom: 40px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "eyebrow"
    "headline"
    "offer"
    "body";
  gap: 24px;
}

/* On mobile, the eyebrow + headline sit at the top; the offer card with
   its CTA comes BEFORE the body paragraphs to guarantee a visible CTA
   above the fold (build guide §3 Principle 2). The body reads after. */
.hero__eyebrow  { grid-area: eyebrow; margin-bottom: 0; }
.hero__headline { grid-area: headline; margin-bottom: 0; }
.offer-card     { grid-area: offer; }
.hero__left-body-and-cta { grid-area: body; }

@media (min-width: 900px) {
  .hero {
    padding-top: 56px;
    padding-bottom: 72px;
  }
  .hero__inner {
    /* Two-column on desktop: left col contains eyebrow + headline + body
       stacked; right col contains the offer card. */
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    grid-template-areas:
      "eyebrow  offer"
      "headline offer"
      "body     offer";
    column-gap: 56px;
    row-gap: 18px;
    align-items: start;
  }
  .hero__left-body-and-cta {
    /* Add a little extra breathing room above the body on desktop only */
    margin-top: 14px;
  }
}

/* ---- Hero left column ---- */

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin: 0 0 14px 0;
}

.hero__headline {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 5.2vw, 44px);
  line-height: 1.18;
  margin: 0;
  color: var(--color-text);
  letter-spacing: -0.005em;
}

.hero__body p {
  margin: 0 0 16px 0;
  max-width: var(--reading-max);
}

/* The body+CTA container reads as one block on mobile (below the offer
   card) and as the natural continuation of the headline on desktop. */
.hero__left-body-and-cta {
  /* Add a hairline divider on mobile only, between the offer card and
     the start of the editorial body, so the visual transition is clean.
     On desktop this disappears since the body sits beside, not below,
     the card. */
  border-top: 1px solid var(--color-hairline);
  padding-top: 28px;
}

@media (min-width: 900px) {
  .hero__left-body-and-cta {
    border-top: 0;
    padding-top: 0;
  }
}

.hero__cta-row {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hero__secondary {
  font-size: 15px;
  color: var(--color-teal);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.hero__secondary:hover { border-bottom-color: var(--color-teal); }

.hero__trust {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ---- Hero right column — the offer card ---- */

.offer-card {
  background: var(--color-card);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  padding: 24px;
}

@media (min-width: 900px) {
  .offer-card {
    padding: 28px;
    position: sticky;
    top: 24px;
  }
}

.offer-card__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
  margin: 0 0 10px 0;
}

.offer-card__heading {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 16px 0;
  color: var(--color-text);
}

.offer-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.offer-card__list li {
  font-size: 16px;
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--color-text);
}

.offer-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 2px;
  background: var(--color-teal);
}

.offer-card__footer-line {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 12px 0 0 0;
  text-align: center;
}

/* =========================================================================
   CTA buttons — single canonical style, used everywhere
   ========================================================================= */

.btn {
  display: inline-block;
  background: var(--color-teal);
  color: #fff !important;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  padding: 16px 24px;     /* >=48px tall (Apple HIG) at 16/1.2 line-height */
  border-radius: var(--radius-cta);
  border: 0;
  cursor: pointer;
  letter-spacing: 0.005em;
  transition: background-color 0.15s ease, transform 0.05s ease;
  min-height: 48px;
  text-align: center;
}

.btn:hover  { background: var(--color-teal-hover); }
.btn:active { transform: translateY(1px); }

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

/* =========================================================================
   Block 3 — Why this is one problem, not five
   ========================================================================= */

.reframe {
  background: var(--color-cream);
  border-top: 1px solid var(--color-hairline);
  padding: 48px 0 56px 0;
}

@media (min-width: 900px) {
  .reframe { padding: 72px 0 80px 0; }
}

.reframe__inner {
  max-width: var(--reading-max);
  margin: 0 auto;
}

.reframe__heading {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.25;
  margin: 0 0 24px 0;
  color: var(--color-text);
  letter-spacing: -0.005em;
}

.reframe__body p {
  margin: 0 0 18px 0;
  font-size: var(--text-base);
}

.reframe__cta-row {
  margin-top: 32px;
}

/* =========================================================================
   Block 4 — Optional deeper read
   ========================================================================= */

.deeper {
  background: var(--color-card);
  border-top: 1px solid var(--color-hairline);
  padding: 40px 0 48px 0;
}

@media (min-width: 900px) {
  .deeper { padding: 56px 0 64px 0; }
}

.deeper__inner {
  max-width: var(--reading-max);
  margin: 0 auto;
}

.deeper__heading {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  margin: 0 0 18px 0;
  color: var(--color-text);
}

.deeper__body p {
  margin: 0 0 18px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
}

.deeper__cta-row { margin-top: 24px; }

/* =========================================================================
   Block 5 — Footer
   Identical layout intent to homepage; values readable from CSS vars
   ========================================================================= */

.site-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-hairline);
  padding: 32px 0 28px 0;
  margin-top: 0;
}

.site-footer__brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 14px 0;
  color: var(--color-text);
}

.site-footer__nav,
.site-footer__legal {
  font-size: 14px;
  margin: 0 0 10px 0;
  color: var(--color-text-muted);
}

.site-footer__nav a,
.site-footer__legal a {
  color: var(--color-text-muted);
  text-decoration: none;
  margin-right: 14px;
  border-bottom: 1px solid transparent;
}

.site-footer__nav a:hover,
.site-footer__legal a:hover {
  color: var(--color-teal);
  border-bottom-color: var(--color-teal);
}

.site-footer__disclaimer {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 18px 0 0 0;
  max-width: 720px;
  line-height: 1.55;
}

.site-footer__disclosure {
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 10px 0 0 0;
  font-style: italic;
}

/* =========================================================================
   Visually-hidden helper (for screen-reader only labels if needed)
   ========================================================================= */

.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;
}
