/* Onboarding: mesmo layout da Integração CRM do dashboard, na versão clara. */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400..800&family=Geist:wght@300..700&family=Geist+Mono:wght@400;500&display=swap');
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #f4f6fb; --bg2: #ffffff; --bg3: #eef1f8; --border: rgba(30,40,80,.10); --border2: rgba(30,40,80,.18);
  --accent: #3b5bdb; --green: #2b8a5e; --red: #c92a2a; --amber: #c26a1b; --text: #1b2033; --white: #10131f; --muted: #5f6680;
  --tint: rgba(59,91,219,.08); --tint-ring: rgba(59,91,219,.28);
  --mono: 'Geist Mono', ui-monospace, monospace; --sans: 'Geist', system-ui, sans-serif; --head: 'Sora', 'Geist', sans-serif;
  color-scheme: light;
}
html { background: var(--bg); }
body { margin: 0; background: radial-gradient(1100px 520px at 75% -10%, var(--tint), transparent 60%), var(--bg); background-attachment: fixed; color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app { max-width: 880px; margin: 0 auto; padding: 28px 20px 64px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 40px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand svg { width: 30px; height: 25px; fill: currentColor; }
.brand b { font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .26em; }
.pill-link { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border2); color: var(--muted); font-size: 13px; text-decoration: none; }
.pill-link:hover { color: var(--white); background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-ring); }
.pill-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.header { margin-bottom: 28px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; }
.title { font-family: var(--head); font-weight: 800; font-size: clamp(30px, 5vw, 44px); line-height: 1.04; letter-spacing: -.02em; color: var(--white); margin: 10px 0 0; text-wrap: balance; }
.subtitle { color: var(--muted); font-size: 14px; margin: 10px 0 0; line-height: 1.5; }
.teste { font-family: var(--sans); font-size: 11px; font-weight: 600; padding: 0 8px; line-height: 18px; border-radius: 99px; background: var(--tint); color: var(--accent); letter-spacing: 0; text-transform: none; font-style: normal; }

.stepper { display: flex; gap: 8px; margin: 0 0 12px; }
.step-seg { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.step-seg::before { content: ''; height: 4px; border-radius: 2px; background: var(--border2); }
.step-seg.done::before { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.step-seg.active::before { background: var(--accent); }
.step-seg span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-seg.active span { color: var(--white); font-weight: 600; }
.step-seg.done span { color: var(--text); }
.subs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.sub { padding: 4px 11px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--border); border-radius: 999px; font-size: 12.5px; color: var(--muted); }
.sub.feito { color: var(--green); }
.sub.atual { background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-ring); color: var(--accent); font-weight: 600; }

.card { background: var(--bg2); box-shadow: inset 0 0 0 1px var(--border); border-radius: 20px; padding: 24px; margin-bottom: 16px; }
.card-title { font-family: var(--head); font-size: 15px; font-weight: 600; color: var(--white); margin: 0 0 14px; }
h2.step { font-family: var(--head); font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: var(--white); margin: 0 0 4px; }
.quem { color: var(--muted); margin: 0 0 18px; }
.lbl { font-size: 12.5px; font-weight: 500; color: var(--muted); margin: 18px 0 8px; }
.card p { margin-top: 0; }

.choice-grid, .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.opt { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--border); transition: background .15s, box-shadow .15s, transform .15s; }
.opt:hover { background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-ring); transform: translateY(-1px); }
.opt:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.opt[disabled] { opacity: .5; cursor: not-allowed; background: var(--bg3); transform: none; box-shadow: inset 0 0 0 1px var(--border); }
.card .opt { background: var(--bg3); box-shadow: none; }
.card .opt:hover { background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-ring); }
.ico { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--accent); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.opt b { font-family: var(--head); font-size: 16px; font-weight: 600; color: var(--white); line-height: 1.25; }
.opt small { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: -8px; }
.opt em { font-style: normal; font-size: 12.5px; color: var(--accent); margin-top: auto; }

