/* te AI rezolvat, v6: chestionarul.
   Un ecran, o întrebare. Stânga e pagina albă, dreapta e arta granulată.
   Fără fonturi din afară, fără imagini din afară. */

:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-2: #444444;
  --ink-3: #5a5a5a;
  --line: #d4d4d4;
  --line-2: #8a8a8a;
  --soft: #f5f5f5;
  --accent: #1b3fd1;
  --accent-soft: #e8edff;
  --danger: #b3261e;
  --on-ink: #ffffff;
  --on-accent: #ffffff;
  --off: #d9d9d9;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1114;
    --ink: #f4f5f6;
    --ink-2: #c9cdd2;
    --ink-3: #aab0b7;
    --line: #2b2f35;
    --line-2: #6c7580;
    --soft: #171a1f;
    --accent: #8aa2ff;
    --accent-soft: #1a2240;
    --danger: #ff9b93;
    --on-ink: #0f1114;
    --on-accent: #0f1114;
    --off: #2a2e34;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
}
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- cadrul: stânga conținut, dreapta artă ---------- */
.shell { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); min-height: 100dvh; }
.left { display: flex; flex-direction: column; min-height: 100dvh; min-width: 0; }
.art {
  position: sticky; top: 0; height: 100dvh;
  background: #0f1322 url("arta.webp") center / cover no-repeat;
}
.art-msg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(82%, 640px); margin: 0; text-align: center; color: #ffffff;
  display: flex; flex-direction: column; gap: .55em;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .65), 0 1px 3px rgba(0, 0, 0, .55);
}
.art-msg .l { font-size: clamp(1.45rem, 2.1vw, 2.15rem); font-weight: 800; line-height: 1.32; letter-spacing: -.015em; text-wrap: balance; }
.art-msg .ai { font-weight: 800; color: #8aa2ff; }
.art-msg .ai.big { font-size: 1.5em; font-weight: 900; letter-spacing: -.02em; }
.art-msg[hidden] { display: none; }

/* ---------- bara de sus ---------- */
.top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 18px var(--pad); border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.brand b { color: var(--accent); }
.dashes { display: flex; gap: 8px; }
.dashes[hidden] { display: none; }
.dashes li { width: 52px; height: 4px; background: var(--off); }
.dashes li.on { background: var(--ink); }
.pill {
  justify-self: end; font-size: .94rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); padding: 8px 14px; background: var(--bg); white-space: nowrap;
}

