/* Norah's Health. Brand: plum, copper, ivory, sage, blush. Type: Newsreader (display) + Hanken Grotesk (text).
   The copper diagonal is the ribbon from the N, used as the one recurring visual motif. */
:root {
  --plum: #40223e; --plum-2: #2e1830; --plum-soft: #5a3556;
  --copper: #ba7358; --copper-ink: #8e4f37; --copper-tint: #f3e3da;
  --ivory: #f7f2ea; --paper: #fffcf7; --sage: #dfe7df; --sage-ink: #3c5543; --blush: #efdcd3;
  --ink: #2f262d; --muted: #6a5c66; --line: #e2d6d8; --line-2: #cbb9c0;
  --error: #9e2b3f; --error-bg: #fbeef0; --ok-bg: #e9f0e9;
  --display: 'Newsreader', Georgia, serif; --text: 'Hanken Grotesk', system-ui, sans-serif;
  --r: 14px; --wrap: min(1220px, calc(100% - 96px));
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; font: 400 17px/1.6 var(--text); color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased }
h1, h2, h3, p { margin: 0 }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--plum); letter-spacing: -.02em; line-height: 1.04; font-optical-sizing: auto }
h1 { font-size: clamp(44px, 6.2vw, 84px) }
h2 { font-size: clamp(34px, 4vw, 54px) }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--plum) }
em { font-style: italic; color: var(--copper-ink) }
p { color: var(--muted) }
a { color: inherit }
img, svg { display: block; max-width: 100% }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer; border: 0; background: none }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px }
main:focus { outline: none }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 50; background: var(--plum); color: #fff; padding: 12px 18px; border-radius: 8px }
.skip-link:focus { top: 12px }
.wrap { width: var(--wrap); margin: 0 auto }
.demo-bar { background: var(--plum-2); color: #e9dbe5; font-size: 13px; text-align: center; padding: 8px 16px }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--plum); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid var(--plum); transition: background .15s, color .15s; white-space: nowrap }
.btn:hover { background: var(--plum-soft) }
.btn.ghost { background: transparent; color: var(--plum); border-color: var(--line-2) }
.btn.ghost:hover { background: #f0e7ec }
.btn.copper { background: var(--copper); border-color: var(--copper); color: #fff }
.btn.copper:hover { background: var(--copper-ink) }
.btn.light { background: var(--ivory); color: var(--plum); border-color: var(--ivory) }
.btn.small { min-height: 46px; padding: 0 20px; font-size: 15px }
.btn.full { width: 100% }
.btn[aria-busy=true] { opacity: .7; pointer-events: none }
.btn .icon { width: 18px; height: 18px }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--plum); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px }
.icon { width: 22px; height: 22px; flex-shrink: 0 }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-ink) }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; color: var(--ink) }
input, select, textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid #b8a5b1; border-radius: 10px; background: #fff }
input:focus, select:focus, textarea:focus { border-color: var(--plum) }
input[aria-invalid=true] { border-color: var(--error) }
input[type=checkbox], input[type=radio] { width: 20px; min-height: 20px; accent-color: var(--plum) }
textarea { resize: vertical }
fieldset { border: 0; margin: 0; padding: 0 }
legend { font-weight: 600; margin-bottom: 14px; padding: 0 }
.field { margin-bottom: 20px }
.hint { font-size: 14px; color: var(--muted); margin-top: 6px }
.alert { border-radius: 10px; padding: 14px 16px; font-size: 15px; margin: 0 0 20px }
.alert.error { background: var(--error-bg); color: var(--error); border-left: 4px solid var(--error) }
.alert.ok { background: var(--ok-bg); color: var(--sage-ink); border-left: 4px solid #6f8b75 }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px }
.check input { margin-top: 3px }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 92px }
.brand { display: block; width: 196px; flex-shrink: 0 }
.site-nav { display: flex; gap: 30px; font-size: 15px }
.site-nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px }
.nav-actions { display: flex; align-items: center; gap: 18px }
.menu-btn { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; color: var(--plum) }
.mobile-nav { display: grid; padding: 8px 24px 20px; border-bottom: 1px solid var(--line) }
.mobile-nav a { min-height: 48px; display: flex; align-items: center; text-decoration: none; font-size: 18px }

