/* warm-clinical — gutadvice.com V1.6
   Design intent: feels like a thoughtful doctor sitting across from you.
   Palette: cream background, deep teal accent, terracotta highlights.
   Type: Fraunces (optical-size serif) + Inter (sans body).

   V1.6 layout (per founder 2026-09-11 11:14 UTC: "Use layout of V1.2"):
   - Hero is back to V1.2's 2-col grid: eyebrow + headline + lede + ctas
     in the left column, the GI tract illustration in the right column.
   - The .illust-section that V1.4 added below the hero is removed.
   - On mobile, the hero stacks vertically (1-col).
   - The illustration is the PR #8 GI tract (V1.5) — clinical line
     drawing with 7 organ labels (MOUTH, ESOPHAGUS, STOMACH, SMALL
     INTESTINE, LARGE INTESTINE, RECTUM, APPENDIX). */

:root {
  --accent: #1a5e5c;
  --accent-soft: #e2ebe9;
  --accent-dark: #0f3e3d;
  --bg: #faf5ee;
  --bg-card: #fffbf3;
  --ink: #2b2826;
  --ink-muted: #6b6058;
  --ink-faint: #a39485;
  --border: #e6dccb;
  --warm: #c25c3a;
  --warm-soft: #f6e1d3;
  --warm-dark: #94432a;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-soft: 0 1px 2px rgba(60, 40, 25, 0.04), 0 10px 30px rgba(60, 40, 25, 0.07);
  --font-display: "Fraunces", "Source Serif Pro", Georgia, "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Top nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  position: relative;
  z-index: 2;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: 600;
  font-size: 17px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 18;
}
.nav-links { display: flex; gap: 32px; font-size: 15px; }
.nav-links a { color: var(--ink-muted); font-weight: 500; }
.nav-cta { font-size: 15px; }

/* ---- Hero ----
   V1.6: back to V1.2's 2-col grid layout. The .container is on the
   <section> itself (not on a child <div>). On desktop, the layout
   becomes a 2-col grid: eyebrow + headline + lede + ctas occupy
   the left column, the illustration occupies the right column. On
   mobile, all children stack vertically. */
.hero {
  padding: 56px 0 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
  grid-template-areas:
    "eyebrow"
    "headline"
    "lede"
    "ctas"
    "illust";
}
.hero > .eyebrow  { grid-area: eyebrow; justify-self: start; }
.hero > h1        { grid-area: headline; }
.hero > .lede     { grid-area: lede; }
.hero > .hero-cta { grid-area: ctas; }
.hero > .hero-illust { grid-area: illust; }
@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    padding: 80px 0 96px;
    grid-template-areas:
      "eyebrow  illust"
      "headline illust"
      "lede     illust"
      "ctas     illust";
  }
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--warm-dark);
  background: var(--warm-soft);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
  font-family: var(--font-body);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 17ch;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero .lede {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 0 36px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-illust {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 28px rgba(26, 94, 92, 0.12));
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; box-shadow: 0 6px 16px rgba(26, 94, 92, 0.2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-card); text-decoration: none; }

/* ---- Email capture (MailerLite embed, form 45827377) ----
   The embed ships no stylesheet of its own — we deliberately do not load
   MailerLite's CSS because it would fight the warm-clinical palette. These
   rules re-skin the embed's markup into the same rounded pill the old
   hand-rolled .signup form used. Class names come from MailerLite's
   webforms.min.js and must not be renamed.
   Note: .row-form / .row-success visibility is toggled inline by
   ml_webform_success_45827377(), so never set `display` on those here. */
.ml-form-embedContainer {
  max-width: 520px;
  margin: 0 auto;
}

/* The embed's own "Newsletter / Signup for news and special offers!" block
   duplicates the section heading directly above it. */
.ml-form-embedContent { display: none; }

/* The pill: input + button share one rounded, bordered surface. */
.ml-form-horizontalRow {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-card);
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ml-form-horizontalRow:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ml-input-horizontal { flex: 1; min-width: 0; }
.ml-field-group { width: 100%; }

