:root {
  --ink: #f4f4f7; --muted: #9b9ca8; --paper: #0b0b0e; --surface: #121217; --surface-raised: #17171e;
  --line: #2a2a33; --line-soft: #202027; --violet: #8b7cf6; --violet-soft: rgba(139,124,246,.14);
  --green: #72c59c; --green-soft: rgba(64,167,113,.15); --yellow: #dec56d; --yellow-soft: rgba(222,197,109,.14);
  --orange: #e39a61; --orange-soft: rgba(227,154,97,.14); --red: #e77878; --red-soft: rgba(231,120,120,.14);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
.site-header { max-width: 1160px; margin: auto; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-soft); }
.brand { color: var(--ink); text-decoration: none; font-weight: 780; letter-spacing: -.045em; font-size: 26px; display: flex; gap: 11px; align-items: center; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; background: var(--violet); color: #0b0b0e; border-radius: 5px; font-size: 15px; letter-spacing: 0; }
.text-button { border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); font-weight: 650; padding: 8px 12px; }
.text-button:hover { color: var(--ink); border-color: #43434f; }
main { max-width: 1060px; margin: 28px auto 72px; padding: 0 28px; }
.intro { margin: 0 auto 26px; max-width: 900px; text-align: left; padding: 24px 0 16px; }
.eyebrow, .step-label { color: var(--violet); font-size: 11px; font-weight: 760; text-transform: uppercase; letter-spacing: .15em; }
.eyebrow { margin: 0 0 12px; }
h1 { max-width: 820px; font-size: clamp(43px, 6.5vw, 72px); line-height: .98; letter-spacing: -.06em; margin: 0; font-weight: 790; }
h1 span { color: #b8afff; }
.lede { color: var(--muted); max-width: 660px; margin: 17px 0 0; font-size: 17px; line-height: 1.55; }
.flow-shell { max-width: 900px; margin: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.question, .section { padding: clamp(28px, 5vw, 50px); }
h2 { margin: 10px 0; font-size: clamp(29px, 4vw, 42px); font-weight: 740; letter-spacing: -.04em; line-height: 1.08; }
.helper { color: var(--muted); margin: 0 0 28px; max-width: 680px; }
textarea, input[type="text"] { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 15px 16px; background: #0e0e13; color: var(--ink); outline: none; }
textarea { min-height: 158px; resize: vertical; }
textarea::placeholder, input::placeholder { color: #686975; }
textarea:focus, input:focus { border-color: var(--violet); box-shadow: 0 0 0 2px var(--violet-soft); }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 26px; }
.primary { border: 1px solid var(--violet); background: var(--violet); color: #0b0b0e; border-radius: 5px; padding: 13px 20px; font-weight: 760; }
.primary:hover { background: #9b8df8; border-color: #9b8df8; }
.primary:disabled { opacity: .34; cursor: not-allowed; }
.back { border: 0; background: transparent; color: var(--muted); padding: 12px 0; }
.back:hover { color: var(--ink); }
.choices { display: grid; gap: 9px; }
.choice { display: flex; gap: 13px; align-items: center; border: 1px solid var(--line); background: #101015; border-radius: 5px; padding: 15px 16px; text-align: left; color: var(--ink); }
.choice:hover, .choice.selected { border-color: var(--violet); background: var(--violet-soft); }
.choice-key { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border: 1px solid #3a3a45; border-radius: 4px; color: #c7c3e9; font-size: 11px; font-weight: 800; }
.profile-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 28px; }
.profile-head h2 { margin-bottom: 0; }
.heatmap { width: 100%; border-collapse: collapse; }
.heatmap th { padding: 0 14px 10px; color: #7f808c; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; text-align: left; font-weight: 760; }
.heatmap td { padding: 15px 14px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.heatmap tbody tr:last-child td { border-bottom: 1px solid var(--line-soft); }
.heatmap td:first-child { color: #e8e8ed; font-weight: 680; }
.heatmap td small { color: #747580; font-weight: 450; line-height: 1.35; }
.heatmap td:nth-last-child(-n+2) { color: #b8b9c2; }
.level, .status, .fit { display: inline-block; border: 1px solid transparent; border-radius: 4px; padding: 4px 8px; font-size: 11px; line-height: 1.3; font-weight: 780; white-space: nowrap; }
.level-low { background: #1b1b22; color: #b4b5be; border-color: #30303a; }
.level-medium { background: var(--violet-soft); color: #c8c1ff; border-color: rgba(139,124,246,.3); }
.level-high { background: var(--yellow-soft); color: var(--yellow); border-color: rgba(222,197,109,.28); }
.level-critical { background: var(--red-soft); color: var(--red); border-color: rgba(231,120,120,.3); }
.status-clear, .fit-good { background: var(--green-soft); color: var(--green); border-color: rgba(114,197,156,.28); }
.status-safeguard { background: var(--yellow-soft); color: var(--yellow); border-color: rgba(222,197,109,.28); }
.status-review, .fit-gap { background: var(--orange-soft); color: var(--orange); border-color: rgba(227,154,97,.28); }
.status-mandatory, .status-stop, .fit-stop { background: var(--red-soft); color: var(--red); border-color: rgba(231,120,120,.3); }
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack-field { background: #101015; border: 1px solid var(--line-soft); border-radius: 6px; padding: 15px; }
.stack-field label { display: block; font-size: 13px; font-weight: 730; margin-bottom: 8px; }
.stack-field input { padding: 11px 12px; }
.stack-field small { display: block; color: #757680; margin-top: 7px; line-height: 1.35; }
.result-top { padding: 46px clamp(28px, 5vw, 54px) 38px; background: #0e0e13; border-bottom: 1px solid var(--line); }
.verdict { display: inline-flex; align-items: center; gap: 9px; background: var(--green-soft); color: var(--green); border: 1px solid rgba(114,197,156,.28); border-radius: 5px; padding: 9px 12px; font-weight: 820; font-size: 15px; letter-spacing: .01em; }
.results:has(.fit-gap) .verdict, .results:has(.status-review) .verdict { background: var(--orange-soft); color: var(--orange); border-color: rgba(227,154,97,.28); }
.results:has(.status-mandatory) .verdict, .results:has(.status-stop) .verdict { background: var(--red-soft); color: var(--red); border-color: rgba(231,120,120,.3); }
.result-top h2 { font-size: clamp(44px, 7vw, 72px); margin: 18px 0 12px; letter-spacing: -.055em; }
.result-top p { color: #a2a3ae; max-width: 720px; margin: 0; font-size: 16px; }
.conditions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; background: #0e0e13; border-bottom: 1px solid var(--line); }
.condition { padding: 20px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 6px; }
.condition small { color: #a99fff; font-weight: 780; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.condition p { color: #dddde4; margin: 8px 0 0; line-height: 1.5; }
.results-body { padding: clamp(30px, 5vw, 54px); }
.results-body h3 { margin: 42px 0 8px; font-size: 25px; font-weight: 720; letter-spacing: -.035em; }
.results-body h3:first-child { margin-top: 0; }
.subtle { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; color: #d6d6dc; font-weight: 680; }
details p, details li { color: var(--muted); }
details ul { padding-left: 20px; }
details li + li { margin-top: 10px; }
.confidence { font-size: 12px; color: var(--muted); font-weight: 500; }
.confidence strong { color: var(--ink); }
.callout { border: 1px solid rgba(227,154,97,.28); border-left: 3px solid var(--orange); background: var(--orange-soft); padding: 16px 18px; margin: 22px 0; border-radius: 4px; color: #dddde4; }
.overlap { margin: 14px 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 5px; }
.overlap p { margin: 6px 0; }
footer { text-align: center; color: #73747e; font-size: 12px; padding: 0 20px 32px; }
@media (max-width: 700px) {
  main { padding: 0 14px; margin-top: 18px; }
  .site-header { padding: 17px; }
  .brand { font-size: 22px; }
  .intro { padding: 18px 4px 10px; }
  .stack-grid, .conditions { grid-template-columns: 1fr; }
  .conditions { gap: 9px; padding: 11px; }
  .heatmap { font-size: 13px; }
  .heatmap th, .heatmap td { padding: 12px 8px; }
  .hide-mobile { display: none; }
  .profile-head { align-items: start; flex-direction: column; }
  .result-top { padding-top: 36px; }
  .result-top h2 { font-size: 43px; }
}
