/* ============================================================
   BRAND — Matcha Berry Slimfit Article Site
   Style: Soft Editorial / Personal Blog
   ============================================================ */

/* ---- RESET & ROOT ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-forest:    #2d4a3e;
  --color-forest-dk: #1a2e26;
  --color-sage:      #6b8c7a;
  --color-berry:     #c4617a;
  --color-berry-lt:  #e8b4c0;
  --color-cream:     #f7f3ee;
  --color-parchment: #ede8e0;
  --color-ink:       #1e2420;
  --color-muted:     #5a6460;
  --color-white:     #fefefe;
  --color-border:    rgba(45,74,62,0.12);

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --nav-h: 0px; /* no sticky nav in article mode */

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg: 16px;

  --shadow-sm:  0 2px 12px rgba(26,46,38,0.08);
  --shadow-md:  0 6px 32px rgba(26,46,38,0.12);
}

/* ---- BASE ------------------------------------------------ */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-forest); text-decoration: underline; text-decoration-color: var(--color-berry-lt); transition: color 0.2s; }
a:hover { color: var(--color-berry); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--color-forest-dk);
}

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; margin-bottom: 1.25em; }
li { margin-bottom: 0.4em; }

/* ---- CONTAINER ------------------------------------------- */
.container {
  width: 100%;
  max-width: 740px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.container--wide {
  max-width: 960px;
}

/* ---- ON-DARK SCOPING ------------------------------------- */
.on-dark { color: rgba(255,255,255,0.85); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p { color: rgba(255,255,255,0.75); }
.on-dark a:not(.btn) { color: rgba(255,255,255,0.9); }

/* ---- PHOTO PLACEHOLDER ----------------------------------- */
.photo-placeholder {
  background: linear-gradient(135deg, #ff6eb4, #ff3d9a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: inherit;
}
.photo-placeholder__icon { font-size: 32px; }
.photo-placeholder__label {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: sans-serif;
  text-align: center;
  padding: 0 16px;
}

/* ---- ADVERTORIAL DISCLOSURE BAR ------------------------- */
.disclosure-bar {
  background: var(--color-parchment);
  border-bottom: 1px solid var(--color-border);
  padding: 9px 0;
  text-align: center;
}
.disclosure-bar p {
  font-size: 12px;
  color: var(--color-muted);
  margin: 0;
  letter-spacing: 0.02em;
}
.disclosure-bar strong {
  color: var(--color-forest);
  font-weight: 600;
}

/* ---- ARTICLE HEADER ------------------------------------- */
.article-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--color-border);
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-berry);
  text-decoration: none;
  margin-bottom: 20px;
}
.article-kicker svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.article-header h1 {
  font-size: clamp(28px, 5vw, 46px);
  color: var(--color-forest-dk);
  margin-bottom: 28px;
  font-style: italic;
  font-weight: 700;
  max-width: 640px;
  line-height: 1.2;
}

/* ---- BYLINE / AUTHOR ------------------------------------ */
.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.author-avatar {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 2px solid var(--color-berry-lt);
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.byline__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.byline__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-forest-dk);
  font-style: italic;
}
.byline__meta {
  font-size: 12.5px;
  color: var(--color-muted);
}

/* ---- LEAD FIGURE ---------------------------------------- */
.lead-figure {
  margin: 40px 0;
}
.lead-figure img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  max-height: 480px;
}

/* ---- ARTICLE BODY --------------------------------------- */
.article-body {
  padding: 40px 0 60px;
}

.article-section {
  margin-bottom: 48px;
}

.article-section h2 {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--color-forest-dk);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-berry-lt);
  font-style: italic;
}

.article-section p {
  font-size: 17px;
  line-height: 1.8;
  color: #2a3330;
}

/* ---- INLINE FIGURE -------------------------------------- */
.inline-figure {
  margin: 32px 0;
}
.inline-figure img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.inline-figure--half {
  max-width: 480px;
}
.inline-figure--right {
  float: right;
  margin: 0 0 24px 32px;
  max-width: 340px;
}

