/* =====================================================================
   Operebem ID · interface pública (landing, entrada, cadastro, onboarding)
   Porte fiel do preview aprovado em ZZ-LOCAL-PLAN-FRONTEND/id.operebem.com.br/v1.
   As páginas do ID não carregam Bootstrap nem o CSS do Terminal; os tokens
   seguem a classe de tema do Terminal no <html> (light ou all-black).
   ===================================================================== */
.id-ui {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #050605;
  --surface: #0b0c0b;
  --surface-2: #111311;
  --surface-3: #171a17;
  --border: #1d211d;
  --border-strong: #2a302a;
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --brand: #00c978;
  --brand-hover: #00e088;
  --brand-ink: #001b10;
  --brand-soft: rgba(0, 201, 120, 0.12);
  --brand-line: rgba(0, 201, 120, 0.35);
  --action: #f4f4f5;
  --action-hover: #ffffff;
  --action-ink: #0b0c0b;
  --up: #00e88f;
  --down: #ff5c5c;
  --down-bg: rgba(239, 68, 68, 0.12);
  --down-line: rgba(255, 92, 92, 0.4);
  --warn: #fbbf24;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --info: #2dd4bf;
  --plus: #7dd3fc;
  --plus-bg: rgba(56, 189, 248, 0.12);
  --pro: #00c978;
  --pro-bg: rgba(0, 201, 120, 0.14);
  --field: #0e100e;
  --field-focus: #111411;
  --scrim: rgba(0, 0, 0, 0.72);
  --shadow-pop: 0 30px 80px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.05);
  --hero-bg: radial-gradient(70% 55% at 50% 22%, rgba(0, 201, 120, 0.10), transparent 70%);
  --ring-a: #00c978; --ring-b: #2dd4bf; --ring-c: #38bdf8;
  --ring-off: rgba(244, 244, 245, 0.10);
  --ring-off-a: 0.2;
  --glass: rgba(24, 26, 24, 0.72);
}
html.light .id-ui {
  color-scheme: light;
  --bg: #f5f6f5;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f9faf9;
  --surface-3: #eef1ee;
  --border: #e2e7e1;
  --border-strong: #cfd7ce;
  --text: #0e1c0f;
  --text-2: #4c584c;
  --text-3: #606c60;
  --brand: #00804d;
  --brand-hover: #00693e;
  --brand-ink: #ffffff;
  --brand-soft: rgba(0, 128, 77, 0.08);
  --brand-line: rgba(0, 128, 77, 0.3);
  --action: #18181b;
  --action-hover: #000000;
  --action-ink: #ffffff;
  --up: #00693e;
  --down: #b91c1c;
  --down-bg: rgba(239, 68, 68, 0.08);
  --down-line: rgba(185, 28, 28, 0.35);
  --warn: #92560a;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --info: #0f766e;
  --plus: #0369a1;
  --plus-bg: rgba(14, 165, 233, 0.1);
  --pro: #00693e;
  --pro-bg: rgba(0, 128, 77, 0.1);
  --field: #ffffff;
  --field-focus: #ffffff;
  --scrim: rgba(14, 28, 15, 0.42);
  --shadow-pop: 0 30px 80px -30px rgba(14, 28, 15, 0.4), 0 0 0 1px rgba(14, 28, 15, 0.08);
  --shadow-card: 0 1px 2px rgba(14, 28, 15, 0.04), 0 0 0 1px rgba(14, 28, 15, 0.06);
  --hero-bg: linear-gradient(180deg, #fafbfa 0%, #f2f4f2 100%);
  --ring-a: #00a863; --ring-b: #0d9488; --ring-c: #0284c7;
  --ring-off: rgba(14, 28, 15, 0.10);
  --ring-off-a: 0.22;
  --glass: rgba(255, 255, 255, 0.78);
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.id-ui {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: "Inter", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
:where(.id-ui) img { max-width: 100%; display: block; -webkit-user-drag: none; user-select: none; }
.id-ui h1, .id-ui h2, .id-ui h3, .id-ui .f-sub, .id-ui .lead { text-wrap: balance; }
:where(.id-ui) :is(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.id-ui) button { cursor: pointer; }
:where(.id-ui) a { color: inherit; }
:where(.id-ui) :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
:where(.id-ui) svg.lucide { width: 1em; height: 1em; flex: none; }
.id-ui .mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.id-ui .sr-only, .id-ui .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.id-ui .logo-light { display: none !important; }
html.light .id-ui .logo-light { display: block !important; }
html.light .id-ui .logo-dark { display: none !important; }
html.light .id-ui .id-product-terminal { filter: grayscale(1) invert(1); }
.id-app { container: app / inline-size; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.id-app > main { flex: 1 0 auto; display: flex; flex-direction: column; }
.view-enter { animation: viewIn .42s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view-enter { animation: none; } }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 28px; position: relative; }
@container app (max-width: 640px) { .wrap { padding-inline: 18px; } }

/* ---------- Botões ---------- */
.btn {
  --h: 40px; --r: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: var(--r);
  border: 1px solid transparent; background: var(--action); color: var(--action-ink);
  font-weight: 600; font-size: 14.5px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, opacity .15s;
}
.btn:hover { background: var(--action-hover); }
.btn:active { transform: scale(.985); }
.btn-lg { --h: 50px; --r: 12px; padding: 0 22px; font-size: 15.5px; }
.btn-sm { --h: 32px; --r: 8px; padding: 0 12px; font-size: 13.5px; }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-quiet { background: transparent; color: var(--text-2); }
.btn-quiet:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { background: var(--down); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); background: var(--down); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn.is-loading { opacity: .8; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--brand); text-decoration: none; font-weight: 600; background: none; border: 0; padding: 0; }
.link:hover { text-decoration: underline; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2);
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.theme-toggle-btn {
  width: 36px; height: 36px; flex: 0 0 36px; display: inline-grid; place-items: center;
  padding: 0; border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--text); line-height: 1;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.theme-toggle-btn:hover, .theme-toggle-btn:active {
  background: color-mix(in srgb, var(--text) 8%, transparent);
  border-color: var(--border);
}
.theme-toggle-btn:focus-visible { box-shadow: 0 0 0 3px var(--brand-soft); }
.theme-toggle-btn i { font-size: 14px; line-height: 1; }

/* ---------- Marca ---------- */
.mark { display: inline-block; color: var(--text); }
.mark svg { display: block; width: 100%; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.015em; font-size: 16.5px; }
.brand .mark { width: 16px; height: 24px; }
.brand .id-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 7px; margin-left: 2px;
  border-radius: 6px; background: var(--text); color: var(--bg); font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
}

/* ---------- Cabeçalho ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(170%) blur(20px); -webkit-backdrop-filter: saturate(170%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.hdr.is-stuck { border-bottom-color: var(--border); }
.hdr-row { height: 60px; display: flex; align-items: center; gap: 18px; }
.hdr-site .hdr-row { position: relative; }
.nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; margin: 0; }
.nav a { padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 14px; }
.nav a:hover { color: var(--text); background: var(--surface-3); }
.hdr-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr-site .hdr-actions { margin-left: auto; }
.hdr-flow .hdr-row { height: auto; min-height: 60px; flex-wrap: wrap; padding-block: 10px; }
.hdr-flow .hdr-actions { min-width: 0; max-width: 100%; }
.hdr-flow .hdr-actions .btn-quiet { min-width: 0; height: auto; min-height: 32px; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; padding-block: 6px; }
.hdr-flow .hdr-actions .theme-toggle-btn { flex-shrink: 0; }
.avatar {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ring-a), var(--ring-c)); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .02em; border: 0;
}
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }
@container app (max-width: 860px) { .nav { display: none; } }
@container app (max-width: 520px) {
  .hdr-row { gap: 10px; height: 56px; }
  .hide-sm { display: none !important; }
}

/* ---------- Landing: hero ---------- */
.hero { position: relative; background: var(--hero-bg); padding: 28px 0 72px; text-align: center; overflow: hidden; }
.hero3d-wrap { position: relative; width: min(513px, 87.4cqw); margin: -18px auto 0; }
.hero3d {
  position: relative; width: 100%; aspect-ratio: 1 / 1.02; cursor: grab;
  -webkit-mask-image: radial-gradient(58% 54% at 50% 44%, #000 62%, transparent 100%);
  mask-image: radial-gradient(58% 54% at 50% 44%, #000 62%, transparent 100%);
}
.hero3d.is-drag { cursor: grabbing; }
.hero3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.hero3d.is-light { filter: drop-shadow(0 14px 30px rgba(0, 128, 77, .18)); }
.hero3d.is-dark { filter: drop-shadow(0 0 26px rgba(0, 201, 120, .26)) drop-shadow(0 18px 40px rgba(0, 201, 120, .14)); }
.hero3d-replay {
  position: absolute; right: 8%; bottom: 14%; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text-3); opacity: 0; transition: opacity .3s, color .15s, border-color .15s;
}
.hero3d-wrap:hover .hero3d-replay, .hero3d-replay:focus-visible { opacity: 1; }
.hero3d-replay:hover { color: var(--brand); border-color: var(--brand-line); }
@media (hover: none) { .hero3d-replay { opacity: .8; } }
.hero3d-fallback { position: absolute; inset: 0; display: none; place-items: center; }
.hero3d-fallback .mark { width: 22%; aspect-ratio: 222 / 333; color: var(--brand); filter: drop-shadow(0 0 28px var(--brand)); }
.hero3d.is-fallback .hero3d-fallback { display: grid; }
.hero h1 {
  margin: -34px auto 0; max-width: 17ch;
  font-size: clamp(38px, 6.2cqw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
}
.hero .lead { margin: 16px auto 0; max-width: 76ch; font-size: clamp(15px, 1.55cqw, 16.5px); color: var(--text-2); line-height: 1.5; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero .hero-cta .btn { min-width: 220px; }
.hero-points { list-style: none; padding: 0; margin: 26px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--text-2); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--brand); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@container app (max-width: 640px) {
  .hero { padding: 12px 0 56px; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- Landing: seções ---------- */
.sec { padding: 96px 0; border-top: 1px solid var(--border); }
.sec-hd { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.sec h2 { margin: 0; font-size: clamp(30px, 4.4cqw, 46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.sec-hd p { margin: 16px auto 0; color: var(--text-2); font-size: 17.5px; max-width: 60ch; }
@container app (max-width: 640px) { .sec { padding: 64px 0; } .sec-hd { margin-bottom: 32px; } .sec-hd p { font-size: 16px; } }

/* Produtos (bento) */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 28px;
  border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; text-decoration: none;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}
.tile:hover { transform: translateY(-3px); }
.tile-ic { width: 52px; height: 52px; border-radius: 13px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--text); color: var(--bg); }
.tile-ic img { width: 100%; height: 100%; object-fit: cover; }
.tile-ic.discord { background: #5865f2; }
.tile-ic.discord img { width: 60%; height: auto; }
.tile-ic.dark { background: #0b0c0b; }
.tile h3 { margin: 8px 0 0; font-size: 21px; letter-spacing: -0.02em; font-weight: 700; }
.tile p { margin: 0; color: var(--text-2); font-size: 15px; max-width: 42ch; }
.tile .dom { margin-top: auto; padding-top: 14px; font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.tile .dom .go { margin-left: auto; color: var(--brand); font-weight: 600; font-family: "Inter", sans-serif; font-size: 13.5px; display: inline-flex; gap: 4px; align-items: center; }
.tile-hero { grid-column: span 3; min-height: 420px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 32px; align-items: stretch; padding: 36px 0 0 36px; }
.tile-hero .copy { display: flex; flex-direction: column; gap: 10px; padding-bottom: 36px; }
.tile-hero h3 { font-size: 30px; }
.tile-hero .shot { align-self: end; border-radius: 14px 0 0 0; overflow: hidden; border: 1px solid var(--border-strong); border-right: 0; border-bottom: 0; box-shadow: 0 -20px 60px -30px rgba(0, 201, 120, .35); }
.tile-hero .shot img { width: 100%; height: auto; }
.tier-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); }
.chip.brand { background: var(--brand-soft); color: var(--brand); }
.chip.plus { background: var(--plus-bg); color: var(--plus); }
.chip.pro { background: var(--pro-bg); color: var(--pro); }
@container app (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .tile-hero { grid-column: auto; grid-template-columns: 1fr; padding: 28px 0 0 28px; min-height: 0; }
  .tile-hero .copy { padding: 0 28px 0 0; }
  .tile { min-height: 0; }
}

/* Segurança: demonstração */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split h2 { text-align: left; }
.split .lead { color: var(--text-2); font-size: 17.5px; margin: 16px 0 0; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.facts li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.facts li:first-child { border-top: 0; }
.facts .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 19px; }
.facts b { display: block; font-size: 15.5px; }
.facts span { color: var(--text-2); font-size: 14.5px; }
.demo {
  position: relative; border-radius: 28px; padding: 36px 28px; min-height: 440px;
  background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; display: grid; place-items: center;
}
.demo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, var(--brand-soft), transparent 70%); pointer-events: none; }
.demo-card { position: relative; width: 100%; max-width: 340px; text-align: center; }
.demo-note {
  position: absolute; left: 50%; top: 0; width: 100%; max-width: 340px; transform: translate(-50%, -30px); opacity: 0;
  display: grid; grid-template-columns: 38px 1fr; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 18px;
  background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-pop);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s;
}
.demo-note.on { transform: translate(-50%, 0); opacity: 1; }
.demo-note .app { width: 38px; height: 38px; border-radius: 10px; background: #000; display: grid; place-items: center; }
.demo-note .app .mark { width: 13px; height: 20px; color: #fff; }
.demo-note small { color: var(--text-3); font-size: 12px; }
.demo-note b { font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px; }
.demo-note p { margin: 2px 0 0; font-size: 13.5px; color: var(--text-2); }
.demo-note .code { font-family: "JetBrains Mono", monospace; color: var(--text); font-weight: 600; letter-spacing: .08em; }
.demo-title { margin-top: 92px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.demo-sub { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.demo .otp { margin-top: 22px; }
.demo-done { margin-top: 18px; height: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--brand); font-weight: 600; font-size: 14.5px; opacity: 0; transition: opacity .3s; }
.demo-done.on { opacity: 1; }
@container app (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .demo { min-height: 400px; } }

/* Privacidade */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reason { padding: 28px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-card); }
.reason .n { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--brand); font-weight: 600; }
.reason h3 { margin: 14px 0 6px; font-size: 19px; letter-spacing: -0.015em; }
.reason p { margin: 0; color: var(--text-2); font-size: 15px; }
.promises { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promise { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--border-strong); color: var(--text-2); font-size: 14.5px; }
.promise svg { color: var(--brand); font-size: 18px; margin-top: 2px; }
@container app (max-width: 860px) { .reasons, .promises { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; background: none; border: 0; text-align: left; font-weight: 600; font-size: 16.5px; }
.faq-q svg { transition: transform .25s; color: var(--text-3); font-size: 20px; }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--brand); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 0 20px; color: var(--text-2); max-width: 64ch; }

.cta-band { text-align: center; padding: 96px 0 104px; border-top: 1px solid var(--border); background: var(--hero-bg); }
.cta-mark { width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 18px; background: var(--text); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--border), 0 20px 50px -18px var(--brand); }
.cta-mark .mark { width: 19px; height: 29px; color: var(--bg); }
.cta-band h2 { font-size: clamp(30px, 4.4cqw, 44px); letter-spacing: -0.03em; margin: 0; font-weight: 800; }
.cta-band p { color: var(--text-2); margin: 12px 0 0; font-size: 17px; }

.ftr { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 13px; color: var(--text-3); background: var(--bg); }
.ftr-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ftr a { text-decoration: none; color: var(--text-2); }
.ftr a:hover { color: var(--text); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Fluxo (entrar, criar, boas-vindas) ---------- */
.flow-page { flex: 1 0 auto; display: flex; flex-direction: column; background: var(--hero-bg); }
.flow { width: 100%; max-width: 460px; margin: 0 auto; padding: 40px 24px 56px; flex: 1; }
.flow.wide { max-width: 760px; }
@container app (max-width: 520px) { .flow { padding: 24px 18px 40px; } }
.pair { display: flex; align-items: center; justify-content: center; gap: 0; margin: 4px auto 22px; }
.pair .t { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: var(--text); color: var(--bg); box-shadow: var(--shadow-card); overflow: hidden; }
.pair .t.id { background: var(--text); }
.pair .t.id .mark { width: 17px; height: 26px; color: var(--bg); }
.pair .t img { width: 100%; height: 100%; object-fit: cover; }
.pair .t.discord { background: #5865f2; } .pair .t.discord img { width: 60%; height: auto; }
.pair .t.dark { background: #0b0c0b; }
.pair .t svg.lucide, .tile-ic svg.lucide, .prod .p-ic svg.lucide { font-size: 24px; color: var(--bg); }
.pair .wire { position: relative; width: 64px; height: 2px; background-image: linear-gradient(90deg, var(--border-strong) 50%, transparent 0); background-size: 8px 2px; }
.pair .wire::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); animation: wire 1.8s ease-in-out infinite; }
@keyframes wire { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.solo-mark { width: 60px; height: 60px; margin: 4px auto 22px; border-radius: 16px; background: var(--text); display: grid; place-items: center; }
.solo-mark .mark { width: 18px; height: 27px; color: var(--bg); }

.f-title { margin: 0; text-align: center; font-size: clamp(27px, 4.6cqw, 34px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
.f-sub { margin: 12px auto 0; text-align: center; color: var(--text-2); font-size: 16px; max-width: 38ch; }
.f-sub b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.f-body { margin-top: 30px; }
.f-foot { margin-top: 26px; text-align: center; color: var(--text-2); font-size: 14.5px; }
.f-help { display: flex; justify-content: center; margin-top: 10px; }
.f-legal { margin: 30px auto 0; text-align: left; color: var(--text-3); font-size: 12.5px; display: flex; gap: 8px; justify-content: center; align-items: flex-start; }
.f-legal svg { margin-top: 2px; }

.btn-google {
  width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 15.5px; transition: background-color .15s, border-color .15s;
}
.btn-google:hover { background: var(--surface-3); }
.btn-google svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--text-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Campo com rótulo flutuante e botão interno */
.field { position: relative; }
.field input {
  width: 100%; height: 58px; padding: 22px 60px 6px 16px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--field); outline: none; font-size: 16.5px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field.plain input { padding-right: 16px; }
.field input:focus { border-color: var(--brand); background: var(--field-focus); box-shadow: 0 0 0 4px var(--brand-soft); }
.field label { position: absolute; left: 17px; top: 19px; color: var(--text-3); font-size: 16px; pointer-events: none; transition: transform .15s, font-size .15s, top .15s, color .15s; transform-origin: left top; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 9px; font-size: 12px; color: var(--text-2); }
.field.has-prefix input { padding-left: 37px; }
.field .prefix { position: absolute; left: 17px; top: 26px; font-size: 16.5px; color: var(--text-2); opacity: 0; transition: opacity .15s; }
.field.has-prefix input:focus ~ .prefix, .field.has-prefix input:not(:placeholder-shown) ~ .prefix { opacity: 1; }
.field.has-prefix label { left: 17px; }
.field.is-invalid input { border-color: var(--down); box-shadow: 0 0 0 4px var(--down-bg); }
.field.is-valid input { border-color: var(--brand-line); }
.field-go {
  position: absolute; right: 9px; top: 9px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: grid; place-items: center; background: transparent; color: var(--text-2); font-size: 18px; transition: all .15s;
}
.field-go.ready { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.field-go[disabled] { cursor: default; }
.field-go .spin { width: 16px; height: 16px; }
.field-state { position: absolute; right: 16px; top: 19px; display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; }
.field-state.ok { color: var(--brand); }
.field-state.bad { color: var(--down); }
.field-state.wait { color: var(--text-3); }
.field-msg { min-height: 22px; margin: 8px 2px 0; font-size: 13.5px; color: var(--text-2); display: flex; gap: 6px; align-items: flex-start; }
.field-msg.err { color: var(--down); }
.field-msg svg { margin-top: 3px; }
.suggest { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--text); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.suggest button { margin-left: auto; }

/* OTP */
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.otp .gap { display: none; }
.otp input {
  width: 100%; height: 64px; text-align: center; font-size: 26px; font-weight: 600; font-family: "JetBrains Mono", monospace;
  border-radius: 14px; border: 1px solid var(--border-strong); background: var(--field); outline: none; caret-color: var(--brand);
  transition: border-color .15s, box-shadow .15s, transform .2s, background-color .2s, color .2s;
}
.otp input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.otp input.filled { border-color: var(--border-strong); }
.otp { position: relative; }
.otp input.filled { animation: digitIn .22s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes digitIn { from { transform: scale(.86); } to { transform: none; } }
/* conferindo: uma luz verde percorre as caixas da esquerda para a direita */
.otp.is-checking input { color: var(--text-2); animation: otpScan 1.05s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 85ms); }
@keyframes otpScan {
  0%, 60%, 100% { border-color: var(--border-strong); box-shadow: none; transform: none; }
  25% { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), 0 0 22px -6px var(--brand); transform: translateY(-3px); color: var(--text); }
}
/* confirmado: cascata verde, uma caixa por vez */
.otp.is-ok input { animation: otpOk .55s cubic-bezier(.2, .9, .3, 1.35) both; animation-delay: calc(var(--i, 0) * 75ms); }
@keyframes otpOk {
  0% { transform: scale(1); }
  45% { transform: scale(1.1) translateY(-2px); background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
  100% { transform: none; background: var(--brand-soft); color: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand-line), 0 10px 30px -12px var(--brand); }
}
.otp.is-ok::after {
  content: ""; position: absolute; inset: -6px; border-radius: 18px; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  background-size: 260% 100%; background-position: 130% 0; mix-blend-mode: overlay;
  animation: otpShine .9s .5s ease-out both;
}
@keyframes otpShine { from { background-position: 130% 0; } to { background-position: -30% 0; } }
/* incorreto: cascata vermelha rápida */
.otp.is-bad input { animation: otpBad .3s ease both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes otpBad { to { border-color: var(--down); background: var(--down-bg); } }
.otp.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.okcheck { width: 22px; height: 22px; flex: none; display: inline-block; }
.okcheck svg { width: 100%; height: 100%; fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.okcheck circle { stroke-dasharray: 63; stroke-dashoffset: 63; animation: draw .5s ease-out forwards; }
.okcheck path { stroke-dasharray: 16; stroke-dashoffset: 16; animation: draw .35s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.otp-done { justify-content: center; align-items: center; color: var(--brand) !important; font-weight: 600; font-size: 15px; gap: 8px; min-height: 30px; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .otp input, .otp.is-ok::after { animation-duration: .01s !important; animation-delay: 0s !important; } }
@container app (max-width: 400px) { .otp { gap: 7px; } .otp input { height: 56px; font-size: 22px; } }
.code-followup { max-height: 140px; opacity: 1; transform: translateY(0); overflow: hidden; transition: max-height .55s cubic-bezier(.2,.8,.2,1), opacity .4s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.code-followup.is-dismissed { max-height: 0; opacity: 0; transform: translateY(-14px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .code-followup { transition: none; } }
.code-actions { display: flex; gap: 10px; margin-top: 18px; }
.code-actions .btn { flex: 1; }
.resend-ring { width: 16px; height: 16px; transform: rotate(-90deg); }
.resend-ring circle { fill: none; stroke-width: 3; }
.resend-ring .bg { stroke: var(--border-strong); }
.resend-ring .fg { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.back-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 20px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13.5px; max-width: 100%; }
.back-chip:hover { color: var(--text); border-color: var(--border-strong); }
.back-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { display: flex; justify-content: center; }

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 14.5px; margin-top: 16px; text-align: left; }
.alert svg { font-size: 18px; margin-top: 2px; }
.alert b { display: block; }
.alert.err { background: var(--down-bg); border: 1px solid var(--down-line); }
.alert.err svg { color: var(--down); }
.alert.warn { background: var(--warn-bg); }
.alert.warn svg { color: var(--warn); }
.alert.ok { background: var(--brand-soft); border: 1px solid var(--brand-line); }
.alert.ok svg { color: var(--brand); }
.alert .alert-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* Aceite */
.verified { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-card); }
.verified .ok-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.verified small { display: block; color: var(--text-3); font-size: 12.5px; }
.verified b { font-weight: 600; word-break: break-all; }
.docs { margin-top: 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.doc-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 16px; background: none; border: 0; border-top: 1px solid var(--border); text-align: left; }
.doc-row:first-child { border-top: 0; }
.doc-row:hover { background: var(--surface-2); }
.doc-row .d-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.doc-row b { display: block; font-weight: 600; font-size: 15px; }
.doc-row small { color: var(--text-3); font-size: 12.5px; }
.doc-row .chev { margin-left: auto; color: var(--text-3); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 4px 2px; cursor: pointer; font-size: 14.5px; color: var(--text-2); }
.check input { appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--border-strong); background: var(--field); flex: none; display: grid; place-items: center; margin: 0; transition: all .15s; }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { content: ""; width: 11px; height: 6px; border: 2.5px solid var(--brand-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.risk { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); font-size: 13.5px; color: var(--text); display: flex; gap: 10px; }
.risk svg { color: var(--warn); margin-top: 2px; font-size: 16px; }

/* Progresso do onboarding */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 auto 30px; max-width: 460px; }
.steps .s { display: grid; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.steps .bar { height: 4px; border-radius: 4px; background: var(--border-strong); overflow: hidden; }
.steps .bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 4px; transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.steps .s.done { color: var(--text-2); }
.steps .s.cur { color: var(--text); }

/* OPB-1078: optional final registration step. */
.id-discord .steps .s { color: var(--text-2); }
.id-discord .steps .s.cur { color: var(--text); }
.id-discord .pair { margin: 8px auto 26px; }
.id-discord .wire::after { animation: none; left: calc(50% - 4px); box-shadow: none; }
.id-discord .discord-benefits { margin-top: 28px; }
.id-discord .discord-benefits li { padding: 14px 0; }
.id-discord .discord-benefits b { font-size: 15px; }
.id-discord .discord-benefits div > span { display: block; margin-top: 3px; font-size: 14px; }
.id-discord .discord-actions { margin-top: 28px; }
.id-discord .discord-note { margin: 10px 0 16px; text-align: center; color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.id-discord .discord-actions .btn-quiet { min-height: 44px; }
@container app (max-width: 520px) {
  .steps .s { font-size: 10px; }
  .id-discord .pair { margin-bottom: 22px; }
}

.reason-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.reason-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.reason-list .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700; flex: none; }
.promise-list { list-style: none; padding: 14px 16px; margin: 18px 0 22px; border-radius: 14px; border: 1px dashed var(--border-strong); display: grid; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.promise-list li { display: flex; gap: 10px; align-items: flex-start; }
.promise-list svg { color: var(--brand); margin-top: 3px; }

.whoami { margin-top: 26px; padding: 26px; border-radius: 20px; text-align: center; background: var(--surface); box-shadow: var(--shadow-card); }
.whoami .avatar { margin: 0 auto 14px; }
.whoami .nm { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.whoami small { color: var(--text-3); font-size: 13px; display: block; margin-top: 4px; }
.stack { display: grid; gap: 10px; margin-top: 22px; }

/* Perguntas */
.q-count { text-align: center; font-size: 13px; color: var(--text-3); font-weight: 600; margin-bottom: 10px; }
.opts { display: grid; gap: 10px; margin-top: 26px; }
.opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container app (max-width: 520px) { .opts.two { grid-template-columns: 1fr; } }
.opt {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--border-strong); background: var(--surface); text-align: left; font-weight: 500; font-size: 15.5px;
  transition: border-color .15s, background-color .15s, transform .12s;
}
.opt:hover { border-color: var(--text-3); }
.opt:active { transform: scale(.99); }
.opt .box { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; transition: all .15s; }
.opt.multi .box { border-radius: 7px; }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.opt[aria-pressed="true"] .box, .opt[aria-checked="true"] .box { background: var(--brand); border-color: var(--brand); }
.opt[aria-pressed="true"] .box::after, .opt[aria-checked="true"] .box::after { content: ""; width: 10px; height: 5px; border: 2.5px solid var(--brand-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.opt .emo { font-size: 18px; color: var(--text-2); }
.q-actions { display: flex; gap: 10px; margin-top: 26px; }
.q-actions .btn { flex: 1; }
.q-actions .btn-quiet { flex: 0 0 auto; }

/* Username */
.name-sug { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.name-sug button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13.5px; font-family: "JetBrains Mono", monospace; }
.name-sug button:hover { border-color: var(--brand); color: var(--brand); }
.preview-card { margin-top: 22px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); display: flex; gap: 14px; align-items: center; }
.preview-card small { display: block; font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 2px; }
.preview-card .u { font-weight: 700; font-size: 16px; }
.preview-card .u span { color: var(--text-3); font-weight: 500; }
.preview-card .lvl { margin-left: auto; }

/* Planos */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
@container app (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; text-align: left;
  border: 1.5px solid var(--border-strong); background: var(--surface); transition: border-color .15s, transform .2s, box-shadow .2s;
}
.plan:hover { border-color: var(--text-3); }
.plan[aria-checked="true"] { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.plan .p-top { display: flex; align-items: center; gap: 8px; }
.plan .p-name { font-weight: 800; letter-spacing: .02em; font-size: 14px; }
.plan .badge { margin-left: auto; }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.plan .note { font-size: 13px; color: var(--text-2); min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px; font-size: 13.5px; color: var(--text-2); }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { color: var(--brand); margin-top: 3px; }
.plan .radio { position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; }
.plan[aria-checked="true"] .radio { border-color: var(--brand); background: var(--brand); }
.plan[aria-checked="true"] .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-ink); }
.plan .has-badge ~ .radio { display: none; }
.plan-foot { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.plan-foot p { margin: 0; font-size: 13.5px; color: var(--text-3); text-align: center; max-width: 52ch; }
.plan-foot .btn { min-width: 280px; }
@container app (max-width: 520px) { .plan-foot .btn { min-width: 0; width: 100%; } }

/* Brilho que atravessa o botão principal */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 10px 30px -12px var(--brand); }
.btn-shine::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: -60%; width: 45%; z-index: -1; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: btnShine 3.4s ease-in-out infinite;
}
html.light .id-ui .btn-shine::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); }
@keyframes btnShine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .btn-shine::after, .chip-pro::after { animation: none; display: none; } }

/* Marca Operebem dentro de botões */
.btn-mark .mark { width: 10px; height: 15px; color: currentColor; }
.btn-lg.btn-mark .mark { width: 12px; height: 18px; }

/* Planos no card do Terminal: foco no PRO */
.tier-row { align-items: center; }
.chip-dim { background: transparent; border: 1px solid var(--border); color: var(--text-3); font-weight: 500; }
.chip-pro {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 14px; border-radius: 999px; background: var(--brand); color: var(--brand-ink);
  font-weight: 800; font-size: 13.5px; letter-spacing: .03em; box-shadow: 0 8px 24px -10px var(--brand);
}
.chip-pro small { font-size: 12px; font-weight: 600; letter-spacing: 0; opacity: .8; padding-left: 8px; border-left: 1px solid color-mix(in srgb, var(--brand-ink) 25%, transparent); }
.chip-pro::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; left: -60%; width: 40%; z-index: -1; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  animation: btnShine 2.8s ease-in-out infinite;
}

/* ===== Rodada: ajustes do fluxo ===== */

/* Código: a própria linha de caixas é o carregamento, sem texto */
.otp.is-checking::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -12px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent); background-size: 45% 100%; background-repeat: no-repeat;
  animation: otpBar .9s ease-in-out infinite;
}
@keyframes otpBar { 0% { background-position: -60% 0; } 100% { background-position: 160% 0; } }

/* Aceite: documentos como links no próprio texto */
.check .doc-link { color: var(--brand); font-weight: 600; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .2s; }
.check .doc-link:hover, .check .doc-link:focus-visible { background-size: 100% 1px; }

/* Avatar no padrão do Terminal: uma inicial, fundo verde da marca */
.avatar { background: var(--brand) !important; color: var(--brand-ink) !important; border: 1px solid var(--border); font-size: 14.5px; font-weight: 700; overflow: hidden; position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { font-size: 30px; }
.acct-row .avatar { font-size: 18.5px; }
.whoami .avatar.lg { width: 84px; height: 84px; font-size: 35px; box-shadow: 0 14px 36px -14px var(--brand); }

/* Onboarding: mesma largura em todas as etapas */
.flow { max-width: 480px; }
.opts { margin-top: 24px; }

/* Username */
.sug-title { margin: 14px 2px 8px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }

/* Planos: lista vertical, PRO primeiro e em destaque */
.plans { grid-template-columns: 1fr !important; gap: 10px; margin-top: 26px; }
.plan { display: block; padding: 0; border-radius: 18px; overflow: hidden; }
.plan .p-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.plan .radio { position: static; flex: none; }
.plan .p-id { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.plan .p-id .note { flex-basis: 100%; min-height: 0; font-size: 13px; }
.plan .price { margin: 0; font-size: 22px; white-space: nowrap; }
.plan .p-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 11.5px; font-weight: 700; }
.plan .p-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.plan .p-more > span { overflow: hidden; }
.plan[aria-checked="true"] .p-more { grid-template-rows: 1fr; }
.plan ul { margin: 0; padding: 0 18px 16px 54px; }
.plan-pro { border-color: var(--brand-line); background: linear-gradient(180deg, var(--brand-soft), transparent 70%), var(--surface); }
.plan-pro[aria-checked="true"] { box-shadow: 0 0 0 4px var(--brand-soft), 0 18px 40px -22px var(--brand); }
.plan-foot { margin-top: 20px; }
.plan-foot .btn { min-width: 0; }

/* Botão turbo (PRO) */
.btn-turbo {
  position: relative; overflow: hidden; isolation: isolate; color: #00150c;
  background: linear-gradient(110deg, #00c978 0%, #22e39a 25%, #00b36b 50%, #22e39a 75%, #00c978 100%);
  background-size: 220% 100%; animation: turboFlow 1.6s linear infinite;
  box-shadow: 0 0 0 1px rgba(0, 201, 120, .5), 0 12px 34px -8px rgba(0, 201, 120, .75);
}
.btn-turbo:hover { background: linear-gradient(110deg, #00c978 0%, #22e39a 25%, #00b36b 50%, #22e39a 75%, #00c978 100%); background-size: 220% 100%; }
.btn-turbo::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: -40%; width: 30%; z-index: -1; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: turboSheen 1.3s ease-in infinite;
}
.btn-turbo svg { animation: turboZap 1.3s ease-in-out infinite; }
.turbo-lines { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; gap: 4px; z-index: -1; opacity: .55; }
.turbo-lines i { display: block; height: 2px; border-radius: 2px; background: rgba(0, 21, 12, .5); animation: turboLine .7s linear infinite; }
.turbo-lines i:nth-child(1) { width: 18px; } .turbo-lines i:nth-child(2) { width: 28px; animation-delay: .15s; } .turbo-lines i:nth-child(3) { width: 14px; animation-delay: .3s; }
@keyframes turboFlow { to { background-position: -220% 0; } }
@keyframes turboSheen { 0% { left: -40%; } 70%, 100% { left: 130%; } }
@keyframes turboZap { 0%, 100% { transform: none; } 50% { transform: translateY(-1px) scale(1.15); } }
@keyframes turboLine { 0% { transform: translateX(20px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(-24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn-turbo, .btn-turbo::after, .btn-turbo svg, .turbo-lines i, .otp.is-checking::after { animation: none; } }
/* =====================================================================
   Adaptadores: elementos que só existem no sistema real
   ===================================================================== */
.id-ui .d-none { display: none !important; }
.id-ui .center { display: flex; justify-content: center; }

/* Cabeçalho: seletor de tema igual ao do Terminal (sol no escuro, lua no claro) */
.theme-toggle-btn .theme-icon-moon { display: none; }
html.light .id-ui .theme-toggle-btn .theme-icon-sun { display: none; }
html.light .id-ui .theme-toggle-btn .theme-icon-moon { display: block; }
.theme-toggle-btn svg { width: 14px; height: 14px; }
.hdr-logout { margin: 0; }
.id-app > .hdr { flex: none; }
.hdr-site .nav a[aria-current="true"] { color: var(--text); }

/* Botões em espera (register-v2, onboarding-v2, onboarding-plans e login) */
.btn.is-loading:not(.auth-google-button), .btn[aria-busy="true"]:not(.auth-google-button) { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading:not(.auth-google-button) > *, .btn[aria-busy="true"]:not(.auth-google-button) > * { visibility: hidden; }
.btn.is-loading:not(.auth-google-button)::after, .btn[aria-busy="true"]:not(.auth-google-button)::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 2px solid var(--action-ink); border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn-brand.is-loading::after, .btn-brand[aria-busy="true"]::after, .btn-turbo.is-loading::after { border-color: var(--brand-ink); border-right-color: transparent; }
.btn-ghost.is-loading::after, .btn-quiet.is-loading::after, .btn-ghost[aria-busy="true"]::after, .btn-quiet[aria-busy="true"]::after { border-color: var(--text); border-right-color: transparent; }
.field-go.is-loading svg { display: none; }
.field-go.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.field-go.ready, .field-go.ready:not([disabled]) { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* Botão real do Google e separador */
.auth-google-option { display: grid; gap: 8px; }
.auth-google-button {
  width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 15.5px; transition: background-color .15s, border-color .15s, opacity .15s;
}
.auth-google-button:hover:not([disabled]) { background: var(--surface-3); }
.auth-google-button[disabled] { opacity: .6; cursor: default; }
.auth-google-button[aria-busy="true"][disabled] { opacity: 1; }
.auth-google-button-content { display: inline-flex; align-items: center; gap: 12px; }
.auth-google-logo { width: 20px; height: 20px; }
.auth-google-error, .auth-google-option small { margin: 0; font-size: 13px; color: var(--text-3); text-align: center; }
.auth-google-error { color: var(--down); }
.auth-choice-separator { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--text-3); font-size: 13px; }
.auth-choice-separator::before, .auth-choice-separator::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Captcha da Operebem e honeypot */
.id-captcha { margin-top: 12px; }
.public-auth-honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Alertas vindos dos scripts de login, cadastro e onboarding */
.id-alert-region:empty { display: none; }
.id-alert-region { margin-bottom: 14px; }
.id-ui .alert { display: block; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin: 0 0 14px; text-align: left; background: var(--surface); box-shadow: var(--shadow-card); color: var(--text); }
.id-ui .alert b { display: block; }
.id-ui .alert.is-error, .id-ui .alert.err, .id-ui .alert-danger { background: var(--down-bg); border: 1px solid var(--down-line); box-shadow: none; }
.id-ui .alert.is-success, .id-ui .alert.ok, .id-ui .alert-success { background: var(--brand-soft); border: 1px solid var(--brand-line); box-shadow: none; }
.id-ui .alert.warn, .id-ui .alert-warning { background: var(--warn-bg); box-shadow: none; }
.id-ui .alert a { color: var(--brand); font-weight: 600; }
.field-msg.err, .field-msg.is-error { color: var(--down); }
.field-msg.is-ok { color: var(--brand); font-weight: 600; }
#emailForm:has(> #emailError[hidden])::after { content: ""; display: block; height: 30px; }
#idLoginCodeStatus:not(:empty), #codeError:not([hidden]) { justify-content: center; min-height: 22px; margin-top: 10px; }

/* Código: input único sobre as seis caixas visuais */
.id-otp { position: relative; }
.otp-box {
  display: grid; place-items: center; height: 64px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--field);
  font-family: "JetBrains Mono", monospace; font-size: 26px; font-weight: 600; color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .2s, background-color .2s, color .2s;
}
.otp-box.is-active { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.otp-box.is-active:empty::after { content: ""; width: 2px; height: 26px; background: var(--brand); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.otp-box.filled { animation: digitIn .22s cubic-bezier(.2, .9, .3, 1.3); }
.id-otp .otp-input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; border-radius: 0; padding: 0; margin: 0;
  font-size: 16px; color: transparent; caret-color: transparent; background: transparent; cursor: text; box-shadow: none; animation: none !important;
}
.id-otp .otp-input:disabled { cursor: default; }
.otp.is-checking .otp-box { color: var(--text-2); animation: otpScan 1.05s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 85ms); }
.otp.is-ok .otp-box { animation: otpOk .55s cubic-bezier(.2, .9, .3, 1.35) both; animation-delay: calc(var(--i, 0) * 75ms); }
.demo .otp.is-settled .otp-box {
  animation: none; transition: none; transform: none;
  background: var(--brand-soft); color: var(--brand); border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand-line), 0 10px 30px -12px var(--brand);
}
.otp.is-bad .otp-box { animation: otpBad .3s ease both; animation-delay: calc(var(--i, 0) * 30ms); }
@container app (max-width: 400px) { .otp-box { height: 56px; font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .otp-box { animation-duration: .01s !important; animation-delay: 0s !important; } }
.code-followup .code-actions .btn[hidden] { display: none; }
.code-actions .btn:only-child { flex: 1; }
.solo-mark .solo-icon { width: 26px; height: 26px; color: var(--bg); }

/* Aceite e confirmação */
.verified-text { min-width: 0; flex: 1; }
.verified-text input { display: block; width: 100%; border: 0; padding: 0; margin: 0; background: transparent; color: var(--text); font-weight: 600; font-size: 15.5px; outline: none; text-overflow: ellipsis; }
#emailAcceptanceSubmit, #googleSubmit { margin-top: 18px; }

/* Perguntas: input nativo acessível sob o cartão */
.opts { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.opts legend { padding: 0; }
.flow-option { position: relative; }
.opt-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt { width: 100%; cursor: pointer; margin: 0; }
.opt .opt-label { flex: 1; }
.opt-input:checked + .opt { border-color: var(--brand); background: var(--brand-soft); }
.opt-input:checked + .opt .box { background: var(--brand); border-color: var(--brand); }
.opt-input:checked + .opt .box::after { content: ""; width: 10px; height: 5px; border: 2.5px solid var(--brand-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.opt-input:focus-visible + .opt { outline: 2px solid var(--brand); outline-offset: 2px; }
.opt-input:disabled + .opt { opacity: .5; cursor: default; }
.acquisition-back { margin: 18px 0 -6px; }
.acquisition-detail-title { display: block; width: 100%; font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; outline: none; }
.acquisition-other { margin-top: 12px; }
.q-actions { margin-top: 24px; }
.q-skip { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
#questionForm.is-submitting { opacity: .85; }

/* Username */
#usernameFeedback[data-state="unavailable"] { color: var(--down); }
#usernameFeedback[data-state="checking"] { color: var(--text-3); }
.name-sug .btn { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13.5px; font-family: "JetBrains Mono", monospace; color: var(--text); }

/* Confirmação de identidade */
.whoami .avatar.lg:empty::before { content: ""; }
.whoami .nm:empty { min-height: 1.2em; }

/* Planos: botão (<button>) sem aparência nativa */
.plans .plan { font: inherit; color: inherit; cursor: pointer; width: 100%; }
.plan-foot .btn { width: 100%; }
.plan-foot p:empty { display: none; }

/* Entrada: na etapa do código só aparece o bloco do código */
#loginModal[data-id-stage="code"] .id-stage-email,
#loginModal[data-id-stage="code"] > .pair,
#loginModal[data-id-stage="code"] > .solo-mark,
#loginModal[data-id-stage="code"] #loginAlertContainer:empty { display: none; }
#loginModal[data-id-stage="code"] > .f-body { margin-top: 0; }
.back-chip span { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--border-strong); }
/* CPF: mesma folga do preview, com ou sem mensagem abaixo do campo */
#cpfLookupSubmit { margin-top: 38px; }
#cpfError:not([hidden]) + #cpfLookupSubmit { margin-top: 8px; }

/* Google: da escolha até o redirecionamento o botão mostra que está conectando */
.auth-google-button-content { position: relative; }
.auth-google-button.is-loading, .auth-google-button.is-loading[disabled] { opacity: 1; cursor: progress; border-color: var(--border-strong); }
.auth-google-button.is-loading .auth-google-button-content::before {
  content: ""; position: absolute; left: -6px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: #4285f4; border-right-color: #34a853; border-bottom-color: #fbbc05;
  animation: spin .75s linear infinite;
}
.auth-google-button.is-loading .auth-google-logo { transform: scale(.82); transition: transform .2s ease; }
.auth-google-button.is-loading [data-id-google-label] { color: var(--text-2); }
.auth-google-button.is-loading::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, var(--brand-soft) 50%, transparent 70%);
  background-size: 250% 100%; animation: googleSweep 1.4s ease-in-out infinite;
}
.auth-google-button { position: relative; overflow: hidden; }
@keyframes googleSweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .auth-google-button.is-loading::after { animation: none; } .auth-google-button.is-loading .auth-google-button-content::before { animation-duration: 1.6s; } }
