/* Lead Scoring — Advocacia de Impacto
   Identidade: preto quente + dourado champagne, cantos chanfrados a 45 graus (eco do logo GS) */

:root {
  /* superfícies */
  --bg:        oklch(0.13 0.012 62);
  --bg-2:      oklch(0.175 0.016 60);
  --bg-3:      oklch(0.225 0.019 58);
  --bg-4:      oklch(0.275 0.021 56);
  --line:      oklch(0.32 0.022 60);
  --line-soft: oklch(0.245 0.018 60);

  /* dourado */
  --gold:      oklch(0.80 0.085 78);
  --gold-hi:   oklch(0.90 0.058 86);
  --gold-deep: oklch(0.60 0.078 62);
  --gold-dim:  oklch(0.42 0.045 62);

  /* texto */
  --tx:   oklch(0.95 0.008 72);
  --tx-2: oklch(0.75 0.013 68);
  --tx-3: oklch(0.58 0.015 64);

  /* classes */
  --a: oklch(0.85 0.105 82);
  --b: oklch(0.72 0.090 52);
  --c: oklch(0.62 0.032 62);
  --d: oklch(0.47 0.016 58);

  --chanfro: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 12% -10%, oklch(0.26 0.040 62 / 0.55), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 108%, oklch(0.22 0.032 58 / 0.45), transparent 62%);
  background-attachment: fixed;
  color: var(--tx);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, .display {
  font-family: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* ---------- utilitários ---------- */

.chanfro {
  clip-path: polygon(
    0 0, calc(100% - var(--chanfro)) 0, 100% var(--chanfro),
    100% 100%, var(--chanfro) 100%, 0 calc(100% - var(--chanfro))
  );
}

.wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------- topo ---------- */

.topbar {
  border-bottom: 1px solid var(--line-soft);
  background: oklch(0.13 0.012 62 / 0.82);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-in {
  max-width: 780px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tx-2);
  text-decoration: none;
}

.brand svg { display: block; }

.topbar a.nav {
  font-size: 13px;
  color: var(--tx-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.topbar a.nav:hover { color: var(--gold); border-bottom-color: var(--gold-dim); }

/* ---------- barra de progresso ---------- */

.progress {
  height: 2px;
  background: var(--line-soft);
  position: relative;
  overflow: hidden;
}

.progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width 0.55s var(--ease);
}

/* ---------- palco ---------- */

main { padding: 56px 0 96px; }

.step { animation: rise 0.5s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}

.q-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 18px;
  display: block;
}

.q-count b { color: var(--gold); font-weight: 600; }

.q-title {
  font-size: clamp(25px, 5vw, 35px);
  margin-bottom: 8px;
  max-width: 20ch;
}

.q-help {
  color: var(--tx-3);
  font-size: 14.5px;
  margin-bottom: 32px;
  max-width: 58ch;
}

/* ---------- opções ---------- */

.opts { display: flex; flex-direction: column; gap: 9px; }

/* listas longas, como a de áreas de atuação: sem atalho de teclado, sem marcador */
.opts.compacto .opt { padding: 13px 19px; font-size: 15px; }
.opts.compacto { gap: 6px; }
.opts.compacto .key { display: none; }

@media (min-width: 640px) {
  .opts.compacto { display: grid; grid-template-columns: 1fr 1fr; }
}

.alerta {
  display: inline-block;
  margin-left: 8px;
  font-size: 12.5px;
  color: oklch(0.70 0.080 42);
  border: 1px solid oklch(0.42 0.055 42);
  padding: 2px 9px;
  white-space: nowrap;
}

.opt {
  --chanfro: 11px;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  text-align: left;
  padding: 17px 20px;
  background: var(--bg-2);
  border: 0;
  color: var(--tx);
  font: inherit;
  font-size: 15.5px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: background 0.22s var(--ease), box-shadow 0.22s var(--ease),
              transform 0.22s var(--ease), color 0.22s var(--ease);
}

.opt:hover {
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--gold-dim);
  transform: translate3d(5px, 0, 0);
}

.opt:focus-visible {
  outline: 0;
  background: var(--bg-3);
  box-shadow: inset 0 0 0 2px var(--gold);
}

