/* ============================================================
   Real Hey I — Design System v2 (2026 rebuild)
   Palette: brand teal/forest/sage/gold retained.
   Type: Zilla Slab (display) + Karla (body) + mono for sensor data.
   ============================================================ */

:root {
  --teal: #2A7B6F;
  --forest: #1E4D44;
  --forest-deep: #143630;
  --sage: #B7D1C5;
  --sage-light: #E3EEE8;
  --earth: #9B7E57;
  --paper: #F6F5F0;
  --charcoal: #2E2E2C;
  --gold: #D8B75C;
  --alert: #C66B4E;
  --white: #FFFFFF;

  --font-display: 'Zilla Slab', 'Georgia', serif;
  --font-body: 'Karla', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 6px 24px rgba(20, 54, 48, 0.12);
  --shadow-sm: 0 2px 8px rgba(20, 54, 48, 0.10);
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--paper);
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
h1 { color: var(--forest); }
h2 { color: var(--teal); }
h3, h4 { color: var(--forest); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-weight: 600; }

a { color: var(--teal); }
img { max-width: 100%; height: auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.6rem;
}

/* ---------- Header ---------- */
header.site {
  background: var(--teal);
  position: sticky; top: 0; z-index: 900;
  box-shadow: var(--shadow-sm);
}
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; color: var(--white); text-decoration: none; }
.logo img { height: 44px; width: auto; background: var(--white); border-radius: 50%; padding: 2px; }
.logo span { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em; }

nav.primary { display: flex; gap: 1.4rem; align-items: center; }
nav.primary a { color: var(--sage-light); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
nav.primary a:hover, nav.primary a.active { color: var(--gold); }
nav.primary a.nav-buy {
  background: var(--gold); color: var(--forest-deep);
  padding: 0.5rem 1.1rem; border-radius: 999px;
}
nav.primary a.nav-buy:hover { background: #E5C566; color: var(--forest-deep); }

.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 0.6rem; }
.hamburger span { display: block; width: 24px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 2px; }

.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--forest); padding: 0.5rem 0 1rem;
}
.mobile-menu a { color: var(--sage-light); text-decoration: none; padding: 0.8rem 24px; font-weight: 600; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu.open { display: flex; }

@media (max-width: 860px) {
  nav.primary { display: none; }
  .hamburger { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, rgba(30, 77, 68, 0.92) 0%, rgba(42, 123, 111, 0.92) 100%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 1.2rem; color: var(--sage-light); max-width: 34rem; margin-bottom: 1.8rem; }
.hero .eyebrow { color: var(--gold); }

.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 0.9rem; color: var(--sage); margin-top: 0.9rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-weight: 700; text-decoration: none; border-radius: 999px;
  padding: 0.85rem 1.7rem; font-size: 1rem; border: 0; cursor: pointer; font-family: var(--font-body); }
.btn-gold { background: var(--gold); color: var(--forest-deep); }
.btn-gold:hover { background: #E5C566; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--sage); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--forest); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Live tank widget (signature) ---------- */
.tank-widget {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(183,209,197,0.35);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  backdrop-filter: blur(4px);
}
.tank-widget .tw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; }
.tank-widget .tw-title { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--sage); text-transform: uppercase; }
.tw-live { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); }
.tw-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.25} }

.tw-body { display: flex; gap: 1.4rem; align-items: stretch; }
.tank-svg { flex: 0 0 130px; }
.tw-readout { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.55rem; font-family: var(--font-mono); font-size: 0.92rem; color: var(--sage-light); }
.tw-readout .val { color: var(--white); font-size: 1.5rem; font-weight: 600; }
.tw-alert {
  margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.8rem;
  background: rgba(198,107,78,0.18); border: 1px solid var(--alert);
  color: #F3C6B5; border-radius: 8px; padding: 0.55rem 0.8rem;
}

/* ---------- Sections ---------- */
section.band { padding: 4rem 0; }
section.band.white { background: var(--white); }
section.band.sage { background: var(--sage); }
section.band.forest { background: linear-gradient(135deg, rgba(30,77,68,0.95), rgba(42,123,111,0.95)); color: var(--sage-light); }
section.band.forest h2 { color: var(--white); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.6rem; }
.card .step-num {
  font-family: var(--font-mono); color: var(--charcoal); background: var(--gold);
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; margin-bottom: 1rem;
}

