/* ADA8 · Calculadora de ROI · análise guiada (mergulho). */

.hero-start { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: .35rem; }
.hero-start .btn { font-size: 1rem; padding: .85rem 1.4rem; }
.hero-start .btn-start { position: relative; background: var(--moss-600); color: var(--ink-900); box-shadow: 0 0 0 0 rgba(127,227,210,.35); animation: start-breath 3.2s ease-in-out infinite; }
.hero-start .btn-start:hover { background: var(--moss-500); }
@keyframes start-breath { 50% { box-shadow: 0 0 0 8px rgba(127,227,210,0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(127,227,210,.28); } }
.hero-start-note { font-size: .9rem; color: rgba(245,240,229,.5); }

/* ── Overlay ───────────────────────────────────────── */
.dive { position: fixed; inset: 0; z-index: 1000; overflow: hidden; color: #E9F4EF; font-family: 'Space Grotesk', system-ui, sans-serif;
  background: #031014; opacity: 0; transition: opacity .6s ease; }
.dive[hidden] { display: none; }
.dive.is-open { opacity: 1; }
.dive-sea, .dive-surface, .dive-veil { position: absolute; inset: 0; pointer-events: none; }
.dive-sea { background:
  radial-gradient(ellipse 70% 55% at 50% 38%, rgba(30,92,96,.35) 0%, rgba(4,26,32,0) 70%),
  linear-gradient(180deg, #0B3A43 0%, #062229 38%, #03141A 72%, #020B0F 100%); }
.dive-surface { background:
  radial-gradient(ellipse 120% 60% at 50% -10%, rgba(214,240,236,.95) 0%, rgba(120,190,190,.55) 35%, rgba(20,80,90,0) 75%),
  linear-gradient(180deg, #CFE7E3 0%, #6FA9AA 30%, #1D5A62 65%, #0B3A43 100%);
  opacity: 1; transition: opacity 2.6s cubic-bezier(.45,0,.25,1); }
.dive.is-deep .dive-surface { opacity: 0; }
.dive.is-rising .dive-surface { opacity: 1; transition-duration: 2s; }
.dive-veil { background: var(--paper, #F7F4EE); opacity: 0; transition: opacity .9s ease; }
.dive.is-leaving .dive-veil { opacity: 1; }
.dive-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ── Barra superior ────────────────────────────────── */
.dive-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; z-index: 3; opacity: 0; transition: opacity .8s ease .2s; }
.dive.is-talking .dive-top, .dive.is-done .dive-top { opacity: 1; }
.dive-brand { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(233,244,239,.55); display: flex; align-items: center; gap: .6rem; }
.dive-demo { font-size: .75rem; letter-spacing: .08em; padding: .2rem .5rem; border: 1px solid rgba(231,196,106,.45); color: #E7C46A; border-radius: 99px; text-transform: uppercase; }
.dive-demo[hidden] { display: none; }
.dive-dots { display: flex; gap: .4rem; }
.dive-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(233,244,239,.16); transition: background .5s, box-shadow .5s, transform .5s; }
.dive-dots i.on { background: #7FE3D2; box-shadow: 0 0 10px rgba(127,227,210,.8); }
.dive-dots i.cur { transform: scale(1.35); background: rgba(127,227,210,.45); }
.dive-actions { display: flex; gap: .4rem; }
.dive-btn { background: rgba(233,244,239,.06); border: 1px solid rgba(233,244,239,.16); color: rgba(233,244,239,.8); font: inherit; font-size: .9rem;
  padding: .45rem .8rem; border-radius: 99px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.dive-btn:hover { background: rgba(233,244,239,.12); border-color: rgba(233,244,239,.32); color: #fff; }
.dive-btn:focus-visible, .dive-chip:focus-visible, .dive-send:focus-visible, .dive-input:focus-visible { outline: 2px solid #7FE3D2; outline-offset: 2px; }
.dive-btn[disabled] { opacity: .35; cursor: default; }

/* ── Área da conversa ──────────────────────────────── */
.dive-talk { position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%); width: min(720px, calc(100% - 2.5rem)); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; }
.dive-ack { min-height: 1.3em; font-size: 1rem; color: rgba(127,227,210,.85); transition: opacity .5s; }
.dive-q { font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.35; font-weight: 400; letter-spacing: -.01em; color: #F1FAF6; min-height: 2.7em; margin: 0; }
.dive-q .w { display: inline-block; white-space: nowrap; }
.dive-q .l { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.25em);
  animation: letter-in .9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes letter-in {
  55% { opacity: 1; filter: blur(0); text-shadow: 0 0 14px rgba(127,227,210,.9); transform: none; }
  100% { opacity: 1; filter: blur(0); text-shadow: 0 0 0 rgba(127,227,210,0); transform: none; } }
.dive-q.is-leaving .l { animation: letter-out .55s ease forwards; animation-delay: 0s !important; }
@keyframes letter-out { to { opacity: 0; filter: blur(6px); transform: translateY(-.4em) scale(.9); } }
.dive-hint { font-size: .9rem; color: rgba(233,244,239,.72); margin: -.3rem 0 0; min-height: 1.2em; transition: opacity .6s; }
.dive-notes { font-size: .9rem; color: rgba(231,196,106,.85); margin: 0; max-width: 60ch; min-height: 0; }
.dive-notes:empty { display: none; }
.dive-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; min-height: 0; }
.dive-chip { font: inherit; font-size: .9rem; color: rgba(233,244,239,.85); background: rgba(127,227,210,.06); border: 1px solid rgba(127,227,210,.25);
  padding: .42rem .85rem; border-radius: 99px; cursor: pointer; opacity: 0; animation: fade-up .6s ease forwards; transition: background .2s, border-color .2s; }
.dive-chip:hover { background: rgba(127,227,210,.14); border-color: rgba(127,227,210,.55); }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dive-form { position: relative; width: 100%; display: flex; align-items: center; gap: .5rem; padding: .35rem .35rem .35rem 1.1rem;
  background: rgba(3,20,26,.55); border: 1px solid rgba(127,227,210,.22); border-radius: 99px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .3s, box-shadow .3s, opacity .5s; }
.dive-form:focus-within { border-color: rgba(127,227,210,.55); box-shadow: 0 0 0 4px rgba(127,227,210,.08), 0 0 30px rgba(127,227,210,.12); }
.dive-input:focus, .dive-input:focus-visible { outline: none; }
.dive-input { flex: 1; min-width: 0; background: transparent; border: 0; color: #F1FAF6; font: inherit; font-size: 1.05rem; padding: .6rem 0; outline: none; }
.dive-input::placeholder { color: rgba(233,244,239,.35); }
.dive-send { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: #7FE3D2; color: #03141A;
  display: grid; place-items: center; transition: transform .2s, background .2s, opacity .2s; }
.dive-send:hover { background: #A9F0E4; transform: translateX(2px); }
.dive-send[disabled] { opacity: .4; cursor: default; transform: none; }
.dive-status { font-size: .9rem; color: rgba(233,244,239,.45); min-height: 1.1em; margin: 0; }
.dive.is-busy .dive-form { opacity: .55; }
.dive-talk.is-hidden { opacity: 0; pointer-events: none; }
.dive-talk { transition: opacity .6s ease; }

/* Fecho */
.dive-final { position: absolute; left: 50%; bottom: 12vh; transform: translateX(-50%); width: min(680px, calc(100% - 2.5rem)); z-index: 3; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.dive-final[hidden] { display: none; }
.dive-final p { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.35; color: #F1FAF6; }
.dive-final .btn-explore { opacity: 0; animation: fade-up .8s ease forwards; animation-delay: .4s; font: inherit; font-size: 1.05rem; padding: .85rem 1.6rem;
  border-radius: 99px; border: 0; cursor: pointer; background: #7FE3D2; color: #03141A; box-shadow: 0 0 30px rgba(127,227,210,.35); }
.dive-final .btn-explore:hover { background: #A9F0E4; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
  .dive-top { padding: .75rem .85rem; flex-wrap: wrap; }
  .dive-brand span:first-child { display: none; }
  .dive-dots { order: 3; width: 100%; justify-content: center; }
  .dive-talk { bottom: 3.5vh; gap: .7rem; }
  .dive-q { min-height: 3.6em; }
  .dive-btn { padding: .4rem .65rem; }
}
@media (max-height: 560px) { .dive-talk { bottom: 2vh; gap: .5rem; } .dive-q { font-size: 1.12rem; min-height: 0; } }

@media (prefers-reduced-motion: reduce) {
  .dive, .dive-surface, .dive-veil, .dive-top, .dive-talk { transition-duration: .01s !important; }
  .dive-q .l, .dive-chip, .dive-final .btn-explore { animation-duration: .01s !important; animation-delay: 0s !important; }
  .hero-start .btn-start { animation: none; }
}

/* ── Resultado da conversa, na página ──────────────── */
.conv-summary { scroll-margin-top: 90px; background: linear-gradient(160deg, #0B2A2F 0%, #0F1F1A 100%); color: #E9F4EF; border-radius: 14px; padding: 1.75rem 1.75rem 1.5rem; margin-bottom: 1.75rem;
  position: relative; overflow: hidden; }
.conv-summary[hidden] { display: none; }
.conv-summary::before { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(127,227,210,.18), rgba(127,227,210,0) 70%); pointer-events: none; }
.conv-summary .eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #7FE3D2; margin: 0 0 .5rem; }
.conv-summary h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 500; letter-spacing: -.02em; margin: 0 0 .9rem; color: #F5F0E5; }
.conv-summary .conv-text { font-size: 1.05rem; line-height: 1.7; color: rgba(233,244,239,.85); max-width: 75ch; margin: 0 0 1.1rem; }
.conv-summary .conv-text strong { color: #fff; font-weight: 500; }
.conv-summary h2:focus { outline: none; }
.conv-summary .conv-text .n { white-space: nowrap; }
.conv-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem .9rem; }
.conv-list li { font-size: .9rem; color: rgba(233,244,239,.8); padding: .55rem .7rem; border: 1px solid rgba(233,244,239,.1); border-radius: 8px; background: rgba(255,255,255,.02); }
.conv-list li span { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(233,244,239,.45); margin-bottom: .15rem; }
.conv-list li.is-est { border-color: rgba(231,196,106,.35); }
.conv-list li.is-est span::after { content: ' · estimativa'; color: #E7C46A; }
.conv-note { font-size: .9rem; color: rgba(231,196,106,.9); margin: 0 0 1.1rem; }
.conv-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.conv-actions .btn-light { background: #7FE3D2; color: #03141A; }
.conv-actions .btn-light:hover { background: #A9F0E4; }
.conv-actions .btn-ghost-light { background: transparent; color: rgba(245,240,229,.85); border: 1px solid rgba(245,240,229,.3); }
.conv-actions .btn-ghost-light:hover { color: #fff; border-color: rgba(245,240,229,.6); }
.field.is-estimated input { border-color: rgba(212,168,75,.7); background: #FFFBF0; }
.field .est-tag { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-700, #8A6A22); margin-left: .35rem; font-weight: 500; }
