:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #141417;
  --surface-raised: #1c1c20;
  --surface-hover: #242429;
  --border: #36363e;
  --control-border: #777780;
  --text: #f5f5f7;
  --muted: #b2b2bc;
  --subtle: #94949f;
  --action-bg: #f5f5f7;
  --action-text: #111114;
  --focus: #ffffff;
  --danger: #ffaaaa;
  --warning: #e5c79b;
  --success: #b4d4bd;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(ellipse at 18% 12%, #25252b55, transparent 42%), var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button, a, summary, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
input, textarea, select { min-width: 0; width: 100%; color: var(--text); background: #101013; border: 1px solid var(--control-border); border-radius: var(--radius-sm); padding: 12px 14px; }
textarea { resize: vertical; min-height: 186px; line-height: 1.65; }
input::placeholder, textarea::placeholder { color: var(--subtle); opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: var(--focus); }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
h1:focus, h2[tabindex]:focus, main:focus { outline: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.16; font-weight: 500; }
h1 { font-size: clamp(2.65rem, 5.3vw, 4.6rem); letter-spacing: -.065em; margin-bottom: 28px; }
h1 span { color: var(--subtle); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -.04em; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
p { margin-bottom: 18px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
svg { flex-shrink: 0; }
.page-shell { max-width: 1336px; padding: 0 48px; margin: auto; }
.mono, .eyebrow, .note-number, .rank, .card-meta { font-family: "IBM Plex Mono", "Courier New", monospace; }
.eyebrow { font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.muted { color: var(--muted); }
.mono { font-size: .7rem; letter-spacing: .02em; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.3rem; font-weight: 700; letter-spacing: -.06em; white-space: nowrap; }
.brand-os { font-weight: 400; color: var(--subtle); margin-left: 3px; }
nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: .875rem; text-decoration: none; }
nav a[aria-current], nav a:hover { color: var(--text); text-decoration: underline; }
.button { border: 1px solid transparent; border-radius: var(--radius-sm); padding: 11px 18px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; font-size: .875rem; font-weight: 500; line-height: 1.5; text-decoration: none; }
.primary { background: var(--action-bg); color: var(--action-text); }
.primary:hover { background: #d6d6df; color: var(--action-text); }
.secondary { background: transparent; color: var(--text); border-color: var(--control-border); }
.secondary:hover { background: var(--surface-hover); }
.full-width { width: 100%; justify-content: space-between; padding: 15px 18px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hero-layout { padding: 76px 0 64px; display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(32px, 5vw, 76px); align-items: start; }
.hero-story { padding-top: 24px; position: relative; isolation: isolate; }
.hero-story::before { content: ""; position: absolute; z-index: -1; inset: 20px -18px auto; height: 360px; opacity: .16; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 60px 60px; mask-image: linear-gradient(to bottom, #000, transparent); pointer-events: none; }
.hero-description { color: var(--muted); font-size: 1.1rem; max-width: 390px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #c4c4ca; border-radius: 50%; margin: 0 8px 2px 0; }
.editorial-note { display: flex; align-items: start; gap: 18px; padding: 24px 0; margin: 28px 0 0; border-top: 1px solid var(--border); max-width: 320px; }
.note-number { font-size: .75rem; color: var(--subtle); padding-top: 4px; }
.editorial-note p { color: var(--muted); margin: 0; }
.editorial-note strong { font-weight: 400; color: var(--text); }
.coverage-note { color: var(--subtle); font-size: .8125rem; max-width: 390px; margin-top: 12px; }
.composer { background: linear-gradient(125deg, #202024, var(--surface) 55%); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: 0 16px 80px #0003; }
.composer-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.composer-heading .eyebrow { margin: 0; }
.composer h2 { margin-bottom: 30px; }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; font-size: .875rem; }
.field > span { display: flex; justify-content: space-between; gap: 12px; }
.optional { color: var(--subtle); font-size: .8125rem; font-weight: 400; }
.field-caption { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .75rem; margin: -10px 0 20px; }
.field-caption > span:first-child { max-width: 270px; }
.field-caption .mono { flex-shrink: 0; }
summary { min-height: 44px; padding: 10px 0; font-size: .875rem; }
.preferences { border-top: 1px solid var(--border); margin-bottom: 20px; }
.preferences summary .optional { margin-left: 8px; }
.preferences-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding-top: 12px; }
.preferences-grid > :last-child { grid-column: 1 / -1; }
.form-note { text-align: center; color: var(--muted); font-size: .75rem; margin: 14px 0 0; }
.process-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, 1fr); padding: 36px 0; }
.process-strip article { padding: 0 32px; border-right: 1px solid var(--border); }
.process-strip article:first-child { padding-left: 0; }
.process-strip article:last-child { border: 0; padding-right: 0; }
.process-strip .mono { display: block; color: var(--subtle); margin-bottom: 20px; }
.process-strip h2 { font-size: 1.2rem; letter-spacing: -.025em; margin-bottom: 12px; }
.process-strip p { font-size: .875rem; color: var(--muted); margin: 0; max-width: 300px; }
.source-note { display: grid; grid-template-columns: 1fr 2fr 1.1fr; gap: 32px; align-items: start; padding: 48px 0 20px; }
.source-note > p:nth-child(2) { max-width: 480px; color: var(--muted); font-size: .9375rem; }
.source-note a { font-size: .8125rem; min-height: 44px; }
.source-note .eyebrow { padding-top: 4px; }
.workflow-status { margin: 0 0 32px; }
.notice { font-size: .875rem; border-left: 2px solid var(--control-border); background: var(--surface); padding: 14px 18px; margin: 0; overflow-wrap: anywhere; }
.notice:empty { display: none; }
.notice.error { border-color: var(--danger); color: var(--danger); }
.notice.success { border-color: var(--success); }
.notice.warning, .warning { color: var(--warning); }
.notice.warning { border-color: var(--warning); }
.demo-banner { position: sticky; top: 0; z-index: 5; text-align: center; background: #2c2520; }
.diagnostics { color: var(--muted); font-size: .875rem; }
.diagnostics p { overflow-wrap: anywhere; }
.results-section { border-top: 1px solid var(--border); padding: 48px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2, .section-heading .eyebrow { margin: 0; }
.section-heading .eyebrow { margin-bottom: 10px; }
.requirements { padding: 16px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 28px; }
.requirements > summary { font-size: 1rem; }
.requirements > p { font-size: .875rem; margin-top: 14px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
dt { color: var(--muted); font-size: .8125rem; }
dd { margin: 6px 0 0; text-transform: capitalize; }
.skill-group { display: flex; gap: 20px; align-items: start; margin: 16px 0; }
.skill-group h3 { min-width: 128px; font-size: .8125rem; color: var(--muted); padding-top: 8px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { display: inline-block; border: 1px solid var(--border); border-radius: 5px; padding: 4px 10px; font-size: .75rem; color: #ceced7; background: var(--surface-raised); overflow-wrap: anywhere; }
.result-context { color: var(--muted); font-size: .875rem; }
.result-context > span { margin: 0 10px; }
.assessment-card { display: grid; grid-template-columns: 60px minmax(0, 1fr); padding: 28px 0; border-bottom: 1px solid var(--border); animation: reveal 220ms ease-out both; }
.rank { color: var(--subtle); padding-top: 3px; font-size: .875rem; }
.card-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); text-transform: uppercase; font-size: .7rem; margin-bottom: 12px; }
.card-meta > span + span { border-left: 1px solid var(--control-border); padding-left: 12px; }
.assessment-body h3 { font-size: 1.4rem; margin-bottom: 12px; overflow-wrap: anywhere; }
.assessment-body > .muted { font-size: .875rem; }
.reasons { padding-left: 18px; color: var(--muted); font-size: .875rem; margin: 16px 0; }
.reasons li { padding-left: 4px; margin: 5px 0; }
.assessment-review { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .8125rem; margin: 20px 0 0; color: var(--muted); }
.assessment-review a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 500; }
.assessment-review a::after { content: "\2197"; margin-left: 10px; }
.review-note { font-size: .8125rem; }
.plans-section { padding-top: 28px; }
.plans-section > summary { font-size: 1.25rem; }
.plans-section > div { padding-top: 16px; }
.bundle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bundle-card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow-wrap: anywhere; }
.bundle-card > p { font-size: .875rem; }
.bundle-list { list-style: none; padding: 0; }
.bundle-list > li { padding: 18px 0; border-top: 1px solid var(--border); }
.bundle-list strong { display: block; font-size: .9375rem; font-weight: 500; }
.bundle-list > li > span { font-size: .8125rem; }
.bundle-list .assessment-review { margin-top: 8px; gap: 0; }
.empty-state { padding: 32px; border: 1px dashed var(--control-border); border-radius: var(--radius-md); color: var(--muted); }
.empty-state h3 { color: var(--text); }
.run-progress { display: flex; align-items: center; gap: 14px; padding: 18px 0; margin-bottom: 16px; color: var(--muted); font-size: .875rem; }
.loading-mark { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--muted); flex-shrink: 0; }
.document-page { max-width: 1000px; margin: 72px auto; min-height: 55vh; }
.document-page h1 { max-width: 850px; }
.document-intro { font-size: 1.15rem; color: var(--muted); max-width: 650px; margin-bottom: 44px; }
.prose { max-width: 740px; }
.prose h2 { margin-top: 40px; font-size: 1.4rem; }
.prose p { color: var(--muted); }
.coverage-panel, .settings-panel { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-md); padding: 28px; margin: 40px 0; }
.coverage-list { list-style: none; padding: 0; margin: 0; }
.coverage-list li { display: flex; gap: 24px; justify-content: space-between; align-items: start; border-top: 1px solid var(--border); padding: 22px 0; }
.coverage-list strong { font-weight: 500; }
.coverage-list p { margin: 8px 0 0; font-size: .875rem; max-width: 560px; }
.catalog-label { font-size: .8125rem; flex-shrink: 0; padding-top: 4px; }
.settings-panel .button-row { margin-top: 24px; }
.settings-panel h2, .coverage-list strong { overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 40px 0 26px; }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-top { margin-bottom: 30px; }
.footer-top .brand { gap: 0; }
.footer-bottom { font-size: .75rem; color: var(--subtle); }
.footer-bottom p { margin: 0; }
.footer-credit { flex-shrink: 0; color: var(--muted); }
.footer-credit span { font-size: .875rem; }
dialog { border: 1px solid var(--control-border); border-radius: var(--radius-lg); color: var(--text); background: var(--surface); padding: 0; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); box-shadow: 0 40px 120px #0008; }
dialog::backdrop { background: #000b; }
.dialog-content { padding: 36px; }
.dialog-content h2 { font-size: 1.8rem; line-height: 1.15; }
.dialog-content .field { margin-top: 28px; }
.dialog-content .button-row { margin-top: 24px; }
.dialog-content .muted { font-size: .875rem; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 18px; background: var(--action-bg); color: var(--action-text); z-index: 10; }
.skip-link:focus { top: 12px; }
.noscript-message { padding: 24px; border: 1px solid var(--control-border); }
.unlocked .hero-layout { padding-top: 48px; }
.unlocked .hero-story h1 { font-size: clamp(2.3rem, 4.2vw, 3.75rem); }
.unlocked .editorial-note, .unlocked .process-strip { display: none; }
.unlocked .hero-description { font-size: 1rem; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1024px) { .hero-story, .composer { animation: reveal 220ms ease-out both; } .composer { animation-delay: 60ms; } }
@media (max-width: 1100px) { .page-shell { padding: 0 32px; } .site-header { gap: 16px; } nav { gap: 18px; } .composer { padding: 24px; } .composer-heading .mono { display: none; } .hero-layout { gap: 36px; } .source-note { grid-template-columns: 1fr 2fr; } .source-note a { grid-column: 2; } }
@media (max-width: 850px) { .site-header { flex-wrap: wrap; padding: 22px 0 8px; } .site-header nav { order: 3; width: 100%; justify-content: center; } .hero-layout { padding-top: 44px; grid-template-columns: 1fr 1.15fr; gap: 24px; } h1 { font-size: 2.9rem; } .hero-story { padding-top: 12px; } .editorial-note { margin-top: 20px; } .field-caption { display: block; } #character-count { display: block; margin-top: 6px; } .process-strip article { padding: 0 20px; } .footer-bottom { align-items: start; flex-direction: column; gap: 12px; } .facts { grid-template-columns: repeat(2, 1fr); } .coverage-list li { flex-direction: column; gap: 10px; } }
@media (max-width: 650px) {
  .page-shell { padding: 0 20px; }
  .site-header { gap: 12px; }
  .site-header .brand { font-size: 1.1rem; gap: 7px; }
  .site-header .brand svg { width: 25px; }
  .site-header .button { padding: 9px 12px; font-size: .75rem; gap: 7px; }
  .site-header nav { justify-content: space-between; gap: 8px; }
  .site-header nav a { font-size: .8125rem; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); padding: 36px 0; gap: 26px; }
  .hero-story { padding: 0; }
  .hero-story h1 { font-size: clamp(2.6rem, 10vw, 3.8rem); margin-bottom: 20px; }
  .desktop-break { display: none; }
  .hero-description { font-size: 1rem; max-width: 460px; margin-bottom: 16px; }
  .editorial-note { display: none; }
  .eyebrow { font-size: .6875rem; margin-bottom: 18px; }
  .coverage-note { margin-bottom: 0; }
  .composer { padding: 22px 20px; }
  .composer h2 { font-size: 1.55rem; }
  .preferences-grid { grid-template-columns: minmax(0, 1fr); }
  .process-strip { grid-template-columns: 1fr; padding: 0; }
  .process-strip article, .process-strip article:first-child, .process-strip article:last-child { padding: 24px 0; border: 0; border-bottom: 1px solid var(--border); }
  .process-strip article:last-child { border-bottom: 0; }
  .process-strip .mono { margin-bottom: 12px; }
  .process-strip p { max-width: none; }
  .source-note { display: block; padding: 32px 0 0; }
  .source-note a { display: inline-flex; align-items: center; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }
  .section-heading .button { min-width: 140px; }
  .requirements { padding: 12px 18px; }
  .skill-group { flex-direction: column; gap: 8px; }
  .assessment-card { grid-template-columns: 34px minmax(0, 1fr); }
  .assessment-body h3 { font-size: 1.25rem; }
  .assessment-review { align-items: start; flex-direction: column; gap: 6px; }
  .bundle-grid { grid-template-columns: minmax(0, 1fr); }
  .document-page { margin: 44px 0; }
  .document-page h1 { font-size: 2.6rem; }
  .document-intro { font-size: 1rem; }
  .coverage-panel, .settings-panel { padding: 22px; }
  .footer-top { flex-direction: column; align-items: start; gap: 20px; }
  .site-footer { margin-top: 32px; }
  .dialog-content { padding: 26px 22px; }
  .dialog-content .button-row > button { width: 100%; }
  .dialog-content h2 { font-size: 1.6rem; }
  .unlocked .hero-layout { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
