/* ================================================================
   7Nexus Condomínio — Landing Page Styles
   Tema claro/escuro, responsivo, mobile-first
   ================================================================ */

/* ── 1. Custom Properties (Design Tokens) ─────────────────────── */
:root {
  /* Brand */
  --brand-navy:   #1e3a5f;
  --brand-cyan:   #0891b2;
  --brand-cyan-2: #22d3ee;

  /* Light Theme (default) */
  --bg:           #f4f6fa;
  --bg-2:         #e8ecf3;
  --surface:      #ffffff;
  --surface-2:    #edf1f7;
  --border:       #d8e0ec;
  --text:         #0f172a;
  --text-2:       #2d4163;
  --text-muted:   #5a7090;

  --btn-primary-bg:   var(--brand-navy);
  --btn-primary-text: #ffffff;

  --gradient-hero:   linear-gradient(140deg, #1e3a5f 0%, #0b2d4e 50%, #062040 100%);
  --gradient-accent: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
  --gradient-card:   linear-gradient(135deg, #1e3a5f 0%, #0891b2 100%);

  --shadow-xs:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.08);
  --shadow:     0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.13);
  --shadow-xl:  0 24px 80px rgba(0,0,0,0.16);

  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  --transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  --transition-slow: color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;

  --container:  1200px;
  --navbar-h:   72px;

  --mockup-bg:       #0c1829;
  --mockup-sidebar:  #071223;
  --mockup-surface:  #0f2847;
  --mockup-border:   #1a3356;
  --mockup-text:     #e2e8f0;
  --mockup-muted:    #7a90a8;
}

[data-theme="dark"] {
  --bg:           #060d1a;
  --bg-2:         #091220;
  --surface:      #0c1829;
  --surface-2:    #0f2038;
  --border:       #1a2e48;
  --text:         #e2e8f0;
  --text-2:       #b8c7d9;
  --text-muted:   #7a90a8;

  --btn-primary-bg:   #0891b2;
  --btn-primary-text: #ffffff;

  --gradient-hero:   linear-gradient(140deg, #060d1a 0%, #091830 50%, #071223 100%);

  --shadow-xs:  0 1px 4px rgba(0,0,0,0.3);
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.4);
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.6);
  --shadow-xl:  0 24px 80px rgba(0,0,0,0.7);

  color-scheme: dark;
}

html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}


/* ── 2. Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-cyan); text-decoration: none; transition: opacity 0.25s ease, color 0.25s ease; }
a:hover { opacity: 0.85; }

ul { list-style: none; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── 3. Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 96px 0; }

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }

/* ── 4. Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: rgba(245,247,250,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, background 0.3s ease, border-color 0.3s ease;
  transform: translateZ(0);
  isolation: isolate;
}

[data-theme="dark"] .navbar {
  background: rgba(6,13,26,0.9);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-h);
  gap: 24px;
}

.navbar-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

[data-theme="dark"] .navbar-logo img {
  filter: brightness(0) invert(1);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--brand-cyan);
  background: rgba(8,145,178,0.08);
  opacity: 1;
}

.nav-link.active {
  color: var(--brand-cyan);
  background: rgba(8,145,178,0.08);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--brand-cyan);
  border-color: var(--brand-cyan);
}

.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }

[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.mobile-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 5. Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(8,145,178,0.35);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  opacity: 1;
}

.btn-sm  { font-size: 0.875rem; padding: 9px 18px; }
.btn-md  { font-size: 0.95rem;  padding: 12px 24px; }
.btn-lg  { font-size: 1rem;     padding: 15px 32px; }
.btn-xl  { font-size: 1.05rem;  padding: 18px 40px; }

.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(8,145,178,0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(8,145,178,0.4);
  opacity: 1;
}

.btn-white {
  background: #fff;
  color: var(--brand-navy);
  border-color: transparent;
}

.btn-white:hover {
  background: #f0f4f8;
  opacity: 1;
  transform: translateY(-1px);
}

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-ghost-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  opacity: 1;
}

/* ── 6. Section Headers ─────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  background: rgba(8,145,178,0.1);
  border: 1px solid rgba(8,145,178,0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── 6b. Welcome screen (hero + stats) ──────────────────────── */
.welcome-screen {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.welcome-screen > .section-hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--navbar-h);
  padding-bottom: 20px;
  box-sizing: border-box;
}

