/* Briefing Flash Sites — mobile-first */
:root {
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --ink: #0E1325;
  --ink-2: #4A5368;
  --ink-3: #868EA3;
  --line: #E6E9F1;
  --line-2: #D3D8E5;
  --blue: #3A6FFF;
  --purple: #7B5CFF;
  --grad: linear-gradient(100deg, #3A6FFF 0%, #7B5CFF 100%);
  --tint: #F3F4FF;
  --tint-2: #E9EBFF;
  --ok: #12A16B;
  --danger: #D2334F;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14, 19, 37, .04), 0 8px 24px rgba(14, 19, 37, .06);
  --dock-h: 140px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Topo */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 16px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.brand-bolt { width: 26px; height: 26px; stroke: none; }
.topbar-step { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.progress { position: sticky; top: 60px; z-index: 20; height: 3px; background: var(--line); }
.progress-fill { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 0 3px 3px 0; transition: width .5s var(--ease); }

/* Layout */
.layout { max-width: 1080px; margin: 0 auto; padding: 28px 16px 24px; }
.stage { min-width: 0; }
.summary-card { display: none; }

/* Etapa */
.step { outline: none; }
.step.enter { animation: enter .38s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.step-title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; outline: none; }
.step-hint { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.step-body { margin-top: 24px; display: grid; gap: 14px; }
.group-title { margin: 10px 0 -4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.note { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.note svg { width: 16px; height: 16px; margin-top: 2px; }

/* Cards selecionáveis */
.cards { display: grid; gap: 10px; }
.opt { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.opt:hover { border-color: var(--line-2); }
.opt.is-on { border-color: var(--blue); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border-color: transparent; box-shadow: 0 6px 20px rgba(58, 111, 255, .12); }
.opt-main { display: flex; gap: 14px; align-items: flex-start; padding: 16px; cursor: pointer; }
.opt-main input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(58, 111, 255, .28); }
.opt-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--blue); flex: none; transition: background .2s, color .2s; }
.opt.is-on .opt-icon { background: var(--grad); color: #fff; }
.opt-icon svg { width: 22px; height: 22px; }
.opt-text { flex: 1; min-width: 0; }
.opt-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.opt-label { font-weight: 600; font-size: 16px; }
.opt-price { font-weight: 600; font-size: 14px; color: var(--blue); white-space: nowrap; }
.opt-price.is-muted { color: var(--ink-3); font-weight: 500; }
.opt-desc { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--purple); font-size: 12px; font-weight: 600; }
.badge svg { width: 14px; height: 14px; }
.opt-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; margin-top: 1px; transition: all .2s; color: #fff; }
.opt-mark svg { width: 14px; height: 14px; stroke-width: 2.4; opacity: 0; }
.opt-mark.is-box { border-radius: 7px; }
.opt.is-on .opt-mark { background: var(--grad); border-color: transparent; }
.opt.is-on .opt-mark svg { opacity: 1; }
.opt.compact .opt-main { padding: 14px 16px; align-items: center; }
.opt.compact .opt-label { font-weight: 500; font-size: 15px; }
.opt-extra { padding: 0 16px 16px; display: grid; gap: 12px; animation: enter .3s var(--ease); }
.opt-extra .divider { height: 1px; background: var(--line); margin: 0 0 2px; }

/* Pílulas (grupos curtos) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; }
.pill span:hover { border-color: var(--line-2); }
.pill input:checked + span { border-color: transparent; background: var(--grad); color: #fff; }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(58, 111, 255, .28); }

/* Painel de grupo (etapa 04 / e-commerce) */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.panel-title { margin: 0; font-size: 14px; font-weight: 600; }
.panel-desc { margin: -6px 0 0; font-size: 13px; color: var(--ink-3); }

/* Adicionais */
.addon { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); border: 1.5px dashed var(--line-2); background: var(--surface); cursor: pointer; transition: all .2s; position: relative; }
.addon input { position: absolute; opacity: 0; pointer-events: none; }
.addon:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(58, 111, 255, .28); }
.addon.is-on { border-style: solid; border-color: transparent; background: linear-gradient(var(--tint), var(--tint)) padding-box, var(--grad) border-box; }
.addon.is-locked { cursor: default; }
.addon.is-on .opt-mark { background: var(--grad); border-color: transparent; }
.addon.is-on .opt-mark svg { opacity: 1; }
.addon-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.addon-tag { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.addon-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; align-items: baseline; }
.addon-name { font-weight: 600; }
.addon-price { font-weight: 600; font-size: 14px; color: var(--blue); white-space: nowrap; }
.addon.is-locked .addon-price { color: var(--ok); }
.addon-desc { margin: 0; font-size: 14px; color: var(--ink-2); }
.addon-list { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 14px; color: var(--ink-2); }
.addon-list li { display: flex; gap: 8px; }
.addon-list svg { width: 16px; height: 16px; color: var(--purple); margin-top: 3px; }
.addon-cta { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.addon .badge { margin-top: 2px; width: fit-content; }

/* Campos */
.field { display: grid; gap: 6px; }
.field-label { font-size: 14px; font-weight: 600; }
.field-label small { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  font-size: 16px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 96px; resize: vertical; }
.input::placeholder { color: #A6ADBF; }
.input:hover { border-color: var(--line-2); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58, 111, 255, .15); }
.field.has-error .input { border-color: var(--danger); }
.error { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 13px; font-weight: 500; color: var(--danger); }
.error svg { width: 15px; height: 15px; }
.row-input { display: flex; gap: 8px; }
.row-input .input { flex: 1; }
.icon-btn { display: grid; place-items: center; width: 50px; flex: none; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-3); cursor: pointer; }
.icon-btn:hover { color: var(--danger); border-color: var(--line-2); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 0; border: 0; background: none; color: var(--blue); font-size: 14px; font-weight: 600; cursor: pointer; }
.link-btn svg { width: 16px; height: 16px; }

.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; font-size: 14px; color: var(--ink-2); position: relative; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(58, 111, 255, .28); }
.consent.is-on { border-color: var(--blue); }
.consent.is-on .opt-mark { background: var(--grad); border-color: transparent; }
.consent.is-on .opt-mark svg { opacity: 1; }
.field.has-error .consent { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Navegação + barra financeira (mobile: fixa no rodapé) */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 0 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(14, 19, 37, .05);
}
.dock-total { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 10px; border: 0; background: none; cursor: pointer; text-align: left; }
.dock-total-label { display: block; font-size: 12px; color: var(--ink-3); }
.dock-total-value { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.dock-total-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.dock-total-meta svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.dock-total[aria-expanded="true"] .dock-total-meta svg { transform: rotate(180deg); }
.dock-details { max-height: 46vh; overflow: auto; padding: 14px 0 4px; border-bottom: 1px solid var(--line); animation: enter .25s var(--ease); }
.nav { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 20px; border-radius: 14px; border: 0; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .15s, box-shadow .2s, opacity .2s, background .2s; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(58, 111, 255, .3); }
.btn-ghost { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--line-2); color: var(--ink); }
.btn-ghost[hidden] { display: none; }
.btn-primary { flex: 1; background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(91, 100, 255, .28); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(91, 100, 255, .36); }
.btn-primary svg { stroke-width: 2; }

/* Resumo financeiro (compartilhado entre card lateral e barra mobile) */
.sum-title { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.sum-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sum-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sum-item span:first-child { color: var(--ink-2); }
.sum-item small { display: block; color: var(--ink-3); font-size: 12px; }
.sum-item .v { font-weight: 600; white-space: nowrap; text-align: right; }
.sum-item .v.ok { color: var(--ok); }
.sum-item .v.muted { color: var(--ink-3); font-weight: 500; }
.sum-sep { height: 1px; background: var(--line); margin: 14px 0; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum-total span:first-child { font-weight: 600; }
.sum-total .v { font-size: 20px; font-weight: 700; letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sum-total + .sum-total { margin-top: 8px; }
.sum-total.small .v { font-size: 16px; }
.sum-empty { margin: 0; font-size: 14px; color: var(--ink-3); }
.sum-empty-gap { margin-bottom: 12px; }
.sum-foot { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.45; }

/* Revisão final */
.review { display: grid; gap: 12px; }
.review-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.edit-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 0; border-radius: 8px; background: var(--tint); color: var(--blue); font-size: 13px; font-weight: 600; cursor: pointer; }
.edit-btn:hover { background: var(--tint-2); }
.edit-btn svg { width: 14px; height: 14px; }
.review dl { margin: 0; display: grid; gap: 8px; }
.review dl div { display: grid; gap: 1px; }
.review dt { font-size: 12px; color: var(--ink-3); }
.review dd { margin: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.review-block.finance { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.sent { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--tint); }
.sent p { margin: 0; font-size: 14px; color: var(--ink-2); }
.sent strong { color: var(--ink); font-size: 15px; }
.sent-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; }

.toast { position: fixed; left: 50%; top: 76px; z-index: 40; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); animation: enter .3s var(--ease); }
.toast[hidden] { display: none; }
.toast button { border: 0; background: none; color: #A9B8FF; font-weight: 600; cursor: pointer; padding: 0; white-space: nowrap; }
.noscript { max-width: 560px; margin: 40px auto; padding: 0 16px; }

@media (min-width: 560px) {
  .cards.two { grid-template-columns: 1fr 1fr; }
  .step-title { font-size: 30px; }
}

/* Desktop: card lateral, navegação abaixo da pergunta */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .topbar { padding: 0 32px; }
  .layout { display: grid; grid-template-columns: minmax(0, 640px) 300px; justify-content: center; gap: 56px; padding-top: 56px; padding-bottom: 72px; }
  .step-title { font-size: 34px; }
  .dock { position: static; padding: 0; margin-top: 32px; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .dock-total, .dock-details { display: none !important; }
  .btn-primary { flex: 0 1 auto; min-width: 200px; margin-left: auto; }
  .summary-card { display: block; position: sticky; top: 96px; align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
