:root {
  color-scheme: light;

  --ext-primary: 243 75% 59%;
  --ext-accent: 142 71% 45%;
  --ext-danger: 0 72% 51%;
  --ext-warning: 38 92% 50%;

  --ext-neutral: 220 14% 96%;
  --ext-foreground: 222 47% 11%;
  --ext-border: 220 13% 88%;
  --ext-card: 220 20% 98%;
  --app-background: 0 0% 100%;
  --text-color: 222 47% 11%;
  --ext-secondary: 222 20% 40%;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --app-background: 222 47% 11%;
    --text-color: 210 40% 98%;
    --ext-foreground: 210 40% 98%;
    --ext-neutral: 217 33% 17%;
    --ext-border: 217 19% 27%;
    --ext-card: 222 47% 14%;
    --ext-secondary: 216 15% 70%;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --app-background: 222 47% 11%;
  --text-color: 210 40% 98%;
  --ext-foreground: 210 40% 98%;
  --ext-neutral: 217 33% 17%;
  --ext-border: 217 19% 27%;
  --ext-card: 222 47% 14%;
  --ext-secondary: 216 15% 70%;
}

:root[data-theme="light"] {
  color-scheme: light;
  --app-background: 0 0% 100%;
  --text-color: 222 47% 11%;
  --ext-foreground: 222 47% 11%;
  --ext-neutral: 220 14% 96%;
  --ext-border: 220 13% 88%;
  --ext-card: 220 20% 98%;
  --ext-secondary: 222 20% 40%;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background-color: hsl(var(--app-background));
  color: hsl(var(--text-color));
  line-height: 1.55;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: hsl(var(--app-background) / 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--ext-border));
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, hsl(var(--ext-primary)), hsl(var(--ext-accent)));
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.92rem;
  color: hsl(var(--ext-secondary));
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: hsl(var(--ext-primary));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Theme toggle */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid hsl(var(--ext-border));
  background: hsl(var(--ext-card));
  color: hsl(var(--ext-foreground));
  border-radius: 0.625rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.theme-toggle:hover {
  border-color: hsl(var(--ext-primary));
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: hsl(var(--ext-primary));
  color: white;
}

.btn-ghost {
  background: transparent;
  border-color: hsl(var(--ext-border));
  color: hsl(var(--ext-foreground));
}

.btn-lg {
  padding: 0.9rem 1.9rem;
  font-size: 1.02rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 5rem 0 4.5rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: hsl(var(--ext-primary));
  background: hsl(var(--ext-primary) / 0.1);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 1.1rem;
  color: hsl(var(--ext-secondary));
  margin: 0 0 2rem;
  max-width: 34rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: hsl(var(--ext-secondary));
}

/* Mockup */

.mockup {
  background: hsl(var(--ext-card));
  border: 1px solid hsl(var(--ext-border));
  border-radius: 1rem;
  padding: 1.1rem;
  box-shadow: 0 20px 45px -20px hsl(var(--ext-foreground) / 0.25);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.mockup-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: hsl(var(--ext-border));
}

.mockup-panel {
  background: hsl(var(--app-background));
  border: 1px solid hsl(var(--ext-border));
  border-radius: 0.625rem;
  padding: 1.1rem;
}

.mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid hsl(var(--ext-border));
}

.mockup-row:last-child {
  border-bottom: none;
}

.mockup-row-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mockup-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: hsl(var(--ext-primary) / 0.15);
}

.mockup-lines span {
  display: block;
  height: 0.5rem;
  border-radius: 0.25rem;
  background: hsl(var(--ext-border));
}

.mockup-lines span:first-child {
  width: 6.5rem;
  margin-bottom: 0.4rem;
}

.mockup-lines span:last-child {
  width: 4rem;
}

.mockup-badge {
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.mockup-badge.ok {
  background: hsl(var(--ext-accent) / 0.15);
  color: hsl(var(--ext-accent));
}

.mockup-badge.pending {
  background: hsl(var(--ext-primary) / 0.12);
  color: hsl(var(--ext-primary));
}

/* Toggle illustration (padrão azulzinho do produto) */

.mockup-switch {
  width: 2.1rem;
  height: 1.2rem;
  border-radius: 999px;
  background: hsl(var(--ext-primary));
  position: relative;
  flex-shrink: 0;
}

.mockup-switch::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: white;
}

/* ---------- Sections ---------- */

section {
  padding: 4.5rem 0;
}

.section-alt {
  background: hsl(var(--ext-neutral));
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: 2rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}

.section-head p {
  color: hsl(var(--ext-secondary));
  font-size: 1.02rem;
  margin: 0;
}

/* ---------- Cards / Benefícios ---------- */

.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  background: hsl(var(--ext-card));
  border: 1px solid hsl(var(--ext-border));
  border-radius: 0.625rem;
  padding: 1.6rem;
}

.card-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.625rem;
  background: hsl(var(--ext-primary) / 0.12);
  color: hsl(var(--ext-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.card p {
  font-size: 0.92rem;
  color: hsl(var(--ext-secondary));
  margin: 0;
}

/* ---------- Confiança ---------- */

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: hsl(var(--ext-foreground));
}

.trust-item .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: hsl(var(--ext-accent));
  flex-shrink: 0;
}

/* ---------- CTA final ---------- */

.cta-final {
  text-align: center;
}

.cta-final h2 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.cta-final p {
  color: hsl(var(--ext-secondary));
  margin: 0 0 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: hsl(var(--ext-neutral));
  border-top: 1px solid hsl(var(--ext-border));
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: hsl(var(--ext-secondary));
  margin: 0.85rem 0 0;
  max-width: 22rem;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--ext-secondary));
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: hsl(var(--ext-foreground));
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: hsl(var(--ext-primary));
}

.footer-bottom {
  border-top: 1px solid hsl(var(--ext-border));
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: hsl(var(--ext-secondary));
}

/* ---------- Página de Política ---------- */

.legal-page {
  padding: 3.5rem 0 5rem;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.legal-updated {
  font-size: 0.88rem;
  color: hsl(var(--ext-secondary));
  margin: 0 0 2.5rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 2.2rem 0 0.75rem;
}

.legal-page p, .legal-page li {
  color: hsl(var(--ext-foreground));
  font-size: 0.98rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: hsl(var(--ext-primary));
  margin-bottom: 2rem;
}

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .grid-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-row {
    gap: 1.25rem;
  }
}
