/* The Heart-Healthy Indian — sales site styles
   Palette from natural ingredients: deep leaf green, sage, warm cream,
   terracotta, with the turmeric yellow used on the ebook cover. */

:root {
  --green-900: #123822;
  --green-800: #1b4a30;
  --green-700: #1e5634;   /* ebook cover green */
  --green-600: #2d7a4c;
  --sage-50:  #f1f5ee;
  --sage-100: #e3ece0;
  --sage-300: #b7cbb3;
  --cream:    #fbf6ec;
  --cream-2:  #f4ead7;
  --paper:    #fffdf8;
  --terracotta: #b4532f;     /* CTA */
  --terracotta-dark: #933f20;
  --terracotta-text: #a64b2a;
  --turmeric: #f2b33a;
  --ink:   #1d2820;
  --muted: #4b5a4f;
  --line:  #e4dccb;

  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Mukta", "Noto Sans", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 1px 2px rgba(29, 40, 32, .06), 0 8px 24px rgba(29, 40, 32, .07);
  --shadow-book: 0 2px 4px rgba(18, 56, 34, .18), 0 24px 48px -12px rgba(18, 56, 34, .45);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;      /* 18px: comfortable for older readers */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--green-900);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.45rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--turmeric);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--green-900); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 720px; margin: 0 0 clamp(28px, 4vw, 48px); display: grid; gap: 14px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); }

.eyebrow {
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta-text);
}

/* ---------- setup banner (only visible when config is incomplete) ---------- */
.setup-banner {
  background: #fff4cc; color: #4a3800; border-bottom: 1px solid #e9cf72;
  font-size: .95rem; line-height: 1.45; padding: 10px 0;
}
.setup-banner code { font-size: .9em; background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

/* ---------- top bar (no navigation, by design) ---------- */
.topbar { padding: 18px 0; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--green-900); text-decoration: none;
}
.brand svg { flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 30px;
  border-radius: 999px; border: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-buy {
  background: var(--terracotta); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(147, 63, 32, .55);
}
.btn-buy:hover { background: var(--terracotta-dark); color: #fff; transform: translateY(-1px); }
.btn-buy:active { transform: translateY(0); }
.btn-buy svg { transition: transform .18s ease; }
.btn-buy:hover svg { transform: translateX(3px); }
.btn.is-unavailable,
.btn.is-unavailable:hover {
  background: #cfc8b8; color: #3c3a33; box-shadow: none; transform: none; cursor: not-allowed;
}
.btn.is-unavailable svg { display: none; }
.btn-block { width: 100%; }

.buy-note {
  font-size: .92rem; color: #5c4a1a; background: #fff4cc;
  border-radius: 10px; padding: 8px 12px; margin-top: 10px;
}

.buy-row { display: grid; gap: 12px; justify-items: start; }
.price-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--green-900);
  line-height: 1;
}
.price-meta { color: var(--muted); font-size: 1rem; }
.fine { font-size: .95rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.fine svg { flex: none; margin-top: 4px; }

/* ---------- hero ---------- */
.hero { padding: 8px 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero-grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
}
.hero-copy { display: grid; gap: 22px; }
.hero-copy .lead { max-width: 560px; }

.ticks { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.ticks li svg { margin-top: 3px; }

/* book mockup */
.book-stage {
  position: relative; display: grid; place-items: center;
  padding: clamp(24px, 4vw, 40px) 0;
}
.book-stage::before {
  content: ""; position: absolute; inset: 6% 4%;
  background: radial-gradient(closest-side, var(--sage-100), rgba(227,236,224,0) 100%);
  border-radius: 50%;
}
.book {
  position: relative; width: min(62vw, 360px);
  transform: perspective(1400px) rotateY(-14deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform .5s ease;
}
.book:hover { transform: perspective(1400px) rotateY(-6deg) rotateX(1deg); }
@media (prefers-reduced-motion: reduce) { .book, .book:hover { transform: none; transition: none; } }
.book img { border-radius: 4px 10px 10px 4px; box-shadow: var(--shadow-book); }
.book::after { /* spine highlight */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 18px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.18) 40%, rgba(0,0,0,0));
}
.book-tag {
  position: absolute; right: -12%; bottom: -5%;
  background: var(--paper); color: var(--green-900);
  border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-soft);
  font-family: var(--font-display); font-size: .85rem; font-weight: 600; line-height: 1.3;
  display: flex; gap: 10px; align-items: center;
  transform: translateZ(40px);
}
.book-tag small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .85rem; }
.deco { position: absolute; pointer-events: none; }

