:root {
  --bg: #060d1a;
  --bg-2: #0b1628;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef3fb;
  --muted: #8d9bb3;
  --dim: #5d6b84;
  --green: #69d057;
  --green-2: #8fe57f;
  --green-ink: #07210a;
  --blue: #1e80ec;
  --warn: #ffb547;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Outfit', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient light: a sun rising behind the content */
body::before {
  content: '';
  position: fixed;
  inset: -20vh -30vw auto;
  height: 80vh;
  background:
    radial-gradient(40% 50% at 50% 30%, rgba(105, 208, 87, 0.22), transparent 70%),
    radial-gradient(35% 45% at 80% 0%, rgba(30, 128, 236, 0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 50% at 50% 0%, #000 0%, transparent 80%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

/* ---------- Profile ---------- */
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar {
  position: relative;
  width: 88px; height: 88px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 200deg, var(--green), var(--blue), var(--green));
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); display: block; }
.avatar .live {
  position: absolute; right: 2px; bottom: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--bg);
}
.name { margin: 14px 0 2px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.role { margin: 0; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.role b { color: var(--text); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { margin: 32px 0 24px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-2);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(105, 208, 87, 0.08); border: 1px solid rgba(105, 208, 87, 0.22);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 10vw, 44px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
}
h1 .big {
  display: block;
  font-size: 1.55em;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #c9ffbf 0%, var(--green) 55%, #3e9c30 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 0 auto; max-width: 34ch; color: var(--muted); font-size: 16px; }
.pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.pills li {
  font-size: 13px; color: var(--text);
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 6px;
}
.pills svg { width: 14px; height: 14px; color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  -webkit-tap-highlight-color: transparent;
  appearance: none; border: 0; cursor: pointer;
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 22px;
  border-radius: 16px;
  font: 600 17px/1 var(--display); letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), opacity .2s;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible, .opt:focus-visible, .chip:focus-visible, .link:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary {
  color: var(--green-ink);
  background: linear-gradient(180deg, var(--green-2), var(--green));
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 30px -8px rgba(105, 208, 87, 0.6);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 3.6s var(--ease) 1.2s infinite;
}
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost .arrow { margin-left: auto; color: var(--muted); }
.btn-ghost .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(30,128,236,.14); color: #7db8ff; }
.btn-ghost .ico svg { width: 20px; height: 20px; }
.btn-ghost .txt { text-align: left; display: flex; flex-direction: column; gap: 4px; }
.btn-ghost .txt small { font: 400 13px/1.2 var(--display); color: var(--muted); }
.btn-row { justify-content: flex-start; min-height: 72px; padding: 0 16px; }
.stack { display: grid; gap: 12px; }
.note { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--dim); }

/* ---------- Quiz card ---------- */
.card {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--line-2);
  padding: 22px 18px 18px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.quiz[hidden] { display: none; }
.quiz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.back {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; flex: none;
}
.back[disabled] { opacity: 0; pointer-events: none; }
.back svg { width: 18px; height: 18px; }
.progress { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress span { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; position: relative; }
.progress span::after { content: ''; position: absolute; inset: 0; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.progress span.on::after { transform: scaleX(1); }
.counter { font: 500 12px var(--mono); color: var(--muted); flex: none; }

.step { animation: enter .45s var(--ease) both; }
.step[hidden] { display: none; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.q { margin: 0 0 6px; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.hint { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt {
  -webkit-tap-highlight-color: transparent;
  appearance: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--text); font: 500 16px/1.25 var(--display);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.opt:hover { border-color: rgba(105,208,87,.5); }
.opt:active { transform: scale(.985); }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; transition: .2s; }
.opt[aria-checked="true"] { border-color: var(--green); background: rgba(105,208,87,.1); }
.opt[aria-checked="true"] .dot { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px #0d1d12; }
.opts.two .opt { justify-content: center; font-size: 17px; font-weight: 600; }

/* ---------- Result ---------- */
.result { text-align: center; padding: 6px 4px 2px; }
.badge { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; }
.badge svg { width: 30px; height: 30px; }
.badge.ok { background: rgba(105,208,87,.14); color: var(--green); box-shadow: 0 0 0 8px rgba(105,208,87,.05); }
.badge.no { background: rgba(255,181,71,.12); color: var(--warn); box-shadow: 0 0 0 8px rgba(255,181,71,.04); }
.result h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.result p { margin: 0 auto 20px; max-width: 32ch; color: var(--muted); font-size: 15px; }
.summary { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; text-align: left; }
.summary li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.summary span { color: var(--muted); }
.summary b { font-weight: 600; text-align: right; }
.link { appearance: none; border: 0; background: none; color: var(--muted); font: 500 14px var(--display); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; margin-top: 14px; padding: 6px; }

/* ---------- Trust / footer ---------- */
.trust { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust div { padding: 14px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.trust b { display: block; font: 600 18px var(--mono); letter-spacing: -0.03em; color: var(--text); }
.trust small { font-size: 11px; color: var(--muted); line-height: 1.3; display: block; margin-top: 4px; }
footer { margin-top: 32px; text-align: center; font-size: 12px; color: var(--dim); line-height: 1.6; }
footer a { color: var(--muted); }

/* ---------- Simulator ---------- */
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.topbar a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.topbar .mini { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.sim h1 { font-size: clamp(30px, 8.5vw, 38px); text-align: left; margin: 14px 0 8px; }
.sim .lede { margin: 0; text-align: left; max-width: none; }
.field { margin-top: 24px; }
.field label, .field .lbl { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.money {
  display: flex; align-items: baseline; gap: 8px;
  padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2);
  transition: border-color .2s;
}
.money:focus-within { border-color: var(--green); }
.money span { font: 500 20px var(--mono); color: var(--muted); }
.money input {
  appearance: none; border: 0; background: none; outline: none; width: 100%;
  color: var(--text); font: 600 32px var(--mono); letter-spacing: -0.04em;
}
.range { width: 100%; margin: 16px 0 0; appearance: none; -webkit-appearance: none; height: 28px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--green) var(--p, 20%), var(--line-2) var(--p, 20%)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--green) var(--p, 20%), var(--line-2) var(--p, 20%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 5px solid var(--green); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--green); }
.range:focus-visible { outline: 2px solid var(--green-2); outline-offset: 4px; border-radius: 8px; }
.scale { display: flex; justify-content: space-between; font: 400 11px var(--mono); color: var(--dim); margin-top: 4px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.chip { appearance: none; border: 0; cursor: pointer; min-height: 44px; border-radius: 10px; background: none; color: var(--muted); font: 600 15px var(--display); transition: .25s var(--ease); }
.chip[aria-checked="true"] { background: var(--text); color: var(--bg); }

.out { margin-top: 24px; }
.out .total-lbl { font-size: 13px; color: var(--muted); }
.out .total {
  margin: 4px 0 2px;
  font: 600 clamp(44px, 14vw, 60px)/1 var(--mono); letter-spacing: -0.06em;
  background: linear-gradient(180deg, #d6ffcd, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.bars { margin-top: 22px; display: grid; gap: 14px; }
.bar-row { display: grid; gap: 6px; }
.bar-row header { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.bar-row header b { font: 600 14px var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.bar { height: 12px; border-radius: 12px; background: var(--surface); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; transition: width .6s var(--ease); }
.bar.now i { width: 100%; background: linear-gradient(90deg, #ff7a59, #ffb547); }
.bar.izi i { background: linear-gradient(90deg, var(--blue), var(--green)); }
.kpis { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpis div { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.kpis small { display: block; font-size: 12px; color: var(--muted); }
.kpis b { font: 600 20px var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.disclaimer { margin: 16px 0 0; font-size: 12px; color: var(--dim); line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
