:root {
  --ink: #0e2432;
  --ink-soft: #536874;
  --navy: #071e2b;
  --navy-2: #0a2a39;
  --paper: #f5f7f5;
  --white: #fff;
  --line: #dce4e4;
  --cyan: #4bd9cf;
  --cyan-dark: #078c86;
  --cyan-soft: #d8f5f1;
  --blue: #75aef7;
  --orange: #ef9f5c;
  --red: #df6a69;
  --yellow: #ddbd56;
  --radius: 18px;
  --shadow: 0 16px 50px rgba(12, 37, 49, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button, textarea, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }

.hero {
  min-height: 760px;
  color: #eefafa;
  background:
    radial-gradient(circle at 82% 28%, rgba(75, 217, 207, .13), transparent 24%),
    linear-gradient(135deg, var(--navy) 0%, #082633 56%, #0c3440 100%);
  position: relative;
  overflow: hidden;
  padding: 0 clamp(24px, 6vw, 96px);
}
.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -160px;
  top: 50px;
  border: 1px solid rgba(100, 225, 216, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(100, 225, 216, .025), 0 0 0 180px rgba(100, 225, 216, .018);
}
.topbar { height: 100px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 18px; letter-spacing: -.02em; }
.brand b { color: var(--cyan); }
.brand-mark { width: 34px; height: 38px; color: var(--cyan); }
.nav-link { font-size: 14px; text-decoration: none; color: #d2e4e7; display: flex; align-items: center; gap: 10px; }
.nav-link span { color: var(--cyan); }
.hero-content { position: relative; z-index: 1; padding: 116px 0 112px; max-width: 850px; }
.eyebrow, .kicker { color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 2px; background: var(--cyan); }
h1, h2, h3 { margin: 0; font-family: ui-sans-serif, system-ui, sans-serif; letter-spacing: -.045em; line-height: 1.06; }
h1 { margin-top: 26px; font-size: clamp(52px, 7.6vw, 100px); max-width: 900px; }
h1 em { color: var(--cyan); font-style: normal; }
.hero-copy { color: #b9ccd1; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; max-width: 680px; margin: 30px 0 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button { min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; justify-content: center; align-items: center; gap: 16px; text-decoration: none; font-weight: 700; transition: transform .2s, border-color .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--cyan); color: var(--navy); }
.button-ghost { color: #e9f5f5; background: transparent; border-color: rgba(255,255,255,.25); }
.button-small { min-height: 42px; padding: 0 17px; color: var(--navy); background: var(--cyan); }
.hero-stats { position: absolute; bottom: 0; right: clamp(24px, 6vw, 96px); left: clamp(24px, 6vw, 96px); display: flex; justify-content: flex-end; z-index: 1; }
.hero-stats > div { width: min(180px, 30%); min-height: 112px; border-left: 1px solid rgba(255,255,255,.12); padding: 22px 28px; display: flex; flex-direction: column; justify-content: center; }
.hero-stats strong { font: 700 32px/1 ui-sans-serif, system-ui, sans-serif; color: #fff; }
.hero-stats strong span { color: var(--cyan); font-size: .6em; }
.hero-stats > div > span { margin-top: 8px; color: #91aab1; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

main { overflow: hidden; }
.assessment-section, .results-section { padding: 100px clamp(24px, 6vw, 96px); }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; max-width: 1340px; margin: 0 auto 44px; }
.kicker { color: var(--cyan-dark); margin: 0 0 16px; }
.section-heading h2 { font-size: clamp(38px, 4vw, 60px); }
.section-heading > p { color: var(--ink-soft); max-width: 560px; margin: 0; font-size: 16px; line-height: 1.7; }

.scale-legend { max-width: 1340px; margin: 0 auto 24px; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 13px 24px; border-radius: 10px; font-size: 12px; color: var(--ink-soft); }
.legend-title { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ink); margin-right: auto; }
.scale-legend div { display: flex; align-items: center; gap: 6px; }
.scale-legend b { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-0 { background: #a7b1b5; }.dot-25 { background: var(--red); }.dot-50 { background: var(--orange); }.dot-75 { background: var(--yellow); }.dot-100 { background: var(--cyan-dark); }

.toolbar { max-width: 1340px; margin: 0 auto 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.progress-copy { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 14px; }
.mini-progress { width: 150px; height: 5px; border-radius: 4px; overflow: hidden; background: #dce4e3; }
.mini-progress i, .score-track i { display: block; width: 0; height: 100%; background: var(--cyan-dark); transition: width .35s ease; }
.toolbar-actions { display: flex; gap: 18px; }
.text-button { border: 0; padding: 6px 0; background: transparent; color: var(--cyan-dark); font-size: 13px; font-weight: 700; }
.text-button-muted { color: #718087; }

.catalog { max-width: 1340px; margin: 0 auto; display: grid; gap: 20px; }
.category { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 22px rgba(12,37,49,.035); }
.category-header { width: 100%; border: 0; background: var(--white); color: var(--ink); padding: 25px 28px; display: grid; grid-template-columns: 60px 1fr auto 24px; gap: 18px; align-items: center; text-align: left; }
.category-number { color: var(--cyan-dark); font: 700 13px ui-sans-serif, system-ui, sans-serif; letter-spacing: .1em; }
.category-title { font: 700 18px/1.3 ui-sans-serif, system-ui, sans-serif; letter-spacing: -.02em; }
.category-status { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.category-chevron { font-size: 21px; color: var(--cyan-dark); transition: transform .25s; }
.category.open .category-chevron { transform: rotate(45deg); }
.category-body { display: none; border-top: 1px solid var(--line); }
.category.open .category-body { display: block; }

.measure-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.measure-table col:nth-child(1) { width: 23%; }
.measure-table col:nth-child(2) { width: 28%; }
.measure-table col:nth-child(3) { width: 24%; }
.measure-table col:nth-child(4) { width: 25%; }
.measure-table th { padding: 14px 18px; color: #687b84; background: #f7f9f8; text-align: left; text-transform: uppercase; font-size: 10px; letter-spacing: .11em; }
.measure-table td { vertical-align: top; padding: 23px 18px; border-top: 1px solid #edf1f0; font-size: 13px; line-height: 1.55; }
.measure-table tbody tr:first-child td { border-top: 0; }
.measure-id { display: inline-block; margin-bottom: 8px; padding: 4px 7px; background: var(--cyan-soft); color: #087c77; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.measure-name { display: block; font: 700 14px/1.4 ui-sans-serif, system-ui, sans-serif; }
.question { color: #2e424d; }
.example-answer { margin: 0 0 13px; color: #667880; font-size: 12px; }
.example-score { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 999px; background: #eef3f3; color: #4d626b; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.example-score::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.answer-input { width: 100%; min-height: 84px; resize: vertical; border: 1px solid #cad6d6; border-radius: 7px; padding: 11px 12px; color: var(--ink); background: #fbfcfc; font-size: 12px; line-height: 1.45; outline: none; }
.answer-input:focus, .score-select:focus { border-color: var(--cyan-dark); box-shadow: 0 0 0 3px rgba(7,140,134,.1); }
.score-select { width: 100%; height: 42px; margin-top: 10px; border: 1px solid #cad6d6; border-radius: 7px; padding: 0 10px; background: #fff; color: var(--ink); font-size: 12px; outline: none; }
.score-select[data-score="0"] { border-left: 4px solid #a7b1b5; }
.score-select[data-score="25"] { border-left: 4px solid var(--red); }
.score-select[data-score="50"] { border-left: 4px solid var(--orange); }
.score-select[data-score="75"] { border-left: 4px solid var(--yellow); }
.score-select[data-score="100"] { border-left: 4px solid var(--cyan-dark); }

.results-section { color: #e9f4f5; background: var(--navy); }
.section-heading-light .kicker { color: var(--cyan); }
.section-heading-light > p { color: #91a8af; }
.result-grid { max-width: 1340px; margin: 0 auto; display: grid; grid-template-columns: 340px 1fr; gap: 22px; }
.score-card, .chart-card, .category-results { border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: rgba(255,255,255,.035); }
.score-card { padding: 32px; display: flex; flex-direction: column; }
.card-label { margin: 0 0 10px; color: #8fa8af; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 700; }
.score-value { margin: 20px 0; display: flex; align-items: flex-start; }
.score-value strong { font: 700 84px/.85 ui-sans-serif, system-ui, sans-serif; letter-spacing: -.07em; color: #fff; }
.score-value span { margin: 4px 0 0 8px; color: var(--cyan); font: 700 22px ui-sans-serif, system-ui, sans-serif; }
.score-track { height: 7px; border-radius: 7px; overflow: hidden; background: rgba(255,255,255,.09); }
.score-track i { background: var(--cyan); }
.score-message { color: #9bb0b6; font-size: 13px; line-height: 1.6; margin: 20px 0 auto; }
.score-meta { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.score-meta div { display: flex; flex-direction: column; gap: 3px; }
.score-meta dt { color: #7f989f; font-size: 11px; }
.score-meta dd { margin: 0; color: #fff; font: 700 18px ui-sans-serif, system-ui, sans-serif; }
.chart-card { padding: 28px 30px 20px; min-width: 0; }
.chart-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.chart-header h3, .category-results h3 { font-size: 23px; letter-spacing: -.02em; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; color: #9bb0b6; font-size: 11px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch { display: inline-block; width: 17px; height: 8px; border-radius: 2px; }
.legend-swatch.actual { background: var(--cyan); }
.legend-swatch.example { border: 1px dashed var(--blue); background: rgba(117,174,247,.18); }
.chart-wrap { height: 510px; position: relative; }
#radarChart { width: 100%; height: 100%; }
.category-results { max-width: 1340px; margin: 22px auto 0; padding: 28px 30px; }
.category-results-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.category-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 38px; }
.category-bar-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 7px; }
.category-bar-head span { color: #c5d4d7; font-size: 12px; max-width: 85%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-bar-head strong { color: #fff; font: 700 12px ui-sans-serif, system-ui, sans-serif; }
.category-track { height: 5px; background: rgba(255,255,255,.09); border-radius: 5px; overflow: hidden; }
.category-track i { display: block; height: 100%; background: var(--cyan); border-radius: 5px; }
.category-track i.empty { width: 0 !important; }
.legal-note { max-width: 1340px; margin: 32px auto 0; color: #728d94; font-size: 11px; }
.export-dialog { width: min(560px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(3, 24, 34, .35); }
.export-dialog::backdrop { background: rgba(3, 22, 31, .72); backdrop-filter: blur(5px); }
.export-dialog form { position: relative; padding: 36px; }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #f7f9f8; color: var(--ink-soft); font-size: 24px; line-height: 1; }
.dialog-kicker { margin: 0 0 12px; color: var(--cyan-dark); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.export-dialog h2 { font-size: clamp(28px, 5vw, 38px); color: var(--navy); }
.dialog-copy { margin: 18px 0 24px; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.email-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.email-input { width: 100%; height: 50px; border: 1px solid #c8d5d5; border-radius: 8px; padding: 0 14px; color: var(--ink); background: #fbfcfc; outline: none; }
.email-input:focus { border-color: var(--cyan-dark); box-shadow: 0 0 0 3px rgba(7,140,134,.1); }
.email-input[aria-invalid="true"] { border-color: var(--red); }
.form-error { min-height: 20px; margin: 7px 0 6px; color: #b33f42; font-size: 12px; }
.privacy-check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.privacy-check input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--cyan-dark); }
.privacy-check a { color: var(--cyan-dark); font-weight: 700; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.dialog-cancel { border-color: var(--line); background: #fff; color: var(--ink); }
.dialog-actions button:disabled { cursor: wait; opacity: .65; transform: none; }
.dialog-note { margin: 12px 0 0; color: #809197; text-align: right; font-size: 10px; }
footer { color: #62757d; background: #061822; border-top: 1px solid rgba(255,255,255,.07); padding: 25px clamp(24px, 6vw, 96px); display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.footer-brand { color: #dbe9ea; transform: scale(.86); transform-origin: left center; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); padding: 11px 18px; color: var(--navy); background: var(--cyan); border-radius: 8px; font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; z-index: 50; transition: opacity .25s, transform .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .hero { min-height: 700px; }
  .hero-content { padding-top: 90px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .result-grid { grid-template-columns: 1fr; }
  .score-card { min-height: 340px; }
  .measure-table col:nth-child(1) { width: 22%; }
  .measure-table col:nth-child(2) { width: 30%; }
  .measure-table col:nth-child(3) { width: 23%; }
  .measure-table col:nth-child(4) { width: 25%; }
}

@media (max-width: 760px) {
  .hero { min-height: 750px; }
  .topbar { height: 82px; }
  .nav-link { font-size: 0; }
  .nav-link span { font-size: 18px; }
  .hero-content { padding: 75px 0 150px; }
  h1 { font-size: clamp(46px, 14vw, 68px); }
  .hero-stats { justify-content: stretch; right: 0; left: 0; }
  .hero-stats > div { flex: 1; padding: 17px; text-align: center; min-height: 98px; }
  .hero-stats strong { font-size: 26px; }
  .assessment-section, .results-section { padding: 72px 18px; }
  .scale-legend { align-items: flex-start; }
  .legend-title { width: 100%; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .category-header { grid-template-columns: 38px 1fr 20px; padding: 20px 17px; gap: 10px; }
  .category-status { display: none; }
  .category-title { font-size: 15px; }
  .measure-table, .measure-table tbody, .measure-table tr, .measure-table td { display: block; width: 100%; }
  .measure-table colgroup, .measure-table thead { display: none; }
  .measure-table tr { padding: 20px 17px; border-top: 1px solid var(--line); }
  .measure-table tr:first-child { border-top: 0; }
  .measure-table td { border: 0; padding: 0 0 18px; }
  .measure-table td:last-child { padding-bottom: 0; }
  .measure-table td::before { content: attr(data-label); display: block; margin-bottom: 7px; color: #7b8b91; text-transform: uppercase; letter-spacing: .1em; font-size: 9px; font-weight: 700; }
  .chart-card { padding: 23px 16px 12px; }
  .chart-header { flex-direction: column; }
  .chart-wrap { height: 430px; }
  .category-bars { grid-template-columns: 1fr; }
  .category-results { padding: 24px 18px; }
  .category-results-header { align-items: flex-start; flex-direction: column; }
  .export-dialog form { padding: 30px 22px 24px; }
  .dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
  .dialog-note { text-align: center; }
  footer { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media print {
  .hero { min-height: auto; padding-bottom: 30px; }
  .hero-content { padding: 50px 0; }
  .hero-stats, .hero-actions, .toolbar-actions, .nav-link, .button-small, footer { display: none; }
  .assessment-section, .results-section { padding: 35px 20px; }
  .category-body { display: block !important; }
  .category { break-inside: avoid; }
  .result-grid { grid-template-columns: 1fr; }
}