/* ---------- problem ---------- */
.problem { background: var(--paper); border-block: 1px solid var(--line); }
.cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(196px, 100%), 1fr));
}
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 10px; align-content: start;
}
.problem .card { background: var(--cream); }
.icon-chip {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sage-100); color: var(--green-700);
}
.icon-chip.warm { background: #f8e3d6; color: var(--terracotta-text); }
.card p { color: var(--muted); font-size: 1.02rem; }
.problem-close { margin-top: 28px; font-size: 1.15rem; max-width: 720px; }

/* ---------- solution ---------- */
.solution-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .solution-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.plate-card {
  background: var(--sage-50); border-radius: 24px; padding: clamp(24px, 4vw, 36px);
  display: grid; gap: 22px;
}
.plate-legend { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.plate-legend li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: start; font-size: 1rem; }
.plate-legend .dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; }
.plate-legend b { font-family: var(--font-display); font-weight: 600; color: var(--green-900); }
.plate-legend span.ex { display: block; color: var(--muted); font-size: .95rem; }
.caption { font-size: .9rem; color: var(--muted); }

.principles { display: grid; gap: 22px; margin-top: 28px; }
@media (min-width: 620px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.principle p { color: var(--muted); font-size: 1.02rem; margin-top: 4px; }

.pull {
  margin: 32px 0 0; padding: 22px 26px; border-radius: var(--radius);
  background: var(--green-800); color: #f6f1e4;
  font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45;
}
.pull cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--font-body); font-size: .92rem; color: #cfe0cc; }

/* ---------- inside (chapters) ---------- */
.inside { background: var(--green-800); color: #eef3ea; }
.inside h2, .inside h3 { color: #fff; }
.inside .eyebrow { color: var(--turmeric); }
.inside .lead { color: #cfe0cc; }
.chapters {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.chapter {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: 52px 1fr; gap: 16px;
  transition: background-color .2s ease;
}
.chapter:hover { background: rgba(255,255,255,.09); }
.chapter .num {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(242,179,58,.16); color: var(--turmeric);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.chapter p { color: #cfe0cc; font-size: 1rem; margin-top: 4px; }
.chapter.extra .num { background: rgba(255,255,255,.12); color: #fff; }
.chapter .tag {
  display: inline-block; font-family: var(--font-display); font-size: .7rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--turmeric); margin-bottom: 2px;
}

/* ---------- showcase ---------- */
.showcase-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: start; }
@media (min-width: 960px) { .showcase-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.pages {
  display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start;
}
.page-shot { margin: 0; display: grid; gap: 10px; }
.page-shot img {
  border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); background: #fff;
}
.page-shot:nth-child(2) { margin-top: 28px; }
.page-shot figcaption { font-size: .88rem; color: var(--muted); line-height: 1.35; }
.page-shot figcaption b { color: var(--ink); font-weight: 600; display: block; }
.shots-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }

.included { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.included li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.included li:last-child { border-bottom: 0; }
.included p { color: var(--muted); font-size: 1rem; }

.day-sample {
  margin-top: clamp(40px, 6vw, 64px); background: var(--paper); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden;
}
.day-sample header {
  background: var(--green-700); color: #fff; padding: 16px 24px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline;
}
.day-sample header h3 { color: #fff; }
.day-sample header span { color: #cfe0cc; font-size: .95rem; }
.day-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.day-table th, .day-table td { text-align: left; padding: 13px 24px; vertical-align: top; }
.day-table th { font-family: var(--font-display); font-weight: 600; color: var(--green-700); width: 34%; font-size: .95rem; }
.day-table tr:nth-child(odd) { background: var(--sage-50); }
@media (max-width: 560px) {
  .day-table th, .day-table td { display: block; width: auto; padding: 4px 18px; }
  .day-table th { padding-top: 14px; }
  .day-table td { padding-bottom: 14px; }
}

/* ---------- audience ---------- */
.audience { background: var(--sage-50); }
.audience-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .audience-grid { grid-template-columns: 1.25fr 1fr; } }
.panel { background: var(--paper); border-radius: 22px; padding: clamp(24px, 4vw, 36px); display: grid; gap: 16px; align-content: start; }
.panel.note { background: #fbeee4; }
.panel.note h3 { color: var(--terracotta-dark); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.checklist li svg { margin-top: 3px; }

/* ---------- benefits ---------- */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); counter-reset: b; }
.benefits li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 22px;
  background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line);
}
.benefits .n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-700); color: #fff; font-family: var(--font-display); font-weight: 600;
}
.benefits p { color: var(--muted); font-size: 1rem; margin-top: 4px; }
.honest { margin-top: 24px; font-size: .98rem; color: var(--muted); max-width: 780px; }

.mid-cta {
  margin-top: clamp(36px, 5vw, 56px); display: flex; gap: 20px 32px; align-items: center; flex-wrap: wrap;
  padding: 24px clamp(20px, 4vw, 32px); border-radius: 22px; background: var(--cream-2);
}
.mid-cta .mid-text { flex: 1 1 300px; display: grid; gap: 4px; }
.mid-cta .mid-text strong { font-family: var(--font-display); color: var(--green-900); font-size: 1.15rem; }
.mid-cta .buy-row { flex: 0 1 auto; justify-items: stretch; }

/* ---------- about ---------- */
.about { background: var(--paper); border-block: 1px solid var(--line); }
.about-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 220px 1fr; gap: 56px; } }
.about-cover { width: 200px; border-radius: 4px 8px 8px 4px; box-shadow: var(--shadow-book); }
.about-copy { display: grid; gap: 16px; max-width: 720px; }
.about-copy p { color: var(--muted); }
.sources { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sources li { font-size: .9rem; padding: 6px 12px; border-radius: 999px; background: var(--sage-50); color: var(--green-800); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--sage-300); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 22px; min-height: 56px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--green-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; transition: transform .2s ease; color: var(--green-600); }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 22px; color: var(--muted); display: grid; gap: 10px; }

