:root {
  color-scheme: light dark;
  --paper: #f7f3e9;
  --paper-bright: #fffdf7;
  --paper-soft: #eee7d9;
  --ink: #08295f;
  --ink-soft: #365472;
  --blue: #1b61c9;
  --blue-deep: #073b7a;
  --blue-pale: #cceaf3;
  --blue-water: #79b8d4;
  --thread: #c7342d;
  --line: rgba(8, 41, 95, .17);
  --white-line: rgba(255, 255, 255, .24);
  --shadow: 0 22px 70px rgba(8, 41, 95, .14), 0 4px 12px rgba(8, 41, 95, .08);
  --shadow-soft: 0 12px 34px rgba(8, 41, 95, .11), 0 2px 6px rgba(8, 41, 95, .07);
  --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  --page: min(1180px, calc(100vw - 48px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--sans);
  font-feature-settings: "palt" 1;
  line-height: 1.8;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-checking {
  background-color: #f4efe4;
}

button,
input,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.45;
  text-wrap: balance;
  word-break: auto-phrase;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--blue-deep);
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid #f0a000;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px max(24px, calc((100vw - 1340px) / 2));
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-header.is-solid,
body.is-checking .site-header {
  background: rgba(255, 253, 247, .92);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(8, 41, 95, .07);
  backdrop-filter: blur(16px) saturate(1.1);
}

.brand {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
}

.brand img {
  display: block;
  width: 145px;
  height: auto;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-status span {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
}

.view {
  min-height: 100vh;
}

.landing-view {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 940px;
  padding: 130px 0 90px;
  isolation: isolate;
  overflow: hidden;
}

.landing-view::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse at 50% 10%, rgba(255,255,255,.88), transparent 55%),
    linear-gradient(90deg, rgba(255,253,247,.83), rgba(255,253,247,.24) 54%, rgba(255,253,247,.66));
}

.landing-view::after {
  content: "";
  position: absolute;
  inset: auto -8% -145px;
  z-index: -1;
  height: 330px;
  background: var(--paper);
  clip-path: polygon(0 46%, 5% 40%, 10% 50%, 17% 41%, 23% 53%, 31% 43%, 38% 54%, 45% 40%, 52% 51%, 61% 42%, 68% 53%, 76% 42%, 84% 52%, 91% 41%, 100% 49%, 100% 100%, 0 100%);
}

.watercolor {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/route-watercolor-desktop.webp");
  background-position: center;
  background-size: cover;
  filter: saturate(.92) contrast(.98);
  transform: scale(1.015);
  animation: watercolor-breathe 12s ease-in-out infinite alternate;
}

.route-thread {
  position: absolute;
  z-index: 2;
  right: -35px;
  bottom: 16%;
  width: 36%;
  height: 140px;
  pointer-events: none;
  transform: rotate(5deg);
}

.route-thread::before,
.route-thread::after {
  content: "";
  position: absolute;
}

.route-thread::before {
  inset: 48% 0 auto;
  height: 3px;
  background: var(--thread);
  box-shadow: 0 2px 2px rgba(92, 12, 16, .18);
  clip-path: polygon(0 30%, 9% 0, 21% 45%, 34% 10%, 49% 56%, 64% 8%, 80% 48%, 100% 24%, 100% 78%, 80% 64%, 64% 90%, 49% 68%, 34% 92%, 21% 62%, 9% 86%, 0 70%);
}

.route-thread::after {
  left: -10px;
  top: calc(48% - 8px);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8275, var(--thread) 44%, #7c1115 100%);
  box-shadow: 0 2px 6px rgba(74, 9, 12, .28);
}

.landing-grid {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: clamp(64px, 9vw, 130px);
  align-items: center;
}

.landing-copy {
  position: relative;
  z-index: 1;
  isolation: isolate;
  max-width: 680px;
  padding: 42px 0 72px;
}

