:root {
  --coal: #0d0d0d;
  --steel: #1a1a1e;
  --ash: #2a2a30;
  --ember: #e85d04;
  --flame: #f48c06;
  --mist: #a1a1aa;
  --bone: #fafafa;
  --font: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--coal);
  color: var(--bone);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(232, 93, 4, 0.22), transparent),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(244, 140, 6, 0.06), transparent);
}
a { color: var(--flame); }
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky; top: 0; background: rgba(13,13,13,0.92); backdrop-filter: blur(8px); z-index: 20;
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--bone); font-weight: 700; }
.brand img { border-radius: 8px; }
.brand em { color: var(--ember); font-style: normal; }
.top nav { display: flex; gap: 0.85rem; flex-wrap: wrap; font-size: 0.85rem; }
.top nav a { color: var(--mist); text-decoration: none; }
.top nav a:hover { color: var(--bone); }
.hero { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.kicker { color: var(--flame); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.15; margin: 0.75rem 0 1rem; }
.lead { color: var(--mist); font-size: 1.05rem; line-height: 1.55; }
.ctas { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.5rem 0 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.25rem; border-radius: 12px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-size: 0.95rem;
}
.btn.primary { background: var(--ember); color: #fff; }
.btn.primary:hover { background: var(--flame); }
.btn.ghost { border-color: rgba(255,255,255,0.15); color: var(--bone); background: transparent; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.steps { padding-left: 1.1rem; color: var(--mist); line-height: 1.7; }
.steps strong { color: var(--bone); }
.grid3 { display: grid; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 640px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  border: 1px solid rgba(255,255,255,0.1); background: rgba(26,26,30,0.8);
  border-radius: 16px; padding: 1rem;
}
.card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.card p { margin: 0; font-size: 0.85rem; color: var(--mist); }
.foot {
  border-top: 1px solid rgba(255,255,255,0.06); padding: 1.5rem; text-align: center;
  font-size: 0.75rem; color: var(--mist);
}
.foot a { color: var(--mist); }

/* questionnaire */
.q-wrap { max-width: 520px; margin: 0 auto; padding: 1.5rem 1.15rem 4rem; }
.progress { height: 4px; background: rgba(255,255,255,0.08); border-radius: 99px; margin-bottom: 1.25rem; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--ember); transition: width 0.25s; }
.panel {
  border: 1px solid rgba(255,255,255,0.1); background: rgba(26,26,30,0.92);
  border-radius: 18px; padding: 1.25rem;
}
.panel h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.panel .blurb { color: var(--mist); font-size: 0.9rem; margin: 0 0 1.25rem; }
label.field { display: block; margin-bottom: 1rem; font-size: 0.9rem; font-weight: 600; }
label.field span.hint { display: block; font-weight: 400; font-size: 0.75rem; color: var(--mist); margin-top: 0.2rem; }
input[type=text], input[type=number], input[type=email], textarea, select {
  width: 100%; margin-top: 0.4rem; padding: 0.7rem 0.85rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12); background: var(--coal); color: var(--bone); font-size: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.chip {
  border: 1px solid rgba(255,255,255,0.12); background: var(--ash); color: var(--mist);
  border-radius: 999px; padding: 0.4rem 0.75rem; font-size: 0.8rem; cursor: pointer;
}
.chip.on { background: var(--ember); border-color: var(--ember); color: #fff; }
.row-actions { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.25rem; }
.meta { font-size: 0.75rem; color: var(--mist); margin-bottom: 0.75rem; display: flex; justify-content: space-between; }
.mod { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 0.65rem 0.75rem; margin-bottom: 0.45rem; background: rgba(0,0,0,0.25); }
.mod .pri { color: var(--ember); font-family: ui-monospace, monospace; font-size: 0.75rem; margin-right: 0.5rem; }
.mod .reason { font-size: 0.8rem; color: var(--mist); }
.alert {
  border-radius: 12px; padding: 0.75rem; margin-bottom: 0.5rem; border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
}
.alert.warn { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.1); }
.alert.crit { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.1); }
.tabs { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid rgba(255,255,255,0.08); }
.tabs button {
  background: none; border: none; color: var(--mist); padding: 0.85rem; font-weight: 700; font-size: 0.8rem; cursor: pointer;
}
.tabs button.on { color: var(--flame); border-bottom: 2px solid var(--ember); }
