/* ============================================================
   CF CONTÁBIL – DESIGN SYSTEM
   Paleta: Amarelo (#F5BE00), Azul Escuro (#1E2E7A), Brancos
   Tipografia: Playfair Display (display) + DM Sans (body)
   ============================================================ */

/* --- Design Tokens --- */
:root, [data-theme="light"] {
  /* Fluid type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* 4px spacing system */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.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;

  /* CF Contábil brand palette */
  --cf-yellow:         #F5BE00;
  --cf-yellow-light:   #FFF3C0;
  --cf-yellow-dark:    #C99B00;
  --cf-blue:           #1E2E7A;
  --cf-blue-hover:     #162268;
  --cf-blue-active:    #0E1850;
  --cf-blue-light:     #E8EBF8;

  /* Semantic colors */
  --color-bg:              #FAFAF8;
  --color-surface:         #FFFFFF;
  --color-surface-2:       #F6F5F2;
  --color-surface-offset:  #F0EDE8;
  --color-border:          #E2DED8;
  --color-divider:         #EAE7E2;
  --color-text:            #1A1A2E;
  --color-text-muted:      #6B6878;
  --color-text-faint:      #AEACB8;
  --color-text-inverse:    #FAFAF8;
  --color-primary:         #1E2E7A;
  --color-primary-hover:   #162268;
  --color-primary-active:  #0E1850;
  --color-primary-light:   #E8EBF8;
  --color-accent:          #F5BE00;
  --color-accent-hover:    #C99B00;
  --color-success:         #2E7D32;
  --color-success-light:   #E8F5E9;
  --color-error:           #C62828;
  --color-error-light:     #FFEBEE;

  /* Radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.625rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(30, 46, 122, 0.07), 0 1px 2px rgba(30, 46, 122, 0.05);
  --shadow-md: 0 4px 16px rgba(30, 46, 122, 0.10), 0 2px 6px rgba(30, 46, 122, 0.06);
  --shadow-lg: 0 12px 40px rgba(30, 46, 122, 0.13), 0 4px 12px rgba(30, 46, 122, 0.08);
  --shadow-xl: 0 24px 64px rgba(30, 46, 122, 0.16), 0 8px 20px rgba(30, 46, 122, 0.10);

  /* Transitions */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 320ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;

  /* Fonts */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
}

[data-theme="dark"] {
  --color-bg:              #111118;
  --color-surface:         #18181F;
  --color-surface-2:       #1E1E28;
  --color-surface-offset:  #22222E;
  --color-border:          #2E2E3E;
  --color-divider:         #252530;
  --color-text:            #E8E7EE;
  --color-text-muted:      #9997A8;
  --color-text-faint:      #585768;
  --color-text-inverse:    #111118;
  --color-primary:         #7B90E8;
  --color-primary-hover:   #9aaff0;
  --color-primary-active:  #b8c8f5;
  --color-primary-light:   #1C2040;
  --color-accent:          #F5BE00;
  --color-accent-hover:    #FFD040;
  --cf-yellow-light:       #2A2200;
  --cf-blue-light:         #1A1F40;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.45);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:              #111118;
    --color-surface:         #18181F;
    --color-surface-2:       #1E1E28;
    --color-surface-offset:  #22222E;
    --color-border:          #2E2E3E;
    --color-divider:         #252530;
    --color-text:            #E8E7EE;
    --color-text-muted:      #9997A8;
    --color-text-faint:      #585768;
    --color-text-inverse:    #111118;
    --color-primary:         #7B90E8;
    --color-primary-hover:   #9aaff0;
    --color-primary-active:  #b8c8f5;
    --color-primary-light:   #1C2040;
    --color-accent:          #F5BE00;
    --color-accent-hover:    #FFD040;
    --cf-yellow-light:       #2A2200;
    --cf-blue-light:         #1A1F40;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.45);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.55);
  }
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.2; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }
button { cursor: pointer; background: none; border: none; }

