/* ============================================================
   MemoFix — Advanced Brain Health Formula
   Landing page styles  ·  "Deep Purple" theme
   Adapted from the MindHerb template (blue → purple)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand purple (from the MemoFix bottle) */
  --purple-1: #7a3fc4;   /* bright top of gradients   */
  --purple-2: #4a2385;   /* mid                       */
  --purple-3: #2e1657;   /* deepest                   */
  --accent:   #7c3aed;   /* violet highlight on white */
  --accent-2: #6d28d9;

  /* CTA green (kept from original template) */
  --green-1: #31ce23;
  --green-2: #15d630;

  /* Neutrals */
  --ink:    #23202b;
  --body:   #55525e;
  --muted:  #8a8792;
  --line:   #ece9f2;
  --white:  #ffffff;

  --band-gradient: linear-gradient(135deg, var(--purple-1) 0%, var(--purple-2) 55%, var(--purple-3) 100%);

  --radius: 16px;
  --shadow-card: 0 18px 40px -20px rgba(46, 22, 87, .35);
  --shadow-btn:  0 12px 24px -10px rgba(21, 214, 48, .6);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(100% - 40px, 900px); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.accent { color: var(--accent); }

/* ---------- Section titles ---------- */
.section__title {
  text-align: center;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  letter-spacing: -.5px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section__title--left { text-align: left; margin-bottom: 26px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
.btn--buy {
  color: #fff;
  background: linear-gradient(180deg, var(--green-1), var(--green-2));
  box-shadow: var(--shadow-btn);
}
.btn--buy:hover { transform: translateY(-3px); filter: brightness(1.05); }
.btn--buy:active { transform: translateY(-1px); }
.btn--block { display: block; width: 100%; text-align: center; }

/* ============================================================
   Checklists
   ============================================================ */
.checklist { list-style: none; margin: 26px 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.checklist--light li { color: #fff; }
.checklist--light li::before { background: #fff; }

/* ============================================================
   Trust badges
   ============================================================ */
.trust {
  list-style: none; display: flex; gap: 26px;
  margin: 30px 0 0; padding: 0; flex-wrap: wrap;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 26px; height: 26px; fill: var(--muted); flex: none; }
.trust span { display: flex; flex-direction: column; font-size: .72rem; line-height: 1.25; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.trust strong { font-weight: 800; color: var(--body); }
.trust--light svg { fill: rgba(255,255,255,.85); }
.trust--light span { color: rgba(255,255,255,.8); }
.trust--light strong { color: #fff; }
.trust--mini { justify-content: center; gap: 14px; margin-top: 18px; }
.trust--mini svg { width: 18px; height: 18px; }
.trust--mini span { font-size: .6rem; }

/* ============================================================
   Wave dividers
   ============================================================ */
.wave { position: absolute; left: 0; width: 100%; height: clamp(50px, 7vw, 110px); display: block; }
.wave--bottom { bottom: -1px; }
.wave--top { top: -1px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--band-gradient);
  padding: clamp(44px, 6vw, 76px) 0 clamp(80px, 10vw, 128px);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.hero__title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.5rem, 1.05rem + 1.7vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -.02em;
  max-width: 15ch;
  text-wrap: balance;
}
/* Secondary line: smaller + lighter = clear hierarchy, not a wall of bold */
.hero__title span {
  display: block;
  margin-top: .6em;
  font-size: .74em;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.01em;
  color: rgba(255, 255, 255, .94);
  max-width: 26ch;
}
.hero__sub { color: rgba(255,255,255,.86); font-size: 1rem; max-width: 42ch; margin: 22px 0 0; }
.hero__copy .checklist { margin: 24px 0 30px; }
.hero__product { justify-self: center; }
.hero__product img {
  width: 100%;
  max-width: 340px;
  filter: drop-shadow(0 26px 38px rgba(0,0,0,.35));
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ============================================================
   INGREDIENTS
   ============================================================ */
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
}
.ingredient { text-align: center; }
.ingredient__icon {
  display: grid; place-items: center;
  width: 92px; height: 92px; margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--purple-1), var(--purple-3));
  box-shadow: 0 14px 26px -12px rgba(46,22,87,.6);
}
.ingredient__icon svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ingredient h3 { color: var(--accent); font-size: 1.06rem; margin-bottom: 10px; }
.ingredient p { font-size: .92rem; color: var(--body); }
.ingredient-note {
  max-width: 60ch;
  margin: clamp(34px, 5vw, 54px) auto 0;
  text-align: center;
  font-size: .96rem;
  color: var(--muted);
}

/* ============================================================
   PURPLE BANDS (safety + guarantee)
   ============================================================ */
.band {
  position: relative;
  background: var(--band-gradient);
  color: #fff;
  padding: clamp(90px, 12vw, 150px) 0;
  overflow: hidden;
}
.band__inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}
.band--guarantee .band__inner { grid-template-columns: 1.15fr .85fr; }
.band__title { color: #fff; font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.band__title strong { font-weight: 800; }
.band p { color: rgba(255,255,255,.9); margin: 16px 0; }
.band .btn { margin-top: 14px; }
.band__product { justify-self: center; }
.band__product img {
  width: 100%;
  max-width: 270px;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.4));
}
.band--guarantee .band__product img { max-width: 380px; }
.guarantee__sub { color: #fff; font-size: 1.1rem; margin-top: 18px; }

/* ============================================================
   WHY THE RIGHT CHOICE
   ============================================================ */
.choice__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
}
.choice__product { justify-self: center; }
.choice__product img {
  width: 100%;
  max-width: 270px;
  filter: drop-shadow(0 26px 34px rgba(46,22,87,.25));
}

/* ============================================================
   PRICING
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}
.price-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.price-card--featured { border-color: var(--accent); box-shadow: 0 26px 50px -18px rgba(124,58,237,.4); }
.price-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--band-gradient); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .6px;
  padding: 6px 18px; border-radius: 999px; text-transform: uppercase;
}
.price-card__title { color: var(--accent); font-size: 1.35rem; font-weight: 800; margin-bottom: 14px; }
.price-card__img { min-height: 190px; display: grid; place-items: center; margin-bottom: 16px; }
.price-card__img img { max-height: 185px; width: auto; }
.price-card__price { font-size: 2.7rem; font-weight: 900; color: var(--green-2); line-height: 1; margin: 0; }
.price-card__price strong { font-weight: 900; }
.price-card__total { font-size: 1.1rem; color: var(--ink); font-weight: 600; margin: 14px 0 4px; }
.price-card__ship { color: var(--muted); font-size: .95rem; margin: 0 0 22px; }
.price-card__ship--free { color: var(--accent); font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: 14px; }
.accordion__item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--band-gradient);
  box-shadow: 0 10px 24px -16px rgba(46,22,87,.5);
}
.accordion__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  font-weight: 700;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
  content: "+";
  font-size: 1.5rem; font-weight: 400; line-height: 1;
  transition: transform .25s var(--ease);
}
.accordion__item[open] summary::after { content: "–"; }
.accordion__body {
  background: #fff;
  padding: 20px 26px 24px;
}
.accordion__body p { margin: 0; color: var(--body); }
.accordion__body a { color: var(--accent); font-weight: 600; }

/* ============================================================
   SUPPLEMENT FACTS — official label image
   ============================================================ */
.label {
  margin: 0;
  max-width: 1040px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  background: var(--purple-3);
}
.label img { width: 100%; height: auto; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #16121f; color: rgba(255,255,255,.7); padding: 46px 0 34px; text-align: center; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.footer__nav a { color: rgba(255,255,255,.72); font-size: .95rem; transition: color .2s var(--ease); }
.footer__nav a:hover { color: #fff; }
.footer__copy { margin: 26px 0 0; font-size: .8rem; color: rgba(255,255,255,.4); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__product { order: 1; max-width: 340px; }
  .hero__sub { margin-inline: auto; }
  .hero .checklist { display: inline-block; text-align: left; }
  .hero .trust { justify-content: center; }

  .ingredient-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .ingredient:last-child { grid-column: 1 / -1; max-width: 300px; margin-inline: auto; }

  .band__inner,
  .band--guarantee .band__inner,
  .choice__inner { grid-template-columns: 1fr; text-align: center; }
  .band__product { order: -1; max-width: 300px; }
  .band--guarantee .band__product { order: 0; }
  .band .btn { margin-inline: auto; }
  .band .trust { justify-content: center; }
  .choice__copy .section__title--left { text-align: center; }
  .choice .checklist { display: inline-block; text-align: left; }
  .choice__product { order: -1; max-width: 300px; }

  .price-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .price-card--featured { order: -1; }
}

@media (max-width: 520px) {
  .ingredient-grid { grid-template-columns: 1fr; }
  .ingredient:last-child { grid-column: auto; }
  .btn { padding: 15px 30px; }
  .trust { gap: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .btn:hover, .price-card:hover { transform: none; }
}

/* ============================================================
   LEGAL PAGES (terms / privacy / return / contact)
   Shares the same tokens, buttons and footer as the landing page.
   ============================================================ */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--band-gradient);
  box-shadow: 0 8px 24px -16px rgba(46, 22, 87, .8);
}
.lp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.lp-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.25rem; color: #fff; }
.lp-logo svg { width: 26px; height: 26px; fill: #fff; }
.lp-back { color: rgba(255, 255, 255, .9); font-weight: 600; font-size: .9rem; }
.lp-back:hover { color: #fff; text-decoration: underline; }

.lp-hero {
  background: var(--band-gradient);
  color: #fff;
  text-align: center;
  padding: clamp(40px, 6vw, 68px) 0 clamp(48px, 7vw, 78px);
}
.lp-hero h1 { color: #fff; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.lp-hero p { color: rgba(255, 255, 255, .8); margin: 10px 0 0; font-size: .95rem; }

.lp-body { width: min(100% - 40px, 820px); margin: clamp(40px, 6vw, 72px) auto; }
.lp-body h2 {
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.lp-body h2:first-child { margin-top: 0; }
.lp-body h3 { color: var(--accent-2); font-size: 1.08rem; font-weight: 700; margin: 26px 0 8px; }
.lp-body p { margin: 0 0 16px; color: var(--body); }
.lp-body ul,
.lp-body ol { margin: 0 0 18px; padding-left: 22px; }
.lp-body li { margin-bottom: 8px; color: var(--body); }
.lp-body a { color: var(--accent); font-weight: 600; word-break: break-word; }
.lp-body strong { color: var(--ink); }
.lp-body .lp-note {
  background: #faf8fd;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: .92rem;
}

/* Contact page cards */
.lp-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 8px;
}
.lp-contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}
.lp-contact-card h3 { margin-top: 0; }
.lp-contact-card p { font-size: .95rem; margin-bottom: 8px; }
