/* MyoBella — "strong but feminine" direction */

:root {
  --berry: #a1185a;
  --berry-deep: #6e0e3d;
  --plum: #24101b;          /* near-black, for power sections */
  --hot: #e5307a;           /* accent pink, display sizes only on light backgrounds */
  --blush: #f6c6da;
  --shell: #fbf1f4;
  --white: #ffffff;
  --ink: #1f1218;
  --ink-soft: #5e4a54;
  --line: #ead3dc;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --accent: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --narrow: 760px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* Headlines: bold condensed caps, with italic serif accents */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0 0 0.45em;
}
h1 { font-size: clamp(3.4rem, 7.5vw, 6.2rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
h3 { font-size: 1.7rem; line-height: 1.1; }

h1 em, h2 em {
  display: block;
  font-family: var(--accent);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.05;
  color: var(--hot);
}
h2 em { font-size: 0.92em; }

p { margin: 0 0 1.1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--berry);
  margin: 0 0 1.2rem;
  padding-bottom: 6px;
  border-bottom: 3px solid currentColor;
}

.lede {
  font-family: var(--accent);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.25;
  color: var(--berry);
}

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

section { padding: clamp(68px, 9vw, 120px) 0; }
.centered { text-align: center; }

/* Section themes */
.tint { background: var(--shell); }
.blush { background: var(--shell); }
.dark, .berry { color: #f3e4ea; }
.dark { background: var(--plum); }
.berry { background: var(--berry); }
.dark h2, .berry h2, .dark h3 { color: var(--white); }
.dark .eyebrow { color: var(--hot); }
.berry .eyebrow { color: var(--blush); }
.dark .lede { color: var(--blush); }
.berry .lede, .berry h2 em { color: var(--blush); }
.dark a { color: var(--blush); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--berry);
  padding: 20px 40px;
  border-radius: var(--radius);
  border: 2px solid var(--berry);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--plum); border-color: var(--plum); }
.btn:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }
.btn-light { background: var(--white); color: var(--berry-deep); border-color: var(--white); }
.btn-light:hover { background: var(--plum); color: var(--white); border-color: var(--plum); }
.btn-small { padding: 11px 20px; font-size: 0.78rem; }
.btn-note { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); margin-top: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-header img { height: 40px; width: auto; }

/* Hero: solid berry panel + product image */
.hero {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(84vh, 760px);
  background: var(--berry);
}
.hero-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 72px clamp(24px, 5vw, 72px);
}
.hero-copy { max-width: 540px; color: #fbe6ee; }
.hero h1 { color: var(--white); }
.hero h1 em { color: var(--blush); }
.hero .eyebrow { color: var(--blush); }
.hero-sub { font-size: 1.15rem; margin-bottom: 2.2rem; }
.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 92% center;
}

/* Stat band */
.stats {
  background: var(--plum);
  color: #f3e4ea;
  padding: 56px 0;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stat { border-left: 3px solid var(--hot); padding-left: 22px; }
.stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--white);
}
.stat span { font-size: 0.98rem; line-height: 1.5; display: block; margin-top: 8px; }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); }
.split > img { box-shadow: 18px 18px 0 var(--blush); }
.dark .split > img { box-shadow: 18px 18px 0 var(--berry); }

/* Lists */
.petal-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.petal-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.6em;
  font-weight: 500;
}
.petal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 16px;
  height: 3px;
  background: var(--hot);
}

/* Research quote */
.research-quote {
  margin: 72px 0 0;
  padding: 8px 0 8px clamp(24px, 4vw, 48px);
  border-left: 6px solid var(--berry);
  max-width: 920px;
}
.research-quote blockquote {
  margin: 0 0 16px;
  font-family: var(--accent);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.3;
  color: var(--ink);
}
.research-quote cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--berry);
}

.divider { display: none; }