::selection {
  background: rgba(245, 190, 0, 0.25);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a, button, [role="button"], input, textarea, select {
  transition: color var(--transition),
              background var(--transition),
              border-color var(--transition),
              box-shadow var(--transition),
              opacity var(--transition);
}

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

.hidden { display: none !important; }

/* --- Container --- */
.container {
  width: min(var(--content-wide), 100% - var(--space-8));
  margin-inline: auto;
}

/* --- Text accent --- */
.text-accent { color: var(--color-accent); }
em { font-style: italic; color: var(--color-accent); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-ghost:hover { opacity: 0.75; }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary-light);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

[data-theme="dark"] .site-header {
  background: rgba(17, 17, 24, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  gap: var(--space-4);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.logo-accent { color: var(--cf-yellow-dark); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--color-primary); }

.site-nav .nav-cta {
  background: var(--color-accent);
  color: var(--cf-blue);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
}
.site-nav .nav-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--space-4) var(--space-4) var(--space-6);
  gap: var(--space-4);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.mobile-nav a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
}
.mobile-nav .nav-cta {
  background: var(--color-accent);
  color: var(--cf-blue);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
}
.mobile-nav.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFFBE8 0%, #EEF1FA 50%, #F5F7FF 100%);
  padding-block: clamp(var(--space-16), 10vw, var(--space-24)) clamp(var(--space-12), 8vw, var(--space-20));
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1A1500 0%, #11131E 50%, #111118 100%);
}

.hero-bg-shape {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(245, 190, 0, 0.12) 0%, transparent 70%),
              radial-gradient(ellipse 40% 50% at 20% 20%, rgba(30, 46, 122, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-16);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--cf-yellow-light);
  color: var(--cf-blue);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  border: 1px solid rgba(30, 46, 122, 0.15);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
  line-height: 1.15;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 56ch;
}

.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  max-width: none;
}
.hero-bullets li svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.hero-logo-big {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  object-fit: cover;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--color-surface);
}

.hero-card-float {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  width: 220px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}
.hero-stat:last-child { border-bottom: none; padding-bottom: 0; }

.hero-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero-scroll-cue {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
  color: var(--color-text-faint);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   SECTIONS (common)
   ============================================================ */
.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

.section:nth-child(even) {
  background: var(--color-surface-2);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-header-left { text-align: left; }
.section-header-left h2 { margin-bottom: var(--space-4); }

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 58ch;
  margin-inline: auto;
}

.section-cta {
  text-align: center;
  margin-top: var(--space-10);
}

/* ============================================================
   COMO FUNCIONA — STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.2;
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  line-height: 1;
  user-select: none;
}

.step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cf-blue-light);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.step-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.step-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* ============================================================
   TIPO DE EMPRESA
   ============================================================ */
.tipo-empresa { background: var(--color-bg); }

.tipo-selector {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.tipo-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-8);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  font-weight: 600;
  min-width: 200px;
  cursor: pointer;
  transition: all var(--transition);
}
.tipo-btn svg { color: var(--color-text-faint); transition: color var(--transition); }
.tipo-btn-sub {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-faint);
}

.tipo-btn:hover, .tipo-btn.active {
  border-color: var(--color-primary);
  background: var(--cf-blue-light);
  color: var(--color-primary);
}
.tipo-btn:hover svg, .tipo-btn.active svg { color: var(--color-primary); }
.tipo-btn.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.tipo-btn.active svg { color: var(--cf-yellow); }
.tipo-btn.active .tipo-btn-sub { color: rgba(255,255,255,0.7); }