.welcome-screen > .section-hero .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-screen > .section-stats {
  flex-shrink: 0;
  margin-top: auto;
}

/* ── 7. Hero Section ────────────────────────────────────────── */
.section-hero {
  position: relative;
  padding-top: calc(var(--navbar-h) + 80px);
  padding-bottom: 100px;
  overflow: hidden;
  background: var(--bg);
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.section-hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 560px;
}

.hero-content { padding-top: 24px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  flex-shrink: 0;
}

.badge-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid rgba(34,211,238,0.3);
  animation: pulse-dot 2s ease infinite;
  will-change: transform, opacity;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.35); opacity: 0.35; }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}

.trust-item svg { color: #22d3ee; flex-shrink: 0; }

/* Hero visual (mockup) */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ── 8. Dashboard Mockup ─────────────────────────────────────── */
.mockup-wrapper {
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  background: var(--mockup-bg);
  transform: perspective(1000px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.4s ease;
}

.mockup-wrapper:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #040d1a;
  border-bottom: 1px solid var(--mockup-border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.mockup-url {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 0.7rem;
  color: var(--mockup-muted);
  font-family: monospace;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.mockup-app {
  display: flex;
  height: 440px;
}

.mockup-sidebar {
  width: 130px;
  background: var(--mockup-sidebar);
  border-right: 1px solid var(--mockup-border);
  padding: 16px 0;
  flex-shrink: 0;
}

.mockup-logo-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #1e3a5f, #0891b2);
  border-radius: 8px;
  margin: 0 auto 20px;
  font-size: 0.7rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.mockup-nav { padding: 0 8px; display: flex; flex-direction: column; gap: 2px; }

.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--mockup-muted);
  cursor: default;
  transition: var(--transition);
}

.mockup-nav-item:hover { color: var(--mockup-text); background: rgba(255,255,255,0.05); }

.mockup-nav-item.active {
  background: rgba(8,145,178,0.15);
  color: #22d3ee;
}

.nav-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.mockup-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--mockup-border);
}

.mockup-page-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mockup-text);
}

.mockup-date {
  font-size: 0.65rem;
  color: var(--mockup-muted);
}

.mockup-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
}

.mockup-stat-card {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--mockup-border);
  background: var(--mockup-surface);
}

