/* =============================================================
   HOVEDO — Design System v1
   Paleta roxa premium · Inter · Light & Dark
   Usado por: index.html, planos.html, contact.html, login.html,
              register.html, reset-password.html, email-verified.html
   ============================================================= */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Cores — Light (default) */
  --bg:            #FAFAFA;
  --bg-elevated:   #FFFFFF;
  --bg-subtle:     #F4F4F5;
  --text:          #0A0A0F;
  --text-muted:    #6B7280;
  --text-soft:     #9CA3AF;
  --border:        #E5E7EB;
  --border-strong: #D4D4D8;

  /* Brand — roxo Hovedo */
  --brand:         #6D28D9;
  --brand-hover:   #5B21B6;
  --brand-active:  #4C1D95;
  --brand-soft:    #F3E8FF;
  --brand-softer:  #FAF5FF;
  --brand-glow:    #A78BFA;
  --brand-on:      #FFFFFF;

  /* Status */
  --success:       #10B981;
  --success-soft:  #D1FAE5;
  --warning:       #F59E0B;
  --warning-soft:  #FEF3C7;
  --danger:        #EF4444;
  --danger-soft:   #FEE2E2;
  --info:          #3B82F6;
  --info-soft:     #DBEAFE;

  /* Tipografia */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Escala tipográfica */
  --fs-xs:   0.75rem;     /* 12 */
  --fs-sm:   0.875rem;    /* 14 */
  --fs-base: 1rem;        /* 16 */
  --fs-md:   1.125rem;    /* 18 */
  --fs-lg:   1.25rem;     /* 20 */
  --fs-xl:   1.5rem;      /* 24 */
  --fs-2xl:  1.875rem;    /* 30 */
  --fs-3xl:  2.5rem;      /* 40 */
  --fs-4xl:  3.5rem;      /* 56 */
  --fs-5xl:  4.5rem;      /* 72 */

  /* Pesos */
  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;

  /* Spacing scale (multiplos de 4px) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-full: 999px;

  /* Shadows — sutis e premium */
  --shadow-sm: 0 1px 2px rgba(10, 10, 15, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 10, 15, 0.06), 0 1px 3px rgba(10, 10, 15, 0.04);
  --shadow-lg: 0 12px 32px rgba(10, 10, 15, 0.08), 0 2px 6px rgba(10, 10, 15, 0.04);
  --shadow-xl: 0 24px 56px rgba(10, 10, 15, 0.12), 0 4px 12px rgba(10, 10, 15, 0.06);
  --shadow-brand:    0 8px 24px rgba(109, 40, 217, 0.20);
  --shadow-brand-lg: 0 16px 40px rgba(109, 40, 217, 0.28);
  --shadow-ring:     0 0 0 4px rgba(109, 40, 217, 0.15);

  /* Transitions */
  --t-fast:    120ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-normal:  180ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:    280ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --header-height: 72px;
}