.tipo-panel { display: none; }
.tipo-panel.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Cards grid */
.cards-grid { display: grid; gap: var(--space-6); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-1 { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }

.company-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.company-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.company-card.card-highlight {
  border-color: var(--color-primary);
  background: var(--cf-blue-light);
}
[data-theme="dark"] .company-card.card-highlight {
  background: var(--color-primary-light);
}

.company-card-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.badge-yellow { background: var(--cf-yellow-light); color: var(--cf-blue); }
.badge-blue   { background: var(--cf-blue-light); color: var(--color-primary); }
.badge-green  { background: var(--color-success-light); color: var(--color-success); }

.company-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.company-card p { font-size: var(--text-base); color: var(--color-text-muted); margin-bottom: var(--space-5); }

.card-pros { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.card-pros li { font-size: var(--text-sm); color: var(--color-text-muted); padding-left: var(--space-5); position: relative; max-width: none; }
.card-pros li::before { content: "✓"; position: absolute; left: 0; color: var(--color-primary); font-weight: 700; }

.card-pros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-6); }

.card-recommended {
  position: absolute;
  top: calc(-1 * var(--space-4));
  right: var(--space-6);
  background: var(--color-accent);
  color: var(--cf-blue);
  font-size: var(--text-xs);
  font-weight: 800;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.company-card-wide { max-width: 100%; }

.incerto-intro {
  background: var(--cf-yellow-light);
  border: 1px solid rgba(245, 190, 0, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
  font-size: var(--text-base);
  color: var(--cf-blue);
  font-weight: 500;
}
[data-theme="dark"] .incerto-intro { color: var(--color-text); }

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.comparison-table th, .comparison-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--color-divider);
}
.comparison-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comparison-table thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:nth-child(even) { background: var(--color-surface-2); }
.comparison-table tbody tr:hover { background: var(--cf-blue-light); }
.comparison-table td strong { color: var(--color-primary); font-weight: 700; }

.panel-cta { text-align: center; margin-top: var(--space-8); }

/* ============================================================
   REGIME TRIBUTÁRIO
   ============================================================ */
.regime { background: var(--color-surface-2); }

.regime-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  position: relative;
  transition: all var(--transition);
}
.regime-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.regime-card.card-highlight { border-color: var(--color-primary); }

.regime-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.regime-icon-green { background: var(--color-success-light); color: var(--color-success); }
.regime-icon-blue  { background: var(--cf-blue-light); color: var(--color-primary); }
.regime-icon-yellow{ background: var(--cf-yellow-light); color: var(--cf-yellow-dark); }
.regime-icon-gray  { background: var(--color-surface-2); color: var(--color-text-muted); }

.regime-badge {
  display: inline-block;
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: var(--color-accent);
  color: var(--cf-blue);
  font-size: var(--text-xs);
  font-weight: 800;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.regime-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.regime-card p { font-size: var(--text-base); color: var(--color-text-muted); margin-bottom: var(--space-4); }

.regime-limit {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-faint);
  background: var(--color-surface-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  display: inline-block;
}

/* ============================================================
   CONFIANÇA
   ============================================================ */
.confianca { background: var(--color-bg); }

.confianca-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.beneficios-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.beneficios-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  max-width: none;
}

.beneficio-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  color: white;
}

.crc-badge {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--cf-blue-light);
  border: 1px solid rgba(30, 46, 122, 0.2);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
}
.crc-badge div { display: flex; flex-direction: column; gap: var(--space-1); }
.crc-badge strong { font-size: var(--text-sm); font-weight: 700; }
.crc-badge span { font-size: var(--text-xs); color: var(--color-text-muted); }

.testimonials-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  display: flex;
  gap: var(--space-1);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.testimonial-card blockquote {
  font-size: var(--text-base);
  color: var(--color-text);
  font-style: italic;
  margin-bottom: var(--space-3);
  max-width: none;
  line-height: 1.6;
}

.testimonial-card cite {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: normal;
  font-weight: 600;
}

/* ============================================================
   FORMS (simulação + completo)
   ============================================================ */
.simulacao { background: var(--color-primary); }
.simulacao .section-header h2,
.simulacao .text-accent { color: #fff; }
.simulacao .text-accent { color: var(--color-accent); }

.contratar { background: var(--color-surface-2); }

.form-wrapper {
  max-width: 860px;
  margin-inline: auto;
}

.form-intro {
  margin-bottom: var(--space-10);
}

.form-intro h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}
.contratar .form-intro h2 { color: var(--color-primary); }

