/* ============================================================
   ATTUNE — Frequency & Longevity Wellness
   Palette: Clinical Calm (locked 2026-07-07)
   deep indigo · soft lavender · coral CTA · off-white
   Type: Playfair Display (display) + Open Sans (body)
   ============================================================ */

:root {
  --bg: #FAF9F7;
  --surface: #FFFFFF;
  --primary: #2E3A6B;        /* deep indigo — trust */
  --primary-deep: #222C54;
  --secondary: #C9BFE0;      /* soft lavender */
  --secondary-soft: #EAE6F4;
  --accent: #E8724C;         /* coral — CTA only */
  --accent-dark: #D25E3A;
  --ink: #221F2C;
  --ink-soft: #5B5868;
  --line: #E3E0EA;
  --good: #4C8A62;
  --shadow: 0 24px 60px -28px rgba(34, 44, 84, 0.30);
  --shadow-soft: 0 10px 30px -14px rgba(34, 44, 84, 0.18);
  --radius: 16px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Open Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

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

img, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--primary); line-height: 1.16; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 64ch; }

/* ---------- Announcement bar (promo — hidden until enabled) ---------- */
.promo-bar {
  display: none; /* toggle via body.promo-on */
  background: var(--primary); color: #fff; text-align: center;
  font-size: 0.85rem; font-weight: 600; padding: 9px 16px; letter-spacing: 0.02em;
}
body.promo-on .promo-bar { display: block; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 249, 247, 0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 15px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--primary); letter-spacing: 0.14em; }
.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links .nav-cta {
  background: var(--accent); color: #fff; border-radius: 40px; padding: 9px 20px;
}
.nav-links .nav-cta:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--primary); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 15px 34px; border-radius: 60px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.03em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer; border: 0; text-align: center;
}
.btn-cta { background: var(--accent); color: #fff; }
.btn-cta:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-media video, .hero-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-media .media-caption {
  position: absolute; left: 14px; bottom: 14px; background: rgba(250,249,247,0.92);
  border-radius: 10px; padding: 8px 14px; font-size: 0.78rem; font-weight: 600; color: var(--primary);
}
.hero .btn { margin-top: 28px; margin-right: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; font-size: 0.83rem; color: var(--ink-soft); }
.hero-trust span { display: flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--good); flex: none; }

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lavender { background: var(--secondary-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-indigo { background: var(--primary); }
.section-indigo h2, .section-indigo h3 { color: #fff; }
.section-indigo .lead, .section-indigo p { color: rgba(250,249,247,0.85); }
.section-indigo .eyebrow { color: var(--secondary); }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 52px; }
.section-head .lead { margin: 0 auto; }

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
/* Centers a partial last row instead of stranding leftover cards on the left */
.grid-flex-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.grid-flex-center.cols-3 > * { flex: 0 1 calc(33.333% - 15px); }
.grid-flex-center.cols-4 > * { flex: 0 1 calc(25% - 17px); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent); font-size: 0.86rem; letter-spacing: 0.05em; text-transform: uppercase; }
.card .icon { color: var(--primary); margin-bottom: 16px; }

/* ---------- Product ---------- */
.product-card {
  text-align: center; padding: 26px 20px 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card img { aspect-ratio: 1/1; object-fit: contain; margin-bottom: 14px; background: #fff; border-radius: 12px; padding: 12px; }
.product-card h3 { font-size: 1.14rem; }
.product-card .price { font-family: var(--font-display); font-size: 1.45rem; color: var(--accent); margin: 8px 0 2px; font-weight: 700; }
.product-card .price-note { font-size: 0.77rem; color: var(--ink-soft); margin-bottom: 14px; }
.product-card .btn { margin-top: auto; padding: 11px 22px; font-size: 0.84rem; }
.badge {
  display: inline-block; background: var(--secondary-soft); color: var(--primary);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 40px; padding: 4px 14px; margin-bottom: 12px; align-self: center;
}
.badge-hot { background: var(--accent); color: #fff; }

.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; padding: 64px 0 34px; }
.gallery-main img { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 1/1; object-fit: contain; padding: 30px; width: 100%; }
.thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumbs img { width: 82px; height: 82px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; }
.thumbs img.active { border-color: var(--accent); }
.product-info .price-row { display: flex; align-items: baseline; gap: 14px; margin: 20px 0 6px; }
.product-info .price { font-family: var(--font-display); font-size: 2.2rem; color: var(--accent); font-weight: 700; }
.product-info .vat { font-size: 0.84rem; color: var(--ink-soft); }
.spec-list { list-style: none; margin: 20px 0; }
.spec-list li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-soft); font-size: 0.96rem; }
.spec-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 700; }
.box-list { list-style: none; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.box-list li { font-size: 0.9rem; color: var(--ink-soft); padding-left: 22px; position: relative; }
.box-list li::before { content: "▸"; position: absolute; left: 4px; color: var(--accent); }

.ship-box {
  background: var(--secondary-soft); border-radius: 12px; padding: 18px 22px;
  font-size: 0.9rem; color: var(--ink-soft); margin: 22px 0;
}
.ship-box strong { color: var(--primary); }
.protect-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); }
.protect-row svg { color: var(--good); flex: none; }

