:root {
  --teal: #0F766E;
  --teal-dark: #0B5952;
  --mint: #34D399;
  --mint-light: #A7F3D0;
  --cloud: #F8FAFC;
  --slate: #0F172A;
  --gray: #64748B;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cloud);
  color: var(--slate);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Sitewide design system (Stitch redesign) ── */
h1, h2, h3, h4, .section-title, .calc-card h1, .content-block h2, .why-card h3, .step-v2 h3,
.calc-section-header h2, .feature-card h3, .step-card h3, .tool-card h3 {
  font-family: 'Public Sans', 'Inter', -apple-system, sans-serif;
}
.oxygen-shadow { box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.06); }
.oxygen-shadow-hover:hover { box-shadow: 0 10px 24px rgba(0,107,95,.12); transform: translateY(-2px); }
/* Mobile nav dropdown shared by every page (site.js / inline scripts toggle .open) */
.main-nav-v3 { display: none; }
@media (max-width: 767px) {
  .main-nav-v3 { position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px 20px; flex-direction: column; gap: 4px;
    box-shadow: 0 12px 32px rgba(0,0,0,.08); }
  .main-nav-v3.open { display: flex; }
}

/* Header */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; color: var(--slate); letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(15,118,110,.28); overflow: hidden; flex-shrink: 0;
}
.logo .mark svg { width: 36px; height: 36px; display: block; }
.logo em { font-style: normal; color: var(--teal); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: var(--gray); font-weight: 600; font-size: 0.92rem; padding: 8px 14px; border-radius: 8px; transition: background .15s, color .15s; }
.main-nav a:hover { color: var(--teal-dark); text-decoration: none; background: #EEF6F5; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  text-align: center; padding: 64px 20px 48px;
  background: radial-gradient(ellipse 900px 420px at 50% -10%, #E1F5EE 0%, transparent 70%), var(--cloud);
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px; background: #E1F5EE; color: var(--teal-dark);
  font-size: 0.78rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: .04em;
}
.hero h1 { font-size: 2.75rem; line-height: 1.18; margin-bottom: 14px; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 span { color: var(--teal); }
.hero p { color: var(--gray); font-size: 1.15rem; max-width: 580px; margin: 0 auto; }
.hero .hero-actions {
  margin: 30px auto 0;
  max-width: 520px;
}
.hero .cat-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .cat-pills a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--dark);
  text-decoration: none;
  transition: all .15s;
}
.hero .cat-pills a:hover {
  border-color: var(--teal);
  background: rgba(5,150,105,.04);
  color: var(--teal-dark);
}
.hero .or-divider {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray);
  margin: 16px 0 10px;
  text-align: center;
}
.hero .quick-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .quick-chips a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  transition: all .15s;
}
.hero .quick-chips a:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: rgba(5,150,105,.04);
}
.hero .trust-row { justify-content: center; margin-top: 22px; color: var(--gray); font-weight: 500; }
.hero .trust-row span { color: var(--gray); }

/* Feature grid ("Why BreezyCalc") */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature-card .icon {
  width: 40px; height: 40px; border-radius: 10px; background: #E1F5EE; color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 12px;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.88rem; color: var(--gray); }

/* Steps ("How it works") */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; counter-reset: step; }
.step-card { position: relative; padding-top: 6px; }
.step-card .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px;
}
.step-card h3 { font-size: 1rem; margin-bottom: 6px; }
.step-card p { font-size: 0.88rem; color: var(--gray); }

/* Sections */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 36px 0; }
.section-title { font-size: 1.5rem; margin-bottom: 6px; font-weight: 800; letter-spacing: -0.01em; }
.section-sub { color: var(--gray); margin-bottom: 22px; }

