/* =================================================================
   Bahia Tecnologia — Design System
   Source of truth: neo-design-system.md
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Raw palette */
  --color-navy-950: #0A1628;
  --color-navy-900: #0E1E36;
  --color-navy-800: #13294B;
  --color-navy-700: #1B3A66;
  --color-blue-500: #2E8BE6;
  --color-blue-400: #3FA9FF;
  --color-teal-500: #1FB6A8;
  --color-green-500: #25D366;
  --color-green-400: #3DDC84;
  --color-white:    #FFFFFF;
  --color-cream-50: #F5F7FA;
  --color-gray-100: #E6EAF0;
  --color-gray-300: #B8C2D1;
  --color-gray-500: #6B7A90;
  --color-gray-700: #2A3447;
  --color-ink-900:  #0B1320;

  /* Semantic */
  --bg-dark:               var(--color-navy-950);
  --bg-dark-alt:           var(--color-navy-900);
  --bg-light:              var(--color-cream-50);
  --bg-light-alt:          #FFFFFF;
  --surface-elevated-dark: var(--color-navy-800);
  --primary:               var(--color-blue-500);
  --whatsapp:              var(--color-green-500);
  --whatsapp-hover:        var(--color-green-400);
  --text-on-dark:          var(--color-white);
  --text-on-dark-muted:    var(--color-gray-300);
  --text-on-light:         var(--color-ink-900);
  --text-on-light-muted:   var(--color-gray-500);
  --muted:                 var(--color-gray-500);
  --border-dark:           rgba(184,194,209,0.10);
  --border-light:          var(--color-gray-100);
  --focus-ring:            rgba(63,169,255,0.5);
  --danger:                #E5484D;
  --success:               var(--color-green-500);

  /* Gradients */
  --gradient-brand:      linear-gradient(135deg,#2E8BE6 0%,#1FB6A8 55%,#25D366 100%);
  --gradient-brand-soft: linear-gradient(135deg,rgba(46,139,230,.18) 0%,rgba(31,182,168,.14) 55%,rgba(37,211,102,.18) 100%);

  /* Typography */
  --font-display: "Sora","Plus Jakarta Sans",ui-sans-serif,system-ui,sans-serif;
  --font-body:    "Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-mono:    "JetBrains Mono",ui-monospace,Menlo,monospace;

  --text-xs:      0.75rem;
  --text-sm:      0.875rem;
  --text-base:    1rem;
  --text-lg:      1.125rem;
  --text-xl:      1.25rem;
  --text-2xl:     1.5rem;
  --text-3xl:     1.875rem;
  --text-4xl:     2.25rem;
  --text-5xl:     3rem;
  --text-6xl:     3.75rem;
  --text-display: clamp(2.5rem, 4vw + 1rem, 4.5rem);

  /* Layout */
  --container-max:     1200px;
  --container-narrow:  720px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* Spacing */
  --space-1:  .25rem;  --space-2:  .5rem;   --space-3:  .75rem;
  --space-4:  1rem;    --space-5:  1.25rem; --space-6:  1.5rem;
  --space-8:  2rem;    --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(11,19,32,.06);
  --shadow-md:   0 4px 12px rgba(11,19,32,.08);
  --shadow-lg:   0 12px 32px rgba(11,19,32,.12);
  --shadow-dark: 0 12px 32px rgba(0,0,0,.35);
  --shadow-glow: 0 0 60px rgba(31,182,168,.25);

  /* Motion */
  --ease-out:       cubic-bezier(.22,1,.36,1);
  --duration-fast:  150ms;
  --duration-base:  240ms;
  --duration-slow:  400ms;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-on-light);
  background: var(--bg-light);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
}
p { max-width: 65ch; }

