/* ==========================================================================
   PAOLA PROLA — NUTRIÇÃO & PERSONAL TRAINING
   Clean, modern, high-performance styling system
   Day & Night Mode (Modo Dia / Modo Noite)
   Anti-slop discipline · Zero-pill typography · 60-30-10 palette
   ========================================================================== */

/* Fontes carregadas via <link> + preconnect no <head> de cada página (evita @import bloqueante) */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* DEFAULT: Modo Noite (Dark Theme) */
  --color-bg: #0c0e12;
  --color-bg-subtle: #12151b;
  --color-surface: #181b22;
  --color-surface-hover: #20242d;
  --color-surface-border: rgba(255, 255, 255, 0.08);
  --color-surface-border-strong: rgba(255, 255, 255, 0.16);

  --color-text-primary: #f4f4f6;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;

  --color-accent: #d4a359;
  --color-accent-hover: #e0b36c;
  --color-accent-subtle: rgba(212, 163, 89, 0.12);
  --color-accent-border: rgba(212, 163, 89, 0.3);

  --color-emerald: #10b981;
  --color-emerald-subtle: rgba(16, 185, 129, 0.12);

  --header-bg: rgba(12, 14, 18, 0.85);
  --footer-bg: #090b0e;
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --modal-bg: #181b22;
  --input-bg: #0c0e12;
  --input-text: #ffffff;
  --cta-box-bg: linear-gradient(135deg, #181b22 0%, #12151b 100%);
  --caption-bg: rgba(18, 21, 27, 0.88);

  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* MODO DIA / LIGHT THEME (Automatic via device or data-theme="light") */
@media (prefers-color-scheme: light) {
  :root {
    --color-bg: #faf9f6;
    --color-bg-subtle: #f2efe9;
    --color-surface: #ffffff;
    --color-surface-hover: #f7f5f0;
    --color-surface-border: rgba(0, 0, 0, 0.08);
    --color-surface-border-strong: rgba(0, 0, 0, 0.16);

    --color-text-primary: #18181b;
    --color-text-secondary: #52525b;
    --color-text-muted: #71717a;

    --color-accent: #b58334;
    --color-accent-hover: #9c6e26;
    --color-accent-subtle: rgba(181, 131, 52, 0.12);
    --color-accent-border: rgba(181, 131, 52, 0.35);

    --color-emerald: #059669;
    --color-emerald-subtle: rgba(5, 150, 105, 0.12);

    --header-bg: rgba(250, 249, 246, 0.92);
    --footer-bg: #ede9e1;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --modal-bg: #ffffff;
    --input-bg: #ffffff;
    --input-text: #18181b;
    --cta-box-bg: linear-gradient(135deg, #ffffff 0%, #f4f2ee 100%);
    --caption-bg: rgba(255, 255, 255, 0.92);
  }

  .btn-primary {
    color: #ffffff !important;
  }
}

/* Explicit Light Theme binding */
[data-theme="light"] {
  --color-bg: #faf9f6;
  --color-bg-subtle: #f2efe9;
  --color-surface: #ffffff;
  --color-surface-hover: #f7f5f0;
  --color-surface-border: rgba(0, 0, 0, 0.08);
  --color-surface-border-strong: rgba(0, 0, 0, 0.16);

  --color-text-primary: #18181b;
  --color-text-secondary: #52525b;
  --color-text-muted: #71717a;

  --color-accent: #b58334;
  --color-accent-hover: #9c6e26;
  --color-accent-subtle: rgba(181, 131, 52, 0.12);
  --color-accent-border: rgba(181, 131, 52, 0.35);

  --color-emerald: #059669;
  --color-emerald-subtle: rgba(5, 150, 105, 0.12);

  --header-bg: rgba(250, 249, 246, 0.92);
  --footer-bg: #ede9e1;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --modal-bg: #ffffff;
  --input-bg: #ffffff;
  --input-text: #18181b;
  --cta-box-bg: linear-gradient(135deg, #ffffff 0%, #f4f2ee 100%);
  --caption-bg: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .btn-primary {
  color: #ffffff !important;
}

/* Explicit Dark Theme binding */
[data-theme="dark"] {
  --color-bg: #0c0e12;
  --color-bg-subtle: #12151b;
  --color-surface: #181b22;
  --color-surface-hover: #20242d;
  --color-surface-border: rgba(255, 255, 255, 0.08);
  --color-surface-border-strong: rgba(255, 255, 255, 0.16);

  --color-text-primary: #f4f4f6;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;

  --color-accent: #d4a359;
  --color-accent-hover: #e0b36c;
  --color-accent-subtle: rgba(212, 163, 89, 0.12);
  --color-accent-border: rgba(212, 163, 89, 0.3);

  --color-emerald: #10b981;
  --color-emerald-subtle: rgba(16, 185, 129, 0.12);

  --header-bg: rgba(12, 14, 18, 0.85);
  --footer-bg: #090b0e;
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --modal-bg: #181b22;
  --input-bg: #0c0e12;
  --input-text: #ffffff;
  --cta-box-bg: linear-gradient(135deg, #181b22 0%, #12151b 100%);
  --caption-bg: rgba(18, 21, 27, 0.88);
}

[data-theme="dark"] .btn-primary {
  color: #0c0e12;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(ellipse at 20% 0%, var(--color-accent-subtle) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, var(--color-emerald-subtle) 0%, transparent 50%);
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography Hierarchy */
h1, h2, h3, h4, .modal-title {
  color: var(--color-text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.font-serif {
  font-family: var(--font-serif);
}

.text-gold {
  color: var(--color-accent);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-text-primary) 30%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Top Bar Contract (1-line Brand · 4-5 text links · 1 primary action) */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-surface-border);
  transition: background var(--transition-fast), border var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}

.brand-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-picture {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition-fast);
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  text-transform: uppercase;
}

.brand-subtext {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-top: -3px;
}

.nav-zone {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.action-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #0c0e12;
  box-shadow: 0 2px 10px rgba(212, 163, 89, 0.2);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 163, 89, 0.3);
}

[data-theme="light"] .btn-primary {
  color: #ffffff;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #22bf5b;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.btn-outline {
  border: 1px solid var(--color-surface-border-strong);
  color: var(--color-text-primary);
  background: var(--color-surface);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  padding: 8px;
}

/* Hero Section */
.hero {
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.kicker-separator {
  color: var(--color-text-muted);
}

.hero-title {
  font-size: clamp(2.35rem, 4.2vw, 3.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
}

.hero-proof-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-surface-border);
  margin-top: 12px;
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}

.proof-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-surface-border);
  box-shadow: var(--card-shadow);
  background: var(--color-surface);
  aspect-ratio: 4/5;
}

/* <picture> (WebP + fallback) não deve criar caixa própria dentro do frame */
.hero-image-frame picture {
  display: contents;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-frame:hover img {
  transform: scale(1.02);
}

.hero-caption-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 18px 22px;
  background: var(--caption-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero-caption-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.hero-caption-meta {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

/* Section Common */
.section {
  padding: 88px 0;
  position: relative;
}

.section-subtle {
  background-color: var(--color-bg-subtle);
  border-top: 1px solid var(--color-surface-border);
  border-bottom: 1px solid var(--color-surface-border);
}

.section-header {
  margin-bottom: 48px;
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center .kicker {
  justify-content: center;
}

.section-header.text-center .section-description {
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 12px;
}

.section-description {
  font-size: 1.02rem;
  color: var(--color-text-secondary);
  max-width: 620px;
  line-height: 1.6;
}

/* Grid & Cards System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--card-shadow);
}

.card:hover {
  border-color: var(--color-surface-border-strong);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-body {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}

.card-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-surface-border);
}

/* Feature Row List */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

.feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Credentials Bar */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.credential-box {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--card-shadow);
}

.credential-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.credential-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
  box-shadow: var(--card-shadow);
}

.faq-item.open {
  border-color: var(--color-accent-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 28px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 28px 24px 28px;
}

/* Interactive Calculator Box */
.calc-box {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--card-shadow);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.form-input, .form-select {
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--color-surface-border-strong);
  border-radius: var(--radius-sm);
  color: var(--input-text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--color-accent);
}

.calc-results {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
  margin-top: 24px;
}

.calc-metric-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.calc-metric-lbl {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Featured Box */
.featured-cta-box {
  background: var(--cta-box-bg);
  border: 1px solid var(--color-surface-border-strong);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--card-shadow);
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--modal-bg);
  border: 1px solid var(--color-surface-border-strong);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--color-text-muted);
  font-size: 1.4rem;
  padding: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-text-primary);
}

/* Floating WhatsApp Button */
.whatsapp-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
}