/* ---------- zona principală ---------- */
.main { flex: 1; padding: clamp(36px, 8vh, 96px) var(--pad) 40px; }
.step { max-width: 720px; }
.step[data-step="1"] h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.24; max-width: 20ch; }
.js .step { display: none; }
.js .step.on { display: block; }
html:not(.js) .step { margin-bottom: 64px; }
html:not(.js) .bar, html:not(.js) .payback, html:not(.js) .aform { display: none; }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; font-weight: 800; letter-spacing: -.035em; outline: none; text-wrap: balance; }
.step h1 b { color: var(--accent); font-weight: 800; }
.hint { margin-top: 14px; color: var(--ink-2); font-size: 1.06rem; max-width: 56ch; }
h2 { font-size: 1.38rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
h3 { font-size: 1.18rem; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
.fine { margin-top: 10px; font-size: .94rem; color: var(--ink-3); max-width: 62ch; }

/* ---------- opțiunile ---------- */
.opts { margin-top: clamp(24px, 4vh, 40px); display: grid; gap: 10px; max-width: 720px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border: 1px solid var(--line); background: var(--bg);
  cursor: pointer; font-size: 1.08rem; font-weight: 600; transition: border-color .12s, background-color .12s;
}
.opt:hover { border-color: var(--line-2); }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--soft); }
.opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.ic { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic circle { fill: currentColor; stroke: none; }
/* buton radio desenat, ca alegerea sa fie limpede la o privire */
.opt::after { content: ""; margin-left: auto; flex: none; width: 18px; height: 18px; border: 2px solid var(--line-2); border-radius: 50%; transition: border-color .12s; }
.opt:hover::after { border-color: var(--ink-3); }
.opt:has(input:checked)::after { border-color: var(--accent); background: radial-gradient(circle at center, var(--accent) 0 4px, transparent 5px); }

/* ---------- bara de jos ---------- */
.bar {
  position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px var(--pad); background: var(--bg); border-top: 1px solid var(--line);
}
.bar[hidden] { display: none; }
.back {
  display: inline-flex; gap: 8px; align-items: center; padding: 11px 16px;
  border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 600;
}
.back:hover { border-color: var(--line-2); }
.back[hidden] { display: none; }
.bar .btn { margin-left: auto; }
.btn {
  padding: 13px 26px; border: 0; background: var(--ink); color: var(--on-ink);
  font-weight: 700; font-size: 1.04rem; cursor: pointer;
}
.btn:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); }
.btn:disabled { background: var(--off); color: var(--ink-3); cursor: not-allowed; }
.btn:focus-visible, .back:focus-visible, .vplay:focus-visible, .link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- rezultatul ---------- */
.result { max-width: 760px; }
.rec { margin-top: 26px; border: 1px solid var(--ink); padding: clamp(20px, 3vw, 30px); background: var(--bg); }
.rec .tag { font-size: .94rem; font-weight: 700; color: var(--accent); }
.rec h2 { margin-top: 6px; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.rec p { margin-top: 10px; color: var(--ink-2); max-width: 58ch; }
.rec .meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.rec .meta div { display: grid; }
.rec .meta b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rec .meta span { font-size: .94rem; color: var(--ink-3); }

.payback { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.pb-inputs { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.pb-inputs label { display: grid; gap: 6px; font-size: .94rem; font-weight: 600; color: var(--ink-2); }
.pb-inputs input[type="number"] { padding: 11px 12px; border: 1px solid var(--line-2); background: var(--bg); font-size: 1.06rem; width: 100%; }
.pb-inputs input[type="range"] { width: 100%; accent-color: var(--accent); }
.pb-inputs output { color: var(--ink); font-weight: 800; }
.pb-out { margin-top: 18px; font-size: 1.12rem; color: var(--ink); max-width: 62ch; }
.pb-out b { font-variant-numeric: tabular-nums; }
.pb-out.no { color: var(--ink-2); }

.voice { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.voice[hidden] { display: none; }
.vbtns { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.vplay {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 0;
  background: var(--accent); color: var(--on-accent); font-weight: 700; cursor: pointer;
}
.vplay:hover { filter: brightness(1.12); }
.tr { margin-top: 14px; }
.tr summary { cursor: pointer; font-weight: 600; }
.tr p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
.vfacts { margin-top: 16px; display: grid; gap: 10px; }
.vfacts li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 1rem; max-width: 62ch; }
.vfacts li::before { content: ""; position: absolute; left: 0; top: .78em; width: 9px; height: 2px; background: var(--accent); }
.vfacts b { color: var(--ink); }

/* rezultat fara pret fix (telefon / altceva): ascundem cifra ca sa n-o ia drept promisiune */
.est-only { display: none; }
.is-estimate .est-only { display: block; }
.is-estimate #price-lead, .is-estimate .price-floor, .is-estimate #pb-price-label { display: none; }

.h-offers { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.03em; }
.price-floor { margin-top: 20px; border: 1px solid var(--ink); padding: clamp(22px, 3vw, 32px); background: var(--bg); max-width: 640px; }
.pf-num { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pf-num b { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pf-num span { font-size: 1rem; color: var(--ink-3); }
.pf-list { margin-top: 18px; display: grid; gap: 11px; }
.pf-list li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 1.02rem; max-width: 60ch; }
.pf-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 2px; background: var(--accent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aform { margin-top: 20px; max-width: 460px; display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .94rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { padding: 12px 13px; border: 1px solid var(--line-2); background: var(--bg); font-size: 1.06rem; width: 100%; font-family: inherit; }
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.err { font-size: .94rem; color: var(--danger); min-height: 0; }
.aform .btn { justify-self: start; }

.again { margin-top: 40px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* ---------- telefon: arta devine o fâșie sus ---------- */
@media (max-width: 899px) {
  .shell { grid-template-columns: 1fr; }
  .art { position: static; order: -1; height: 84px; }
  .left { min-height: calc(100dvh - 84px); }
  .top { grid-template-columns: 1fr auto; }
  .dashes { grid-column: 1 / -1; grid-row: 2; }
  .dashes li { flex: 1; width: auto; }
  .pill { display: none; }
  .art-msg { display: none; }
  .is-result .art { position: static; height: auto; order: -1; }
  .is-result .art .voice { position: static; justify-content: flex-start; padding: 24px 16px; }
  .main { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.v-lead { margin-top: 8px; color: var(--ink-2); font-size: 1.06rem; font-weight: 600; }

/* ---------- vocea pe panoul albastru (pasul 4) ---------- */
.art .voice { position: absolute; inset: 0; margin: 0; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 5vh, 56px) clamp(22px, 3vw, 48px);
  color: #fff; background: linear-gradient(180deg, rgba(8,12,22,.5), rgba(8,12,22,.35)); }
.art .voice[hidden] { display: none; }
.art .voice h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.art .voice .v-lead { color: #dfe6ff; font-weight: 650; }
.art .voice .fine { color: #c3ccdd; }
.art .voice .tr summary { color: #fff; }
.art .voice .tr p { color: #cdd4e2; }
.art .voice .vfacts li { color: #dde3ee; }
.art .voice .vfacts li::before { background: #8aa2ff; }
.art .voice .vfacts b { color: #fff; }
.art .voice .vplay { background: #4f6cf0; }
.art .voice .vplay:hover { background: #6d8bff; }

/* pasul 4: textul alb sus, apoi exemplul cu telefonul, pe acelasi panou */
.v-top { margin: 0 0 6px; color: #aebbff; font-weight: 700; font-size: .98rem; letter-spacing: .01em; }
.is-result .art { overflow-y: auto; display: flex; flex-direction: column; justify-content: center; }
.is-result .art-msg[data-step="4"] { position: static; transform: none; left: auto; top: auto; flex: none;
  width: auto; max-width: none; margin: 0; padding: clamp(28px,4vh,48px) clamp(22px,3vw,48px) 8px; }
.is-result .art .voice { position: static; inset: auto; flex: none; justify-content: flex-start; text-align: center;
  padding: 10px clamp(22px,3vw,48px) clamp(28px,4vh,48px); min-height: 0; }

/* showcase-ul telefonului, centrat pe panou */
.art .voice .vbtns { justify-content: center; }
.art .voice .tr { text-align: center; }
.art .voice .tr[open] { text-align: left; }
.art .voice .tr summary { display: inline-block; }
.art .voice .vfacts { text-align: left; }

/* transcrierea conversatiilor, in panoul intunecat */
.vscript { text-align: left; display: grid; gap: 7px; }
.vscript p { margin-top: 0; font-size: .98rem; line-height: 1.5; }
.art .voice .vscript p { color: #cdd4e2; }
.art .voice .vscript b { color: #fff; font-weight: 650; }
.vscript-h { margin-top: 14px !important; }
.vscript-h:first-child { margin-top: 0 !important; }

/* CTA care duce la formularul de audit, pe panoul vocal */
.vcta { margin-top: 18px; }
.art .voice .vaudit { padding: 13px 26px; border: 0; background: #fff; color: #0f1322;
  font-weight: 700; font-size: 1.04rem; cursor: pointer; }
.art .voice .vaudit:hover { background: #dfe6ff; }
.art .voice .vaudit:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- subsolul site-ului ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--soft); color: var(--ink-2); font-size: .96rem; }
.sf-in {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px;
  padding: 48px var(--pad) 40px; max-width: 1400px;
}
.sf-desc { margin-top: 14px; max-width: 42ch; line-height: 1.6; }
.sf-contact { margin-top: 22px; display: grid; gap: 12px; }
.sf-contact li { display: flex; align-items: center; gap: 12px; }
.sf-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--accent-soft); color: var(--accent); }
.sf-ic .ic { width: 18px; height: 18px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.site-foot .brand { color: var(--ink); }
.site-foot .brand:hover { text-decoration: none; color: var(--ink); }
.sf-h { font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.sf-col ul { display: grid; gap: 10px; }
.sf-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 18px var(--pad); border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-3);
}
@media (max-width: 899px) {
  .sf-in { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
}

/* ---------- paginile legale ---------- */
.legal-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px var(--pad); border-bottom: 1px solid var(--line); }
.legal-top a.back-site { color: var(--accent); font-weight: 600; text-decoration: none; }
.legal-top a.back-site:hover { text-decoration: underline; }
.legal { max-width: 760px; padding: clamp(32px, 6vh, 72px) var(--pad) 72px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; }
.legal .upd { margin-top: 10px; color: var(--ink-3); font-size: .94rem; }
.legal h2 { margin-top: 40px; }
.legal p, .legal ul { margin-top: 12px; color: var(--ink-2); max-width: 68ch; }
.legal ul { list-style: disc; padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--accent); }
.sf-heart { color: #e0245e; margin: 0 .2em; }
