:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, .78);
  --panel-solid: #0f172a;
  --field: rgba(2, 6, 23, .68);
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(56,189,248,.30);
  --text: #ffffff;
  --soft: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;
  --sky: #38bdf8;
  --sky-dark: #0284c7;
  --indigo: #6366f1;
  --green: #34d399;
  --red: #fb7185;
  --shadow: 0 24px 80px rgba(2,6,23,.50);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
::selection { background: rgba(56,189,248,.30); }

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 24% -8%, rgba(56,189,248,.20), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(99,102,241,.13), transparent 34%),
    linear-gradient(140deg, #020617 0%, #07111f 50%, #020617 100%);
}
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: .14;
  background-size: 60px 60px;
  background-image: radial-gradient(circle, rgba(203,213,225,.62) .55px, transparent .55px);
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}
.soft-glow {
  position: fixed;
  z-index: -3;
  border-radius: 999px;
  filter: blur(100px);
  opacity: .15;
}
.glow-a { width: 34rem; height: 34rem; top: -14rem; right: -12rem; background: var(--sky); }
.glow-b { width: 34rem; height: 34rem; bottom: -16rem; left: -14rem; background: var(--indigo); }

.site-header {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(56,189,248,.09);
  color: var(--sky);
}
.brand strong {
  display: block;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .18em;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
}
.header-chip {
  padding: 9px 12px;
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 999px;
  background: rgba(56,189,248,.07);
  color: var(--sky);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.onboarding-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 64px;
}
.intro-section {
  max-width: 780px;
  margin: 0 auto 18px;
  text-align: center;
}
.eyebrow, .step-kicker {
  margin: 0 0 10px;
  color: var(--sky);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 12px;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: .96;
  letter-spacing: -.075em;
  font-weight: 900;
}
.intro-copy {
  max-width: 680px;
  margin: 0 auto;
  color: var(--soft);
  font-size: 1.02rem;
  line-height: 1.58;
  font-weight: 500;
}
.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.trust-row span {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(15,23,42,.62);
  color: var(--soft);
  font-size: .78rem;
  font-weight: 800;
}

.form-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(15,23,42,.66);
}
.form-top span:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--sky);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .18em;
}
.form-top strong {
  display: block;
  font-size: 1.05rem;
}
.meter { min-width: 132px; text-align: right; }
.meter > span {
  display: block;
  margin-bottom: 7px;
  color: white !important;
  font-size: .86rem !important;
  letter-spacing: 0 !important;
  font-weight: 900;
}
.meter-track {
  width: 132px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.meter-track div {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--indigo));
  transition: width .25s ease;
}
.step-tabs {
  display: flex;
  gap: 7px;
  margin: 0;
  padding: 12px 22px;
  list-style: none;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.step-tabs::-webkit-scrollbar { display: none; }
.step-tabs li {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px 8px 8px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}
.step-tabs span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: .7rem;
}
.step-tabs li.active {
  border-color: var(--line-strong);
  background: rgba(56,189,248,.08);
  color: white;
}
.step-tabs li.active span {
  background: var(--sky-dark);
  color: white;
}
.step-tabs li.complete {
  color: var(--green);
  border-color: rgba(52,211,153,.18);
}

