/* ============================================================
   Stress Relief Matrix — Advertorial
   Mobile-first. No frameworks.
   ============================================================ */

:root {
  --bg-page: #faf8f4;
  --bg-mint: #e4ede8;
  --bg-cream: #f6efe6;
  --bg-peach: #f8e9dc;
  --bg-white: #ffffff;

  --green-deep: #2f6350;
  --green-cta: #247a5e;
  --green-bright: #3fb871;
  --text-body: #3b3330;
  --coral: #d13b3b;
  --highlight: #ffe97a;

  --radius-img: 16px;
  --radius-card: 14px;
  --max-col: 720px;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--green-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

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

section {
  padding: 48px 0;
}

.bg-mint { background: var(--bg-mint); }
.bg-cream { background: var(--bg-cream); }
.bg-peach { background: var(--bg-peach); }
.bg-white { background: var(--bg-white); }

/* ---------- Section marker ---------- */
.marker {
  width: 80px;
  height: 8px;
  background: var(--green-cta);
  border-radius: 4px;
  margin-bottom: 18px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-deep);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 {
  font-size: 34px;
  font-weight: 800;
}

h2 {
  font-size: 26px;
  font-weight: 800;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-body);
}

p {
  margin: 0 0 18px;
}

strong {
  color: var(--green-deep);
}

/* ---------- Header / hero ---------- */
.hero {
  padding: 56px 0 32px;
  background: var(--bg-mint);
}

.hero .subtitle {
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 28px;
}

/* ---------- Highlighter ---------- */
mark.hl {
  background: var(--highlight);
  padding: 0.05em 0.3em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: inherit;
}

mark.placeholder {
  background: var(--highlight);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-weight: 700;
  border: 1px dashed #b89b00;
}

/* ---------- Image placeholder slots ---------- */
figure.ph {
  margin: 0 0 24px;
}

.ph-box {
  position: relative;
  width: 100%;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: var(--bg-cream);
}

.ph-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.ph-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-size: 14px;
  color: var(--green-deep);
  background: linear-gradient(180deg, transparent 50%, rgba(255,255,255,0.65) 100%);
}

/* show caption overlay always until an image loads; JS marks .loaded */
.ph-box:not(.loaded) img {
  display: none;
}
.ph-box.loaded .ph-caption {
  display: none;
}

figcaption.ph-label {
  margin-top: 8px;
  font-size: 13px;
  color: #6b625c;
  text-align: center;
}

.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

/* ---------- Product reveal ---------- */
.product-kicker {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 6px;
}

.product-name {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 32px;
  color: var(--green-deep);
  margin: 0 0 28px;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .product-name { font-size: 42px; }
}

.formula-tagline {
  max-width: 480px;
  margin: 0 auto 28px;
  text-align: center;
  font-size: 17px;
  color: var(--text-body);
}

.formula-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  margin: 0 0 28px;
}

.formula-image {
  order: -1;
  margin: 0;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.formula-side {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.formula-chip {
  display: inline-block;
  background: var(--bg-white);
  border: 1px solid rgba(47,99,80,0.25);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--green-deep);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .formula-showcase {
    grid-template-columns: 1fr minmax(200px, 260px) 1fr;
  }
  .formula-image {
    order: 0;
  }
  .formula-side {
    flex-direction: column;
  }
  .formula-left {
    align-items: flex-end;
  }
  .formula-right {
    align-items: flex-start;
  }
}

/* ---------- Stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--green-deep);
}

.stat-label {
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--text-body);
}

.stat-text {
  margin: 10px auto 0;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b625c;
}

.stat-source {
  display: inline-flex;
  margin-left: 4px;
  transform: translateY(2px);
  color: rgba(59,51,48,0.45);
  transition: color 0.15s ease;
}

.stat-source:hover {
  color: var(--text-body);
}

.stat-source svg {
  width: 13px;
  height: 13px;
}

@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Callout box ---------- */
.callout {
  position: relative;
  background: var(--bg-peach);
  border-radius: var(--radius-card);
  padding: 28px 22px 22px;
  margin: 24px 0;
}

.callout .chip {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Numbered cards (7 signs) ---------- */
.sign-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.sign-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.sign-num {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-cta);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign-icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--green-deep);
}

