/* Tokens e peças compartilhadas entre a página de vendas, o login e a área do aluno. */
:root {
  --bg: #FFF8EE;
  --bg-2: #FFF1DF;
  --surface: #FFFFFF;
  --ink: #1B1A2E;
  --ink-2: #4A4760;
  --muted: #6B6880;
  --line: #EDE3D3;
  --primary: #6C3BFF;
  --primary-2: #8B63FF;
  --primary-ink: #FFFFFF;
  --coral: #FF6B4A;
  --mint: #19C6A0;
  --sun: #FFC83D;
  --sky: #2E9BFF;
  --pink: #E3449A;
  --danger: #E5484D;
  --ok: #12A67F;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(27, 26, 46, .06), 0 2px 8px rgba(27, 26, 46, .05);
  --shadow: 0 2px 6px rgba(27, 26, 46, .06), 0 12px 32px rgba(27, 26, 46, .08);
  --shadow-lg: 0 8px 24px rgba(27, 26, 46, .08), 0 30px 70px rgba(27, 26, 46, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 3px; border-radius: 10px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

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

/* Botões */
.btn {
  --b: var(--primary);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 16px;
  background: var(--b); color: var(--primary-ink);
  font-weight: 800; font-size: 17px; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--b) 70%, black), 0 14px 30px color-mix(in srgb, var(--b) 35%, transparent);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--b) 70%, black), 0 6px 14px color-mix(in srgb, var(--b) 30%, transparent); }
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.6s var(--ease) infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.btn-lg { min-height: 62px; padding: 0 32px; font-size: 19px; border-radius: 18px; }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line), var(--shadow-sm);
}
.btn-ghost::after { display: none; }
.btn-ghost:active { box-shadow: inset 0 0 0 2px var(--line); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; box-shadow: 0 4px 0 color-mix(in srgb, var(--b) 70%, black); }
.btn-sm.btn-ghost { box-shadow: inset 0 0 0 2px var(--line); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  border: 0; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
  cursor: pointer; transition: transform .15s var(--ease), background .15s;
}
.icon-btn:hover { transform: translateY(-1px); background: var(--bg-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 22px; height: 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 14px; font-weight: 700; color: var(--ink-2);
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.logo-mark { width: 36px; height: 36px; flex: none; }

/* Animação de entrada ao rolar (a página adiciona .in) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 140%);
  padding: 14px 20px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-lg);
  transition: transform .45s var(--spring);
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

/* Confete */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
