/* RispostaSubito — landing mobile-first. Font di sistema, zero framework, zero webfont. */
:root {
  --ink: #1a1c1e;
  --muted: #5b6169;
  --brand: #1f7a5a;
  --brand-dark: #155c43;
  --bg: #ffffff;
  --soft: #f3f5f4;
  --line: #dfe3e1;
  --radius: 12px;
  --wrap: 960px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.3rem, 6vw, 1.9rem); margin: 0 0 .4rem; letter-spacing: -0.02em; }
.nowrap { white-space: nowrap; }
.h1-br { display: inline; }  /* interruzione H1 sulla virgola: solo mobile (vedi media query) */
h2 { font-size: 1.5rem; margin: 0 0 1rem; }
a { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; background: var(--soft); border-radius: 8px; }
section { padding: 2rem 1rem; max-width: var(--wrap); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg);
  border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: .7rem 1rem; }
.logo { display: inline-flex; align-items: center; }
.wordmark { height: 22px; width: auto; background: none; border-radius: 0; display: block; }

/* Hero + tool */
.hero { display: flex; flex-direction: column; gap: .9rem; padding-top: 1rem; padding-bottom: 1.25rem; }
.sub { font-size: 1rem; color: var(--muted); margin: 0; }
.tool { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem; }
.tool-label { margin: 0 0 .5rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .2rem; }
textarea, select, input[type=text], input[type=email] {
  width: 100%; padding: .6rem; font: inherit; border: 1px solid var(--line);
  border-radius: 8px; background: #fff;
}
textarea { resize: vertical; }
.counter { text-align: right; font-size: .8rem; color: var(--muted); margin: .15rem 0 .45rem; }
/* align-items:flex-end -> gli input condividono la stessa base anche se una label va a 2 righe
   (es. "Nome del tuo locale (facoltativo)" a 360px). Nessuna altezza fissa. */
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.field { display: block; }
.field.grow { flex: 1; min-width: 60%; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
button {
  font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 8px;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem;
}
button:hover { background: var(--brand-dark); }
#tool-submit { width: 100%; margin-top: .6rem; padding: .8rem; font-size: 1.05rem; }
.tool-output { margin-top: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .9rem; }
.response { white-space: pre-wrap; margin: 0 0 .6rem; }
.output-actions { display: flex; gap: .5rem; }
#tool-copy { background: #fff; color: var(--brand-dark); border: 1px solid var(--brand); }
.tool-cta { margin: .8rem 0 0; font-weight: 600; }
.tool-output.escalate .response { color: var(--brand-dark); }
.tool-output.error .response { color: #a12; }
.noscript { color: var(--muted); }

.hero-shot { margin: 0; }
.hero-shot img { margin: 0 auto; }
.hero-shot figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .4rem; }

/* Statistica */
.stat { background: var(--brand); color: #fff; max-width: none; }
.stat p { max-width: var(--wrap); margin: 0 auto; font-size: 1.15rem; }
.stat .source a { color: #d8efe6; font-size: .8rem; }
.source { font-size: .8rem; }

/* Come funziona */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.steps h3 { margin: .6rem 0 .2rem; }
.steps p { margin: 0; color: var(--muted); }

/* Prezzi */
.roi { color: var(--muted); }
.badge { display: inline-block; background: #eaf6f1; color: var(--brand-dark); font-weight: 600;
  padding: .3rem .7rem; border-radius: 999px; }
.plans { display: grid; gap: 1rem; margin: 1.5rem 0 .5rem; }
.plan { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1rem; text-align: center; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.pill { position: absolute; top: -.6rem; left: 50%; transform: translateX(-50%); background: var(--brand);
  color: #fff; font-size: .7rem; font-weight: 700; padding: .12rem .55rem; border-radius: 999px; white-space: nowrap; }
.price { font-size: 2rem; font-weight: 700; margin: .3rem 0; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.oneliner { margin: 0; color: var(--muted); }
.plan-detail { margin: .4rem 0 0; font-size: .75rem; color: var(--muted); line-height: 1.35; }
.second-site { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { margin-top: 2rem; }
details { border-bottom: 1px solid var(--line); padding: .7rem 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: .5rem 0 0; color: var(--muted); }

/* CTA finale */
.cta-final { background: var(--soft); border-radius: var(--radius); }
.waitlist-form { max-width: 520px; }
.consent { font-weight: 400; font-size: .82rem; display: flex; gap: .5rem; align-items: flex-start;
  margin: .6rem 0; line-height: 1.4; }
.consent input { width: auto; flex: 0 0 auto; margin: .15rem 0 0; }
.m-br { display: none; }  /* interruzione riga solo su mobile (vedi media query) */
.waitlist-form button { width: 100%; }
.wl-feedback { margin: .6rem 0 0; font-weight: 600; min-height: 1.2em; }

.site-footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 1rem; }
.site-footer p { margin: .3rem 0; }
/* Privacy nel footer: predisposto ma non ancora cliccabile (informativa non pubblicata). */
.footer-soon { color: var(--muted); cursor: default; }

/* Da 640px in su: layout a due colonne per hero e passi */
@media (min-width: 640px) {
  h1 { font-size: 2.4rem; }
  .h1-br { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .hero { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "copy shot" "tool shot"; align-items: start; }
  .hero-copy { grid-area: copy; }
  .tool { grid-area: tool; }
  .hero-shot { grid-area: shot; align-self: center; }
}

/* Sotto i 520px il consenso va su due righe pulite, spezzando dopo "dati" */
@media (max-width: 520px) {
  .m-br { display: inline; }
}