/* Dark mode — pra ser usado no dashboard (toggle) */
[data-theme="dark"] {
  --bg:            #0A0A0F;
  --bg-elevated:   #14141C;
  --bg-subtle:     #1C1C26;
  --text:          #FAFAFA;
  --text-muted:    #9CA3AF;
  --text-soft:     #6B7280;
  --border:        #27272A;
  --border-strong: #3F3F46;

  --brand:         #8B5CF6;
  --brand-hover:   #A78BFA;
  --brand-active:  #C4B5FD;
  --brand-soft:    rgba(139, 92, 246, 0.12);
  --brand-softer:  rgba(139, 92, 246, 0.06);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 24px 56px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection {
  background: var(--brand);
  color: var(--brand-on);
}

/* ── TIPOGRAFIA ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: var(--fw-bold);
}

h1 { font-size: clamp(var(--fs-3xl), 5.5vw, var(--fs-5xl)); letter-spacing: -0.035em; font-weight: var(--fw-black); }
h2 { font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl)); letter-spacing: -0.028em; }
h3 { font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-2xl)); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p { line-height: 1.7; color: var(--text); }
p.lead { font-size: var(--fs-lg); color: var(--text-muted); line-height: 1.6; }
small { font-size: var(--fs-sm); color: var(--text-muted); }

.text-brand    { color: var(--brand); }
.text-muted    { color: var(--text-muted); }
.text-success  { color: var(--success); }
.text-danger   { color: var(--danger); }
.text-center   { text-align: center; }
.text-balance  { text-wrap: balance; }

/* ── CONTAINER & LAYOUT ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.section-tight { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-7);
}
.section-header h2 { margin-bottom: var(--space-3); }
.section-header p { color: var(--text-muted); font-size: var(--fs-md); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  transition: transform var(--t-fast), background var(--t-normal), box-shadow var(--t-normal), color var(--t-normal);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-ring); }

.btn-primary {
  background: var(--brand);
  color: var(--brand-on);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-hover); box-shadow: var(--shadow-brand-lg); }
.btn-primary:active { background: var(--brand-active); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--brand); color: var(--brand); }

.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-subtle); color: var(--brand); }

.btn-lg { padding: var(--space-4) var(--space-6); font-size: var(--fs-md); border-radius: var(--radius-lg); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--fs-sm); }

.btn-block { width: 100%; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-glow);
}
.card-feature {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
}
.card-elevated { box-shadow: var(--shadow-md); }
.card-glow {
  background: linear-gradient(180deg, var(--brand-softer) 0%, var(--bg-elevated) 60%);
  border-color: var(--brand-soft);
}

/* ── BADGES ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.2rem var(--space-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  line-height: 1.4;
}
.badge-brand   { background: var(--brand-soft);   color: var(--brand); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: #92400E; }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-neutral { background: var(--bg-subtle);    color: var(--text-muted); }
.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── INPUTS ─────────────────────────────────────────────────── */
.input, .textarea, .select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--fs-base);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--shadow-ring);
}
.input::placeholder, .textarea::placeholder { color: var(--text-soft); }

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.field-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
}
.field-help {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ── HEADER (público) ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--text);
}
.site-logo svg { width: 32px; height: 32px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.site-nav a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.site-nav a:hover { color: var(--brand); }
.site-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}
.menu-toggle:hover { background: var(--bg-subtle); }

/* Link "Entrar" que só aparece dentro do menu hambúrguer aberto em mobile.
   Em desktop ficam escondidos pois "Entrar" está em .site-actions. */
.nav-mobile-login { display: none; }

/* ── FOOTER (público) ───────────────────────────────────────── */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}
.footer-brand p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-top: var(--space-3);
  max-width: 320px;
}
.footer-col h6 {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--text);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ── HERO PADRÃO ────────────────────────────────────────────── */
.hero {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-content h1 { margin-bottom: var(--space-4); text-wrap: balance; }
.hero-content .lead { margin-bottom: var(--space-6); max-width: 540px; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-trust .check {
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--success-soft);
  color: var(--success);
  border-radius: 50%;
  font-size: 11px;
  font-weight: var(--fw-bold);
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -10% -5% -10% -5%;
  background: radial-gradient(circle at 50% 50%, var(--brand-soft) 0%, transparent 70%);
  z-index: -1;
}

/* Decoração roxa do hero (orbs) */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}
.hero-orb-1 { width: 280px; height: 280px; background: var(--brand-glow); top: -80px; left: -60px; }
.hero-orb-2 { width: 220px; height: 220px; background: var(--brand-soft); bottom: -80px; right: -40px; }

/* ── GRADIENT HIGHLIGHT (palavras no headline) ─────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── GRIDS ──────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

/* ── FEATURE ICON CIRCLE ────────────────────────────────────── */
.feature-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon-lg { width: 64px; height: 64px; border-radius: var(--radius-lg); }
.feature-icon-lg svg { width: 32px; height: 32px; }