/* ---------- Tables ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 0.94rem; }
.compare-table th { background: var(--primary); color: #fff; padding: 15px 18px; text-align: left; font-family: var(--font-display); font-size: 0.98rem; }
.compare-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.compare-table tr td:first-child { font-weight: 700; color: var(--ink); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* ---------- FAQ / details ---------- */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 26px; margin-bottom: 14px; }
details.faq summary { font-family: var(--font-display); font-size: 1.1rem; color: var(--primary); font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 34px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 0; font-size: 1.4rem; color: var(--accent); transition: transform 0.2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p, details.faq ul { color: var(--ink-soft); margin-top: 12px; font-size: 0.96rem; }
details.faq ul { padding-left: 22px; }

/* ---------- Quiz ---------- */
.quiz-shell { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 40px; box-shadow: var(--shadow); }
.quiz-progress { height: 6px; background: var(--secondary-soft); border-radius: 10px; margin-bottom: 32px; overflow: hidden; }
.quiz-progress-bar { height: 100%; background: linear-gradient(90deg, var(--secondary), var(--accent)); width: 0%; transition: width 0.3s ease; }
.quiz-q h3 { margin-bottom: 20px; }
.quiz-opt {
  display: block; width: 100%; text-align: left; background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 15px 20px;
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  margin-bottom: 12px; cursor: pointer; transition: all 0.15s ease;
}
.quiz-opt:hover { border-color: var(--accent); background: var(--surface); transform: translateX(4px); }
.quiz-result { text-align: center; }
.quiz-result img { max-width: 230px; margin: 18px auto; background: #fff; border-radius: 12px; padding: 16px; }

/* ---------- Forms & modal ---------- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: var(--primary); letter-spacing: 0.03em; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; background: var(--surface); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--secondary); outline-offset: 1px; border-color: var(--primary); }

.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(34, 44, 84, 0.55); z-index: 100; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius); max-width: 520px; width: 100%; padding: 38px 36px; max-height: 90vh; overflow-y: auto; position: relative; }
.modal .close-x { position: absolute; top: 14px; right: 18px; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink-soft); }
.test-strip { background: var(--secondary-soft); color: var(--primary); font-size: 0.8rem; font-weight: 700; text-align: center; padding: 8px 12px; border-radius: 8px; margin-bottom: 18px; letter-spacing: 0.04em; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--surface); border-left: 4px solid var(--secondary); border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 28px; }
.testimonial p { font-style: italic; color: var(--ink-soft); }
.testimonial .who { margin-top: 14px; font-weight: 700; font-style: normal; color: var(--primary); font-size: 0.88rem; }
.placeholder-note { border: 1.5px dashed var(--secondary); background: transparent; }

/* ---------- Blog / article ---------- */
.post-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card .post-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card .post-meta { font-size: 0.76rem; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.article h2 { margin: 38px 0 14px; }
.article p { color: var(--ink-soft); margin-bottom: 16px; }
.article ul, .article ol { color: var(--ink-soft); margin: 0 0 16px 24px; }
.article li { margin-bottom: 8px; }
.article img { border-radius: var(--radius); box-shadow: var(--shadow-soft); margin: 10px 0 20px; }
.article .lead { margin-bottom: 22px; }

/* ---------- Breadcrumb / footer ---------- */
.crumbs { font-size: 0.84rem; color: var(--ink-soft); padding: 20px 0 0; }
.crumbs a { color: var(--accent); }

footer { background: var(--primary-deep); color: rgba(250, 249, 247, 0.78); padding: 62px 0 34px; font-size: 0.92rem; }
footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 15px; font-family: var(--font-display); }
footer a { color: rgba(250, 249, 247, 0.78); display: block; margin-bottom: 8px; }
footer a:hover { color: var(--secondary); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 38px; margin-bottom: 42px; }
.footer-bottom { border-top: 1px solid rgba(250, 249, 247, 0.15); padding-top: 22px; font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.disclaimer { font-size: 0.77rem; color: rgba(250, 249, 247, 0.5); max-width: 72ch; margin-top: 16px; }

/* ---------- Reveal animation (GSAP enhances; CSS fallback) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Currency note ---------- */
.geo-note { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; border-radius: 60px;
  padding: 14px 20px 14px 14px; box-shadow: 0 14px 34px -12px rgba(0,0,0,0.4);
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 40px -12px rgba(0,0,0,0.45); color: #fff; }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float span { white-space: nowrap; }
@media (max-width: 640px) {
  .wa-float { padding: 13px; border-radius: 50%; }
  .wa-float span { display: none; }
}
.protect-row.wa-row a { color: var(--primary); font-weight: 700; }
.protect-row.wa-row svg.wa-mini { color: #25D366; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .product-hero, .footer-grid { grid-template-columns: 1fr; }
  .box-list { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); flex-direction: column; padding: 22px 24px; gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  section { padding: 54px 0; }
  .hero { padding: 46px 0 40px; }
  .quiz-shell { padding: 32px 22px; }
}
