/* Montserrat, served from this site like peopleonehealth.com does (no Google Fonts request).
   Variable weight 100-900, from @fontsource-variable/montserrat 5.3.0. SIL Open Font License: fonts/OFL.txt */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Base reset (from the original page's host frame) */
:root {
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  margin: 0;
  padding: 0;
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #faf9f5;
  color: #141413;
}
img {
  max-width: 100%;
}
[hidden]:not([hidden="until-found" i]) {
  /* biome-ignore lint/complexity/noImportantStyles: the hidden attribute must win over display rules on components */
  display: none !important;
}

/* PeopleOne Health palette, taken from peopleonehealth.com theme presets:
     dark #101820 · light gray #F1F4F4 · blue #53C2EB · medium blue #0082CA · dark blue #003EAA
     green #33C166 / dark green #00B140 · orange #FF8200 · red #D33F58 / dark red #C8102E · Montserrat */
:root {
  --p1-dark: #101820;
  --p1-gray: #f1f4f4;
  --p1-blue: #53c2eb;
  --p1-blue-mid: #0082ca;
  --p1-blue-dark: #003eaa;
  --p1-green: #33c166;
  --p1-green-dark: #00b140;
  --p1-orange: #ff8200;
  --p1-red: #d33f58;
  --p1-red-dark: #c8102e;

  --ground: var(--p1-gray);
  --surface: #ffffff;
  --surface-2: #f5f8f9;
  --line: #dde3e6;
  --line-strong: #bfc9cf;
  --ink: var(--p1-dark);
  --ink-2: #4a545e;
  --ink-3: #7a848d;
  --accent: var(--p1-blue-dark);
  --accent-hover: #0056a7;
  --accent-ink: #ffffff;
  --accent-soft: #e8f6fc;
  --accent-deep: #002b78;
  --urgent: var(--p1-red-dark);
  --urgent-soft: #fce9ed;
  --urgent-ink: #8a0a20;
  --focus: var(--p1-blue-mid);
  --tint-blue: #e8f6fc;
  --tint-blue-ink: #003eaa;
  --tint-green: #e4f8eb;
  --tint-green-ink: #00873a;
  --tint-orange: #fff0e0;
  --tint-orange-ink: #b35b00;
  --tint-red: #fce9ed;
  --tint-red-ink: #a61a2e;
  --shadow: 0 1px 2px rgba(16, 24, 32, 0.05), 0 12px 32px -16px rgba(16, 24, 32, 0.2);
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --display: "Montserrat", ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Montserrat", ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #101820;
    --surface: #171f28;
    --surface-2: #1e2731;
    --line: #2a343f;
    --line-strong: #3e4a57;
    --ink: #f1f4f4;
    --ink-2: #b7c0c8;
    --ink-3: #818c96;
    --accent: var(--p1-blue);
    --accent-hover: #7ed2f1;
    --accent-ink: #101820;
    --accent-soft: #16303c;
    --accent-deep: #9addf5;
    --urgent: #f0647a;
    --urgent-soft: #3a1720;
    --urgent-ink: #ffc9d2;
    --focus: var(--p1-blue);
    --tint-blue: #16303c;
    --tint-blue-ink: #9addf5;
    --tint-green: #14301f;
    --tint-green-ink: #81d9a3;
    --tint-orange: #3a2510;
    --tint-orange-ink: #ffb066;
    --tint-red: #3a1720;
    --tint-red-ink: #ff9baa;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #101820;
  --surface: #171f28;
  --surface-2: #1e2731;
  --line: #2a343f;
  --line-strong: #3e4a57;
  --ink: #f1f4f4;
  --ink-2: #b7c0c8;
  --ink-3: #818c96;
  --accent: var(--p1-blue);
  --accent-hover: #7ed2f1;
  --accent-ink: #101820;
  --accent-soft: #16303c;
  --accent-deep: #9addf5;
  --urgent: #f0647a;
  --urgent-soft: #3a1720;
  --urgent-ink: #ffc9d2;
  --focus: var(--p1-blue);
  --tint-blue: #16303c;
  --tint-blue-ink: #9addf5;
  --tint-green: #14301f;
  --tint-green-ink: #81d9a3;
  --tint-orange: #3a2510;
  --tint-orange-ink: #ffb066;
  --tint-red: #3a1720;
  --tint-red-ink: #ff9baa;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-block: 28px 64px;
  padding-inline: 20px;
}

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.mark {
  width: 38px;
  height: 38px;
  flex: none;
}
.mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-name span {
  font-weight: 400;
}
.brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
}
.ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cta:hover {
  background: var(--accent-hover);
}

/* layout */
.grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 820px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
/* rail */
.rail {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 20px);
}
@media (max-width: 820px) {
  .rail {
    position: static;
  }
}
.rail h2 {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.steps li + li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: -8px;
  height: 18px;
  border-left: 2px solid var(--line);
}
.dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.steps li.done .dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.steps li.now .dot {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 26px;
}
.steps li.now .step-label {
  color: var(--ink);
}
.step-answer {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.4;
}
.steps li.done .step-answer {
  color: var(--ink-2);
}
.step-answer button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 6px;
}
.step-answer button:hover {
  text-decoration: underline;
}
@media (max-width: 820px) {
  .steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .steps li {
    grid-template-columns: auto 1fr;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    gap: 8px;
    align-items: center;
  }
  .steps li + li::before {
    display: none;
  }
  .dot {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .step-label {
    line-height: 22px;
  }
  .step-answer {
    display: none;
  }
  .steps li.done .step-answer {
    display: block;
    font-size: 13px;
    margin-top: 0;
    line-height: 22px;
  }
  .steps li.done .step-label {
    display: none;
  }
}
.rail-help {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--ink-2);
}
.rail-help strong {
  color: var(--ink);
}
@media (max-width: 820px) {
  .rail-help {
    display: none;
  }
}

