/* Design pass guided by unslop, Damir Sokolovsky (@heydamir), CC BY 4.0.
   https://heydamir.design/unslop */
:root {
  --coral: #ff4b52;
  --coral-ink: #bd303c;
  --ink: #302a32;
  --secondary: #554d57;
  --muted: #6b626d;
  --purple: #705289;
  --mint: #d4eee8;
  --line: #e4dfe4;
  --cream: #fffcf9;
  --lavender: #f0e9f4;
  --ease: cubic-bezier(.22,1,.36,1);
  font-family: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { border: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--purple); outline-offset: 4px;
}
[hidden] { display: none !important; }
.site-header, .hero, .page-layout, .info-disclosure, footer {
  width: calc(100% - 64px); max-width: 1168px; margin-inline: auto;
}
.site-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: 56px; font-weight: 500; letter-spacing: -5px; line-height: 1; color: var(--coral); text-decoration: none; }
.wordmark span { font-size: 12px; letter-spacing: 0; vertical-align: top; display: inline-block; margin: 8px 0 0 8px; }
.header-note { font-size: 14px; color: var(--secondary); }
.header-link { font-size: 14px; text-decoration-thickness: 1px; padding-block: 12px; }
.hero { min-height: 400px; overflow: hidden; background: var(--coral); border-radius: 16px; display: grid; grid-template-columns: 1.2fr 1fr; color: #271e26; }
.hero-copy { padding: 40px 48px; align-self: center; }
.eyebrow { font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 20px; margin: 0 0 16px; }
.hero h1 { font-weight: 400; font-size: 64px; line-height: 1.06; letter-spacing: -.03em; margin: 0 0 24px; }
.hero-intro { font-size: 20px; line-height: 28px; margin: 0 0 8px; font-weight: 500; }
.hero-description { max-width: 368px; font-size: 16px; line-height: 24px; margin: 0 0 24px; }
.start-link { font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; gap: 32px; text-decoration: none; border-bottom: 1px solid currentColor; padding-block: 8px; }
.start-link span { font-size: 18px; }
.hero-art { display: flex; align-items: center; justify-content: center; padding: 40px; }
.comfort-note { background: var(--mint); color: var(--ink); width: 288px; min-height: 312px; border-radius: 104px 104px 16px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 32px; }
.note-label { font-size: 12px; line-height: 20px; color: var(--secondary); margin-bottom: 16px; }
.note-title { font-size: 32px; text-align: center; line-height: 1.2; letter-spacing: -.02em; }
.note-line { height: 1px; width: 80px; background: #302a3233; margin: 24px 0 16px; }
.comfort-note small { text-align: center; font-size: 14px; line-height: 20px; color: var(--secondary); }
.page-layout { margin-block: 48px 64px; display: grid; grid-template-columns: 272px minmax(0,1fr); gap: 48px; align-items: start; }
.check-guide { position: sticky; top: 24px; background: var(--lavender); border-radius: 16px; padding: 24px; }
.check-guide h2 { font-weight: 500; line-height: 1.35; font-size: 24px; letter-spacing: -.02em; margin: 0 0 16px; }
.check-guide p { font-size: 15px; line-height: 24px; margin: 0 0 16px; color: var(--secondary); }
.check-guide .eyebrow { font-size: 14px; color: var(--purple); margin-bottom: 16px; }
.guide-divider { height: 1px; background: #302a321a; margin: 24px 0; }
.small { font-size: 14px; line-height: 22px; color: var(--secondary); }
.check-guide .small { font-size: 14px; line-height: 22px; }
.progress-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 20px; margin: 24px 0 8px; }
.progress-heading strong { font-weight: 500; font-variant-numeric: tabular-nums; }
progress { display: block; appearance: none; border: 0; border-radius: 4px; width: 100%; height: 4px; background: #ded2e4; overflow: hidden; }
progress::-webkit-progress-bar { background: #ded2e4; }
progress::-webkit-progress-value { background: var(--purple); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--purple); }
.check-guide .privacy-note { font-size: 13px; margin: 24px 0 0; line-height: 20px; color: var(--muted); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 24px; }
.section-heading .eyebrow { color: var(--purple); margin-bottom: 8px; }
h2 { font-weight: 500; letter-spacing: -.02em; font-size: 32px; line-height: 1.2; margin: 0; }
.question-count { white-space: nowrap; font-size: 13px; line-height: 20px; color: var(--muted); }
.question { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 24px; margin: 0 0 16px; min-width: 0; }
.question legend { float: left; width: 100%; padding: 0; display: flex; align-items: baseline; gap: 16px; font-size: 18px; font-weight: 500; line-height: 28px; letter-spacing: 0; margin-bottom: 24px; }
.number { font-size: 14px; color: var(--purple); font-weight: 500; min-width: 16px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.options { clear: both; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option > span { border: 1px solid var(--line); border-radius: 8px; padding: 12px 4px; min-height: 72px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; font-size: 14px; line-height: 20px; color: var(--secondary); transition: background-color 160ms var(--ease),border-color 160ms var(--ease),color 160ms var(--ease); }
.option small { font-size: 12px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.option:hover > span { background: #f8f5fa; border-color: var(--purple); }
.option input:checked + span { background: var(--purple); border-color: var(--purple); color: #fff; }
.option input:checked + span small { color: #fff; }
.option input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 4px; }
summary { color: var(--muted); line-height: 24px; }
summary span { color: var(--purple); font-variant-numeric: tabular-nums; }
.primary-button { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--coral-ink); color: #fff; font-size: 16px; line-height: 24px; font-weight: 500; border-radius: 8px; padding: 12px 24px; margin: 24px 0 0; min-width: 288px; min-height: 48px; transition: background-color 160ms var(--ease); }
.primary-button:hover { background: #a52732; }
.primary-button span { font-size: 18px; }
.text-button { display: block; background: none; color: var(--secondary); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; line-height: 24px; padding: 8px 0; margin: 8px 0 0; }
.incomplete-note { font-size: 14px; line-height: 24px; background: #fff0e8; border: 1px solid #ead7ca; padding: 16px; margin-top: 24px; border-radius: 8px; text-align: left; }
.incomplete-note button { padding: 8px 16px; min-height: 40px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; margin-block: 4px; }
.result { margin-top: 0; padding: 32px; background: var(--mint); border-radius: 16px; scroll-margin-top: 24px; }
.result .eyebrow { color: var(--secondary); }
.score { display: flex; align-items: center; gap: 24px; margin: 24px 0; font-variant-numeric: tabular-nums; }
.score strong { font-weight: 400; font-size: 80px; line-height: 1; letter-spacing: -.03em; }
.score span { font-size: 14px; line-height: 24px; }
.result h2 { font-size: 32px; }
.result > p { line-height: 24px; font-size: 16px; }
.result .response-count, .result > .small { font-size: 14px; line-height: 24px; }
.result-note { font-size: 14px; line-height: 24px; border-top: 1px solid #302a3226; padding-top: 24px; margin-top: 24px; }
.result .thank-you { font-weight: 500; margin-top: 24px; }
.result-edit { background: none; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; line-height: 24px; color: var(--ink); margin-top: 8px; }
.methodology { padding: 32px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.methodology h2 { font-size: 32px; line-height: 1.25; max-width: 360px; }
.methodology p { font-size: 16px; line-height: 24px; }
.methodology .eyebrow { color: var(--purple); font-size: 14px; }
.band { display: grid; grid-template-columns: 48px 1fr; gap: 24px; align-items: baseline; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 14px; line-height: 24px; }
.band:first-child { padding-top: 0; }
.band span { font-variant-numeric: tabular-nums; color: var(--purple); }
.band strong { font-weight: 500; }
.methodology .method-note { font-size: 14px; line-height: 24px; margin-bottom: 0; color: var(--secondary); }
.references { padding-block: 24px 8px; }
.references .eyebrow { color: var(--purple); }
.reference-intro { max-width: 704px; font-size: 16px; line-height: 24px; color: var(--secondary); margin: 16px 0 32px; }
.references ol { padding-left: 24px; margin: 0; }
.references li { padding: 24px 0 24px 16px; border-top: 1px solid var(--line); }
.references li::marker { font-size: 14px; color: var(--purple); font-variant-numeric: tabular-nums; }
.references h3 { font-size: 16px; line-height: 24px; font-weight: 500; margin: 0 0 12px; }
.references h3 a { text-decoration: none; }
.references h3 a:hover { text-decoration: underline; }
.references li p { font-size: 14px; line-height: 24px; max-width: 960px; margin: 0 0 12px; color: var(--secondary); overflow-wrap: anywhere; }
.references summary { font-size: 14px; }
.references details p { margin-top: 12px; }
footer { border-top: 1px solid var(--line); padding-block: 24px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
footer .wordmark { font-size: 40px; }
footer p, footer a { font-size: 14px; line-height: 24px; color: var(--muted); }
.skip-link { position: absolute; top: -80px; left: 16px; background: #fff; padding: 16px; z-index: 10; }
.skip-link:focus { top: 8px; }
.noscript { padding: 24px; background: #fff0e8; position: fixed; bottom: 0; width: 100%; text-align: center; margin: 0; }
/* One question per step; the source notes stay with the question. */
.question legend:focus { outline: none; }
.question { margin-bottom: 0; }
#question-list { overflow: clip; padding: 4px; margin: -4px; }
#comfort-form[aria-busy="true"] { cursor: wait; }
#comfort-form[aria-busy="true"] .answer-hint { color: var(--purple); }
.answer-hint { font-size: 14px; line-height: 24px; color: var(--secondary); margin: 16px 0; }
.wizard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.wizard-actions .primary-button { margin: 0 0 0 auto; min-width: 184px; }
.wizard-actions .text-button { margin: 0; padding: 12px 0; }
.back-button { min-height: 48px; padding: 12px 16px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; font-size: 16px; line-height: 24px; transition: background-color 160ms var(--ease); }
.back-button:hover:enabled { background: var(--lavender); }
.back-button:disabled { opacity: .45; cursor: default; }
.primary-button:disabled { background: #eee9ed; color: #6b626d; cursor: default; }
.session-actions { margin-top: 16px; }
.session-actions .text-button { margin: 0; }
.info-disclosure { border-top: 1px solid var(--line); }
.info-disclosure > summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; list-style: none; color: var(--ink); }
.info-disclosure > summary::-webkit-details-marker { display: none; }
.info-disclosure > summary > span:first-child { display: grid; gap: 4px; }
.info-disclosure > summary strong { font-size: 18px; line-height: 28px; font-weight: 500; }
.info-disclosure > summary > span:first-child > span { font-size: 14px; line-height: 24px; color: var(--muted); }
.disclosure-toggle { width: 24px; height: 24px; position: relative; flex-shrink: 0; color: var(--purple); }
.disclosure-toggle::before, .disclosure-toggle::after { content: ''; position: absolute; background: currentColor; width: 16px; height: 2px; top: 11px; left: 4px; }
.disclosure-toggle::after { transform: rotate(90deg); }
.info-disclosure[open] > summary .disclosure-toggle::after { display: none; }
.info-disclosure[open] > summary { padding-bottom: 0; }
.info-disclosure:last-of-type { margin-bottom: 48px; }
/* Quiet source disclosure; full research context stays available on demand. */
.question-reference { clear: both; margin-top: 16px; }
.question-reference > summary { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; min-height: 32px; list-style: none; }
.question-reference > summary::-webkit-details-marker { display: none; }
.reference-chevron { display: flex; flex: 0 0 16px; color: var(--muted); }
.question-reference svg { display: block; width: 18px; height: 18px; flex-shrink: 0; }
.reference-summary { display: grid; gap: 4px; min-width: 0; flex: 1; }
.reference-summary strong { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 20px; }
.reference-summary > span { color: var(--muted); font-size: 13px; line-height: 20px; }
.reference-chevron { justify-content: flex-end; transition: transform 160ms var(--ease); }
.reference-chevron svg { width: 14px; height: 14px; }
.question-reference[open] .reference-chevron { transform: rotate(180deg); }
.question-reference > summary:hover strong { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.reference-body { border-top: 1px solid var(--line); margin-top: 8px; padding-block: 16px 0; }
.reference-context-label { font-size: 14px; font-weight: 500; line-height: 20px; margin: 0 0 8px; }
.reference-context { font-size: 14px; line-height: 24px; color: var(--secondary); margin: 0 0 20px; }
.source-links { display: grid; gap: 8px; }
.source-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; text-decoration: none; transition: border-color 160ms var(--ease),background-color 160ms var(--ease); }
.source-card:hover { border-color: var(--purple); background: #fdfbff; }
.source-index { font-size: 12px; line-height: 20px; color: var(--purple); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.source-description { display: grid; gap: 4px; flex: 1; min-width: 0; }
.source-description strong { font-size: 14px; font-weight: 500; line-height: 20px; color: var(--ink); }
.source-description small { font-size: 12px; line-height: 20px; color: var(--muted); }
.source-card > svg { color: var(--purple); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1100px) {
  .page-layout { grid-template-columns: 240px minmax(0,1fr); gap: 32px; }
  .hero-copy { padding: 40px 32px; }
  .hero-art { padding: 32px; }
  .hero h1 { font-size: 56px; }
  .question { padding: 24px 16px; }
  .options { gap: 4px; }
  .option > span { font-size: 14px; }
  .methodology { gap: 32px; }
}
@media (max-width: 900px) {
  .header-note { display: none; }
  .hero { grid-template-columns: 1.2fr 1fr; }
  .hero h1 { font-size: 48px; }
  .hero-art { padding: 24px; }
  .comfort-note { width: 240px; min-height: 288px; }
  .note-title { font-size: 28px; }
  .page-layout { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .check-guide { position: static; }
  .check-guide h2 br { display: none; }
  .check-guide .guide-divider { display: none; }
  .check-guide p { margin-bottom: 12px; }
  .progress-heading { margin-top: 24px; }
  .check-guide .privacy-note { margin-top: 16px; }
  .question { padding: 24px; }
  .options { gap: 8px; }
  .option > span { font-size: 14px; }
}
@media (max-width: 600px) {
  .site-header, .hero, .page-layout, .info-disclosure, footer { width: calc(100% - 32px); }
  .site-header { min-height: 80px; gap: 16px; }
  .wordmark { font-size: 48px; }
  .header-link { font-size: 13px; }
  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 32px 24px; }
  .hero h1 { font-size: 40px; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 24px; }
  .hero-intro { font-size: 18px; line-height: 28px; }
  .hero-description { font-size: 16px; line-height: 24px; }
  .hero-art { display: none; }
  .section-heading { flex-wrap: wrap; gap: 12px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading .eyebrow { font-size: 14px; }
  .question-count { font-size: 13px; }
  .question { padding: 24px 16px; }
  .question legend { font-size: 18px; line-height: 28px; gap: 12px; }
  .options { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
  .option { grid-column: span 2; }
  .option:nth-child(n+4) { grid-column: span 3; }
  .option > span { font-size: 14px; line-height: 20px; min-height: 72px; padding: 12px 4px; }
  .option small { font-size: 12px; }
  .check-guide { padding: 24px; }
  .check-guide h2 { font-size: 24px; }
  .primary-button { width: 100%; min-width: 0; }
  .methodology { grid-template-columns: 1fr; padding: 32px 8px; gap: 24px; }
  .methodology h2, .references h2 { font-size: 28px; }
  .references li { padding-left: 8px; }
  .result { padding: 24px; }
  .result h2 { font-size: 28px; }
  .score { gap: 16px; }
  .score strong { font-size: 64px; }
  footer { flex-wrap: wrap; gap: 16px; }
  footer p, footer a { font-size: 13px; }
  footer a { margin-left: auto; }
}
@media (max-width: 600px) {
  .wizard-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
  .wizard-actions .text-button { justify-self: end; }
  .wizard-actions .primary-button { grid-column: 1 / -1; width: 100%; min-width: 0; margin: 8px 0 0; }
  .info-disclosure > summary { padding-block: 24px; gap: 16px; }
  .info-disclosure > summary strong { font-size: 18px; }
  .info-disclosure > summary > span:first-child > span { font-size: 13px; line-height: 20px; }
  .methodology { padding-inline: 0; }
}
@media (max-width: 600px) {
  .source-card { padding: 12px; gap: 8px; }
}
@media (max-width: 359px) {
  .options { column-gap: 4px; }
  .option > span { padding-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
