:root {
  --cream: #f5f2e9;
  --paper: #fffdf8;
  --navy-deep: #061b33;
  --navy: #0d2848;
  --navy-2: #1b2e53;
  --sage: #58732f;
  --sage-mid: #6f8d3d;
  --sage-bright: #a5bf81;
  --sage-pale: #edf2e4;
  --tan: #8cab55;
  --tan-pale: #eef2e6;
  --ink: #142946;
  --muted: #666666;
  --danger: #9b312d;
  --danger-pale: #fae8e6;
  --success: #315f3a;
  --success-pale: #e4f0e5;
  --warning: #77571a;
  --warning-pale: #f8edcf;
  --border: #d7dccf;
  --focus: #6f8d3d;
  --shadow: 0 18px 55px rgb(6 27 51 / 11%);
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body { margin: 0; min-width: 0; }
.staging-banner { background: var(--sage); color: white; font-size: 13px; font-weight: 800; padding: 7px 16px; text-align: center; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  background: var(--navy);
  color: white;
  left: 16px;
  padding: 10px 16px;
  position: fixed;
  top: -80px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.site-header {
  background: var(--navy-deep);
  border-bottom: 3px solid var(--sage-mid);
  padding: 13px 24px 11px;
}
.brand-wrap {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
}
.brand { align-items: flex-start; display: flex; flex-direction: column; gap: 1px; text-decoration: none; }
.brand-logo { display: block; height: auto; width: 250px; }
.brand-copy { color: var(--sage-bright); font-size: 11px; font-weight: 800; letter-spacing: .13em; padding-left: 2px; text-transform: uppercase; }
.security-note { color: var(--sage-bright); font-size: 13px; font-weight: 700; }
.security-note span { font-size: 9px; margin-right: 6px; }
.header-exit { color: var(--sage-bright); font-size: 13px; }

.progress-shell {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 14px max(20px, calc((100vw - 1000px) / 2));
}
.progress-summary { display: flex; font-size: 13px; justify-content: space-between; margin-bottom: 6px; }
.progress-summary strong { color: var(--navy); }
.progress-track {
  appearance: none;
  background: var(--tan-pale);
  border: 0;
  border-radius: 99px;
  display: block;
  height: 6px;
  overflow: hidden;
  width: 100%;
}
.progress-track::-webkit-progress-bar { background: var(--tan-pale); }
.progress-track::-webkit-progress-value { background: var(--sage-mid); border-radius: 99px; }
.progress-track::-moz-progress-bar { background: var(--sage-mid); border-radius: 99px; }
.step-list { display: grid; gap: 4px; grid-template-columns: repeat(8, 1fr); list-style: none; margin: 12px 0 0; padding: 0; }
.step-list li { align-items: center; color: var(--muted); display: flex; font-size: 11px; gap: 5px; min-width: 0; }
.step-list li > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-dot {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 22px;
  font-size: 10px;
  height: 22px;
  justify-content: center;
}
.step-list .complete .step-dot { background: var(--sage); border-color: var(--sage); color: white; }
.step-list .current { color: var(--navy); font-weight: 800; }
.step-list .current .step-dot { border: 2px solid var(--navy); }

.page-shell { margin: 0 auto; max-width: 1040px; padding: 58px 28px 72px; }
.hero-card, .form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 840px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
}
.hero-card { max-width: 980px; }
.compact-card { max-width: 700px; text-align: center; }
.eyebrow { color: var(--sage); font-size: 12px; font-weight: 850; letter-spacing: .14em; margin-bottom: 12px; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.17; }
h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -.025em; margin: 0 0 18px; }
h2 { font-size: 25px; }
h2 span, label span { color: var(--muted); font-family: inherit; font-size: .78em; font-weight: 500; }
h3 { font-size: 17px; margin-bottom: 5px; }
.lede { color: #4f5555; font-size: clamp(18px, 2vw, 21px); max-width: 690px; }
.form-heading { border-bottom: 1px solid var(--border); margin-bottom: 32px; padding-bottom: 25px; }
.form-heading h1 { font-size: clamp(32px, 5vw, 46px); }
.form-heading p { color: var(--muted); font-size: 17px; margin-bottom: 0; }

.trust-grid { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); margin: 40px 0 34px; }
.trust-grid div { border-left: 1px solid var(--border); padding: 5px 24px; }
.trust-grid div:first-child { border-left: 0; padding-left: 0; }
.trust-grid span { color: var(--tan); display: block; font-family: Georgia, serif; font-size: 26px; }
.trust-grid strong { color: var(--navy); display: block; margin: 6px 0; }
.trust-grid p { color: var(--muted); font-size: 14px; margin: 0; }
.primary-action { margin-top: 30px; }
.microcopy { color: var(--muted); font-size: 12px; margin: 18px 0 0; max-width: 690px; }
.mock-launch {
  align-items: stretch;
  background: var(--tan-pale);
  border-radius: 12px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(190px, .75fr) minmax(0, 1.5fr);
  margin-top: 30px;
  padding: 18px 20px;
}
.mock-launch-copy { display: flex; flex-direction: column; }
.mock-launch span { color: var(--muted); font-size: 13px; }
.mock-control-form { min-width: 0; }
.mock-id-control { border: 0; margin: 0; padding: 0; }
.mock-id-control legend { color: var(--navy); font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.mock-id-choices { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mock-id-choices label {
  align-items: flex-start;
  background: white;
  border: 1px solid #a9a9a4;
  border-radius: 9px;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  gap: 8px;
  min-height: 64px;
  padding: 10px;
}
.mock-id-choices input { flex: 0 0 18px; height: 18px; margin: 2px 0 0; width: 18px; }
.mock-id-choices label > span { display: flex; flex-direction: column; }
.mock-id-choices small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.35; }
.mock-control-form .button { margin-top: 12px; }
.mock-send-review { text-align: left; }
.mock-send-facts { display: grid; gap: 10px; margin: 28px 0; text-align: left; }
.mock-send-facts > div { background: #f8f5ed; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.mock-send-facts dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.mock-send-facts dd { color: var(--navy); display: flex; flex-direction: column; margin: 3px 0 0; overflow-wrap: anywhere; }
.mock-send-facts dd span { color: var(--muted); font-size: 12px; }

.portal-form { width: 100%; }
.field { margin: 0 0 24px; }
.field > label, .compact-card > label { color: var(--navy); display: block; font-size: 14px; font-weight: 750; margin-bottom: 7px; }
.form-control,
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.copy-row input {
  background: white;
  border: 1px solid #a9a9a4;
  border-radius: 9px;
  color: var(--ink);
  min-height: 48px;
  padding: 11px 13px;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .copy-row input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgb(20 40 63 / 13%); }
.field-error input, .field-error select, .field-error textarea, .field-error .form-control { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: 14px; font-weight: 700; margin-top: 6px; }
.help-text { color: var(--muted); font-size: 13px; margin: 7px 0 0; }
.checkbox-row { align-items: flex-start; display: flex; gap: 12px; }
.checkbox-row input { flex: 0 0 20px; height: 20px; margin-top: 3px; width: 20px; }
.checkbox-row label { color: var(--navy); font-weight: 750; }
.radio-field > div { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.radio-field > div > div { min-width: 0; }
.radio-field > div label {
  align-items: center;
  background: white;
  border: 1px solid #a9a9a4;
  border-radius: 9px;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 11px 13px;
}
.radio-field input[type="radio"] { flex: 0 0 20px; height: 20px; margin: 0; width: 20px; }
.section-rule { border: 0; border-top: 1px solid var(--border); margin: 34px 0 24px; }

.form-actions { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-top: 34px; }
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  text-decoration: none;
}
.button-primary { background: var(--navy); color: white; }
.button-primary:hover { background: var(--navy-2); color: white; }
.button-primary:disabled { cursor: not-allowed; opacity: .48; }
.button-secondary { background: white; border-color: #87909a; color: var(--navy); }
.button-secondary:hover { background: #f4f6f7; }
.text-button { background: none; border: 0; color: var(--navy-2); cursor: pointer; font-weight: 800; min-height: 44px; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; }
.text-button.danger { color: var(--danger); }

.save-resume-panel {
  align-items: center;
  background: var(--sage-pale);
  border-radius: 12px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 28px;
  padding: 17px 20px;
}
.save-resume-panel div { display: flex; flex-direction: column; }
.save-resume-panel span { color: var(--muted); font-size: 13px; }

.service-choices { border: 0; margin: 0 0 32px; padding: 0; }
.service-choices legend { color: var(--navy); font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.service-choices > div { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.service-choices label { align-items: center; background: white; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; display: flex; gap: 10px; min-height: 54px; padding: 12px; }
.service-choices input { height: 20px; width: 20px; }
.service-question[hidden] { display: none; }

.upload-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.upload-card { background: #f9f7f1; border: 1px dashed #9d927f; border-radius: 13px; padding: 22px; }
.upload-card.sensitive { background: #f2f5f0; }
.upload-card label { color: var(--navy); display: flex; flex-direction: column; gap: 5px; }
.upload-card label span { font-size: 12px; }
.upload-card input[type="file"] { margin: 18px 0 8px; max-width: 100%; }
.selected-files { color: var(--muted); font-size: 12px; min-height: 20px; overflow-wrap: anywhere; }
.optional-pill { align-self: flex-start; background: var(--tan-pale); border-radius: 99px; color: var(--ink) !important; padding: 3px 7px; }
.required-pill { align-self: flex-start; background: var(--navy); border-radius: 99px; color: white !important; padding: 3px 8px; }
.uploaded-list { border-top: 1px solid var(--border); margin-top: 30px; padding-top: 16px; }
.uploaded-row { align-items: center; border-bottom: 1px solid var(--border); display: flex; gap: 16px; justify-content: space-between; padding: 14px 2px; }
.uploaded-row div { display: flex; flex-direction: column; min-width: 0; }
.uploaded-row strong { overflow-wrap: anywhere; }
.uploaded-row span { color: var(--muted); font-size: 12px; }

.alert { border-left: 4px solid; border-radius: 8px; margin: 22px 0; padding: 14px 18px; text-align: left; }
.alert p { margin: 4px 0 0; }
.alert-error { background: var(--danger-pale); border-color: var(--danger); color: #6e211e; }
.alert-success { background: var(--success-pale); border-color: var(--success); color: #244b2c; }
.alert-warning { background: var(--warning-pale); border-color: var(--warning); color: #5b4111; }
.alert-info { background: #e8eff4; border-color: var(--navy-2); color: var(--navy); }
.controlled-notice {
  background: #f2f5f0;
  border: 1px solid #c5d0c0;
  border-left: 4px solid var(--sage);
  border-radius: 9px;
  color: var(--ink);
  margin: 18px 0;
  padding: 15px 17px;
}
.controlled-notice strong { color: var(--navy); display: block; margin-bottom: 5px; }
.controlled-notice p { font-size: 14px; line-height: 1.6; margin: 0; }
.controlled-disclosure details { border: 1px solid var(--border); border-radius: 9px; margin: -8px 0 22px; padding: 13px 16px; }
.controlled-disclosure summary { color: var(--navy); cursor: pointer; font-weight: 800; min-height: 28px; }
.controlled-disclosure summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.disclosure-body { color: var(--ink); font-size: 14px; line-height: 1.65; padding-top: 14px; }
.acceptance-summary { background: #f8f5ed; border-radius: 8px; margin: 10px 0; padding: 12px 14px; }
.acceptance-summary p { margin: 4px 0; }

.source-panel { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-bottom: 32px; }
.source-panel section { background: #f8f5ed; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.source-panel span, .terms-panel span, .fee-grid span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.source-panel h2 { font-size: 19px; margin: 0 0 8px; }
.source-panel p { font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.terms-panel, .fee-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }
.terms-panel > div, .fee-grid > div { background: #f8f5ed; border: 1px solid var(--border); border-radius: 11px; padding: 17px; }
.terms-panel .full, .fee-grid .full { grid-column: 1 / -1; }
.terms-panel p { margin: 0; }
.fee-grid strong { color: var(--navy); display: block; overflow-wrap: anywhere; }
.difference-card { background: #f8f5ed; border: 1px solid var(--border); border-radius: 10px; margin: 12px 0; padding: 15px; }
.difference-card .classification { background: var(--sage-pale); border-radius: 99px; color: var(--navy); display: inline-block; font-size: 11px; font-weight: 850; margin-bottom: 9px; padding: 4px 8px; text-transform: uppercase; }
.difference-card strong { display: block; overflow-wrap: anywhere; }
.difference-card p { display: flex; flex-direction: column; margin: 9px 0 0; overflow-wrap: anywhere; }
.difference-card small { color: var(--muted); font-weight: 800; text-transform: uppercase; }
.difference-card em { color: var(--warning); display: block; font-size: 13px; font-weight: 750; margin-top: 10px; }
.engagement-step-list { grid-template-columns: repeat(6, 1fr); }

.review-section { border-bottom: 1px solid var(--border); padding: 24px 0; }
.review-heading { align-items: baseline; display: flex; justify-content: space-between; }
.review-heading h2 { margin: 0 0 14px; }
.review-heading a { font-weight: 800; }
.review-section dl { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.review-section dl div { min-width: 0; }
.review-section dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.review-section dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-line; }
.source-label { background: var(--tan-pale); border-radius: 6px; color: #544632; display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 8px; text-transform: uppercase; }
.subject-summary { display: flex; flex-direction: column; margin: 10px 0; }
.subject-summary span { color: var(--muted); font-size: 13px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tag-list li { background: var(--sage-pale); border-radius: 99px; padding: 6px 11px; }
.version-label { color: var(--muted); font-size: 11px; }
.submit-panel { align-items: center; background: var(--navy); border-radius: 13px; color: white; display: flex; gap: 24px; justify-content: space-between; margin: 32px 0 20px; padding: 22px; }
.submit-panel div { display: flex; flex-direction: column; }
.submit-panel span { color: #d6dfe7; font-size: 13px; }
.submit-panel .button-primary { background: white; color: var(--navy); flex: 0 0 auto; }

.copy-row { display: flex; gap: 8px; margin: 8px 0; }
.copy-row input { min-width: 0; }
.status-icon { align-items: center; background: var(--sage); border-radius: 50%; color: white; display: inline-flex; font-size: 22px; height: 54px; justify-content: center; margin-bottom: 20px; width: 54px; }
.status-icon.muted { background: var(--tan); color: var(--navy); }
.public-reference { background: var(--tan-pale); border: 1px solid var(--tan); border-radius: 8px; color: var(--navy); display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 800; letter-spacing: .04em; padding: 10px 14px; }

.site-footer { background: var(--navy-deep); border-top: 3px solid var(--sage-mid); color: #c8d2de; font-size: 12px; margin: 0; max-width: none; padding: 28px; text-align: center; }
.site-footer p { margin: 3px 0; }
.site-footer a { color: var(--sage-bright); }
.site-footer strong { color: white; }
.test-flag { color: #c8d2de; font-weight: 700; }

@media (max-width: 760px) {
.site-header { padding: 12px 16px; }
  .security-note { display: none; }
  .header-exit { font-size: 12px; }
  .brand-logo { width: 210px; }
  .brand-copy { font-size: 10px; }
  .progress-shell { padding: 12px 16px; }
  .step-list li { justify-content: center; }
  .step-list li > span:last-child { display: none; }
  .page-shell { padding: 28px 14px 48px; }
  .hero-card, .form-card { border-radius: 14px; padding: 26px 19px; }
  .trust-grid, .upload-grid, .review-section dl, .source-panel, .terms-panel, .fee-grid { grid-template-columns: 1fr; }
  .trust-grid { gap: 18px; }
  .trust-grid div, .trust-grid div:first-child { border-left: 0; border-top: 1px solid var(--border); padding: 16px 0 0; }
  .trust-grid div:first-child { border-top: 0; }
  .service-choices > div { grid-template-columns: 1fr; }
  .radio-field > div { grid-template-columns: 1fr; }
  .form-actions, .save-resume-panel, .submit-panel { align-items: stretch; flex-direction: column; }
  .form-actions .button, .submit-panel .button { width: 100%; }
  .save-resume-panel { text-align: center; }
  .copy-row { flex-direction: column; }
  .copy-row .button { width: 100%; }
  .mock-launch { grid-template-columns: 1fr; }
  .mock-id-choices { grid-template-columns: 1fr; }
  .mock-launch .button { width: 100%; }
  .terms-panel .full, .fee-grid .full { grid-column: auto; }
}

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