.ml-form-horizontalRow input[type="email"] {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 16px;
  /* 16px keeps iOS Safari from zooming the page on focus. */
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}
.ml-form-horizontalRow input[type="email"]::placeholder { color: var(--ink-faint); }

.ml-block-form button.primary,
.ml-block-form button.loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.ml-block-form button.primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 16px rgba(26, 94, 92, 0.2);
}
.ml-block-form button.loading { cursor: default; opacity: 0.85; }
.ml-form-embedSubmitLoad {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(250, 245, 238, 0.4);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: ml-spin 0.7s linear infinite;
}
@keyframes ml-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ml-form-embedSubmitLoad { animation-duration: 2.4s; }
}
.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;
}

/* The embed renders a second, mobile-only Subscribe button that
   MailerLite's own CSS would hide. The pill above wraps on its own, so
   the duplicate is never needed. */
.ml-mobileButton-horizontal { display: none; }

/* Validation. webforms.min.js only adds .ml-error to the field group — it
   injects no message — so the copy lives here or the failure is silent. */
.ml-form-horizontalRow:has(.ml-error) {
  border-color: var(--warm);
  box-shadow: 0 0 0 3px var(--warm-soft);
}
.ml-form-formContent:has(.ml-error)::after {
  content: "Please enter a valid email address.";
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--warm-dark);
}

.ml-form-embedPermissions {
  margin-top: 14px;
}
/* Scoped to the container so these win over `.closing p`, which is
   declared later in this file at the same specificity. */
.ml-form-embedContainer .ml-form-embedPermissions p {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
  max-width: none;
  line-height: 1.5;
}
.ml-form-embedPermissions a { color: var(--ink-muted); text-decoration: underline; }

.ml-form-successContent h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 10px;
  font-variation-settings: "opsz" 48;
  color: var(--accent);
}
.ml-form-embedContainer .ml-form-successContent p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 17px;
}

/* Below ~440px the pill has no room for a side-by-side button. */
@media (max-width: 440px) {
  .ml-form-horizontalRow {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-md);
    padding: 10px;
  }
  .ml-form-horizontalRow input[type="email"] { padding: 10px 12px; }
  .ml-block-form button.primary,
  .ml-block-form button.loading { width: 100%; padding: 14px 22px; }
}

.signup-note { font-size: 13px; color: var(--ink-faint); margin-top: 12px; }

/* ---- Section ---- */
section { padding: 80px 0; }
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  max-width: 22ch;
  font-variation-settings: "opsz" 72;
  color: var(--ink);
}
.section-sub {
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 0 44px;
  font-size: 18px;
  line-height: 1.55;
}

/* ---- Value grid ---- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 12px;
  font-variation-settings: "opsz" 36;
  color: var(--ink);
}
.card p { margin: 0; color: var(--ink-muted); font-size: 16px; line-height: 1.6; }
.card .card-icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* ---- Topics list ---- */
.topics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.topic {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 500;
}
.topic .leaf {
  color: var(--warm);
  font-size: 16px;
  line-height: 1;
}

/* ---- About / Founder ---- */
.founder {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 760px) {
  .founder { grid-template-columns: 220px 1fr; gap: 56px; padding: 56px; }
}
.avatar {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  margin: 0 auto;
}
.founder-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 12px;
  font-variation-settings: "opsz" 72;
  color: var(--ink);
}
.founder-bio {
  color: var(--ink-muted);
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.65;
}
.credentials {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.credentials span {
  font-size: 13px;
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  font-weight: 500;
}

/* ---- Closing CTA ---- */
.closing {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.closing h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0 0 14px;
  font-variation-settings: "opsz" 72;
  color: var(--ink);
}
.closing p { color: var(--ink-muted); margin: 0 0 32px; font-size: 17.5px; max-width: 52ch; margin-left: auto; margin-right: auto; }
/* 48px of side padding leaves the signup pill under 240px wide on a phone. */
@media (max-width: 560px) {
  .closing { padding: 40px 22px; }
}

/* ---- Footer ---- */
footer {
  padding: 48px 0 64px;
  color: var(--ink-faint);
  font-size: 14px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-muted); }
.footer-links a:hover { color: var(--ink); }
