/* Floresce — identidade: marinho, roxo, laranja, coral, verde. Poppins. */
:root {
  --marinho: #1E2A5A;
  --roxo: #3D2C6E;
  --roxo-2: #7E4FA8;
  --laranja: #F47B20;
  --coral: #F08A6B;
  --verde: #6F9E5B;
  --ink: #1F1E2E;
  --ink-2: #5B5A73;
  --ink-3: #8C8BA3;
  --line: #E6E4EE;
  --surface: #F7F6FA;
  --bg: #FFFFFF;
  --ok: #3E8E5A;
  --err: #C9392A;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30,42,90,.06), 0 10px 30px -18px rgba(30,42,90,.25);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; color: var(--roxo); text-wrap: balance; }
p { margin: 0; }
a { color: var(--roxo-2); }
button { font: inherit; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px 72px; }

/* topo */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 720px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.logo { font-weight: 800; letter-spacing: .06em; color: var(--marinho); text-decoration: none; font-size: 15px; white-space: nowrap; }
.logo small { display: block; font-weight: 500; letter-spacing: 0; font-size: 11px; color: var(--ink-3); }
.track { flex: 1; height: 5px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--laranja), var(--coral)); border-radius: 99px; transition: width .35s cubic-bezier(.2,.7,.3,1); }
.count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* tipografia */
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--laranja); font-weight: 700; }
.lede { color: var(--ink-2); font-size: 16.5px; }
.lema { font-weight: 600; letter-spacing: .04em; }
.lema .c1 { color: var(--marinho); } .lema .c2 { color: var(--laranja); } .lema .c3 { color: var(--roxo-2); } .lema .c4 { color: var(--verde); }
.muted { color: var(--ink-2); font-size: 14.5px; }
.tiny { color: var(--ink-3); font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* cartões e botões */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.btn { cursor: pointer; border: 1px solid transparent; border-radius: 11px; padding: 13px 22px; font-weight: 600; background: var(--laranja); color: #fff; transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); filter: none; }
.btn.roxo { background: var(--roxo-2); }
.btn.sm { padding: 9px 14px; font-size: 14px; }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; }
input[type=text], textarea { font: inherit; width: 100%; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
.alert { border: 1px dashed var(--line); border-radius: 11px; padding: 12px 16px; font-size: 14.5px; color: var(--ink-2); }
.erro { color: var(--err); font-size: 14.5px; }

/* escala */
.item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.q { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15.5px; }
.n { color: var(--ink-3); font-size: 13px; padding-top: 3px; min-width: 22px; font-variant-numeric: tabular-nums; }
.n.falta { color: var(--err); font-weight: 700; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-left: 34px; }
.scale-key { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin: 6px 0 0 34px; }
@media (max-width: 440px) { .scale, .scale-key { margin-left: 0; } .scale { gap: 5px; } }
.dot { display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; padding: 12px 0; font-weight: 600; color: var(--ink-3); background: var(--bg); transition: all .12s; }
.dot:hover { border-color: var(--roxo-2); color: var(--ink); }
.dot.on { background: var(--roxo-2); border-color: var(--roxo-2); color: #fff; }
.dot.falta { border-color: rgba(201,57,42,.45); }
.dot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dot:has(:focus-visible) { outline: 3px solid var(--laranja); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* cenários */
.sit { background: var(--surface); border-left: 4px solid var(--laranja); border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: 15px; color: var(--ink-2); }
.opt { display: flex; gap: 12px; width: 100%; text-align: left; cursor: pointer; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink); line-height: 1.45; font-size: 15px; transition: all .12s; position: relative; }
.opt:hover { border-color: var(--roxo-2); background: var(--surface); }
.opt.on { border-color: var(--roxo-2); background: #F3EEF9; box-shadow: inset 4px 0 0 var(--roxo-2); }
.opt .k { font-weight: 800; color: var(--ink-3); text-transform: uppercase; font-size: 13px; padding-top: 2px; }
.opt.on .k { color: var(--roxo-2); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt:has(:focus-visible) { outline: 3px solid var(--laranja); outline-offset: 2px; }
.opt + .opt { margin-top: 8px; }

/* resultado */
.hero { border-left: 6px solid var(--laranja); }
.hero h2 { font-size: 28px; }
.hero .estilo { font-size: 16px; font-weight: 500; color: var(--ink-3); margin-left: 8px; }
.frase { font-style: italic; font-weight: 500; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rank .t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14.5px; }
.rank .t b { font-weight: 600; }
.meter { height: 9px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; transition: width .6s cubic-bezier(.2,.7,.3,1); }
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tools li { border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; }
.tools b { display: block; font-size: 14.5px; }
.tools span { font-size: 14.5px; color: var(--ink-2); }
.box { border-radius: 11px; padding: 14px 16px; background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); }
.chip.solid { color: #fff; border-color: transparent; }
.tab-row { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.tab[aria-selected=true] { color: var(--roxo); border-bottom-color: var(--laranja); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.scroller { overflow-x: auto; }
figure { margin: 0; }
figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.leg { display: inline-flex; align-items: center; gap: 7px; }
.leg i { width: 20px; height: 10px; border-radius: 3px; display: inline-block; }
.leg i.a { background: rgba(126,79,168,.25); box-shadow: inset 0 0 0 2px var(--roxo-2); }
.leg i.b { height: 0; border-top: 2px dashed var(--marinho); border-radius: 0; }

/* painel */
.pessoas { list-style: none; margin: 0; padding: 0; }
.pessoas li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.pessoas li:last-child { border-bottom: 0; }
.x { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 8px; }
.x:hover { color: var(--err); }
.big { font-size: 34px; font-weight: 800; color: var(--roxo); line-height: 1; }
.big small { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-left: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--marinho); color: #fff; padding: 12px 18px; border-radius: 99px; font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }
@media print { .top, .btn, .noprint { display: none !important; } .card { box-shadow: none; break-inside: avoid; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
