/* =========================================================================
   THE ADVERTORIAL — Stylesheet
   Calm, warm, editorial health-journalism page. Mobile-first.
   Palette story: teal = cool/solution/relief · terracotta = heat/problem.
   ========================================================================= */

:root {
  /* Palette */
  --bg: #FAF6F0;            /* warm off-white, never pure white */
  --text: #2B2926;          /* soft charcoal, never pure black */
  --teal: #1F6F6B;          /* solution / relief / links / CTA */
  --teal-dark: #185955;     /* button hover */
  --terracotta: #C4654A;    /* heat / problem (sparingly) */
  --sand: #F3EBE0;          /* pull-quote / tint blocks */
  --grey: #8A847C;          /* captions / meta / trust */
  --border: #E2D9CC;        /* hairline warm border */

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --measure: 680px;
  --gap-section: 72px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Placeholder tokens — easy for the client to find & replace */
.tk {
  color: var(--terracotta);
  border-bottom: 1px dotted currentColor;
  font-style: normal;
}

/* ------------------------------------------------ Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--teal);
  z-index: 100;
  transition: width 80ms linear;
}

/* ------------------------------------------------------------- Top bar */
.topbar {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 22px 24px 0;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.topbar__label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.topbar__advertorial {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.02em;
}

.topbar__meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--grey);
  margin: 12px 0 0;
}

/* ------------------------------------------------------------- Article */
.article {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

/* Headline */
.headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 32px 0 18px;
}

.subhead {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: 21px;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.92;
  margin: 0 0 8px;
}

/* Prose */
.prose { margin: 0; }

.prose h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: var(--gap-section) 0 14px;
}

.prose p {
  margin: 0 0 22px;
  max-width: 65ch;
}

.prose strong { font-weight: 700; }
.prose em { font-style: italic; }

.emphasis-line {
  font-size: 21px;
  color: var(--teal);
  border-left: 3px solid var(--terracotta);
  padding-left: 18px;
  margin-top: 28px;
}

/* Section rule */
.rule {
  border: none;
  border-top: 1px solid var(--border);
  width: 64px;
  margin: var(--gap-section) auto;
}

/* ------------------------------------------------------------- Byline */
.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.byline__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  min-height: 52px;
  padding: 0;
  object-fit: cover;
  object-position: center top;
}

.byline__avatar .placeholder__tag { font-size: 8px; padding: 2px; text-align: center; }

.byline__text { display: flex; flex-direction: column; }

.byline__name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
}

.byline__role {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--grey);
}

/* ----------------------------------------------------------- Figures */
.figure {
  margin: 44px 0;
}

.figure--hero { margin: 28px 0 32px; }

.figure figcaption {
  font-family: var(--sans);
  font-size: 14px;
  font-style: italic;
  color: var(--grey);
  margin-top: 12px;
  line-height: 1.5;
}

.figure__img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Image placeholders */
.placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      var(--sand),
      var(--sand) 14px,
      var(--bg) 14px,
      var(--bg) 28px
    );
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 24px;
  min-height: 200px;
  text-align: center;
}

.placeholder__tag {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.placeholder__note {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--grey);
  max-width: 46ch;
}

.placeholder--hero { min-height: 300px; }
.placeholder--signature { min-height: 280px; }

/* Signature sponge-vs-drain placeholder panels */
.placeholder__panels {
  display: flex;
  gap: 14px;
  width: 100%;
  margin-top: 6px;
}

.placeholder__panel {
  flex: 1;
  border-radius: 6px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}

.placeholder__panel--problem { border: 1.5px solid var(--terracotta); }
.placeholder__panel--solution { border: 1.5px solid var(--teal); }

.placeholder__panel-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.placeholder__panel--problem .placeholder__panel-label { color: var(--terracotta); }
.placeholder__panel--solution .placeholder__panel-label { color: var(--teal); }

/* ---------------------------------------------------------- Pull quotes */
.pullquote {
  margin: 56px 0;
  text-align: center;
}

.pullquote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.4;
  margin: 0 auto;
  max-width: 18ch;
  padding: 26px 0;
}

