/* Funil de diagnóstico: tela cheia por cima do site, promessa à esquerda e etapas à direita. */
.funil { position: fixed; inset: 0; z-index: 50; overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(900px 500px at 0% 0%, rgba(255, 107, 0, .14), transparent 60%), var(--s-bg); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.funil-top { display: flex; justify-content: space-between; align-items: center; height: 72px; max-width: 1180px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.funil-close { background: none; border: 1px solid var(--s-line); color: var(--s-muted); border-radius: 99px; padding: 8px 16px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.funil-close:hover { color: var(--s-fg); border-color: var(--accent); }
.funil-layout { max-width: 1180px; margin-inline: auto; padding: clamp(16px, 4vw, 40px) max(20px, env(safe-area-inset-right, 0px)) 64px max(20px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.funil-pitch { display: grid; gap: 20px; position: sticky; top: 24px; min-width: 0; }
.badge { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(255, 107, 0, .45); border-radius: 99px; padding: 7px 14px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.funil-pitch h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 900; }
.funil-pitch > p { color: var(--s-muted); font-size: 17px; max-width: 44ch; }
.facts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: 15px; }
.facts li { display: flex; gap: 10px; }
.facts li::before { content: "✓"; color: var(--accent); font-weight: 800; }
@media (max-width: 900px) { .funil-layout { grid-template-columns: 1fr; } .funil-pitch { position: static; } .funil-pitch .facts, .funil-pitch > p { display: none; } }

.funil-card { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 24px; padding: clamp(22px, 3.4vw, 34px); display: grid; gap: 20px; min-width: 0; box-shadow: 0 40px 90px -50px rgba(255, 107, 0, .45); }
.f-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--s-muted); }
.f-head b { color: var(--accent); font-variant-numeric: tabular-nums; }
.f-bar { height: 5px; border-radius: 99px; background: var(--s-line); overflow: hidden; margin-top: -10px; }
.f-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ff9a4d); border-radius: 99px; transition: width .35s ease; }
.f-back { justify-self: start; background: none; border: 0; color: var(--s-muted); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; }
.f-back:hover { color: var(--s-fg); }
.f-q { display: grid; gap: 6px; }
.f-q h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.f-q p { color: var(--s-muted); font-size: 15px; }
.f-options { display: grid; gap: 10px; }
.f-options.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .f-options.two { grid-template-columns: 1fr; } }
.f-opt { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--s-surface-2); border: 1px solid var(--s-line); border-radius: 14px; padding: 15px 16px; color: var(--s-fg); font: inherit; font-weight: 600; cursor: pointer; transition: border-color .15s, transform .15s; }
.f-opt:hover { border-color: var(--accent); }
.f-opt .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--s-line); flex: none; display: grid; place-items: center; }
.f-opt.multi .dot { border-radius: 6px; }
.f-opt[aria-pressed="true"] { border-color: var(--accent); background: rgba(255, 107, 0, .1); }
.f-opt[aria-pressed="true"] .dot { border-color: var(--accent); background: var(--accent); }
.f-opt[aria-pressed="true"] .dot::after { content: "✓"; color: var(--on-accent); font-size: 13px; font-weight: 900; }
.f-opt small { display: block; color: var(--s-muted); font-weight: 500; font-size: 14px; }
.f-field { display: grid; gap: 8px; }
.f-field label { font-size: 14px; font-weight: 700; color: var(--s-muted); }
.f-input { width: 100%; background: var(--s-surface-2); border: 1px solid var(--s-line); border-radius: 14px; padding: 15px 16px; color: var(--s-fg); font: inherit; font-size: 17px; }
textarea.f-input { min-height: 130px; resize: vertical; line-height: 1.5; }
.f-input::placeholder { color: #6d6c73; }
.f-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 0, .18); }
.f-input[aria-invalid="true"] { border-color: #ff5c5c; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .f-grid { grid-template-columns: 1fr; } }
.f-error { color: #ff5c5c; font-size: 14px; font-weight: 600; min-height: 1em; }
.f-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.f-actions .btn { flex: 1 1 auto; }
.f-skip { background: none; border: 0; color: var(--s-muted); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.f-note { font-size: 13px; color: var(--s-muted); }
.f-note a { color: var(--s-fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn[disabled] { opacity: .4; cursor: default; transform: none; }

/* Pré-diagnóstico */
.dx { display: grid; gap: 16px; }
.dx-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dx-head .badge { margin: 0; }
.dx-status { font-size: 13px; color: var(--s-muted); display: inline-flex; align-items: center; gap: 8px; }
.dx-status.working::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--s-line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dx-block { background: var(--s-surface-2); border: 1px solid var(--s-line); border-radius: 16px; padding: 18px; display: grid; gap: 8px; }
.dx-block h4 { margin: 0; font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.dx-block p { color: var(--s-fg); line-height: 1.55; }
.dx-raio { border-color: rgba(255, 107, 0, .5); background: rgba(255, 107, 0, .08); }
.dx-paths { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dx-paths li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--accent); }
.dx-paths b { font-family: var(--font-display); font-size: 16px; }
.dx-paths span { color: var(--s-muted); font-size: 15px; }

/* Agenda */
.sched { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
@media (max-width: 560px) { .sched { grid-template-columns: 1fr; } }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-head b { font-family: var(--font-display); }
.cal-head b::first-letter, .slots-title::first-letter { text-transform: uppercase; }
.nav-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--s-line); background: var(--s-surface-2); color: var(--s-fg); cursor: pointer; font-size: 18px; }
.nav-btn:disabled { opacity: .3; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--s-muted); padding-bottom: 4px; }
.day { aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: transparent; color: #55545b; font: inherit; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; position: relative; display: grid; place-items: center; }
.day.open { background: var(--s-surface-2); border-color: var(--s-line); color: var(--s-fg); cursor: pointer; }
.day.open::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.day.open:hover { border-color: var(--accent); }
.day[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.day[aria-pressed="true"]::after { background: var(--on-accent); }
.slots-title { font-size: 14px; font-weight: 700; color: var(--s-muted); margin-bottom: 12px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot { padding: 12px; border-radius: 12px; border: 1px solid var(--s-line); background: var(--s-surface-2); color: var(--s-fg); font: inherit; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--accent); }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.slots-empty { border: 1px dashed var(--s-line); border-radius: 14px; padding: 22px; color: var(--s-muted); text-align: center; font-size: 15px; }

/* Confirmação */
.summary { display: grid; border: 1px solid var(--s-line); border-radius: 16px; overflow: hidden; margin: 0; }
.summary div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--s-line); font-size: 15px; }
.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--s-muted); font-weight: 600; }
.summary dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .summary div { grid-template-columns: 1fr; gap: 2px; } }
.done-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(62, 207, 142, .14); color: #3ecf8e; display: grid; place-items: center; font-size: 28px; font-weight: 900; }
.copy-box { white-space: pre-line; background: var(--s-surface-2); border-radius: 12px; padding: 14px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .dx-status.working::before { animation: none; } .f-bar i { transition: none; } }