.form-subtitle {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  max-width: 60ch;
}
.contratar .form-subtitle { color: var(--color-text-muted); }

.viabilidade-info {
  display: flex;
  gap: var(--space-4);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-6);
}
.viabilidade-info .viabilidade-icon { flex-shrink: 0; color: var(--color-accent); margin-top: 2px; }
.viabilidade-info strong { display: block; font-size: var(--text-sm); color: #fff; font-weight: 700; margin-bottom: var(--space-2); }
.viabilidade-info p { font-size: var(--text-sm); color: rgba(255,255,255,0.7); max-width: none; }

/* Form surface */
.sim-form, #form-contratar {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-8);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-row .form-group { margin-bottom: 0; }

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.required { color: var(--color-error); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 48px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 46, 122, 0.1);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: var(--color-error); }

.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.field-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  font-weight: 600;
  min-height: 1.2em;
}

.field-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: none;
}

/* File upload */
.file-upload-wrapper { position: relative; }
.file-upload-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  min-height: auto;
}
.file-upload-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition);
}
.file-upload-label:hover {
  border-color: var(--color-primary);
  background: var(--cf-blue-light);
  color: var(--color-primary);
}

/* Address grid */
.address-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--space-3);
}
.address-grid input { margin-bottom: 0; }

/* Form submit */
.form-submit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
}

.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  max-width: none;
}

/* Progress bar */
.progress-bar-wrapper {
  margin-bottom: var(--space-8);
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-4);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-width: 120px;
}

.progress-step-dot {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  transition: all var(--transition);
}

.progress-step.active .progress-step-dot {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 0 0 4px var(--cf-blue-light);
}

.progress-step.completed .progress-step-dot {
  background: var(--color-success);
  color: white;
}

.progress-step span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
}
.progress-step.active span { color: var(--color-primary); font-weight: 700; }

.progress-step-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  margin-top: calc(-1 * var(--space-5));
  min-width: var(--space-8);
}

.progress-bar {
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.progress-label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  max-width: none;
}

/* Fieldsets */
.form-step { border: none; }
.form-step.active { display: block; animation: fadeIn 0.3s ease; }
.form-step.hidden { display: none; }

.step-legend {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  width: 100%;
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-divider);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
  gap: var(--space-4);
}

.step-actions-final { flex-wrap: wrap; }

.final-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Review section */
.review-section {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.review-block {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}
.review-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.review-block h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.review-block p, .review-block pre {
  font-size: var(--text-sm);
  color: var(--color-text);
  white-space: pre-wrap;
  font-family: inherit;
  max-width: none;
}

.review-bullets {
  background: var(--cf-blue-light);
  border: 1px solid rgba(30,46,122,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.review-bullets h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.review-bullets ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.review-bullets li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  max-width: none;
}
.review-bullets li svg { color: var(--color-primary); flex-shrink: 0; }

.form-success {
  text-align: center;
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.form-success svg { color: var(--color-success); }
.form-success h3 { font-size: var(--text-xl); font-weight: 800; color: var(--color-primary); }
.form-success p { color: var(--color-text-muted); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  animation: fadeOverlay 0.2s ease;
}
.modal-overlay[hidden] { display: none; }

@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--color-surface-offset); color: var(--color-text); }

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.modal-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary);
}
.modal-header p { font-size: var(--text-sm); color: var(--color-text-muted); max-width: none; }

.modal-data {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6);
}
.modal-data-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}
.modal-data-row:last-child { border-bottom: none; }
.modal-data-row .label { font-weight: 700; color: var(--color-text-muted); flex-shrink: 0; }
.modal-data-row .value { color: var(--color-text); text-align: right; }

.modal-bullets {
  margin-bottom: var(--space-6);
}
.modal-bullets h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.modal-bullets ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.modal-bullets li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  max-width: none;
}
.modal-bullets li svg { color: var(--color-primary); flex-shrink: 0; }

.modal-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

