/* =========================================================
   TomCRM — foglio di stile
   Impianto: corpo chiaro, sezioni scure per i momenti forti.
   --violet  la voce (marchio, onde sonore)
   --mint    la conferma (proposta accettata, spunte)
   --amber   l'azione (pulsanti principali)
   ========================================================= */

:root {
  --night:      #0C1024;
  --night-2:    #131938;
  --violet:     #6B5CFF;
  --violet-soft:#EEEBFF;
  --mint:       #00D3A7;
  --mint-soft:  #E1FAF4;
  --amber:      #FF8A3D;

  --ink:        #131826;
  --ink-soft:   #5A6478;
  --ink-faint:  #8C95A6;
  --line:       #E4E8F0;
  --bg:         #FBFCFE;
  --bg-alt:     #F2F5FA;
  --white:      #FFFFFF;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(12,16,36,.05), 0 6px 18px rgba(12,16,36,.06);
  --shadow-md:  0 18px 44px rgba(12,16,36,.14);

  --wrap:       1140px;
  /* Solo caratteri di sistema: nessuna chiamata a un CDN esterno, nessun IP
     del visitatore consegnato a terzi. Coerente con quello che il sito promette. */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.08rem; font-weight: 600; }
p  { margin: 0 0 1em; }
a  { color: var(--violet); }

