/* ==========================================================================
   Ziora BHA + Mandelic Serum: landing page
   Mobile-first. Brand palette from Ziora Brand Kit.
   ========================================================================== */

:root {
  --green:        #4B5D41;   /* Botanical Green (main accent)      */
  --green-dark:   #3C4B34;
  --sage:         #8A9B7D;   /* Light Botanical Green              */
  --sage-soft:    #E4E9DF;
  --beige:        #F8F4ED;   /* Glow Beige (page ground, ~70%)     */
  --blush:        #F8F0EA;   /* product tile ground (matches the Ziora store cards) */
  --greige:       #EFE8DC;   /* deeper warm greige for section bands */
  --nude:         #CBB7A2;   /* Clay Nude (borders, dividers)      */
  --gold:         #D6A760;   /* Turmeric Gold (sparingly)          */
  --brown:        #6C4B3A;   /* Shea Brown                         */
  --ink:          #2E2E2E;   /* Soft Black                         */
  --ink-soft:     #5C5C5C;
  --white:        #FFFFFF;

  --radius:       16px;
  --radius-lg:    28px;      /* product cards */
  --radius-sm:    10px;
  --shadow:       0 6px 24px rgba(46, 46, 46, 0.06);
  --container:    1120px;
  --gutter:       20px;
  --tap:          56px;      /* minimum tap-target height on buttons */
}

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

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

body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: 760px; }
.center { text-align: center; }

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1 {
  font-weight: 800;
  font-size: clamp(1.75rem, 6.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h2, .section-title {
  font-weight: 800;
  font-size: clamp(1.5rem, 5.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h3 { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }

.section-title { text-align: center; max-width: 720px; margin-inline: auto; }
.section-sub {
  text-align: center; max-width: 560px; margin: 14px auto 0;
  color: var(--ink-soft); font-size: 1rem;
}

.eyebrow {
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green);
}
.formula-tag {
  display: inline-block; margin-top: 8px; padding: 6px 12px;
  background: var(--white); border: 1px solid var(--nude); border-radius: 999px;
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px;
  max-width: 100%; min-height: var(--tap); padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: clamp(0.95rem, 4vw, 1.05rem); line-height: 1.25;
  letter-spacing: 0; text-transform: none; white-space: normal; overflow-wrap: anywhere;
  text-decoration: none; cursor: pointer; text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
/* price chip inside a button, e.g. "Get the BHA Serum  ₦15,900" */
.btn-price {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); font-weight: 800; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(75, 93, 65, 0.22); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-whatsapp { background: var(--white); color: var(--green); border-color: var(--green); padding-inline: 20px; font-size: 0.9rem; }
.btn-whatsapp:hover { background: var(--sage-soft); }
.btn-block { width: 100%; padding-inline: 14px; }
.btn-lg { font-size: clamp(0.95rem, 4.2vw, 1.12rem); min-height: 60px; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 0.95rem; white-space: nowrap; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 244, 237, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(203, 183, 162, 0.35);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo img { width: 104px; height: auto; }
.cart-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 6px;
  font-weight: 600; font-size: 0.85rem; text-decoration: none; color: var(--green);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: 56px; }
.section.problem,
.section.howto,
.section.faq { background: var(--white); }
.section.why { background: var(--greige); }

/* --------------------------------------------------------------------------
   01 Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: 20px 44px; }
.hero-grid { display: grid; gap: 22px; }
.hero-media {
  display: flex; justify-content: center; align-items: center;
  height: min(48vh, 400px);
  border-radius: var(--radius-lg);
  background: var(--blush);   /* same blush tile as the Ziora store product cards */
  border: 12px solid var(--white); box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-media img,
.buy-media img {
  height: 78%; width: auto; max-width: 70%; object-fit: contain;
}

.hero-copy h1 { margin-top: 14px; }
.lead { margin-top: 14px; color: var(--ink-soft); font-size: 1rem; max-width: 520px; }

.price-line {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 18px; font-weight: 600; color: var(--ink-soft);
}
.price-line .sep { color: var(--nude); }
.price-line strong { font-size: 1.6rem; font-weight: 800; color: var(--ink); }

.hero-copy .btn-primary { margin-top: 18px; }
.ask-link {
  display: block; margin-top: 14px; text-align: center;
  font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--green);
}
.ask-link u { text-underline-offset: 3px; font-weight: 700; }

.trust {
  margin-top: 16px; text-align: center;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft);
}
.trust span { color: var(--gold); margin-inline: 6px; }

/* --------------------------------------------------------------------------
   02 Problem
   -------------------------------------------------------------------------- */
.problem-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: 28px;
}
.problem-card {
  padding: 20px 16px;
  background: var(--beige); box-shadow: none;
  border: 1px solid rgba(203, 183, 162, 0.35);
  text-align: center;
}
.problem-card .icon {
  display: inline-flex; width: 56px; height: 56px; margin-bottom: 12px;
  border-radius: 50%; background: var(--white); color: var(--green);
  align-items: center; justify-content: center;
}
.problem-card .icon svg { width: 32px; height: 32px; }
.problem-card h3 { font-size: 0.95rem; }
.problem-card { transition: transform .25s ease, box-shadow .25s ease; }
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.statement {
  margin: 36px auto 22px; text-align: center;
  font-weight: 800; font-size: clamp(1.5rem, 6vw, 2.4rem); line-height: 1.12;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--green);
}