.opt.on {
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--gold);
  color: var(--gold-hi);
}

.key {
  flex: none;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  font-family: Sora, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--tx-3);
  background: var(--bg-4);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: inherit;
}

.opt:hover .key, .opt.on .key { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-dim); }

/* ---------- navegação ---------- */

.nav-row {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-back {
  background: none;
  border: 0;
  color: var(--tx-3);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.btn-back:hover { color: var(--gold); }
.btn-back[hidden] { display: none; }

/* fora da linha de navegação do quiz, o voltar ocupa a própria linha */
.step > .btn-back { display: block; margin-bottom: 24px; }

.hint { font-size: 12.5px; color: var(--tx-3); margin-left: auto; }
.hint b { color: var(--tx-2); font-weight: 500; }

/* ---------- botão principal ---------- */

.btn {
  --chanfro: 12px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 30px;
  background: var(--gold);
  color: oklch(0.16 0.020 62);
  border: 0;
  font-family: Sora, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn:hover { background: var(--gold-hi); transform: translate3d(0, -2px, 0); }
.btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.btn-ghost {
  background: transparent;
  color: var(--tx-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover { background: var(--bg-2); color: var(--gold); }

/* ---------- abertura ---------- */

.intro h1 { font-size: clamp(33px, 6.5vw, 52px); margin: 14px 0 20px; max-width: 15ch; }
.intro p { color: var(--tx-2); font-size: 16.5px; max-width: 54ch; margin-bottom: 12px; }

.field { margin: 34px 0 30px; max-width: 400px; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 9px;
}

.field input {
  --chanfro: 10px;
  width: 100%;
  padding: 14px 17px;
  background: var(--bg-2);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  color: var(--tx);
  font: inherit;
  font-size: 15.5px;
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.field input::placeholder { color: oklch(0.45 0.012 62); }
.field input:focus { outline: 0; background: var(--bg-3); box-shadow: inset 0 0 0 2px var(--gold); }

/* ---------- resultado ---------- */

.res-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 34px);
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}

.grade {
  --chanfro: 20px;
  flex: none;
  width: clamp(96px, 21vw, 130px);
  height: clamp(96px, 21vw, 130px);
  display: grid;
  place-items: center;
  font-family: Sora, sans-serif;
  font-size: clamp(50px, 11vw, 70px);
  font-weight: 700;
  line-height: 1;
  color: oklch(0.15 0.018 60);
  animation: pop 0.6s var(--ease) both;
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.86); }
  to   { opacity: 1; transform: none; }
}

.res-head h1 { font-size: clamp(24px, 4.6vw, 34px); margin-bottom: 9px; }
.res-lede { color: var(--tx-2); font-size: 15.5px; max-width: 46ch; }

.score-line {
  margin-top: 15px;
  font-size: 13.5px;
  color: var(--tx-3);
  font-variant-numeric: tabular-nums;
}

.score-line b { color: var(--gold); font-family: Sora, sans-serif; font-weight: 600; font-size: 16px; }

/* linhas de despacho */
.dispatch { margin: 30px 0 8px; }

.d-row {
  display: flex;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}

.d-row dt {
  flex: none;
  width: 138px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tx-3);
  padding-top: 3px;
}

.d-row dd { color: var(--tx); }
.d-row dd em { font-style: normal; color: var(--gold); }

/* barras dos eixos */
.axes { margin: 42px 0 8px; }

.axes > h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 20px;
}

.axis { margin-bottom: 17px; }

.axis-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 14px;
}

.axis-top span { color: var(--tx-2); }

.axis-top b {
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-3);
  font-variant-numeric: tabular-nums;
}

.track { height: 5px; background: var(--bg-3); overflow: hidden; }

.fill {
  height: 100%;
  width: 0;
  background: var(--gold-deep);
  transition: width 0.8s var(--ease);
}

.fill.strong { background: var(--gold); }
.fill.weak { background: var(--gold-dim); }

/* leituras */
.reads { margin-top: 42px; display: grid; gap: 30px; }

@media (min-width: 640px) { .reads { grid-template-columns: 1fr 1fr; gap: 34px; } }

