/* ============================================================
   ProDentim — Opt-In / Lead-Magnet Advertorial
   Mobile-first. Editorial oral-wellness palette.
   ============================================================ */

:root {
  /* Palette */
  --emerald:      #0f5132;   /* deep green / primary */
  --emerald-dark: #0a3d26;   /* darker emerald */
  --emerald-deep: #072b1b;   /* brand section bg */
  --gold:         #c8a24a;   /* muted gold accent */
  --gold-dark:    #a9863a;
  --cream:        #f7f3ea;   /* soft cream bg */
  --cream-2:      #efe8da;   /* tint blocks */
  --warm-white:   #fffdf9;   /* cards */
  --charcoal:     #2a2b28;   /* body text */
  --charcoal-soft:#4f524c;   /* secondary text */
  --line:         #e4ddce;   /* hairlines */
  --hl:           #fbeecb;   /* highlight behind headline words */

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --measure: 640px;
  --radius: 14px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--emerald); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: var(--measure); }

.section { padding: 44px 0; }
.section--tint { background: var(--cream-2); }
.section--brand { background: var(--emerald-deep); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--warm-white);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.brandmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--emerald);
  letter-spacing: .2px;
}
.brandmark__tld { color: var(--charcoal-soft); font-weight: 500; font-family: var(--sans); font-size: 13px; }
.topbar__badge {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- Hero ----------
   Vertical rhythm tuned so the primary CTA sits near the fold on
   375x667 / 390x844 / 414x896 without shrinking readable type. */
.hero { background: var(--warm-white); padding: 20px 0 32px; text-align: center; }
.hero__eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin: 2px 0 10px;
}
.hero__headline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 0 auto 12px;
  max-width: 620px;
}
.hl {
  color: var(--emerald);
  background: linear-gradient(180deg, transparent 62%, var(--hl) 62%);
  padding: 0 2px;
}
.hero__sub {
  font-size: 16px;
  color: var(--charcoal-soft);
  max-width: 470px;
  margin: 0 auto 16px;
}

/* ---------- Video thumb (lead magnet visual) ---------- */
.video-thumb { display: block; margin: 0 auto 16px; max-width: 460px; text-decoration: none; }
/* Production hero thumbnail: holds the same 16:9 ratio, rounded corners
   and max-width as the previous placeholder — no fold/height change. */
.hero-thumb__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Production content images (replace the .ph placeholders). Each mirrors the
   ratio, width, margins and rounded corners the placeholder had, so section
   spacing and layout are unchanged. */
.content-img { width: 100%; height: auto; border-radius: var(--radius); }
.content-img--wide { aspect-ratio: 3 / 2; object-fit: cover; margin: 8px 0 22px; }
.content-img--product { aspect-ratio: 1 / 1; object-fit: cover; max-width: 300px; margin: 8px auto 22px; }
.content-img--closing { margin-top: 26px; }

.ph--video { position: relative; aspect-ratio: 16 / 9; }
.ph__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 50px; border-radius: 14px;
  background: rgba(199, 45, 40, 0.92);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  z-index: 2;
}
.ph__play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}

/* ---------- Image placeholders ---------- */
.ph {
  border: 2px dashed #b9c7bd;
  background:
    repeating-linear-gradient(45deg, rgba(15,81,50,.03) 0 12px, rgba(15,81,50,.06) 12px 24px);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  text-align: left; padding: 18px; color: var(--charcoal-soft);
}
.ph--wide { aspect-ratio: 3 / 2; margin: 8px 0 22px; }
.ph--product { aspect-ratio: 1 / 1; max-width: 300px; margin: 8px auto 22px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); }
.ph--onDark { margin-top: 26px; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.32); }

/* Compact placeholders: hold the correct aspect ratio + a small label
   chip, so dev placeholders never render as tall broken-looking blocks.
   Full production image spec lives in the adjacent HTML comment. */
.ph--compact { position: relative; padding: 0; }
.ph__tag {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  font-size: 11.5px; font-weight: 600; letter-spacing: .03em; white-space: nowrap;
  color: var(--emerald); background: rgba(255,255,255,.9);
  border-radius: 999px; padding: 4px 12px;
}
.ph__tag--light { color: #fff; background: rgba(0,0,0,.3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 17px 26px;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--block { display: block; width: 100%; max-width: 460px; margin-left: auto; margin-right: auto; }
.btn--primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15,81,50,.28);
}
.btn--primary:hover { background: var(--emerald-dark); }
.btn--secondary {
  background: transparent;
  color: var(--emerald);
  border: 2px solid var(--emerald);
  padding: 14px 24px;
}
.btn--secondary:hover { background: var(--emerald); color: #fff; }
.btn--gold {
  background: var(--gold);
  color: #3a2e07;
  box-shadow: 0 8px 20px rgba(200,162,74,.35);
}
.btn--gold:hover { background: var(--gold-dark); }

.reassure { font-size: 13.5px; color: var(--charcoal-soft); margin: 12px auto 0; text-align: center; }
.reassure--tight { margin-top: 10px; }
.reassure--light { color: rgba(255,255,255,.78); }

.cta-inline { text-align: center; margin: 28px 0 6px; }

/* ---------- Cards / story ---------- */
.card {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 6px 26px rgba(20, 40, 30, .05);
}
.card--story { border-left: 4px solid var(--gold); }
.card p { margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }
.story__lead { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--charcoal); }
.story__hook { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--emerald); }

