:root {
  --bg: #0a0a14;
  --card: #131323;
  --elev: #1a1a2a;
  --cyan: #7de0e6;
  --muted: #8e8ea0;
  --body: #c9c9d1;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --danger: #e36b6b;
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--body); font-family: var(--font);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; padding: .75rem 1rem; background: #050510; color: #fff; border: 1px solid var(--cyan); border-radius: 6px; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; max-width: 880px; margin: 0 auto; }
.brand { color: #fff; font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; }
.brand span { color: var(--cyan); }
.brand:hover { text-decoration: none; }
.lang { display: flex; align-items: center; gap: .25rem; font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.lang button { background: none; border: 0; color: var(--muted); font: inherit; padding: .5rem .4rem; min-height: 2.5rem; cursor: pointer; }
.lang button[aria-pressed="true"] { color: #fff; font-weight: 500; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.hero { padding: 1.5rem 0 1.75rem; }
.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin: 0 0 .75rem; }
h1 { color: #fff; font-weight: 600; font-size: clamp(1.75rem, 6vw, 2.75rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 1rem; overflow-wrap: anywhere; }
.lead { color: var(--body); font-size: 1.0625rem; margin: 0; max-width: 40rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.field { margin-bottom: 1.1rem; min-width: 0; }
.row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
label { display: block; color: #fff; font-weight: 500; font-size: .9375rem; margin-bottom: .4rem; }
textarea, input[type="text"], input[type="email"], select {
  width: 100%; background: var(--elev); color: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: .8rem .9rem; font: inherit; font-size: 1rem; min-height: 3rem;
}
textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
textarea:focus, input:focus, select:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(125, 224, 230, .18); }
.hint { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin: .4rem 0 0; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--cyan); }
.check label { font-weight: 400; color: var(--body); margin: 0; }
.err { color: var(--danger); font-size: .875rem; margin: .4rem 0 0; grid-column: 1 / -1; }
.note { font-size: .8125rem; color: var(--muted); margin: 0 0 1.1rem; }
.turnstile { margin-bottom: 1rem; min-height: 0; max-width: 100%; overflow: hidden; }
.status { margin: .9rem 0 0; color: var(--muted); font-size: .9375rem; min-height: 1.4em; }
.status.bad { color: var(--danger); }

.ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .95rem 1.6rem; min-height: 3rem;
  border-radius: 999px; font: inherit; font-size: .9375rem; font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: opacity .2s, border-color .2s, background .2s; text-decoration: none; line-height: 1; text-align: center; max-width: 100%;
}
.ac-btn:hover { text-decoration: none; }
.ac-btn--primary { background: #fff; color: #0a0a14; }
.ac-btn--primary:hover { opacity: .92; }
.ac-btn--primary[disabled] { opacity: .5; cursor: progress; }
.ac-btn--ghost { background: transparent; color: #fff; border-color: var(--line-strong); }
.ac-btn--ghost:hover { border-color: #fff; }
#submit { width: 100%; }

.result h2 { color: #fff; font-weight: 600; font-size: 1.375rem; letter-spacing: -.01em; margin: 0 0 .5rem; }
.summary { margin: 0 0 1.25rem; }
.line { border-top: 1px solid var(--line); padding: 1rem 0; }
.line:first-of-type { border-top: 0; padding-top: 0; }
.line h3 { color: #fff; font-size: 1.0625rem; font-weight: 600; margin: 0 0 .25rem; overflow-wrap: anywhere; }
.line p { margin: .25rem 0; }
.meta { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.price { color: var(--cyan); font-family: var(--mono); font-size: .9375rem; }
.totals { background: var(--elev); border-radius: 12px; padding: 1rem; margin: 1rem 0; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .25rem 0; }
.totals .grand { border-top: 1px solid var(--line-strong); margin-top: .4rem; padding-top: .6rem; color: #fff; font-weight: 600; }
.totals .grand .price { font-size: 1.0625rem; }
.result h3.sub { color: #fff; font-size: 1rem; margin: 1.25rem 0 .5rem; }
.result ul { margin: 0; padding-left: 1.1rem; }
.result li { margin: .35rem 0; }
.disclaimer { font-size: .875rem; color: var(--muted); margin: 1rem 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.notice-msg { color: #fff; font-size: 1.0625rem; margin: 0; }


@media (min-width: 640px) {
  .row { grid-template-columns: 1fr 1fr; }
  .card { padding: 1.75rem; }
  #submit { width: auto; }
}
@media (max-width: 360px) {
  .ac-btn { white-space: normal; padding: .85rem 1.1rem; }
  .totals div { flex-direction: column; gap: 0; }
}

/* Analysis steps (state hooks: data-status="active|done"). Visuals are owned by the design pass. */
.steps { list-style: none; margin: 1rem 0 0; padding: 0; font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.steps li { padding: .25rem 0; }
.steps li[data-status="active"] { color: var(--cyan); }
.steps li[data-status="done"] { color: #fff; }
#app[data-state="analyzing"] #submit { opacity: .5; }

/* ===================== HUD layer (Jarvis-like) =====================
   Brand base stays acerbo.ai: bg #0a0a14, cards #131323, white pill CTA, Inter + JetBrains Mono.
   Cyan = accents/focus; mint, violet, amber only inside FX. Everything below is decorative
   and switched off under prefers-reduced-motion. */
:root { --mint: #a8f5b5; --violet: #7a5aa8; --amber: #e8a55c; --teal: #1f6b7a; --hud: var(--cyan); }
#app[data-state="error"], #app[data-state="limited"] { --hud: var(--amber); }
#app[data-state="result"] { --hud: var(--mint); }

.fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.fx-vignette { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(125,224,230,.10), transparent 60%),
              radial-gradient(900px 500px at -10% 30%, rgba(122,90,168,.10), transparent 60%),
              radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(5,5,12,.85) 100%); }
.top, .hud-bar, .wrap, .foot, .skip { position: relative; z-index: 1; }

/* Status line */
.hud-bar { max-width: 880px; margin: 0 auto; padding: .45rem 1.25rem; display: flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; color: var(--muted);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-transform: uppercase; min-width: 0; }
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hud); box-shadow: 0 0 10px var(--hud); flex: none; animation: hud-blink 2.4s infinite; }
.hud-tag { color: var(--hud); flex: none; }
.hud-line { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hud-caret { width: .55em; height: 1em; background: var(--hud); flex: none; animation: hud-blink 1s steps(1) infinite; }
.hud-right { margin-left: auto; display: flex; gap: .5rem; flex: none; }
.hud-sep { opacity: .5; }
@media (max-width: 520px) { .hud-right, .hud-tag { display: none; } }

/* Hero + arc reactor */
.hero { position: relative; padding-right: 0; }
.wrap { overflow-x: clip; }
.reactor { position: absolute; right: -2.5rem; top: -1rem; width: 230px; height: 230px; color: var(--hud); opacity: .9; pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(125,224,230,.35)); transition: color .6s; }
.reactor .r { transform-origin: 100px 100px; transform-box: view-box; }
.reactor .r0 { animation: spin 60s linear infinite; }
.reactor .r1 { animation: spin 18s linear infinite; }
.reactor .r2 { animation: spin 26s linear infinite reverse; }
.reactor .r3 { animation: spin 9s linear infinite; }
.reactor .r4 { animation: spin 14s linear infinite reverse; }
.reactor .core { transform-origin: 100px 100px; transform-box: view-box; animation: pulse 3.2s ease-in-out infinite; }
#app[data-state="typing"] .reactor .r1 { animation-duration: 8s; }
#app[data-state="typing"] .reactor .r3 { animation-duration: 4s; }
#app[data-state="analyzing"] .reactor .r1 { animation-duration: 2.2s; }
#app[data-state="analyzing"] .reactor .r2 { animation-duration: 3s; }
#app[data-state="analyzing"] .reactor .r3 { animation-duration: 1.2s; }
#app[data-state="analyzing"] .reactor .r4 { animation-duration: 1.8s; }
#app[data-state="analyzing"] .reactor .core { animation-duration: .8s; }
.hero h1, .hero .lead { position: relative; max-width: 34rem; }
@media (max-width: 760px) { .reactor { width: 170px; height: 170px; right: -3.5rem; top: -2.5rem; opacity: .45; } }

/* HUD card: glass, corner brackets, scan line */
.hud-card { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(19,19,35,.88), rgba(19,19,35,.96));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .4s, box-shadow .4s; }
.hud-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); }
.hud-corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--hud); opacity: .8; pointer-events: none; transition: border-color .4s; }
.hud-corner.tl { top: 10px; left: 10px; border-top-width: 1.5px; border-left-width: 1.5px; }
.hud-corner.tr { top: 10px; right: 10px; border-top-width: 1.5px; border-right-width: 1.5px; }
.hud-corner.bl { bottom: 10px; left: 10px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud-corner.br { bottom: 10px; right: 10px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
#app[data-state="typing"] #formSection { border-color: rgba(125,224,230,.35); box-shadow: 0 0 0 1px rgba(125,224,230,.08), 0 20px 60px -30px rgba(125,224,230,.45); }
#app[data-state="error"] #formSection, #app[data-state="limited"] #notice { border-color: rgba(232,165,92,.4); }
.scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(125,224,230,.10) 70%, rgba(125,224,230,.55) 99%, transparent); }
#app[data-state="analyzing"] .scan { opacity: 1; animation: scan 1.8s cubic-bezier(.5,0,.5,1) infinite; }
#app[data-state="analyzing"] #quoteForm { filter: saturate(.6); opacity: .55; transition: opacity .4s; }
textarea:focus { box-shadow: 0 0 0 3px rgba(125,224,230,.18), 0 0 24px -6px rgba(125,224,230,.6); }
.hint #count { color: var(--hud); }

/* Submit: shimmer while analyzing */
#submit { position: relative; overflow: hidden; }
#app[data-state="analyzing"] #submit::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(125,224,230,.55) 50%, transparent 80%); animation: shimmer 1.1s linear infinite; }

/* Progress + steps */
.progress { display: none; align-items: center; gap: .8rem; margin: 1.25rem 0 0; font-family: var(--mono); font-size: .75rem; }
#app[data-state="analyzing"] .progress, #app[data-state="result"] .progress { display: flex; }
.progress-track { flex: 1; height: 3px; background: var(--line-strong); border-radius: 3px; overflow: hidden; }
.progress-bar { --p: 0; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p));
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--mint)); box-shadow: 0 0 12px var(--cyan); }
.progress-pct { color: #fff; min-width: 3.2em; text-align: right; }
.steps { counter-reset: st; display: grid; gap: .35rem; margin-top: .9rem; }
.steps li { counter-increment: st; display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border: 1px solid var(--line);
  border-radius: 10px; background: rgba(26,26,42,.6); transition: border-color .3s, color .3s, background .3s; }
.steps li::before { content: "0" counter(st); color: var(--muted); font-size: .6875rem; }
.steps li::after { content: "STANDBY"; margin-left: auto; font-size: .625rem; letter-spacing: .12em; color: var(--muted); }
.steps li[data-status="active"] { border-color: rgba(125,224,230,.45); background: rgba(125,224,230,.06); }
.steps li[data-status="active"]::after { content: "PROCESSING"; color: var(--cyan); animation: hud-blink .9s steps(1) infinite; }
.steps li[data-status="done"]::after { content: "OK ✓"; color: var(--mint); }
.steps li[data-status="done"]::before { color: var(--mint); }

/* Result: modules assemble one by one */
.result .card { position: relative; overflow: hidden; border-color: rgba(168,245,181,.22); animation: hud-in .6s cubic-bezier(.2,.8,.2,1) both; }
.result .card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), var(--cyan), transparent); }
.result [data-field="modules[]"] { position: relative; padding-left: 1rem; border-left: 1px solid transparent;
  animation: hud-in .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 140ms + 200ms); }
