/* aovivo.escoladoreino.com — Escola do Reino identity (same tokens as escoladoreino.com/nova.css):
   Night background, Tawny #DB5500 accent, Poppins headings, Roboto body. All motion is off under
   prefers-reduced-motion, and everything is visible without JS (html.js only gates the entrances). */
:root {
  --ink: #0C0F10; --night: #0C0F10; --night-2: #1c1f21;
  --white: #fff; --isabelline: #EDE7E1;
  --tawny: #DB5500; --tawny-dark: #b54600; --tawny-light: #f07a2a; --tawny-deep: #8f3700; --tawny-soft: #f3a46b;
  --head: Poppins, "Helvetica Neue", Arial, sans-serif;
  --body: Roboto, system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: linear-gradient(120deg, var(--night) 0%, var(--night-2) 100%); color: #fff; font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2 { font-family: var(--head); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
::selection { background: var(--tawny); color: #fff; }
:focus-visible { outline: 2px solid var(--tawny); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.hl { color: var(--tawny-soft); background: linear-gradient(90deg, var(--tawny-light), var(--tawny-soft)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Background: aurora + grain + rising motes ── */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aur { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.a1 { width: 620px; height: 620px; left: -160px; top: -200px; background: radial-gradient(circle, var(--tawny) 0%, transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.a2 { width: 520px; height: 520px; right: -140px; top: 30%; background: radial-gradient(circle, var(--tawny-deep) 0%, transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.a3 { width: 460px; height: 460px; left: 30%; bottom: -260px; background: radial-gradient(circle, #6b2a00 0%, transparent 65%); opacity: .45; animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-100px, -60px) scale(1.1); } }
.grain { position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.motes { position: absolute; inset: 0; }
.motes i { position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: var(--tawny-soft); opacity: 0; box-shadow: 0 0 8px var(--tawny-light); animation: rise var(--t) linear var(--dl) infinite; }
@keyframes rise { 10% { opacity: var(--o); } 90% { opacity: var(--o); } to { transform: translate(var(--x), -105vh); opacity: 0; } }

/* ── Header ── */
.top { padding: 28px 24px 0; display: flex; justify-content: center; }
.logo img { height: 40px; width: auto; }

/* ── Entrances ── */
.js .intro-in { opacity: 0; transform: translateY(18px); }
.ready .intro-in { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.js .w > span { transform: translateY(105%); }
.ready .w > span { transform: none; transition: transform .9s var(--ease) calc(.15s + var(--i) * .06s); }

/* ── Pill ── */
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font: 500 .78rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--tawny-soft); }
.rec { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 0 rgba(255,59,48,.7); animation: rec 1.6s infinite; }
@keyframes rec { 70% { box-shadow: 0 0 0 9px rgba(255,59,48,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); } }

/* ── Home ── */
.hero { flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding-block: 56px 72px; }
.intro h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.lead { font: 400 clamp(1.05rem, 1.6vw, 1.3rem)/1.5 var(--head); color: rgba(255,255,255,.82); margin: 0 0 30px; max-width: 34em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.75); font-size: .98rem; }
.steps b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(150deg, var(--tawny), var(--tawny-deep)); font: 600 .82rem/1 var(--head); color: #fff; }

.card-wrap { position: relative; }
.card { position: relative; overflow: hidden; padding: 34px 30px 28px; border-radius: 26px; background: rgba(22,25,27,.72); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); }
.card-glow { position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--tawny-light) 80%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-ang 6s linear infinite; pointer-events: none; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-ang { to { --ang: 360deg; } }
.card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.card-sub { margin: 0 0 22px; color: rgba(255,255,255,.62); font-size: .92rem; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; font: 500 .8rem/1 var(--head); letter-spacing: .02em; color: rgba(255,255,255,.75); }
.field input { width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff; font: 400 1rem/1.2 var(--body); transition: border-color .25s, background .25s, box-shadow .25s; }
.field input::placeholder { color: rgba(255,255,255,.35); }
.field input:focus { outline: none; border-color: var(--tawny-light); background: rgba(255,255,255,.07); box-shadow: 0 0 0 4px rgba(219,85,0,.18); }
.field input.bad { border-color: #ff6b5e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; font-size: .82rem; line-height: 1.45; color: rgba(255,255,255,.62); cursor: pointer; }
.agree input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--tawny); }
.agree a { color: var(--tawny-soft); }
.err { margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255,80,60,.12); border: 1px solid rgba(255,80,60,.35); color: #ffb3aa; font-size: .88rem; }
.note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: .78rem; color: rgba(255,255,255,.45); }
.note svg { width: 14px; height: 14px; }

/* ── Buttons (same feel as escoladoreino.com) ── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 17px 28px; border: 0; border-radius: 14px; color: #fff; text-decoration: none; font: 600 .84rem/1.2 var(--head); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; overflow: hidden; transition: transform .35s var(--spring), box-shadow .35s, background .3s; }
.card .btn { width: 100%; }
.btn-accent { background: var(--tawny); box-shadow: 0 12px 30px -14px rgba(219,85,0,.9); }
.btn-accent:hover { background: var(--tawny-light); transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(219,85,0,1); }
.btn-lg { padding: 20px 34px; }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.btn.is-off { cursor: default; color: rgba(255,255,255,.6); }
.btn .arr { transition: transform .35s var(--spring); }
.btn:hover .arr { transform: translateX(4px); }
.btn-shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: shine 3.6s var(--ease) infinite 1.2s; }
@keyframes shine { 0% { left: -60%; } 40%, 100% { left: 130%; } }
.btn-halo { animation: halo 2.8s var(--ease) infinite; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(219,85,0,.55), 0 12px 30px -14px rgba(219,85,0,.9); } 70%, 100% { box-shadow: 0 0 0 16px rgba(219,85,0,0), 0 12px 30px -14px rgba(219,85,0,.9); } }
.spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: turn .8s linear infinite; }
.busy .btn .spin { display: inline-block; }
.busy .btn .arr { display: none; }
.busy .btn { pointer-events: none; opacity: .85; }
@keyframes turn { to { transform: rotate(360deg); } }

/* Checking overlay */
.checking { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 18px; border-radius: 26px; background: rgba(12,15,16,.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-align: center; font: 500 1.05rem/1.4 var(--head); }
.checking[hidden] { display: none; }
.checking p { margin: 0; }
.ring { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--tawny-light); border-right-color: var(--tawny); animation: turn 1s linear infinite; }

/* ── Result pages ── */
.result { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 48px 72px; max-width: 820px; }
.result h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.result .lead { margin-inline: auto; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.again { margin: 26px 0 0; color: rgba(255,255,255,.6); font-size: .92rem; }
.again a { color: var(--tawny-soft); }
.badge { width: 92px; height: 92px; margin-bottom: 22px; }
.badge svg { width: 100%; height: 100%; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.badge circle { stroke: var(--tawny); fill: rgba(219,85,0,.12); stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 1s var(--ease) .3s forwards; }
.badge path { stroke: #fff; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
[hidden] { display: none !important; }

.foot { padding-block: 0 26px; text-align: center; font-size: .78rem; color: rgba(255,255,255,.4); }
.foot a { color: rgba(255,255,255,.6); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 34px 56px; }
  .intro { text-align: center; }
  .lead { margin-inline: auto; }
  .steps { justify-content: center; text-align: left; max-width: 340px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .card { padding: 28px 20px 22px; border-radius: 22px; }
  .logo img { height: 34px; }
  .btn-lg { padding: 18px 24px; }
  .result .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .intro-in, .js .w > span { opacity: 1 !important; transform: none !important; }
  .badge circle, .badge path { stroke-dashoffset: 0; }
  .motes { display: none; }
}
