@font-face {
  font-family: "Aloha Serif";
  src: url("./assets/fonts/p052-roman.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Aloha Sans";
  src: url("./assets/fonts/nimbus-sans-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Aloha Sans";
  src: url("./assets/fonts/nimbus-sans-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --canvas: #fbfaf7;
  --canvas-blue: #f2f7f8;
  --paper: #ffffff;
  --ink: #102e4d;
  --ink-soft: #4b657d;
  --ink-faint: #73869a;
  --blue: #1d6f9f;
  --blue-dark: #10577f;
  --blue-soft: #dceef8;
  --aqua: #268d92;
  --seafoam: #def2ed;
  --seafoam-strong: #75bbb5;
  --coral: #ee7864;
  --coral-soft: #fff0ec;
  --amber: #d58a24;
  --amber-soft: #fff4dd;
  --green: #1e8b79;
  --green-soft: #e1f5ef;
  --line: #dce6ea;
  --line-strong: #c9d8df;
  --shadow-sm: 0 1px 2px rgba(13, 42, 75, 0.025), 0 8px 24px rgba(13, 42, 75, 0.045);
  --shadow-md: 0 2px 6px rgba(13, 42, 75, 0.035), 0 18px 48px rgba(13, 42, 75, 0.075);
  --shadow-lg: 0 30px 80px rgba(13, 42, 75, 0.14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --serif: "Aloha Serif", "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: "Aloha Sans", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 13%, rgba(216, 241, 237, 0.22), transparent 25rem),
    var(--canvas);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
textarea,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(35, 109, 158, 0.26);
  outline-offset: 3px;
}

svg {
  display: block;
}

.noscript {
  padding: 1rem;
  background: var(--coral-soft);
  text-align: center;
}

.visually-hidden {
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  width: min(1380px, calc(100% - 64px));
  height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 10;
}

.brand {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 40px;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-mark.compact {
  width: 38px;
  height: 34px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.95rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.beta-badge {
  margin-left: 4px;
  padding: 4px 8px 3px;
  color: var(--blue-dark);
  border: 1px solid rgba(29, 111, 159, 0.16);
  border-radius: 999px;
  background: rgba(220, 238, 248, 0.62);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-link,
.mobile-menu-panel button {
  padding: 9px 4px;
  color: var(--ink);
  background: none;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--seafoam-strong);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.header-signin {
  justify-self: end;
}

.button {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-weight: 700;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  color: #748697;
  background: #dfe8ed;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-outline {
  min-width: 116px;
  min-height: 42px;
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(16, 46, 77, 0.78);
}

.button-outline:hover {
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, #2478a7, #0e587f);
  box-shadow: 0 8px 20px rgba(19, 84, 125, 0.17);
}

.button-primary:hover {
  box-shadow: 0 12px 26px rgba(19, 84, 125, 0.22);
}

.button-large {
  width: 100%;
  min-height: 52px;
  border-radius: 13px;
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  background: rgba(35, 109, 158, 0.08);
}

.icon-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-menu {
  display: none;
  justify-self: end;
}

.mobile-menu-panel {
  position: fixed;
  inset: 82px 20px auto 20px;
  z-index: 30;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.mobile-menu-panel button {
  width: 100%;
  padding: 13px;
  text-align: left;
}

.app-screen {
  display: none;
}

.app-screen.is-active {
  display: block;
  animation: screen-in 280ms ease both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-screen {
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  padding: 8px 0 24px;
}

.home-hero {
  min-height: 588px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(500px, 0.98fr);
  align-items: start;
  gap: clamp(46px, 4.6vw, 72px);
}

.hero-copy {
  padding-top: 56px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px var(--coral-soft);
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

.hero-copy h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 4.55vw, 4.45rem);
  font-weight: 400;
  line-height: 1.025;
  letter-spacing: -0.044em;
}

.headline-nowrap {
  white-space: nowrap;
}

.hero-lede {
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.35vw, 1.24rem);
  letter-spacing: 0.002em;
}

.symptom-card {
  max-width: 660px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.symptom-heading {
  margin: 1px 2px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.symptom-heading label {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 700;
}

.symptom-heading span {
  color: var(--ink-faint);
  font-size: 0.76rem;
}

.symptom-input-wrap {
  position: relative;
}

.symptom-card textarea {
  width: 100%;
  min-height: 88px;
  padding: 16px 17px;
  display: block;
  resize: none;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  line-height: 1.42;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.symptom-card textarea::placeholder {
  color: #899aaa;
}

.symptom-card textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(35, 109, 158, 0.08);
}

.input-character {
  position: absolute;
  right: 13px;
  bottom: 9px;
  color: var(--ink-faint);
  font-size: 0.75rem;
}

.symptom-card .button-large {
  margin-top: 14px;
}

.example-row {
  margin: 12px 2px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.example-chip {
  min-height: 31px;
  padding: 5px 11px;
  color: var(--blue-dark);
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--canvas-blue);
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.example-chip:hover {
  border-color: #bad9e7;
  background: var(--blue-soft);
}

.field-error {
  min-height: 0;
  margin: 7px 2px 0;
  color: #b23728;
  font-size: 0.85rem;
  font-weight: 650;
}

.field-error:empty {
  display: none;
}

.privacy-line {
  margin: 12px 0 -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.privacy-line svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-safety {
  max-width: 640px;
  margin: 14px 4px 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--ink-faint);
  font-size: 0.77rem;
  line-height: 1.48;
}

.hero-safety svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-safety p {
  margin: 0;
}

.hero-safety strong {
  color: var(--ink-soft);
}

.hero-visual {
  height: 568px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 180px 180px 24px 24px;
  isolation: isolate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 5%;
  bottom: 0;
  height: 38%;
  z-index: -1;
  border-radius: 55% 55% 10px 10px;
  background: linear-gradient(180deg, rgba(126, 190, 185, 0.15), rgba(126, 190, 185, 0.46));
}

.hero-visual::before {
  display: none;
}

.sun-shape {
  width: 228px;
  aspect-ratio: 1;
  position: absolute;
  top: 44px;
  left: 50%;
  z-index: -3;
  border-radius: 50%;
  background: #fff0d8;
  transform: translateX(-50%);
  box-shadow: 0 0 0 72px rgba(225, 244, 241, 0.66);
}

.wave {
  height: 180px;
  position: absolute;
  left: -10%;
  right: -10%;
  z-index: -2;
  border-radius: 50%;
  transform: rotate(-4deg);
}

.wave-one {
  top: 208px;
  background: rgba(184, 221, 229, 0.7);
}

.wave-two {
  top: 282px;
  background: rgba(115, 178, 193, 0.36);
  transform: rotate(4deg);
}

.hero-illustration {
  width: min(650px, 108%);
  height: 592px;
  position: absolute;
  right: -1%;
  bottom: -2px;
  z-index: 1;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 18px 22px rgba(24, 64, 82, 0.11));
}

.guide-card {
  width: min(355px, 64%);
  padding: 18px 20px;
  position: absolute;
  left: 0;
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid rgba(199, 218, 224, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  display: none;
}

.guide-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--seafoam);
}

.guide-avatar svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--aqua);
  stroke-width: 2.8;
  stroke-linecap: round;
}

.guide-card strong {
  display: block;
  margin-bottom: 4px;
}

.guide-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.handwritten-note {
  position: absolute;
  top: 86px;
  right: 10px;
  color: var(--blue-dark);
  z-index: 3;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 1.14rem;
  font-style: italic;
  line-height: 1.5;
  transform: rotate(-4deg);
}

.trust-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-card {
  min-height: 116px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.trust-card h2 {
  margin: 1px 0 3px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.trust-card p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.84rem;
}

.trust-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.trust-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-icon.seafoam {
  color: var(--green);
  background: var(--seafoam);
}

.trust-icon.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.trust-icon.coral {
  color: var(--coral);
  background: var(--coral-soft);
}

.site-footer {
  margin-top: 20px;
  padding: 22px 4px 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 36px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  font-size: 0.77rem;
}

.site-footer > div {
  max-width: 670px;
}

.site-footer strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}

.site-footer a {
  color: var(--ink-soft);
  font-weight: 700;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--blue-dark);
}

.footer-version {
  grid-column: 1 / -1;
  padding-top: 2px;
  font-size: 0.71rem;
}

/* Assessment experience */
.assessment-screen {
  min-height: 100vh;
  background: #fcfdfc;
}

.assessment-screen.is-active {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
}

.assessment-screen ~ * {
  scroll-margin-top: 20px;
}

.app-sidebar {
  min-height: 100vh;
  padding: 28px 20px 22px;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(239, 248, 249, 0.72), rgba(251, 250, 246, 0.92)),
    var(--paper);
}

.sidebar-brand {
  margin: 0 8px 26px;
}

.sidebar-brand .brand-name {
  font-size: 1.7rem;
}

.sidebar-beta-note {
  margin: -17px 8px 18px;
  color: var(--ink-faint);
  font-size: 0.67rem;
  letter-spacing: 0.015em;
}

.sidebar-beta-note strong {
  color: var(--blue-dark);
  text-transform: uppercase;
}

.new-conversation {
  width: 100%;
  justify-content: flex-start;
  color: white;
  border-radius: 13px;
  background: var(--ink);
}

.new-conversation:hover {
  background: #173b60;
}

.sidebar-links {
  margin: 18px 0;
  display: grid;
  gap: 4px;
}

.sidebar-links button,
.recent-item {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sidebar-links button:hover,
.recent-item:hover {
  color: var(--ink);
  background: rgba(35, 109, 158, 0.07);
}

.sidebar-links svg,
.recent-item > svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recent-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.recent-section h2 {
  margin: 0 12px 9px;
  color: var(--ink-faint);
  font-size: 0.79rem;
  letter-spacing: 0.02em;
}

.recent-item {
  min-height: 62px;
  align-items: flex-start;
  padding-top: 10px;
}

.recent-item.is-current {
  color: var(--ink);
  background: rgba(35, 109, 158, 0.08);
}

.recent-item span {
  min-width: 0;
  display: grid;
}

.recent-item strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-item small {
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.placeholder-history {
  padding: 19px 13px;
  opacity: 0.55;
}

.history-line {
  width: 70%;
  height: 8px;
  margin-bottom: 11px;
  display: block;
  border-radius: 8px;
  background: #dfe7e9;
}

.history-line.short {
  width: 42%;
}

.sidebar-profile {
  margin-top: auto;
  padding: 17px 8px 0;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
}

.profile-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
}

.profile-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--blue-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sidebar-profile span:last-child {
  display: grid;
}

.sidebar-profile small {
  color: var(--ink-faint);
  font-size: 0.75rem;
}

.sidebar-profile strong {
  font-size: 0.83rem;
}

.assessment-main {
  min-width: 0;
  padding: 22px clamp(24px, 4vw, 72px) 40px;
}

.mobile-app-header {
  display: none;
}

.stepper {
  max-width: 660px;
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: start;
}

.step {
  min-width: 74px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8eff3;
  font-weight: 800;
}

.step strong {
  font-weight: 700;
  white-space: nowrap;
}

.step.is-active {
  color: var(--blue-dark);
}

.step.is-active span {
  color: white;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(35, 109, 158, 0.08);
}

.step.is-complete {
  color: var(--aqua);
}

.step.is-complete span {
  color: white;
  background: var(--aqua);
}

.step-line {
  height: 2px;
  margin: 16px 7px 0;
  background: var(--line-strong);
}

.step-line.is-complete {
  background: var(--seafoam-strong);
}

.assessment-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: clamp(24px, 3vw, 44px);
}

.conversation-column {
  min-width: 0;
}

.user-bubble-row {
  margin: 0 0 22px;
  display: grid;
  justify-items: end;
}

.user-bubble {
  max-width: min(610px, 86%);
  padding: 16px 20px;
  color: var(--ink);
  border-radius: 17px 17px 4px 17px;
  background: var(--blue-soft);
  font-size: 1rem;
}

.user-bubble-row time {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 0.75rem;
}

.assistant-message {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.assistant-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-soft), var(--seafoam));
}

.assistant-avatar svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--aqua);
  stroke-width: 2.7;
  stroke-linecap: round;
}