.result [data-field="modules[]"]::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.result .line:first-of-type::before { top: .15rem; }
.result .totals { position: relative; border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(26,26,42,.9), rgba(26,26,42,.6)); }
.result .totals .grand .price { font-size: 1.25rem; color: #fff; text-shadow: 0 0 18px rgba(125,224,230,.55); font-variant-numeric: tabular-nums; }
.result [data-field="range_min"], .result [data-field="range_max"] { font-variant-numeric: tabular-nums; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes hud-blink { 50% { opacity: .25; } }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(440%); } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes hud-in { from { opacity: 0; transform: translateY(10px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scan { display: none; }
}
.result .market-note { display: block; margin-top: .35rem; font-size: .8125rem; color: var(--muted); border-left: 2px solid var(--line-strong); padding-left: .6rem; }

/* ===================== Scope cards + "How it works" explainer ===================== */
.hero-actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem; position: relative; }
.scope { margin: 0 0 1.75rem; }
.scope-h { color: #fff; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .35rem; }
.scope-sub { margin: 0 0 1rem; color: var(--body); }
.scope-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .scope-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .scope-grid { grid-template-columns: 1fr 1fr 1fr; } }
.scope-card { width: 100%; height: 100%; text-align: left; display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem;
  background: rgba(19,19,35,.85); border: 1px solid var(--line); border-radius: 14px; color: var(--body); font: inherit; cursor: pointer;
  transition: border-color .25s, transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.scope-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--cyan), var(--mint)); opacity: .5; }