/* Hero */
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; padding: 40px 0 88px }
.hero h1 { margin: 22px 0 26px }
.hero .lede { font-size: 20px; max-width: 540px; color: #574955 }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 34px }
.hero-proof { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 18px; font-size: 14px; color: var(--muted); max-width: 540px }
.hero-proof strong { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; color: var(--copper-ink) }
.hero-visual { position: relative; aspect-ratio: 4 / 4.6; border-radius: 28px; overflow: hidden; background: var(--plum) }
.hero-visual .weave { position: absolute; inset: 0; width: 100%; height: 100% }
.visit-card { position: absolute; left: 28px; right: 28px; bottom: 28px; background: var(--paper); border-radius: 18px; padding: 22px; box-shadow: 0 24px 60px -24px rgba(20, 8, 20, .6) }
.visit-card .row { display: flex; align-items: center; gap: 14px }
.visit-card .when { font-size: 14px; color: var(--muted) }
.visit-card strong { color: var(--plum); font-size: 17px; display: block }
.visit-card .quote { font-family: var(--display); font-size: 21px; line-height: 1.3; color: var(--plum); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line) }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--plum); font-weight: 700; font-size: 14px; flex-shrink: 0 }
.avatar.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 17px }

/* Sections */
.section { padding: 104px 0 }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px }
.section-head h2 { margin-top: 16px }
.section-head p { font-size: 18px; max-width: 460px }
.missed { background: var(--paper); border-block: 1px solid var(--line) }
.missed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 }
.missed-item { padding: 34px 34px 8px 0; border-top: 2px solid var(--plum) }
.missed-item + .missed-item { padding-left: 34px; border-left: 1px solid var(--line) }
.missed-item .said { font-family: var(--display); font-style: italic; font-size: 26px; line-height: 1.25; color: var(--plum); margin-bottom: 18px }
.missed-item p { font-size: 16px }
.missed-foot { margin-top: 48px; font-size: 14px; color: var(--muted) }

.care-list { border-top: 1px solid var(--line-2) }
.care-row { display: grid; grid-template-columns: 70px 1.1fr 1.4fr 40px; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; transition: background .2s }
.care-row:hover { background: linear-gradient(90deg, transparent, var(--copper-tint) 40%, transparent) }
.care-row .n { font-family: var(--display); font-size: 22px; color: var(--copper-ink) }
.care-row h3 { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: -.015em }
.care-row p { font-size: 16px }
.care-row .icon { color: var(--plum); justify-self: end }

.belief { background: var(--plum); color: var(--ivory); position: relative; overflow: hidden }
.belief::before { content: ''; position: absolute; top: -10%; bottom: -10%; right: 18%; width: 150px; background: var(--copper); transform: skewX(-37deg); opacity: .9 }
.belief .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px }
.belief h2 { color: var(--ivory); margin-top: 18px }
.belief .eyebrow { color: #e8b9a4 }
.belief-points { display: grid; gap: 28px; background: var(--plum); padding: 8px 0 8px 32px }
.belief-points div { border-top: 1px solid #6e4a69; padding-top: 22px }
.belief-points strong { display: block; font-size: 19px; margin-bottom: 6px; font-weight: 600 }
.belief-points p { color: #ddcdd9; font-size: 16px }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px }
.step .num { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--copper) }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 18px 0 10px }

.plans { background: var(--paper); border-block: 1px solid var(--line) }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px }
.plan { border: 1px solid var(--line-2); border-radius: 22px; padding: 32px; background: #fff; display: flex; flex-direction: column }
.plan.feature { background: var(--plum); color: var(--ivory); border-color: var(--plum) }
.plan.feature h3, .plan.feature .price { color: var(--ivory) }
.plan.feature p, .plan.feature li { color: #e2d3de }
.plan h3 { font-family: var(--display); font-weight: 400; font-size: 34px }
.plan .price { font-family: var(--display); font-size: 46px; color: var(--plum); margin: 18px 0 4px }
.plan .price small { font-family: var(--text); font-size: 15px; color: inherit; opacity: .7 }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--muted) }
.plan li .icon { width: 18px; height: 18px; color: var(--copper); margin-top: 3px }
.plan .btn { margin-top: auto }
.plans-note { margin-top: 26px; font-size: 14px }