/* ── STEP NUMBER (como funciona) ────────────────────────────── */
.step-number {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--brand-on);
  border-radius: 50%;
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  margin-bottom: var(--space-3);
}

/* ── CTA SECTION (fim das landings) ─────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-active) 100%);
  color: var(--brand-on);
  border-radius: var(--radius-2xl);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--brand-on); margin-bottom: var(--space-3); }
.cta-banner p { color: rgba(255, 255, 255, 0.9); font-size: var(--fs-md); margin-bottom: var(--space-5); }
.cta-banner .btn-primary {
  background: var(--brand-on);
  color: var(--brand);
}
.cta-banner .btn-primary:hover { background: rgba(255, 255, 255, 0.9); }

/* ── AUTH PAGES (login / register / reset) ──────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-aside {
  background: linear-gradient(160deg, var(--brand-soft) 0%, var(--bg) 70%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}
.auth-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(109, 40, 217, 0.10) 0%, transparent 50%);
  pointer-events: none;
}
.auth-aside-content {
  position: relative;
  max-width: 480px;
}
.auth-aside h2 { font-size: var(--fs-3xl); margin: var(--space-5) 0 var(--space-3); }
.auth-aside p { color: var(--text-muted); font-size: var(--fs-md); }
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  background: var(--bg-elevated);
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-2);
}
.auth-card .subtitle {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}
.auth-card .divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  color: var(--text-soft);
  font-size: var(--fs-sm);
}
.auth-card .divider::before,
.auth-card .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-card .footer-link {
  text-align: center;
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.auth-card .footer-link a {
  color: var(--brand);
  font-weight: var(--fw-semibold);
}
.auth-card .footer-link a:hover { text-decoration: underline; }

.password-field {
  position: relative;
}
.password-toggle {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
}
.password-toggle:hover { color: var(--brand); background: var(--brand-soft); }

/* ── MENSAGENS DE STATUS (forms) ────────────────────────────── */
.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.alert-success { background: var(--success-soft); color: #065F46; }
.alert-danger  { background: var(--danger-soft);  color: #991B1B; }
.alert-warning { background: var(--warning-soft); color: #92400E; }
.alert-info    { background: var(--info-soft);    color: #1E40AF; }

/* ── UTILS ──────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.hidden { display: none !important; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 96%, 100% { transform: scaleY(1); }
  98% { transform: scaleY(0.1); }
}
.fade-up { animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* ── UTILITY CLASSES RESPONSIVAS ────────────────────────────── */
/* Sprint Mobile 2026-05-17 — show/hide condicional por breakpoint.
   Breakpoints oficiais: mobile <640px, tablet 640-1024px, desktop >1024px */
.hide-mobile      { /* visível em >= 640px, escondido em mobile */ }
.show-mobile-only { display: none; }
.hide-tablet-down { /* visível só em >1024px */ }
.show-tablet-up   { /* visível em >= 1024px */ }

/* ── RESPONSIVO ─────────────────────────────────────────────── */
/* Breakpoint TABLET (640px – 1024px) — Sprint Mobile 2026-05-17.
   Layouts ainda em 2-3 colunas mas com ajustes de spacing.
   Defesa global contra overflow horizontal — qualquer elemento que
   estoure por engano fica contido aqui em vez de quebrar a tela toda
   (causa raiz: scroll lateral indesejado, menu hambúrguer empurrado). */
@media (max-width: 1024px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
  .hide-tablet-down { display: none !important; }
}

/* Breakpoint TABLET pequeno / mobile grande (até 960px) */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; max-width: 380px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .show-tablet-up { display: none !important; }
}

/* Breakpoint MOBILE (até 640px) — Sprint Mobile 2026-05-17.
   Touch targets mínimo 44x44px (Apple HIG + Material Design). */
@media (max-width: 640px) {
  /* Utility classes */
  .hide-mobile      { display: none !important; }
  .show-mobile-only { display: initial; }

  /* Grids stack */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }

  /* Header mobile (padrão Notion/Linear/Stripe): Logo + CTA único + Menu.
     "Entrar" foi pro menu hambúrguer — usuário cadastrado já tem cookie ativo
     e raramente precisa logar pela landing. Foco visual no CTA de conversão. */
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; width: 44px; height: 44px; }
  .site-header .container { gap: var(--space-2); }

  /* Logo: ícone 32px + texto "Hovedo" (oculta em <380px pra caber tudo) */
  .site-logo { font-size: var(--fs-md); gap: var(--space-2); }
  .site-logo svg { width: 32px; height: 32px; }

  /* "Entrar" some do header em mobile (vai pro menu hambúrguer).
     Só sobra o CTA "Criar conta grátis" — touch 44px + radius 8px. */
  .site-actions { gap: var(--space-2); }
  .site-actions .btn-ghost { display: none; }
  .site-actions .btn-primary {
    min-height: 44px;
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-sm);
    border-radius: 8px;
    white-space: nowrap;
  }

  /* Menu hambúrguer aberto: nav drop-down do header.
     Em mobile, mostra apenas 4 links simplificados (.show-mobile-only)
     em vez dos 6 do desktop (.hide-mobile esconde os do desktop). */
  .site-nav.open {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) var(--container-pad);
    gap: var(--space-3);
    box-shadow: var(--shadow-md);
  }
  .site-nav.open a { padding: var(--space-3) 0; font-size: var(--fs-md); }

  /* "Entrar" no fim do menu — botão grande com border roxa pra destaque */
  .site-nav.open .nav-mobile-login {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    margin-top: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--brand);
    border-radius: 8px;
    color: var(--brand);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-md);
    justify-content: center;
    align-items: center;
    background: transparent;
    transition: background var(--t-fast);
  }
  .site-nav.open .nav-mobile-login:hover {
    background: var(--brand-soft);
  }

  /* Touch targets: botões e inputs 44px mínimos */
  .btn { min-height: 44px; padding: var(--space-3) var(--space-4); }
  .btn-lg { min-height: 52px; width: 100%; padding: var(--space-4) var(--space-5); }
  .btn-sm { min-height: 40px; }
  .input, .textarea, .select { min-height: 44px; font-size: var(--fs-base); /* >=16px evita iOS zoom no focus */ }
  /* Password toggle (olho de mostrar/esconder senha) — touch 44x44 */
  .password-toggle { width: 44px; height: 44px; right: var(--space-2); }

  /* Hero mobile */
  .hero { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .hero-trust { gap: var(--space-3); flex-direction: column; align-items: flex-start; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .hero-orb-1, .hero-orb-2 { opacity: 0.3; }

  /* Section padding mobile */
  .section { padding-top: var(--space-7); padding-bottom: var(--space-7); }
  .section-header { margin-bottom: var(--space-6); }

  /* Auth pages mobile */
  .auth-main { padding: var(--space-5) var(--space-4); align-items: flex-start; padding-top: var(--space-6); }
  .auth-card { max-width: 100%; }
  .auth-card h1 { font-size: var(--fs-2xl); }

  /* Cards menor padding em mobile */
  .card { padding: var(--space-4); }
  .card-feature { padding: var(--space-5); }

  /* CTA banner mobile */
  .cta-banner { border-radius: var(--radius-xl); }

  /* Footer mobile */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-2); text-align: left; }
}

/* MOBILE PEQUENO (até 380px — iPhone SE / mini) */
@media (max-width: 380px) {
  :root { --container-pad: 0.875rem; }
  .auth-card h1 { font-size: var(--fs-xl); }
  .auth-main { padding: var(--space-4) var(--space-3); }
  /* Esconde texto "Hovedo" do logo no header — só ícone visível.
     Libera espaço pro CTA "Criar conta grátis" caber em iPhone SE 320px. */
  .site-logo .logo-text { display: none; }
}

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