.landing-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px -44px 24px -42px;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 42% 48%,
    rgba(255, 253, 247, .9) 0%,
    rgba(255, 253, 247, .74) 45%,
    rgba(255, 253, 247, .43) 68%,
    rgba(255, 253, 247, .12) 84%,
    transparent 100%
  );
  filter: blur(2px);
}

.eyebrow,
.section-label,
.route-map-label,
.question-no,
.axis-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--blue);
}

.landing-copy h1 {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(42px, 4.75vw, 68px);
  font-weight: 600;
  letter-spacing: .055em;
}

.no-orphan {
  display: inline-block;
  white-space: nowrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 18px;
  padding: 4px 12px;
  color: var(--blue-deep);
  background: rgba(255, 253, 247, .72);
  border: 1px solid rgba(27, 97, 201, .2);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.landing-intro {
  max-width: 610px;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.75;
}

.landing-copy h1 em {
  position: relative;
  font-style: normal;
}

.landing-copy h1 em::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 2%;
  bottom: -12px;
  height: 2px;
  background: var(--thread);
  transform: rotate(-.7deg);
}

.landing-lead {
  max-width: 610px;
  margin-bottom: 18px;
  color: #0d3767;
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
}

.landing-details {
  min-height: auto;
  padding: clamp(72px, 9vw, 128px) 0;
  background: linear-gradient(180deg, var(--paper), var(--paper-bright));
}

.landing-details-inner {
  width: var(--page);
  margin: 0 auto;
}

.diagnosis-about {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
  padding-bottom: clamp(64px, 8vw, 104px);
}

.about-copy h2,
.symptom-panel h2,
.diagnosis-notes h2 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: .035em;
}

.about-copy > p:last-child {
  color: var(--ink-soft);
}

.about-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.about-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.about-list span {
  color: var(--thread);
  font-family: var(--serif);
  font-size: 14px;
}

.about-list strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.symptom-panel {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: 34px 70px;
  padding: clamp(34px, 5vw, 58px);
  background: rgba(255, 253, 247, .88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.symptom-panel ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.symptom-panel li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 14px;
}

.symptom-panel li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--thread);
}

.symptom-panel > p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.details-start {
  grid-column: 1 / -1;
  justify-self: start;
}

.landing-meta {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.landing-lead,
.landing-meta,
.privacy-note {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .9),
    0 0 14px rgba(255, 253, 247, .92);
}

.landing-meta span {
  position: relative;
  padding-right: 18px;
  margin-right: 18px;
}

.landing-meta span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--thread);
  transform: translateY(-50%);
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.quiet-button,
.light-button,
.back-to-start {
  min-height: 48px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 286px;
  min-height: 58px;
  padding: 14px 22px 14px 26px;
  color: #fff;
  background: linear-gradient(135deg, #246bd3, #0d4391);
  background-color: #0d4391;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 5px;
  box-shadow: 0 11px 28px rgba(13, 67, 145, .24);
}

.primary-button:hover,
.light-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(13, 67, 145, .28);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: .42;
  transform: none;
  box-shadow: none;
}

.secondary-button {
  min-width: 112px;
  padding: 11px 18px;
  color: var(--ink);
  background: rgba(255,255,255,.68);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.secondary-button:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-1px);
}

.secondary-button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.quiet-button,
.back-to-start {
  min-width: 44px;
  padding: 10px 4px;
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid currentColor;
}

.quiet-button:hover,
.back-to-start:hover {
  color: var(--blue);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.privacy-note span {
  width: 9px;
  height: 9px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--paper-bright);
  background: var(--blue);
}

.route-map {
  position: relative;
  padding: 32px 30px 26px;
  background: rgba(255,253,247,.74);
  border: 1px solid rgba(8,41,95,.14);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(9px);
  transform: rotate(.6deg);
}

.route-map::before,
.route-map::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 18px;
  background: rgba(224, 205, 158, .52);
}