/* main card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  min-height: 360px;
}
@media (max-width: 520px) {
  .card {
    padding: 22px 18px;
  }
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.q {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-wrap: balance;
}
.hint {
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 60ch;
  font-size: 15px;
}

.opts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.opt {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.15s;
}
.opt:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.opt:active {
  transform: scale(0.995);
}
.opt-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}
.opt-desc {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 4px;
  line-height: 1.45;
}
.opt-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  flex: none;
}
.opt:hover .opt-arrow {
  background: var(--accent);
  color: var(--accent-ink);
}
.opt.urgent:hover {
  border-color: var(--urgent);
  background: var(--urgent-soft);
}
.opt.urgent:hover .opt-arrow {
  background: var(--urgent);
  color: #fff;
}
.yesno {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 520px) {
  .yesno {
    grid-template-columns: 1fr;
  }
}
.yesno .opt {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 22px 18px;
}
/* biome-ignore lint/style/noDescendingSpecificity: yes/no buttons never show the arrow, including urgent ones */
.yesno .opt-arrow {
  display: none;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  gap: 12px;
  flex-wrap: wrap;
}
.back {
  background: none;
  border: 0;
  color: var(--ink-2);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 4px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 15px;
}
.back:hover {
  color: var(--accent);
}
.count {
  font-size: 14px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* result */
.result-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.result-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--tint, var(--accent-soft));
  color: var(--tint-ink, var(--accent-deep));
  display: grid;
  place-items: center;
  flex: none;
}
.result-icon svg {
  width: 26px;
  height: 26px;
}
.result-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.result-who {
  color: var(--ink-2);
  margin: 6px 0 0;
  font-size: 16px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 22px;
}
@media (max-width: 640px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 400px) {
  .facts {
    grid-template-columns: 1fr;
  }
}
.fact {
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.fact-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fact-v {
  font-weight: 600;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.35;
}
.expect {
  color: var(--ink-2);
  margin: 0 0 22px;
  max-width: 62ch;
  font-size: 15px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 16px;
  border: 0;
  cursor: pointer;
}

.cta svg {
  width: 18px;
  height: 18px;
}
.howto {
  margin-top: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.howto h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}
.howto ol {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 14px;
  display: grid;
  gap: 4px;
}
.howto code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--ink);
}

/* emergency */
.card.emergency {
  border-color: var(--urgent);
  background: linear-gradient(180deg, var(--urgent-soft), var(--surface) 55%);
}
.emergency .result-icon {
  background: var(--urgent);
  color: #fff;
}
.emergency .eyebrow {
  color: var(--urgent);
}
.numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
@media (max-width: 520px) {
  .numbers {
    grid-template-columns: 1fr;
  }
}
.num {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
}
.num-big {
  font-family: var(--display);
  font-size: clamp(28px, 6vw, 40px);
  overflow-wrap: anywhere;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--urgent);
  font-variant-numeric: tabular-nums;
}
.num-label {
  font-weight: 600;
  margin-top: 8px;
}
.num-desc {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 2px;
}

.opt-from {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  color: var(--ink-3);
}
.foot {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
  max-width: 70ch;
  margin-inline: auto;
}

.enter {
  animation: enter 0.28s ease both;
}
@keyframes enter {
  from {
    opacity: 0.001;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .enter {
    animation: none;
  }
  .opt {
    transition: none;
  }
}

/* header actions */
.top-acts {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
a.ghost.backsite {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Replaces inline style attributes, so the security policy can block all inline styles */
.flip {
  transform: rotate(180deg);
}
.result-icon.tint-blue {
  --tint: var(--tint-blue);
  --tint-ink: var(--tint-blue-ink);
}
.result-icon.tint-green {
  --tint: var(--tint-green);
  --tint-ink: var(--tint-green-ink);
}
.result-icon.tint-orange {
  --tint: var(--tint-orange);
  --tint-ink: var(--tint-orange-ink);
}
.result-icon.tint-red {
  --tint: var(--tint-red);
  --tint-ink: var(--tint-red-ink);
}
.vnotice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--tint-orange-ink);
  background: var(--tint-orange);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0 4px;
}
.vnotice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}
.vnotice ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  line-height: 1.5;
}
/* The first question's hint (the 911 notice), shown on the first screen when a link skipped that question
   (addLinkNote() in js/app.js). Informational, like .hint, not an alarm. */
.link-note {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
  max-width: 60ch;
  border-left: 3px solid var(--line-strong);
  padding: 2px 0 2px 12px;
  margin: 0 0 20px;
}
.result-head ~ .link-note {
  margin-top: 16px; /* on a result screen it sits above the booking button */
}

/* Embedded in the member portal's iframe (fixed size, about 685 x 560, or 360 x 560 on a phone): the
   portal shows its own logo and header, so drop ours and keep everything compact. Set by js/app.js. */
.embedded body {
  background: transparent;
}
.embedded .brand,
.embedded .backsite,
.embedded .rail h2,
.embedded .rail-help {
  display: none;
}
.embedded .wrap {
  padding-block: 12px 16px;
  padding-inline: 12px;
}
.embedded .top {
  justify-content: flex-end;
  margin-bottom: 8px;
}