/* Ingredient cards */
.ingredients {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 32px 0 8px;
  border: 2px solid var(--ink);
}
.ingredient { padding: 28px 22px; text-align: left; background: var(--white); }
.ingredient + .ingredient { border-left: 2px solid var(--ink); }
.ingredient .amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.8rem;
  line-height: 0.95;
  color: var(--berry);
}
.ingredient .name { font-weight: 700; margin: 10px 0 2px; line-height: 1.35; }
.ingredient .detail { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 56px;
  background: var(--white);
  font-size: 1rem;
  border: 2px solid var(--ink);
}
.compare th, .compare td {
  padding: 18px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.compare th {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
}
.compare th.us { background: var(--berry); color: var(--white); }
.compare td:first-child, .compare th:first-child { text-align: left; font-weight: 700; }
.compare td.us { background: var(--shell); color: var(--berry-deep); font-weight: 700; }
.compare td.them { color: var(--ink-soft); }

/* Brain: 10g split */
.dose-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 40px 0;
}
.dose-split div { padding: 32px 24px; }
.dose-split .muscle { background: var(--blush); color: var(--plum); }
.dose-split .brain { background: var(--hot); color: var(--white); }
.dose-split strong {
  display: block;
  font-family: var(--display);
  font-size: 4rem;
  line-height: 0.95;
  font-weight: 700;
}
.dose-split span { font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; }

.brain-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 12px 0 40px;
  border-top: 2px solid var(--hot);
  border-bottom: 2px solid var(--hot);
}
.brain-benefits div {
  padding: 18px 8px;
  text-align: center;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.brain-benefits div + div { border-left: 1px solid rgba(255, 255, 255, 0.2); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 28px 0 32px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}
.steps li::before {
  content: "0" counter(step);
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.9;
  color: var(--hot);
}
.steps strong {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}

.tips {
  border-top: 2px solid var(--ink);
  padding: 32px 0 0;
  margin-top: 40px;
}
.tips .petal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 48px; }
.tips .petal-list li { font-weight: 400; }

/* Testimonials */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.review {
  position: relative;
  background: var(--white);
  border-top: 6px solid var(--berry);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.review .stars { color: var(--hot); letter-spacing: 0.2em; margin-bottom: 14px; }
.review p { font-family: var(--accent); font-size: 1.45rem; line-height: 1.35; flex: 1; }
.review footer { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.disclaimer-note { font-size: 0.9rem; color: var(--ink-soft); font-style: italic; margin-top: 28px; }

/* Placeholder marker — remove the class once real content is in */
.placeholder { outline: 2px dashed #e0a100; outline-offset: 4px; }
.placeholder::after {
  content: "PLACEHOLDER";
  position: absolute;
  top: -16px;
  right: 16px;
  background: #e0a100;
  color: #000;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
}

/* Buy box */
.buy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.buy img { border-radius: var(--radius); box-shadow: 18px 18px 0 var(--berry-deep); }
.buy .petal-list li::before { background: var(--blush); }
.price {
  font-family: var(--display);
  font-size: 4.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin: 12px 0 4px;
}
.price-note { color: var(--blush); margin-bottom: 1.8rem; font-weight: 500; }

/* FAQ */
.faq details { border-bottom: 2px solid var(--ink); }
.faq details:first-of-type { border-top: 2px solid var(--ink); margin-top: 36px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 400;
  color: var(--berry);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-right: 40px; }
.faq summary:focus-visible { outline: 2px solid var(--hot); outline-offset: 4px; }

/* Studies */
.studies { list-style: none; padding: 0; margin: 32px 0 0; }
.studies li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.studies .topic { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--berry); margin-bottom: 4px; }
.studies a { color: var(--ink); font-weight: 500; text-decoration-color: var(--hot); text-underline-offset: 3px; }
.studies a:hover { color: var(--berry); }
.studies .source { display: block; font-size: 0.9rem; color: var(--ink-soft); }

/* Footer */
.site-footer {
  background: var(--plum);
  color: #e8d3dc;
  padding: 64px 0 40px;
  font-size: 0.95rem;
}
.site-footer a { color: var(--white); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-logo { width: 180px; filter: brightness(0) invert(1); }
.site-footer address { font-style: normal; line-height: 1.8; }
.fda {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 16px 20px;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
.copyright { font-size: 0.85rem; opacity: 0.75; margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .reviews { grid-template-columns: 1fr; }
  .brain-benefits { grid-template-columns: repeat(2, 1fr); }
  .brain-benefits div:nth-child(3) { border-left: 0; }
  .tips .petal-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap, .narrow { padding: 0 16px; }
  .site-header .wrap { height: 62px; }
  .site-header img { height: 32px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-panel { padding: 48px 16px 40px; justify-content: flex-start; }
  .hero-media { height: 300px; object-position: 88% center; }

  .stats .wrap { grid-template-columns: 1fr; gap: 24px; }

  .split, .buy { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split > img, .buy img { box-shadow: 10px 10px 0 var(--blush); margin-right: 10px; }
  .dark .split > img { box-shadow: 10px 10px 0 var(--berry); }
  .buy img { box-shadow: 10px 10px 0 var(--berry-deep); }
  .ingredients { grid-template-columns: 1fr; }
  .ingredient + .ingredient { border-left: 0; border-top: 2px solid var(--ink); }
  .compare th, .compare td { padding: 14px 10px; font-size: 0.9rem; }
  .compare th { font-size: 1rem; }
  .btn { display: block; text-align: center; }
  .btn-small { display: inline-block; }
}

/* ---------- Shared navigation ---------- */
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--hot); }

.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Brand page ---------- */
.brand-hero {
  position: relative;
  padding: 0;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: flex-end;
  background: var(--plum);
  overflow: hidden;
}
.brand-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
}
.brand-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 16, 27, 0.92) 0%, rgba(36, 16, 27, 0.7) 38%, rgba(36, 16, 27, 0) 68%);
}
.brand-hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 96px; padding-bottom: 96px; }
.brand-hero .hero-copy { max-width: 580px; color: #f3e4ea; }
.brand-hero h1 { color: var(--white); }
.brand-hero h1 em { color: var(--blush); }
.brand-hero .eyebrow { color: var(--blush); }

.name-meaning {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  margin: 48px 0 40px;
}
.name-part { text-align: center; }
.name-part .word {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--berry);
}
.name-part.bella .word {
  font-family: var(--accent);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--hot);
}
.name-part .meaning {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.name-plus {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
}

.beliefs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 2px solid var(--hot);
}
.belief { padding: 36px 36px 28px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.belief:nth-child(even) { padding: 36px 0 28px 36px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.belief .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--hot);
}
.belief h3 { color: var(--white); margin: 8px 0 12px; font-size: 2rem; }
.belief p { margin: 0; }

