:root {
  --navy: #0A1628;
  --navy-2: #111f33;
  --turquoise: #5CE1E6;
  --turquoise-deep: #168c96;
  --slate: #8A9AB0;
  --ink: #142031;
  --muted: #647287;
  --line: #d9e1e8;
  --neutral: #F2F5F8;
  --white: #fff;
  --shadow: 0 24px 70px rgba(10, 22, 40, .12);
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--neutral);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--neutral); }
button, a { font: inherit; }
button { cursor: pointer; }
.skip-link { position: absolute; left: -9999px; top: 12px; background: var(--white); color: var(--navy); padding: 12px; z-index: 10; }
.skip-link:focus { left: 12px; }
.site-header { min-height: 78px; padding: 14px clamp(18px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--navy); }
.brand img { width: 225px; height: auto; display: block; }
.header-link { color: var(--turquoise); text-decoration: none; font-weight: 600; font-size: .9rem; }

.provider-hero { min-height: min(760px, calc(100vh - 78px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .98fr); background: #242a31; color: var(--white); border-bottom: 4px solid var(--turquoise); overflow: hidden; }
.provider-photo { position: relative; min-height: 620px; overflow: hidden; }
.provider-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 62%, #242a31 100%), linear-gradient(0deg, rgba(10,22,40,.5), transparent 34%); pointer-events: none; }
.provider-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; display: block; }
.provider-id { position: absolute; z-index: 1; left: clamp(22px, 5vw, 70px); bottom: clamp(24px, 5vw, 58px); display: grid; gap: 4px; }
.provider-id strong { font-family: "Manrope", system-ui, sans-serif; font-size: 1.3rem; font-weight: 500; }
.provider-id span { color: var(--turquoise); font-size: .9rem; }
.hero-message { align-self: center; max-width: 700px; padding: clamp(44px, 7vw, 105px) clamp(28px, 7vw, 110px) clamp(44px, 7vw, 105px) clamp(28px, 5vw, 72px); }
.eyebrow { margin: 0 0 11px; color: var(--turquoise-deep); font-size: .75rem; line-height: 1.4; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.hero-message .eyebrow, .roadmap-preview .eyebrow { color: var(--turquoise); }
h1, h2, h3 { font-family: "Manrope", system-ui, sans-serif; margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 4.8vw, 5.3rem); line-height: 1.02; font-weight: 400; }
h1 span { color: var(--turquoise); }
.hero-message > p:not(.eyebrow) { color: #ced7df; font-size: 1.05rem; line-height: 1.65; max-width: 620px; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { min-height: 46px; padding: 10px 18px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--white); text-decoration: none; font-weight: 500; }
.button-outline { border: 1px solid rgba(255,255,255,.9); }
.button-outline:hover { border-color: var(--turquoise); color: var(--turquoise); }

.roadmap-intro { max-width: 1184px; margin: 0 auto; padding: 80px 28px 34px; }
.roadmap-intro h2 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.08; max-width: 820px; }
.roadmap-intro > p:last-child { color: var(--muted); line-height: 1.7; max-width: 690px; }
.workspace, .result { max-width: 1184px; margin-left: auto; margin-right: auto; }
.workspace { display: grid; grid-template-columns: minmax(0, .94fr) minmax(380px, 1.06fr); background: var(--white); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; min-height: 650px; }
.question-panel { padding: clamp(28px, 4vw, 54px); display: flex; flex-direction: column; min-width: 0; }
.progress-copy { display: flex; justify-content: space-between; color: var(--muted); font-size: .84rem; font-weight: 600; }
.progress { margin: 10px 0 44px; height: 5px; background: #e5ebef; overflow: hidden; }
.progress span { display: block; height: 100%; width: 20%; background: var(--turquoise-deep); transition: width .28s ease; }
.question-kicker { margin: 0 0 8px; color: var(--turquoise-deep); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
#question-title { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; }
.question-help { margin: 12px 0 26px; color: var(--muted); line-height: 1.6; }
.choices { display: grid; gap: 10px; }
.choice { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); min-height: 58px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 18px; text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.choice:hover { border-color: var(--turquoise-deep); transform: translateY(-1px); }
.choice[aria-pressed="true"] { border-color: var(--turquoise-deep); background: #effbfc; box-shadow: inset 4px 0 0 var(--turquoise); }
.choice span:first-child { font-weight: 600; }
.choice small { display: block; color: var(--muted); font-weight: 400; margin-top: 3px; line-height: 1.4; }
.choice-mark { width: 22px; height: 22px; border: 1px solid var(--slate); border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: transparent; }
.choice[aria-pressed="true"] .choice-mark { border-color: var(--turquoise-deep); background: var(--turquoise); color: var(--navy); }
.question-actions { margin-top: auto; padding-top: 30px; display: flex; justify-content: space-between; gap: 12px; }
.primary-button, .back-button { min-height: 48px; border-radius: 9px; padding: 12px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; font-weight: 600; }
.primary-button { border: 1px solid var(--navy); background: var(--navy); color: var(--white); }
.primary-button:hover { background: var(--navy-2); }
.primary-button:disabled { opacity: .38; cursor: not-allowed; }
.back-button { border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.back-button:disabled { opacity: .35; cursor: not-allowed; }
.privacy-note { margin: 18px 0 0; color: var(--muted); font-size: .78rem; }
.roadmap-preview { background: var(--navy); color: var(--white); padding: clamp(28px, 4vw, 54px); position: relative; overflow: hidden; }
.roadmap-preview::after { content: ""; position: absolute; width: 320px; height: 320px; right: -150px; top: -160px; border-radius: 50%; background: rgba(92,225,230,.13); pointer-events: none; }
.preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.preview-heading h2 { font-size: clamp(1.6rem, 2.5vw, 2.45rem); line-height: 1.15; max-width: 390px; }
#care-format { color: var(--turquoise); border: 1px solid rgba(92,225,230,.42); border-radius: 999px; padding: 7px 10px; font-size: .75rem; white-space: nowrap; }
.preview-intro { color: #c8d3df; line-height: 1.6; margin: 16px 0 30px; max-width: 560px; }
.preview-steps { list-style: none; padding: 0; margin: 0; }
.preview-steps li { display: grid; grid-template-columns: 45px 1fr; gap: 15px; padding: 13px 0; color: #90a0b3; position: relative; }
.preview-steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 48px; bottom: -7px; width: 1px; background: #344358; }
.preview-steps li > span { width: 35px; height: 35px; border: 1px solid #46566b; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; }
.preview-steps li strong { display: block; color: #d9e0e8; font-weight: 600; margin-bottom: 3px; }
.preview-steps li small { line-height: 1.4; }
.preview-steps li.active > span, .preview-steps li.complete > span { border-color: var(--turquoise); background: var(--turquoise); color: var(--navy); }
.preview-steps li.active strong, .preview-steps li.complete strong { color: var(--white); }
.partnership-note { margin-top: 28px; border-top: 1px solid #344358; padding-top: 20px; color: #b9c5d2; line-height: 1.6; font-size: .9rem; }
.partnership-note strong { color: var(--turquoise); }
.result { margin-top: 30px; margin-bottom: 70px; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(28px, 5vw, 60px); }
.result-header { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.result-header h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; }
.result-header p:last-child { max-width: 700px; color: var(--muted); line-height: 1.65; }
.result-tag { border-radius: 999px; padding: 9px 12px; background: #eafafb; color: #086c76; font-weight: 600; font-size: .8rem; white-space: nowrap; }
.timeline { margin: 38px 0 30px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.phase { padding: 22px 18px 18px 0; position: relative; }
.phase::before { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--turquoise); border: 3px solid var(--white); top: -8px; left: 0; box-shadow: 0 0 0 1px var(--turquoise-deep); }
.phase-time { color: var(--turquoise-deep); font-size: .73rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.phase h3 { font-size: 1rem; letter-spacing: -.01em; margin: 8px 0 6px; }
.phase p { color: var(--muted); line-height: 1.5; font-size: .88rem; margin: 0; }
.result-action { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; background: var(--navy); color: var(--white); padding: 22px; border-radius: 13px; }
.result-action strong, .result-action span { display: block; }
.result-action strong { font-size: 1.05rem; }
.result-action span { color: #bdc9d6; margin-top: 4px; }
.result-action .primary-button { background: var(--turquoise); border-color: var(--turquoise); color: var(--navy); }
.result-secondary { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 18px; margin-top: 20px; }
.result-secondary > a { color: var(--navy); font-weight: 600; }
.result-secondary p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
footer { padding: 28px clamp(18px, 4vw, 58px); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; background: var(--navy); color: #afbdca; font-size: .78rem; }

@media (max-width: 980px) {
  .provider-hero { grid-template-columns: 1fr; }
  .provider-photo { min-height: 570px; }
  .provider-photo::after { background: linear-gradient(0deg, #242a31 0, transparent 45%); }
  .hero-message { padding-top: 42px; max-width: 800px; }
  .workspace { margin-left: 18px; margin-right: 18px; grid-template-columns: 1fr; }
  .roadmap-preview { order: -1; }
  .preview-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
  .preview-steps li { display: block; padding: 8px 0; }
  .preview-steps li:not(:last-child)::after { left: 35px; top: 25px; bottom: auto; width: calc(100% - 28px); height: 1px; }
  .preview-steps li strong, .preview-steps li small { display: none; }
  .partnership-note { margin-top: 18px; }
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--navy); margin-left: 7px; }
  .phase { padding: 2px 0 26px 25px; }
  .phase::before { top: 2px; left: -8px; }
  .result { margin-left: 18px; margin-right: 18px; }
}
@media (max-width: 620px) {
  .site-header { align-items: flex-start; }
  .brand img { width: 172px; }
  .header-link { max-width: 145px; text-align: right; font-size: .78rem; }
  .provider-photo { min-height: 480px; }
  .provider-id { left: 18px; bottom: 20px; }
  .hero-message { padding: 38px 18px 48px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .roadmap-intro { padding: 60px 18px 28px; }
  .workspace { border-radius: 14px; min-height: 0; }
  .question-panel, .roadmap-preview { padding: 24px 20px; }
  .progress { margin-bottom: 30px; }
  .preview-heading { display: block; }
  #care-format { display: inline-block; margin-top: 12px; }
  .result { padding: 26px 20px; border-radius: 14px; }
  .result-header, .result-secondary { display: block; }
  .result-tag { display: inline-block; margin-top: 12px; }
  .result-action { grid-template-columns: 1fr; }
  .result-action .primary-button { width: 100%; }
  .result-secondary > * { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* The selected clinic portrait stays intact across the full hero. */
.page-navigation { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px 26px; }
.page-navigation a { color:#e0e8ee; text-decoration:none; font-size:.85rem; padding:8px 0; }
.page-navigation a:hover, .page-navigation a[aria-current="page"] { color:var(--turquoise); }
.provider-hero { position:relative; min-height:620px; grid-template-columns:1fr 1fr; background:#1c1d20; }
.provider-photo { position:absolute; inset:0; min-height:0; }
.provider-photo img {
  position:absolute;
  top:24px;
  left:26%;
  width:auto;
  max-width:none;
  height:calc(100% - 24px);
  max-height:720px;
  object-fit:contain;
  object-position:center;
  transform:translateX(-28.5%);
  mask-image:linear-gradient(90deg,transparent,#000 5%,#000 80%,transparent);
}
.provider-photo::after { background:linear-gradient(90deg,transparent 43%,rgba(19,21,24,.1) 53%,rgba(19,21,24,.45) 100%); }
.hero-message { position:relative; z-index:1; grid-column:2; padding:68px 6vw 60px 2vw; }
.hero-message h1 { font-size:clamp(2.35rem,3.75vw,4.5rem); line-height:1.12; }
.hero-message .eyebrow { font-size:.68rem; letter-spacing:.12em; }
.hero-message > p:not(.eyebrow) { font-size:.95rem; max-width:510px; }
.hero-actions { flex-direction:column; align-items:flex-start; }
.hero-actions .button { border-radius:4px; }
.provider-id { position:static; margin-top:34px; gap:5px; }
.provider-id strong { font-size:1.1rem; }
.provider-id span { font-size:.78rem; }
.letter-invitation { max-width:1184px; padding:54px 28px; margin:auto; display:grid; grid-template-columns:1fr 1fr; gap:50px; border-bottom:1px solid var(--line); }
.letter-invitation h2 { font-size:clamp(1.8rem,3vw,2.7rem); line-height:1.16; max-width:390px; }
.letter-invitation p:not(.eyebrow) { margin:0 0 18px; color:#526172; line-height:1.75; }
.story-link { color:var(--ink); font-weight:600; text-underline-offset:5px; }
footer a { color:var(--turquoise); }
.workspace { margin-bottom:76px; }
@media (min-width:761px) and (max-width:1100px) {
  .provider-hero { min-height:560px; }
  .hero-message { padding:48px 28px 48px 20px; }
  .hero-message h1 { font-size:2.55rem; }
  .hero-message > p:not(.eyebrow) { font-size:.88rem; }
}
@media (max-width:760px) {
  .site-header { flex-wrap:wrap; gap:8px; }
  .brand img { width:184px; }
  .page-navigation { gap:5px 20px; justify-content:flex-start; }
  .page-navigation a { font-size:.78rem; }
  .provider-hero { display:block; min-height:0; }
  .provider-photo { position:relative; height:430px; min-height:0; }
  .provider-photo img { left:50%; }
  .provider-photo::after { background:linear-gradient(0deg,#1c1d20,transparent 26%); }
  .hero-message { padding:20px 24px 42px; }
  .hero-message h1 { font-size:clamp(2.2rem,7vw,3.2rem); }
  .hero-actions { display:flex; align-items:stretch; }
  .letter-invitation { grid-template-columns:1fr; padding:40px 24px; gap:22px; }
}

/* Focus the starting-point questionnaire in one readable column. */
.workspace { display:block; max-width:760px; min-height:0; }
@media(max-width:800px) { .workspace { margin-left:18px; margin-right:18px; } }

.provider-photo-callout { display:flex; align-items:center; gap:26px; align-self:center; color:var(--navy); text-decoration:none; width:fit-content; max-width:100%; }
.provider-photo-thumbnail { display:block; width:200px; flex:0 0 200px; overflow:hidden; border-radius:8px; background:#eef1f4; }
.provider-photo-thumbnail img { display:block; width:100%; height:auto; }
.provider-photo-callout:hover .story-link { color:#087184; }
.provider-photo-callout:focus-visible { outline:3px solid #168c96; outline-offset:8px; border-radius:8px; }
@media(max-width:480px) { .provider-photo-thumbnail { width:160px; flex-basis:160px; } .provider-photo-callout { gap:22px; } }

.letter-invitation { align-items:center; }
.letter-invitation .provider-experience { max-width:390px; margin:22px 0 0; }