.route-map::before {
  top: -7px;
  left: 34px;
  transform: rotate(-3deg);
}

.route-map::after {
  right: 22px;
  bottom: -8px;
  transform: rotate(5deg);
}

.route-map-label {
  margin-bottom: 20px;
  color: var(--blue);
}

.route-map ol {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-map ol::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 22px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(var(--thread), rgba(199,52,45,.25));
}

.route-map li {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 16px;
  padding: 11px 0;
}

.route-map li > span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(199,52,45,.42);
  border-radius: 50%;
  color: var(--thread);
  background: var(--paper-bright);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
}

.route-map strong {
  align-self: end;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .04em;
}

.route-map small {
  grid-column: 2;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: .03em;
}

.route-map-foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.landing-foot {
  position: absolute;
  left: 50%;
  bottom: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
  transform: translateX(-50%) rotate(90deg);
  transform-origin: center;
}

.landing-foot i {
  display: block;
  width: 46px;
  height: 1px;
  background: currentColor;
}

.check-view {
  position: relative;
  display: grid;
  align-items: center;
  padding: 120px 24px 70px;
  overflow: hidden;
}

.check-view::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(247,243,233,.88), rgba(247,243,233,.92)),
    url("assets/route-watercolor-desktop.webp") center / cover;
  filter: saturate(.65);
}

.check-view::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -5%;
  right: -5%;
  top: 52%;
  height: 2px;
  background: var(--thread);
  opacity: .36;
  transform: rotate(-4deg);
}

.check-shell {
  width: min(860px, 100%);
  margin: 0 auto;
}

.check-topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.back-to-start {
  justify-self: start;
  border-bottom-color: transparent;
  font-size: 12px;
}

.back-to-start::before {
  content: "←";
  margin-right: 7px;
}

.axis-kicker {
  margin: 0;
  color: var(--blue);
}

.progress-count {
  justify-self: end;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.progress-count strong {
  margin-right: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
}

.progress-track {
  height: 3px;
  margin-bottom: 28px;
  overflow: hidden;
  background: rgba(8,41,95,.12);
}

.progress-track span {
  display: block;
  width: 8.333%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--thread));
  transition: width .35s ease;
}

.question-card {
  position: relative;
  padding: clamp(30px, 5vw, 58px);
  background: rgba(255,253,247,.94);
  border: 1px solid rgba(8,41,95,.15);
  box-shadow: var(--shadow);
}

.question-card::before,
.question-card::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 19px;
  background: rgba(225, 207, 164, .48);
}

.question-card::before {
  top: -8px;
  left: 44px;
  transform: rotate(-2deg);
}

.question-card::after {
  right: 38px;
  bottom: -8px;
  transform: rotate(3deg);
}

.question-card fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.question-card legend {
  display: block;
  width: 100%;
  padding: 0;
}

.question-no {
  display: block;
  margin-bottom: 14px;
  color: var(--thread);
}

.question-title {
  display: block;
  max-width: 720px;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1.55;
  text-wrap: balance;
}

.question-guide {
  margin: 14px 0 24px;
  color: var(--ink-soft);
  font-size: 13px;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 56px;
  padding: 11px 16px;
  border: 1px solid rgba(8,41,95,.17);
  background: rgba(255,255,255,.58);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.option:hover {
  border-color: rgba(27,97,201,.55);
  background: #fff;
  transform: translateX(3px);
}

.option:has(input:checked) {
  border-color: var(--blue);
  background: #eef7fb;
  box-shadow: inset 4px 0 0 var(--blue);
}

.option:has(input:focus-visible) {
  outline: 3px solid #f0a000;
  outline-offset: 3px;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(8,41,95,.4);
  border-radius: 50%;
  color: transparent;
  background: var(--paper-bright);
}

.option-mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  transform: scale(0);
  transition: transform .18s ease;
}

.option:has(input:checked) .option-mark {
  border-color: var(--blue);
}

