/* =========================================================
   BurnTide — Design System
   Display: Fraunces (warm, ember-soft serif for headlines)
   Body: Inter (clean, high-legibility)
   Utility/Data: IBM Plex Mono (supplement facts, labels, eyebrows)
   Signature element: the "tideline" — a hand-drawn flame-to-wave
   gradient rule that separates sections, echoing burn + tide.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --brown: #6B2014;
  --brown-deep: #4d1409;
  --saffron: #F2B233;
  --saffron-soft: #f7c95f;
  --ember: #E8651C;
  --lava: #D63D14;
  --crimson: #A8240E;
  --lime: #D9E84A;
  --cream: #FFF8E7;
  --cream-2: #fdf3df;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6f6258;
  --line: #ece2cf;

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-soft: 0 20px 45px -25px rgba(77, 20, 9, 0.35);
  --shadow-card: 0 10px 30px -18px rgba(77, 20, 9, 0.28);
  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img {
height: auto; max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brown-deep);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--muted); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

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

/* ---------- Eyebrow / Labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--saffron));
  display: inline-block;
  border-radius: 2px;
}

/* ---------- Tideline signature divider ---------- */
.tideline {
  width: 100%;
  height: 28px;
  margin: 0 auto;
  display: block;
  color: var(--saffron);
}
.tideline path { fill: none; stroke: url(#tideGrad); stroke-width: 3; stroke-linecap: round; }
.section-divider {
  display: flex;
  justify-content: center;
  
  background: var(--cream);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 231, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--brown-deep);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.brand span { color: var(--lava); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--brown);
  position: relative;
}
.nav-links a:hover { color: var(--lava); }
.nav-cta {
  background: linear-gradient(135deg, var(--ember), var(--lava));
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--brown-deep);
}

@media (max-width: 880px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 18px 24px 26px; border-bottom: 1px solid var(--line); gap: 16px; transform: translateY(-140%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta { text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--lava) 60%, var(--crimson));
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(214, 61, 20, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(214, 61, 20, 0.65); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--brown);
  color: var(--brown);
}
.btn-outline:hover { background: var(--brown); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 80% at 80% 0%, rgba(242, 178, 51, .18) 0%, rgba(242, 178, 51, 0) 55%), linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}
.pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--brown);
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 600;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); }
.hero .lede { font-size: 18px; max-width: 46ch; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-visual { position: relative; }
.hero-visual img {
height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.hero-disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 16px; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 17px; }
.center { text-align: center; }
.bg-cream-2 { background: var(--cream-2); }
.bg-brown { background: linear-gradient(160deg, var(--brown-deep), var(--brown)); color: var(--cream); }
.bg-brown h2, .bg-brown h3 { color: var(--white); }
.bg-brown p { color: #e9d9ca; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15px; margin-bottom: 0; }
.card .icon-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--saffron-soft), var(--ember));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 20px; margin-bottom: 16px;
  font-weight: 700;
}

/* ---------- Ingredient blocks ---------- */
.ingredient-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.ingredient-row:last-child { border-bottom: none; }
.ingredient-row img {
height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.ingredient-row .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--crimson);
  background: rgba(168, 36, 14, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 600;
}
@media (max-width: 720px) { .ingredient-row { grid-template-columns: 1fr; } }

/* ---------- Supplement facts panel ---------- */
.facts-panel {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  font-family: var(--font-mono);
  max-width: 460px;
}
.facts-panel h3 {
  font-family: var(--font-mono);
  font-size: 26px;
  border-bottom: 8px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 10px;
  color: var(--ink);
}
.facts-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts-row.total { border-bottom: 4px solid var(--ink); font-weight: 700; }
.facts-note { font-size: 11.5px; color: var(--muted); margin-top: 12px; }

/* ---------- Steps / How it works ---------- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ember), var(--crimson));
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Reviews ---------- */
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.review-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--ember));
  color: var(--white); font-weight: 700; font-family: var(--font-display);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.stars { color: var(--saffron); letter-spacing: 2px; font-size: 15px; }