#missionForm {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.form-step {
  display: none;
  flex: 1;
  padding: clamp(24px, 4vw, 44px);
}
.form-step.active {
  display: block;
  animation: stepIn .2s ease both;
}
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } }
h2 {
  max-width: 720px;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.065em;
  font-weight: 900;
}
.step-help {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--soft);
  font-size: .98rem;
  line-height: 1.58;
  font-weight: 500;
}
.fields {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}
.fields.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.full { grid-column: 1 / -1; }
label {
  display: grid;
  gap: 8px;
}
label span {
  color: var(--soft);
  font-size: .84rem;
  font-weight: 800;
}
label small {
  margin-top: -2px;
  color: var(--faint);
  font-size: .76rem;
  line-height: 1.35;
}
input, select, textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 15px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 1rem;
  outline: none;
  color: white;
  background: var(--field);
  font: inherit;
  font-size: 16px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input[type="file"] {
  padding: 12px;
  cursor: pointer;
}
input::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--sky-dark);
  color: white;
  font: inherit;
  font-size: .84rem;
  font-weight: 900;
  cursor: pointer;
}
textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.55;
}
input::placeholder, textarea::placeholder { color: rgba(148,163,184,.56); }
input:focus, select:focus, textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(56,189,248,.12);
  background: rgba(2,6,23,.86);
}
.invalid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 4px rgba(251,113,133,.11) !important;
}
.review-card {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.review-row {
  display: grid;
  grid-template-columns: 225px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 1rem;
  background: rgba(2,6,23,.30);
}
.review-row span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}
.review-row strong {
  color: white;
  font-size: .92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.next-steps {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 1.25rem;
  background: rgba(56,189,248,.07);
}
.next-steps strong, .next-steps span { display: block; }
.next-steps span { margin-top: 5px; color: var(--soft); line-height: 1.5; }
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: rgba(15,23,42,.66);
}
.primary-btn, .secondary-btn {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 1rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.primary-btn {
  border: 0;
  color: white;
  background: var(--sky-dark);
  box-shadow: 0 18px 38px rgba(2,132,199,.18);
}
.primary-btn:hover { background: #0ea5e9; transform: translateY(-1px); }
.secondary-btn {
  color: white;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.secondary-btn:hover { border-color: var(--line-strong); background: rgba(56,189,248,.07); }
.secondary-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.hidden { display: none !important; }
.form-message {
  min-height: 24px;
  margin: 0;
  padding: 0 22px 16px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}
.form-message.success { color: var(--green); }
.form-message.error { color: var(--red); }
.autosave-status {
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: var(--faint);
  font-size: .74rem;
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 24px, 1040px);
    padding: 14px 0 8px;
  }
  .brand-mark { width: 38px; height: 38px; border-radius: 13px; }
  .brand strong { font-size: .68rem; letter-spacing: .13em; }
  .brand small { font-size: .67rem; }
  .header-chip { display: none; }
  .onboarding-shell {
    width: min(100% - 20px, 1040px);
    padding: 8px 0 0;
  }
  .intro-section {
    margin-bottom: 12px;
    text-align: left;
  }
  .eyebrow { font-size: .62rem; letter-spacing: .18em; margin-bottom: 8px; }
  h1 {
    margin-bottom: 9px;
    font-size: clamp(2rem, 9.8vw, 3rem);
    line-height: 1;
  }
  .intro-copy {
    font-size: .92rem;
    line-height: 1.48;
  }
  .trust-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .trust-row::-webkit-scrollbar { display: none; }
  .trust-row span {
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: .72rem;
  }
  .form-shell {
    margin-left: -10px;
    margin-right: -10px;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    min-height: calc(100vh - 168px);
  }
  .form-top {
    padding: 14px 18px;
  }
  .form-top strong { font-size: .96rem; }
  .meter { min-width: 90px; }
  .meter-track { width: 90px; }
  .step-tabs {
    padding: 11px 18px;
    gap: 6px;
  }
  .step-tabs li {
    padding: 7px;
    gap: 0;
  }
  .step-tabs li { font-size: 0; }
  .step-tabs li span { font-size: .7rem; }
  #missionForm { min-height: calc(100vh - 248px); }
  .form-step {
    padding: 22px 18px 106px;
  }
  .step-kicker { font-size: .60rem; letter-spacing: .16em; }
  h2 {
    font-size: clamp(1.85rem, 8.6vw, 2.7rem);
    line-height: 1.02;
  }
  .step-help { font-size: .94rem; line-height: 1.5; }
  .fields, .fields.two-col {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 20px;
  }
  textarea { min-height: 118px; }
  .review-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 11px;
  }
  .form-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: .85fr 1.45fr;
    gap: 10px;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    background: rgba(2,6,23,.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .copy-btn { display: none; }
  .primary-btn, .secondary-btn {
    width: 100%;
    min-height: 52px;
  }
  .form-message {
    padding: 0 18px 18px;
    margin-top: -84px;
    position: relative;
    z-index: 2;
  }
  .autosave-status { display: none; }
}

@media (min-width: 1100px) and (max-height: 820px) {
  .site-header { padding-top: 14px; }
  .onboarding-shell { padding-top: 8px; }
  h1 { font-size: clamp(2.25rem, 4.4vw, 4rem); }
  .intro-copy { font-size: .96rem; }
  .trust-row { margin-top: 12px; }
  #missionForm { min-height: 500px; }
  .form-step { padding-top: 32px; padding-bottom: 24px; }
}

/* Landing page split */
.landing-page {
  display: flex;
  flex-direction: column;
}
.landing-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 82px);
  padding: 48px 0 72px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 28px;
  align-items: center;
}
.landing-hero,
.landing-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.landing-hero {
  position: relative;
  overflow: hidden;
  border-radius: 2.5rem;
  padding: clamp(30px, 5vw, 56px);
}
.landing-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: var(--sky);
  opacity: .10;
  filter: blur(90px);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 999px;
  background: rgba(56,189,248,.08);
  color: var(--sky);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sky);
  box-shadow: 0 0 16px rgba(56,189,248,.75);
}
.landing-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: .92;
  letter-spacing: -.085em;
  font-weight: 900;
}
.landing-hero p {
  max-width: 620px;
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.7;
  font-weight: 500;
}
.landing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.landing-actions .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  text-decoration: none;
}
.landing-actions span {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 800;
}
.landing-card {
  border-radius: 2rem;
  padding: clamp(24px, 4vw, 38px);
}
.landing-card h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.prep-list {
  display: grid;
  gap: 12px;
}
.prep-list div {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 1.25rem;
  background: rgba(2,6,23,.30);
}
.prep-list strong,
.prep-list span {
  display: block;
}
.prep-list strong {
  color: white;
  font-weight: 900;
}
.prep-list span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
  font-size: .92rem;
}
.flow-only {
  max-width: 920px;
  padding-top: 28px;
}