.option:has(input:checked) .option-mark::after {
  transform: scale(1);
}

.option-copy {
  display: grid;
  gap: 2px;
  line-height: 1.6;
}

.option-copy strong {
  font-size: 14px;
}

.option-copy small {
  color: var(--ink-soft);
  font-size: 11px;
}

.question-error {
  margin: 14px 0 0;
  color: #9b251f;
  font-size: 12px;
  font-weight: 700;
}

.question-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
}

.next-button {
  min-width: 220px;
}

.save-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  text-align: center;
}

.result-view {
  padding-top: 78px;
}

.result-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 60px;
  align-items: center;
  min-height: 560px;
  padding: 90px max(24px, calc((100vw - 1180px) / 2));
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #062d62, #0d4f91 62%, #1776a6);
}

.result-hero::before,
.result-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
}

.result-hero::before {
  width: 760px;
  height: 370px;
  right: -200px;
  top: -180px;
  transform: rotate(-14deg);
  box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.018);
}

.result-hero::after {
  width: 560px;
  height: 280px;
  left: -240px;
  bottom: -190px;
  transform: rotate(15deg);
  box-shadow: 0 0 0 32px rgba(255,255,255,.025), 0 0 0 78px rgba(255,255,255,.018);
}

.result-heading {
  max-width: 820px;
}

.result-heading::after {
  content: "";
  display: block;
  width: min(390px, 72%);
  height: 2px;
  margin-top: 30px;
  background: var(--thread);
  box-shadow: 0 2px 2px rgba(60, 8, 12, .2);
  transform: rotate(-.7deg);
}

.result-heading .eyebrow {
  color: #a9dbea;
}

.result-overline {
  margin-bottom: 12px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 700;
}

.result-heading h1 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: .055em;
}

.result-secondary {
  max-width: 760px;
  margin: 0 0 24px;
  padding-left: 18px;
  border-left: 2px solid rgba(169, 219, 234, .7);
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

.result-hero-cta {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: max(24px, calc((100vw - 1180px) / 2));
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 10px 18px;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid rgba(255, 255, 255, .72);
  border-left: 4px solid var(--thread);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
}

.result-hero-cta:hover {
  transform: translateY(-2px);
}

.result-summary {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 17px;
  font-weight: 600;
  line-height: 2;
}

.result-disclaimer {
  margin: 0;
  color: rgba(255,255,255,.7);
  font-size: 11px;
}

.result-seal {
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  text-align: center;
  transform: rotate(6deg);
}

.result-seal::before,
.result-seal::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.result-seal::before {
  width: 164px;
  height: 164px;
  border: 1px dashed rgba(255,255,255,.34);
}

.result-seal::after {
  width: 7px;
  height: 7px;
  background: var(--thread);
  box-shadow: 0 -78px 0 rgba(255,255,255,.8), 0 78px 0 rgba(255,255,255,.8);
}

.result-seal span,
.result-seal strong {
  position: relative;
  z-index: 1;
  display: block;
}

.result-seal span {
  margin-bottom: 7px;
  font-size: 10px;
  letter-spacing: .22em;
}

.result-seal strong {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: .08em;
}

.result-content {
  width: var(--page);
  margin: 0 auto;
  padding: 90px 0 110px;
}

.result-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 420px);
  gap: 60px;
  align-items: end;
  margin-bottom: 38px;
}

.section-label {
  margin-bottom: 9px;
  color: var(--blue);
}

.section-heading-row h2,
.consult-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: .04em;
}