img, svg { max-width: 100%; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--violet); color: #fff; padding: .7rem 1.1rem;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .73rem;
  font-weight: 600; color: var(--mint); margin: 0 0 .9rem;
}
.eyebrow-dark { color: var(--violet); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .97rem; font-family: inherit;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--amber); color: #2E1400; }
.btn-accent:hover { background: #F97C2B; }
.btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: .55rem 1.15rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; letter-spacing: -.01em; color: #fff; font-weight: 700; }
.brand-text em { font-style: normal; font-size: .67rem; color: #9AA3BE; letter-spacing: .05em; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: #C9D0E4; text-decoration: none; font-size: .92rem; }
.nav a:hover { color: #fff; }
.nav a.btn-accent { color: #2E1400; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(107,92,255,.30), transparent 60%),
    radial-gradient(700px 380px at 92% 8%, rgba(0,211,167,.18), transparent 62%),
    var(--night);
  color: #fff; padding: clamp(3.2rem, 7vw, 5.6rem) 0 clamp(3.4rem, 7vw, 5.4rem);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .55em; }
.grad {
  background: linear-gradient(100deg, var(--mint), var(--violet) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.08rem; color: #C4CCE2; max-width: 56ch; }
.lead-strong { color: #fff; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.2rem; }
.hero-note { font-size: .87rem; color: #8F99B6; max-width: 52ch; margin: 0; }

/* telefono con onda sonora */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: min(100%, 320px); background: var(--night-2); border: 1px solid rgba(255,255,255,.10);
  border-radius: 26px; padding: 1.1rem; box-shadow: var(--shadow-md);
}
.phone-top {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: #9AA3BE; margin-bottom: .9rem;
}
.rec { width: 8px; height: 8px; border-radius: 50%; background: #FF4D6D; animation: puls 1.6s infinite; }
@keyframes puls { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.wave { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 46px; margin-bottom: 1.1rem; }
.wave span {
  flex: 1; border-radius: 3px;
  background: linear-gradient(180deg, var(--mint), var(--violet));
  animation: onda 1.25s ease-in-out infinite;
}
.wave span:nth-child(1)  { animation-delay: -.10s } .wave span:nth-child(2)  { animation-delay: -.55s }
.wave span:nth-child(3)  { animation-delay: -.30s } .wave span:nth-child(4)  { animation-delay: -.85s }
.wave span:nth-child(5)  { animation-delay: -.45s } .wave span:nth-child(6)  { animation-delay: -.15s }
.wave span:nth-child(7)  { animation-delay: -.70s } .wave span:nth-child(8)  { animation-delay: -.25s }
.wave span:nth-child(9)  { animation-delay: -.95s } .wave span:nth-child(10) { animation-delay: -.40s }
.wave span:nth-child(11) { animation-delay: -.60s } .wave span:nth-child(12) { animation-delay: -.05s }
.wave span:nth-child(13) { animation-delay: -.80s } .wave span:nth-child(14) { animation-delay: -.35s }
.wave span:nth-child(15) { animation-delay: -.65s }
@keyframes onda { 0%,100% { height: 22% } 50% { height: 100% } }

.phone-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius); padding: .85rem .95rem; margin-bottom: .7rem;
}
.phone-card-2 { opacity: .55; }
.pc-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mint); margin: 0 0 .45rem; font-weight: 600; }
.pc-field { font-size: .74rem; color: #8F99B6; margin: 0 0 .1rem; }
.pc-value { font-size: .93rem; color: #fff; margin: 0 0 .45rem; line-height: 1.4; }
.pc-src   { font-size: .72rem; color: #6E7896; margin: 0; }
.pc-actions { display: flex; gap: .5rem; margin-top: .7rem; }
.pc-ok, .pc-no { font-size: .76rem; padding: .3rem .8rem; border-radius: 999px; font-weight: 600; }
.pc-ok { background: var(--mint); color: #00352A; }
.pc-no { border: 1px solid rgba(255,255,255,.22); color: #C9D0E4; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(3.2rem, 6.5vw, 5.4rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: radial-gradient(760px 400px at 85% 0%, rgba(107,92,255,.22), transparent 62%), var(--night);
  color: #fff;
}
.section-cta {
  background: radial-gradient(700px 400px at 10% 0%, rgba(0,211,167,.20), transparent 60%), var(--night);
  color: #fff;
}
.h2-light { color: #fff; }
.section-lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 62ch; }
.lead-dark { color: #C4CCE2; max-width: 58ch; }
.lead-small { font-size: .92rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.2rem; }
.grid-2-align { align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.4rem; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm);
}
.card p:last-child { margin-bottom: 0; }
.card-num {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet); font-weight: 700; font-size: .95rem;
  margin-bottom: 1rem;
}
.card-tag {
  display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 600; padding: .28rem .7rem; border-radius: 999px; margin: 0 0 .9rem;
}
.card-mine .card-tag { background: var(--mint-soft); color: #00705A; }
.card-boss .card-tag { background: var(--violet-soft); color: #4B3DD6; }
.card-mine { border-top: 3px solid var(--mint); }
.card-boss { border-top: 3px solid var(--violet); }
.card-foot { font-size: .87rem; color: var(--ink-faint); margin-top: 1rem; }

.pull {
  margin: 2.6rem auto 0; max-width: 68ch; font-size: 1.12rem; line-height: 1.6;
  color: var(--ink); border-left: 3px solid var(--amber); padding-left: 1.3rem;
}
.pull-quiet { border-left-color: var(--violet); font-size: 1rem; color: var(--ink-soft); }

/* passi */
.steps { display: grid; gap: 1.1rem; margin-top: 2.4rem; }
.step {
  display: grid; grid-template-columns: 74px 1fr; gap: 1.2rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem 1.8rem; box-shadow: var(--shadow-sm);
}
.step-badge {
  font-size: 1.5rem; font-weight: 700; color: var(--violet);
  background: var(--violet-soft); border-radius: 14px; height: 56px;
  display: grid; place-items: center;
}
.step-body p:last-child { margin-bottom: 0; }
.step-note { font-size: .88rem; color: var(--ink-faint); border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .9rem; }

/* prova / tracciabilità */
.proof {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg); padding: .6rem;
}
.proof-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: .8rem; align-items: center;
  padding: .8rem .9rem; border-radius: 10px; font-size: .9rem;
}
.proof-row + .proof-row { border-top: 1px solid rgba(255,255,255,.07); }
.proof-row-hi { background: rgba(0,211,167,.10); }
.proof-cat {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  color: var(--mint);
}
.proof-txt { color: #D5DBEC; }
.proof-time { color: #6E7896; font-size: .8rem; font-variant-numeric: tabular-nums; }

.feat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}
.feat h3 { color: var(--violet); margin-bottom: .5rem; }
.feat p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* FAQ */
.faq {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.3rem; margin-bottom: .75rem;
}
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  font-size: 1.35rem; font-weight: 400; color: var(--violet); line-height: 1;
}
.faq[open] summary::after { content: "−"; }
.faq p { margin: .85rem 0 0; color: var(--ink-soft); font-size: .95rem; }

/* elenco spuntato */
.ticks { list-style: none; padding: 0; margin: 1.4rem 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; color: #C4CCE2; font-size: .96rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--mint);
}

/* ---------- Form ---------- */
.form {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.9rem;
  color: var(--ink); box-shadow: var(--shadow-md);
}
.form-title { font-weight: 700; font-size: 1.15rem; margin: 0 0 1.2rem; }
.form label { display: block; font-size: .86rem; font-weight: 500; margin: .9rem 0 .35rem; color: var(--ink-soft); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form select, .form textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--bg);
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(107,92,255,.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; margin: 1.3rem 0; font-size: .86rem; color: var(--ink-soft); }
.form .check input { margin-top: .25rem; flex: none; }
.form .btn { margin-top: .3rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-esito { margin: .9rem 0 0; font-size: .9rem; min-height: 1.2em; }
.form-esito.ok { color: #00705A; }
.form-esito.ko { color: #C0392B; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #9AA3BE; padding: 2.6rem 0 1.6rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: center; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.1rem; margin: 0; }
.footer-small { font-size: .85rem; margin: .2rem 0 0; }
.footer-nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-nav a { color: #C9D0E4; text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09); margin-top: 1.8rem; padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: .82rem; margin: 0; color: #6E7896; max-width: 62ch; }

/* ---------- "Aggiungi al telefono" ---------- */
.btn-installa {
  display: inline-flex; align-items: center; gap: .5rem; flex: none;
  padding: .6rem 1.15rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22); background: transparent;
  color: #D5DBEC; font: inherit; font-size: .88rem; font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-installa:hover { background: rgba(255,255,255,.08); border-color: var(--mint); color: #fff; }
.btn-installa svg { width: 17px; height: 17px; }

.installa-aiuto {
  position: fixed; inset: 0; z-index: 90; background: rgba(6,9,20,.72);
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
}
.installa-aiuto[hidden] { display: none; }
.installa-box {
  position: relative; background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg); padding: 1.9rem 1.8rem;
  width: min(100%, 440px); box-shadow: var(--shadow-md);
}
.installa-box h2 { font-size: 1.2rem; margin-bottom: .7rem; }
.installa-box p { font-size: .95rem; color: var(--ink-soft); margin: 0 0 .8rem; }
.installa-nota { font-size: .85rem; color: var(--ink-faint); margin: 0; }
.installa-chiudi {
  position: absolute; top: .7rem; right: .9rem; background: transparent; border: 0;
  font-size: 1.6rem; line-height: 1; color: var(--ink-faint); cursor: pointer; padding: .2rem .4rem;
}
.installa-chiudi:hover { color: var(--ink); }

/* ---------- Assistente (chatbox) ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .6rem 1.15rem .6rem .6rem;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  background: var(--night); color: #fff; cursor: pointer; font: inherit;
  box-shadow: 0 12px 30px rgba(12,16,36,.36);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.chat-fab:hover { transform: translateY(-2px); background: #070B18; box-shadow: 0 16px 38px rgba(12,16,36,.46); }

.chat-fab-icona {
  position: relative; z-index: 1; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--mint); color: #00352A;
  display: flex; align-items: center; justify-content: center;
}
.chat-fab-icona svg { width: 21px; height: 21px; }

.chat-fab-testo { position: relative; z-index: 1; display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.chat-fab-testo strong { font-size: .9rem; font-weight: 600; }
.chat-fab-testo small { font-size: .71rem; color: #9AA3BE; }

/* onde che si allargano dall'icona: richiamano la voce, tema del prodotto */
.onde { position: absolute; left: 20px; top: 50%; width: 40px; height: 40px; margin-top: -20px; pointer-events: none; }
.onde::before, .onde::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--mint); opacity: 0;
  animation: cerchio 3.2s cubic-bezier(.2,.6,.3,1) infinite;
}
.onde::after { animation-delay: 1.6s; }
@keyframes cerchio {
  0%   { transform: scale(.75); opacity: .7; }
  70%  { opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* a pannello aperto il pulsante si fa da parte */
.chat-fab.is-aperto { padding: .55rem; }
.chat-fab.is-aperto .chat-fab-testo { display: none; }
.chat-fab.is-aperto .onde::before,
.chat-fab.is-aperto .onde::after { animation: none; }

.chat-panel {
  position: fixed; right: 20px; bottom: 88px; z-index: 71;
  width: min(380px, calc(100vw - 40px)); height: min(560px, calc(100vh - 130px));
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.is-open { display: flex; }

.chat-head { background: var(--night); color: #fff; padding: .85rem 1rem; display: flex; align-items: center; gap: .6rem; }
.chat-head .t { font-size: .95rem; font-weight: 600; line-height: 1.1; }
.chat-head .t small { display: block; font-size: .68rem; color: #9AA3BE; font-weight: 400; }
.chat-close { margin-left: auto; background: transparent; border: 0; color: #C9D0E4; cursor: pointer; font-size: 1.3rem; line-height: 1; padding: .2rem .4rem; }

/* overscroll-behavior: senza, arrivati in fondo alla chat lo scorrimento
   prosegue sulla pagina sotto e il pannello sembra scappare via. */
.chat-body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1rem .9rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg);
}
.msg { max-width: 84%; padding: .65rem .85rem; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--mint); border-top-left-radius: 4px; }
.msg.me  { align-self: flex-end; background: var(--violet); color: #fff; border-top-right-radius: 4px; }
.msg.sys { align-self: center; background: transparent; color: var(--ink-soft); font-size: .78rem; text-align: center; max-width: 92%; }
.msg.sys a { font-weight: 600; }

.typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; border-top-left-radius: 4px; padding: .75rem .9rem; display: flex; gap: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); opacity: .5; animation: puntini 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes puntini { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chat-bar { display: flex; gap: .5rem; padding: .6rem; background: #fff; border-top: 1px solid var(--line); }
.chat-bar textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 20px; padding: .6rem .9rem; font: inherit; font-size: .93rem; max-height: 110px; background: var(--bg); color: var(--ink); }
.chat-bar textarea:focus { outline: none; border-color: var(--violet); }
.chat-send { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--violet); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-send:disabled { opacity: .45; cursor: default; }
.chat-send svg { width: 18px; height: 18px; }
.chat-foot { text-align: center; font-size: .68rem; color: var(--ink-soft); padding: 0 0 .5rem; background: #fff; margin: 0; }

@media (max-width: 560px) {
  .chat-fab { right: 14px; bottom: 14px; }
  .chat-fab-testo strong { font-size: .84rem; }
  .chat-panel { right: 10px; left: 10px; width: auto; bottom: 82px; height: min(72vh, calc(100vh - 120px)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Pagine di testo (privacy, note legali) ---------- */
.doc { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.doc h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .4rem; }
.doc .meta { font-size: .87rem; color: var(--ink-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--night); flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 1.25rem 1.2rem; border-top: 1px solid rgba(255,255,255,.09);
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav a.btn { margin-top: .8rem; border-bottom: 0; justify-content: center; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: .9rem; }
  .step-badge { width: 56px; }
  .form-row { grid-template-columns: 1fr; }
  .proof-row { grid-template-columns: 1fr auto; }
  .proof-cat { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave span, .rec { animation: none; }
  .wave span { height: 60%; }
  .btn:hover { transform: none; }
  .onde::before, .onde::after, .typing span { animation: none; }
  .chat-fab:hover { transform: none; }
}