.sign-text {
  font-weight: 600;
  color: var(--text-body);
  padding-top: 6px;
}

/* ---------- Icon-led benefit rows ---------- */
.row-list {
  margin: 24px 0;
  border-top: 1px solid rgba(47,99,80,0.15);
}

.row-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(47,99,80,0.15);
}

.row-item svg {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--green-cta);
  margin-top: 2px;
}

.row-item .row-title {
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 4px;
}

.row-item .row-body {
  margin: 0;
  color: var(--text-body);
}

/* ---------- Tried-before cards ---------- */
.tried-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.tried-card {
  position: relative;
  background: #fbf7f5;
  border-radius: var(--radius-card);
  padding: 18px;
  border: 1.5px solid rgba(209,59,59,0.3);
}

.tried-x {
  position: absolute;
  top: -11px;
  right: -11px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(209,59,59,0.45);
}

.tried-x svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.tried-card h4 {
  color: var(--coral);
  font-size: 17px;
  margin-bottom: 8px;
}

.tried-card p {
  margin: 0;
  font-size: 16px;
}

/* ---------- Ingredient cards ---------- */
.ingredient-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 22px;
  margin: 0 0 20px;
  border: 1px solid rgba(47,99,80,0.12);
}

.ingredient-plus {
  position: absolute;
  top: -11px;
  left: -11px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(63,184,113,0.45);
}

.ingredient-plus svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.ingredient-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ingredient-icon svg {
  width: 28px;
  height: 28px;
  color: var(--green-deep);
}

.ingredient-card h3.ing-name {
  font-family: var(--font-head);
  color: var(--green-bright);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 10px;
}

.ingredient-card .ph {
  margin: 14px 0;
}

.claim-strip {
  background: var(--bg-mint);
  border-left: 4px solid var(--green-cta);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 14px;
  font-weight: 700;
  color: var(--green-deep);
  font-size: 15px;
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(47,99,80,0.12);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--green-cta);
  margin-top: 3px;
}

/* ---------- Consult box ---------- */
.consult-box {
  border: 2px solid var(--green-deep);
  border-radius: var(--radius-card);
  padding: 22px;
  margin: 24px 0;
  background: var(--bg-white);
}

.consult-box ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.consult-box li {
  margin-bottom: 8px;
}

/* ---------- Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 32px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(47,99,80,0.2);
}

.divider .leaf {
  width: 14px;
  height: 14px;
  color: var(--green-cta);
}

/* ---------- Final CTA card ---------- */
.final-cta-card {
  background: var(--bg-mint);
  border-radius: 28px;
  padding: 40px 24px;
}

@media (min-width: 640px) {
  .final-cta-card {
    padding: 56px 48px;
  }
}

/* ---------- CTA ---------- */
.cta-block {
  text-align: center;
  margin: 36px 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-cta);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(36,122,94,0.3);
  min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(36,122,94,0.38);
}

.cta-reassure {
  margin-top: 10px;
  font-size: 13px;
  color: #6b625c;
}

/* ---------- Diagrams ---------- */
.diagram {
  background: var(--bg-white);
  border-radius: var(--radius-img);
  padding: 18px;
  margin: 0 0 24px;
}

.diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Sources ---------- */
#sources {
  font-size: 14px;
  color: #6b625c;
}

#sources ol {
  padding-left: 18px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--bg-mint);
  padding: 40px 0 120px;
  font-size: 14px;
  color: #4a443f;
}

footer .legal-block {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 16px;
  font-weight: 600;
  color: var(--green-deep);
  margin: 20px 0;
}

footer .foot-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

footer .foot-links a {
  color: var(--green-deep);
  text-decoration: underline;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------- Desktop scale-up ---------- */
@media (min-width: 640px) {
  body { font-size: 19px; }
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  .hero { padding: 72px 0 40px; }
  .sign-grid { grid-template-columns: 1fr 1fr; }
  .tried-grid { grid-template-columns: 1fr 1fr; }
}