.reads h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.reads .pos h2 { color: var(--gold-deep); }
.reads .neg h2 { color: oklch(0.66 0.075 42); }

.reads ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }

.reads li {
  font-size: 14.5px;
  color: var(--tx-2);
  padding-left: 19px;
  position: relative;
  line-height: 1.55;
}

.reads li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--gold-dim);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.reads .neg li::before { background: oklch(0.55 0.070 42); }

.empty { color: var(--tx-3); font-size: 14.5px; font-style: italic; }

.res-foot {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.disclaimer {
  margin-top: 26px;
  font-size: 13px;
  color: var(--tx-3);
  max-width: 62ch;
  line-height: 1.6;
}

/* ---------- página de critérios ---------- */

.doc { padding: 60px 0 110px; }
.doc h1 { font-size: clamp(31px, 5.6vw, 46px); margin: 14px 0 18px; max-width: 18ch; }

.doc .lede {
  color: var(--tx-2);
  font-size: 17px;
  max-width: 62ch;
  margin-bottom: 12px;
}

.doc h2 {
  font-size: clamp(21px, 3.4vw, 26px);
  margin: 68px 0 20px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.doc h3 { font-size: 17px; margin: 32px 0 12px; color: var(--gold); }
.doc p { color: var(--tx-2); max-width: 68ch; margin-bottom: 15px; font-size: 15.5px; }
.doc p strong, .doc li strong { color: var(--tx); font-weight: 600; }

.doc ul { margin: 0 0 16px 0; padding-left: 21px; color: var(--tx-2); max-width: 68ch; }
.doc li { margin-bottom: 8px; font-size: 15.5px; }

.tbl-scroll { overflow-x: auto; margin: 22px 0 26px; }

table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 14.5px; }

th, td {
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tx-3);
}

td { color: var(--tx-2); }
td:first-child { color: var(--tx); }

td.pts {
  font-family: Sora, sans-serif;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-right: 22px;
}

/* .t2: tabelas de duas colunas (resposta + pontos), com a nota à direita */
.t2 td:first-child { width: 99%; }
.t2 td.pts { text-align: right; width: 1%; padding-right: 0; }

/* fichas de classe */
.klass {
  --chanfro: 16px;
  background: var(--bg-2);
  padding: 26px clamp(20px, 4vw, 32px);
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.klass-top {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 17px;
  flex-wrap: wrap;
}

.badge {
  --chanfro: 9px;
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-family: Sora, sans-serif;
  font-size: 23px;
  font-weight: 700;
  color: oklch(0.15 0.018 60);
}

.klass-top h3 { margin: 0; color: var(--tx); font-size: 19px; }
.klass-range { font-size: 12.5px; color: var(--tx-3); font-variant-numeric: tabular-nums; }

.persona {
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--tx-2);
  line-height: 1.65;
}

.persona b { color: var(--gold); font-weight: 600; }

.note {
  --chanfro: 14px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  padding: 24px clamp(20px, 4vw, 30px);
  margin: 30px 0;
}

.note p:last-child { margin-bottom: 0; }

footer {
  border-top: 1px solid var(--line-soft);
  padding: 30px 0 46px;
  font-size: 13px;
  color: var(--tx-3);
}

footer a { color: var(--tx-2); }

/* dentro do painel, os títulos do bloco de resultado mantêm o tamanho de rótulo */
.doc .axes > h2, .doc .reads h2 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em;
  margin: 0 0 18px; padding-top: 0; border-top: 0;
}

.doc .axes { margin: 42px 0 8px; }

/* abas do painel interno */
.abas {
  display: flex; gap: 2px;
  max-width: 1020px; margin: 0 auto; padding: 0 24px;
  overflow-x: auto;
}

.aba {
  background: none; border: 0; color: var(--tx-3);
  font: inherit; font-size: 13.5px; cursor: pointer;
  padding: 12px 16px; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.aba:hover { color: var(--tx); }
.aba.on { color: var(--gold); border-bottom-color: var(--gold); }

/* ---- gerador de links ---- */

.presets { display: flex; flex-wrap: wrap; gap: 7px; margin: 26px 0 20px; }

.form-link {
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-soft);
  padding: clamp(20px, 3vw, 28px); --chanfro: 16px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.campos { display: grid; gap: 14px; }
@media (min-width: 700px) { .campos { grid-template-columns: 1fr 1fr; } }

.campos label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--tx-3);
}

