:root {
  --navy: #0e1120;
  --navy-soft: #151a2d;
  --card: #fbf7f2;
  --ink: #111526;
  --muted: #aab4cc;
  --blue: #6e8cc7;
  --red: #ff413d;
  --line: rgba(251, 247, 242, .14);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--navy); }
body {
  min-height: 100vh; margin: 0; background: var(--navy); color: var(--card);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.constellation { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.app-shell { position: relative; z-index: 1; min-height: 100vh; max-width: 1160px; margin: 0 auto; padding: 28px 40px 24px; display: flex; flex-direction: column; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; color: var(--card); text-decoration: none; }
.brand-logo { display: block; width: auto; height: 32px; }
.eyebrow, .site-footer { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.calculator { width: min(100%, 760px); margin: auto; padding: 54px 0; }
.screen { animation: reveal .5s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.kicker { color: var(--red); text-transform: uppercase; font-size: 11px; letter-spacing: .18em; font-weight: 700; margin: 0 0 22px; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 700px; font-size: clamp(42px, 7vw, 86px); line-height: .98; letter-spacing: -.075em; margin-bottom: 28px; }
h2 { color: var(--card); font-size: clamp(26px, 4vw, 44px); line-height: 1.08; letter-spacing: -.055em; margin-bottom: 30px; }
.lead { max-width: 560px; color: #d1d7e6; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.5; margin-bottom: 42px; }
.button { border: 0; border-radius: 999px; padding: 17px 25px; color: white; background: var(--red); font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
.button:hover { background: #ff5a56; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,65,61,.24); }
.button:focus-visible, .role-card:focus-visible, input:focus-visible { outline: 3px solid rgba(110,140,199,.85); outline-offset: 4px; }
.button.secondary { background: transparent; color: var(--card); border: 1px solid var(--line); }
.button.secondary:hover { background: rgba(251,247,242,.08); box-shadow: none; }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,65,61,.28); } 50% { box-shadow: 0 0 0 10px rgba(255,65,61,0); } }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.role-card { text-align: left; min-height: 166px; padding: 23px; border: 1px solid rgba(251,247,242,.2); border-radius: 14px; background: rgba(21,26,45,.72); color: var(--card); cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.role-card:hover { transform: translateY(-4px); border-color: var(--blue); background: rgba(30,39,67,.9); }
.role-number { color: var(--blue); font-size: 12px; font-weight: 700; }
.role-title { display: block; margin-top: 49px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.progress-wrap { margin-bottom: 48px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; margin-bottom: 12px; }
.progress-track { height: 3px; background: rgba(251,247,242,.15); border-radius: 10px; overflow: hidden; }
.progress-bar { width: 0; height: 100%; background: var(--red); transition: width .35s ease; }
.question-form { max-width: 630px; }
.question-form label { display: block; color: var(--muted); font-size: 14px; margin-bottom: 13px; }
.number-input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(251,247,242,.35); color: var(--card); padding: 13px 0; font-size: clamp(36px, 6vw, 58px); font-weight: 600; letter-spacing: -.06em; outline: none; }
.number-input:focus { border-color: var(--blue); }
.unit { color: var(--blue); font-size: 13px; margin-top: -24px; position: relative; pointer-events: none; text-align: right; }
.range-value { display: block; font-size: clamp(48px, 10vw, 82px); font-weight: 700; letter-spacing: -.08em; margin: 16px 0 24px; }
input[type="range"] { width: 100%; height: 5px; accent-color: var(--red); cursor: pointer; }
.range-limits { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 10px; }
.question-actions { display: flex; gap: 12px; align-items: center; margin-top: 42px; }
.back-link { border: 0; color: var(--muted); background: transparent; padding: 12px 8px; cursor: pointer; font-size: 14px; }
.back-link:hover { color: var(--card); }
.result-top { border-bottom: 1px solid var(--line); padding-bottom: 34px; margin-bottom: 28px; }
.result-top h2 { margin-bottom: 15px; }
.result-highlight { color: var(--red); font-size: clamp(30px, 5vw, 52px); letter-spacing: -.06em; line-height: 1.03; font-weight: 700; margin-bottom: 20px; }
.result-copy { color: #d1d7e6; line-height: 1.5; font-size: 16px; margin-bottom: 0; }
.metric-list { margin: 0 0 36px; padding: 0; list-style: none; }
.metric { display: flex; justify-content: space-between; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.metric strong { color: var(--card); font-size: 15px; text-align: right; }
.result-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(251,247,242,.1); font-size: 9px; letter-spacing: .1em; }
.site-footer span:last-child { color: rgba(170,180,204,.65); }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; background: var(--navy); color: var(--card); z-index: 5; }
@media (max-width: 640px) {
  .app-shell { padding: 22px 20px 18px; }
  .eyebrow { font-size: 9px; }
  .calculator { padding: 54px 0 40px; }
  h1 { font-size: clamp(42px, 14vw, 68px); }
  .role-grid { grid-template-columns: 1fr; gap: 10px; }
  .role-card { min-height: 0; padding: 18px; display: flex; align-items: center; gap: 15px; }
  .role-title { margin-top: 0; }
  .role-number { min-width: 23px; }
  .progress-wrap { margin-bottom: 35px; }
  .question-actions .button { flex: 1; }
  .site-footer { line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}