/* ADA8 · Fale com a ADA8 (/diagnostico). Complementa ferramentas.css, roi-dive.css e dx.css. */

/* ── Hero ──────────────────────────────────────────── */
.ct-origin { font-size: 1rem; color: #E7C46A; background: rgba(212,168,75,.1); border: 1px solid rgba(212,168,75,.3); border-radius: 99px; padding: .4rem 1rem; margin: 0; }
.ct-origin[hidden] { display: none; }
.hero-start .btn-ghost-light { font-size: 1rem; padding: .85rem 1.4rem; }
.hero-start [hidden] { display: none; }

/* ── Como funciona ─────────────────────────────────── */
.ct-how h2, .ct-form-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; color: var(--gray-1000); margin: 0 0 1rem; }
.ct-steps { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.ct-steps li { background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 1.1rem 1.1rem 1.2rem; }
.ct-steps h3 { font-size: 1.1rem; font-weight: 500; margin: .6rem 0 .35rem; color: var(--gray-1000); }
.ct-steps p { font-size: 1.05rem; line-height: 1.55; color: var(--gray-700); margin: 0; }
.ct-steps [data-cat="voce"] { --c: #5b7fb0; }
.ct-steps [data-cat="projeto"] { --c: #3f8f80; }
.ct-steps [data-cat="org"] { --c: #b8892c; }

/* ── Formulário ────────────────────────────────────── */
.ct-form-sec { scroll-margin-top: 90px; }
.ct-card { padding: 1.75rem 1.75rem 1.5rem; }
.ct-form-head { margin-bottom: 1.25rem; }
.ct-form-head h2 { margin-bottom: .35rem; }
.ct-form-head .hint { font-size: 1rem; margin: 0; }
.ct-link { font: inherit; color: var(--moss-700); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ct-link:hover { color: var(--ink-700); }
.req { color: var(--brass-700); margin-left: .15rem; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.ct-field { display: grid; gap: .4rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.ct-field.full { grid-column: 1 / -1; }
.ct-field label, .ct-field legend { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--gray-1000); font-weight: 500; padding: 0; margin-bottom: .4rem; }
.ct-field label { margin-bottom: 0; }
.ct-opt { font-weight: 400; color: var(--gray-500); font-size: .9rem; margin-left: .35rem; }
.ct-field input, .ct-field select, .ct-field textarea { width: 100%; font: inherit; font-size: 1.05rem; color: var(--gray-1000); background: #FCFBF8;
  border: 1px solid var(--gray-300); border-radius: 8px; padding: .75rem .9rem; transition: border-color .2s, box-shadow .2s; }
.ct-field textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
.ct-field select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6560' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #A39D96; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { outline: none; border-color: var(--moss-600); box-shadow: 0 0 0 3px rgba(115,134,120,.2); background: #fff; }
.ct-field.has-error input, .ct-field.has-error textarea { border-color: var(--danger); }
.ct-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-pill { position: relative; cursor: pointer; }
.ct-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ct-pill span { display: inline-block; font-size: 1rem; padding: .5rem .95rem; border-radius: 99px; border: 1px solid var(--gray-300); background: #FCFBF8; color: var(--gray-700);
  transition: background .15s, border-color .15s, color .15s; }
.ct-pill:hover span { border-color: var(--moss-600); color: var(--gray-1000); }
.ct-pill input:checked + span { background: var(--moss-700); border-color: var(--moss-700); color: #fff; }
.ct-pill input:focus-visible + span { outline: 2px solid var(--moss-600); outline-offset: 2px; }
.ct-err { color: var(--danger); font-size: 1rem; margin: 1rem 0 0; min-height: 0; }
.ct-err:empty { display: none; }
.ct-submit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 1.25rem; border-top: 1px solid var(--gray-300); }
.ct-submit .btn { font-size: 1.05rem; padding: .85rem 1.5rem; }
.ct-submit .hint { margin: 0; }

.ct-done { text-align: center; padding: 2.5rem 1.75rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.ct-done[hidden] { display: none; }
.ct-done:focus { outline: none; }
.ct-done-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--ok); background: rgba(63,107,74,.1); border: 1px solid rgba(63,107,74,.3); }
.ct-done h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 500; letter-spacing: -.02em; margin: 0; }
.ct-done p { font-size: 1.1rem; line-height: 1.6; color: var(--gray-700); max-width: 52ch; margin: 0; overflow-wrap: anywhere; }
.ct-done-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: .6rem; }
.ct-direct { text-align: center; color: var(--gray-500); font-size: 1rem; margin: 1.75rem 0 0; }
.ct-direct a { color: var(--moss-700); text-decoration: underline; text-underline-offset: 3px; }

/* ── Conversa no overlay ───────────────────────────── */
.dx-step[data-dim="voce"] { color: rgba(168,196,236,.95); }
.dx-step[data-dim="projeto"] { color: rgba(127,227,210,.9); }
.dx-step[data-dim="org"] { color: rgba(231,196,106,.95); }
.ct-talk .dive-form[hidden], .ct-chips[hidden], .ct-review[hidden] { display: none; }
.ct-talk .dive-form, .ct-talk .dx-free { opacity: 0; animation: fade-up .6s ease .35s forwards; }
.ct-talk .is-leaving { animation: dx-out .4s ease forwards !important; }
.ct-talk .dx-textarea { font-size: 1.05rem; }
.ct-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.ct-chip { font-size: 1rem; padding: .5rem .95rem; }
.ct-chip[aria-pressed="true"] { background: rgba(127,227,210,.2); border-color: #7FE3D2; color: #F1FAF6; box-shadow: 0 0 18px rgba(127,227,210,.2); }
.ct-chip[aria-pressed="true"]::before { content: '✓ '; color: #7FE3D2; }
.ct-status { min-height: 0; font-size: 1rem; color: rgba(233,244,239,.7); }
.ct-status:empty { display: none; }
.ct-status.is-err { color: #F2B8A8; }
.ct-dive.is-busy .ct-review { opacity: .55; pointer-events: none; }

.ct-review { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; text-align: left;
  max-height: 52vh; overflow-y: auto; }
.ct-review li:nth-child(7) { grid-column: 1 / -1; }
.ct-dive.is-review .dive-q { min-height: 0; }
.ct-dive.is-review .ct-talk { width: min(860px, calc(100% - 2.5rem)); }
.ct-rev { width: 100%; height: 100%; font: inherit; text-align: left; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem;
  color: #F1FAF6; background: rgba(3,20,26,.5); border: 1px solid rgba(127,227,210,.18); border-radius: 12px; padding: .55rem .8rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; animation: fade-up .5s ease forwards; transition: background .2s, border-color .2s; }
.ct-rev:hover { background: rgba(127,227,210,.1); border-color: rgba(127,227,210,.45); }
.ct-rev:focus-visible { outline: 2px solid #7FE3D2; outline-offset: 2px; }
.ct-rev-k { grid-column: 1; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(233,244,239,.55); }
.ct-rev-e { grid-column: 2; grid-row: 1; font-size: .8rem; color: rgba(127,227,210,.75); }
.ct-rev-v { grid-column: 1 / -1; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ct-rev-v.is-empty { color: rgba(233,244,239,.4); }

@media (max-width: 900px) {
  .ct-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-card { padding: 1.35rem 1.1rem 1.2rem; }
  .ct-submit .btn { width: 100%; justify-content: center; }
  .hero-start .btn { width: 100%; justify-content: center; }
  .ct-chip { font-size: .85rem; padding: .34rem .7rem; }
  .ct-chips { gap: .32rem; }
  .ct-dive.is-review .ct-talk { gap: .45rem; }
  .ct-review { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: .32rem; max-height: none; }
  .ct-review li:nth-child(2), .ct-review li:nth-child(4), .ct-review li:nth-child(7) { grid-column: 1 / -1; }
  .ct-rev { padding: .4rem .6rem; border-radius: 10px; }
  .ct-rev-k, .ct-rev-e { font-size: .75rem; }
  .ct-rev-v { font-size: .9rem; -webkit-line-clamp: 2; max-height: 2.8em; align-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-talk .dive-form, .ct-talk .dx-free, .ct-rev { animation-duration: .01s !important; animation-delay: 0s !important; }
}
