/* =========================================================
   START FORMATURAS — Fila Virtual · Liquid Glass
   Preto · Branco · Vermelho
   ========================================================= */
@font-face {
  font-family: 'Archivo';
  src: url('../vendor/archivo.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --red: #e30613;
  --red-hot: #ff2d2d;
  --red-deep: #7a0008;
  --black: #050505;
  --ink: #0b0b0c;
  --white: #ffffff;
  --muted: rgba(255,255,255,.62);
  --faint: rgba(255,255,255,.38);
  --line: rgba(255,255,255,.14);
  --glass-1: rgba(255,255,255,.10);
  --glass-2: rgba(255,255,255,.035);
  --ok: #2fe08a;
  --warn: #ffb020;
  --radius: 26px;
  --radius-sm: 16px;
  --blur: 26px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font-family: inherit; }

/* ---------- Fundo líquido ---------- */
.liquid-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(120% 80% at 50% 120%, #1a0003 0%, transparent 60%),
  radial-gradient(90% 60% at 50% -10%, #120203 0%, transparent 70%),
  var(--black); }
.liquid-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.liquid-bg .b1 { width: 55vmax; height: 55vmax; left: -15vmax; top: -10vmax;
  background: radial-gradient(circle at 30% 30%, var(--red) 0%, rgba(227,6,19,.0) 65%); animation: drift1 26s ease-in-out infinite alternate; }
.liquid-bg .b2 { width: 45vmax; height: 45vmax; right: -12vmax; bottom: -14vmax;
  background: radial-gradient(circle at 60% 60%, var(--red-hot) 0%, rgba(255,45,45,0) 62%); animation: drift2 31s ease-in-out infinite alternate; opacity: .42; }
.liquid-bg .b3 { width: 30vmax; height: 30vmax; left: 40%; top: 35%;
  background: radial-gradient(circle, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 60%); animation: drift3 22s ease-in-out infinite alternate; opacity: .25; }
.liquid-bg .grain { position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  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 type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift1 { to { transform: translate(18vmax, 14vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vmax, -10vmax) scale(1.2); } }
@keyframes drift3 { to { transform: translate(-20vmax, 12vmax) scale(.8); } }

/* ---------- Vidro ---------- */
.glass {
  position: relative;
  background: linear-gradient(145deg, var(--glass-1), var(--glass-2));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
  backdrop-filter: blur(var(--blur)) saturate(170%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(255,255,255,.04),
    inset 1px 0 0 rgba(255,255,255,.06),
    0 24px 60px -20px rgba(0,0,0,.75);
  overflow: hidden;
  isolation: isolate;
}
.glass::before { /* reflexo especular */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(120% 60% at 20% -10%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%);
}
.glass.dense { background: linear-gradient(145deg, rgba(20,20,22,.78), rgba(10,10,12,.62)); }
.glass.red {
  background: linear-gradient(145deg, rgba(255,45,45,.42), rgba(160,0,10,.32));
  border-color: rgba(255,120,120,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 1px rgba(227,6,19,.25), 0 24px 70px -18px rgba(227,6,19,.65);
}
body.lite .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(22,22,24,.92); }
body.lite .glass.red { background: linear-gradient(145deg, #c4121c, #6d0007); }
body.lite .liquid-bg .blob { animation: none; filter: blur(50px); }

/* ---------- Tipografia ---------- */
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.display { font-stretch: 75%; font-weight: 800; letter-spacing: -.01em; line-height: .95; }
.num { font-variant-numeric: tabular-nums; font-stretch: 80%; font-weight: 800; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.red-txt { color: var(--red-hot); }
h1, h2, h3 { margin: 0; }

/* ---------- Layout utilitário ---------- */
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 18px 120px; }
.wrap.wide { max-width: 1280px; }
.row { display: flex; gap: 12px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.hidden { display: none !important; }
.pad { padding: 20px; }
.pad-lg { padding: 26px; }
.mt { margin-top: 14px; } .mt-lg { margin-top: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; }
.brand .sep { width: 1px; height: 22px; background: var(--line); }

/* ---------- Botões ---------- */
.btn {
  appearance: none; border: 1px solid var(--line); color: var(--white); cursor: pointer;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-radius: 18px; padding: 16px 18px; font-size: 16px; font-weight: 700; letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .12s ease, background .2s ease, opacity .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: linear-gradient(160deg, #ff3b3b, var(--red) 55%, #a1000c); border-color: rgba(255,140,140,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 14px 40px -12px rgba(227,6,19,.8); }
.btn.white { background: #fff; color: #000; border-color: #fff; }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.lg { padding: 20px; font-size: 18px; border-radius: 22px; }
.btn.sm { padding: 10px 12px; font-size: 13px; border-radius: 12px; }

/* ---------- Formulário ---------- */
label.field { display: flex; flex-direction: column; gap: 8px; }
label.field > span { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.input {
  width: 100%; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.35);
  color: #fff; padding: 16px; font-size: 17px; outline: none; transition: border .2s, box-shadow .2s;
}
.input:focus { border-color: rgba(255,80,80,.7); box-shadow: 0 0 0 4px rgba(227,6,19,.18); }
.input::placeholder { color: rgba(255,255,255,.3); }

/* Opções tipo cartão */
.choice { display: grid; gap: 10px; }
.choice.two { grid-template-columns: 1fr 1fr; }
.opt {
  position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 16px 14px;
  background: rgba(255,255,255,.04); cursor: pointer; transition: all .18s ease; user-select: none;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .t { font-weight: 800; font-size: 16px; font-stretch: 85%; letter-spacing: .02em; }
.opt .d { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.opt .tick { position: absolute; right: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--faint); display: grid; place-items: center; font-size: 13px; }
.opt.on { border-color: rgba(255,90,90,.75); background: linear-gradient(150deg, rgba(227,6,19,.32), rgba(227,6,19,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 30px -14px rgba(227,6,19,.9); }
.opt.on .tick { background: var(--red); border-color: var(--red); }
.opt.on .tick::after { content: '✓'; color: #fff; font-weight: 900; }

/* Toggle formando */
.switch-card { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.switch { flex: none; width: 54px; height: 32px; border-radius: 99px; background: rgba(255,255,255,.14); position: relative;
  border: 1px solid var(--line); transition: background .2s; margin-top: 2px; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; transition: transform .22s cubic-bezier(.3,1.4,.5,1); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch-card.on .switch { background: var(--red); border-color: rgba(255,120,120,.6); }
.switch-card.on .switch::after { transform: translateX(22px); }

/* ---------- Pílulas / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: 11px;
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); background: rgba(255,255,255,.06); }
.pill.red { background: rgba(227,6,19,.22); border-color: rgba(255,90,90,.55); color: #ffd5d5; }
.pill.white { background: #fff; color: #000; border-color: #fff; }
.pill.ok { background: rgba(47,224,138,.14); border-color: rgba(47,224,138,.5); color: #b9ffd9; }
.pill.warn { background: rgba(255,176,32,.14); border-color: rgba(255,176,32,.5); color: #ffe2a8; }
.star { color: var(--red-hot); }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--faint); }
.dot.live { background: var(--ok); box-shadow: 0 0 0 0 rgba(47,224,138,.6); animation: ping 1.8s infinite; }
.dot.red { background: var(--red-hot); box-shadow: 0 0 0 0 rgba(255,45,45,.6); animation: ping 1.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(140%); z-index: 999;
  padding: 14px 18px; border-radius: 16px; max-width: 92vw; font-weight: 600; transition: transform .35s cubic-bezier(.2,1.2,.4,1); }
#toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Overlay de chamada (celular) ---------- */
.callout { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 22px;
  background: radial-gradient(circle at 50% 40%, rgba(227,6,19,.55), rgba(5,5,5,.94) 70%); }
.callout .card { width: 100%; max-width: 460px; text-align: center; padding: 34px 24px; }
.callout .big { font-size: clamp(56px, 18vw, 88px); line-height: .9; white-space: nowrap; margin-top: 4px; }
.pulse-ring { position: absolute; inset: -40%; border-radius: 50%; border: 2px solid rgba(255,80,80,.5); animation: ring 2s ease-out infinite; pointer-events: none; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ---------- Diversos ---------- */
hr.sep { border: 0; height: 1px; background: var(--line); margin: 18px 0; }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi .v { font-size: 28px; }
.kpi .l { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.list { display: flex; flex-direction: column; gap: 8px; }
.empty { padding: 30px; text-align: center; color: var(--faint); }
a { color: #fff; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 8px; }

@media (prefers-reduced-motion: reduce) { .liquid-bg .blob { animation: none; } }
