:root {
  color-scheme: dark;
  --bg: #0b0e0c;
  --surface: #111713;
  --surface-2: #171f19;
  --text: #f5f7f2;
  --muted: #a6afa8;
  --line: #29322b;
  --accent: #c7ff4a;
  --accent-ink: #10150c;
  --warning: #ffd36a;
  --danger: #ff8c78;
  --radius: 1.25rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(199,255,74,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199,255,74,.025) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, #203125 0, var(--bg) 44%);
  background-size: 44px 44px, 44px 44px, auto;
}

button, input { font: inherit; }
textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(100%, 72rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .86rem;
  font-weight: 760;
  letter-spacing: .14em;
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--accent);
  background:
    linear-gradient(90deg, transparent 43%, var(--accent) 44% 56%, transparent 57%),
    linear-gradient(transparent 43%, var(--accent) 44% 56%, transparent 57%);
}

.header-note { color: var(--muted); font-size: .86rem; }

.app-shell {
  display: grid;
  align-items: center;
  padding: 3.5rem 0;
}

.panel {
  width: min(100%, 48rem);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2 { margin: 0; letter-spacing: -.035em; line-height: 1.05; }
h1 { max-width: 13ch; font-size: clamp(2.5rem, 8vw, 5.9rem); }
h2 { max-width: 18ch; font-size: clamp(2rem, 5vw, 3.7rem); }

.lead {
  max-width: 40rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.meta-row {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.meta-pill {
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .84rem;
  background: rgba(17,23,19,.72);
}

.profile-strip {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(17,23,19,.72);
}
.profile-strip span { min-height: 5.8rem; padding: .9rem; display: flex; flex-direction: column; justify-content: space-between; gap: .8rem; border-right: 1px solid var(--line); color: var(--muted); font-size: .75rem; line-height: 1.25; }
.profile-strip span:last-child { border-right: 0; }
.profile-strip b { color: var(--accent); font-size: 1.1rem; }

.primary-button, .secondary-button, .link-button {
  min-height: 3.35rem;
  border-radius: .8rem;
  padding: .9rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 720;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.primary-button { color: var(--accent-ink); background: var(--accent); }
.primary-button:hover { transform: translateY(-1px); background: #d4ff72; }
.primary-button:disabled { opacity: .38; cursor: not-allowed; transform: none; }

.secondary-button, .link-button {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}
.secondary-button:hover, .link-button:hover { border-color: #536057; background: rgba(255,255,255,.025); }

.progress-wrap { margin-bottom: 2rem; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; margin-bottom: .65rem; }
.progress-track { height: 3px; background: var(--line); overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); transition: width .25s ease; }

.question-help { margin: .9rem 0 0; color: var(--muted); line-height: 1.55; }

.options {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.option {
  position: relative;
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  padding: 1rem 1rem 1rem 3.1rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  color: #dfe4df;
  background: rgba(17,23,19,.88);
  cursor: pointer;
  line-height: 1.35;
  transition: border-color .15s ease, background .15s ease;
}

.option:hover { border-color: #556159; background: var(--surface-2); }
.option.selected { border-color: var(--accent); background: rgba(199,255,74,.08); color: var(--text); }
.option input { position: absolute; opacity: 0; }
.option-dot {
  position: absolute;
  left: 1rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid #5f6a62;
  border-radius: 50%;
}
.option.selected .option-dot { border: .35rem solid var(--accent); background: var(--surface); }
.option.multi .option-dot { border-radius: .25rem; }
.option.multi.selected .option-dot {
  border: 1.5px solid var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 .2rem var(--surface);
}

.actions { margin-top: 2rem; display: flex; justify-content: space-between; gap: .75rem; }
.actions .secondary-button { min-width: 7rem; }
.actions .primary-button { min-width: 9rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.open-response { margin-top: 2rem; }
.open-response textarea {
  width: 100%;
  min-height: 10rem;
  resize: vertical;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  color: var(--text);
  background: rgba(17,23,19,.88);
  line-height: 1.55;
}
.open-response textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.open-response textarea::placeholder { color: #7f8981; }
.character-count { display: flex; justify-content: space-between; margin-top: .55rem; color: var(--muted); font-size: .8rem; }

.result-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .85fr); gap: 1.25rem; margin-top: 2rem; }
.result-card, .side-card, .challenge-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17,23,19,.92);
  padding: clamp(1.3rem, 4vw, 2rem);
}
.result-heading { margin-top: 1.25rem; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 1.25rem; }
.result-heading > span { color: var(--accent); font-size: clamp(2.8rem, 8vw, 5.4rem); font-weight: 820; line-height: .9; letter-spacing: -.07em; }
.result-heading p { margin: 0 0 .55rem; color: var(--accent); font-size: .8rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.result-heading h2 { max-width: 17ch; }
.result-summary { color: var(--text) !important; font-size: 1.15rem; }
.evidence-list { margin: .85rem 0 1.25rem; padding: 0; list-style: none; display: grid; gap: .7rem; }
.evidence-list li { padding: .85rem; border: 1px solid var(--line); border-radius: .7rem; background: rgba(255,255,255,.015); }
.evidence-list span, .evidence-list strong { display: block; }
.evidence-list span { color: var(--muted); line-height: 1.45; }
.evidence-list strong { margin-top: .35rem; color: var(--accent); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.context-note { padding: 1rem; border-left: 3px solid var(--accent); color: #dfe8d8 !important; background: rgba(199,255,74,.035); }
.challenge-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.45; }
.challenge-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.secondary-profile { margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(199,255,74,.035); }
.secondary-profile span { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.secondary-profile strong { display: block; margin-top: .25rem; font-size: 1.1rem; }
.secondary-profile p { margin-bottom: 0; }
.result-footer { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.standalone { margin-top: 2rem; }
.result-card h3, .side-card h3 { margin: 0 0 .8rem; font-size: 1rem; }
.result-card p, .side-card p { color: var(--muted); line-height: 1.65; }
.result-card strong { color: var(--text); }
.route { color: var(--text) !important; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 1.2rem; }
.result-actions { display: grid; gap: .7rem; margin-top: 1.2rem; }
.result-actions a { width: 100%; text-align: center; }
.notice { border-left: 3px solid var(--warning); padding-left: 1rem; color: #e5ddc6 !important; }
.notice.danger { border-color: var(--danger); }
.offer-note { margin-top: 1rem; font-size: .92rem; }

.coaching-card, .community-card {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17,23,19,.92);
  padding: clamp(1.3rem, 4vw, 2rem);
}
.coaching-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.coaching-card h3, .community-card h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.coaching-card p:not(.eyebrow) { max-width: 38rem; margin: .65rem 0 0; color: var(--muted); line-height: 1.55; }
.coaching-card .link-button { flex: 0 0 auto; }
.masterclass-card { border-color: rgba(199,255,74,.32); background: linear-gradient(135deg, rgba(199,255,74,.07), rgba(17,23,19,.94)); }
.continuity-actions { display: flex; flex: 0 0 auto; flex-direction: column; gap: .65rem; min-width: min(100%, 16rem); }
.continuity-actions a { text-align: center; }
.community-card { margin-bottom: 1rem; }
.community-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.25rem; }
.community-links a { display: grid; gap: .35rem; padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; color: var(--text); text-decoration: none; background: rgba(255,255,255,.015); }
.community-links a:hover { border-color: #536057; background: var(--surface-2); }
.community-links span { color: var(--muted); font-size: .86rem; line-height: 1.4; }

footer {
  min-height: 4rem;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #7f8981;
  font-size: .78rem;
}

@media (max-width: 720px) {
  .page-shell { padding: 0 1rem; }
  .site-header { min-height: 4.3rem; }
  .header-note { display: none; }
  .app-shell { padding: 2.5rem 0; align-items: start; }
  .options, .result-grid { grid-template-columns: 1fr; }
  .profile-strip { grid-template-columns: 1fr; }
  .profile-strip span { min-height: auto; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-strip span:last-child { border-bottom: 0; }
  .option { min-height: 4.15rem; }
  .actions { position: sticky; bottom: 0; padding: 1rem 0; background: linear-gradient(transparent, var(--bg) 22%); }
  .coaching-card { align-items: stretch; flex-direction: column; gap: 1.25rem; }
  .continuity-actions { min-width: 0; }
  .community-links { grid-template-columns: 1fr; }
}

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