.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 22px }
.partner { border-radius: 22px; padding: 40px; background: var(--sage) }
.partner:nth-child(2) { background: var(--blush) }
.partner h3 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 14px 0 12px }
.partner p { color: #4b4048 }
.partner .link { margin-top: 18px }

.early { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center }
.early form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px }

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px }
details { border-top: 1px solid var(--line-2); padding: 6px 0 }
details:last-child { border-bottom: 1px solid var(--line-2) }
summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; color: var(--plum) }
summary::-webkit-details-marker { display: none }
summary::after { content: '+'; font-family: var(--display); font-size: 30px; font-weight: 400 }
details[open] summary::after { content: '\2212' }
details p { padding: 0 40px 22px 0 }

.site-footer { background: var(--plum-2); color: #d9c9d5; padding: 64px 0 36px; margin-top: 0 }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap }
.footer-top .brand { width: 200px }
.footer-tag { font-family: var(--display); font-style: italic; font-size: 24px; color: var(--ivory); margin-top: 18px }
.footer-links { display: flex; gap: 8px 28px; flex-wrap: wrap; align-content: flex-start }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: #eadde6 }
.footer-links a:hover { text-decoration: underline }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #4d3149; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #bba8b6 }
.footer-bottom p { color: inherit }

/* Auth */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 37px) }
.auth-story { background: var(--plum); color: var(--ivory); padding: 44px 60px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden }
.auth-story::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 140%; background: var(--copper); transform: skewX(-37deg); transform-origin: bottom }
.auth-story > * { position: relative; z-index: 1 }
.auth-story h1 { color: var(--ivory); font-size: clamp(40px, 4.6vw, 64px); max-width: 460px }
.auth-story p { color: #e0d2dc; max-width: 400px; margin-top: 22px; font-size: 18px }
.auth-story .footer-tag { font-size: 20px }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: var(--paper) }
.auth-form { width: 100%; max-width: 420px }
.auth-form h2 { font-size: 42px; margin: 12px 0 12px }
.auth-form > p { margin-bottom: 28px }
.pw-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 14px }
.pw-row button { min-height: 44px; color: var(--plum); text-decoration: underline; text-underline-offset: 4px }
.auth-alt { text-align: center; margin-top: 24px; font-size: 15px }
.center-page { max-width: 560px; margin: 0 auto; padding: 72px 24px 96px; text-align: center }
.center-page h1 { font-size: clamp(38px, 5vw, 56px); margin: 22px 0 18px }
.center-page .seal { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: var(--sage); color: var(--plum); display: grid; place-items: center }
.center-page .actions { display: flex; justify-content: center; gap: 16px; margin-top: 30px; flex-wrap: wrap }

/* Flow */
.flow-head { display: flex; align-items: center; justify-content: space-between; height: 88px; border-bottom: 1px solid var(--line) }
.flow { max-width: 1120px; margin: 0 auto; padding: 48px 32px 96px }
.flow-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; flex-wrap: wrap }
.flow-top h1 { font-size: clamp(36px, 4.4vw, 52px) }
.progress { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted) }
.progress li { display: flex; gap: 8px; align-items: center }
.progress b { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 13px }
.progress [aria-current] { color: var(--plum); font-weight: 600 }
.progress [aria-current] b { background: var(--plum); border-color: var(--plum); color: #fff }
.progress .done b { background: var(--sage); border-color: var(--sage) }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px }
.panel h2 { font-size: 34px; margin-bottom: 10px }
.panel .lead { margin-bottom: 26px }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; font-weight: 400; margin: 0 }
.choice:has(input:checked) { border-color: var(--plum); background: #f6eef3; box-shadow: inset 0 0 0 1px var(--plum) }
.choice input { margin-top: 3px }
.choice strong { display: block; color: var(--plum) }
.choice small { color: var(--muted); font-size: 14px }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 26px }
.day, .time { border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink) }
.day { min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px }
.day strong { font-family: var(--display); font-size: 28px; font-weight: 400; line-height: 1.1 }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px }
.time { min-height: 50px; font-weight: 500 }
.day[aria-pressed=true], .time[aria-pressed=true] { background: var(--plum); border-color: var(--plum); color: #fff }
.tz { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-top: 18px }
.flow-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px }
.flow-actions .btn:only-child { margin-left: auto }
.summary { background: var(--blush); border-radius: 22px; padding: 28px; position: sticky; top: 24px }
.summary h3 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.15 }
.summary dl { margin: 18px 0 0 }
.summary dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-ink); margin-top: 18px; padding-top: 16px; border-top: 1px solid #dcc2b6 }
.summary dd { margin: 4px 0 0; font-weight: 600; color: var(--plum) }
.review { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line) }
.review span { color: var(--muted) }
.review strong { color: var(--plum); text-align: right }
.provider { display: flex; gap: 14px; align-items: center; margin: 18px 0 22px }
.provider strong { display: block; color: var(--plum) }
.provider small { color: var(--muted); font-size: 14px }