@media (max-width: 820px) {
  .landing-shell {
    min-height: auto;
    padding: 24px 0 48px;
    grid-template-columns: 1fr;
  }
  .landing-hero {
    border-radius: 1.75rem;
    padding: 26px 20px;
  }
  .landing-hero h1 {
    font-size: clamp(2.45rem, 12vw, 4rem);
    line-height: .96;
    margin-bottom: 14px;
  }
  .landing-hero p {
    font-size: .98rem;
    line-height: 1.56;
  }
  .landing-actions {
    margin-top: 22px;
  }
  .landing-actions .primary-btn {
    width: 100%;
  }
  .landing-actions span {
    width: 100%;
    text-align: center;
  }
  .landing-card {
    border-radius: 1.5rem;
    padding: 22px 18px;
  }
  .flow-only {
    width: min(100% - 20px, 1040px);
    padding-top: 10px;
  }
}

/* Contact-page fidelity pass: darker Stratus Marketing style */
:root {
  --sky-dark: #0081C9;
  --sky-hover: #0070B0;
  --panel: rgba(2, 6, 23, .94);
  --panel-solid: #020617;
  --field: rgba(15, 23, 42, .40);
  --line: rgba(255,255,255,.055);
  --line-strong: rgba(0,129,201,.34);
}
.page-shell {
  background:
    radial-gradient(circle at 18% -8%, rgba(0,129,201,.18), transparent 30%),
    radial-gradient(circle at 82% 6%, rgba(56,189,248,.08), transparent 30%),
    #020617;
}
.grid-bg { opacity: .08; }
.site-header { padding-top: 20px; }
.brand-mark {
  color: #0081C9;
  border-color: rgba(0,129,201,.22);
  background: rgba(0,129,201,.10);
}
.header-chip,
.hero-badge {
  color: #38bdf8;
  border-color: rgba(0,129,201,.22);
  background: rgba(0,129,201,.10);
}
.landing-hero,
.landing-card,
.form-shell {
  background: #020617;
  border: 2px solid rgba(255,255,255,.055);
  box-shadow: 0 0 100px rgba(56,189,248,.055), 0 28px 90px rgba(0,0,0,.42);
}
.landing-hero,
.form-shell { border-radius: 4rem; }
.landing-card { border-radius: 3rem; }
.landing-hero h1,
.intro-section h1,
h2 {
  color: #fff;
  letter-spacing: -.075em;
}
.landing-hero p,
.intro-copy,
.step-help { color: #cbd5e1; }
.primary-btn {
  background: #0081C9;
  box-shadow: 0 0 60px rgba(0,129,201,.28);
  letter-spacing: .06em;
}
.primary-btn:hover { background: #0070B0; }
.form-top,
.form-actions {
  background: rgba(2,6,23,.72);
  border-color: rgba(255,255,255,.055);
}
.step-tabs {
  border-color: rgba(255,255,255,.055);
  background: rgba(2,6,23,.28);
}
.step-tabs li {
  border-color: rgba(255,255,255,.055);
  background: rgba(15,23,42,.30);
}
.step-tabs li.active {
  border-color: rgba(0,129,201,.34);
  background: rgba(0,129,201,.12);
}
.step-tabs li.active span,
.primary-btn { background: #0081C9; }
.step-kicker,
.form-top span:first-child,
.eyebrow {
  color: #0081C9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .32em;
}
label span {
  color: #0081C9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}
input,
select,
textarea {
  background: rgba(15, 23, 42, .40);
  border: 2px solid rgba(255,255,255,.055);
  border-radius: .875rem;
  color: #fff;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0,129,201,.55);
  box-shadow: none;
  background: rgba(15, 23, 42, .56);
}
input::placeholder,
textarea::placeholder { color: rgba(100,116,139,.82); }
input::file-selector-button { background: #0081C9; }
.review-row,
.next-steps,
.prep-list div {
  background: rgba(15,23,42,.34);
  border: 1px solid rgba(255,255,255,.055);
}
.trust-row span {
  background: rgba(2,6,23,.72);
  border-color: rgba(255,255,255,.055);
}
.secondary-btn {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}
.secondary-btn:hover {
  border-color: rgba(0,129,201,.34);
  background: rgba(0,129,201,.08);
}
.meter-track { background: rgba(255,255,255,.08); }
.meter-track div { background: #0081C9; }

@media (max-width: 760px) {
  .landing-hero,
  .landing-card,
  .form-shell { border-radius: 2rem; }
  .form-shell {
    border-left: 2px solid rgba(255,255,255,.055);
    border-right: 2px solid rgba(255,255,255,.055);
    margin-left: 0;
    margin-right: 0;
  }
  .landing-hero { padding: 24px 20px; }
  .landing-hero h1 { font-size: clamp(2.35rem, 11vw, 3.6rem); }
}

/* Header/wordmark QA pass matching Stratus site nav */
.wordmark-brand {
  display: block;
  line-height: 1;
}
.wordmark-brand strong {
  display: block;
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .95;
}
.wordmark-brand small {
  display: block;
  margin-top: 5px;
  color: #38bdf8;
  font-size: clamp(.44rem, 1.1vw, .56rem);
  font-weight: 800;
  letter-spacing: .10em;
  line-height: 1;
  text-transform: uppercase;
}
.wordmark-brand .brand-mark,
.brand-mark { display: none; }
.site-header {
  max-width: 1280px;
  border-bottom: 1px solid transparent;
}

/* Mobile clipping/fit QA pass */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
.form-shell,
.landing-hero,
.landing-card { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }
.step-tabs, .trust-row { -webkit-overflow-scrolling: touch; }

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 28px, 1040px);
    padding: 18px 0 12px;
  }
  .wordmark-brand strong {
    font-size: 1rem;
    letter-spacing: -.045em;
  }
  .wordmark-brand small {
    font-size: .43rem;
    letter-spacing: .08em;
  }
  .onboarding-shell,
  .landing-shell {
    width: min(100% - 24px, 1040px);
  }
  .form-shell {
    margin-left: 0;
    margin-right: 0;
    border-radius: 1.6rem;
    overflow: hidden;
  }
  .form-top {
    gap: 12px;
  }
  .meter {
    min-width: 84px;
  }
  .meter-track {
    width: 84px;
  }
  .step-tabs {
    padding-left: 16px;
    padding-right: 16px;
  }
  .form-step {
    padding-left: 16px;
    padding-right: 16px;
  }
  .fields, .fields.two-col {
    min-width: 0;
  }
  label, .review-row, .next-steps {
    min-width: 0;
  }
  .form-actions {
    left: 0;
    right: 0;
  }
}

@media (max-width: 380px) {
  .site-header,
  .onboarding-shell,
  .landing-shell {
    width: min(100% - 18px, 1040px);
  }
  .form-top {
    padding-left: 14px;
    padding-right: 14px;
  }
  .meter { min-width: 72px; }
  .meter-track { width: 72px; }
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.72rem; }
  input, select, textarea { padding-left: 13px; padding-right: 13px; }
}

/* UX QA fixes: no admin copy, no mobile clipping, better completion */
.copy-btn { display: none !important; }
.form-actions {
  display: grid;
  grid-template-columns: auto 1fr;
}
.form-actions .primary-btn {
  justify-self: end;
  min-width: 190px;
}
.thank-you-state {
  padding: clamp(34px, 6vw, 72px);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.thank-you-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  border-radius: 1.5rem;
  border: 1px solid rgba(52,211,153,.22);
  background: rgba(52,211,153,.10);
  color: #34d399;
  font-size: 2.4rem;
  font-weight: 900;
}
.thank-you-state h2 {
  margin-left: auto;
  margin-right: auto;
}
.thank-you-state .step-help {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 760px) {
  #missionForm {
    min-height: auto;
  }
  .form-step {
    padding-bottom: 28px;
  }
  .form-actions {
    position: static;
    display: grid;
    grid-template-columns: .85fr 1.35fr;
    padding: 14px 16px 18px;
    background: rgba(2,6,23,.72);
  }
  .form-actions .primary-btn {
    min-width: 0;
    justify-self: stretch;
  }
  .form-message {
    margin-top: 0;
    padding: 0 16px 18px;
  }
  .fields {
    padding-bottom: 4px;
  }
  .autosave-status {
    display: none;
  }
  .thank-you-state {
    padding: 34px 18px 42px;
    text-align: left;
  }
  .thank-you-icon {
    margin-left: 0;
    margin-right: 0;
  }
  .thank-you-state h2,
  .thank-you-state .step-help {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Clean desktop landing/funnel pass */
@media (min-width: 821px) {
  .landing-shell {
    width: min(1120px, calc(100% - 48px));
    min-height: calc(100vh - 86px);
    padding: 46px 0 72px;
    display: block;
  }
  .landing-hero {
    max-width: 920px;
    margin: 0 auto;
    padding: 64px 48px 54px;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .landing-hero::after { display: none; }
  .hero-badge {
    margin-bottom: 24px;
  }
  .landing-hero h1 {
    max-width: 900px;
    margin: 0 auto 22px;
    font-size: clamp(4.25rem, 7.8vw, 7rem);
    line-height: .9;
    letter-spacing: -.09em;
  }
  .landing-hero p {
    max-width: 690px;
    margin: 0 auto;
    font-size: 1.18rem;
    line-height: 1.68;
    color: rgba(203,213,225,.86);
  }
  .landing-actions {
    justify-content: center;
    margin-top: 34px;
  }
  .landing-actions .primary-btn {
    min-width: 230px;
    min-height: 58px;
    border-radius: 1.25rem;
  }
  .landing-actions span {
    flex-basis: 100%;
    text-align: center;
    margin-top: 2px;
  }
  .landing-card {
    max-width: 980px;
    margin: 8px auto 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .landing-card .step-kicker,
  .landing-card h2 {
    text-align: center;
  }
  .landing-card h2 {
    margin-bottom: 24px;
    font-size: clamp(2rem, 3vw, 3.2rem);
  }
  .prep-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .prep-list div {
    min-height: 142px;
    padding: 20px;
    border-radius: 1.5rem;
    background: rgba(2,6,23,.72);
    border: 1px solid rgba(255,255,255,.065);
    box-shadow: 0 18px 54px rgba(0,0,0,.22);
  }

  .flow-only {
    max-width: 820px;
    padding-top: 32px;
  }
  .flow-only .form-shell {
    border-radius: 3rem;
  }
  .flow-only .form-step {
    padding: 42px 46px 34px;
  }
  .flow-only h2 {
    font-size: clamp(2.6rem, 4vw, 4.15rem);
  }
}

/* Desktop readability/spacing refinement for landing + thank-you */
@media (min-width: 821px) {
  .landing-shell {
    padding-top: 34px;
    padding-bottom: 84px;
  }
  .landing-hero {
    max-width: 860px;
    padding: 46px 42px 42px;
  }
  .hero-badge {
    margin-bottom: 18px;
  }
  .landing-hero h1 {
    max-width: 780px;
    margin-bottom: 20px;
    font-size: clamp(3.35rem, 5.8vw, 5.45rem);
    line-height: .96;
    letter-spacing: -.075em;
  }
  .landing-hero p {
    max-width: 620px;
    font-size: 1.06rem;
    line-height: 1.72;
  }
  .landing-actions {
    margin-top: 28px;
    gap: 12px;
  }
  .landing-actions .primary-btn {
    min-height: 54px;
  }
  .landing-card {
    max-width: 920px;
    margin-top: 4px;
  }
  .landing-card h2 {
    margin-bottom: 20px;
    font-size: clamp(1.85rem, 2.6vw, 2.75rem);
  }
  .prep-list div {
    min-height: 128px;
    padding: 18px;
  }

  .thank-you-page {
    grid-template-columns: 1fr;
    max-width: 880px;
    min-height: calc(100vh - 96px);
    align-content: center;
  }
  .thank-you-page .landing-hero {
    max-width: 760px;
    padding: 44px 42px;
    border: 1px solid rgba(255,255,255,.055);
    background: rgba(2,6,23,.82);
    box-shadow: 0 0 80px rgba(56,189,248,.045), 0 24px 70px rgba(0,0,0,.34);
  }
  .thank-you-page .thank-you-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 1.25rem;
    font-size: 2rem;
  }
  .thank-you-page .landing-hero h1 {
    max-width: 680px;
    font-size: clamp(2.55rem, 4.6vw, 4.15rem);
    line-height: 1;
    margin-bottom: 18px;
  }
  .thank-you-page .landing-hero p {
    max-width: 590px;
  }
  .thank-you-page .landing-card {
    max-width: 760px;
    margin-top: 20px;
  }
  .thank-you-page .prep-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