/* ── Skip link ───────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: var(--whatsapp);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--duration-fast);
}
.skip-link:focus { top: var(--space-4); }

/* ── Container ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ── Eyebrow ─────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gradient-brand);
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-sm);
  min-height: 44px;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--whatsapp);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover {
  background: rgba(46,139,230,.08);
  border-color: rgba(255,255,255,.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  padding: .875rem 1rem;
}
.btn-ghost:hover { text-decoration: underline; }
.btn-light {
  background: var(--color-white);
  color: var(--color-ink-900);
}
.btn-light:hover { background: var(--color-cream-50); }
.btn-lg { padding: 1rem 2.5rem; font-size: var(--text-base); }

/* ── Navbar ──────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
  transition: background var(--duration-base);
}
.navbar.scrolled {
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-on-dark);
  flex-shrink: 0;
}
.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.navbar__logo-text strong {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-on-dark);
}
.navbar__logo-text span {
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
}
.navbar__nav { display: none; align-items: center; gap: var(--space-2); }
.navbar__nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-on-dark-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--duration-fast);
}
.navbar__nav a:hover,
.navbar__nav a[aria-current="page"] { color: var(--text-on-dark); }
.navbar__actions { display: flex; align-items: center; gap: var(--space-3); }
.navbar__cta { display: none; }

/* Hamburger */
.navbar__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  color: var(--text-on-dark);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast);
}
.navbar__burger:hover { background: rgba(255,255,255,.06); }
.navbar__burger:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.navbar__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-base);
}
.navbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.navbar__mobile {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg-dark);
  padding: var(--space-6) var(--container-padding);
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
  z-index: 99;
}
.navbar__mobile.is-open { display: flex; }
.navbar__mobile a {
  display: block;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-on-dark-muted);
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-lg);
  border-bottom: 1px solid var(--border-dark);
  transition: color var(--duration-fast), background var(--duration-fast);
}
.navbar__mobile a:hover,
.navbar__mobile a[aria-current="page"] {
  color: var(--text-on-dark);
  background: rgba(255,255,255,.04);
}
.navbar__mobile .btn-primary { margin-top: var(--space-4); width: 100%; justify-content: center; }

@media (min-width: 768px) {
  .navbar { height: 72px; }
  .navbar__burger { display: none; }
  .navbar__nav { display: flex; }
  .navbar__cta { display: inline-flex; }
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: var(--color-navy-950);
  color: var(--text-on-dark-muted);
  border-top: 1px solid transparent;
  border-image: var(--gradient-brand) 1;
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
}
.footer__brand p {
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  max-width: 28ch;
  color: var(--text-on-dark-muted);
}
.footer__col h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-on-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--space-4);
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col ul li a {
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  transition: color var(--duration-fast);
}
.footer__col ul li a:hover { color: var(--text-on-dark); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-dark);
  font-size: var(--text-xs);
  color: var(--muted);
}
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--text-on-dark); }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ── Section base ────────────────────────────────────────────────── */
.section {
  padding-block: clamp(4rem, 8vw, 8rem);
}
.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section--dark-alt {
  background: var(--bg-dark-alt);
  color: var(--text-on-dark);
}
.section--light { background: var(--bg-light); color: var(--text-on-light); }
.section--light-alt { background: var(--bg-light-alt); color: var(--text-on-light); }
.section__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head .eyebrow { margin-bottom: var(--space-4); }
.section__head h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}
.section__head p { font-size: var(--text-lg); color: var(--text-on-light-muted); max-width: 55ch; }
.section--dark .section__head p,
.section--dark-alt .section__head p { color: var(--text-on-dark-muted); }

@media (min-width: 1024px) {
  .section__head h2 { font-size: var(--text-4xl); }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: clamp(5rem, 12vw, 10rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(ellipse at center, rgba(46,139,230,.12) 0%, transparent 70%);
  pointer-events: none;
  aria-hidden: true;
}
.hero__eyebrow { margin-bottom: var(--space-6); }
.hero__title {
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: var(--space-6);
}
.hero__title .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__lead {
  font-size: var(--text-lg);
  color: var(--text-on-dark-muted);
  max-width: 50ch;
  margin-bottom: var(--space-10);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.hero__inner {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem); }
}

/* Hero compact (inner pages) */
.hero--compact {
  padding-block: clamp(3rem, 7vw, 6rem);
  text-align: center;
}
.hero--compact .hero__title { font-size: var(--text-5xl); }
.hero--compact .hero__lead { margin-inline: auto; }
.hero--compact .hero__actions { justify-content: center; }