/* Tool grid */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tool-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: block; color: var(--slate); transition: box-shadow .18s, transform .18s, border-color .18s;
  border-top: 3px solid transparent;
}
.tool-card:hover { text-decoration: none; box-shadow: 0 10px 28px rgba(15, 118, 110, .14); transform: translateY(-3px); border-top-color: var(--teal); }
.tool-card.health:hover { border-top-color: #059669; }
.tool-card .icon {
  width: 44px; height: 44px; border-radius: 11px; background: #E1F5EE;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  color: var(--teal); font-size: 1.35rem;
}
.tool-card.health .icon { background: #ECFDF5; color: #059669; }
.tool-card h3 { font-size: 1.05rem; margin-bottom: 4px; font-weight: 700; }
.tool-card p { font-size: 0.88rem; color: var(--gray); }

/* Transparency / info callout */
.callout {
  background: linear-gradient(135deg, #E1F5EE, #F0FBF7); border: 1px solid #BFEAE0; border-radius: var(--radius);
  padding: 26px 28px; margin: 8px 0;
}
.callout h2 { font-size: 1.2rem; margin-bottom: 8px; }
.callout p { color: #0B5952; font-size: 0.94rem; margin-bottom: 0; }

/* Site-level FAQ (homepage) */
.site-faq details.faq { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }

/* Calculator page */
.calc-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 32px 0; }
@media (max-width: 860px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-main { min-width: 0; }
.breadcrumb { font-size: 0.85rem; color: var(--gray); margin-bottom: 14px; }
.calc-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 4px 20px rgba(15,23,42,.04);
}
.calc-card h1 { font-size: 1.9rem; margin-bottom: 6px; font-weight: 800; letter-spacing: -0.01em; }
.calc-card .intro { color: var(--gray); margin-bottom: 22px; font-size: 0.97rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 1rem; background: var(--cloud); outline: none;
}
.field input:focus, .field select:focus { border-color: var(--teal); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.btn-calc {
  width: 100%; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; border: 0; border-radius: 10px;
  padding: 14px; font-size: 1.05rem; font-weight: 700; cursor: pointer; margin-top: 6px;
  box-shadow: 0 4px 14px rgba(15,118,110,.28); transition: transform .12s, box-shadow .12s;
}
.btn-calc:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,118,110,.34); }
.btn-calc:active { transform: translateY(0); }
.result-box {
  margin-top: 22px; background: #E1F5EE; border: 1px solid var(--mint);
  border-radius: var(--radius); padding: 20px; display: none;
}
.result-box.show { display: block; }
.result-box .big { font-size: 2rem; font-weight: 700; color: var(--teal-dark); }
.result-box .label { font-size: 0.85rem; color: #085041; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 14px; }
.result-item { background: #fff; border-radius: 8px; padding: 12px 14px; }
.result-item .k { font-size: 0.8rem; color: var(--gray); }
.result-item .v { font-size: 1.15rem; font-weight: 700; color: var(--slate); }

/* Zodiac sign result cards (Sun/Moon/Rising) */
.sign-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-top: 14px; }
.sign-card { background: #fff; border-radius: 10px; padding: 16px; text-align: center; }
.sign-card .glyph { font-size: 2rem; margin-bottom: 6px; }
.sign-card .role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); font-weight: 700; margin-bottom: 4px; }
.sign-card .name { font-size: 1.2rem; font-weight: 800; color: var(--teal-dark); margin-bottom: 6px; }
.sign-card .blurb { font-size: 0.82rem; color: var(--slate); }

/* Content / FAQ */
.content-block { margin-top: 28px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.content-block h2 { font-size: 1.3rem; margin: 18px 0 8px; }
.content-block h2:first-child { margin-top: 0; }
.content-block h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.content-block p { margin-bottom: 12px; color: #334155; }
.content-block ul { margin: 0 0 12px 20px; color: #334155; }
.content-block li { margin-bottom: 4px; }
details.faq { border-bottom: 1px solid var(--border); padding: 12px 0; }
details.faq summary { font-weight: 600; cursor: pointer; }
details.faq p { margin-top: 8px; color: var(--gray); }

/* Trust / E-E-A-T signals */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 20px;
  font-size: 0.82rem; color: var(--teal-dark); font-weight: 600;
}
.trust-row span { display: flex; align-items: center; gap: 5px; }
.meta-row {
  font-size: 0.8rem; color: var(--gray); margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 4px 16px;
}
.meta-row strong { color: var(--slate); }
.region-note { font-size: 0.82rem; color: var(--gray); margin: 2px 0 16px; }

/* Table of contents */
.toc { background: var(--cloud); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; }
.toc h2 { margin: 0 0 8px !important; font-size: 1rem !important; }
.toc ul { margin: 0 0 0 18px; }
.toc a { font-size: 0.9rem; }

/* Donut chart (pure CSS conic-gradient, no JS libraries) */
.donut-wrap { display: flex; align-items: center; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.donut {
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--teal) 0% var(--p1, 50%), var(--mint) var(--p1, 50%) 100%);
  position: relative;
}
.donut::after {
  content: ''; position: absolute; inset: 12px; background: #fff; border-radius: 50%;
}
.donut-legend { font-size: 0.85rem; }
.donut-legend .row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Range scale (e.g. BMI position indicator) */
.range-scale { margin-top: 18px; }
.range-scale .bar {
  position: relative; height: 14px; border-radius: 7px;
  background: linear-gradient(to right, #60A5FA 0% 14%, #34D399 14% 40%, #FBBF24 40% 60%, #F87171 60% 100%);
}
.range-scale .marker {
  position: absolute; top: -6px; width: 4px; height: 26px; background: var(--slate);
  border-radius: 2px; transform: translateX(-50%); transition: left .2s;
}
.range-scale .labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--gray); margin-top: 6px; }

/* Sidebar */
.sidebar .ad-slot {
  background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius);
  min-height: 250px; display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 0.8rem; margin-bottom: 20px;
}
.sidebar .related { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.sidebar .related h3 { font-size: 1rem; margin-bottom: 12px; }
.sidebar .related a { display: block; padding: 8px 0; border-bottom: 1px solid var(--cloud); font-size: 0.92rem; }
.ad-slot-wide {
  background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius);
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 0.8rem; margin: 24px 0;
}

/* Footer */
.site-footer { background: var(--slate); color: #94A3B8; margin-top: 48px; padding: 40px 0 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-bottom: 24px; }
.footer-cols h4 { color: #fff; font-size: 0.95rem; margin-bottom: 10px; }
.footer-cols a { display: block; color: #94A3B8; font-size: 0.88rem; padding: 3px 0; }
.footer-cols a:hover { color: var(--mint); }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 18px; font-size: 0.82rem; }
/* ── Mobile responsiveness ── */
@media (max-width: 700px) {
  .header-inner { position: relative; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 8px; margin-left: auto; z-index: 51;
  }
  .nav-toggle span {
    display: block; width: 22px; height: 2.5px;
    background: var(--slate); border-radius: 2px;
    transition: transform .25s, opacity .2s;
  }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 2px solid var(--border);
    padding: 8px 20px 16px; flex-direction: column;
    box-shadow: 0 12px 32px rgba(0,0,0,.08); z-index: 50;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 14px; font-size: 1rem; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .hero { padding: 40px 16px 32px; }
  .section { padding: 24px 0; }
  .section-title { font-size: 1.25rem; }
  .calc-card h1 { font-size: 1.4rem; }
  .calc-card { padding: 20px; }
  .calc-layout { padding: 20px 0; }
  .content-block { padding: 20px; }
  .callout { padding: 20px 18px; }
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .hero .cat-pills a { padding: 9px 18px; font-size: .82rem; }
  .hero .quick-chips a { padding: 7px 13px; font-size: .8rem; }
  .result-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero .trust-row { gap: 4px 12px; justify-content: center; font-size: 0.78rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .content-block { padding: 16px; }
  .donut-wrap { justify-content: center; gap: 14px; }
}

/* ── Cookie consent banner ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #1e293b; color: #e2e8f0; padding: 14px 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 0.85rem; line-height: 1.5; flex-wrap: wrap;
  transform: translateY(100%); transition: transform 0.3s ease;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner a { color: #4fdbc8; text-decoration: underline; }
#cookie-banner button {
  background: #006b5f; color: #fff; border: none; border-radius: 6px;
  padding: 8px 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background 0.15s;
}
#cookie-banner button:hover { background: #005048; }