.check { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px; cursor: pointer; }
.check:has(input:checked) { border-color: var(--tint-ring); background: var(--tint); }
.check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.acoes { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.btn { font-family: var(--sans); font-size: 13.5px; font-weight: 600; min-height: 44px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--accent); box-shadow: 0 8px 22px -12px var(--accent); color: #fff; cursor: pointer; transition: transform .15s, filter .15s; text-decoration: none; display: inline-flex; align-items: center; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:disabled { opacity: .45; cursor: default; transform: none; filter: none; }
.btn.alt { background: transparent; box-shadow: inset 0 0 0 1px var(--border2); color: var(--text); font-weight: 500; min-height: 40px; padding: 8px 18px; }
.btn.alt:hover { background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-ring); filter: none; color: var(--white); }
.in { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; min-height: 44px; padding: 10px 14px; outline: none; }
.in:focus { border-color: var(--tint-ring); box-shadow: 0 0 0 3px var(--tint); }
.q { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 8px; margin-bottom: 8px; align-items: center; }
.q button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; }
.res { display: grid; grid-template-columns: 200px 1fr; gap: 6px 14px; margin: 0; }
.res dt { color: var(--muted); } .res dd { margin: 0; color: var(--text); }
.ges { display: grid; grid-template-columns: 1fr 76px auto; align-items: center; gap: 12px; padding: 13px 16px; background: var(--bg3); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px; }
.ges b { font-family: var(--head); font-weight: 600; color: var(--white); } .ges small { display: block; color: var(--muted); font-size: 12.5px; }
.ges strong { font-family: var(--head); font-size: 22px; font-weight: 700; text-align: right; color: var(--white); font-variant-numeric: tabular-nums; }
.msg { padding: 10px 0; border-bottom: 1px solid var(--border); }
.msg:last-child { border-bottom: 0; padding-bottom: 0; }
.msg small { display: block; color: var(--muted); font-size: 12px; }
.ok-txt { color: var(--green); } .err-txt { color: var(--red); }
.back { display: inline-block; color: var(--muted); font-size: 13px; text-decoration: none; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

.trk-t { font-family: var(--head); margin: 0; font-size: 18px; font-weight: 600; color: var(--white); }
.trk-t.bom { color: var(--green); } .trk-t.ruim { color: var(--red); }
.trk-d { margin: 3px 0 22px; color: var(--muted); }
.trk { position: relative; }
.linha-t { position: absolute; top: 11px; left: 7.14%; right: 7.14%; height: 2px; background: var(--border2); }
.linha-t b { display: block; height: 100%; background: var(--accent); transition: width .4s cubic-bezier(.22,1,.36,1); }
.trk ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.marco { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.marco i { width: 24px; height: 24px; border-radius: 50%; background: #d6dbe8; border: 5px solid var(--bg2); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; margin-bottom: 7px; }
.marco.feito i { background: var(--accent); border-color: var(--accent); }
.marco.agora i { background: var(--accent); border: 5px solid var(--bg2); box-shadow: 0 0 0 2px var(--accent); }
.marco small { color: var(--muted); font-size: 12px; min-height: 18px; }
.marco span { font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.marco.feito span, .marco.agora span { color: var(--white); }
.marco.agora span { font-weight: 600; }

@media (max-width: 720px) {
  .app { padding: 20px 16px 48px; } .topbar { margin-bottom: 28px; } .card { padding: 18px; border-radius: 18px; }
  .step-seg span { display: none; } .res { grid-template-columns: minmax(0, 1fr); gap: 0; } .res dd { margin-bottom: 8px; }
  .linha-t { display: none; } .trk ol { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .marco { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; text-align: left; align-items: center; }
  .marco i { grid-row: span 2; margin: 0; } .marco small { min-height: 0; order: 2; } .marco span { order: 1; }
  .q { grid-template-columns: minmax(0, 1fr) 32px; } .q input[data-c="1"] { grid-column: 1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Resumo do briefing */
.sint { font-size: 16px; line-height: 1.6; color: var(--text); margin: 0 0 18px; max-width: 70ch; }
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.num { background: var(--bg3); border-radius: 14px; padding: 13px 15px; }
.num small { display: block; color: var(--muted); font-size: 12px; }
.num b { font-family: var(--head); font-size: 16px; font-weight: 600; color: var(--white); line-height: 1.3; }
.alinhar { margin: 0; padding: 0; list-style: none; }
.alinhar li { padding: 9px 0 9px 14px; border-left: 2px solid var(--amber); margin-bottom: 7px; }
details.todas { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 14px; }
details.todas summary { cursor: pointer; color: var(--accent); font-weight: 500; }
details.todas .res { margin-top: 14px; }

/* Agenda e ata */
.g-ok { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 99px; background: var(--tint); color: var(--accent); font-size: 12.5px; font-weight: 500; margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ata { background: var(--bg3); border-radius: 14px; padding: 15px 17px; margin-top: 4px; }
.ata ul { margin: 8px 0 0; padding-left: 18px; }

/* v2: etapas abertas, trilhas e ficha da reunião */
.app { max-width: 1080px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--bg3); color: var(--text); font-size: 13px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--border); }
.chip:hover, .chip.sel { background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-ring); color: var(--accent); }
.trilhas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
.trilha { background: var(--bg2); box-shadow: inset 0 0 0 1px var(--border); border-radius: 18px; padding: 14px; }
.trilha.depois { opacity: .7; }
.tr-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.tr-h b { font-family: var(--head); font-size: 14px; font-weight: 600; color: var(--white); }
.tr-h span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.et { display: grid; grid-template-columns: 14px 1fr; gap: 9px; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 13px; line-height: 1.35; }
.et:hover, .et.sel { background: var(--tint); }
.et i { width: 12px; height: 12px; border-radius: 50%; margin-top: 3px; box-shadow: inset 0 0 0 2px var(--border2); }
.et.feito i { background: var(--green); box-shadow: none; }
.et.aberta i { background: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
.et.espera { color: var(--muted); }
.et small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.et.feito small { color: var(--green); }
.alinhar.azul li { border-left-color: var(--accent); }
.res.mini { grid-template-columns: 90px 1fr; margin-bottom: 4px; }
select.in { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
textarea.in { resize: vertical; font: inherit; color: inherit; }
.fsec { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.fsec h3 { font-family: var(--head); font-size: 15px; font-weight: 600; color: var(--white); margin: 0 0 10px; }
.fld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.fld span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.row2 .fld { margin-bottom: 0; }
.frente { background: var(--bg3); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.frente.off { opacity: .65; }
.frente .in { background: var(--bg2); }
.fr-h { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; align-items: center; }
.fr-h .nome { font-family: var(--head); font-weight: 600; font-size: 15px; }
.x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 20px; padding: 0 6px; }
.btn.sm { min-height: 34px; padding: 4px 14px; font-size: 12.5px; margin-top: 4px; }
.cb { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 150px 32px; gap: 8px; margin-bottom: 8px; align-items: center; }
.cb button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; }
@media (max-width: 720px) {
  .row3, .row2 { grid-template-columns: minmax(0, 1fr); }
  .cb { grid-template-columns: minmax(0, 1fr) 32px; } .cb > :nth-child(2), .cb > :nth-child(3) { grid-column: 1; }
  .fr-h { grid-template-columns: 1fr auto; } .fr-h select { grid-column: 1; }
}
.marco-a { display: contents; color: inherit; text-decoration: none; }
.marco:has(.marco-a) { cursor: pointer; }
.marco:has(.marco-a):hover span, .marco:has(.marco-a:focus-visible) span { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.check.feito-it { cursor: default; }
.res-ed { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 12px; }