.mockup-stat-card.green  { border-left: 3px solid #10b981; }
.mockup-stat-card.blue   { border-left: 3px solid #3b82f6; }
.mockup-stat-card.orange { border-left: 3px solid #f97316; }
.mockup-stat-card.red    { border-left: 3px solid #ef4444; }

.msc-label { font-size: 0.58rem; color: var(--mockup-muted); margin-bottom: 3px; }
.msc-value { font-size: 0.72rem; font-weight: 700; color: var(--mockup-text); }
.msc-sub   { font-size: 0.58rem; color: var(--mockup-muted); margin-top: 2px; }

.mockup-chart-row {
  padding: 0 12px 8px;
  flex: 1;
}

.mockup-chart-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--mockup-muted);
  margin-bottom: 6px;
}

.mockup-chart {
  height: 90px;
  display: flex;
  align-items: flex-end;
}

.mockup-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.bar-group > div { width: 100%; }

.bar-group-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex: 1;
  width: 100%;
}

.bar {
  border-radius: 3px 3px 0 0;
  flex: 1;
  min-height: 4px;
  transition: height 0.6s ease;
}

.bar-income  { background: linear-gradient(180deg, #22d3ee, #0891b2); }
.bar-expense { background: linear-gradient(180deg, #f97316, #ea580c); opacity: 0.7; }

.bar-label {
  font-size: 0.58rem;
  color: var(--mockup-muted);
  text-align: center;
  margin-top: 4px;
  flex-shrink: 0;
  height: 12px;
  width: 100%;
}

.mockup-table-mini {
  border-top: 1px solid var(--mockup-border);
  padding: 0 12px;
}

.mt-row {
  display: grid;
  grid-template-columns: 1fr 50px 55px;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.62rem;
  color: var(--mockup-muted);
}

.mt-row:last-child { border-bottom: none; }

.mt-row.mt-header {
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-top: 8px;
}

.mt-badge {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
}

.mt-badge.green  { background: rgba(16,185,129,0.15); color: #34d399; }
.mt-badge.yellow { background: rgba(245,158,11,0.15);  color: #fbbf24; }
.mt-badge.red    { background: rgba(239,68,68,0.15);   color: #f87171; }

/* ── 9. Stats Bar ────────────────────────────────────────────── */
.section-stats {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 20px 48px;
  flex: 1;
  min-width: 180px;
}

.stat-item .stat-value {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-item .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── 10. How it Works ────────────────────────────────────────── */
.section-how {
  padding: 96px 0;
  background: var(--bg);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  margin-top: 56px;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-cyan-2));
  z-index: 0;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.how-step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(8,145,178,0.35);
  flex-shrink: 0;
}

.how-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.how-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── 11. Features Grid ─────────────────────────────────────── */
.section-features {
  padding: 96px 0;
  background: var(--bg-2);
}

[data-theme="dark"] .section-features { background: var(--bg-2); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(8,145,178,0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.feature-icon svg { width: 24px; height: 24px; }

.fi-blue   { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.fi-cyan   { background: rgba(8, 145, 178, 0.12);  color: #0891b2; }
.fi-green  { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.fi-purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.fi-orange { background: rgba(249, 115, 22, 0.12); color: #f97316; }
.fi-red    { background: rgba(239, 68, 68, 0.12);  color: #ef4444; }
.fi-teal   { background: rgba(20, 184, 166, 0.12); color: #14b8a6; }
.fi-indigo { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.fi-pink   { background: rgba(236, 72, 153, 0.12); color: #ec4899; }
.fi-navy   { background: rgba(30, 58, 95, 0.12);   color: var(--brand-navy); }
.fi-yellow { background: rgba(234, 179, 8, 0.12);  color: #ca8a04; }
.fi-sky    { background: rgba(14, 165, 233, 0.12); color: #0ea5e9; }

[data-theme="dark"] .fi-navy { background: rgba(56,189,248,0.12); color: #38bdf8; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── 12. Feature Detail Sections ─────────────────────────────── */
.section-detail {
  padding: 96px 0;
  background: var(--bg);
}

.section-detail.alt-bg {
  background: var(--surface);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.detail-grid.reverse { direction: rtl; }
.detail-grid.reverse > * { direction: ltr; }

.detail-content .section-badge { display: inline-flex; }

.detail-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 16px 0 20px;
}

.detail-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.detail-list {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.5;
}

.detail-list-item .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(8,145,178,0.12);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.detail-list-item .check svg { width: 12px; height: 12px; }

.detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Feature Visual Cards */
.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  width: 100%;
}

.visual-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.visual-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.visual-card-icon svg { width: 20px; height: 20px; }

.visual-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.visual-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Condominium visual list */
.condo-list { display: flex; flex-direction: column; gap: 10px; }

.condo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.condo-item:hover { border-color: var(--brand-cyan); }
.condo-item-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.condo-item-units { font-size: 0.75rem; color: var(--text-muted); }
.condo-item-active {
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius-full);
  background: rgba(16,185,129,0.12); color: #10b981;
}

/* Financial visual */
.fin-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }

.fin-metric {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.fin-metric-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.fin-metric-value { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.fin-metric-value.positive { color: #10b981; }
.fin-metric-value.warning  { color: #f59e0b; }
.fin-metric-value.negative { color: #ef4444; }
.fin-metric-delta { font-size: 0.7rem; margin-top: 2px; }

/* Mini bar chart in visual card */
.mini-chart {
  height: 80px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding-top: 8px;
}

.mini-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.mini-chart-bar-wrap { flex: 1; display: flex; align-items: flex-end; width: 100%; gap: 2px; }
.mini-bar { border-radius: 2px 2px 0 0; flex: 1; }
.mini-bar.income  { background: var(--brand-cyan); }
.mini-bar.expense { background: #f97316; opacity: 0.7; }
.mini-chart-label { font-size: 0.6rem; color: var(--text-muted); text-align: center; }

/* ── 13. Integrations ────────────────────────────────────────── */
.section-integrations {
  padding: 80px 0;
  background: var(--bg-2);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.integration-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  transition: var(--transition);
}

.integration-card:hover {
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.integration-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.integration-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.integration-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.int-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(8,145,178,0.1);
  color: var(--brand-cyan);
  border: 1px solid rgba(8,145,178,0.2);
}

/* ── 14. Pricing ────────────────────────────────────────────── */
.section-pricing {
  padding: 96px 0;
  background: var(--bg);
}

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ── Pricing period toggle ──────────────────────────────────── */
.pricing-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 32px auto 0;
  padding: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: max-content;
  max-width: 100%;
}

.pricing-section-toggle-wrap { text-align: center; }

.section-pricing .pricing-toggle { display: flex; }
.section-pricing > .container > .pricing-toggle { margin-left: auto; margin-right: auto; }

.pricing-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.pricing-toggle-btn:hover { color: var(--text); }

.pricing-toggle-btn.active {
  background: var(--surface);
  color: var(--brand-cyan);
  box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .pricing-toggle-btn.active { background: var(--brand-navy); }

.pricing-toggle-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: #fff;
}

.pricing-billing-real {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-cyan);
  margin-bottom: 18px;
  min-height: 1.1em;
}

.pricing-featured .pricing-billing-real { color: #22d3ee; }

/* Plano sob consulta (Empresarial) */
.pricing-custom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.pricing-custom-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.05;
}

.pricing-custom-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 56px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  transition: var(--transition);
}

.pricing-card:not(.pricing-featured):hover {
  border-color: rgba(8,145,178,0.3);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card.pricing-featured {
  background: var(--gradient-card);
  border-color: transparent;
  color: #fff;
  transform: scale(1.04) translateY(-4px);
  box-shadow: var(--shadow-xl);
  z-index: 1;
}

.pricing-card.pricing-featured:hover {
  transform: scale(1.04) translateY(-8px);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #22d3ee;
  color: #072035;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-plan-name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 12px;
}

.pricing-featured .pricing-plan-name { color: rgba(255,255,255,0.7); }

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pricing-featured .pricing-currency { color: rgba(255,255,255,0.7); }

.pricing-value {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.pricing-featured .pricing-value { color: #fff; }

.pricing-cents {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-featured .pricing-cents { color: #fff; }

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pricing-featured .pricing-period { color: rgba(255,255,255,0.7); }

.pricing-limit {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(8,145,178,0.1);
  color: var(--brand-cyan);
  border: 1px solid rgba(8,145,178,0.2);
  margin-bottom: 28px;
}

.pricing-featured .pricing-limit {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 28px;
}

.pricing-featured .pricing-divider { background: rgba(255,255,255,0.15); }

.pricing-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}

.pricing-featured .pricing-feature-item { color: rgba(255,255,255,0.85); }

.pf-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(8,145,178,0.12);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-featured .pf-check {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.pf-check svg { width: 10px; height: 10px; }

.pricing-card .btn { width: 100%; justify-content: center; }

.btn-pricing-primary {
  background: #fff;
  color: var(--brand-navy);
  border-color: transparent;
  font-weight: 700;
}

.btn-pricing-primary:hover {
  background: #f0f4f8;
  opacity: 1;
  transform: translateY(-1px);
}

.btn-pricing-outline {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
  font-weight: 700;
}

.btn-pricing-outline:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  opacity: 1;
}

/* ── 15. FAQ ────────────────────────────────────────────────── */
.section-faq {
  padding: 96px 0;
  background: var(--surface);
}

.faq-list {
  max-width: 780px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: rgba(8,145,178,0.3);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: var(--transition);
}

.faq-question:hover { color: var(--brand-cyan); }

.faq-question .faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  background: var(--brand-cyan);
  border-color: var(--brand-cyan);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* ── 16. Final CTA ──────────────────────────────────────────── */
.section-cta {
  padding: 100px 0;
  background: var(--gradient-card);
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(34,211,238,0.1);
  pointer-events: none;
}

.section-cta::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ── 17. Footer ─────────────────────────────────────────────── */
.footer {
  background: #040a14;
  padding: 72px 0 0;
  color: rgba(255,255,255,0.7);
}

[data-theme="dark"] .footer { background: #020812; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
}

.footer-brand img {
  height: 38px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #22d3ee;
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-copy a { color: rgba(255,255,255,0.5); }
.footer-copy a:hover { color: #22d3ee; opacity: 1; }

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-legal a:hover { color: #22d3ee; opacity: 1; }

/* ── 18. Back to Top ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--brand-cyan);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(8,145,178,0.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: var(--transition);
  z-index: 900;
  border: none;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(8,145,178,0.5);
}

/* ── 19. Scroll Animations ──────────────────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animated {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="150"] { transition-delay: 0.15s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="250"] { transition-delay: 0.25s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-aos-delay="350"] { transition-delay: 0.35s; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.4s; }

[data-aos="fade-right"] { transform: translateX(-28px); }
[data-aos="fade-right"].aos-animated { transform: translateX(0); }

[data-aos="fade-left"] { transform: translateX(28px); }
[data-aos="fade-left"].aos-animated { transform: translateX(0); }

/* ── 19b. Performance (sem alterar o design) ───────────────── */
.section-pad:not(.section-hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.feature-card,
.pricing-card,
.integration-card,
.faq-item {
  contain: layout style;
}

.feature-card,
.pricing-card,
.integration-card,
.back-to-top,
.mockup-wrapper {
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-aos],
  [data-aos].aos-animated {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .badge-dot::after {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

/* ── 20. Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-grid   { gap: 40px; }
  .detail-grid { gap: 56px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
  .footer-grid > div:last-child { grid-column: span 3; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --navbar-h: 64px; }

  .navbar-nav {
    position: fixed;
    top: var(--navbar-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
  }

  .navbar-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link { width: 100%; padding: 12px 16px; font-size: 1rem; }

  .mobile-toggle { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
  }

  .hero-content { padding-top: 0; }

  .hero-subtitle { margin-left: auto; margin-right: auto; }

  .hero-actions { justify-content: center; }

  .hero-trust { justify-content: center; }

  .hero-visual { justify-content: center; }

  .mockup-wrapper {
    max-width: 100%;
    transform: none;
  }

  .mockup-wrapper:hover { transform: none; }

  .how-steps {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .how-steps::before { display: none; }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .detail-grid.reverse { direction: ltr; }

  .features-grid { grid-template-columns: 1fr 1fr; }

  .integrations-grid { grid-template-columns: 1fr; gap: 16px; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card.pricing-featured {
    transform: none;
    order: -1;
  }

  .pricing-card.pricing-featured:hover { transform: translateY(-4px); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-grid > div:first-child { grid-column: span 2; }
  .footer-grid > div:last-child  { grid-column: span 1; }

  .stats-row { gap: 0; }
  .stat-item { padding: 20px 24px; min-width: 140px; }
  .stat-divider { height: 40px; }
}

@media (max-width: 640px) {
  .section-pad  { padding: 64px 0; }

  .welcome-screen > .section-hero {
    padding-top: var(--navbar-h);
    padding-bottom: 12px;
  }

  .welcome-screen > .section-stats {
    padding: 24px 0;
  }

  .stat-item {
    padding: 14px 20px;
    min-width: 140px;
  }

  .stat-item .stat-value {
    font-size: 1.5rem;
  }

  .section-hero { padding-bottom: 0; }

  .hero-title { letter-spacing: -0.03em; }

  .features-grid  { grid-template-columns: 1fr; }
  .how-steps      { grid-template-columns: 1fr; }

  .fin-metrics    { grid-template-columns: 1fr 1fr; }

  .pricing-grid   { max-width: 100%; }

  .footer-grid    { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid > div:first-child  { grid-column: span 1; }
  .footer-grid > div:last-child   { grid-column: span 1; }

  .footer-bottom  { flex-direction: column; text-align: center; }

  .mockup-app { height: 360px; }
  .mockup-sidebar { width: 100px; }
  .mockup-stats-row { grid-template-columns: repeat(2, 1fr); }

  .stats-row { flex-direction: column; gap: 0; }
  .stat-divider { width: 48px; height: 1px; }

  .section-cta { padding: 72px 0; }

  .back-to-top { bottom: 20px; right: 20px; }
}

/* ── 21. Misc ────────────────────────────────────────────────── */
::selection {
  background: rgba(8,145,178,0.2);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}


/* ── Checkout modal ─────────────────────────────────────────── */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(6, 13, 26, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.checkout-overlay[hidden] { display: none; }
.checkout-overlay.open { opacity: 1; }

.checkout-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 36px 32px 32px;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.checkout-overlay.open .checkout-modal { transform: translateY(0) scale(1); }

.checkout-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
}

.checkout-close:hover { background: var(--border); color: var(--text); }

.checkout-step { text-align: left; }
.checkout-step[hidden] { display: none; }
#checkoutLoadingStep, #checkoutSuccessStep { text-align: center; }

/* Layout em colunas (desktop) / empilhado (mobile) */
.checkout-cols {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.checkout-aside, .checkout-main { min-width: 0; }
/* No celular, mostra resumo/benefícios antes do formulário (contexto primeiro). */
.checkout-aside { order: -1; }

/* Benefícios do plano dentro do modal */
.checkout-benefits {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.checkout-benefits-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 12px;
}

.checkout-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.checkout-benefits-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.45;
}

.checkout-benefits-item .pf-check {
  width: 16px; height: 16px;
  margin-top: 1px;
}
.checkout-benefits-item .pf-check svg { width: 9px; height: 9px; }

.checkout-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.checkout-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
}

.checkout-summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.checkout-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  padding: 4px 0;
}

.checkout-summary-label { color: var(--text-muted); }
.checkout-summary-value { color: var(--text); font-weight: 600; text-align: right; }

.checkout-summary-total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.checkout-summary-total .checkout-summary-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-cyan);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.checkout-field { display: flex; flex-direction: column; gap: 6px; }

.checkout-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
}

.checkout-field input {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: var(--transition);
  width: 100%;
}

.checkout-field input:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.15);
}

.checkout-field input.invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}

.checkout-hint { font-size: 0.75rem; color: var(--text-muted); }

.checkout-field-msg {
  font-size: 0.76rem;
  font-weight: 600;
  color: #dc2626;
  line-height: 1.4;
}
.checkout-field-msg[hidden] { display: none; }
.checkout-field-msg a { color: var(--brand-cyan); text-decoration: underline; }

.checkout-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
}

.checkout-consent input { margin-top: 2px; flex-shrink: 0; }
.checkout-consent a { color: var(--brand-cyan); text-decoration: underline; }

.checkout-card-section {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.checkout-card-section.disabled {
  opacity: 0.55;
  pointer-events: none;
}
.checkout-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.checkout-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin-bottom: 14px;
}
.checkout-card-field-full { grid-column: 1 / -1; }
.checkout-card-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.checkout-card-field-container {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface, #fff);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.checkout-card-field-container:focus-within {
  border-color: var(--brand-cyan, #0891b2);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}
.checkout-card-unavailable {
  font-size: 0.8125rem;
  color: #dc2626;
  margin: 0 0 10px;
  line-height: 1.45;
}
.checkout-pay-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-pay-actions.disabled .btn-checkout-pay {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-checkout-pay {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn-checkout-pay svg { flex-shrink: 0; opacity: 0.92; }
.checkout-pay-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}
.checkout-pay-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
}
.checkout-pay-loading { font-weight: 600; }

/* legado — removido iframe PayPal */
.checkout-paypal { margin-top: 6px; min-height: 8px; }
.checkout-paypal.disabled { opacity: 0.5; pointer-events: none; filter: grayscale(0.4); }
.checkout-paypal-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.checkout-error {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.3);
  color: #dc2626;
  font-size: 0.85rem;
}

.checkout-error[hidden] { display: none; }

.checkout-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkout-secure svg { flex-shrink: 0; color: var(--brand-cyan); }

.checkout-spinner {
  width: 44px; height: 44px;
  margin: 8px auto 24px;
  border: 3px solid var(--border);
  border-top-color: var(--brand-cyan);
  border-radius: 50%;
  animation: ck-spin 0.8s linear infinite;
}

@keyframes ck-spin { to { transform: rotate(360deg); } }

.checkout-success-icon {
  width: 64px; height: 64px;
  margin: 4px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8,145,178,0.12);
  color: var(--brand-cyan);
}

#checkoutSuccessStep .btn { margin-top: 22px; }

@media (max-width: 520px) {
  .checkout-modal { padding: 30px 20px 24px; }
  .checkout-title { font-size: 1.2rem; }
}

/* Desktop: assinatura em duas colunas */
@media (min-width: 760px) {
  #checkoutFormStep { /* só este passo usa 2 colunas */ }
  .checkout-overlay { align-items: center; }
  .checkout-modal:has(#checkoutFormStep:not([hidden])) { max-width: 880px; }

  .checkout-cols {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: stretch;
  }

  /* Desktop: formulário à esquerda, plano/benefícios à direita */
  .checkout-main  { order: 1; }
  .checkout-aside {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .checkout-aside .checkout-summary { margin-bottom: 0; }
  .checkout-aside .checkout-secure { margin-top: auto; }
  .checkout-main .checkout-form { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-overlay, .checkout-modal { transition: none; }
  .checkout-spinner { animation-duration: 1.6s; }
}