.modal-success {
  text-align: center;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.modal-success svg { color: var(--color-success); }
.modal-success h3 { font-size: var(--text-lg); font-weight: 800; color: var(--color-primary); }
.modal-success p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--color-bg); }

.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover { border-color: var(--color-primary); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.faq-question:hover { color: var(--color-primary); }
.faq-question[aria-expanded="true"] { color: var(--color-primary); }

.faq-icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--color-primary); }

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  animation: fadeIn 0.2s ease;
}
.faq-answer p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  padding-block: var(--space-16) var(--space-12);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-4);
  max-width: 36ch;
  line-height: 1.7;
}

.footer-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.2);
  margin-bottom: var(--space-2);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background var(--transition);
}
.footer-social a:hover { background: rgba(255,255,255,0.2); }

.footer-links h3, .footer-contact h3, .footer-cta-col h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-5);
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-accent); }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); }
.contact-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  max-width: none;
}
.contact-list li svg { flex-shrink: 0; color: var(--color-accent); }
.contact-list a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.contact-list a:hover { color: white; }

.footer-cta-col p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-5);
  max-width: none;
}
.footer-cta-col .btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--cf-blue);
  width: 100%;
  justify-content: center;
}
.footer-cta-col .btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  width: 100%;
  justify-content: center;
}
.footer-cta-col .btn-outline:hover { background: rgba(255,255,255,0.08); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: var(--space-6);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  max-width: none;
}

.pplx-attr {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition);
}
.pplx-attr:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 150;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: var(--radius-full);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* ============================================================
   CHECKBOX LABELS & LGPD
   ============================================================ */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.5;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--color-primary);
  cursor: pointer;
  margin-top: 2px;
  border-radius: var(--radius-sm);
}

.form-lgpd {
  background: var(--cf-blue-light);
  border: 1px solid rgba(30,46,122,0.18);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-2);
}

.form-lgpd .checkbox-label {
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-lgpd .field-error {
  display: block;
  margin-top: var(--space-2);
  padding-left: calc(20px + var(--space-3));
}

/* Number input — remove spinners for cleaner look */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { opacity: 1; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header, .site-footer, .whatsapp-float, .modal-actions, .hero-actions, .step-actions,
  .tipo-selector, .section-cta, .panel-cta, .btn-ghost { display: none !important; }
  .modal-overlay { position: static !important; background: none !important; }
  .modal { box-shadow: none !important; max-height: none !important; overflow: visible !important; }
  body { background: white !important; color: black !important; }
  .hero { background: #f5f5f5 !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .confianca-grid { gap: var(--space-10); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cards-3 { grid-template-columns: 1fr; }
  .confianca-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .address-grid { grid-template-columns: 1fr; }
  .final-actions { width: 100%; justify-content: stretch; }
  .final-actions .btn { flex: 1; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .tipo-btn { min-width: 0; flex: 1; padding: var(--space-4); }
}

@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .sim-form, #form-contratar { padding: var(--space-6) var(--space-5); }
  .modal { padding: var(--space-6) var(--space-5); }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; justify-content: center; }
  .tipo-selector { flex-direction: column; }
  .tipo-btn { width: 100%; flex-direction: row; justify-content: flex-start; gap: var(--space-3); }
  .tipo-btn-sub { display: none; }
  .progress-steps { gap: 0; }
  .progress-step span { display: none; }
  .progress-step-dot { width: 32px; height: 32px; font-size: var(--text-xs); }
  .step-actions { flex-direction: column; }
  .step-actions .btn { width: 100%; justify-content: center; }
  .comparison-table { font-size: var(--text-xs); }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

/* Desktop email hint — visible only on desktop, hidden on mobile */
.desktop-email-hint {
  display: none;
  font-size: var(--text-sm);
  color: var(--color-muted, #6b7280);
  text-align: center;
  margin-bottom: var(--space-4);
}
.desktop-email-hint a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.desktop-email-hint a:hover {
  text-decoration: underline;
}
@media (min-width: 768px) {
  .desktop-email-hint {
    display: block;
  }
}