.campos label span {
  text-transform: none; letter-spacing: 0; font-weight: 400;
  color: oklch(0.45 0.012 62); font-size: 11.5px;
}

.campos input {
  padding: 12px 14px; background: var(--bg); border: 0;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  color: var(--tx); font: inherit; font-size: 14.5px;
  text-transform: none; letter-spacing: 0;
}

.campos input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--gold); }

.previa {
  margin: 22px 0 20px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.previa code {
  display: block; margin-top: 9px;
  font-size: 13px; line-height: 1.55; color: var(--gold);
  overflow-wrap: anywhere;
}

.dica { margin-top: 12px; font-size: 13px; color: var(--tx-3); line-height: 1.55; }
.dica code { color: var(--tx-2); font-size: 12.5px; }

.acoes-link { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }
.acoes-link .btn { padding: 12px 24px; font-size: 13.5px; }
.acoes-link .erro { margin: 0; }

.linha-link { align-items: flex-start; }
.linha-link .linha-lead { flex: 1 1 280px; gap: 4px; }

.url-link {
  font-size: 12px; color: var(--tx-3); overflow-wrap: anywhere;
  display: block; margin-top: 3px;
}

.col-uso { flex-direction: column; gap: 0; align-items: flex-start; min-width: 54px; }
.col-uso strong { font-family: Sora, sans-serif; font-size: 20px; color: var(--gold); line-height: 1.15; }
.nota-uso { flex: 0 1 190px; }
.acoes-linha { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; margin-left: auto; }

.tag-status {
  display: inline-block; margin-left: 7px; padding: 2px 9px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; vertical-align: 1px;
}

.tag-status.ativo   { background: oklch(0.30 0.055 145); color: oklch(0.86 0.10 145); }
.tag-status.parado  { background: oklch(0.30 0.045 55);  color: oklch(0.84 0.09 62); }
.tag-status.sem-uso { background: var(--bg-4); color: var(--tx-3); }
.tag-status.novo    { background: var(--bg-4); color: var(--gold-deep); }

.ficha-lead {
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--gold-dim);
  padding: 20px 24px; margin-bottom: 34px; --chanfro: 13px;
  display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end;
}

.ficha-lead strong { display: block; font-size: 17px; margin-top: 4px; }
.ficha-cols { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--tx-2); }

.duas-colunas { display: grid; gap: 0 30px; }
@media (min-width: 700px) { .duas-colunas { grid-template-columns: 1fr 1fr; } }

/* ==========  agendamento  ========== */

.wrap-larga { max-width: 1020px; }
.estreito { max-width: 560px; }
.carregando { color: var(--tx-3); padding: 60px 0; }

.selo {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--gold);
  color: oklch(0.16 0.020 62);
  margin-bottom: 26px;
  --chanfro: 13px;
  animation: pop 0.5s var(--ease) both;
}

.obrigado-titulo { font-size: clamp(30px, 5.6vw, 46px); margin-bottom: 16px; max-width: 17ch; }
.obrigado-lede { color: var(--tx-2); font-size: 17px; max-width: 56ch; margin-bottom: 44px; }

.oferta {
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  padding: clamp(26px, 5vw, 42px);
  --chanfro: 20px;
}

.oferta h2 { font-size: clamp(22px, 3.6vw, 29px); margin: 12px 0 14px; max-width: 24ch; }
.oferta > p { color: var(--tx-2); max-width: 58ch; font-size: 15.5px; }

.passos { list-style: none; margin: 30px 0 34px; display: flex; flex-direction: column; gap: 15px; }

.passos li {
  display: flex; gap: 15px; align-items: flex-start;
  color: var(--tx-2); font-size: 15px; max-width: 62ch; line-height: 1.55;
}