.assistant-copy {
  padding: 20px 22px;
  border: 1px solid #e0e9ed;
  border-radius: 4px 17px 17px 17px;
  background: linear-gradient(135deg, #f8fbfc, #fff);
}

.assistant-copy h2 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.assistant-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.question-card,
.guidance-panel,
.next-step-panel {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.question-meta {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-weight: 700;
}

.question-card h3 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-button {
  width: 100%;
  min-height: 55px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.option-button:hover {
  border-color: #91bbce;
  background: #f8fbfc;
}

.option-button.is-selected {
  border-color: #83b8d3;
  background: linear-gradient(90deg, var(--blue-soft), #f3f9fc);
}

.option-radio {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid #9aabb9;
  border-radius: 50%;
}

.option-button.is-selected .option-radio {
  border-color: var(--blue);
}

.option-button.is-selected .option-radio::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.question-help {
  margin: 16px 0 0;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--blue-dark);
  border-radius: 12px;
  background: var(--canvas-blue);
  font-size: 0.83rem;
}

.question-help svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
}

.question-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.button-text {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.button-text:hover {
  color: var(--blue);
}

.question-actions .button-primary {
  min-width: 144px;
  border-radius: 13px;
}

.summary-rail {
  display: grid;
  align-content: start;
  gap: 14px;
}

.summary-card,
.privacy-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.summary-card {
  background: linear-gradient(145deg, #f6fbfa, #edf8f5);
}

.overline {
  margin-bottom: 17px;
  color: var(--aqua);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.summary-item {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-item svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--blue-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-item span {
  min-width: 0;
  display: grid;
}

.summary-item small {
  color: var(--ink-faint);
  font-size: 0.7rem;
}

.summary-item strong {
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.privacy-card {
  color: var(--blue-dark);
  background: var(--canvas-blue);
}

.privacy-card > svg {
  width: 25px;
  height: 25px;
  margin-bottom: 10px;
  fill: none;
  stroke: var(--aqua);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-card strong {
  font-size: 0.87rem;
}

.privacy-card p {
  margin: 6px 0 0;
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.5;
}

.rail-note {
  margin: 7px 0 0;
  color: #6b9a9d;
  font-family: var(--serif);
  font-size: 1.08rem;
  text-align: center;
}

.rail-note em {
  font-family: "Segoe Print", "Bradley Hand", cursive;
}

/* Guidance */
.guidance-status {
  margin-bottom: 22px;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 15px;
  background: var(--green-soft);
}

.guidance-status.same-day {
  background: var(--amber-soft);
}

.guidance-status.urgent {
  background: var(--coral-soft);
}

.status-shield {
  width: 46px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 14px 14px 20px 20px;
  background: var(--green);
}

.same-day .status-shield {
  background: var(--amber);
}

.urgent .status-shield {
  background: var(--coral);
}

.status-shield svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guidance-status h2 {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.guidance-status p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.guidance-section + .guidance-section {
  margin-top: 24px;
}

.guidance-section h3 {
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
}

.guidance-intro {
  margin-bottom: 13px;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.possibility-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.possibility-item {
  padding: 14px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  background: #fff;
}

.possibility-item + .possibility-item {
  border-top: 1px solid var(--line);
}

.possibility-symbol {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--blue);
  border-radius: 11px;
  background: var(--canvas-blue);
  font-weight: 800;
}

.possibility-item strong {
  display: block;
  margin-bottom: 1px;
  font-size: 0.92rem;
}

.possibility-item p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.self-care-box {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--canvas-blue), #eff9f7);
}

.check-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.check-list li::before {
  content: "✓";
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--aqua);
  font-size: 0.73rem;
  font-weight: 900;
}

.panel-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.panel-actions .button {
  border-radius: 13px;
}

.button-secondary {
  color: var(--blue-dark);
  border-color: var(--line-strong);
  background: white;
}

.next-step-panel > h2 {
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.next-step-intro {
  margin-bottom: 22px;
  color: var(--ink-soft);
}

.care-ladder {
  display: grid;
  gap: 10px;
}

.care-option {
  padding: 16px;
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 22px;
  align-items: start;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.care-option.is-selected {
  border-color: #82c6bb;
  background: var(--green-soft);
  box-shadow: inset 4px 0 0 var(--green);
}

.care-option.same-day-level {
  background: #fffdf7;
}

.care-option.urgent-level {
  border-color: #f1c9c2;
  background: var(--coral-soft);
}

.care-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  border-radius: 50%;
  background: var(--blue-soft);
}

.urgent-level .care-icon {
  color: white;
  background: var(--coral);
}

.care-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.care-option h3 {
  margin: 0 0 3px;
  font-size: 0.94rem;
}

.urgent-level h3 {
  color: #b62f27;
}

.care-option p,
.care-option ul {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.care-option ul {
  margin-top: 7px;
  padding-left: 18px;
}

.selection-dot {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.is-selected .selection-dot {
  border: 6px solid var(--green);
}

.medical-note {
  margin: 18px 0 0;
  padding: 13px 15px;
  color: var(--ink-soft);
  border-radius: 12px;
  background: #f2f6f8;
  font-size: 0.8rem;
}

/* Modal and toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(7, 29, 52, 0.48);
  backdrop-filter: blur(5px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(580px, 100%);
  max-height: min(720px, 90vh);
  padding: 32px;
  position: relative;
  overflow: auto;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.modal h2 {
  margin: 4px 48px 12px 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.modal > div > p {
  color: var(--ink-soft);
}

.how-list,
.library-list {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.how-list li,
.library-list li {
  padding: 15px;
  display: flex;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfdfd;
}

.number-badge {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.how-list strong,
.library-list strong {
  display: block;
  margin-bottom: 2px;
}

.how-list p,
.library-list p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.86rem;
}

.toast {
  min-width: 240px;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  color: white;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: var(--shadow-md);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Standalone public-beta information pages */
.legal-page {
  background:
    radial-gradient(circle at 90% 4%, rgba(222, 242, 237, 0.68), transparent 28rem),
    var(--canvas);
}

.legal-shell {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 80px;
}

.legal-back {
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.legal-back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-card {
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.legal-kicker {
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-card h1 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 7vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.legal-date {
  margin-bottom: 30px;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.legal-intro {
  padding: 18px 20px;
  border-left: 4px solid var(--seafoam-strong);
  border-radius: 0 12px 12px 0;
  background: var(--canvas-blue);
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.legal-warning {
  border-left-color: var(--coral);
  background: var(--coral-soft);
}

.legal-card h2 {
  margin: 34px 0 9px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.legal-card h3 {
  margin: 24px 0 6px;
  font-size: 1rem;
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
}

.legal-card ul {
  padding-left: 1.2rem;
}

.legal-card li + li {
  margin-top: 7px;
}

.legal-card a {
  color: var(--blue-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-note {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint) !important;
  font-size: 0.78rem;
}

@media (max-width: 1120px) {
  .site-header,
  .home-screen {
    width: min(100% - 40px, 1100px);
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(370px, 0.8fr);
    gap: 35px;
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 5.5vw, 4.25rem);
  }

  .hero-visual {
    height: 500px;
  }

  .handwritten-note {
    display: none;
  }

  .assessment-screen.is-active {
    grid-template-columns: 246px minmax(0, 1fr);
  }

  .assessment-main {
    padding-left: 26px;
    padding-right: 26px;
  }

  .assessment-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
  }
}

@media (max-width: 860px) {
  body {
    background: var(--canvas);
  }

  .site-header {
    width: calc(100% - 34px);
    height: 78px;
    grid-template-columns: 1fr auto;
  }

  .site-header .brand-name {
    font-size: 1.65rem;
  }

  .site-header .brand-mark {
    width: 43px;
  }

  .site-header .beta-badge {
    display: none;
  }

  .top-nav,
  .header-signin {
    display: none;
  }

  .mobile-menu {
    display: grid;
  }

  .home-screen {
    width: calc(100% - 34px);
    padding-top: 22px;
  }

  .home-hero {
    min-height: unset;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .hero-copy {
    width: 100%;
    padding-top: 0;
  }

  .hero-copy h1 {
    max-width: 650px;
    font-size: clamp(3rem, 9.2vw, 4.1rem);
  }

  .hero-lede {
    max-width: 620px;
  }

  .symptom-card {
    max-width: none;
  }

  .hero-visual {
    width: min(620px, 100%);
    height: 430px;
    order: -1;
    display: none;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .footer-version {
    grid-column: auto;
  }

  .trust-card {
    min-height: auto;
  }

  .assessment-screen.is-active {
    display: block;
  }

  .app-sidebar {
    display: none;
  }

  .assessment-main {
    padding: 0 0 28px;
  }

  .mobile-app-header {
    height: 69px;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 250, 246, 0.94);
    backdrop-filter: blur(14px);
  }

  .mobile-app-header .brand {
    justify-self: center;
  }

  .mobile-app-header .brand-name {
    font-size: 1.45rem;
  }

  .stepper {
    margin: 19px 18px 24px;
  }

  .step strong {
    display: none;
  }

  .step {
    min-width: 34px;
  }

  .assessment-grid {
    width: auto;
    margin: 0 18px;
    display: block;
  }

  .summary-rail {
    display: none;
  }

  .user-bubble-row {
    margin-bottom: 18px;
  }

  .assistant-message {
    grid-template-columns: 37px minmax(0, 1fr);
    gap: 9px;
  }

  .assistant-avatar {
    width: 36px;
    height: 36px;
  }

  .assistant-avatar svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 520px) {
  .site-header {
    width: calc(100% - 28px);
  }

  .home-screen {
    width: calc(100% - 28px);
    padding-top: 17px;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .hero-copy h1 {
    margin-bottom: 15px;
    font-size: clamp(2.65rem, 12vw, 3.35rem);
    line-height: 1.01;
  }

  .headline-nowrap {
    white-space: normal;
  }

  .hero-lede {
    margin-bottom: 22px;
    font-size: 1.03rem;
  }

  .symptom-card {
    padding: 14px;
    border-radius: 17px;
  }

  .symptom-card textarea {
    min-height: 92px;
  }

  .symptom-heading span {
    display: none;
  }

  .example-row > span {
    width: 100%;
  }

  .trust-row {
    margin-top: 24px;
    gap: 10px;
  }

  .trust-card {
    padding: 18px;
  }

  .trust-icon {
    width: 44px;
    height: 44px;
  }

  .home-disclaimer {
    padding: 0 12px;
  }

  .stepper {
    margin-left: 21px;
    margin-right: 21px;
  }

  .step-line {
    margin-left: 4px;
    margin-right: 4px;
  }

  .assessment-grid {
    margin: 0 14px;
  }

  .user-bubble {
    max-width: 92%;
    padding: 13px 15px;
  }

  .assistant-copy {
    padding: 17px;
  }

  .question-card,
  .guidance-panel,
  .next-step-panel {
    padding: 18px;
  }

  .question-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .question-actions .button {
    width: 100%;
  }

  .panel-actions {
    flex-direction: column;
  }

  .panel-actions .button {
    width: 100%;
  }

  .care-option {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .care-icon {
    width: 39px;
    height: 39px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal {
    padding: 26px 20px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
