:root {
  --ink: #12334a;
  --ink-soft: #4c6474;
  --canvas: #f4f8fa;
  --surface: #ffffff;
  --surface-soft: #e9f3f7;
  --line: #cbdbe2;
  --teal: #167b7f;
  --teal-deep: #0f6267;
  --danger: #b7334b;
  --warning: #9b6b13;
  --success: #177348;
  --radius: 14px;
  --shadow: 0 14px 34px rgb(18 51 74 / 8%);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
.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; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  line-height: 1.5;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.preview-notice {
  min-height: 38px;
  padding: 9px 16px;
  color: #66480b;
  background: #fff7e5;
  border-bottom: 1px solid #ebd49d;
  font-size: .84rem;
  text-align: center;
}

.app-shell { min-height: 100vh; }
.landing, .packet-layout { width: min(100%, 1080px); margin: 0 auto; }

.landing {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding: 28px 18px;
}

.landing-card, .content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.landing-card { max-width: 620px; padding: clamp(26px, 7vw, 52px); }
.brand-line { width: 68px; height: 6px; margin-bottom: 24px; background: var(--teal); border-radius: 999px; }
.eyebrow { margin: 0 0 8px; color: var(--teal-deep); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); line-height: 1.16; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { margin: 0 0 16px; font-size: clamp(2rem, 7vw, 3.35rem); }
h2 { margin: 0; font-size: clamp(1.55rem, 4vw, 2.2rem); }
h3 { margin: 0 0 8px; font-size: 1rem; }
.landing-card > p:not(.eyebrow) { max-width: 52ch; color: var(--ink-soft); }
.fact-list { display: grid; gap: 12px; margin: 28px 0; }
.fact { padding: 13px 14px; border-left: 3px solid var(--teal); background: var(--surface-soft); color: var(--ink-soft); }
.fact strong { color: var(--ink); }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 750;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgb(22 123 127 / 30%); outline-offset: 2px; }
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover { background: var(--teal-deep); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button-quiet { min-height: 36px; padding: 7px 9px; color: var(--teal-deep); background: transparent; border: 0; text-decoration: underline; }
.button[disabled] { cursor: not-allowed; opacity: .48; transform: none; }

.packet-header { padding: 19px max(18px, calc((100vw - 1080px) / 2)); color: #fff; background: var(--ink); }
.packet-header__row { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.packet-header__actions { display: flex; gap: 12px; align-items: center; }
.packet-header__actions .button { min-height: 38px; padding: 7px 14px; }
.packet-header h1 { margin: 0; color: #fff; font-size: clamp(1.45rem, 4vw, 2rem); }
.packet-header p { margin: 2px 0 0; color: #cfe1e9; font-size: .88rem; }
.save-state { flex: none; color: #d7f3ed; font-size: .85rem; font-weight: 700; }

.packet-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 25px; padding: 25px 18px 42px; }
.section-nav { align-self: start; position: sticky; top: 18px; padding: 11px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.section-nav button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px; color: var(--ink-soft); text-align: left; background: transparent; border: 0; border-radius: 8px; }
.section-nav button:hover, .section-nav button[aria-current="step"] { color: var(--ink); background: var(--surface-soft); }
.status-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #abb9bf; }
.status-dot.complete { background: var(--success); }.status-dot.incomplete { background: var(--warning); }.status-dot.current { background: var(--teal); }

.content-card { padding: clamp(22px, 4vw, 38px); }
.section-intro { padding-bottom: 21px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-intro > p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.form-stack { display: grid; gap: 20px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, legend { font-weight: 750; }
.hint { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.required { color: var(--danger); }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
textarea { min-height: 96px; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
.error { margin: 4px 0 0; color: var(--danger); font-size: .84rem; font-weight: 650; }

fieldset { min-width: 0; padding: 0; border: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { display: flex; min-height: 52px; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; }
.choice:has(input:checked) { border-color: var(--teal); background: #edf8f7; }
.choice input { width: 19px; min-height: 19px; margin: 0; accent-color: var(--teal); }

.subsection { padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfe; }
.subsection + .subsection { margin-top: 4px; }
.conditional { margin-top: 12px; padding: 15px; border-left: 3px solid var(--teal); background: var(--surface-soft); }
.conditional h4 { margin: 0 0 14px; color: var(--ink); font-size: .92rem; }
.condition-row { display: grid; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.condition-row:last-child { border-bottom: 0; }
.condition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.condition-grid .condition-row { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.condition-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.equipment-grid, .allergy-grid, .orthopedic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.equipment-question { margin: 0; }
.check-stack { display: grid; gap: 8px; }
.check-choice { display: flex; align-items: center; gap: 9px; min-height: 34px; color: var(--ink); font-weight: 650; }
.check-choice input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--teal); }
.condition-check { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.condition-check .field { padding-top: 4px; }
.medication-list { display: grid; gap: 12px; }
.medication-row { margin: 0; }
.medication-row .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.add-another { margin-top: 14px; }
.orthopedic-group { margin: 0; }
.orthopedic-choice { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.orthopedic-choice:last-child { border-bottom: 0; }
.initials-card { display: grid; gap: 12px; padding: 19px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfe; }
.initials-card h3 { margin: 0; }
.initials-card > label { display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 650; }
.initials-card > label:last-child { border-bottom: 0; }
.initials-card input { min-height: 42px; text-align: center; text-transform: uppercase; }
.clinical-note { margin: 14px 0 0; padding: 12px 14px; color: var(--ink); background: #fff6df; border-left: 3px solid var(--gold); border-radius: 4px; font-weight: 700; }
.upload-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.upload-row:last-child { border-bottom: 0; }
.file-name { margin: 0; color: var(--ink-soft); font-size: .86rem; overflow-wrap: anywhere; }

.ack-card { padding: 18px; border: 1px solid var(--line); border-radius: 11px; }
.ack-card + .ack-card { margin-top: 12px; }
.ack-card__top { display: flex; gap: 15px; align-items: start; justify-content: space-between; }
.ack-card__state { color: var(--success); font-size: .84rem; font-weight: 750; }
.ack-card .typed-name { margin-top: 14px; }
.policy-confirm { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--ink); font-weight: 650; }
.policy-confirm input { width: 19px; min-height: 19px; margin-top: 2px; accent-color: var(--teal); }
.source-pages { margin-top: 0; color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.source-options { padding: 14px 16px; margin-top: 20px; background: var(--surface-soft); border-left: 3px solid var(--gold); }
.save-copy { padding: 24px 26px; color: var(--ink-soft); }
.save-copy > p:first-child { margin-top: 0; }
.save-copy form { display: grid; gap: 15px; margin-top: 22px; }
.save-copy label { display: grid; gap: 6px; color: var(--ink); font-weight: 750; }
.save-copy input { min-height: 48px; letter-spacing: .2em; text-align: center; }
.save-copy .hint { margin-top: -8px; }
.save-dialog footer { display: flex; gap: 12px; justify-content: flex-end; padding: 15px 26px; border-top: 1px solid var(--line); }
.save-confirmation { display: grid; gap: 10px; }
.save-confirmation h3 { margin: 0; }

.signature-wrap { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfe; }
canvas { display: block; width: 100%; height: 190px; touch-action: none; background: #fff; border: 1px dashed #8eabb7; border-radius: 8px; }
.signature-controls { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 10px; }
.review-list { display: grid; gap: 10px; padding: 0; margin: 20px 0; list-style: none; }
.review-list li { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.review-list .ok { color: var(--success); }.review-list .needs { color: var(--danger); }
.step-actions { display: flex; gap: 12px; justify-content: space-between; padding-top: 26px; margin-top: 28px; border-top: 1px solid var(--line); }
.step-actions .right { margin-left: auto; }
.hidden { display: none !important; }

.completion { text-align: center; }
.completion .check { display: grid; width: 62px; height: 62px; place-items: center; margin: 0 auto 18px; color: #fff; background: var(--success); border-radius: 50%; font-size: 2rem; }
.completion p { color: var(--ink-soft); }
.source-dialog { width: min(92vw, 680px); padding: 0; color: var(--ink); border: 0; border-radius: var(--radius); box-shadow: 0 24px 70px rgb(0 0 0 / 28%); }
.source-dialog::backdrop { background: rgb(4 27 42 / 50%); }
.source-dialog article { margin: 0; }
.source-dialog header { display: flex; align-items: start; justify-content: space-between; padding: 25px 26px 16px; border-bottom: 1px solid var(--line); }
.source-copy { max-height: min(46vh, 420px); padding: 22px 26px; overflow: auto; color: var(--ink-soft); }
.source-dialog footer { display: flex; gap: 15px; align-items: center; justify-content: space-between; padding: 15px 26px; border-top: 1px solid var(--line); }
.sickle-dialog { width: min(96vw, 920px); }
.sickle-pdf { height: min(64vh, 720px); padding: 0; background: var(--surface-soft); }
.sickle-pdf object { display: block; width: 100%; height: 100%; border: 0; }
.quiet { margin: 0; color: var(--ink-soft); font-size: .85rem; }
.policy-name-field { display: grid; flex: 1 1 300px; gap: 5px; }
.policy-name-field label { color: var(--ink); font-size: .85rem; font-weight: 750; }
.policy-name-field input { min-height: 40px; }
.policy-name-field .error { margin: 0; }
.icon-button { width: 36px; height: 36px; color: var(--ink); background: transparent; border: 0; border-radius: 50%; font-size: 1.7rem; line-height: 1; }
.icon-button:hover { background: var(--surface-soft); }

@media (max-width: 760px) {
  .packet-layout { display: block; padding: 0 0 34px; }
  .section-nav { position: static; display: flex; gap: 4px; margin: 0; padding: 8px 12px; overflow-x: auto; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .section-nav button { width: auto; flex: none; padding: 8px; font-size: .84rem; white-space: nowrap; }
  .section-nav button span:last-child { display: none; }
  .content-card { margin: 18px 14px 0; }
  .field-grid, .choice-grid, .condition-grid, .condition-grid--wide, .equipment-grid, .allergy-grid, .orthopedic-grid { grid-template-columns: 1fr; }
  .initials-card > label { grid-template-columns: 1fr; }
  .packet-header__row { align-items: start; }
  .save-state { max-width: 92px; text-align: right; }
  .source-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; border-radius: 0; }
  .source-dialog article { display: grid; height: 100%; grid-template-rows: auto minmax(0, 1fr) auto; }
  .source-copy { max-height: none; }
  .sickle-pdf { height: auto; min-height: 0; overflow: auto; }
  .sickle-pdf object { height: 100%; min-height: 0; }
  .save-copy { overflow: auto; }
}

@media (max-width: 460px) {
  .landing-card { padding: 26px 22px; }
  .upload-row, .source-dialog footer { grid-template-columns: 1fr; display: grid; align-items: stretch; }
  .step-actions { flex-wrap: wrap; }.step-actions .right { margin-left: 0; }
}

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

/* Sports-medicine visual layer: intentionally brand-neutral. */
:root {
  --ink: #082e4a;
  --ink-soft: #536f80;
  --canvas: #edf5f8;
  --surface-soft: #e8f4f5;
  --line: #c7dce5;
  --teal: #008c91;
  --teal-deep: #006d77;
  --gold: #e4a838;
  --shadow: 0 24px 60px rgb(8 46 74 / 13%);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 15%, rgb(109 207 215 / 29%), transparent 24rem),
    radial-gradient(circle at 95% 90%, rgb(0 140 145 / 14%), transparent 30rem),
    linear-gradient(135deg, #eaf4f7 0%, #f7fbfc 43%, #e3f0f3 100%);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  display: block;
  content: "";
  pointer-events: none;
}

body::before {
  top: 11vh;
  right: -16vw;
  width: 62vw;
  height: 45vh;
  border: 1px solid rgb(16 122 144 / 12%);
  border-radius: 50% 0 0 50%;
  box-shadow: -52px 39px 0 -1px rgb(36 166 182 / 9%), -103px 82px 0 -2px rgb(9 61 94 / 6%);
  transform: rotate(-12deg);
}

body::after {
  bottom: -28vh;
  left: -18vw;
  width: 68vw;
  height: 62vh;
  border: 1px solid rgb(0 122 130 / 12%);
  border-radius: 50%;
  transform: rotate(18deg);
}

.preview-notice {
  position: relative;
  min-height: 34px;
  padding: 8px 16px;
  color: #cfe9ed;
  background: #06243a;
  border-bottom: 1px solid rgb(211 247 247 / 20%);
  font-size: .76rem;
  letter-spacing: .015em;
}

.landing { position: relative; isolation: isolate; }
.landing::before {
  position: absolute;
  z-index: -1;
  top: 13%;
  right: 2%;
  width: min(44vw, 460px);
  height: min(44vw, 460px);
  content: "";
  background:
    radial-gradient(circle at 30% 32%, rgb(255 255 255 / 88%) 0 3%, transparent 3.5%),
    radial-gradient(circle at 52% 50%, rgb(255 255 255 / 78%) 0 2%, transparent 2.5%),
    radial-gradient(circle at 68% 65%, rgb(255 255 255 / 74%) 0 4%, transparent 4.5%),
    linear-gradient(145deg, #0c6585, #019b9c 68%, #cae6dd);
  border: 12px solid rgb(255 255 255 / 56%);
  border-radius: 45% 55% 58% 42% / 49% 38% 62% 51%;
  box-shadow: 0 35px 80px rgb(8 62 87 / 22%);
  opacity: .96;
  transform: rotate(-14deg);
}

.landing-card {
  position: relative;
  overflow: hidden;
  max-width: 660px;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 22px;
  box-shadow: 0 26px 80px rgb(5 49 75 / 18%);
}

.landing-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 7px;
  content: "";
  background: linear-gradient(90deg, var(--gold), #f8d477);
  border-radius: 0 0 0 12px;
}

.brand-line {
  width: 56px;
  height: 8px;
  margin-bottom: 26px;
  background: linear-gradient(90deg, var(--teal), #43bcc0 67%, var(--gold) 68%);
  border-radius: 999px;
}

h1, h2 {
  letter-spacing: -.035em;
  text-wrap: balance;
}

.landing-card > p:not(.eyebrow) { font-size: 1.05rem; line-height: 1.7; }
.landing-card a { color: var(--ink); font-weight: 700; text-decoration-color: var(--teal); text-underline-offset: 3px; }
.fact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact {
  min-height: 92px;
  padding: 17px;
  background: linear-gradient(135deg, #f5fbfc, #edf6f8);
  border: 1px solid #d7e8ed;
  border-left: 0;
  border-radius: 10px;
  box-shadow: inset 3px 0 0 var(--teal);
}
.button-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #007c85, #008f91 72%, #0aa5a2);
  box-shadow: 0 8px 17px rgb(0 105 113 / 20%);
}
.button-primary::after {
  position: absolute;
  top: -80%;
  left: -42%;
  width: 36%;
  height: 270%;
  content: "";
  background: rgb(255 255 255 / 25%);
  transform: rotate(22deg);
  transition: left .35s ease;
}
.button-primary:hover::after { left: 115%; }
.button-primary > * { position: relative; z-index: 1; }

.packet-header {
  position: relative;
  overflow: hidden;
  padding-top: 24px;
  padding-bottom: 24px;
  background: linear-gradient(115deg, #062b47 0%, #093b5b 51%, #006e76 120%);
  box-shadow: 0 10px 26px rgb(5 39 60 / 17%);
}
.packet-header::before,
.packet-header::after {
  position: absolute;
  display: block;
  content: "";
  pointer-events: none;
  border: 1px solid rgb(195 246 241 / 25%);
  border-radius: 50%;
}
.packet-header::before { top: -250px; right: -10vw; width: 510px; height: 400px; transform: rotate(-25deg); }
.packet-header::after { top: -210px; right: calc(-10vw + 42px); width: 510px; height: 400px; transform: rotate(-25deg); }
.packet-header__row { position: relative; z-index: 1; }
.packet-header h1 { text-shadow: 0 1px 1px rgb(0 0 0 / 12%); }
.packet-header p { color: #bce9e9; }
.save-state { padding: 7px 10px; color: #d9ffff; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 14%); border-radius: 999px; }

.packet-layout { gap: 30px; }
.section-nav { padding: 14px 11px; border: 1px solid rgb(255 255 255 / 84%); border-radius: 16px; box-shadow: 0 12px 34px rgb(6 56 83 / 8%); }
.section-nav::before { display: block; padding: 5px 9px 10px; color: var(--ink-soft); content: "YOUR PACKET"; font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.section-nav button { min-height: 42px; border-left: 2px solid transparent; }
.section-nav button[aria-current="step"] { border-left-color: var(--gold); box-shadow: inset 0 0 0 1px rgb(0 130 135 / 7%); }
.status-dot { box-shadow: 0 0 0 4px #f1f6f7; }.status-dot.current { box-shadow: 0 0 0 4px #dbf4f2; }

.content-card { border: 1px solid rgb(255 255 255 / 84%); border-radius: 20px; box-shadow: 0 20px 50px rgb(8 62 87 / 10%); }
.section-intro { position: relative; }
.section-intro::after { position: absolute; bottom: -1px; left: 0; width: 96px; height: 3px; content: ""; background: linear-gradient(90deg, var(--teal), #66c3c6, var(--gold)); }
.eyebrow { color: #007d87; letter-spacing: .1em; }
.subsection { border-color: #d7e6eb; border-radius: 13px; background: linear-gradient(135deg, #fff, #f8fcfd); box-shadow: 0 4px 14px rgb(8 62 87 / 3%); }
.subsection h3 { padding-bottom: 10px; border-bottom: 1px solid #e1edf0; }
input, select, textarea { background: #fcfeff; border-color: #c6dae3; box-shadow: inset 0 1px 1px rgb(8 62 87 / 2%); }
input:hover, select:hover, textarea:hover { border-color: #87b4c2; }
.choice { border-color: #c4dce4; background: #fff; box-shadow: 0 2px 6px rgb(6 56 83 / 2%); }.choice:has(input:checked) { box-shadow: inset 0 0 0 1px var(--teal), 0 5px 13px rgb(0 115 120 / 8%); }
.conditional { border-left-width: 4px; border-radius: 0 11px 11px 0; background: linear-gradient(90deg, #e2f5f4, #f7fbfc); }
.step-actions { position: sticky; bottom: 0; padding: 18px 0 0; background: linear-gradient(180deg, rgb(255 255 255 / 0%), #fff 26%); }
.ack-card { position: relative; overflow: hidden; border-color: #d0e1e7; box-shadow: 0 5px 16px rgb(8 62 87 / 4%); }.ack-card::before { position: absolute; top: 0; left: 0; width: 4px; height: 100%; content: ""; background: linear-gradient(var(--teal), #69c8c5); }
.signature-wrap { border-color: #c5dce4; background: linear-gradient(135deg, #f2fbfb, #fcfefe); }.signature-wrap canvas { background-image: linear-gradient(to bottom, transparent 87%, rgb(139 181 192 / 22%) 88%, transparent 89%); border-color: #8dbac6; }

@media (max-width: 760px) {
  .landing::before { top: auto; right: -22vw; bottom: 5%; width: 78vw; height: 78vw; opacity: .3; }
  .landing-card { border-radius: 18px; }
  .fact-list { grid-template-columns: 1fr; }
  .packet-header { padding-top: 20px; padding-bottom: 20px; }
  .packet-header__row { gap: 10px; }
  .section-nav { background: #f9fcfd; box-shadow: inset 0 -1px 0 rgb(12 82 103 / 5%); }
  .section-nav::before { display: none; }
  .section-nav button[aria-current="step"] { border-left-color: transparent; border-bottom: 2px solid var(--gold); }
  .content-card { border-radius: 17px; }
}

/* Corrected visual direction: white, clinical blue, image-led sports medicine. */
:root {
  --ink: #11385f;
  --ink-soft: #52677c;
  --canvas: #f6f7f8;
  --surface-soft: #f2f6f9;
  --line: #d6dce2;
  --teal: #174f86;
  --teal-deep: #0b3765;
  --gold: #f4bd21;
  --shadow: 0 12px 28px rgb(17 56 95 / 7%);
  --serif: var(--sans);
}

body { background: #f6f7f8; }
body::before, body::after, .landing::before { display: none; }

.preview-notice {
  color: #fff;
  background: #11385f;
  border-bottom-color: #11385f;
  font-size: .75rem;
  font-weight: 500;
}

h1, h2 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -.025em;
}

.landing { width: min(100%, 1240px); padding: 0 22px; }
.landing-card {
  display: grid;
  min-height: 580px;
  align-content: center;
  max-width: 100%;
  padding: 76px 54% 76px 8%;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.landing-card::before {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: 42%;
  height: 100%;
  content: "";
  background:
    url("./assets/sports-medicine-hero-v1.png") center center / cover no-repeat;
}
.landing-card::after {
  top: auto;
  right: 42%;
  bottom: 0;
  width: 36%;
  height: 5px;
  background: var(--gold);
  border-radius: 0;
}
.brand-line { width: 36px; height: 4px; margin-bottom: 20px; background: var(--gold); border-radius: 0; }
.landing-card .eyebrow { color: var(--ink); }
.landing-card h1 { max-width: 10ch; margin-bottom: 18px; font-size: clamp(2.6rem, 4.6vw, 4.45rem); line-height: .98; }
.landing-card > p:not(.eyebrow) { font-size: 1.07rem; line-height: 1.65; }
.fact-list { grid-template-columns: 1fr; margin: 25px 0; }
.fact { min-height: 0; padding: 11px 0; color: var(--ink-soft); background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.fact:last-child { border-bottom: 1px solid var(--line); }.fact strong { color: var(--ink); }
.verification-form { display: grid; gap: 8px; max-width: 365px; margin: 26px 0 14px; }.verification-form label { color: var(--ink); font-weight: 700; }.verification-form input { min-height: 58px; font-size: 1.4rem; letter-spacing: .22em; text-align: center; }
.verification-actions { display: grid; gap: 7px; justify-items: start; }.verification-actions .button-quiet { padding-left: 0; }
.button { border-radius: 0; font-weight: 600; }
.button-primary { background: var(--ink); box-shadow: none; }.button-primary:hover { background: #1d6098; }.button-primary::after { display: none; }
.button-secondary { border-color: var(--ink); }.button-quiet { color: var(--ink); }

.packet-header {
  padding-top: 22px;
  padding-bottom: 22px;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.packet-header::before, .packet-header::after { display: none; }
.packet-header h1 { color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.25rem); text-shadow: none; }
.packet-header p { color: var(--ink-soft); }.save-state { color: var(--ink); background: #f6f7f8; border-color: var(--line); border-radius: 0; }
.packet-layout { gap: 36px; padding-top: 38px; }
.section-nav { background: transparent; border: 0; border-radius: 0; box-shadow: none; }.section-nav::before { padding-left: 0; color: var(--ink-soft); }
.section-nav button { padding: 11px 0; color: var(--ink-soft); border-bottom: 1px solid var(--line); border-left: 0; border-radius: 0; }.section-nav button[aria-current="step"] { color: var(--ink); background: transparent; border-bottom: 3px solid var(--gold); box-shadow: none; }
.status-dot { width: 8px; height: 8px; background: #aeb9c2; box-shadow: none; }.status-dot.current { background: var(--ink); box-shadow: none; }.status-dot.complete { background: #487b43; }.status-dot.incomplete { background: #d69c14; }

.content-card { background: #fff; border: 1px solid #e2e5e8; border-radius: 0; box-shadow: var(--shadow); }
.section-intro::after { width: 48px; height: 3px; background: var(--gold); }
.eyebrow { color: var(--ink); font-size: .7rem; letter-spacing: .11em; }
.subsection, .ack-card, .signature-wrap { background: #fff; border-color: #dbe1e5; border-radius: 0; box-shadow: none; }
.subsection h3 { color: var(--ink); }.subsection h3 { border-bottom-color: #e5e8eb; }
input, select, textarea { background: #fff; border-color: #b9c5d0; border-radius: 0; box-shadow: none; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
.choice { border-color: #c6d0d9; border-radius: 0; box-shadow: none; }.choice:has(input:checked) { color: var(--ink); background: #f5f8fb; border-color: var(--ink); box-shadow: inset 3px 0 0 var(--gold); }
.conditional { border-left-color: var(--gold); border-radius: 0; background: #f4f7fa; }
.ack-card::before { width: 3px; background: var(--gold); }.signature-wrap canvas { background-image: linear-gradient(to bottom, transparent 87%, rgb(74 101 127 / 20%) 88%, transparent 89%); border-color: #8ca0b3; border-radius: 0; }

@media (max-width: 760px) {
  .landing { padding: 0; }.landing-card { min-height: calc(100vh - 34px); padding: 54px 30px 48px; }.landing-card::before { top: auto; bottom: 0; width: 100%; height: 20%; opacity: .9; }.landing-card::after { right: 0; width: 120px; }.landing-card h1 { max-width: 12ch; font-size: clamp(2.55rem, 12vw, 4rem); }
  .packet-header { padding-top: 18px; padding-bottom: 18px; }.section-nav { background: #fff; border-bottom: 1px solid var(--line); }.section-nav button[aria-current="step"] { border-left: 0; border-bottom: 3px solid var(--gold); }.content-card { border-radius: 0; box-shadow: none; }
}