/* ── Stats strip ─────────────────────────────────────────────────── */
.stats-strip {
  background: var(--bg-dark-alt);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding-block: var(--space-8);
}
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8) var(--space-6);
  text-align: center;
}
.stats-strip__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stats-strip__item span {
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
@media (min-width: 768px) {
  .stats-strip__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base);
}
.card--dark {
  background: var(--surface-elevated-dark);
  border: 1px solid rgba(184,194,209,.08);
  box-shadow: var(--shadow-dark);
  color: var(--text-on-dark);
}
.card--light {
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  color: var(--text-on-light);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) {
  .card, .card:hover { transform: none; transition: none; }
}
.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--gradient-brand-soft);
  margin-bottom: var(--space-6);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.card--dark h3 { color: var(--text-on-dark); }
.card--light h3 { color: var(--text-on-light); }
.card p { font-size: var(--text-sm); }
.card--dark p { color: var(--text-on-dark-muted); max-width: none; }
.card--light p { color: var(--text-on-light-muted); max-width: none; }
.card--link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__title { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.card--dark .card__title { color: var(--text-on-dark); }
.card--light .card__title { color: var(--text-on-light); }
.card__body { font-size: var(--text-sm); }
.card--dark .card__body { color: var(--text-on-dark-muted); max-width: none; }
.card--light .card__body { color: var(--text-on-light-muted); max-width: none; }
.card__cta {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-blue-400);
}

/* Card product */
.card-product {
  position: relative;
  overflow: hidden;
}
.card-product::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--duration-base);
}
.card-product:hover::after { opacity: 1; }

/* ── Grid layouts ────────────────────────────────────────────────── */
.grid-2 { display: grid; gap: var(--space-6); }
.grid-3 { display: grid; gap: var(--space-6); }
.grid-4 { display: grid; gap: var(--space-6); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Wave divider ────────────────────────────────────────────────── */
.wave-divider {
  width: 100%;
  height: 64px;
  overflow: hidden;
  line-height: 0;
  display: block;
}
.wave-divider svg { width: 100%; height: 100%; }

/* ── WhatsApp FAB ────────────────────────────────────────────────── */
.fab-wa {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: background var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}
.fab-wa:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,.5);
}
.fab-wa:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.fab-wa svg { width: 28px; height: 28px; fill: currentColor; }

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border-dark);
}
.breadcrumb a { color: var(--text-on-dark-muted); transition: color var(--duration-fast); }
.breadcrumb a:hover { color: var(--text-on-dark); }
.breadcrumb li { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumb li + li::before { content: "/"; opacity: .4; }

/* ── Steps ───────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: var(--space-8); }
.step { display: flex; gap: var(--space-6); align-items: flex-start; }
.step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
}
.step__body h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.step__body p { font-size: var(--text-base); }

/* ── FAQ Accordion ───────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: var(--space-3); }
.faq__item {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.section--light .faq__item { border-color: var(--border-light); }
.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-on-dark);
  background: var(--surface-elevated-dark);
  transition: background var(--duration-fast);
}
.section--light .faq__question {
  color: var(--text-on-light);
  background: var(--bg-light-alt);
}
.faq__question:hover { background: var(--bg-dark-alt); }
.section--light .faq__question:hover { background: var(--color-cream-50); }
.faq__question:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.faq__question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--duration-base) var(--ease-out);
  stroke: currentColor;
  fill: none;
}
.faq__question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq__answer {
  display: none;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  color: var(--text-on-dark-muted);
  background: var(--bg-dark-alt);
  border-top: 1px solid var(--border-dark);
}
.section--light .faq__answer {
  color: var(--text-on-light-muted);
  background: var(--bg-light);
  border-top-color: var(--border-light);
}
.faq__answer.is-open { display: block; }

/* ── Form ────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.form__row { display: flex; flex-direction: column; gap: var(--space-5); }
@media (min-width: 600px) { .form__row { flex-direction: row; } .form__row .form__field { flex: 1; } }
.form__field { display: flex; flex-direction: column; gap: var(--space-2); }
.form__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-on-dark);
}
.section--light .form__label { color: var(--text-on-light); }
.form__label .required { color: var(--danger); margin-left: 2px; }
.form__input,
.form__select,
.form__textarea {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-dark);
  background: var(--surface-elevated-dark);
  color: var(--text-on-dark);
  font-size: var(--text-base);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  min-height: 44px;
}
.section--light .form__input,
.section--light .form__select,
.section--light .form__textarea {
  background: var(--bg-light-alt);
  border-color: var(--border-light);
  color: var(--text-on-light);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.form__textarea { min-height: 140px; resize: vertical; }
.form__select { appearance: none; cursor: pointer; }
.form__hint {
  font-size: var(--text-xs);
  color: var(--muted);
}
.form__error {
  font-size: var(--text-xs);
  color: var(--danger);
  display: none;
}
.form__field.has-error .form__error { display: block; }
.form__field.has-error .form__input,
.form__field.has-error .form__select,
.form__field.has-error .form__textarea { border-color: var(--danger); }
.form__success {
  padding: var(--space-4) var(--space-6);
  background: rgba(37,211,102,.12);
  border: 1px solid rgba(37,211,102,.3);
  border-radius: var(--radius-lg);
  color: var(--color-green-400);
  font-weight: 600;
  text-align: center;
  display: none;
}
.form__success.is-visible { display: block; }
.form__fallback {
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  padding: var(--space-4);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius-md);
  text-align: center;
}
.section--light .form__fallback { color: var(--text-on-light-muted); border-color: var(--border-light); }

/* Checkbox */
.form__checkbox { flex-direction: row; align-items: flex-start; gap: var(--space-3); }
.form__checkbox input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; cursor: pointer; accent-color: var(--whatsapp); }
.form__checkbox label { font-size: var(--text-sm); cursor: pointer; }
.section--light .form__checkbox label { color: var(--text-on-light-muted); }