.product-teaser .split > img { box-shadow: 18px 18px 0 var(--berry-deep); }
.teaser-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--berry-deep); border-color: var(--white); }

/* ---------- Legal page ---------- */
.legal-hero { background: var(--plum); padding: clamp(56px, 8vw, 96px) 0; color: #f3e4ea; }
.legal-hero h1 { color: var(--white); font-size: clamp(3rem, 6vw, 4.6rem); }
.legal-hero .eyebrow { color: var(--blush); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 8px; }
.legal-toc a { color: var(--white); font-weight: 500; }

.prose { font-size: 1.02rem; }
.prose h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 1.6em; padding-top: 0.6em; border-top: 2px solid var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.35rem; margin: 1.8em 0 0.5em; color: var(--berry-deep); }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.prose th { background: var(--shell); font-weight: 700; }
.prose .updated { color: var(--ink-soft); font-size: 0.95rem; }
.table-scroll { overflow-x: auto; }

@media (max-width: 760px) {
  .site-nav { gap: 14px; }
  .site-nav a:not(.btn) { display: none; }
  .brand-hero { min-height: 0; display: block; }
  .brand-hero img { position: static; height: 340px; object-position: 75% 25%; }
  .brand-hero::after { display: none; }
  .brand-hero .wrap { padding-top: 40px; padding-bottom: 48px; }
  .name-meaning { grid-template-columns: 1fr; gap: 8px; }
  .beliefs { grid-template-columns: 1fr; }
  .belief, .belief:nth-child(even) { padding: 28px 0 24px; border-left: 0; }
}

/* Fill-in markers on draft legal text — remove before launch */
mark.fill { background: #ffe08a; color: #000; padding: 0 4px; border-radius: 2px; }

/* Keep anchored headings clear of the sticky header */
[id] { scroll-margin-top: 88px; }