.review-name { font-weight: 700; color: var(--brown-deep); font-size: 15px; }
.review-tag { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.review-quote { font-size: 15px; font-style: italic; color: var(--ink); }

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--lava);
  box-shadow: 0 24px 50px -22px rgba(214, 61, 20, 0.45);
  transform: translateY(-10px);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--ember), var(--lava));
  color: var(--white); font-family: var(--font-mono); font-size: 11.5px;
  padding: 6px 16px; border-radius: 999px; font-weight: 700; letter-spacing: 0.04em;
  white-space: nowrap;
}
.pricing-card img {
height: auto; width: 140px; margin: 8px auto 18px; }
.price-big { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--brown-deep); }
.price-per { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.price-total { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.pricing-card ul { text-align: left; margin: 0 0 22px; list-style: none; font-size: 14px; }
.pricing-card li { padding: 6px 0; display: flex; gap: 8px; color: var(--ink); }
.pricing-card li::before { content: "✓"; color: var(--lava); font-weight: 700; }

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--brown-deep);
}
.faq-icon { font-size: 20px; color: var(--lava); transition: transform 0.2s ease; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 15px;
  padding: 0 4px;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* ---------- Badges strip ---------- */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}
.badge-strip img {
height: auto; height: 64px; width: auto; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--brown-deep), var(--crimson));
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: #f4dfce; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-deep);
  color: #e9d9ca;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--saffron-soft); font-size: 14px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #e9d9ca; font-size: 14.5px; }
.footer-grid a:hover { color: var(--saffron-soft); }
.footer-brand { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 26px;
  font-size: 12.5px;
  color: #cbb7a4;
  line-height: 1.7;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  font-size: 12.5px;
  color: #b39d88;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0 0;
}
.breadcrumbs a { color: var(--brown); font-weight: 600; }
.breadcrumbs a:hover { color: var(--lava); }

/* ---------- Blog ---------- */
.blog-hero { padding: 48px 0 20px; }
.blog-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.blog-body { max-width: 740px; margin: 0 auto; }
.blog-body h2 { font-size: 27px; margin-top: 1.6em; }
.blog-body h3 { font-size: 21px; margin-top: 1.4em; }
.blog-body p { font-size: 16.5px; color: var(--ink); }
.blog-body ul, .blog-body ol { margin: 0 0 20px 22px; color: var(--ink); }
.blog-body li { margin-bottom: 8px; font-size: 16px; }
.blog-body blockquote {
  border-left: 4px solid var(--ember);
  padding: 4px 22px;
  font-style: italic;
  color: var(--brown);
  margin: 28px 0;
  font-family: var(--font-display);
  font-size: 19px;
}
.blog-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 20px; }
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.blog-card .blog-meta { margin-bottom: 10px; }
.blog-card h3 { font-size: 18px; }
.blog-card p { font-size: 14px; }
.blog-card a.read-more { font-family: var(--font-mono); font-size: 13px; color: var(--lava); font-weight: 600; }
@media (max-width: 900px) { .blog-card-grid { grid-template-columns: 1fr; } }

.inline-cta {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin: 32px 0;
  text-align: center;
}
.inline-cta p { margin-bottom: 14px; color: var(--brown); font-weight: 600; }

/* ---------- 404 ---------- */
.error-page { padding: 110px 0; text-align: center; }
.error-code { font-family: var(--font-display); font-size: clamp(80px, 16vw, 160px); font-weight: 900; color: var(--saffron); line-height: 1; margin-bottom: 0; }
.error-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.small-print { font-size: 12.5px; color: var(--muted); }
.divider-space { height: 8px; }

/* ---------- v2 additions: brand mark, pillar ring, alt hero ---------- */
.brand sup.reg { font-size: 10px; margin-left: 1px; color: var(--lava); font-weight: 700; }

.hero-v2 .container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.hero-v2 .hero-visual { order: -1; }
@media (max-width: 900px) {
  .hero-v2 .container { grid-template-columns: 1fr; }
  .hero-v2 .hero-visual { order: -1; }
}

.pillar-ring {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  position: relative;
  margin-top: 12px;
}
.pillar-ring::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--ember), var(--lava), var(--ember), var(--saffron));
  opacity: 0.5;
  z-index: 0;
}
.pillar {
  position: relative;
  z-index: 1;
  text-align: center;
}
.pillar-icon {
  width: 68px; height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--saffron);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-card);
}
.pillar h4 { font-family: var(--font-display); font-size: 15.5px; color: var(--brown-deep); margin-bottom: 6px; }
.pillar p { font-size: 12.5px; margin-bottom: 0; }
@media (max-width: 900px) {
  .pillar-ring { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .pillar-ring::before { display: none; }
}
@media (max-width: 560px) {
  .pillar-ring { grid-template-columns: repeat(2, 1fr); }
}

.quality-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.quality-row .card { flex: 1 1 260px; }
.nav-cta {
  background: linear-gradient(135deg, var(--ember), var(--lava));
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
  white-space: nowrap;
}