@media (max-width: 600px) {
  .inline-figure--right {
    float: none;
    max-width: 100%;
    margin: 24px 0;
  }
}

/* ---- INLINE CTA CARD ------------------------------------ */
.inline-cta {
  background: var(--color-forest);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.inline-cta__text {
  flex: 1;
  min-width: 200px;
}
.inline-cta__text p {
  margin: 0;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  line-height: 1.6;
}
.inline-cta__text strong {
  display: block;
  color: #fff;
  font-size: 17px;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-style: italic;
}
.inline-cta__link {
  display: inline-block;
  background: var(--color-berry);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
}
.inline-cta__link:hover {
  background: #b05570;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---- PRODUCT / FACTS SECTION ---------------------------- */
.product-turn {
  background: var(--color-parchment);
  border-radius: var(--radius-lg);
  padding: 36px 36px 40px;
  margin: 40px 0;
  border: 1px solid var(--color-border);
}

.product-turn__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-berry);
  margin-bottom: 10px;
}

.product-turn__name {
  font-size: clamp(20px, 3.5vw, 28px);
  color: var(--color-forest-dk);
  margin-bottom: 8px;
  font-style: italic;
}

.product-turn__desc {
  font-size: 15.5px;
  color: var(--color-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.product-turn__image {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.product-turn__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---- FACTS TABLE (dl) ----------------------------------- */
.facts {
  border-top: 1px solid var(--color-border);
  margin: 24px 0;
}
.facts__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}
.facts__row dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-sage);
}
.facts__row dd {
  font-size: 15px;
  color: var(--color-ink);
  line-height: 1.55;
}

@media (max-width: 480px) {
  .facts__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ---- BADGE ROW ------------------------------------------ */
.badge-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.badge-row__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.badge-row__item svg {
  width: 28px;
  height: 28px;
  color: var(--color-forest);
  flex-shrink: 0;
}
.badge-row__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-forest-dk);
  line-height: 1.35;
}

/* ---- FAQ ------------------------------------------------ */
.faq-section {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}
.faq-section h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--color-forest-dk);
  margin-bottom: 32px;
  font-style: italic;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}
.faq__question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-forest-dk);
  line-height: 1.4;
  transition: color 0.2s;
}
.faq__question:hover { color: var(--color-berry); }

.faq__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-parchment);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.3s;
}
.faq__icon svg {
  width: 12px;
  height: 12px;
  color: var(--color-forest);
  transition: transform 0.3s ease;
}
.faq--open .faq__icon {
  background: var(--color-berry);
  border-color: var(--color-berry);
}
.faq--open .faq__icon svg {
  transform: rotate(45deg);
  color: #fff;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq--open .faq__answer {
  max-height: 400px;
  padding-bottom: 20px;
}
.faq__answer p {
  font-size: 15.5px;
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
}

/* ---- CLOSING CTA ---------------------------------------- */
.closing-cta {
  background: var(--color-forest-dk);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
  margin: 0 0 60px;
}
.closing-cta__eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-berry-lt);
  font-weight: 600;
  margin-bottom: 14px;
}
.closing-cta h2 {
  font-size: clamp(22px, 4vw, 34px);
  color: #fff;
  margin-bottom: 14px;
  font-style: italic;
}
.closing-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 28px;
}
.closing-cta__btn {
  display: inline-block;
  background: var(--color-berry);
  color: #fff;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  border: 2px solid transparent;
}
.closing-cta__btn:hover {
  background: #b05570;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* ---- FOOTER --------------------------------------------- */
.site-footer {
  background: var(--color-parchment);
  border-top: 1px solid var(--color-border);
  padding: 40px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  color: var(--color-forest-dk);
}

.footer-links {
  font-size: 13px;
  color: var(--color-muted);
}
.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-forest); text-decoration: underline; }
.footer-links .sep {
  margin: 0 8px;
  color: var(--color-border);
}

.footer-disclosure {
  max-width: 600px;
  text-align: center;
}
.footer-disclosure p {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 0.6em;
}
.footer-disclosure p:last-child { margin-bottom: 0; }