/* ── CTA Section ─────────────────────────────────────────────────── */
.cta-section {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: clamp(4rem, 8vw, 7rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-brand-soft);
  pointer-events: none;
}
.cta-section .container { position: relative; }
.cta-section h2 { font-size: var(--text-4xl); margin-bottom: var(--space-4); }
.cta-section p { font-size: var(--text-lg); color: var(--text-on-dark-muted); margin-inline: auto; margin-bottom: var(--space-10); }
.cta-section__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }

/* ── Product hero (split layout) ─────────────────────────────────── */
.hero-product {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: clamp(4rem, 9vw, 8rem);
  position: relative;
  overflow: hidden;
}
.hero-product__inner {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-product__inner { grid-template-columns: 3fr 2fr; }
}
.hero-product__title { font-size: var(--text-5xl); margin-bottom: var(--space-5); line-height: 1.1; }
.hero-product__lead { font-size: var(--text-lg); color: var(--text-on-dark-muted); margin-bottom: var(--space-8); max-width: 50ch; }

/* Chat bubble mockup */
.chat-mockup {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface-elevated-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  max-width: 360px;
}
.chat-bubble {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: 1rem;
  font-size: var(--text-sm);
}
.chat-bubble--bot {
  align-self: flex-start;
  background: var(--surface-elevated-dark);
  border: 1px solid var(--border-dark);
  border-bottom-left-radius: .25rem;
  color: var(--text-on-dark);
}
.chat-bubble--user {
  align-self: flex-end;
  background: rgba(37,211,102,.14);
  border: 1px solid rgba(37,211,102,.3);
  border-bottom-right-radius: .25rem;
  color: var(--text-on-dark);
}
.chat-bubble__time { font-size: .65rem; color: var(--muted); margin-top: 4px; display: block; text-align: right; }

/* ── Metrics row ─────────────────────────────────────────────────── */
.metrics { display: grid; gap: var(--space-6); }
.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8);
  background: var(--surface-elevated-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  min-height: 10rem;
}
.metric__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.metric__label { display: block; font-size: var(--text-sm); color: var(--text-on-dark-muted); }