.scope-card:hover, .scope-card:focus-visible { border-color: rgba(125,224,230,.45); transform: translateY(-2px); box-shadow: 0 14px 40px -24px rgba(125,224,230,.6); }
.scope-title { color: #fff; font-weight: 600; font-size: 1rem; }
.scope-desc { font-size: .875rem; line-height: 1.5; }
.scope-cta { margin-top: auto; padding-top: .4rem; font-family: var(--mono); font-size: .75rem; color: var(--cyan); }
.scope-note { margin: .9rem 0 0; font-size: .8125rem; color: var(--muted); }

.how-dlg { width: min(640px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 1.25rem; border: 1px solid rgba(125,224,230,.3);
  border-radius: var(--radius); background: #0f0f1c; color: var(--body); box-shadow: 0 30px 90px -30px rgba(125,224,230,.45); }
.how-dlg::backdrop { background: rgba(5,5,12,.75); backdrop-filter: blur(3px); }
.how-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.how-head h2 { margin: 0; color: #fff; font-size: 1.125rem; font-weight: 600; }
.how-x { background: none; border: 0; color: var(--muted); font-size: 1.1rem; min-width: 2.5rem; min-height: 2.5rem; cursor: pointer; }
.how-stage { position: relative; min-height: 220px; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; overflow: hidden;
  background: radial-gradient(500px 200px at 80% 0%, rgba(125,224,230,.08), transparent 60%), repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px); }
.how-scene { position: absolute; inset: 1rem 1rem 2rem; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.how-scene[data-state="active"] { opacity: 1; transform: none; }
.how-label { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: .8rem; }
.how-input { min-height: 4.5rem; padding: .8rem .9rem; border: 1px solid rgba(125,224,230,.45); border-radius: 10px; background: #1a1a2a; color: #fff;
  box-shadow: 0 0 24px -8px rgba(125,224,230,.6); font-size: .95rem; }
.how-caret { display: inline-block; width: .5em; height: 1em; background: var(--cyan); vertical-align: text-bottom; margin-left: 2px; animation: hud-blink 1s steps(1) infinite; }
.how-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.how-chip { padding: .45rem .75rem; border-radius: 999px; border: 1px solid rgba(125,224,230,.45); background: rgba(125,224,230,.08); color: #fff; font-size: .85rem;
  opacity: 0; transform: scale(.9); }
.how-chip--fee { border-color: rgba(168,245,181,.45); background: rgba(168,245,181,.08); }
.how-scene[data-state="active"] .how-chip { animation: chip-in .5s cubic-bezier(.2,.8,.2,1) forwards; }
.how-scene[data-state="active"] .how-chip:nth-child(2) { animation-delay: .6s; }
.how-scene[data-state="active"] .how-chip:nth-child(3) { animation-delay: 1.2s; }
.how-total { font-size: 1rem; color: var(--body); }
.how-total strong { display: block; margin-top: .3rem; font-family: var(--mono); font-size: 2.2rem; color: #fff; text-shadow: 0 0 20px rgba(125,224,230,.6); font-variant-numeric: tabular-nums; }
.how-done { font-size: 1.05rem; color: #fff; padding: .9rem 1rem; border-radius: 10px; border: 1px solid rgba(168,245,181,.45); background: rgba(168,245,181,.07); }
.how-bar { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; height: 3px; background: var(--line-strong); border-radius: 3px; overflow: hidden; }
.how-bar-fill { --p: 0; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p)); background: linear-gradient(90deg, var(--teal), var(--cyan), var(--mint)); }
.how-text { margin: .9rem 0 0; padding-left: 1.2rem; font-size: .875rem; color: var(--muted); }
.how-text li { margin: .15rem 0; }
.how-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; margin-top: 1rem; }
@keyframes chip-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .how-scene { position: static; opacity: 1; transform: none; margin-bottom: 1rem; }
  .how-chip { opacity: 1; transform: none; }
  .how-stage { min-height: 0; }
}

/* ===================== Footer (mobile first) ===================== */
.foot { position: relative; z-index: 1; max-width: 880px; margin: 2rem auto 0; padding: 0 1.25rem 2rem; color: var(--muted); font-size: .875rem; }
.foot-rule { height: 1px; margin-bottom: 1.75rem; background: linear-gradient(90deg, transparent, rgba(125,224,230,.6), rgba(168,245,181,.4), transparent);
  box-shadow: 0 0 12px rgba(125,224,230,.5); }
.foot-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
.foot-brand .brand { font-size: 1.25rem; }
.foot-tag { margin: .5rem 0 1rem; color: var(--body); max-width: 24rem; }
.foot-cta { width: 100%; }
.foot-h { margin: 0 0 .6rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--cyan); text-transform: lowercase; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.foot-col a { display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--body); font-family: var(--mono); font-size: .8125rem; }
.foot-col a::before { content: "›"; color: var(--cyan); margin-right: .5rem; transition: transform .2s; }
.foot-col a:hover { color: #fff; text-decoration: none; }
.foot-col a:hover::before { transform: translateX(3px); }
.foot-sys { margin-top: 1.75rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(19,19,35,.7);
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; color: var(--muted); }
.foot-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: hud-blink 2.4s infinite; }
.foot-sep { opacity: .4; }
#footClock { color: #fff; font-variant-numeric: tabular-nums; }
.foot-copy { margin: 1rem 0 0; font-size: .75rem; }
@media (min-width: 640px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-cta { width: auto; }
}

.cal-toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: .8rem 1.1rem; border-radius: 12px; border: 1px solid rgba(168,245,181,.5); background: #0f0f1c; color: #fff; font-size: .9rem;
  box-shadow: 0 16px 50px -20px rgba(168,245,181,.6); transition: opacity .3s, transform .3s; max-width: calc(100vw - 2rem); }