/* Patient space */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 37px); background: #fbf7f2 }
.sidebar { background: var(--paper); border-right: 1px solid var(--line); padding: 28px 18px; display: flex; flex-direction: column }
.sidebar .brand { width: 172px; margin: 0 8px 40px }
.app-nav { display: grid; gap: 4px }
.app-nav a, .app-nav button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; text-decoration: none; color: var(--muted); font-size: 15px; width: 100%; text-align: left }
.app-nav a:hover, .app-nav button:hover { background: #f0e7ec; color: var(--plum) }
.app-nav [aria-current=page] { background: var(--plum); color: var(--ivory) }
.app-nav .count { margin-left: auto; background: var(--copper); color: #fff; border-radius: 999px; font-size: 12px; min-width: 22px; height: 22px; display: grid; place-items: center }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px }
.help-card { padding: 4px 14px 18px; font-size: 14px }
.help-card strong { display: block; color: var(--plum); margin-bottom: 4px }
.patient { padding: 0 48px 64px; min-width: 0 }
.topbar { height: 84px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 36px; font-size: 14px; color: var(--muted) }
.topbar .who { display: flex; gap: 10px; align-items: center; color: var(--plum); font-weight: 600 }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap }
.intro h1 { font-size: clamp(36px, 4vw, 50px); margin-bottom: 8px }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px }
.grid-even { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px }
.card-head h2 { font-family: var(--text); font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.3 }
.next-visit { background: var(--plum); color: var(--ivory); border-radius: 20px; padding: 30px; position: relative; overflow: hidden }
.next-visit::after { content: ''; position: absolute; top: -20%; right: 9%; width: 54px; height: 140%; background: var(--copper); transform: skewX(-37deg); opacity: .85 }
.next-visit > * { position: relative; z-index: 1 }
.next-visit .eyebrow { color: #e8b9a4 }
.next-visit h2 { color: var(--ivory); font-size: 34px; margin: 14px 0 6px; max-width: 80% }
.next-visit p, .next-visit small { color: #dccbd8 }
.next-visit .provider strong { color: var(--ivory) }
.next-visit .meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; margin-bottom: 22px }
.next-visit .meta span { display: flex; gap: 8px; align-items: center }
.next-visit .actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap }
.next-visit .link { color: var(--ivory) }
.todo { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line) }
.todo .dot { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px }
.todo .dot.done { background: var(--sage); border-color: #7f9a85; color: var(--sage-ink) }
.todo .dot .icon { width: 14px; height: 14px }
.todo strong { color: var(--plum); display: block }
.todo p { font-size: 15px }
.todo button { color: var(--plum); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; font-size: 15px }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--sage); color: var(--sage-ink); font-size: 13px; font-weight: 600 }
.empty { text-align: center; padding: 48px 20px }
.empty .icon { width: 40px; height: 40px; margin: 0 auto 16px; color: var(--copper) }
.empty h2 { font-size: 30px; margin-bottom: 10px }
.empty p { max-width: 380px; margin: 0 auto 22px }
.visit-list { display: grid; gap: 14px }
.visit-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; flex-wrap: wrap }
.visit-item strong { color: var(--plum); display: block }
.thread { display: grid; gap: 14px }
.msg { padding: 20px 22px; border-radius: 4px 18px 18px 18px; background: var(--ivory); max-width: 680px }
.msg.mine { background: #f0e6ee; margin-left: auto; border-radius: 18px 4px 18px 18px }
.msg h3 { font-size: 16px; margin-bottom: 4px }
.msg .when { font-size: 13px; color: var(--muted); margin-bottom: 10px }
.msg p { color: var(--ink); white-space: pre-line }
.goal { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line) }
.goal .n { font-family: var(--display); font-size: 28px; color: var(--copper); line-height: 1 }
.goal h3 { margin-bottom: 4px }
.waiting { background: var(--plum); color: var(--ivory); border-radius: 22px; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px }
.waiting h2 { color: var(--ivory); font-size: 34px; margin: 22px 0 10px }
.waiting p { color: #dccbd8; max-width: 380px }
.waiting .avatar { width: 96px; height: 96px; font-size: 28px }
.mobile-tabs { display: none }
.note { font-size: 13px; color: var(--muted); margin-top: 28px }

dialog { border: 0; border-radius: 22px; padding: 0; width: min(520px, calc(100% - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(20, 8, 20, .5) }
dialog::backdrop { background: rgba(36, 22, 33, .55) }
#modal-content { padding: 30px }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px }
.modal-head h2 { font-size: 32px }
.close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); flex-shrink: 0; color: var(--plum) }
.modal-body > p { margin-bottom: 16px }

@media (max-width: 1080px) {
  :root { --wrap: calc(100% - 64px) }
  .site-nav { gap: 20px }
  .hero { gap: 40px }
  .belief .wrap { gap: 48px }
  .app { grid-template-columns: 212px minmax(0, 1fr) }
  .patient { padding: 0 32px 56px }
}
@media (max-width: 880px) {
  .site-nav, .nav-actions .link { display: none }
  .menu-btn { display: inline-flex }
  .hero, .section-head, .belief .wrap, .early, .faq-grid, .auth, .grid-2, .flow-grid { grid-template-columns: 1fr }
  .hero { padding-top: 16px }
  .hero-visual { aspect-ratio: 4 / 3.6 }
  .missed-grid, .steps, .plan-grid, .partners { grid-template-columns: 1fr }
  .missed-item + .missed-item { padding-left: 0; border-left: 0 }
  .missed-item { padding-right: 0; padding-bottom: 26px }
  .care-row { grid-template-columns: 44px 1fr 28px; gap: 4px 16px }
  .care-row p { grid-column: 2 }
  .care-row .icon { grid-row: 1; grid-column: 3 }
  .belief::before { right: -60px; opacity: .5 }
  .belief-points { padding-left: 0; background: transparent }
  .summary { display: none }
  .auth-story { padding: 32px 28px; min-height: 0 }
  .auth-story p, .auth-story .footer-tag { display: none }
  .auth-story h1 { margin-top: 32px; font-size: 38px }
  .app { grid-template-columns: 1fr }
  .sidebar { display: none }
  .patient { padding: 0 22px 110px }
  .mobile-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom) }
  .mobile-tabs a { flex: 1; min-height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; text-decoration: none; color: var(--muted) }
  .mobile-tabs [aria-current=page] { color: var(--plum); font-weight: 700 }
  .grid-even { grid-template-columns: 1fr }
}
@media (max-width: 560px) {
  :root { --wrap: calc(100% - 32px) }
  body { font-size: 16px }
  .site-header { height: 76px }
  .brand { width: 160px }
  .nav-actions > .btn { display: none }
  .hero .lede { font-size: 18px }
  .section { padding: 72px 0 }
  .choices { grid-template-columns: 1fr }
  .days { grid-template-columns: repeat(3, 1fr) }
  .times { grid-template-columns: 1fr 1fr }
  .panel, .card, .plan, .partner { padding: 24px }
  .flow { padding: 28px 16px 72px }
  .progress { gap: 10px; font-size: 13px }
  .visit-card .quote { font-size: 18px }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } * { transition: none !important } }