@media (min-width: 768px) {
  .metrics { grid-template-columns: repeat(3, 1fr); }
}

/* ── Contact cards ───────────────────────────────────────────────── */
.contact-methods {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .contact-methods { grid-template-columns: repeat(2, 1fr); }
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.contact-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand-soft);
}
.contact-card__icon svg { width: 28px; height: 28px; stroke: var(--primary); fill: none; }
.contact-card h3 { font-size: var(--text-xl); color: var(--text-on-light); }
.contact-card p { font-size: var(--text-sm); color: var(--text-on-light-muted); max-width: none; }
.contact-card .btn { margin-top: auto; }
.contact-card .btn-secondary {
  color: var(--primary);
  border-color: var(--primary);
}
.contact-card .btn-secondary:hover {
  background: rgba(46,139,230,.08);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Legal page ──────────────────────────────────────────────────── */
.legal-content h2 { font-size: var(--text-2xl); margin-top: var(--space-10); margin-bottom: var(--space-4); color: var(--text-on-light); }
.legal-content h3 { font-size: var(--text-xl); margin-top: var(--space-8); margin-bottom: var(--space-3); color: var(--text-on-light); }
.legal-content p { font-size: var(--text-base); color: var(--text-on-light-muted); margin-bottom: var(--space-4); }
.legal-content ul { padding-left: var(--space-6); margin-bottom: var(--space-4); list-style: disc; }
.legal-content ul li { font-size: var(--text-base); color: var(--text-on-light-muted); margin-bottom: var(--space-2); }
.legal-meta { font-size: var(--text-sm); color: var(--muted); border-top: 1px solid var(--border-light); padding-top: var(--space-6); margin-top: var(--space-12); }

/* ── 404 page ────────────────────────────────────────────────────── */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--space-24);
}
.error-page__code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-4);
}
.error-page h1 { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
.error-page p { font-size: var(--text-lg); color: var(--text-on-dark-muted); margin-bottom: var(--space-10); margin-inline: auto; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }

/* ── Segment cards ───────────────────────────────────────────────── */
.segment-card {
  padding: var(--space-8);
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base);
}
.segment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) {
  .segment-card, .segment-card:hover { transform: none; transition: none; }
}
.segment-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}
.segment-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); color: var(--text-on-light); }
.segment-card p { font-size: var(--text-sm); color: var(--text-on-light-muted); max-width: none; }

/* ── Service card ────────────────────────────────────────────────── */
.service-card {
  padding: var(--space-8);
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light);
  border-left: 3px solid transparent;
  border-image: var(--gradient-brand) 1;
  border-left-style: solid;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.service-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-4); color: var(--text-on-light); }
.service-card p { font-size: var(--text-base); color: var(--text-on-light-muted); margin-bottom: var(--space-4); max-width: none; }
.service-card ul { display: flex; flex-direction: column; gap: var(--space-2); padding-left: var(--space-4); list-style: none; }
.service-card ul li {
  position: relative;
  font-size: var(--text-sm);
  color: var(--text-on-light-muted);
  padding-left: var(--space-5);
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

/* ── Utilities ───────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.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;
}
.mt-auto { margin-top: auto; }
.inline-flex { display: inline-flex; align-items: center; gap: .375rem; }

/* Features list */
.feature-list { display: flex; flex-direction: column; gap: var(--space-3); }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--text-on-dark-muted);
}
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2325D366'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 2px;
}
.section--light .feature-list li { color: var(--text-on-light-muted); }

/* ── Responsive typography ───────────────────────────────────────── */
@media (min-width: 768px) {
  .stats-strip__item strong { font-size: var(--text-4xl); }
}

/* ── Sobre – Origem section ──────────────────────────────────────── */
.section--origin { padding-block: 4rem; }

.origem-heading { font-size: var(--text-3xl); margin-bottom: 1.5rem; }
.origem-text p { margin-bottom: 1.25rem; }
.origem-text p:last-child { margin-bottom: 0; }
.origem-quote { align-self: center; }