.passos li span {
  flex: none; width: 25px; height: 25px;
  display: grid; place-items: center;
  font-family: Sora, sans-serif; font-size: 12px; font-weight: 600;
  color: var(--gold); background: var(--bg-4);
  box-shadow: inset 0 0 0 1px var(--gold-dim);
}

.obs { margin-top: 16px; font-size: 13px; color: var(--tx-3); }

/* bloco "o que você recebe" na abertura */
.entrega {
  margin: 36px 0 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.entrega .passos { margin: 16px 0 0; }

/* o texto vai num parágrafo próprio, senão o <strong> vira item flex
   e o conteúdo se parte em duas colunas */
.passos li > p { margin: 0; flex: 1; }
.passos li strong { color: var(--tx); font-weight: 600; }

/* materiais gratuitos na conclusão */
.materiais { margin: 52px 0 12px; }
.materiais h2 { font-size: clamp(20px, 3.2vw, 26px); margin: 12px 0 24px; max-width: 26ch; }

.mat-lista { display: grid; gap: 10px; }

.mat {
  display: block;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  padding: 20px 24px;
  text-decoration: none;
  --chanfro: 13px;
  transition: background 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}

.mat:hover {
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--gold-dim);
  transform: translate3d(5px, 0, 0);
}

.mat:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mat strong { display: block; color: var(--tx); font-size: 16px; margin-bottom: 5px; }
.mat span { display: block; color: var(--tx-3); font-size: 14px; line-height: 1.5; max-width: 60ch; }

.mat em {
  display: inline-block; margin-top: 11px;
  font-style: normal; font-size: 13px; font-weight: 600;
  color: var(--gold); letter-spacing: 0.02em;
}

.mat:hover em { color: var(--gold-hi); }

/* grade principal do agendamento */
.agendar-grid { display: grid; gap: 34px; }

@media (min-width: 900px) {
  .agendar-grid { grid-template-columns: 250px 1fr 190px; gap: 40px; align-items: start; }
}

.resumo h1 { font-size: clamp(24px, 3.6vw, 30px); margin: 12px 0 22px; }
.resumo-lista { display: flex; flex-direction: column; gap: 14px; }
.resumo-lista div { display: flex; flex-direction: column; gap: 2px; }

.resumo-lista dt {
  font-size: 11px; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--tx-3);
}

.resumo-lista dd { color: var(--tx); font-size: 14.5px; }
.resumo-nota { margin-top: 24px; font-size: 13px; color: var(--tx-3); line-height: 1.55; }

/* calendário */
.cal-topo {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}

.cal-topo strong {
  font-family: Sora, sans-serif; font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
}

/* só a inicial, senão "agosto de 2026" vira "Agosto De 2026" */
.cal-topo strong::first-letter,
.horarios h2::first-letter { text-transform: uppercase; }

.cal-nav {
  width: 34px; height: 34px; flex: none;
  background: var(--bg-2); border: 0; color: var(--tx-2);
  font-size: 19px; line-height: 1; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.cal-nav:hover { background: var(--bg-3); color: var(--gold); }

.cal-semana, .cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }

.cal-semana {
  margin-bottom: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--tx-3); text-align: center;
}

.cal-dia, .cal-vazio { aspect-ratio: 1; display: grid; place-items: center; }

.cal-dia {
  background: transparent; border: 0;
  color: var(--tx-3); font: inherit; font-size: 14.5px;
  font-variant-numeric: tabular-nums; cursor: not-allowed;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.cal-dia.livre {
  color: var(--tx); cursor: pointer;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.cal-dia.livre:hover { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--gold-dim); color: var(--gold-hi); }
.cal-dia.livre:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cal-dia.sel { background: var(--gold); color: oklch(0.16 0.020 62); font-weight: 600; box-shadow: none; }

/* horários */
.horarios h2 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--tx-2); margin-bottom: 16px;
}

.slots { display: grid; gap: 7px; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }

@media (min-width: 900px) { .slots { grid-template-columns: 1fr; } }

.slot {
  padding: 12px 10px; text-align: center;
  background: var(--bg-2); border: 0; color: var(--tx);
  font: inherit; font-size: 14.5px; font-variant-numeric: tabular-nums;
  cursor: pointer; --chanfro: 9px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}

