:root {
  --bg: #0a0a0a;
  --card: #141414;
  --field: #000;
  --border: #262626;
  --border-strong: #e5e5e5;
  --text: #fafafa;
  --muted: #8a8a8a;
  --dim: #5c5c5c;
  --green: #4ade80;
  --yellow: #facc15;
  --red: #f87171;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at top, #1a1a1a 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3, .q-label { font-family: 'Poppins', system-ui, sans-serif; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Top nav */
.topnav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 0; font-size: 14px; color: var(--muted); }
.topnav a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.topnav a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 48px 0 32px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 22px; font-size: 13px; font-weight: 500;
  letter-spacing: .14em; color: #d4d4d4; text-transform: uppercase;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(30px, 5.5vw, 58px); font-weight: 700; margin: 28px 0 20px; letter-spacing: -.02em; line-height: 1.1; }
.hero p { max-width: 640px; margin: 0 auto; color: #bdbdbd; font-size: 18px; font-weight: 300; }

.infobox { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 40px 0 24px; }
.infobox h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 10px; font-weight: 500; }
.infobox > p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.infobox ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.infobox li { color: #bdbdbd; font-size: 15px; display: flex; gap: 10px; }
.infobox li::before { content: "→"; color: var(--dim); }

/* Progress */
.progress { position: sticky; top: 0; z-index: 10; background: rgba(10,10,10,.92); backdrop-filter: blur(8px); padding: 16px 0 14px; }
.progress-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.progress-row b { color: var(--text); font-weight: 500; }
.bar { height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--text); transition: width .3s; }

