/* ==========================================================================
   ZELO SAÚDE — critical.css
   Tokens, reset, header, hero (above-the-fold)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Light theme (default) */
  --bg: #f7f5f0;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-alt: #efebe3;
  --ink: #101b1d;
  --ink-soft: #4a5d5e;
  --ink-faint: #7e8e8f;

  --primary: #0b5d62;
  --primary-dark: #08474b;
  --primary-soft: #e3f1ef;
  --accent: #f2664a;
  --accent-dark: #d6503a;
  --seaglass: #6fbfb5;
  --success: #2f9e6e;

  --border: #e2dfd5;
  --border-strong: #cbc6b8;
  --shadow-color: 16 27 29;
  --focus-ring: #0b5d62;

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

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1180px;
  --header-h: 76px;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0d1516;
  --bg-alt: #101a1c;
  --surface: #142023;
  --surface-alt: #1a2629;
  --ink: #f1f3f1;
  --ink-soft: #b7c3c3;
  --ink-faint: #7c8d8d;

  --primary: #66c9c0;
  --primary-dark: #3ea39c;
  --primary-soft: rgba(102, 201, 192, 0.12);
  --accent: #ff8265;
  --accent-dark: #f2664a;
  --seaglass: #4fa69d;
  --success: #4cc891;

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-color: 0 0 0;
  --focus-ring: #66c9c0;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
:focus-visible {
  outline: 2.5px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -18px rgb(var(--shadow-color) / 0.35);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  img {
    width: 56px;
  }
}
.brand-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  img {
    width: 86px;
  }
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--primary), var(--seaglass));
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 18px;
  height: 18px;
}

.main-nav {
  display: none;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
  position: relative;
}
.main-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.3s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-sun {
  display: none;
}
html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 900px) {
  .main-nav {
    display: block;
  }
  .menu-toggle {
    display: none;
  }
  .header-actions a[data-show-desktop] {
    display: inline-flex !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 64px;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg-pulse {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}
.hero-bg-pulse svg {
  width: 100%;
  height: 100%;
}
.hero-bg-pulse path {
  stroke: var(--primary);
  stroke-width: 1.4;
  fill: none;
  opacity: 0.28;
}
html[data-theme="dark"] .hero-bg-pulse path {
  opacity: 0.35;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 14ch;
}
.hero-title em {
  font-style: normal;
  color: var(--primary);
  font-variation-settings: "opsz" 40;
}

.hero-subtitle {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-trust {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 32px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
  i {
    font-size: 1.5rem;
    color: var(--primary);
  }
}
.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

@media (min-width: 980px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }
}
