:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #0d0f12;
  --muted: #5a6472;
  --accent: #0b3d2e;
  --accent-2: #145c47;
  --surface: #f4f6f8;
  --border: #e2e8f0;
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --radius: 12px;
  --radius-sm: 8px;
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --container: min(1120px, 92vw);
  --shadow-1: 0 1px 2px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-2: 0 2px 6px rgba(0,0,0,0.08), 0 10px 24px rgba(0,0,0,0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --fg: #eef2f7;
    --muted: #a7b0bd;
    --accent: #88d4be;
    --accent-2: #6bbca5;
    --surface: #12161c;
    --border: #232a33;
    --shadow-1: 0 1px 2px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
    --shadow-2: 0 2px 6px rgba(0,0,0,0.5), 0 10px 24px rgba(0,0,0,0.4);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: var(--container); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: clamp(2rem, 6vw, 4rem) 0; }
.section-alt { background: var(--surface); }
.section-accent { background: linear-gradient(180deg, var(--surface), transparent); }

/* Header and nav */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.2) blur(6px);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--gap);
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: inherit; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text small { color: var(--muted); font-size: 0.8rem; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1rem; align-items: center;
}
.site-nav a { padding: 0.5rem 0.25rem; border-radius: 8px; }
.site-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--fg);
  padding: 0.5rem 0.75rem;
}

/* Hero */
.hero {
  background:
    radial-gradient(80% 50% at 10% -10%, color-mix(in oklab, var(--accent) 15%, transparent), transparent),
    radial-gradient(60% 40% at 90% -20%, color-mix(in oklab, var(--accent-2) 15%, transparent), transparent);
}
.hero-inner { padding-block: clamp(3rem, 8vw, 6rem); }
.hero-copy h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 0.75rem 0; }
.hero-copy p { color: var(--muted); margin: 0 0 1rem 0; }
.hero-cta { display: flex; gap: 0.75rem; margin-top: 0.5rem; flex-wrap: wrap; }

.hero-badges {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; padding: 0;
  list-style: none;
}
.hero-badges li {
  border: 1px solid var(--border);
  padding: 0.35rem 0.6rem; border-radius: 999px; color: var(--muted);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
}

/* Grid utilities */
.grid { display: grid; gap: clamp(1rem, 3vw, 1.5rem); }
.two-col { grid-template-columns: 1.2fr 1fr; }
.three-col { grid-template-columns: repeat(3, 1fr); }

/* Mobile menu vertical when open */
@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .site-nav { display: none; }
  .nav-toggle { display: inline-block; }

  #site-nav.is-open { display: block; }
  #site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }
  #site-nav a {
    display: block;
    width: 100%;
    padding: 0.75rem 0.5rem;
  }

  .two-col, .three-col { grid-template-columns: 1fr; }
}

/* Cards and content */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: clamp(1rem, 2.5vw, 1.25rem);
}
.cards .card h3 { margin-top: 0; }

.key-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.stat { text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.stat-value { font-size: 2rem; font-weight: 700; }
.stat-label { color: var(--muted); }

.bullets { display: grid; gap: 0.5rem; padding: 0; list-style: none; }
.bullets li { padding-left: 1.25rem; position: relative; }
.bullets li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }

/* Forms */
.field { display: grid; gap: 0.35rem; margin-bottom: 0.85rem; }
label { font-weight: 600; }
input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  background: var(--bg);
  color: var(--fg);
}
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.error { color: #b42318; min-height: 1.2em; }
.form-note { color: var(--muted); font-size: 0.9rem; }
.form-success {
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--accent) 15%, transparent);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--border);
  padding: 0.6rem 1rem; font-weight: 600;
  background: var(--bg); color: var(--fg);
  box-shadow: var(--shadow-1);
}
.btn-primary { background: var(--accent); color: #fff; border: 1px solid transparent; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--fg); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap);
  padding: 1rem 0;
}
.footer-inner ul { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; width: auto; height: auto;
  background: var(--bg); color: var(--fg); padding: 0.5rem 0.75rem; border-radius: 8px; z-index: 100;
}

/* Reveal on scroll */
.reveal-on-scroll { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal-on-scroll.in-view { opacity: 1; transform: translateY(0); }

/* Floating WhatsApp FAB (SVG background, crisp at any size) */
.whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  width: 56px;
  height: 56px;
  border-radius: 50%;

  /* SVG path relative to this CSS file's folder */
  background-image: url("../icons/whatsapp.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;       /* adjust 55–70% to taste */

  /* Circle surface and elevation */
  background-color: #25D366;  /* WhatsApp green base */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 10px 24px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);

  /* Robustness: make sure nothing distorts it */
  text-decoration: none !important;
  transform: none !important;
  filter: none !important;
}

.whatsapp-fab:hover { filter: brightness(0.96); }


/* Disclaimer modal (match site tokens) */
#disclaimer-modal {
  position: fixed; inset: 0;
  background: color-mix(in oklab, var(--fg) 15%, transparent);
  display: none; /* toggled to flex via JS */
  justify-content: center; align-items: center;
  padding: clamp(0.75rem, 2vw, 1rem);
  z-index: 1000;
}
.disclaimer-container {
  width: min(640px, 94vw);
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: clamp(1rem, 3vw, 1.25rem);
}
.disclaimer-container h3 {
  margin: 0 0 0.5rem 0;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}
.disclaimer-content p { margin: 0.25rem 0; color: var(--muted); }
.disclaimer-content ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.disclaimer-content li { margin: 0.35rem 0; }
.buttons-container {
  display: flex; gap: 0.5rem; justify-content: flex-end;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem; padding-top: 0.75rem;
}

/* Utility */
.body-locked { overflow: hidden; }
.hidden { display: none !important; }

/* Defensive: if any legacy back-to-top remains, hide it */
.back-to-top { display: none !important; }