.cal-toast[data-show="1"] { opacity: 1; transform: translate(-50%, 0); }
.steps[hidden], .progress[hidden] { display: none !important; }
.foot nav.foot-col ul { grid-template-columns: 1fr 1fr; column-gap: 1rem; }

/* ===================================================================================
   onboard.acerbo.ai additions. Everything above is the quote.acerbo.ai stylesheet, unchanged.
   =================================================================================== */

/* Square geometry (acerbo.ai style: zero border-radius). Remove this block to get quote's rounded corners back. */
:root { --radius: 0; }
*, *::before, *::after { border-radius: 0 !important; }
.hud-dot, .foot-dot, .receipt-ok { border-radius: 50% !important; }

/* ---------- Two entrances: Sell / Buy, with the blind desk between them ---------- */
.paths-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; align-items: stretch; }
.path-card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.2rem 1.2rem; overflow: hidden;
  background: linear-gradient(180deg, rgba(19,19,35,.9), rgba(19,19,35,.97)); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .25s; }
.path-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--cyan), var(--mint)); opacity: .5; transition: opacity .25s; }
.path-card::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(125,224,230,.07) 70%, rgba(125,224,230,.35) 99%, transparent); }
.path-card:hover::after, .path-card:focus-within::after { opacity: 1; animation: scan 2.4s cubic-bezier(.5,0,.5,1) infinite; }
.path-card:hover, .path-card:focus-within { border-color: rgba(125,224,230,.4); box-shadow: 0 16px 44px -26px rgba(125,224,230,.6); }
.path-card[data-selected="true"] { border-color: rgba(125,224,230,.7); box-shadow: 0 0 0 1px rgba(125,224,230,.18), 0 20px 60px -30px rgba(125,224,230,.7); }
.path-card[data-selected="true"]::before { opacity: 1; width: 3px; }
.path-card[data-selected="false"] { opacity: .72; }
.path-tag { margin: 0; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; color: var(--cyan); }
.path-title { margin: 0; color: #fff; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.path-desc { margin: 0; font-size: .9375rem; }
.path-list { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: .875rem; }
.path-list li { position: relative; padding-left: 1.1rem; }
.path-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--cyan); }
.path-actions { margin-top: auto; padding-top: .9rem; display: grid; gap: .7rem; position: relative; z-index: 1; }
.path-actions .ac-btn { width: 100%; }
.path-ex { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.chip-btn { background: rgba(125,224,230,.06); border: 1px solid rgba(125,224,230,.35); color: #fff; font: inherit; padding: .4rem .6rem; min-height: 2.25rem; cursor: pointer;
  transition: background .2s, border-color .2s; }
.chip-btn:hover, .chip-btn:focus-visible { background: rgba(125,224,230,.16); border-color: var(--cyan); }
.chip-btn::after { content: " →"; color: var(--cyan); }

.bridge { display: none; width: 100%; height: 100%; min-height: 220px; color: var(--hud); }
.bridge-line { stroke: currentColor; stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 3 5; animation: dash 1.6s linear infinite; }
.bridge-lock { fill: #0a0a14; stroke: currentColor; stroke-width: 1.2; }
.bridge-key { fill: none; stroke: currentColor; stroke-width: 1.2; }
.bridge-pulse { fill: var(--mint); filter: drop-shadow(0 0 4px var(--mint)); }
.bridge-pulse.p1 { animation: pulse-in-l 2.8s linear infinite; }
.bridge-pulse.p2 { animation: pulse-in-r 2.8s linear infinite 1.4s; }
.bridge-txt { fill: currentColor; font-family: var(--mono); font-size: 8px; letter-spacing: .2em; opacity: .8; }
@keyframes dash { to { stroke-dashoffset: -16; } }
@keyframes pulse-in-l { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(42px); opacity: 0; } }
@keyframes pulse-in-r { 0% { transform: translateX(120px); opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(78px); opacity: 0; } }
@media (min-width: 760px) {
  .paths-grid { grid-template-columns: 1fr 104px 1fr; gap: 0; }
  .bridge { display: block; }
}

/* ---------- Form ---------- */
#formSection[hidden], #fEsclusioni[hidden], .field[hidden] { display: none !important; }
.form-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; position: relative; }
.form-title { margin: 0; color: #fff; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: .8125rem; }
.seg button { background: transparent; color: var(--muted); border: 0; font: inherit; padding: .55rem .9rem; min-height: 2.5rem; cursor: pointer; transition: background .2s, color .2s; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: #fff; color: #0a0a14; font-weight: 500; }
.blind-warn { position: relative; margin: 0 0 1.25rem; padding: .7rem .85rem; border: 1px solid rgba(232,165,92,.4); background: rgba(232,165,92,.06); color: #fff; font-size: .875rem; }
.blind-ico, .redact { font-family: var(--mono); letter-spacing: .08em; color: var(--amber); }
.legal { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .3rem; font-size: .8125rem; color: var(--muted); }
.legal li { position: relative; padding-left: 1rem; margin: 0; }
.legal li::before { content: "//"; position: absolute; left: 0; font-family: var(--mono); font-size: .6875rem; color: var(--cyan); top: .15em; }
select:required:invalid { color: var(--muted); }
#app[data-state="analyzing"] #onboardForm { filter: saturate(.6); opacity: .55; transition: opacity .4s; pointer-events: none; }
#app[data-path="buyer"] { --hud: var(--mint); }
#app[data-path="buyer"][data-state="error"], #app[data-path="buyer"][data-state="limited"] { --hud: var(--amber); }

/* ---------- Receipt ---------- */
.receipt-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.receipt-head h2 { margin: 0; font-size: 1.625rem; }
.receipt-ok { width: 2.25rem; height: 2.25rem; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #0a0a14; background: var(--mint);
  font-weight: 700; box-shadow: 0 0 0 0 rgba(168,245,181,.6); animation: ok-ring 2.4s ease-out 2; }
.receipt-ref { margin: 0 0 1rem; }
.receipt-code { color: #fff; letter-spacing: .14em; padding: .15rem .45rem; border: 1px solid var(--line-strong); }
.receipt-q { list-style: none; padding: 0 !important; display: grid; gap: .4rem; }
.receipt-q li { padding: .6rem .8rem; border: 1px solid var(--line); background: rgba(26,26,42,.6); color: #fff; margin: 0;
  animation: hud-in .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 140ms + 250ms); }
.result .legal { margin-top: 1.25rem; }
@keyframes ok-ring { 0% { box-shadow: 0 0 0 0 rgba(168,245,181,.6); } 100% { box-shadow: 0 0 0 18px rgba(168,245,181,0); } }

/* ---------- Explainer: scene 3, confidential check ---------- */
.how-stage { min-height: 250px; }
.how-radar-wrap { display: flex; align-items: center; gap: 1rem; }
.how-radar { width: 118px; height: 118px; flex: none; color: var(--cyan); }
.rd-ring { fill: none; stroke: currentColor; stroke-opacity: .35; stroke-width: 1; }
.rd-axis { stroke: currentColor; stroke-opacity: .2; stroke-width: 1; }
.rd-sweep { transform-origin: 60px 60px; transform-box: view-box; }
.rd-sweep path { fill: currentColor; fill-opacity: .22; }
.rd-blip { fill: var(--amber); opacity: 0; }
.how-scene[data-state="active"] .rd-sweep { animation: spin 2.6s linear infinite; }
.how-scene[data-state="active"] .rd-blip { animation: blip 2.6s linear infinite; }
.how-scene[data-state="active"] .rd-blip.b2 { animation-delay: 1.4s; }
.how-scene[data-state="active"] .rd-blip.b3 { animation-delay: .9s; }
.how-radar-txt { margin: 0; font-size: .9rem; color: #fff; }
.how-radar-txt .redact { display: inline-block; margin-bottom: .35rem; font-size: .8rem; }
@keyframes blip { 0%, 12% { opacity: 0; } 18% { opacity: 1; } 60%, 100% { opacity: 0; } }
@media (max-width: 420px) { .how-radar { width: 84px; height: 84px; } }

@media (prefers-reduced-motion: reduce) {
  .path-card::after { display: none; }
  .bridge-pulse { display: none; }
  .rd-blip { opacity: .8; }
  .receipt-q li { opacity: 1; }
}

/* ---------- Privacy page ---------- */
.doc { max-width: 720px; }
.doc h1 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
.doc h2 { color: #fff; font-size: 1.125rem; font-weight: 600; margin: 1.75rem 0 .5rem; }
.doc p, .doc li { font-size: .9375rem; }
.doc ul { padding-left: 1.1rem; }
.doc [lang] { scroll-margin-top: 1rem; }
html[lang="it"] .doc [lang="en"], html[lang="en"] .doc [lang="it"] { display: none; }

/* ---------- Invite gate: until a valid invite is confirmed only the notice is visible ---------- */
#app:not([data-access="granted"]) .gated, #app:not([data-access="granted"]) #notice, #app:not([data-access="granted"]) #result { display: none !important; }
#gate[hidden] { display: none !important; }
.gate { margin-top: 2rem; padding: 2rem 1.5rem; border-color: rgba(232,165,92,.4); }
.gate .eyebrow { color: var(--amber); }
.gate h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
#app[data-access="denied"] { --hud: var(--amber); }
.doc mark.todo { background: var(--amber); color: #0a0a14; font-family: var(--mono); font-weight: 600; padding: .1rem .4rem; }
.doc strong { color: #fff; font-weight: 600; }
