@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* Colori e caratteri di BlackBid (sito blackbid.agency, logo del 2026-10-20). */
:root {
  --blue: #0055ff;
  --blue-d: #0040cc;
  --blue-soft: #e8efff;
  --green: #22c98a;
  --green-d: #13895c;
  --navy: #060a1a;
  --night: #06080e;
  --night-2: #0d1220;
  --night-3: #161d30;
  --night-line: #222a40;
  --night-text: #e5ecf6;
  --night-muted: #8f98ad;
  --ink: #000;
  --text: #101010;
  --muted: #5b6070;
  --line: #e6e8ee;
  --page: #ffffff;
  --wash: #f6f8fc;
  --card: #ffffff;
  --ok: #13895c;
  --ok-bg: #e4f7ee;
  --warn: #9a5b00;
  --warn-bg: #fdf1dc;
  --bad: #d0242c;
  --bad-bg: #fdeaea;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(6 10 26 / 5%), 0 12px 40px -12px rgb(6 10 26 / 16%);
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv11' 1, 'ss01' 1;
  color: var(--text);
  background: var(--page);
  background-image: radial-gradient(1100px 520px at 78% -8%, #e6eeff 0%, rgb(230 238 255 / 0%) 70%), radial-gradient(700px 420px at 100% 30%, #e3f8ef 0%, rgb(227 248 239 / 0%) 70%);
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  font-size: 16px;
  transition: background-color 0.5s ease;
}
::selection { background: rgb(0 85 255 / 22%); }
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.num-t { font-variant-numeric: tabular-nums; }

/* ---------- testata ---------- */
.top { display: flex; align-items: center; gap: 16px; max-width: 1240px; width: 100%; margin: 0 auto; padding: 22px var(--gutter); }
.logo { display: inline-flex; align-items: baseline; color: var(--navy); text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.035em; line-height: 1; }
.logo-b { height: 0.79em; width: auto; margin-right: 0.07em; flex: none; }
.logo-tag { margin-left: 10px; align-self: center; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 5px 9px; border-radius: 999px; }
.crumb { color: var(--muted); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.crumb::before { content: '/'; margin-right: 14px; opacity: 0.4; }
.top-link { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 70%); white-space: nowrap; }
.top-link:hover { border-color: var(--navy); }

/* ---------- elementi comuni ---------- */
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #3d4252; }
.eyebrow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 4px rgb(34 201 138 / 18%); }
.hl { display: inline-block; background: var(--blue); color: #fff; padding: 0 0.22em 0.06em; border-radius: 0.36em; line-height: 1.08; }
.hl-green { background: var(--green); color: var(--navy); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 26px 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--blue); color: #fff; border: 0; border-radius: 999px; padding: 14px 24px; font: inherit; font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer; transition: background 0.15s, transform 0.15s; white-space: nowrap; }
.btn:hover { background: var(--blue-d); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn:focus-visible, .top-link:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgb(0 85 255 / 45%); outline-offset: 2px; }
.btn-arrow { display: inline-grid; place-items: center; width: 34px; height: 34px; margin: -8px -14px -8px 0; border-radius: 50%; background: #fff; color: var(--blue); flex: none; transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { padding: 18px 28px; font-size: 18px; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef2ff; }
.btn-light .btn-arrow { background: var(--blue); color: #fff; }
.form-note { margin: 0; font-size: 13.5px; color: var(--muted); }
.form-error { margin: 12px 0 0; font-size: 14.5px; font-weight: 600; color: var(--bad); }

/* ---------- intro: hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; padding: clamp(20px, 4.5vw, 56px) 0 clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(40px, 5.4vw, 74px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.02; }
.hero h1 .hl { margin: 0.06em 0; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: #3d4252; max-width: 33em; margin: 22px 0 28px; text-wrap: pretty; }

.searchbar { display: flex; align-items: center; gap: 4px; max-width: 600px; background: #fff; border: 1.5px solid #d7dbe5; border-radius: 999px; padding: 7px 7px 7px 20px; box-shadow: 0 1px 2px rgb(6 10 26 / 5%), 0 18px 44px -18px rgb(0 85 255 / 35%); transition: border-color 0.15s, box-shadow 0.15s; }
.searchbar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(0 85 255 / 14%), 0 18px 44px -18px rgb(0 85 255 / 45%); }
.sb-icon { display: grid; place-items: center; color: #8a91a3; flex: none; }
.sb-icon svg, .pv-query svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.searchbar input[type='text'] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 18px; font-weight: 500; color: var(--ink); padding: 12px 10px; }
.searchbar input::placeholder { color: #9aa0b0; font-weight: 400; }
.searchbar input:focus-visible { outline: 0; }
.searchbar .btn { padding: 14px 22px 14px 24px; }
#turnstile:not(:empty) { margin-top: 14px; }
.promises { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; color: #3d4252; }
.promises li { display: inline-flex; align-items: center; gap: 8px; }
.promises li::before { content: ''; width: 6px; height: 11px; margin: -3px 2px 0 3px; border: solid var(--green-d); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }

/* anteprima del risultato */
.preview { margin: 0; position: relative; }
.preview::before { content: ''; position: absolute; inset: 12% 0 -6% 10%; background: linear-gradient(135deg, rgb(0 85 255 / 22%), rgb(34 201 138 / 22%)); filter: blur(48px); border-radius: 40px; z-index: -1; }
.pv-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 2px 4px rgb(6 10 26 / 4%), 0 30px 70px -24px rgb(6 10 26 / 28%); overflow: hidden; transform: rotate(0.6deg); }
.pv-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f1f3f7; border-bottom: 1px solid var(--line); }
.pv-bar span { width: 11px; height: 11px; border-radius: 50%; background: #d5d9e0; flex: none; }
.pv-bar p { margin: 0 0 0 10px; flex: 1; min-width: 0; background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-body { padding: 20px 22px 8px; }
.pv-query { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--text); box-shadow: 0 1px 4px rgb(6 10 26 / 6%); }
.pv-query svg { width: 16px; height: 16px; color: #8a91a3; }
.pv-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pv-res li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 9px 4px; }
.pv-pos { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; margin-top: 2px; }
.pv-dom { margin: 0; font-size: 12.5px; color: #4d5156; }
.pv-tit { margin: 1px 0 0; font-size: 16px; color: #1a0dab; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-you { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; margin: 8px 0 12px; padding: 12px 14px 12px 8px; border-radius: 12px; background: var(--bad-bg); border: 1px dashed #f0a6a9; }
.pv-you p { margin: 0; font-size: 14.5px; font-weight: 650; color: var(--bad); }
.pv-you .pv-dom { font-weight: 500; color: #8d4044; }
.pv-x { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bad); color: #fff; font-weight: 800; font-size: 16px; line-height: 1; }
.pv-calc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); background: #fafbfd; }
.pv-calc div { padding: 14px 16px; border-left: 1px solid var(--line); }
.pv-calc div:first-child { border-left: 0; }
.pv-calc dt { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.pv-calc dd { margin: 4px 0 0; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pv-calc .pv-total { background: var(--navy); }
.pv-calc .pv-total dt { color: #aeb6c9; }
.pv-calc .pv-total dd { color: var(--green); }
.preview figcaption { margin: 16px 6px 0; font-size: 13px; color: var(--muted); max-width: 40em; }

/* ---------- intro: le sette perdite ---------- */
.howto { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); }
.howto-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 64px; align-items: end; margin-bottom: 40px; }
.howto-head h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.howto-head p { margin: 0; font-size: 17px; color: #3d4252; }
.howto-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.howto-grid li { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 26px; border-radius: var(--radius); background: var(--wash); border: 1px solid #edf0f5; transition: background 0.2s, border-color 0.2s; }
.howto-grid li:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.howto-grid .hn { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.howto-grid b { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.howto-grid li > span:last-child { font-size: 15px; color: var(--muted); }
.howto-grid .howto-last { background: var(--navy); border-color: var(--navy); }
.howto-grid .howto-last:hover { background: var(--navy); }
.howto-grid .howto-last .hn { color: var(--green); }
.howto-grid .howto-last b { color: #fff; }
.howto-grid .howto-last > span:last-child { color: #aeb6c9; }

/* ---------- intro: fascia scura ---------- */
.band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px 64px; margin-top: clamp(24px, 4vw, 48px); padding: clamp(32px, 5vw, 64px); border-radius: 28px; color: var(--night-text); background: radial-gradient(600px 300px at 0% 0%, rgb(0 85 255 / 35%), transparent 70%), radial-gradient(500px 300px at 100% 100%, rgb(34 201 138 / 18%), transparent 70%), var(--night); }
.band h2 { color: #fff; font-size: clamp(32px, 4vw, 54px); font-weight: 900; letter-spacing: -0.042em; line-height: 1.04; }
.band h2 .hl { margin-top: 0.08em; }
.band-copy p { font-size: 17.5px; color: #c3cad9; margin: 22px 0 0; max-width: 32em; }
.band-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: center; }
.band-list li { padding: 16px 0; border-bottom: 1px solid var(--night-line); color: #c3cad9; font-size: 16px; }
.band-list li b { color: #fff; display: block; font-size: 17px; }
.band-list li:last-child { border: 0; padding-top: 24px; }

/* ---------- scan dal vivo: schermata scura ---------- */
body:has(#scan:not([hidden])) { background: var(--night); color: var(--night-text); }
body:has(#scan:not([hidden])) .logo { color: #fff; }
body:has(#scan:not([hidden])) .logo-tag { background: rgb(0 85 255 / 25%); color: #9dbbff; }
body:has(#scan:not([hidden])) .crumb { color: var(--night-text); }
body:has(#scan:not([hidden])) .top-link { background: transparent; border-color: var(--night-line); color: var(--night-text); }
body:has(#scan:not([hidden])) .foot { color: var(--night-muted); border-color: var(--night-line); }
body:has(#scan:not([hidden])) .foot a { color: #9dbbff; }
body:has(#scan:not([hidden])) .foot-logo { color: #fff; }

.scan { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; padding-top: 8px; min-height: min(760px, calc(100vh - 150px)); }
.rail { background: var(--night-2); border: 1px solid var(--night-line); color: var(--night-text); border-radius: 24px; padding: 28px 22px 24px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.rail-kicker { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: live 1.6s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgb(34 201 138 / 60%); } 100% { box-shadow: 0 0 0 10px rgb(34 201 138 / 0%); } }
.rail-sub { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 22px; overflow-wrap: anywhere; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; flex: 1; align-content: start; }
.step { border-radius: 12px; padding: 10px 12px; border: 1px solid transparent; min-width: 0; transition: background 0.3s; }
.step-row { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15.5px; }
.step[data-state='todo'] .step-row { color: #4f5872; }
.step[data-state='running'] { background: var(--night-3); border-color: #2a3350; }
.step[data-state='running'] .step-row { color: #fff; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #343d58; flex: none; position: relative; }
.step[data-state='running'] .dot { border-color: var(--blue) transparent var(--blue) var(--blue); animation: spin 0.9s linear infinite; }
.step[data-state='done'] .dot { border-color: var(--green); background: var(--green); }
.step[data-state='done'] .dot::after { content: ''; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.step[data-state='skipped'] .dot, .step[data-state='error'] .dot { border-style: dashed; }
.step[data-state='skipped'] .step-row, .step[data-state='error'] .step-row { color: var(--night-muted); }
@keyframes spin { to { transform: rotate(360deg); } }
.lines { list-style: none; margin: 6px 0 2px; padding: 0 0 0 30px; display: grid; gap: 2px; }
.step:not([data-state='running']) .lines { display: none; }
.line { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: #c9d0de; padding: 3px 0; animation: in 0.25s both; min-width: 0; }
.ltext { flex: 1; min-width: 0; }
.lval { color: var(--night-muted); white-space: normal; text-align: right; max-width: 48%; }
.ldot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #6b7180; transform: translateY(-1px); }
.line.ok .ldot, .checklist .ok .ldot { background: var(--green); }
.line.warn .ldot, .checklist .warn .ldot { background: #f0a020; }
.line.bad .ldot, .checklist .bad .ldot { background: #ff4d55; }
.line.bad .lval { color: #ff9a9f; }
.line.warn .lval { color: #f6c26b; }
@keyframes in { from { opacity: 0; transform: translateY(4px); } }
.progress { margin-top: 20px; }
.progress-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--night-muted); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
#progress-pct { color: #fff; font-weight: 700; }
.bar { height: 6px; background: #1c2338; border-radius: 6px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 6px; transition: width 0.6s ease; }

.stage { position: relative; background: radial-gradient(700px 360px at 85% 0%, rgb(0 85 255 / 20%), transparent 70%), var(--night-2); border: 1px solid var(--night-line); border-radius: 24px; padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.stage::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 120px; background: linear-gradient(180deg, rgb(34 201 138 / 0%), rgb(34 201 138 / 10%) 50%, rgb(34 201 138 / 0%)); animation: sweep 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 0% { transform: translateY(-120px); } 100% { transform: translateY(900px); } }
.stage h2 { color: #fff; font-size: clamp(30px, 3.6vw, 50px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
.stage-sub { font-size: 17.5px; color: #b6bfd2; max-width: 40em; margin: 16px 0 32px; }
.visual { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.visual > * { animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; width: 100%; max-width: 780px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.985); } }
.stage .card { border-color: transparent; box-shadow: 0 30px 70px -20px rgb(0 0 0 / 60%); color: var(--text); }
.stage .checklist .lval { color: var(--muted); }

/* ---------- visual del palco ---------- */
.pill { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 650; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 8px; }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.kicker { margin: 0; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); font-size: 18px; }

.product { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 24px; }
.product img, .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--wash); }
.product-body { display: flex; flex-direction: column; gap: 6px; min-height: 100%; }
.product-title { margin: 0; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.15; }
.product-price { margin: 0 0 16px; font-size: 20px; color: var(--muted); }

.feedcard { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.feed-head { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; }
.feed-head img, .feed-head .noimg { width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--wash); }
.feed-title { margin: 4px 0 6px; font-size: 18px; font-weight: 600; color: #1a0dab; line-height: 1.3; }
.feed-cut { color: var(--muted); }
.feed-body { max-height: 380px; overflow: auto; }
.feed-group { margin: 12px 0 0; font-size: 15px; }
.feed-checks { margin: 0; }
.feed-checks li { align-items: flex-start; }
.feed-checks li > div { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.feed-checks .lval { color: var(--muted); white-space: normal; text-align: left; max-width: none; margin: 0; }
.feed-checks p { margin: 0; }

.speed { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 18px 0 0; }
.metrics dt { font-size: 13px; color: var(--muted); }
.metrics dd { margin: 2px 0 0; font-size: 34px; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
dd.ok { color: var(--ok); } dd.warn { color: var(--warn); } dd.bad { color: var(--bad); } dd.info { color: var(--muted); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.checklist li:last-child { border-bottom: 0; }
.checklist li > div { flex: 1; min-width: 0; }
.checklist li > div p { margin: 2px 0 0; }
.checklist .lval { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 14px; text-align: right; }
.checklist .bad .lval { color: var(--bad); }
.checklist .ok .lval { color: var(--ok); }
.checklist .info .ldot { background: #a3a8b5; }

.browser { overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f1f3f7; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #d4d7dd; flex: none; }
.browser-bar p { margin: 0 0 0 12px; flex: 1; min-width: 0; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-body { padding: 22px 28px 26px; }
.g-logo { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: #4285f4; }
.g-query { margin: 10px 0 18px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; max-width: 460px; box-shadow: 0 1px 4px rgb(6 10 26 / 6%); }
.res { padding: 10px 0; }
.res-domain { margin: 0; font-size: 13px; color: #4d5156; }
.res-title { margin: 2px 0 0; color: #1a0dab; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res.ad.rival { border-left: 3px solid var(--bad); padding-left: 14px; background: #fff5f5; border-radius: 8px; margin-bottom: 4px; }
.res.ad.mine, .res.mine { border-left: 3px solid var(--green); padding-left: 14px; background: #f2fbf6; border-radius: 8px; }

.chat { padding: 22px; display: grid; gap: 14px; }
.bubble { padding: 14px 18px; border-radius: 18px; max-width: 88%; font-size: 15px; }
.bubble.user { justify-self: end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.bubble.bot { background: var(--wash); border: 1px solid #edf0f5; border-bottom-left-radius: 5px; }
.chat-foot { display: grid; gap: 8px; justify-items: start; }

.waiting li { align-items: flex-start; }
.spin { width: 16px; height: 16px; flex: none; margin-top: 3px; border-radius: 50%; border: 2px solid var(--blue); border-right-color: transparent; animation: spin 0.9s linear infinite; }

/* ---------- risultato ---------- */
.result { max-width: 960px; margin: 0 auto; padding-top: clamp(16px, 4vw, 40px); }
.result-head { margin-bottom: 28px; }
.result-head .eyebrow { text-transform: none; letter-spacing: 0; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.result-head h2 { font-size: clamp(34px, 5vw, 62px); font-weight: 900; letter-spacing: -0.045em; line-height: 1; text-wrap: balance; }
.result-sub { font-size: clamp(18px, 1.8vw, 22px); color: #2b2f3a; margin: 20px 0 0; max-width: 36em; text-wrap: pretty; }
.result-sub b { font-weight: 800; color: var(--ink); background: linear-gradient(transparent 58%, rgb(34 201 138 / 38%) 58%); padding: 0 2px; }
.calc { margin: 18px 0 0; font-size: 15px; color: var(--muted); max-width: 48em; }
.calc summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--blue); font-weight: 650; list-style: none; padding: 8px 14px; border: 1px solid #cfdcff; border-radius: 999px; background: var(--blue-soft); }
.calc summary::-webkit-details-marker { display: none; }
.calc summary::after { content: '+'; font-weight: 800; }
.calc[open] summary::after { content: '−'; }
.calc > div { margin-top: 12px; padding: 18px 20px; background: var(--wash); border-radius: 14px; border: 1px solid #edf0f5; }
.calc p { margin: 0 0 8px; }
.calc p:last-child { margin: 0; }

.kw { padding: 6px 6px 2px; margin-bottom: 40px; overflow: hidden; }
.kw-more { padding: 4px 16px 14px; margin: 0; }
.kwt-wrap { width: 100%; overflow-x: auto; }
.kwt { width: 100%; border-collapse: collapse; font-size: 15px; }
.kwt th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.kwt td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kwt tr:last-child td { border-bottom: 0; }
.kwt tbody tr:hover td { background: #fafbfd; }
.kwt .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kwt td.n:last-child b { color: var(--ink); font-weight: 800; }
.kw-you { display: block; font-size: 12.5px; color: var(--bad); margin-top: 3px; font-weight: 500; }

.sec { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; letter-spacing: -0.04em; margin: 8px 0 18px; }
.sec-in { font-size: 21px; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 8px; }
.findings { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 14px; }
.finding { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 24px 84px; box-shadow: var(--shadow); }
.finding-head { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.finding-head .num { position: absolute; left: 24px; top: 24px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.finding.alta .num { background: var(--bad); }
.finding.media .num { background: #e08a00; }
.area { color: var(--muted); }
.finding.alta .area { color: var(--bad); }
.finding.media .area { color: var(--warn); }
.finding-title { margin: 6px 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.25; color: var(--ink); }
.fd { margin: 14px 0 0; display: grid; gap: 10px; }
.fd div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; }
.fd dt { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.fd dd { margin: 0; }
.fd div:last-child dd { font-weight: 600; color: var(--ink); }
.evidence { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); word-break: break-word; border-top: 1px dashed var(--line); padding-top: 10px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.more { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.more li { background: var(--wash); border: 1px solid #edf0f5; border-radius: 14px; padding: 14px 18px; display: grid; gap: 2px; }
.more li span { color: var(--muted); font-size: 14px; }

.growth { position: relative; overflow: hidden; color: var(--night-text); border-radius: 28px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 24px; background: radial-gradient(520px 280px at 0% 0%, rgb(0 85 255 / 40%), transparent 70%), radial-gradient(420px 260px at 100% 100%, rgb(34 201 138 / 22%), transparent 70%), var(--night); }
.growth h3 { color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.05; margin-bottom: 14px; text-wrap: balance; }
.growth p { color: #c3cad9; margin: 0; font-size: 16.5px; }
.eyebrow-dark { color: #aeb6c9; }
.growth-cta { display: grid; gap: 12px; justify-items: start; }
.growth-cta .form-note { color: var(--night-muted); }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.leadbox { display: grid; gap: 12px; align-content: start; }
.leadbox p { margin: 0; }
.lead-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-row input, .sim-grid input { flex: 1 1 220px; min-width: 0; font: inherit; padding: 13px 16px; border: 1.5px solid #d7dbe5; border-radius: 12px; background: #fff; color: var(--ink); }
.lead-row input:focus, .sim-grid input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(0 85 255 / 14%); }
.leadbox .check { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 13.5px; color: var(--muted); }
.leadbox .check input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; }
.lead-ok { color: var(--ok); font-weight: 650; }
.sim { display: grid; gap: 12px; align-content: start; }
.sim p { margin: 0; }
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sim-grid label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--ink); }
.sim-out { font-size: 16px; }
.sim-out b { font-weight: 800; color: var(--ink); background: linear-gradient(transparent 58%, rgb(34 201 138 / 38%) 58%); }
.checks { margin-bottom: 24px; }
.checks .checklist li { align-items: flex-start; }
.limits { font-size: 14px; color: var(--muted); margin: 20px 4px 0; }

/* ---------- piede ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; max-width: 1240px; width: 100%; margin: 0 auto; padding: 28px var(--gutter) 36px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); }
.foot-logo { display: inline-flex; align-items: baseline; font-weight: 900; font-size: 17px; letter-spacing: -0.035em; color: var(--navy); }

/* ---------- larghezze ---------- */
@media (max-width: 1080px) {
  .howto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero, .band, .howto-head, .scan, .growth { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 40px; }
  .preview { max-width: 620px; }
  .scan { min-height: 0; }
  .rail { order: 2; }
  .stage { order: 1; }
  .product { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero h1 br { display: none; }
  .top { padding-top: 16px; padding-bottom: 16px; }
  .top-link { display: none; }
  .logo { font-size: 20px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .searchbar { flex-wrap: wrap; border-radius: 20px; padding: 6px; }
  .sb-icon { display: none; }
  .searchbar input[type='text'] { flex-basis: 100%; padding: 12px 12px; }
  .searchbar .btn { width: 100%; }
  .promises { gap: 6px 14px; font-size: 13.5px; }
  .pv-card { transform: none; }
  .pv-calc { grid-template-columns: 1fr 1fr; }
  .pv-calc div:nth-child(3) { border-left: 0; }
  .pv-calc div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pv-tit { white-space: normal; }
  .howto-grid { grid-template-columns: minmax(0, 1fr); }
  .band { border-radius: 22px; }
  .kwt thead { display: none; }
  .kwt, .kwt tbody, .kwt tr, .kwt td { display: block; width: 100%; }
  .kwt tr { padding: 10px 6px; border-bottom: 1px solid var(--line); }
  .kwt td { border: 0; padding: 2px 8px; text-align: left; }
  .kwt td.n { text-align: left; }
  .kwt td:nth-child(2)::before { content: 'Ricerche al mese: '; color: var(--muted); }
  .kwt td:nth-child(4)::before { content: 'Costo per clic: '; color: var(--muted); }
  .kwt td:nth-child(5)::before { content: 'Valore al mese: '; color: var(--muted); }
  .finding { padding: 22px 20px 20px; }
  .finding-head .num { position: static; width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
  .fd div { grid-template-columns: 1fr; gap: 2px; }
  .sim-grid { grid-template-columns: 1fr; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .pad { padding: 22px 20px; }
  .stage h2 { font-size: 30px; }
  .browser-body { padding: 18px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* tabella delle ricerche più compatta nel palco dello scan */
.kwt th { white-space: nowrap; }
.kwt td:first-child { min-width: 170px; }
.kwt td:nth-child(3) { white-space: nowrap; }
.stage .kwt { font-size: 14px; }
.stage .kwt th { padding: 12px 10px 8px; font-size: 11px; }
.stage .kwt td { padding: 11px 10px; }
.stage .kwt td:first-child { min-width: 140px; }
.stage .pad { padding: 22px 20px; }
.stage .kw-you { display: none; }
@media (max-width: 640px) {
  .kwt td:first-child { min-width: 0; }
  .kwt td:nth-child(3) { white-space: normal; }
}
.checklist li[class] > .ldot { align-self: flex-start; margin-top: 8px; transform: none; }
.checklist li > .ldot:only-child, .checklist li:not(:has(> div)) > .ldot { align-self: center; margin-top: 0; }

/* scan su telefono: in alto solo il passo in corso e la barra, sotto il palco */
@media (max-width: 960px) {
  .rail { order: 1; padding: 18px 18px 16px; border-radius: 20px; }
  .stage { order: 2; }
  .rail-sub { font-size: 16px; margin: 6px 0 10px; }
  .step:not([data-state='running']) { display: none; }
  .steps { flex: none; }
  .progress { margin-top: 12px; }
}

/* ---------- domanda sulla spesa ---------- */
.gate { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 28px 40px; align-items: start; margin: 0 0 40px; padding: clamp(24px, 3.5vw, 36px); border-radius: 24px; background: linear-gradient(135deg, #eef3ff 0%, #f1fbf6 100%); border: 1.5px solid #cfdcff; }
.gate h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 12px; text-wrap: balance; }
.gate-copy p:not(.eyebrow) { margin: 0; color: #2b2f3a; font-size: 16px; }
.gate-form { display: grid; gap: 14px; }
.gate-q { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.gate-q legend { font-weight: 800; color: var(--ink); font-size: 16px; margin-bottom: 8px; padding: 0; }
.gate-q label { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1.5px solid #d7dbe5; border-radius: 14px; cursor: pointer; font-weight: 550; transition: border-color 0.15s, box-shadow 0.15s; }
.gate-q label:hover { border-color: #9db7ff; }
.gate-q label:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(0 85 255 / 14%); }
.gate-q input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; flex: none; }
.gate-q:disabled label { opacity: 0.6; cursor: default; }
.gate .btn { justify-self: start; }
.gate-msg { margin: 0; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: #2b2f3a; font-size: 15px; }
@media (max-width: 960px) { .gate { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .gate .btn { justify-self: stretch; } }
