:root {
  color-scheme: light;
  --bg: #faf9f7;
  --paper: #fff;
  --ink: #242035;
  --muted: #5d5769;
  --line: #e5e0e8;
  --brand: #57437f;
  --brand-dark: #422f67;
  --lavender: #eee8f7;
  --green: #255f50;
  --green-bg: #e8f3ee;
  --radius: 16px;
  --font: "Aptos", "Segoe UI", system-ui, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.55; }
button, input { font: inherit; }
a { color: var(--brand-dark); text-underline-offset: .2em; }
a:hover { color: #36204f; }
:focus-visible { outline: 2px solid #7e5cb1; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2 { line-height: 1.13; }
h1, .section-top h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.048em; }
h2 { font-size: clamp(1.3rem, 2vw, 1.55rem); letter-spacing: -.025em; }
p { color: var(--muted); }
ul { padding-left: 1.25rem; }
svg { flex: none; }
.wrap { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 15px; z-index: 20; padding: 9px 14px; border-radius: 8px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { background: #fdfcfb; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.brand-group { display: flex; align-items: center; gap: 16px; }
.brand-logo { display: inline-flex; }
.brand-logo img { display: block; width: 172px; height: auto; }
main { padding-bottom: 42px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 730; letter-spacing: -.025em; white-space: nowrap; }
.site-header nav { display: flex; align-self: stretch; align-items: stretch; gap: 32px; }
.site-header nav a { display: grid; align-items: center; position: relative; font-size: .92rem; text-decoration: none; color: var(--muted); }
.site-header nav a[aria-current] { color: var(--brand-dark); font-weight: 700; }
.site-header nav a[aria-current]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--brand); }

.hero { display: grid; grid-template-columns: 1.16fr .84fr; margin-top: 34px; min-height: 450px; overflow: hidden; border: 1px solid #e6def1; border-radius: 24px; background: linear-gradient(119deg, #f4eff8 2%, #eee7f5 58%, #e7ddef); }
.hero-content { position: relative; padding: clamp(32px, 4.6vw, 60px); padding-right: 0; z-index: 1; }
.eyebrow { font-size: .80rem; font-weight: 740; letter-spacing: .085em; text-transform: uppercase; color: var(--brand); }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.hero .eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: #7863a0; }
.hero h1 { font-size: clamp(3rem, 6.2vw, 5.4rem); line-height: .95; margin: 16px 0 20px; color: #2d2342; }
.hero-period { color: #775e9c; }
.hero-content > p:not(.eyebrow) { max-width: 47ch; color: #504665; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; gap: 8px; padding: 9px 16px; border-radius: 9px; border: 1px solid transparent; font-size: .91rem; line-height: 1.3; text-decoration: none; font-weight: 690; text-align: center; }
.primary { color: white; background: var(--brand); }
.primary:hover { color: white; background: var(--brand-dark); }
.secondary { border-color: #d8cde5; color: var(--brand-dark); background: #ffffffac; }
.secondary:hover { background: white; }
.quiet { color: var(--brand-dark); background: transparent; }
.quiet:hover { background: var(--lavender); }
.hero-art { position: relative; align-self: stretch; min-width: 0; isolation: isolate; }
.orbit { position: absolute; left: 48%; top: 50%; transform: translate(-50%, -50%); aspect-ratio: 1; border-radius: 50%; border: 1px solid #bda9d680; width: 86%; max-width: 420px; }
.orbit-two { width: 71%; max-width: 337px; }
.art-grid { position: absolute; inset: 11% 2% 10% 0; background: radial-gradient(circle, #8f77a87a 1px, transparent 1.5px) 0 0 / 16px 16px; mask-image: radial-gradient(ellipse, black, transparent 74%); opacity: .44; }
.sheet { position: absolute; border-radius: 13px; border: 1px solid #cfc0df; background: #fcfafd; box-shadow: 0 17px 42px #442d6a21; }
.sheet-main { width: 53%; max-width: 242px; min-height: 278px; top: 48%; left: 42%; transform: translate(-50%, -50%) rotate(-10deg); padding: 26px 24px 21px; }
.sheet-back { width: 48%; max-width: 225px; height: 264px; top: 48%; left: 47%; transform: translate(-50%, -50%) rotate(9deg); background: #e3d7ee; box-shadow: none; }
.sheet-symbol, .chart-symbol { display: grid; place-items: center; width: 46px; height: 42px; border-radius: 10px; color: #6c5494; background: #eee7f6; }
.chart-symbol { width: 36px; height: 34px; border-radius: 8px; }
.art-rule { display: block; background: #dcd1e9; height: 5px; width: 60%; border-radius: 4px; }
.art-heading { margin-top: 18px; background: #8d76ac; height: 8px; width: 70%; }
.art-subheading { margin-top: 11px; width: 51%; }
.art-question { width: 78%; margin-top: 16px; }
.art-question.short { width: 59%; }
.art-options { display: flex; gap: 8px; margin-top: 9px; }
.art-options i { width: 13px; height: 13px; border: 1px solid #c7bad9; border-radius: 50%; }
.art-options i.on { background: #8c73ad; box-shadow: inset 0 0 0 2px white; }
.sheet-chart { width: 45%; max-width: 191px; min-height: 132px; left: 64%; top: 65%; padding: 13px; transform: translate(-30%, -15%) rotate(10deg); }
.sheet-chart .art-rule { position: absolute; left: 57px; top: 27px; width: 36%; }
.art-bars { display: flex; align-items: end; gap: 6px; height: 55px; margin-top: 10px; border-bottom: 1px solid #e2d8eb; padding-inline: 4px; }
.art-bars i { flex: 1; background: #b5a1ce; border-radius: 3px 3px 0 0; height: 40%; }
.art-bars i:nth-child(2n) { background: #765f9d; height: 70%; }
.art-bars i:nth-child(3n) { height: 53%; }
.art-bars i:nth-child(5n) { height: 84%; }
.art-bars i:nth-child(7n) { height: 31%; }
.art-cross, .art-dot { position: absolute; color: #997db9; font-size: 25px; line-height: 1; }
.art-cross-1 { top: 22%; right: 21%; }.art-cross-2 { bottom: 25%; left: 5%; }.art-cross-3 { top: 13%; left: 26%; font-size: 16px; }
.art-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: #a893bd; right: 10%; top: 44%; }

.library-section { margin-top: 51px; scroll-margin-top: 20px; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.section-top h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-top p { margin-top: 4px; }
.segmented { display: inline-flex; align-self: start; flex-wrap: wrap; gap: 3px; padding: 4px; border: 1px solid #e5deeb; border-radius: 10px; background: #f2eef5; }
.segmented button { border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: .87rem; font-weight: 650; padding: 7px 12px; }
.segmented button[aria-pressed="true"] { background: white; border-color: #e7e1ec; color: var(--brand-dark); box-shadow: 0 1px 3px #26173713; }
.segmented button:hover:not([aria-pressed="true"]) { background: #ffffff7c; }
.category { margin-top: 27px; }
.category + .category { margin-top: 42px; }
.category-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.category-heading h3 { font-size: 1.22rem; letter-spacing: -.035em; line-height: 1.25; }
.category-heading p { margin-top: 2px; font-size: .92rem; }
.category-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px; color: var(--brand); background: var(--lavender); }
.category-icon.mast { color: var(--green); background: var(--green-bg); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.instrument-card { display: flex; flex-direction: column; position: relative; gap: 7px; min-height: 174px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.instrument-card:hover { border-color: #bdaccf; box-shadow: 0 5px 20px #2e1e4c08; }
.instrument-card h4 { font-size: 1.16rem; letter-spacing: -.03em; line-height: 1.18; margin-top: 3px; }
.instrument-card h4 a { color: var(--ink); text-decoration: none; }
.instrument-card h4 a::after { content: ""; position: absolute; inset: 0; border-radius: 13px; }
.instrument-card h4 a:focus-visible { outline: none; }
.instrument-card:focus-within { outline: 2px solid #7e5cb1; outline-offset: 3px; }
.instrument-card h4 span { display: inline-block; font-size: .78rem; font-weight: 680; letter-spacing: 0; color: var(--brand); margin-left: 4px; }
.instrument-card > p { font-size: .92rem; line-height: 1.42; margin-bottom: 7px; }
.pill { display: inline-flex; align-items: center; align-self: start; gap: 5px; padding: 4px 8px; border-radius: 6px; font-size: .76rem; font-weight: 710; line-height: 1.3; white-space: nowrap; background: #f0ecf4; color: #5b467b; }
.pill.interactive { background: var(--green-bg); color: var(--green); }
.pill.demo { background: #e9eff7; color: #345570; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 9px; border-top: 1px solid #efeaf0; font-size: .8rem; color: var(--muted); }
.meta-dot { color: #8f73a8; margin-inline: 1px; }
.card-open { color: var(--brand-dark); font-weight: 690; }
.privacy-callout { margin-top: 28px; border: 1px solid #ddd2ea; border-radius: 13px; background: #f3eef8; display: flex; align-items: center; gap: 14px; padding: 15px 18px; }
.privacy-callout svg { color: var(--brand); }
.privacy-callout p { font-size: .9rem; }
.privacy-callout a { margin-left: auto; flex: none; font-size: .88rem; font-weight: 650; }

.page { padding-top: 24px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 18px; font-size: .88rem; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-head { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .65fr); gap: 27px; padding: clamp(22px, 4vw, 43px); background: #f0eaf6; border: 1px solid #e5dcec; border-radius: var(--radius); align-items: start; }
.detail-head h1, .simple-head h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin: 9px 0 9px; color: #2d2342; }
.detail-subtitle { color: var(--ink); font-weight: 680; font-size: 1.06rem; margin-bottom: 5px; }
.detail-stats { background: #ffffffa8; border: 1px solid #e4dbea; border-radius: 11px; align-self: center; padding: 4px 15px; }
.detail-stats div { padding: 9px 0; }
.detail-stats div + div { border-top: 1px solid #e8dfed; }
.detail-stats dt, .source-panel h3 { color: var(--brand-dark); font-weight: 720; font-size: .86rem; }
.detail-stats dd { font-size: .92rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(255px, 335px); align-items: start; gap: 26px; margin-top: 24px; }
.detail-content, .source-panel, .compare-picker, .survey-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-content section { padding: 22px clamp(19px, 3.3vw, 30px); }
.detail-content section + section { border-top: 1px solid var(--line); }
.detail-content p, .source-panel p { margin-top: 8px; }
.domain-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 13px 0 0; }
.domain-list li { border: 1px solid #e3dbe9; padding: 4px 8px; border-radius: 6px; font-size: .87rem; color: #4f4166; background: #f8f5fa; }
.considerations { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.considerations > div { border-radius: 9px; padding: 13px; background: #f2edf7; }
.considerations > div:first-child { background: #eaf2ed; }
.considerations p { font-size: .91rem; }
.source-panel { padding: 19px; }
.source-panel h3 { margin-top: 15px; }
.source-panel p, .source-panel li { font-size: .9rem; overflow-wrap: anywhere; }
.source-list { padding: 0; list-style: none; margin-block: 10px; }
.source-list li + li { margin-top: 5px; }
.text-link { font-weight: 660; }
.notice { border-radius: 8px; background: #f3eef8; color: #57436f; padding: 9px 12px; }
.simple-head { margin: 0 0 23px; padding: clamp(18px, 3.4vw, 36px); background: #f0eaf6; border: 1px solid #e5dcec; border-radius: var(--radius); }
.simple-head > p:not(.eyebrow) { max-width: 68ch; }

.survey-layout { display: grid; grid-template-columns: minmax(200px, .37fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.survey-sidebar { position: sticky; top: 16px; border: 1px solid #e5dcec; border-radius: 13px; background: #f2edf7; padding: 18px; }
.survey-sidebar h1 { font-size: clamp(1.6rem, 3vw, 2.6rem); margin-top: 8px; }
.side-copy { font-size: .91rem; margin-top: 7px; }
.progress-box { margin: 17px 0; font-size: .85rem; font-weight: 680; color: var(--brand-dark); }
progress, meter { display: block; height: 8px; width: 100%; margin-top: 7px; border: 0; background: #e1d8eb; border-radius: 6px; accent-color: var(--brand); }
progress::-webkit-progress-bar, meter::-webkit-meter-bar { background: #e1d8eb; border: 0; border-radius: 6px; }
progress::-webkit-progress-value, meter::-webkit-meter-optimum-value { background: #765a9d; border-radius: 6px; }
progress::-moz-progress-bar, meter::-moz-meter-bar { background: #765a9d; border-radius: 6px; }
.steps { display: grid; gap: 4px; }
.steps button { display: flex; gap: 8px; min-height: 37px; align-items: center; text-align: left; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); line-height: 1.25; padding: 5px; font-size: .87rem; }
.steps button span { display: grid; place-items: center; flex: none; width: 23px; height: 23px; border-radius: 50%; background: #e9dff1; color: var(--brand-dark); font-size: .8rem; font-weight: 690; }
.steps button[aria-current], .steps button:hover { background: white; border-color: #e4d9ed; }
.steps button[aria-current] { font-weight: 700; }
.local-note { margin-top: 14px; display: flex; align-items: center; gap: 6px; font-size: .84rem; }
.survey-panel { min-width: 0; padding: clamp(16px, 3.5vw, 33px); }
.survey-title h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 3px; scroll-margin-top: 24px; }
.survey-instruction { border-left: 3px solid #9e83bc; padding: 7px 11px; background: #f7f3fa; margin-top: 19px; font-size: .94rem; }
.question { position: relative; min-inline-size: 0; padding: 0 0 13px; margin: 0; border: 0; }
.question legend { padding: 0; padding-top: 15px; margin-bottom: 8px; font-weight: 680; line-height: 1.39; }
.q-number { color: var(--brand); }
.question-hint { font-size: .84rem; padding-bottom: 5px; }
.options { display: flex; flex-wrap: wrap; gap: 7px; }
.option { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; min-height: 38px; border: 1px solid #ddd4e7; border-radius: 7px; background: #fbf9fc; color: #403751; font-size: .89rem; line-height: 1.3; cursor: pointer; }
.option:has(:checked) { background: #ede5f5; border-color: #9777b3; color: #3a2458; }
.option:hover { border-color: #a087b6; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--brand); margin: 0; inline-size: 16px; block-size: 16px; flex: none; }
.number-label { display: block; margin-top: 8px; font-size: .88rem; }
.numeric { width: 145px; border: 1px solid #d9cde3; border-radius: 7px; background: white; color: var(--ink); padding: 6px 8px; margin-top: 4px; }
.input-error { color: #922d45; font-size: .85rem; margin-top: 4px; }
.link-button { padding: 0; color: var(--brand-dark); border: 0; background: none; font-size: .87rem; font-weight: 680; text-decoration: underline; text-underline-offset: .2em; }
.clear { display: block; margin-top: 7px; font-size: .8rem; }
.survey-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 5px; }
.survey-controls > div { display: flex; gap: 7px; flex-wrap: wrap; }
.survey-fine { margin-top: 14px; }
.survey-fine p { margin-top: 6px; font-size: .84rem; }
dialog { width: min(430px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 13px; padding: 23px; background: white; color: var(--ink); }
dialog::backdrop { background: #271a3a78; }
dialog p { margin-top: 7px; }
.result-page > p, .result-extra > p { margin-top: 5px; }
.score-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.score-card { display: grid; grid-template-rows: auto 1fr auto; align-items: start; min-height: 130px; border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 13px; }
.score-card h3 { font-size: .95rem; line-height: 1.3; color: var(--ink); }
.score-card strong { font-size: clamp(1.15rem, 3vw, 1.9rem); line-height: 1.15; color: var(--brand-dark); margin: 7px 0 4px; overflow-wrap: anywhere; }
.score-card .no-score { font-size: 1rem; color: var(--muted); }
.score-card p { font-size: .82rem; line-height: 1.35; margin-top: 7px; }
.result-extra { margin-top: 23px; }
.result-extra > .score-card { max-width: 300px; margin-top: 10px; }

.compare-picker { padding: 17px; }
.picker-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.picker-head p { font-size: .88rem; margin-top: 3px; }
.picker-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.pick-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.compare-choice { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fdfcfd; font-size: .86rem; cursor: pointer; }
.compare-choice:has(:checked) { background: #f0ebf7; border-color: #c5b3d9; }
.compare-view { margin-top: 17px; }
.compare-note { font-size: .92rem; margin: 9px 0 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 5px 15px; padding-bottom: 8px; }
.legend > div { display: flex; align-items: center; gap: 6px; font-size: .81rem; }
.coverage { display: inline-block; padding: 3px 6px; border-radius: 5px; font-size: .79rem; font-weight: 730; white-space: nowrap; }
.coverage.direct { background: var(--green-bg); color: var(--green); }
.coverage.related { background: var(--lavender); color: #5a427b; }
.coverage.no-clear-item { background: #f1efef; color: #615b63; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
table { width: 100%; border-spacing: 0; text-align: left; font-size: .91rem; }
th, td { padding: 12px 13px; vertical-align: top; border-bottom: 1px solid #ebe5ed; }
td, thead th:not(:first-child) { min-width: 180px; max-width: 310px; }
thead th { background: #f0ebf5; color: var(--brand-dark); }
tbody th { background: #f9f6fb; width: 175px; }
tr > :first-child { position: sticky; left: 0; min-width: 148px; border-right: 1px solid #e5deea; z-index: 1; }
tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td ul { margin: 0; padding-left: 15px; }
td p { margin-top: 5px; font-size: .86rem; }

@media (max-width: 940px) {
  .wrap { width: calc(100% - 44px); }
  .hero { min-height: 410px; }
  .sheet-main { min-height: 245px; width: 57%; padding: 20px 16px; }
  .sheet-back { height: 225px; }
  .sheet-chart { left: 58%; top: 64%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; gap: 12px; }
  .site-header nav { gap: clamp(10px, 3vw, 20px); }
  .site-header nav a { font-size: .84rem; }
  .hero { margin-top: 16px; min-height: 0; grid-template-columns: 1fr; }
  .hero-content { padding: 25px; }
  .hero h1 { font-size: clamp(2.75rem, 10vw, 4.5rem); }
  .hero-break { display: none; }
  .hero-art { display: none; }
  .library-section { margin-top: 29px; }
  .section-top { align-items: start; flex-direction: column; }
  .detail-head, .detail-layout, .survey-layout { grid-template-columns: 1fr; gap: 13px; }
  .detail-stats { display: flex; flex-wrap: wrap; gap: 0 15px; }
  .detail-stats div + div { border-top: 0; }
  .survey-sidebar { position: static; }
  .steps { display: flex; flex-wrap: wrap; }
  .steps button { min-height: 35px; }
  .score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-callout { flex-wrap: wrap; align-items: start; }
  .privacy-callout > div { flex: 1 1 75%; }
  .privacy-callout a { margin-left: 36px; }
}
@media (max-width: 470px) {
  .header-inner { flex-wrap: wrap; gap: 5px; padding-top: 10px; }
  .brand-group { gap: 12px; width: 100%; }
  .brand-logo img { width: 148px; }
  .site-header .brand { font-size: .89rem; }
  .site-header nav { min-height: 35px; }
  .hero-content { padding: 21px 17px; }
  .hero .eyebrow { font-size: .72rem; }
  .cards, .considerations { grid-template-columns: 1fr; }
  .instrument-card { min-height: 142px; }
  .picker-head { align-items: start; flex-direction: column; }
  .picker-buttons { gap: 9px; }
  .segmented button { padding-inline: 8px; font-size: .82rem; }
  tr > :first-child { min-width: 114px; max-width: 114px; overflow-wrap: anywhere; }
  th, td { padding: 8px; }
}