.quote-card { position: relative; padding: var(--space-8) var(--space-6) var(--space-6); }
.quote-mark {
  display: block;
  font-size: 5rem;
  line-height: 1;
  color: #1FB6A8;
  margin-bottom: var(--space-2);
  font-family: Georgia, serif;
}
.quote-card p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--text-on-dark);
  max-width: none;
}
.quote-attribution {
  display: block;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 2px solid #1FB6A8;
  font-size: var(--text-sm);
  font-style: normal;
  color: #1FB6A8;
  font-weight: 600;
  letter-spacing: 0.03em;
}

@media (min-width: 1024px) {
  .origem-heading { font-size: var(--text-4xl); }
  .grid-2.origem-grid { grid-template-columns: 3fr 2fr; align-items: center; }
}

/* ── Clínicas demo diagram ──────────────────────────────────────── */
.section--demo {
  background: linear-gradient(135deg, var(--color-navy-950) 0%, var(--color-navy-900) 100%);
}
.section--demo .section__head h2 { color: var(--text-on-dark); }
.section--demo .section__sub { color: var(--text-on-dark-muted); }

.demo-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

/* Phone mockup */
.phone-mockup {
  max-width: 320px;
  width: 100%;
  margin-inline: auto;
  border-radius: 2rem;
  background: #111B29;
  border: 2px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
.phone-mockup__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: #075E54;
  padding: var(--space-3) var(--space-4);
}
.phone-mockup__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-green-500);
  flex-shrink: 0;
  display: block;
}
.phone-mockup__header-info strong {
  display: block;
  font-size: var(--text-sm);
  color: #fff;
  font-weight: 600;
}
.phone-mockup__header-info span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.75);
}
.phone-mockup__body {
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-height: 480px;
  overflow-y: auto;
}

/* Contact label inside chat */
.chat-contact-label {
  font-size: var(--text-xs);
  color: var(--color-teal-500);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: calc(var(--space-1) * -1);
}

/* Chat bubbles */
.chat-bubble {
  max-width: 88%;
  border-radius: 0.75rem;
  padding: var(--space-2) var(--space-3);
  position: relative;
  word-break: break-word;
}
.chat-bubble p {
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: 0;
  max-width: none;
}
.chat-bubble__time {
  display: block;
  font-size: 0.65rem;
  margin-top: var(--space-1);
  text-align: right;
}

/* Bot bubbles */
.chat-bubble--bot {
  background: #1E2D40;
  border-left: 3px solid var(--color-teal-500);
  align-self: flex-start;
  color: #fff;
}
.chat-bubble--bot .chat-bubble__time { color: rgba(255,255,255,0.45); }

/* Patient bubbles */
.chat-bubble--patient {
  background: #DCF8C6;
  align-self: flex-end;
  margin-left: auto;
  color: #111;
}
.chat-bubble--patient .chat-bubble__time { color: rgba(0,0,0,0.45); }

/* Day divider */
.chat-divider {
  text-align: center;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-block: var(--space-2);
}
.chat-divider::before,
.chat-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20%;
  height: 1px;
  background: rgba(255,255,255,0.12);
}
.chat-divider::before { left: 0; }
.chat-divider::after  { right: 0; }

/* Annotation cards */
.demo-annotations {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.annotation-card {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--color-teal-500);
  border-radius: 0.5rem;
  padding: var(--space-4) var(--space-5);
}
.annotation-card__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: var(--space-2);
}
.annotation-card p {
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  margin: 0;
  max-width: none;
}

/* Desktop layout: side by side */
@media (min-width: 768px) {
  .demo-layout {
    grid-template-columns: auto 1fr;
    gap: var(--space-16);
    align-items: start;
  }
}

/* Site logo image */
.site-logo {
  height: 50px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.footer-logo {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: var(--space-3);
}

/* Header text wordmark */
.navbar__wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-on-dark);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.navbar__wordmark strong {
  font-weight: 700;
  color: #F5F7FA;
  -webkit-text-fill-color: #F5F7FA;
}
.navbar__wordmark .wm-accent {
  background: linear-gradient(90deg, #25D366 0%, #2E8BE6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 400;
}