.pullquote--problem blockquote {
  border-top: 1px solid var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
  color: var(--text);
}

/* Honest claim — the biggest typographic moment on the page */
.pullquote--honest {
  margin: 72px 0;
  padding: 8px 0;
}

.pullquote--honest blockquote {
  font-style: normal;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 16ch;
  color: var(--teal);
  border-top: 1px solid var(--teal);
  border-bottom: 1px solid var(--teal);
  padding: 40px 0;
}

/* ------------------------------------------------------------ Reviews */
.placeholder-note {
  font-family: var(--sans);
  font-size: 13px;
  font-style: italic;
  color: var(--grey);
  background: var(--sand);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 24px 0;
}

.reviews {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.review {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 22px 20px;
  background: var(--bg);
}

.review__stars {
  color: var(--terracotta);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review__star-empty { color: var(--grey); opacity: 0.5; }

.review__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 10px;
  line-height: 1.3;
}

.review__body {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.review__author {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--grey);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.review__verified {
  color: var(--teal);
  font-weight: 600;
}

/* ------------------------------------------------------------- Trust */
.figure--trust { display: flex; justify-content: center; }

.trust-badge {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-height: 0;
  padding: 18px 28px;
  border: 1px solid var(--teal);
  border-style: solid;
  border-radius: 999px;
  background: var(--sand);
}

.trust-badge__line {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--teal);
}

.trust-badge__dot { color: var(--grey); }

/* --------------------------------------------------------------- CTAs */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(31, 111, 107, 0.18);
  transition: background 150ms ease, transform 150ms ease;
}

.btn .tk { color: rgba(255, 255, 255, 0.85); border-bottom-color: rgba(255, 255, 255, 0.5); }

.btn:hover,
.btn:focus-visible { background: var(--teal-dark); transform: translateY(-1px); }

.btn--large { font-size: 19px; padding: 18px 34px; }

.cta { text-align: center; margin: 40px 0; }

.cta__sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--grey);
  margin: 14px 0 0;
}

.cta__sub .tk { color: var(--grey); }

/* Final CTA block */
.final-cta {
  background: var(--sand);
  border-radius: 14px;
  text-align: center;
  padding: 52px 28px;
  margin: var(--gap-section) 0 24px;
}

.final-cta__head {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 24px;
}

.final-cta__sub {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--grey);
  margin: 18px 0 0;
}

.signoff {
  font-style: italic;
  color: var(--grey);
  margin-top: 28px;
}

/* ------------------------------------------------------------ Footer */
.footer {
  max-width: var(--measure);
  margin: 40px auto 0;
  padding: 32px 24px 64px;
  border-top: 1px solid var(--border);
}

.footer__disclosure,
.footer__refs {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--grey);
  margin: 0 0 16px;
}

/* --------------------------------------------------------- Sticky bar */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 14px rgba(43, 41, 38, 0.08);
  transform: translateY(100%);
  transition: transform 280ms ease;
}

.sticky-bar.is-visible { transform: translateY(0); }

.sticky-bar__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sticky-bar__text {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
}
.sticky-bar__text .tk { color: var(--teal); border: none; }
.sticky-bar__text strong { font-weight: 700; }

.sticky-bar__cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--teal);
  padding: 9px 16px;
  border-radius: 7px;
  text-decoration: none;
  margin-left: auto;
  white-space: nowrap;
}
.sticky-bar__cta:hover { background: var(--teal-dark); }

.sticky-bar__close {
  background: none;
  border: none;
  color: var(--grey);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

/* ------------------------------------------------- Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------- Desktop */
@media (min-width: 720px) {
  body { font-size: 21px; line-height: 1.7; }
  .headline { font-size: 40px; margin-top: 40px; }
  .subhead { font-size: 22px; }
  .prose h2 { font-size: 30px; }
  .prose p { font-size: 21px; }
  .review__body { font-size: 18px; }
  .pullquote blockquote { font-size: 30px; }
  .pullquote--honest blockquote { font-size: 44px; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .final-cta__head { font-size: 34px; }
}