.whatsapp-floating:hover {
  background: #22bf5b;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-floating svg {
  width: 22px;
  height: 22px;
}

/* Footer */
.footer {
  margin-top: auto;
  background: var(--footer-bg);
  border-top: 1px solid var(--color-surface-border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--color-surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-surface-border);
}

.mobile-nav-link.active {
  color: var(--color-accent);
}

/* Cookie Consent (LGPD) */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 180;
  width: calc(100% - 48px);
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--modal-bg);
  border: 1px solid var(--color-surface-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  padding: 28px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
}

.cookie-banner.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.cookie-banner .kicker {
  font-size: 0.72rem;
  margin-bottom: 8px;
}

.cookie-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.cookie-text {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.cookie-text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cookie-actions .btn {
  padding: 11px 16px;
}

.cookie-actions .cookie-customize {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px;
}

.cookie-actions .cookie-customize:hover {
  color: var(--color-accent);
}

.cookie-prefs {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cookie-banner.show-prefs .cookie-prefs {
  display: flex;
}

.cookie-banner.show-prefs .cookie-customize {
  display: none;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
}

.cookie-option-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.cookie-option-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* Toggle switch */
.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  margin-top: 2px;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.cookie-switch-track {
  position: absolute;
  inset: 0;
  background: var(--color-surface-border-strong);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.cookie-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast);
}

.cookie-switch input:checked + .cookie-switch-track {
  background: var(--color-accent);
}

.cookie-switch input:checked + .cookie-switch-track::after {
  transform: translateX(18px);
}

.cookie-switch input:disabled {
  cursor: not-allowed;
}

.cookie-switch input:disabled + .cookie-switch-track {
  opacity: 0.55;
}

.cookie-switch input:focus-visible + .cookie-switch-track {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
}

.footer-legal button {
  font-size: inherit;
  color: inherit;
  padding: 0;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--color-accent);
}

.form-consent {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: center;
}

.form-consent a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Política de Privacidade */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  color: var(--color-text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 48px 0 14px;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content strong {
  color: var(--color-text-primary);
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 560px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-surface-border);
  vertical-align: top;
}

.legal-table th {
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
  font-weight: 700;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .header-inner {
    gap: 16px;
  }
  .nav-zone {
    gap: 16px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    height: 70px;
  }
  .header-inner {
    height: 70px;
    gap: 12px;
  }
  .brand-logo-img {
    height: 32px;
    max-width: 175px;
  }
  .action-zone {
    gap: 8px;
  }
  .mobile-toggle {
    display: block;
    padding: 6px;
  }
  .nav-zone, .action-zone .btn-primary {
    display: none;
  }
  .hero {
    padding: 40px 0 60px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .credentials-grid {
    grid-template-columns: 1fr;
  }
  .calc-grid, .calc-results {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .hero-proof-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .whatsapp-floating span {
    display: none;
  }
  .whatsapp-floating {
    padding: 14px;
    border-radius: 50%;
  }
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    max-width: none;
    padding: 22px;
  }
}