/* ---------- Opt-in ---------- */
.optin-section { background: var(--cream); }
.optin {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--emerald);
  border-radius: var(--radius);
  padding: 30px 22px;
  box-shadow: 0 12px 40px rgba(20, 40, 30, .09);
  text-align: center;
}
.optin__eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 700; margin: 0 0 8px;
}
.optin__title {
  font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.2;
  color: var(--charcoal); margin: 0 0 12px;
}
.optin__copy { font-size: 16px; color: var(--charcoal-soft); margin: 0 auto 12px; max-width: 460px; }
.optin__copy--why { font-size: 15px; margin-bottom: 20px; }
.optin__copy--why { color: var(--charcoal); }
.optin__form { max-width: 460px; margin: 0 auto; text-align: left; }
.field { margin-bottom: 14px; }
.field__label { display: block; font-size: 13px; font-weight: 600; color: var(--charcoal-soft); margin-bottom: 6px; }
.field__input {
  width: 100%;
  font-family: var(--sans); font-size: 17px;
  padding: 15px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff; color: var(--charcoal);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(15,81,50,.12); }
.field__input.is-invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.field__error { color: #c0392b; font-size: 13.5px; margin: 6px 0 0; }

.optin__success {
  margin-top: 18px; padding: 18px 16px; text-align: center;
  background: rgba(15,81,50,.06);
  border: 1px solid rgba(15,81,50,.25);
  border-radius: var(--radius-sm);
}
.optin__success p { margin: 0; color: var(--emerald-dark); font-size: 16px; }
.optin__check {
  width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--emerald); position: relative;
}
.optin__check::after {
  content: ""; position: absolute; left: 14px; top: 8px;
  width: 9px; height: 18px; border: solid #fff; border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* ---------- Prose (advertorial body) ---------- */
.prose p { margin: 0 0 16px; }
.h2 {
  font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.24;
  letter-spacing: -0.01em; color: var(--charcoal); margin: 0 0 18px;
}
.h2 em { font-style: italic; color: var(--emerald); }
.h2--center { text-align: center; }
.h2--light { color: #fff; }
.h2--onbrand { color: #fff; }
.kicker {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin: 0 0 8px;
}
.pull {
  font-family: var(--serif); font-size: 21px; line-height: 1.4; font-weight: 500;
  color: var(--emerald-dark);
  border-left: 3px solid var(--gold); padding-left: 16px; margin: 22px 0;
}
.prose--onbrand p { color: rgba(255,255,255,.9); }
.prose--onbrand strong { color: #fff; }
.fineprint { font-size: 15px; color: var(--charcoal-soft); }
.fineprint--onbrand { color: rgba(255,255,255,.72); }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
.benefit {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.benefit__icon { color: var(--gold); font-size: 14px; margin-bottom: 8px; }
.benefit__title { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--emerald-dark); margin: 0 0 6px; }
.benefit__copy { font-size: 15px; color: var(--charcoal-soft); margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--emerald); color: #fff; }
.final-cta__copy { text-align: center; color: rgba(255,255,255,.9); max-width: 480px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.footer { background: #1c1e1b; color: #b9bcb5; padding: 34px 0 40px; }
.footer__disclaimer { font-size: 12.5px; line-height: 1.6; color: #9ba099; margin: 0 0 14px; }
.footer__disclaimer strong { color: #cfd3cb; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 12px; font-size: 13px; }
.footer__nav a { color: #c8cdc4; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__nav span { color: #565a52; }
.footer__copy { text-align: center; font-size: 12.5px; color: #7d8279; margin: 4px 0 0; }

/* ============================================================
   Tablet / desktop scaling
   ============================================================ */
@media (min-width: 700px) {
  body { font-size: 19px; }
  .section { padding: 60px 0; }
  .hero { padding: 44px 0 56px; }
  .hero__headline { font-size: 44px; }
  .hero__sub { font-size: 19px; }
  .h2 { font-size: 30px; }
  .optin__title { font-size: 30px; }
  .optin { padding: 40px 36px; }
  .benefits { grid-template-columns: 1fr 1fr; gap: 18px; }
  .card--story { padding: 34px 34px; }
  .pull { font-size: 24px; }
}

@media (min-width: 1000px) {
  .hero__headline { font-size: 50px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