.slot:hover { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-hi); }
.slot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.slots-vazio { color: var(--tx-3); font-size: 14px; }

.marcado {
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--gold-dim);
  padding: 15px 20px; margin: 22px 0 30px;
  color: var(--tx-2); font-size: 15px; --chanfro: 11px;
}

.marcado strong { color: var(--gold); }

.erro {
  color: oklch(0.72 0.12 32); font-size: 14px;
  margin: 6px 0 16px;
}

form .field { max-width: none; margin: 0 0 18px; }

/* ==========  painel interno  ========== */

.carga { display: grid; gap: 12px; margin: 30px 0 26px; }
@media (min-width: 700px) { .carga { grid-template-columns: repeat(3, 1fr); } }

.carga-item {
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-soft);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 3px;
}

.carga-item strong { font-size: 14px; }
.carga-num { font-family: Sora, sans-serif; font-size: 27px; font-weight: 600; color: var(--gold); line-height: 1.1; }
.carga-lbl { font-size: 12px; color: var(--tx-3); }

.filtros { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.filtros-canal { margin-top: -1px; }
.filtros-canal .chip { font-size: 12px; padding: 5px 12px; color: var(--tx-3); }

.chip {
  padding: 7px 15px; background: var(--bg-2); border: 0;
  color: var(--tx-2); font: inherit; font-size: 13px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.chip:hover { background: var(--bg-3); color: var(--gold); }
.chip.on { background: var(--gold); color: oklch(0.16 0.020 62); box-shadow: none; font-weight: 600; }

h2.sec {
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--tx-3);
  margin: 46px 0 14px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.lista { display: flex; flex-direction: column; }

.linha {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}

.linha-quando { flex: none; width: 82px; display: flex; flex-direction: column; }
.linha-quando strong { font-family: Sora, sans-serif; font-size: 14px; }
.linha-quando span { color: var(--gold); font-size: 13px; font-variant-numeric: tabular-nums; }
.linha-lead { flex: 1 1 190px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.linha-lead strong { font-size: 14.5px; }
.linha-score { flex: none; display: flex; align-items: center; gap: 9px; }
.linha-closer { flex: none; }
.linha-closer strong { color: var(--tx); font-size: 14px; }

.meta { color: var(--tx-3); font-size: 12.5px; overflow-wrap: anywhere; }

.mini-badge {
  width: 24px; height: 24px; display: grid; place-items: center;
  font-family: Sora, sans-serif; font-size: 12px; font-weight: 700;
  color: oklch(0.16 0.020 62);
}

.btn-link {
  background: none; border: 0; color: var(--tx-3);
  font: inherit; font-size: 13px; cursor: pointer; padding: 4px 0;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.btn-link:hover { color: var(--gold); }
.btn-link.perigo:hover { color: oklch(0.70 0.12 32); }

.form-bloqueio {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 18px 0 22px;
}

.form-bloqueio select, .form-bloqueio input {
  padding: 11px 13px; background: var(--bg-2); border: 0;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  color: var(--tx); font: inherit; font-size: 14px;
  color-scheme: dark;
}

.form-bloqueio input:focus, .form-bloqueio select:focus {
  outline: 0; box-shadow: inset 0 0 0 2px var(--gold);
}

.form-bloqueio input[type="text"] { flex: 1 1 150px; min-width: 0; }
.form-bloqueio .btn { padding: 11px 22px; font-size: 13.5px; }

.hook { border-bottom: 1px solid var(--line-soft); padding: 13px 0; }
.hook summary { cursor: pointer; font-size: 14px; display: flex; gap: 11px; align-items: center; flex-wrap: wrap; }
.hook summary code { color: var(--gold); font-size: 13px; }

.hook pre {
  margin-top: 12px; padding: 16px; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  font-size: 12.5px; line-height: 1.55; color: var(--tx-2);
  overflow-x: auto; white-space: pre;
}

@media (max-width: 560px) {
  .d-row { flex-direction: column; gap: 5px; }
  .d-row dt { width: auto; padding-top: 0; }
  .brand { font-size: 11.5px; letter-spacing: 0.1em; }
  .topbar a.nav { font-size: 12px; }
}

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