/* ═══════════════════════════════════════════════════════════════════
   FLOWZE — Layout WEB (desktop) · ≥1024px
   Mantém mobile/PWA abaixo de 1024px (não toca em nada lá).
   ═══════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {

/* ─── Topbar global (web) ──────────────────────────────────────── */
.web-topbar {
  position: sticky;
  top: 0; z-index: 50;
  background: rgba(8,7,12,.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 18px 40px;
  display: flex; align-items: center; gap: 28px;
}
.web-topbar-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(180deg, #F0EEFF, #818CF8 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.web-topbar-brand-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #818CF8, #6C63FF, #4F46E5);
  box-shadow: 0 6px 20px rgba(108,99,255,.45), 0 0 0 1px rgba(255,255,255,.12) inset;
  display: flex; align-items: center; justify-content: center;
}
.web-topbar-nav { display: flex; gap: 6px; margin-left: 20px; }
.web-topbar-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.web-topbar-link:hover { background: rgba(255,255,255,.05); color: var(--text); }
.web-topbar-link.is-active {
  background: rgba(108,99,255,.16);
  color: var(--indigo-light);
  border: 1px solid rgba(108,99,255,.35);
}
.web-topbar-right { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.web-topbar-account {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  font-size: 13px; color: var(--text);
}
.web-topbar-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #818CF8, #6C63FF);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: white;
}

/* ═════════════════════════════════════════════════════════════════
   1. LOGIN · web · split (brand left / form right)
   ════════════════════════════════════════════════════════════════ */
.auth {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  padding: 0;
  min-height: 100vh;
  align-items: stretch;
}
.auth > .auth-bg {
  /* mantém ringues, mas confinados na coluna da esquerda */
  position: absolute;
  width: 55%;
  height: 100%;
  left: 0; top: 0;
  overflow: hidden;
}
.auth > .auth-bg .ring.r1 { width: 920px; height: 920px; top: -380px; }
.auth > .auth-bg .ring.r2 { width: 580px; height: 580px; top: -200px; }
.auth > .auth-bg .ring.r3 { width: 320px; height: 320px; top: -60px;  }
.auth > .auth-bg .glow    { width: 720px; height: 720px; }

.auth > .toast-host { width: 45%; left: 55%; }

.auth > .enter {
  display: contents;
}
.auth .enter > .brand,
.auth .enter > .auth-head {
  grid-column: 1;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  padding: 0 60px;
  text-align: left;
}
.auth .enter > .brand { padding-top: 80px; align-self: end; padding-bottom: 0; }
.auth .enter > .brand { align-items: flex-start; }
.auth .enter > .brand > div { text-align: left; }
.auth .enter > .auth-head {
  padding-top: 28px; padding-bottom: 80px;
  align-self: start;
}
.auth .enter > .auth-head .auth-h1 { font-size: clamp(40px, 4vw, 56px); }
.auth .enter > .auth-head .auth-sub { font-size: 16px; max-width: 380px; }
.auth .enter > .auth-head .auth-eyebrow::before,
.auth .enter > .auth-head .auth-eyebrow::after { display: none; }
.auth .enter > .auth-head .auth-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(108,99,255,.14);
  border: 1px solid rgba(108,99,255,.32);
}

/* coluna form (direita) */
.auth .enter > .auth-form,
.auth .enter > .divider,
.auth .enter > .social-row,
.auth .enter > .auth-foot,
.auth .enter > .trust-row {
  grid-column: 2;
  width: 100%;
  max-width: 420px;
  justify-self: center;
}
.auth .enter > .auth-form { padding: 110px 40px 0; align-self: start; }
.auth .enter > .divider   { padding: 0 40px; margin: 22px auto 14px; }
.auth .enter > .social-row{ padding: 0 40px; }
.auth .enter > .auth-foot { padding: 28px 40px 0; }
.auth .enter > .trust-row { padding: 0 40px 60px; }

/* divisor de painel à direita */
.auth::before {
  content: '';
  position: absolute;
  left: 55%; top: 10%; bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.1) 40%, rgba(255,255,255,.1) 60%, transparent);
  pointer-events: none;
}

/* ═════════════════════════════════════════════════════════════════
   2. ASSINATURA · web · 3 colunas, sem sticky bar
   ════════════════════════════════════════════════════════════════ */
.check {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}
.check-hero { padding: 0 0 40px; }
.check-hero::before { width: 720px; height: 460px; }
.check-hero .auth-h1 { font-size: clamp(44px, 4.4vw, 60px); }
.check-hero .auth-sub { font-size: 17px; max-width: 560px; margin-left: auto; margin-right: auto; }

.plans {
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan { display: flex; flex-direction: column; min-height: 480px; }
.plan-feats { flex: 1; }
.plan.is-active { transform: translateY(-6px); }

.pay-strip { margin: 28px auto 0; max-width: 560px; }

/* substitui a sticky bar por um bloco inline */
.check-bar {
  position: static !important;
  background: rgba(255,255,255,.025) !important;
  border: 1px solid var(--border) !important;
  border-radius: 24px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 26px 32px !important;
  max-width: 760px;
  margin: 40px auto 0;
  display: flex; align-items: center; gap: 28px;
}
.check-bar-row { flex: 1; margin-bottom: 0 !important; }
.check-bar > .cta { width: auto; min-width: 280px; padding: 18px 28px; }
.back-btn {
  left: 40px;
  top: 90px;
}
.check-bar-amt { font-size: 28px !important; }

/* ═════════════════════════════════════════════════════════════════
   3. ROTEIRO · web · 2 colunas (main + sidebar)
   ════════════════════════════════════════════════════════════════ */
.app {
  max-width: 1240px !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding-bottom: 80px !important;
}

/* esconde header sticky mobile e usa apenas o título grande */
.app .hdr {
  position: static !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  padding: 40px 40px 0;
}
.app .hdr-row {
  max-width: 1160px;
  margin: 0 auto;
}
.app .hdr-back { font-size: 14px; }
.app .hdr-title-main { font-size: 18px; }

/* main 2-col grid: chapters left, sidebar right */
.app .title-block,
.app .progress-wrap,
.app .chapters {
  max-width: 1160px;
  margin: 0 auto;
}
.app .title-block { padding: 30px 40px 22px; }
.app .title-h1 { font-size: clamp(46px, 4.6vw, 64px); }
.app .progress-wrap { padding: 0 40px 30px; }

.app .chapters {
  padding: 0 40px;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 18px !important;
  align-items: start;
}

.app .fab {
  right: max(40px, calc(50% - 600px + 40px)) !important;
  bottom: 40px !important;
}

} /* end @media min-width: 1024px */

/* ─── breakpoint extra grande: roteiro 3 colunas opcional ──────── */
@media (min-width: 1440px) {
  .app .chapters {
    grid-template-columns: 1fr 1fr;
  }
  .plans {
    gap: 22px;
  }
}