/* --------------------------------------------------------------------------
   03 Why BHA + Mandelic
   -------------------------------------------------------------------------- */
.acid-grid { display: grid; gap: 16px; margin-top: 28px; }
.acid-card { padding: 22px 20px 24px; }
.acid-figure { margin: 0 0 16px; border-radius: var(--radius-sm); overflow: hidden; }
.acid-figure svg { width: 100%; height: auto; display: block; }
.acid-name {
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green);
}
.acid-card h3 { margin-top: 6px; font-size: 1.25rem; font-weight: 800; }
.acid-card p:last-child { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }

.combine { margin: 34px auto 28px; text-align: center; max-width: 560px; }
.combine-top {
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.combine-top .plus { color: var(--gold); font-weight: 800; margin-inline: 8px; }
.combine-arrow { display: block; margin: 8px 0; font-size: 1.6rem; color: var(--green); line-height: 1; }
.combine-result {
  font-weight: 800; font-size: clamp(1.2rem, 4.6vw, 1.7rem); line-height: 1.2;
  text-transform: uppercase; color: var(--green);
}

/* --------------------------------------------------------------------------
   04 Benefits + reviews
   -------------------------------------------------------------------------- */
.checklist {
  display: grid; gap: 10px; margin: 28px auto 0; max-width: 520px;
}
.checklist li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--white); border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.98rem;
}
.checklist li::before {
  content: ""; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.reviews { margin-top: 44px; }
.reviews-title { text-align: center; font-size: 1.15rem; font-weight: 800; }
.review-grid { display: grid; gap: 14px; margin-top: 22px; }
.review { margin: 0; padding: 22px 20px; }
.review p { font-size: 0.97rem; line-height: 1.6; }
.review footer { margin-top: 12px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.review::before {
  content: "★★★★★"; display: block; margin-bottom: 8px;
  color: var(--gold); letter-spacing: 2px; font-size: 0.85rem;
}
/* placeholder styling, removed automatically once real reviews replace the copy */
.review.is-placeholder { border: 1.5px dashed var(--nude); box-shadow: none; }
.review.is-placeholder p { color: var(--ink-soft); font-style: italic; }

/* --------------------------------------------------------------------------
   05 How to use
   -------------------------------------------------------------------------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 30px; align-items: end;
}
.step {
  position: relative; text-align: center;
  padding: 20px 8px 18px; border-radius: var(--radius);
  background: var(--beige); border: 1px solid rgba(203, 183, 162, 0.35);
}
.step-num {
  display: block; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em;
  color: var(--gold);
}
.step h3 { margin-top: 4px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.step-hero { background: var(--sage-soft); border-color: var(--sage); padding-bottom: 12px; }
.step-hero img { height: 128px; width: auto; margin: 12px auto 0; filter: drop-shadow(0 6px 10px rgba(46,46,46,0.12)); }

.howto-copy { margin: 26px auto 0; max-width: 520px; text-align: center; font-size: 1rem; }
.howto-note {
  margin: 12px auto 0; max-width: 520px; text-align: center;
  font-weight: 700; font-size: 0.9rem; color: var(--green);
}

/* --------------------------------------------------------------------------
   06 Purchase
   -------------------------------------------------------------------------- */
.buy { scroll-margin-top: 60px; }
.buy-grid { display: grid; gap: 18px; }
.buy-media {
  display: flex; justify-content: center; align-items: center;
  height: min(46vh, 380px); border-radius: var(--radius-lg);
  background: var(--blush);
  border: 12px solid var(--white); box-shadow: var(--shadow);
  overflow: hidden;
}

.buy-panel { padding: 26px 20px 24px; }
.buy-title { font-size: clamp(1.4rem, 5vw, 1.9rem); }
.buy-formula { margin-top: 6px; font-weight: 600; font-size: 0.9rem; color: var(--green); }
.buy-for { margin-top: 8px; font-size: 0.88rem; color: var(--ink-soft); }
.buy-for span { color: var(--gold); margin-inline: 4px; }

.buy-price {
  display: flex; align-items: baseline; gap: 12px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(203, 183, 162, 0.45);
}
.buy-size { font-weight: 600; color: var(--ink-soft); }
.buy-price strong { font-size: 2rem; font-weight: 800; }

#buy-btn { margin-top: 22px; }

/* --------------------------------------------------------------------------
   07 Serum or routine
   -------------------------------------------------------------------------- */
.choose-grid { display: grid; gap: 20px; margin-top: 28px; }

/* Product card: mirrors the Ziora store card: blush image tile, name, price, green pill */
.product-card {
  padding: 22px 22px 34px; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: 0 10px 34px rgba(46, 46, 46, 0.08);
}
.choose-q { font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 16px; }
.product-tile {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 22px;
  background: var(--blush); overflow: hidden;
}
/* absolutely positioned so the tile keeps its square ratio whatever the image's intrinsic size */
.product-tile img {
  position: absolute; inset: 0; margin: auto;
  width: auto; height: auto; max-width: 78%; max-height: 70%;
  transition: transform .35s ease;
}
.product-card:hover .product-tile img { transform: translateY(-4px) scale(1.02); }
.product-name { margin-top: 24px; font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.product-includes { margin-top: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.product-includes span { color: var(--gold); margin-inline: 4px; }
.product-price { margin-top: auto; padding-top: 14px; font-size: 1.3rem; font-weight: 500; }
.product-btn { margin-top: 20px; min-width: 200px; padding-inline: 34px; }

.unsure {
  margin-top: 26px; padding: 26px 20px; text-align: center;
  background: var(--sage-soft); border-radius: var(--radius);
}
.unsure h3 { font-size: 1.15rem; font-weight: 800; }
.unsure p { margin: 8px auto 0; max-width: 460px; font-size: 0.95rem; color: var(--ink-soft); }
.unsure .btn { margin-top: 18px; }

/* --------------------------------------------------------------------------
   08 FAQ accordion
   -------------------------------------------------------------------------- */
.accordion { margin-top: 26px; display: grid; gap: 10px; }
.faq-item {
  border: 1px solid rgba(203, 183, 162, 0.5); border-radius: var(--radius-sm);
  background: var(--beige);
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; cursor: pointer; list-style: none; min-height: var(--tap);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 0.98rem; font-weight: 700; }
.faq-icon {
  flex: 0 0 auto; width: 26px; height: 26px; position: relative;
  border-radius: 50%; background: var(--white); border: 1px solid var(--nude);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 2px; background: var(--green); transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s ease; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-body { padding: 0 18px 18px; color: var(--ink-soft); font-size: 0.95rem; }
.faq-item[open] .faq-body { animation: faq-in .28s ease both; }
.faq-item summary { transition: background-color .15s ease; }
.faq-item summary:hover { background: rgba(255,255,255,0.6); border-radius: var(--radius-sm); }
.faq-icon { transition: background-color .2s ease, transform .2s ease; }
.faq-item[open] .faq-icon { background: var(--green); border-color: var(--green); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--white); }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.faq-body a { color: var(--green); font-weight: 600; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 40px 0 110px; /* bottom space keeps footer visible above sticky bar */
  text-align: center; background: var(--greige);
}
.footer-logo { width: 96px; margin: 0 auto; opacity: .9; }
.footer-tag { margin-top: 10px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.footer-small { margin: 14px auto 0; max-width: 460px; font-size: 0.78rem; color: var(--ink-soft); }
.footer-copy { margin-top: 14px; font-size: 0.75rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Sticky mobile buy bar
   -------------------------------------------------------------------------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid rgba(203, 183, 162, 0.5);
  box-shadow: 0 -6px 20px rgba(46,46,46,0.08);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-text { flex: 1 1 auto; min-width: 0; font-size: 0.9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-text strong { font-weight: 800; }

/* --------------------------------------------------------------------------
   Tablet / desktop
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .center .btn, .product-btn, .unsure .btn { width: 100%; }
  .product-btn { min-width: 0; padding-inline: 22px; }
}

@media (min-width: 640px) {
  .section { padding-block: 72px; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .problem-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-copy .btn-primary { width: auto; min-width: 320px; }
  .ask-link, .hero-copy .trust { text-align: left; }
}

@media (min-width: 900px) {
  .hero { padding-block: 40px 72px; }
  .hero-grid { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; }
  .hero-media { order: 2; height: 600px; }
  .hero-copy { order: 1; }

  .acid-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps { max-width: 760px; margin-inline: auto; gap: 16px; }
  .step-hero img { height: 170px; }

  .buy-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .buy-media { height: 520px; }
  .buy-panel { padding: 36px 34px; }

  .choose-grid { grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin-inline: auto; }
  .product-card { padding: 28px 28px 40px; }
  .choose-q { min-height: 2.9em; }   /* keeps both tiles level when one question wraps */

  .site-footer { padding-bottom: 48px; }
  .sticky-bar { display: none; }
}


/* --------------------------------------------------------------------------
   Motion: lightweight, CSS-only. Reveal classes are toggled by main.js via
   IntersectionObserver; without JS everything is simply visible.
   -------------------------------------------------------------------------- */

/* Hero entrance on load */
.hero-in { animation: hero-up .7s cubic-bezier(.22,.61,.36,1) both; }
.hero-in-copy { animation-delay: .15s; }
@keyframes hero-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
/* gentle float on the hero product once it has landed */
.hero-media img { animation: float 5s ease-in-out 1s infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--d, 0) * 1s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Diagram arrows draw themselves when the card reveals */
.acid-figure .draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset .9s ease .35s;
}
.acid-figure .pop {
  transform-origin: center; transform-box: fill-box;
  transform: scale(0);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1) .25s;
}
.reveal.is-in .acid-figure .draw { stroke-dashoffset: 0; }
.reveal.is-in .acid-figure .pop  { transform: scale(1); }

/* Checkmarks tick in with their row */
.checklist li::before { transform: scale(.4); transition: transform .35s cubic-bezier(.34,1.56,.64,1) calc(var(--d, 0) * 1s + .25s); }
.checklist li.is-in::before { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .acid-figure .draw { stroke-dashoffset: 0; }
  .acid-figure .pop { transform: none; }
  .checklist li::before { transform: none; }
}