/* Sections */
section.card, .card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 40px 36px; margin: 24px 0; }
.sec-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 32px; }
.num { flex: none; background: var(--field); border-radius: 8px; width: 40px; height: 36px; display: grid; place-items: center; font-size: 12px; color: #d4d4d4; font-family: 'Poppins'; }
.sec-head h2 { margin: 0; font-size: 24px; font-weight: 600; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }
.note { display: flex; gap: 14px; background: var(--field); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 32px; font-size: 15px; color: #d4d4d4; }
.note svg { flex: none; color: var(--muted); }

.q { margin-bottom: 32px; }
.q-label { display: block; font-size: 17px; font-weight: 500; margin: 0 0 4px; }
.req { color: var(--dim); margin-left: 2px; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.fixed-tag { margin-left: 10px; vertical-align: middle; display: inline-flex; gap: 6px; align-items: center; background: var(--field); border-radius: 6px; padding: 5px 10px; font-size: 11px; letter-spacing: .1em; font-family: 'Poppins'; }

input[type=text], input[type=number], textarea, select {
  width: 100%; background: var(--field); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; font: inherit; outline: none; transition: border-color .15s;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus, select:focus { border-color: #737373; }
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a8a8a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
input[readonly] { color: #bdbdbd; cursor: not-allowed; background: #0d0d0d; }

.triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.triple label { display: block; font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; font-family: 'Poppins'; }

/* Choice cards */
.choices { display: grid; gap: 16px; }
.choices.c2 { grid-template-columns: repeat(2, 1fr); }
.choices.c3 { grid-template-columns: repeat(3, 1fr); }
.choices.c4 { grid-template-columns: repeat(4, 1fr); }
.choices.c5 { grid-template-columns: repeat(5, 1fr); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--field); border: 1.5px solid transparent; border-radius: var(--radius);
  min-height: 120px; padding: 20px 12px; cursor: pointer; text-align: center; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.choice span:hover { background: #111; }
.choice input:checked + span { border-color: var(--border-strong); }
.choice input:focus-visible + span { outline: 2px solid #737373; outline-offset: 2px; }

/* Check cards: two columns, small square tick */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span {
  display: grid; grid-template-columns: 22px 1fr; gap: 2px 14px; align-items: center; height: 100%;
  background: var(--field); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; transition: border-color .15s;
}
.check .box { grid-row: span 2; width: 22px; height: 22px; border: 1.5px solid #3f3f3f; border-radius: 6px; display: grid; place-items: center; }
.check b { font-weight: 500; font-size: 15px; }
.check small { color: var(--muted); font-size: 13.5px; grid-column: 2; }
.check input:checked + span { border-color: #a3a3a3; }
.check input:checked + span .box { background: #fff; border-color: #fff; }
.check input:checked + span .box::after { content: "✓"; color: #000; font-size: 13px; line-height: 1; font-weight: 700; }
.check input:focus-visible + span { outline: 2px solid #737373; outline-offset: 2px; }

/* Section flow: next button, completed marker, locked sections */
.sec-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 8px; }
.sec-actions .sec-err { color: var(--red); font-size: 14px; margin-right: auto; display: none; }
.sec-actions.has-error .sec-err { display: block; }
.card.complete .num { background: var(--green); color: #000; }
.reset-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--dim); cursor: pointer; text-decoration: underline; margin-left: 14px; }
.reset-link:hover { color: var(--text); opacity: 1; }

.sub { border-top: 1px solid var(--border); padding-top: 32px; margin-top: 8px; }
.sub-title { display: flex; align-items: center; gap: 12px; color: #d4d4d4; font-weight: 500; font-size: 15px; margin-bottom: 24px; }
.sub-title::before { content: ""; width: 22px; height: 1px; background: #525252; }
[hidden] { display: none !important; }

.ic-green { color: var(--green); } .ic-yellow { color: var(--yellow); } .ic-red { color: var(--red); }

.q.invalid input, .q.invalid textarea, .q.invalid select { border-color: var(--red); }
.q.invalid .choice span, .q.invalid .check span { border-color: rgba(248,113,113,.5); }
.err { color: var(--red); font-size: 13px; margin-top: 8px; display: none; }
.q.invalid .err { display: block; }

.actions { display: flex; gap: 16px; justify-content: flex-end; align-items: center; margin: 32px 0 80px; flex-wrap: wrap; }
.saved { color: var(--dim); font-size: 13px; margin-right: auto; }
button { font: 500 15px 'Poppins', sans-serif; border-radius: 12px; padding: 16px 28px; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--text); }
button.primary { background: var(--text); color: #000; border-color: var(--text); }
button:hover { opacity: .88; }

.done { text-align: center; padding: 56px 24px; }
.done h2 { font-size: 28px; margin: 16px 0 8px; }
.done p { color: var(--muted); margin: 0 0 28px; }

/* Landing */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 80px; }
.area-card { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; transition: border-color .15s, transform .15s; }
.area-card:hover { border-color: #525252; transform: translateY(-2px); }
.area-card .num { margin-bottom: 20px; }
.area-card h2 { font-size: 22px; margin: 0 0 8px; font-weight: 600; }
.area-card p { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.area-card .meta { display: flex; gap: 18px; font-size: 13px; color: var(--dim); letter-spacing: .04em; }
.area-card .cta { margin-top: 22px; color: var(--text); font-weight: 500; font-family: 'Poppins'; font-size: 14px; }
.area-card .cta::after { content: " →"; }

@media (max-width: 760px) {
  section.card, .card { padding: 28px 18px; }
  .sec-head { gap: 14px; }
  .sec-head h2 { font-size: 20px; }
  .choices.c3, .choices.c4, .choices.c5, .triple, .infobox ul, .areas { grid-template-columns: 1fr 1fr; }
  .choices.c2 { grid-template-columns: 1fr 1fr; }
  .checks { grid-template-columns: 1fr; }
  .sec-actions { flex-direction: column; align-items: stretch; }
  .sec-actions button { width: 100%; }
}
@media (max-width: 460px) {
  .choices.c3, .choices.c4, .choices.c5, .triple, .infobox ul, .areas { grid-template-columns: 1fr; }
  .choice span { min-height: 88px; flex-direction: row; }
}