/* ---------- Product buy card ---------- */
.product-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .product-panel { grid-template-columns: 1fr; } }

.spec-list { list-style: none; margin: 1.2rem 0; }
.spec-list li { padding: 0.55rem 0 0.55rem 2rem; position: relative; border-bottom: 1px dashed var(--sage); }
.spec-list li::before { content: "✓"; position: absolute; left: 0.3rem; color: var(--teal); font-weight: 700; }

.buy-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 2rem;
  border-top: 6px solid var(--gold);
  position: sticky; top: 90px;
}
.price-row { display: flex; align-items: baseline; gap: 0.7rem; margin: 0.6rem 0 0.2rem; }
.price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--forest); }
.price-note { font-size: 0.88rem; color: var(--earth); }

.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--sage);
  border-radius: 8px; font-family: var(--font-body); font-size: 1rem; background: var(--paper);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--teal); border-color: var(--teal); background: var(--white);
}
.field-hint { font-size: 0.82rem; color: var(--earth); margin-top: 0.25rem; }

.addon-box {
  border: 1.5px solid var(--sage); border-radius: var(--radius);
  padding: 1rem; margin: 1rem 0; display: flex; gap: 0.8rem; align-items: flex-start;
  background: var(--sage-light);
}
.addon-box input[type="checkbox"] { width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--teal); }

.consent-row { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; margin: 0.9rem 0; }
.consent-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--teal); }

.order-summary { background: var(--paper); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; font-family: var(--font-mono); font-size: 0.92rem; }
.order-summary .row { display: flex; justify-content: space-between; padding: 0.3rem 0; }
.order-summary .total { border-top: 2px solid var(--forest); font-weight: 700; margin-top: 0.4rem; padding-top: 0.6rem; }

.trust-strip { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; align-items: center; font-size: 0.92rem; color: var(--forest); font-weight: 600; }
.trust-strip span { display: inline-flex; gap: 0.5rem; align-items: center; }

/* ---------- FAQ ---------- */
details.faq { background: var(--white); border-radius: var(--radius); margin-bottom: 0.8rem; box-shadow: var(--shadow-sm); }
details.faq summary { cursor: pointer; font-weight: 700; padding: 1.1rem 1.4rem; font-family: var(--font-display); font-size: 1.05rem; color: var(--forest); list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--teal); font-size: 1.3rem; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 1.4rem 1.2rem; }

/* ---------- Footer ---------- */
footer.site { background: var(--forest); color: var(--sage); padding: 3rem 0 1.5rem; }
footer.site h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.8rem; }
footer.site a { color: var(--sage); text-decoration: none; }
footer.site a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom { border-top: 1px solid rgba(183,209,197,0.25); padding-top: 1.2rem; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- Cookie banner (POPIA) ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--forest); color: var(--sage-light);
  padding: 1.2rem 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-inner { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.cookie-inner p { flex: 1; min-width: 260px; font-size: 0.92rem; }
.cookie-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--sage-light); border: 1.5px solid var(--sage); }

.cookie-modal { position: fixed; inset: 0; z-index: 1100; background: rgba(20,54,48,0.75); display: none; align-items: center; justify-content: center; padding: 1rem; }
.cookie-modal.visible { display: flex; }
.cookie-modal-card { background: var(--white); border-radius: var(--radius-lg); max-width: 560px; width: 100%; padding: 2rem; max-height: 88vh; overflow-y: auto; }
.cookie-cat { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--sage-light); }
.cookie-cat h4 { font-family: var(--font-body); font-size: 1rem; }
.cookie-cat p { font-size: 0.85rem; color: #5a5a56; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #ccc; border-radius: 999px; cursor: pointer; transition: 0.2s; }
.switch .slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: var(--white); border-radius: 50%; transition: 0.2s; }
.switch input:checked + .slider { background: var(--teal); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { background: var(--forest); opacity: 0.5; cursor: not-allowed; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.badge { display: inline-block; background: var(--gold); color: var(--forest-deep); font-weight: 700; font-size: 0.78rem; border-radius: 999px; padding: 0.25rem 0.8rem; letter-spacing: 0.04em; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: var(--gold); color: var(--forest-deep); padding: 0.6rem 1rem; z-index: 2000; border-radius: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