.footer-copyright {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 8px;
}

/* ---- COOKIE CONSENT BANNER ------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 680px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px 28px;
  z-index: 9999;
  display: none;
}
.cookie-banner.is-visible { display: block; }

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-forest-dk);
  margin-bottom: 10px;
  font-style: italic;
}
.cookie-banner__text {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.cookie-banner__text a {
  color: var(--color-forest);
}

.cookie-banner__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.cookie-btn--accept {
  background: var(--color-forest);
  color: #fff;
  border-color: var(--color-forest);
}
.cookie-btn--accept:hover { background: var(--color-forest-dk); }
.cookie-btn--reject {
  background: transparent;
  color: var(--color-muted);
  border-color: var(--color-border);
}
.cookie-btn--reject:hover { border-color: var(--color-sage); color: var(--color-forest); }
.cookie-btn--config {
  background: transparent;
  color: var(--color-sage);
  border-color: transparent;
  text-decoration: underline;
  padding: 9px 8px;
}
.cookie-btn--config:hover { color: var(--color-forest); }

/* ---- COOKIE CONFIG PANEL -------------------------------- */
.cookie-config {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.cookie-config.is-open { display: block; }

.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.cookie-toggle-row:last-of-type { border-bottom: none; }
.cookie-toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
}
.cookie-toggle-desc {
  font-size: 11.5px;
  color: var(--color-muted);
  margin-top: 2px;
}
.cookie-toggle-info { flex: 1; padding-right: 16px; }

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--color-parchment);
  border: 1.5px solid var(--color-border);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--color-muted);
  border-radius: 50%;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  transition: left 0.2s, background 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--color-forest); border-color: var(--color-forest); }
.toggle-switch input:checked + .toggle-slider::before { left: 19px; background: #fff; }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }

.cookie-save-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 20px;
  background: var(--color-forest);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}
.cookie-save-btn:hover { background: var(--color-forest-dk); }

/* ---- SCROLL REVEAL --------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.revealed { opacity: 1; transform: translateY(0); }

/* ---- LEGAL PAGE STYLES ---------------------------------- */
.legal-page {
  padding: 60px 0 80px;
}
.legal-page .container { max-width: 800px; }
.legal-page h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-berry-lt);
  font-style: italic;
}
.legal-page h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  color: var(--color-forest);
}
.legal-page p {
  font-size: 16px;
  color: #2a3330;
  margin-bottom: 1.1em;
  line-height: 1.75;
}
.legal-page ul {
  font-size: 16px;
  color: #2a3330;
  line-height: 1.75;
  margin-bottom: 1.25em;
}
.legal-page li { margin-bottom: 0.5em; }

/* ---- MINIMAL LEGAL HEADER -------------------------------- */
.legal-header {
  background: var(--color-parchment);
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}
.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-header__brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  color: var(--color-forest-dk);
  text-decoration: none;
}
.legal-header__back {
  font-size: 13px;
  color: var(--color-sage);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.legal-header__back:hover { color: var(--color-forest); }

/* ---- RESPONSIVE ----------------------------------------- */
@media (max-width: 600px) {
  .product-turn { padding: 24px 20px 28px; }
  .facts__row { grid-template-columns: 1fr; gap: 4px; }
  .inline-cta { padding: 22px 20px; gap: 16px; }
  .closing-cta { padding: 32px 20px; }
  .cookie-banner { padding: 20px; }
  .badge-row { grid-template-columns: repeat(3, 1fr); }
}

/* Progressive-enhancement safety (injected by builder): scroll-reveal blocks stay VISIBLE
   unless JS confirms it can animate them by adding .js-anim to <html>. Guarantees a
   truncated page or a failed script can never leave content permanently hidden. */
html:not(.js-anim) .reveal,
html:not(.js-anim) .reveal-left,
html:not(.js-anim) .reveal-right,
html:not(.js-anim) .reveal-scale,
html:not(.js-anim) .stagger-child {
  opacity: 1 !important;
  transform: none !important;
}
