@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Lato"; src: url("assets/fonts/lato-latin-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("assets/fonts/lato-latin-700-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url("assets/fonts/lato-latin-900-normal.woff2") format("woff2"); font-style: normal; font-weight: 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #c2b29f;
  --surface: #f7f3ed;
  --surface-2: #e7ded3;
  --text: #3e3026;
  --dim: #6c5c50;
  --border: #968575;
  --accent: #3e3026;
  --accent-dark: #291f19;
  --taupe: #968575;
  --success: #576f5c;
  --warning-bg: #eadbd3;
  --warning-text: #6d382c;
  --radius: 3px;
  font-family: "Lato", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, canvas:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: 2px; }
.app-root { min-height: 100vh; }
.shell { width: min(1160px, 100%); margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 18px max(40px, env(safe-area-inset-bottom)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.overline, .form-kicker { margin: 0 0 9px; color: var(--dim); font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: -.025em; }
h3 { font-family: "Lato", ui-sans-serif, sans-serif; }

.primary-button, .secondary-button { min-height: 48px; border-radius: 8px; border: 1px solid transparent; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; cursor: pointer; transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
.primary-button { background: var(--accent); color: #fff; }
.primary-button:hover { background: var(--accent-dark); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.secondary-button { background: transparent; border-color: var(--border); }
.secondary-button:hover { background: var(--surface-2); }
.text-button { background: none; border: 0; color: var(--accent); font-weight: 750; padding: 8px; cursor: pointer; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--border); background: var(--surface); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.back-link { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 7px; padding: 10px 0; color: var(--dim); font-weight: 750; cursor: pointer; }

.launch-panel { background: var(--text); color: var(--bg); padding: 28px 24px; display: flex; flex-direction: column; gap: 24px; border-radius: 14px 14px 4px 4px; position: relative; overflow: hidden; }
.launch-panel::after { content: ""; width: 110px; height: 110px; border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); border-radius: 50%; position: absolute; right: -35px; top: -45px; }
.launch-panel .overline { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.launch-panel h1 { font-size: clamp(30px, 7vw, 48px); line-height: 1.04; max-width: 720px; margin: 0 0 12px; }
.launch-panel p:not(.overline) { color: color-mix(in srgb, var(--bg) 74%, transparent); max-width: 610px; margin: 0; }
.launch-button { width: 100%; align-self: end; flex: none; }
.pulse { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: solid var(--border); border-width: 0 1px 1px; margin-bottom: 28px; }
.pulse div { min-height: 90px; padding: 18px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pulse div:nth-child(2n) { border-right: 0; }
.pulse div:nth-last-child(-n+2) { border-bottom: 0; }
.pulse strong { font-family: Georgia, serif; font-size: 28px; line-height: 1; }
.pulse span { color: var(--dim); font-size: 12px; margin-top: 6px; }
.content-grid { display: grid; gap: 30px; }
.records-section { min-width: 0; }
.section-heading { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 28px; }
.search-box { height: 46px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); color: var(--dim); }
.search-box input { width: 100%; height: 100%; border: 0; background: transparent; color: var(--text); outline: none; }
.record-list { border-top: 1px solid var(--border); }
.record-row { width: 100%; border: 0; border-bottom: 1px solid var(--border); background: transparent; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 4px; text-align: left; cursor: pointer; }
.record-row > svg { display: none; }
.record-row:hover { background: color-mix(in srgb, var(--surface-2) 52%, transparent); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--text); font-weight: 850; font-size: 13px; }
.record-main { min-width: 0; display: flex; flex-direction: column; }
.record-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-main small { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention-chip, .complete-chip { grid-column: 2 / -1; justify-self: start; font-size: 11px; font-weight: 800; padding: 4px 7px; border-radius: 4px; }
.attention-chip { background: var(--warning-bg); color: var(--warning-text); }
.complete-chip { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.empty-state { min-height: 260px; border: 1px dashed var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--dim); }
.empty-state h3 { margin: 14px 0 5px; color: var(--text); }
.empty-state p { margin-bottom: 18px; max-width: 380px; }
.error-state { color: var(--warning-text); }
.side-insights { display: flex; flex-direction: column; gap: 20px; }
.review-link { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; text-align: left; border: 0; background: var(--surface-2); padding: 15px; border-radius: 8px; cursor: pointer; }
.review-link span:nth-child(2) { display: flex; flex-direction: column; }
.review-link small { color: var(--dim); margin-top: 2px; }
.review-icon { width: 42px; height: 42px; background: var(--text); color: var(--bg); display: grid; place-items: center; border-radius: 50%; }
.insight-block { border-top: 1px solid var(--border); padding-top: 18px; }
.insight-block ul { list-style: none; margin: 0; padding: 0; }
.insight-block li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.insight-block li span { color: var(--dim); }
.muted-copy { color: var(--dim); }
.danger-button { min-height: 46px; border: 1px solid var(--warning-text); background: transparent; color: var(--warning-text); border-radius: 2px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.danger-button:hover { background: var(--warning-bg); }

.form-shell { min-height: 100vh; }
.form-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 44px 1fr 44px; gap: 12px; align-items: center; background: color-mix(in srgb, var(--bg) 96%, transparent); border-bottom: 1px solid var(--border); padding: max(10px, env(safe-area-inset-top)) 16px 12px; }
.form-header > div { display: flex; flex-direction: column; }
.form-header > div span { color: var(--dim); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.form-header > div b { font-size: 14px; }
.step-count { font-size: 12px; color: var(--dim); text-align: right; }
.progress-track { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--surface-2); }
.progress-track i { display: block; height: 100%; background: var(--accent); transition: width .25s ease; }
.form-page { width: min(760px, 100%); margin: 0 auto; padding: 40px 18px max(46px, env(safe-area-inset-bottom)); }
.form-page > h1 { font-size: clamp(31px, 8vw, 45px); line-height: 1.08; margin-bottom: 12px; }
.form-intro { color: var(--dim); font-size: 16px; max-width: 620px; margin-bottom: 30px; }
.form-grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field-label { font-size: 13px; font-weight: 800; }
.field-label b { color: var(--accent); }
.field input, .field textarea, .field select { width: 100%; min-height: 51px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 7px; padding: 12px 13px; }
.field textarea { resize: vertical; }
.field-hint { color: var(--dim); font-size: 12px; }
.subsection { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 26px; }
.subsection h2, .signature-section h2 { font-size: 22px; margin-bottom: 16px; }
.subsection h2 span { color: var(--dim); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 12px; font-weight: 500; margin-left: 5px; }
.choice-list, .check-grid, .ack-list { border: 0; padding: 0; margin: 0 0 25px; display: grid; gap: 10px; }
.choice, .check-tile { min-height: 58px; display: grid; grid-template-columns: 1fr 26px; align-items: center; border: 1px solid var(--border); background: var(--surface); border-radius: 7px; padding: 12px 14px; cursor: pointer; position: relative; }
.choice input, .check-tile input, .ack-row input, .media-check input { position: absolute; opacity: 0; pointer-events: none; }
.choice i, .check-tile i { width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 50%; display: grid; place-items: center; color: transparent; }
.choice.selected, .check-tile.selected { border-color: var(--text); background: color-mix(in srgb, var(--surface-2) 56%, var(--surface)); }
.choice.selected i, .check-tile.selected i { background: var(--text); border-color: var(--text); color: var(--bg); }
.check-tile span { display: flex; flex-direction: column; }
.check-tile small { color: var(--dim); }
.practitioner-lockup { margin: 24px 0 18px; padding: 17px 0; border: solid var(--text); border-width: 1px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 16px; align-items: baseline; }
.practitioner-lockup span { grid-column: 1 / -1; color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.practitioner-lockup b { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 600; }
.practitioner-lockup small { color: var(--dim); }
.notice { margin-top: 24px; padding: 16px 18px; background: var(--surface-2); border-left: 3px solid var(--text); }
.notice p { color: var(--dim); margin: 4px 0 0; }
.risk-strip { padding: 17px 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--border); margin-bottom: 18px; display: flex; flex-direction: column; gap: 5px; }
.risk-strip span { color: var(--dim); font-size: 13px; }
.ack-row { display: grid; grid-template-columns: 30px 1fr 24px; align-items: start; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--border); cursor: pointer; position: relative; }
.ack-number { font-family: Georgia, serif; color: var(--dim); font-size: 13px; }
.ack-row i { width: 22px; height: 22px; border: 1px solid var(--border); display: grid; place-items: center; color: transparent; border-radius: 4px; }
.ack-row.accepted i { background: var(--success); color: #fff; border-color: var(--success); }
.accept-all { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--accent); font-weight: 800; padding: 8px 0; cursor: pointer; }
.media-consent { padding-bottom: 6px; }
.media-check { display: grid; grid-template-columns: 25px 1fr; gap: 13px; align-items: start; border: 1px solid var(--border); background: var(--surface); padding: 17px; cursor: pointer; position: relative; }
.media-check i { width: 24px; height: 24px; border: 1px solid var(--border); display: grid; place-items: center; color: transparent; margin-top: 1px; }
.media-check span { display: flex; flex-direction: column; gap: 4px; }
.media-check b { font-size: 16px; }
.media-check small { color: var(--dim); line-height: 1.45; }
.media-check.selected { border-color: var(--text); background: color-mix(in srgb, var(--surface-2) 52%, var(--surface)); }
.media-check.selected i { background: var(--text); border-color: var(--text); color: var(--bg); }
.media-default { color: var(--dim); font-size: 12px; margin: 8px 0 0; }
.review-summary { margin: 0 0 30px; border-top: 1px solid var(--text); }
.review-summary div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.review-summary dt { color: var(--dim); }
.review-summary dd { margin: 0; font-weight: 750; text-align: right; }
.signature-section > p { color: var(--dim); }
.signature-wrap { position: relative; border: 1px solid var(--border); background: var(--surface); min-height: 300px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.signature-canvas { width: 100%; height: 300px; display: block; color: var(--text); touch-action: none; cursor: crosshair; }
.signature-line { position: absolute; left: 22px; right: 22px; bottom: 28px; border-top: 1px solid var(--border); padding-top: 5px; color: var(--dim); font-size: 11px; pointer-events: none; }
.clear-signature { position: absolute; top: 8px; right: 8px; }
.legal-note { color: var(--dim); font-size: 12px; line-height: 1.55; margin-top: 16px; }
.form-error { color: var(--warning-text); background: var(--warning-bg); padding: 12px 14px; border-radius: 6px; margin-top: 20px; font-weight: 700; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); }
.form-actions .primary-button { margin-left: auto; }

.client-welcome { min-height: 100vh; display: grid; place-items: center; padding: max(48px, env(safe-area-inset-top)) 20px max(42px, env(safe-area-inset-bottom)); background: #c2b29f; position: relative; overflow: hidden; isolation: isolate; }
.client-welcome::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(247,243,237,.28), transparent 42%, rgba(62,48,38,.05)); pointer-events: none; }
.pattern-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; object-fit: cover; opacity: .18; mix-blend-mode: multiply; filter: contrast(.8); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 54%, rgba(0,0,0,.35) 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 54%, rgba(0,0,0,.35) 82%, transparent 100%); pointer-events: none; }
.client-welcome-inner { width: min(620px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; padding: clamp(30px, 6vw, 52px) clamp(20px, 5vw, 42px); background: color-mix(in srgb, #f7f3ed 88%, transparent); border: 1px solid rgba(62,48,38,.18); box-shadow: 0 20px 60px rgba(62,48,38,.1); position: relative; }
.client-welcome .overline { color: var(--accent-dark); margin-bottom: 13px; }
.client-welcome h1 { max-width: 570px; font-size: clamp(34px, 8.5vw, 52px); line-height: 1.05; margin-bottom: 18px; }
.client-welcome p:not(.overline) { color: var(--dim); max-width: 520px; font-size: 17px; line-height: 1.55; }
.client-welcome .primary-button { margin: 22px 0 16px; min-width: 220px; }
.client-welcome small { color: var(--dim); max-width: 390px; line-height: 1.45; }

.success-screen { width: min(560px, 100%); min-height: 100vh; margin: 0 auto; padding: max(72px, env(safe-area-inset-top)) 22px max(50px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.success-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; margin-bottom: 24px; }
.success-screen h1 { font-size: 42px; margin-bottom: 10px; }
.success-screen > p:not(.overline) { color: var(--dim); max-width: 430px; }
.receipt { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; text-align: left; border: solid var(--border); border-width: 1px 0; padding: 18px 0; margin: 24px 0 28px; }
.receipt span { color: var(--dim); }
.receipt b { text-align: right; }

.review-page, .detail-page { padding-top: max(20px, env(safe-area-inset-top)); }
.review-hero { max-width: 880px; padding: 36px 0 40px; border-bottom: 1px solid var(--text); }
.review-hero h1 { font-size: clamp(33px, 7vw, 54px); line-height: 1.05; margin-bottom: 18px; }
.review-hero > p:last-child { color: var(--dim); max-width: 720px; }
.review-columns { display: grid; gap: 36px; padding: 35px 0; }
.review-columns h2 { font-size: 25px; }
.strength-list { list-style: none; margin: 0; padding: 0; }
.strength-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.strength-list li span { width: 23px; height: 23px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; flex: none; }
.upgrade-list article { display: grid; grid-template-columns: 34px 1fr; gap: 10px; border-top: 1px solid var(--border); padding: 16px 0; }
.upgrade-list article > span { font-family: Georgia, serif; color: var(--accent); }
.upgrade-list h3 { margin: 0 0 5px; }
.upgrade-list p { margin: 0; color: var(--dim); }
.counsel-check { background: var(--text); color: var(--bg); padding: 25px; display: grid; gap: 20px; border-radius: 4px 14px 14px 4px; }
.counsel-check .overline { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.counsel-check h2 { margin: 0; font-size: 28px; }
.counsel-check ol { margin: 0; padding-left: 22px; }
.counsel-check li { padding: 5px 0; color: color-mix(in srgb, var(--bg) 83%, transparent); }
.reference-section { margin-top: 28px; padding: 26px 0 8px; display: grid; gap: 16px; border-top: 1px solid var(--border); }
.reference-section h2 { font-size: 27px; margin-bottom: 0; }
.reference-section > p { color: var(--dim); max-width: 720px; margin: 0; }
.reference-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.reference-links a { color: var(--accent-dark); font-weight: 800; text-underline-offset: 3px; }

.detail-head { padding: 34px 0 26px; border-bottom: 1px solid var(--text); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.detail-head h1 { font-size: clamp(34px, 8vw, 50px); margin-bottom: 7px; }
.detail-head p:last-child { color: var(--dim); margin: 0; }
.signed-seal { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 850; }
.detail-layout { display: grid; gap: 30px; padding-top: 28px; }
.detail-section { padding: 8px 0 28px; border-bottom: 1px solid var(--border); }
.detail-section h2 { font-size: 24px; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; }
.detail-grid div { min-width: 0; }
.detail-grid dt { color: var(--dim); font-size: 12px; margin-bottom: 2px; }
.detail-grid dd { margin: 0; overflow-wrap: anywhere; }
.top-gap { margin-top: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span { background: var(--warning-bg); color: var(--warning-text); padding: 6px 9px; border-radius: 4px; font-size: 12px; font-weight: 750; }
.accepted-list { margin: 0; padding: 0; list-style: none; }
.accepted-list li { display: grid; grid-template-columns: 27px 1fr; gap: 10px; padding: 10px 0; color: var(--dim); }
.accepted-list li span { color: var(--success); font-weight: 800; }
.signature-card { background: var(--surface-2); padding: 20px; align-self: start; }
.signature-view { width: 100%; aspect-ratio: 600 / 190; border-bottom: 1px solid var(--border); color: var(--text); margin-bottom: 18px; }
.signature-card dl { margin: 0; }
.signature-card dl div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; }
.signature-card dt { color: var(--dim); }
.signature-card dd { margin: 0; text-align: right; font-weight: 750; }
.signature-card > p:last-child { color: var(--dim); font-size: 12px; margin: 16px 0 0; }
.pdf-download { width: 100%; min-height: 46px; margin-top: 18px; border: 1px solid var(--text); background: var(--text); color: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.pdf-download:hover { background: var(--taupe); border-color: var(--taupe); }
.pdf-download:disabled { opacity: .55; cursor: wait; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

@media (min-width: 640px) {
  .shell { padding-left: 28px; padding-right: 28px; }
  .launch-panel { flex-direction: row; align-items: end; justify-content: space-between; padding: 36px; }
  .launch-button { width: auto; min-width: 180px; }
  .pulse { grid-template-columns: repeat(4, 1fr); }
  .pulse div, .pulse div:nth-child(2n) { border-right: 1px solid var(--border); border-bottom: 0; }
  .pulse div:last-child { border-right: 0; }
  .section-heading { flex-direction: row; align-items: end; justify-content: space-between; }
  .search-box { width: 285px; }
  .record-row { grid-template-columns: 42px minmax(0, 1fr) auto 22px; padding: 15px 8px; }
  .record-row > svg { display: block; color: var(--dim); }
  .attention-chip, .complete-chip { grid-column: auto; justify-self: end; }
  .form-grid { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .form-grid .field:nth-child(5) { grid-column: 1 / -1; }
  .stacked-fields { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .review-columns { grid-template-columns: .8fr 1.2fr; gap: 70px; }
  .counsel-check { grid-template-columns: 1fr 1fr; padding: 34px; }
  .detail-head { flex-direction: row; justify-content: space-between; align-items: center; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 920px) {
  .dashboard { padding-top: 42px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; }
  .review-hero { padding-top: 54px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 58px; }
  .signature-card { position: sticky; top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* NIL ASH ACADEMY — brand-book application */
body {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(247,243,237,.18), rgba(247,243,237,.18)), url("assets/na-pattern.png");
  background-size: auto, 520px auto;
  background-attachment: fixed;
}
.app-root { background: rgba(194,178,159,.88); min-height: 100vh; }
.overline, .form-kicker { color: var(--taupe); font-size: 10px; letter-spacing: .19em; }
.primary-button, .secondary-button { border-radius: 2px; min-height: 52px; letter-spacing: .045em; text-transform: uppercase; font-size: 12px; }
.primary-button { box-shadow: none; }
.primary-button:hover { background: var(--taupe); }
.secondary-button { background: rgba(247,243,237,.25); }
.text-button { color: var(--text); text-underline-offset: 4px; }
.icon-button { border-radius: 2px; background: transparent; }

.studio-toolbar { min-height: 84px; display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; margin-bottom: 18px; border-bottom: 1px solid var(--text); }
.studio-toolbar img { width: 50px; height: 58px; object-fit: contain; }
.studio-toolbar > span { font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; font-weight: 600; }
.lock-button { min-height: 40px; border: 0; border-bottom: 1px solid var(--text); background: transparent; display: inline-flex; align-items: center; gap: 7px; padding: 0 2px; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

.launch-panel { background-color: var(--text); background-image: linear-gradient(rgba(62,48,38,.72), rgba(62,48,38,.9)), url("assets/na-pattern.png"); background-size: auto, 470px auto; color: var(--surface); border-radius: 2px; padding: 30px 24px; }
.launch-panel::after { width: 155px; height: 155px; border-color: rgba(247,243,237,.16); }
.launch-panel .overline { color: var(--bg); }
.launch-panel h1 { font-size: clamp(38px, 10vw, 60px); line-height: .94; max-width: 760px; }
.launch-panel p:not(.overline) { color: rgba(247,243,237,.72); }
.launch-panel .primary-button { background: var(--surface); color: var(--text); }
.launch-panel .primary-button:hover { background: var(--bg); }
.pulse { background: rgba(247,243,237,.92); border-color: var(--text); }
.pulse div { min-height: 96px; border-color: rgba(62,48,38,.23); }
.pulse strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; }
.records-section { background: rgba(247,243,237,.88); padding: 22px 18px; }
.section-heading h2 { font-size: 34px; }
.search-box { border-color: var(--text); }
.record-row { border-color: rgba(62,48,38,.23); }
.avatar { border-radius: 2px; background: var(--bg); font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; }
.review-link { border-radius: 2px; background: var(--text); color: var(--surface); }
.review-link small { color: rgba(247,243,237,.64); }
.review-icon { border: 1px solid var(--surface); border-radius: 50%; }
.insight-block { background: rgba(247,243,237,.5); padding: 18px; border-top-color: var(--text); }

.form-shell { background: rgba(194,178,159,.82); background-image: linear-gradient(rgba(194,178,159,.92), rgba(194,178,159,.92)), url("assets/na-pattern.png"); background-size: auto, 520px auto; }
.form-header { background: rgba(247,243,237,.96); border-bottom-color: var(--text); box-shadow: 0 6px 22px rgba(62,48,38,.06); }
.progress-track { background: #ded2c6; }
.progress-track i { background: var(--text); }
.form-page { position: relative; background: rgba(247,243,237,.95); padding: 34px 22px max(48px, env(safe-area-inset-bottom)); border-left: 1px solid rgba(62,48,38,.14); border-right: 1px solid rgba(62,48,38,.14); }
.form-logo { display: block; width: 58px; height: 64px; object-fit: contain; margin: 0 auto 24px; opacity: .86; }
.form-page > h1 { font-size: clamp(39px, 11vw, 58px); line-height: .94; }
.field input, .field textarea, .field select { border-radius: 1px; background: #fffdfa; border-color: rgba(62,48,38,.42); }
.choice, .check-tile { border-radius: 1px; background: #fffdfa; min-height: 62px; }
.choice.selected, .check-tile.selected { background: var(--bg); border-color: var(--text); }
.choice.selected i, .check-tile.selected i { color: var(--surface); }
.practitioner-lockup b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 29px; }
.notice { background: var(--bg); border-left: 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--text); }
.ack-row { padding: 18px 4px; }
.media-check { background: #fffdfa; }
.signature-wrap { background: #fffdfa; }

.client-welcome { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; background: var(--bg); padding: max(34px, env(safe-area-inset-top)) 18px max(26px, env(safe-area-inset-bottom)); }
.client-welcome::after { background: linear-gradient(180deg, rgba(247,243,237,.1), transparent 48%, rgba(62,48,38,.1)); }
.pattern-field { opacity: .09; filter: grayscale(1) sepia(.2) contrast(.8); mix-blend-mode: multiply; mask-image: none; -webkit-mask-image: none; }
.client-welcome-inner { width: min(560px, 100%); min-height: min(690px, calc(100svh - 110px)); justify-content: center; padding: 34px 24px; background: rgba(247,243,237,.94); border: 1px solid rgba(62,48,38,.36); box-shadow: 0 24px 70px rgba(62,48,38,.16); }
.academy-logo { width: clamp(112px, 32vw, 155px); max-height: 170px; object-fit: contain; margin-bottom: 22px; }
.welcome-rule { width: 74px; height: 1px; background: var(--text); margin-bottom: 27px; }
.client-welcome .overline { color: var(--taupe); }
.client-welcome h1 { font-size: clamp(41px, 12vw, 68px); line-height: .88; margin: 2px 0 20px; max-width: 500px; }
.client-welcome p:not(.overline) { font-size: 15px; line-height: 1.62; max-width: 450px; }
.client-welcome .welcome-cta { width: 100%; margin: 21px 0 17px; }
.client-welcome small { font-size: 11px; letter-spacing: .02em; }
.owner-entry { margin-top: 14px; min-height: 44px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--text); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; opacity: .78; }
.owner-entry.setup-ready { border: 1px solid var(--text); background: rgba(247,243,237,.72); opacity: 1; padding-inline: 20px; }

.pin-screen { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: max(30px, env(safe-area-inset-top)) 18px max(30px, env(safe-area-inset-bottom)); position: relative; overflow: hidden; }
.pin-logo { width: 92px; height: 102px; object-fit: contain; z-index: 1; }
.pin-panel { width: min(430px, 100%); background: rgba(247,243,237,.96); border: 1px solid var(--text); padding: 34px 26px 24px; text-align: center; display: flex; flex-direction: column; align-items: stretch; z-index: 1; }
.pin-icon { width: 48px; height: 48px; border: 1px solid var(--text); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.pin-panel h2 { font-size: 37px; line-height: .98; margin-bottom: 12px; }
.pin-panel > p:not(.overline) { color: var(--dim); font-size: 14px; line-height: 1.55; }
.pin-field { margin: 10px 0 16px; }
.pin-field input { width: 100%; height: 66px; text-align: center; background: #fffdfa; border: solid var(--text); border-width: 1px 0; color: var(--text); font-family: "Lato", sans-serif; font-size: 28px; letter-spacing: .5em; padding-left: .5em; }
.pin-error { color: var(--warning-text); background: var(--warning-bg); padding: 10px; font-size: 13px; margin-bottom: 12px; }

.success-screen { background: rgba(247,243,237,.92); border-left: 1px solid rgba(62,48,38,.16); border-right: 1px solid rgba(62,48,38,.16); }
.success-mark { border-radius: 50%; background: var(--text); }
.success-screen h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 56px; line-height: .9; }
.review-page, .detail-page { background: rgba(247,243,237,.94); }
.page-brand { display: block; width: 62px; height: 70px; object-fit: contain; margin: 0 auto 14px; }
.review-hero h1 { font-size: clamp(42px, 9vw, 68px); line-height: .92; }
.counsel-check { border-radius: 1px; background: var(--text); }
.signature-card { background: var(--bg); border-top: 4px solid var(--text); }
.signed-seal { color: var(--text); }

@media (min-width: 640px) {
  .form-page { padding-left: 46px; padding-right: 46px; }
  .client-welcome { padding-left: 28px; padding-right: 28px; }
  .client-welcome-inner { min-height: 700px; padding: 52px 48px; }
  .records-section { padding: 28px; }
}

@media (min-width: 920px) {
  .studio-toolbar { min-height: 96px; }
  .studio-toolbar img { width: 62px; height: 70px; }
  .dashboard { padding-top: 22px; }
  .form-page { margin-top: 26px; margin-bottom: 38px; }
}