.section-heading-row > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.axis-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.axis-card {
  position: relative;
  min-height: 220px;
  padding: 28px;
  background: rgba(255,253,247,.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.axis-card.is-priority {
  border-color: rgba(199,52,45,.48);
  box-shadow: inset 4px 0 0 var(--thread), var(--shadow-soft);
}

.axis-card.is-secondary {
  border-color: rgba(27, 97, 201, .42);
}

.axis-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.axis-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.axis-card-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.axis-levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.axis-levels span {
  height: 6px;
  background: rgba(8,41,95,.1);
}

.axis-levels span.is-on {
  background: linear-gradient(90deg, var(--blue), var(--blue-water));
}

.axis-card.is-priority .axis-levels span.is-on {
  background: linear-gradient(90deg, var(--thread), #e07c69);
}

.axis-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.axis-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.axis-flags span {
  padding: 3px 9px;
  color: #7e2322;
  background: #fff0eb;
  border: 1px solid rgba(199,52,45,.2);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
}

.evidence-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.type-subhead {
  max-width: 920px;
  margin: -10px 0 32px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
}

.evidence-list li {
  min-height: 170px;
  padding: 25px 22px;
  background: #fffdf7;
  border-top: 3px solid var(--thread);
  box-shadow: var(--shadow-soft);
}

.evidence-list span {
  display: block;
  margin-bottom: 11px;
  color: var(--thread);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.evidence-list strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}

.evidence-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.action-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 18px;
}

.action-grid article {
  position: relative;
  min-height: 330px;
  padding: 32px;
  background: rgba(255,253,247,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.action-grid article > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.action-grid .action-main {
  color: #fff;
  background: linear-gradient(145deg, #07366d, #0c5796);
  border-color: transparent;
}

.action-main > span {
  color: #a9dbea !important;
}

.action-time {
  margin: 28px 0 18px;
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1;
}

.action-type {
  margin: 34px 0 20px;
  color: var(--thread);
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.25;
}

.action-time small {
  margin-left: 5px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}

.action-grid h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
}

.action-grid article > p:last-child {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.9;
}

.action-main > p:last-child {
  color: rgba(255,255,255,.82);
}

.support-flow {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.support-flow li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .17);
}

.support-flow span {
  color: #a9dbea;
  font-family: var(--serif);
  font-size: 12px;
}

.support-flow strong {
  font-size: 14px;
}

.support-theme {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 20px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
}

.support-theme span {
  color: var(--ink-soft);
  font-size: 11px;
}

.support-theme strong {
  font-family: var(--serif);
  font-size: 17px;
}

.consult-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 70px;
  align-items: center;
  margin-top: 84px;
  padding: clamp(42px, 7vw, 78px);
  color: #fff;
  background: linear-gradient(135deg, #082c5d, #0b4b8d);
  box-shadow: var(--shadow);
}

.section-label-light {
  color: #a9dbea;
}

.consult-copy h2 {
  margin-bottom: 20px;
}

.consult-copy > p:last-child {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.consult-actions {
  text-align: center;
}

.light-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: 100%;
  min-height: 60px;
  padding: 14px 20px 14px 24px;
  color: var(--ink);
  background: var(--paper-bright);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.consult-actions p {
  margin: 13px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 10px;
}

.submission-panel {
  scroll-margin-top: 92px;
  padding: clamp(38px, 6vw, 68px);
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  box-shadow: var(--shadow-soft);
}

.submission-heading {
  max-width: 860px;
  margin-bottom: 38px;
}

.submission-heading h2 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
}

.submission-heading > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.submission-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.purpose-fieldset legend {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.purpose-fieldset legend span {
  margin-left: 8px;
  color: var(--thread);
  font-family: var(--sans);
  font-size: 11px;
}

.purpose-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.purpose-options label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
}

.purpose-options input {
  position: absolute;
  opacity: 0;
}

.purpose-options label:has(input:checked) {
  color: var(--blue-deep);
  border-color: var(--blue);
  background: #eaf6fb;
  box-shadow: inset 4px 0 0 var(--blue);
}

.purpose-options label:has(input:focus-visible) {
  outline: 3px solid #f0a000;
  outline-offset: 3px;
}

.purpose-options span,
.light-button span,
.submit-button {
  word-break: keep-all;
  overflow-wrap: normal;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 46px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.form-section-title span {
  color: var(--thread);
  font-family: var(--serif);
  font-size: 13px;
}

.form-section-title h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
}

.form-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.form-field > span {
  font-size: 13px;
  font-weight: 700;
}

.form-field b,
.consent-field b {
  color: var(--thread);
  font-size: 10px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(8, 41, 95, .26);
  border-radius: 3px;
  font-size: 16px;
  line-height: 1.5;
}

.form-field textarea {
  min-height: 124px;
  resize: vertical;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.consent-field {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 34px;
  padding: 20px;
  background: rgba(204, 234, 243, .28);
  border: 1px solid rgba(27, 97, 201, .25);
  cursor: pointer;
  font-size: 13px;
}

.consent-field input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.consent-field a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-privacy-note {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.submit-row {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}

.submission-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.submission-status.is-error {
  color: #9b251f;
}

.submission-status.is-success {
  padding: 14px 16px;
  color: #13562f;
  background: #eaf7ed;
  border: 1px solid #9bc9a8;
}

.honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.result-tools {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 38px;
}

.diagnosis-notes {
  margin-top: 38px;
  padding: 34px 36px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .45);
}

.diagnosis-notes h2 {
  font-size: 28px;
}

.diagnosis-notes > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.site-footer {
  padding: 54px 24px;
  color: var(--ink-soft);
  background: #eee8dc;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer img {
  width: 138px;
  height: auto;
  margin-bottom: 16px;
}

.site-footer p {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 14px;
}

.site-footer small {
  font-size: 10px;
}

.live-region {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 80;
  padding: 16px;
  color: #fff;
  background: #7b2420;
}

@keyframes watercolor-breathe {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.035) translate3d(-.35%, .25%, 0); }
}

@media (max-width: 1024px) {
  .landing-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 46px;
  }

  .landing-copy h1 {
    font-size: clamp(46px, 6vw, 64px);
  }

  .route-thread {
    width: 42%;
  }

  .section-heading-row {
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --page: min(100% - 32px, 680px);
  }

  .site-header {
    min-height: 70px;
    padding: 10px 16px;
  }

  .brand img {
    width: 118px;
  }

  .header-status span:nth-child(1),
  .header-status span:nth-child(2) {
    display: none;
  }

  .landing-view {
    min-height: 1050px;
    padding: 116px 0 120px;
    align-items: start;
  }

  .landing-view::before {
    background: linear-gradient(rgba(255,253,247,.82), rgba(255,253,247,.3) 50%, rgba(255,253,247,.82));
  }

  .watercolor {
    background-image: url("assets/route-watercolor-mobile.webp");
    background-position: center top;
  }

  .landing-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .landing-copy {
    max-width: 620px;
    padding: 30px 0 0;
  }

  .landing-copy::before {
    inset: -4px -24px -22px;
    background: radial-gradient(
      ellipse at 50% 45%,
      rgba(255, 253, 247, .86) 0%,
      rgba(255, 253, 247, .68) 48%,
      rgba(255, 253, 247, .34) 72%,
      transparent 100%
    );
  }

  .landing-copy h1 {
    font-size: clamp(42px, 10vw, 62px);
  }

  .route-map {
    width: min(520px, 100%);
    margin-left: auto;
  }

  .route-thread {
    right: -70px;
    bottom: 10%;
    width: 65%;
  }

  .landing-foot {
    display: none;
  }

  .diagnosis-about,
  .symptom-panel {
    grid-template-columns: 1fr;
  }

  .symptom-panel {
    gap: 28px;
  }

  .check-view {
    align-items: start;
    padding-top: 104px;
  }

  .check-topline {
    grid-template-columns: 1fr 1fr;
  }

  .axis-kicker {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .question-card {
    padding: 32px 24px;
  }

  .result-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 650px;
    padding-top: 104px;
  }

  .result-seal {
    justify-self: end;
    width: 140px;
    height: 140px;
  }

  .result-seal::before {
    width: 118px;
    height: 118px;
  }

  .result-seal::after {
    box-shadow: 0 -56px 0 rgba(255,255,255,.8), 0 56px 0 rgba(255,255,255,.8);
  }

  .result-seal strong {
    font-size: 16px;
  }

  .result-content {
    padding-top: 60px;
  }

  .section-heading-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .axis-results,
  .evidence-list,
  .action-grid,
  .consult-section {
    grid-template-columns: 1fr;
  }

  .evidence-list li {
    min-height: auto;
  }

  .consult-section {
    gap: 38px;
  }
}

@media (max-width: 640px) {
  .landing-view {
    min-height: 1060px;
  }

  .landing-copy {
    text-align: center;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .landing-copy h1 {
    margin-bottom: 24px;
    font-size: clamp(39px, 12vw, 54px);
    line-height: 1.5;
    letter-spacing: .035em;
  }

  .landing-intro {
    margin-inline: auto;
    font-size: 18px;
  }

  .landing-lead {
    font-size: 14px;
    line-height: 1.95;
  }

  .landing-actions {
    display: grid;
  }

  .landing-meta {
    justify-content: center;
  }

  .primary-button {
    width: 100%;
    min-width: 0;
  }

  .privacy-note {
    justify-content: center;
    align-items: flex-start;
  }

  .route-map {
    padding: 28px 22px 24px;
    text-align: left;
  }

  .route-map strong {
    font-size: 17px;
  }

  .landing-details {
    padding: 64px 0;
  }

  .diagnosis-about {
    gap: 34px;
    padding-bottom: 58px;
  }

  .about-list li {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .about-list strong {
    font-size: 16px;
  }

  .symptom-panel {
    padding: 30px 22px;
  }

  .details-start {
    justify-self: stretch;
  }

  .check-view {
    padding: 98px 14px 48px;
  }

  .check-shell {
    width: 100%;
  }

  .question-card {
    padding: 28px 18px;
  }

  .question-title {
    font-size: 25px;
  }

  .option {
    grid-template-columns: 26px 1fr;
    min-height: 60px;
    padding: 10px 12px;
  }

  .option:hover {
    transform: none;
  }

  .question-actions {
    display: grid;
    grid-template-columns: 94px 1fr;
  }

  .next-button {
    min-width: 0;
  }

  .result-hero {
    min-height: 620px;
    padding: 100px 20px 58px;
  }

  .result-hero-cta {
    top: 18px;
    right: 20px;
    left: 20px;
    min-height: 58px;
    padding: 10px 14px 10px 16px;
    text-wrap: balance;
  }

  .result-heading h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .result-summary {
    font-size: 15px;
  }

  .result-secondary {
    font-size: 12px;
  }

  .result-seal {
    justify-self: center;
  }

  .result-section {
    padding: 52px 0;
  }

  .axis-card,
  .action-grid article {
    padding: 24px 20px;
  }

  .axis-card {
    min-height: 0;
  }

  .action-grid article {
    min-height: 300px;
  }

  .action-time {
    font-size: 64px;
  }

  .support-theme {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .consult-section {
    margin-top: 52px;
    padding: 38px 22px;
  }

  .submission-panel {
    margin-inline: -8px;
    padding: 34px 18px;
  }

  .submission-heading {
    margin-bottom: 30px;
  }

  .submission-heading h2 {
    font-size: 28px;
    text-wrap: pretty;
  }

  .purpose-options,
  .form-grid,
  .submit-row {
    grid-template-columns: 1fr;
  }

  .purpose-options label {
    min-height: 52px;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .form-section-title {
    margin-top: 38px;
  }

  .consent-field {
    padding: 16px 14px;
  }

  .submit-row {
    gap: 16px;
  }

  .submit-button {
    min-height: 58px;
  }

  .diagnosis-notes {
    padding: 28px 22px;
  }

  .result-tools {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  body:not(.force-light) {
    --paper: #101c2b;
    --paper-bright: #17283b;
    --paper-soft: #142235;
    --ink: #eef7ff;
    --ink-soft: #b4c8da;
    --line: rgba(205,229,247,.18);
    color: var(--ink);
    background-color: var(--paper);
  }

  body:not(.force-light) .site-header.is-solid,
  body.is-checking:not(.force-light) .site-header {
    background: rgba(16,28,43,.93);
  }

  body:not(.force-light) .landing-view::before {
    background: linear-gradient(90deg, rgba(16,28,43,.9), rgba(16,28,43,.34) 54%, rgba(16,28,43,.72));
  }

  body:not(.force-light) .landing-view::after,
  body:not(.force-light) .site-footer {
    background: var(--paper);
  }

  body:not(.force-light) .landing-details {
    background: linear-gradient(180deg, var(--paper), var(--paper-bright));
  }

  body:not(.force-light) .watercolor {
    opacity: .48;
  }

  body:not(.force-light) .landing-lead {
    color: var(--ink);
  }

  body:not(.force-light) .landing-copy::before {
    background: radial-gradient(
      ellipse at 42% 48%,
      rgba(16, 28, 43, .86) 0%,
      rgba(16, 28, 43, .66) 52%,
      rgba(16, 28, 43, .28) 76%,
      transparent 100%
    );
  }

  body:not(.force-light) .landing-lead,
  body:not(.force-light) .landing-meta,
  body:not(.force-light) .privacy-note {
    text-shadow:
      0 1px 0 rgba(4, 14, 27, .9),
      0 0 14px rgba(9, 23, 39, .92);
  }

  body:not(.force-light) .route-map,
  body:not(.force-light) .symptom-panel,
  body:not(.force-light) .question-card,
  body:not(.force-light) .axis-card,
  body:not(.force-light) .evidence-list li,
  body:not(.force-light) .action-grid article:not(.action-main),
  body:not(.force-light) .diagnosis-notes,
  body:not(.force-light) .submission-panel {
    background: rgba(23,40,59,.93);
  }

  body:not(.force-light) .form-field input,
  body:not(.force-light) .form-field select,
  body:not(.force-light) .form-field textarea,
  body:not(.force-light) .purpose-options label {
    color: var(--ink);
    background: rgba(16, 28, 43, .72);
  }

  body:not(.force-light) .purpose-options label:has(input:checked) {
    color: var(--ink);
    background: #173958;
  }

  body:not(.force-light) .option {
    background: rgba(23,40,59,.72);
  }

  body:not(.force-light) .option:has(input:checked) {
    background: #173958;
  }

  body:not(.force-light) .option-mark {
    background: #17283b;
  }

  body:not(.force-light) .secondary-button,
  body:not(.force-light) .header-status span {
    color: var(--ink);
    background: rgba(23,40,59,.88);
  }

  body:not(.force-light) .check-view::before {
    background: linear-gradient(rgba(16,28,43,.91), rgba(16,28,43,.95)), url("assets/route-watercolor-desktop.webp") center / cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  .site-header,
  .site-footer,
  .consult-section,
  .result-tools,
  .result-disclaimer {
    display: none !important;
  }

  body {
    color: #08295f;
    background: #fff;
  }

  .result-view {
    padding: 0;
  }

  .result-hero {
    min-height: auto;
    padding: 24px;
    color: #08295f;
    background: #eef7fb;
  }

  .result-seal {
    display: none;
  }

  .result-content {
    width: 100%;
    padding: 0;
  }

  .result-section {
    padding: 24px 0;
    break-inside: avoid;
  }

  .axis-card,
  .evidence-list li,
  .action-grid article {
    color: #08295f !important;
    background: #fff !important;
    box-shadow: none;
    break-inside: avoid;
  }

  .action-main > p:last-child,
  .action-main > span {
    color: #365472 !important;
  }
}