/* ---------- final CTA ---------- */
.final {
  background: var(--green-900); color: #eef3ea; position: relative; overflow: hidden;
}
.final h2 { color: #fff; }
.final .eyebrow { color: var(--turmeric); }
.final-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .final-grid { grid-template-columns: 260px 1fr; gap: 64px; } }
.final-cover { width: min(56vw, 240px); margin: 0 auto; border-radius: 4px 10px 10px 4px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.final-copy { display: grid; gap: 20px; }
.final-copy .lead { color: #cfe0cc; }
.final .ticks li { color: #eef3ea; }
.final .price { color: #fff; }
.final .price-meta, .final .fine { color: #cfe0cc; }
.final .btn-buy { background: var(--turmeric); color: var(--green-900); box-shadow: 0 8px 22px -8px rgba(0,0,0,.5); }
.final .btn-buy:hover { background: #f6c45f; color: var(--green-900); }
.final .btn.is-unavailable { background: #5d6b60; color: #eef3ea; }

/* ---------- footer ---------- */
.site-footer { background: #0d2918; color: #b9c9b8; padding: 48px 0 40px; font-size: .95rem; }
.site-footer a { color: #e3ece0; }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.footer-title { font-family: var(--font-display); color: #fff; font-weight: 600; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { display: inline-block; padding: 6px 0; }
.is-placeholder { opacity: .75; text-decoration: none; cursor: default; font-style: italic; }
.disclaimer {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: grid; gap: 8px; max-width: 900px; line-height: 1.55;
}
.disclaimer strong { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.copyright { margin-top: 20px; font-size: .88rem; color: #8ea48d; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 253, 248, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(29,40,32,.08);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .sc-text { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-cta .sc-text b { display: block; font-family: var(--font-display); font-size: .92rem; color: var(--green-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .sc-text span { font-size: .9rem; color: var(--muted); }
.sticky-cta .btn { min-height: 48px; padding: 10px 20px; font-size: 1rem; flex: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
@media (max-width: 899px) { body[data-page="sales"] { padding-bottom: 76px; } }

/* ---------- reveal ---------- */
.will-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.will-reveal.is-in { opacity: 1; transform: none; }

/* ---------- thank-you page ---------- */
.ty-main { padding: clamp(24px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.ty-card {
  max-width: 880px; margin: 0 auto; background: var(--paper); border-radius: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft); overflow: hidden;
}
.ty-top {
  background: var(--green-800); color: #eef3ea; padding: clamp(28px, 5vw, 48px);
  display: grid; gap: 14px; text-align: center; justify-items: center;
}
.ty-top h1 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.7rem); }
.ty-top p { color: #d8e5d4; max-width: 560px; font-size: 1.15rem; }
.ty-check { width: 64px; height: 64px; border-radius: 50%; background: var(--turmeric); display: grid; place-items: center; color: var(--green-900); }
.ty-body {
  padding: clamp(24px, 5vw, 48px); display: grid; gap: 32px; align-items: center;
}
@media (min-width: 720px) { .ty-body { grid-template-columns: 200px 1fr; } }
.ty-cover { width: 180px; margin: 0 auto; border-radius: 4px 8px 8px 4px; box-shadow: var(--shadow-book); }
.ty-dl { display: grid; gap: 16px; }
.ty-dl .meta { color: var(--muted); }
.ty-dl .meta b { color: var(--ink); font-family: var(--font-display); font-weight: 600; display: block; font-size: 1.15rem; }
.btn-download { background: var(--green-700); color: #fff; min-height: 60px; font-size: 1.12rem; box-shadow: 0 8px 20px -8px rgba(18,56,34,.6); }
.btn-download:hover { background: var(--green-900); color: #fff; }
.setup-box {
  border: 2px dashed #d9b84d; background: #fff8dd; color: #4a3800; border-radius: 14px; padding: 16px 18px; font-size: 1rem;
}
.setup-box code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.ty-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 1rem; }
.ty-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.ty-steps li svg { margin-top: 4px; }
.ty-foot { border-top: 1px solid var(--line); padding: 22px clamp(24px, 5vw, 48px); display: grid; gap: 12px; font-size: .95rem; color: var(--muted); background: var(--cream); }

[hidden] { display: none !important; }
