/* GraSnoW Provider Signup — modern editorial */

:root {
  --forest: #12372a;
  --forest-deep: #0b271d;
  --forest-soft: #1e4b3a;
  --lime: #c8f064;
  --lime-soft: #ecf9c8;
  --ink: #17221c;
  --ink-soft: #536159;
  --ink-faint: #7b887f;
  --canvas: #f5f5ef;
  --paper: #fffef9;
  --line: #dfe2da;
  --line-strong: #cbd0c6;
  --error: #b74236;
  --error-soft: #fff0ed;
  --success: #287a4b;
  --shadow: 0 24px 70px rgba(28, 42, 34, 0.09);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Manrope", system-ui, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sidebar-w: clamp(360px, 38vw, 560px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden], .hidden { display: none !important; }
.mobile-only { display: none; }

/* Layout */
.shell {
  display: flex;
  min-height: 100dvh;
  background: var(--canvas);
}

.panel-brand {
  position: sticky;
  top: 0;
  width: var(--sidebar-w);
  height: 100dvh;
  flex: 0 0 var(--sidebar-w);
  overflow: hidden;
  color: #fff;
  background: var(--forest);
}

.brand-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.brand-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(rgba(255,255,255,.8) .6px, transparent .6px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 68%);
}

.brand-sun {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -275px;
  top: 58%;
  border-radius: 50%;
  background: var(--lime);
  opacity: .92;
  box-shadow: 0 0 140px rgba(200, 240, 100, .15);
}

.contour {
  position: absolute;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 46% 54% 63% 37% / 44% 32% 68% 56%;
  transform: rotate(-14deg);
}

.contour::before,
.contour::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: inherit;
}

.contour::before { inset: 22px; }
.contour::after { inset: 48px; }
.contour-one { width: 470px; height: 390px; left: -230px; bottom: 10%; }
.contour-two { width: 360px; height: 300px; right: -180px; top: -70px; transform: rotate(28deg); }

.brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(28px, 4vw, 52px);
}

.brand-top,
.brand-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  width: 126px;
  filter: brightness(0) invert(1);
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.06);
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.partner-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(200,240,100,.12);
}

.brand-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  max-width: 440px;
  padding: 40px 0 28px;
}

.brand-eyebrow {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brand-headline {
  max-width: 420px;
  margin: 0 0 18px;
  color: #fff;
  font: 800 clamp(2.5rem, 4.7vw, 4.6rem)/.98 var(--display);
  letter-spacing: -.065em;
}

.brand-copy {
  max-width: 400px;
  margin: 0 0 36px;
  color: rgba(255,255,255,.68);
  font-size: 16px;
  line-height: 1.65;
}

.brand-points {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,.13);
}

.brand-points li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

.brand-points strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.point-icon {
  color: var(--lime);
  font: 700 10px var(--display);
  letter-spacing: .08em;
}

.brand-proof {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
}

.proof-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.proof-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand-proof span { display: block; color: #fff; font-size: 12px; font-weight: 600; }
.brand-proof small { color: rgba(255,255,255,.52); font-size: 11px; }

.brand-foot {
  color: rgba(255,255,255,.42);
  font-size: 10px;
  letter-spacing: .04em;
}

/* Form panel */
.panel-form {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 85% 5%, rgba(200,240,100,.16), transparent 22rem),
    var(--canvas);
}

.form-header,
.form-main,
.form-footer {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 72px));
  margin-inline: auto;
}

.form-header {
  padding-top: clamp(28px, 5vh, 54px);
}

.form-header-top,
.step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.step-meta {
  width: 100%;
  min-height: 24px;
}

.step-label {
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.step-counter {
  color: var(--ink-faint);
  font: 700 11px var(--display);
  letter-spacing: .1em;
}

.step-progress { margin-top: 14px; }
.step-track {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.step-track-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--forest);
  transition: width .55s var(--ease);
}

.step-dots {
  display: none;
}

.form-header.is-welcome-step {
  visibility: hidden;
  padding-top: 30px;
}

.form-main {
  align-self: center;
  padding: clamp(36px, 7vh, 80px) 0;
}

.form-root {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  animation: reveal .5s var(--ease) both;
}

.form-root:not(:has(.welcome)) { max-width: 620px; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Alerts */
.alert {
  max-width: 620px;
  margin: 0 auto 18px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.alert-error {
  color: var(--error);
  border: 1px solid #efc5bd;
  background: var(--error-soft);
}

/* Welcome */
.welcome { max-width: 680px; margin-inline: auto; }
.welcome-hero { margin-bottom: 34px; }

.welcome-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 5px rgba(18,55,42,.08);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 9px rgba(18,55,42,0); }
}

.welcome h2 {
  max-width: 660px;
  margin: 0;
  color: var(--ink);
  font: 800 clamp(2.7rem, 5.4vw, 5.8rem)/.96 var(--display);
  letter-spacing: -.068em;
}

.text-gradient {
  color: var(--forest);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.welcome-lead {
  max-width: 570px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.welcome-bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 10px;
}

.bento {
  position: relative;
  min-height: 132px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,254,249,.72);
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}

.bento:hover {
  z-index: 1;
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px rgba(28,42,34,.08);
}

.bento-lg {
  grid-row: span 1;
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}

.bento-lg::after {
  content: "";
  position: absolute;
  right: -76px;
  bottom: -76px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 18px solid var(--lime);
  opacity: .75;
}

.bento-wide {
  grid-column: span 3;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  background: var(--lime-soft);
  border-color: #d9e9a9;
}

.bento-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bento-lg .bento-kicker { color: rgba(255,255,255,.55); }
.bento strong { display: block; margin-bottom: 6px; font: 750 15px/1.15 var(--display); letter-spacing: -.025em; }
.bento-lg strong { font-size: 27px; }
.bento > span:not(.bento-kicker):not(.bento-arrow) { color: var(--ink-faint); font-size: 11px; line-height: 1.5; }
.bento-lg > span { max-width: 150px; color: rgba(255,255,255,.6) !important; }
.bento-icon { display: grid; width: 34px; height: 34px; margin-bottom: 18px; place-items: center; color: var(--forest); border-radius: 10px; background: var(--lime-soft); }
.bento-wide-copy { display: flex; align-items: baseline; gap: 18px; }
.bento-wide-copy .bento-kicker { margin: 0; }
.bento-wide-copy strong { margin: 0; }
.bento-arrow { font-size: 24px; color: var(--forest); }

/* Step content */
.step-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 28px;
}

.step-num {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--forest);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font: 700 11px var(--display);
}

.step-head h2 {
  margin: 0 0 6px;
  font: 800 clamp(2rem, 4vw, 3.2rem)/1.05 var(--display);
  letter-spacing: -.055em;
}

.step-head p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.step-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-body-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

/* Inputs */
.field { display: flex; flex: 1; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.field label,
.section-label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field input::placeholder { color: #a2aaa4; }
.field input:hover, .field select:hover { border-color: #a8b0a9; }
.field input:focus, .field select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(18,55,42,.09);
}
.field input.invalid { border-color: var(--error); box-shadow: 0 0 0 4px rgba(183,66,54,.08); }
.field input.readonly { color: var(--ink-faint); background: #f2f3ee; }
.optional { color: var(--ink-faint); font-weight: 500; }
.req { color: var(--error); }

.field-hint {
  margin: 2px 0 0;
  padding: 12px 14px;
  color: var(--ink-soft);
  border-radius: 10px;
  background: #f2f5ed;
  font-size: 12px;
}

.field-hint::before { content: "i"; display: inline-grid; width: 17px; height: 17px; margin-right: 8px; place-items: center; color: #fff; border-radius: 50%; background: var(--forest); font: 700 10px var(--font); }
.field-error { min-height: 0; margin: 0; color: var(--error); font-size: 11px; }

/* Selection controls */
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.option-item,
.radio-item,
.tag-item {
  cursor: pointer;
  user-select: none;
  transition: border-color .18s ease, background .18s ease, transform .18s var(--ease);
}

.option-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.option-item:hover { transform: translateY(-1px); border-color: #9ca79f; }
.option-item.selected { border-color: var(--forest); background: #f0f6e8; }
.option-check { position: relative; width: 19px; height: 19px; flex: 0 0 19px; border: 1.5px solid #aeb7b0; border-radius: 6px; background: #fff; }
.option-item.selected .option-check { border-color: var(--forest); background: var(--forest); }
.option-item.selected .option-check::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid var(--lime); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: #fff; font-size: 12px; font-weight: 600; }
.tag-item:hover { border-color: #9ca79f; }
.tag-item.selected { color: #fff; border-color: var(--forest); background: var(--forest); }
.section-label { margin: 6px 0 -6px; }

.radio-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.radio-item { position: relative; display: flex; min-height: 54px; align-items: center; justify-content: space-between; padding: 0 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 13px; font-weight: 600; }
.radio-item:hover { border-color: #9ca79f; }
.radio-item.selected { border-color: var(--forest); background: #f0f6e8; }
.radio-dot { width: 18px; height: 18px; border: 1.5px solid #adb6af; border-radius: 50%; background: #fff; }
.radio-item.selected .radio-dot { border: 5px solid var(--forest); }

/* Uploads */
.upload-block { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: border-color .18s ease; }
.upload-block:hover { border-color: #adb6af; }
.upload-block.has-file { border-color: #89b49a; background: #f4faf3; }
.upload-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.upload-title { color: var(--ink); font-size: 13px; font-weight: 700; }
.upload-badge { padding: 4px 8px; color: var(--ink-faint); border-radius: 999px; background: #eff0eb; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.upload-badge.done { color: var(--success); background: #dff2e5; }
.upload-zone { display: flex; min-height: 60px; cursor: pointer; align-items: center; justify-content: center; gap: 10px; padding: 12px; color: var(--forest); border: 1px dashed #adb8af; border-radius: 10px; background: #f8f8f3; transition: background .18s ease, border-color .18s ease; }
.upload-zone:hover { border-color: var(--forest); background: #f0f6e8; }
.upload-prompt { max-width: 85%; overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

/* Background check */
.info-block { padding: 20px; color: var(--ink-soft); border-radius: 14px; background: #f1f5ea; }
.info-block p { margin: 0 0 12px; color: var(--ink); font-weight: 650; }
.info-block ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 12px; }
.info-block li::before { content: "✓"; margin-right: 9px; color: var(--success); font-weight: 800; }
.check-row { display: flex; cursor: pointer; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.check-row input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 18px; accent-color: var(--forest); }

/* Review */
.review-list { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.review-row { display: flex; justify-content: space-between; gap: 22px; padding: 13px 15px; border-bottom: 1px solid var(--line); font-size: 12px; }
.review-row:last-child { border-bottom: 0; }
.review-row dt { color: var(--ink-faint); }
.review-row dd { margin: 0; color: var(--ink); font-weight: 650; text-align: right; }
.review-note { margin: 0; padding: 14px; color: var(--ink-soft); border-radius: 11px; background: var(--lime-soft); font-size: 12px; }

/* Footer and buttons */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
}

.form-footer-actions { display: flex; gap: 10px; margin-left: auto; }
.btn {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { min-width: 148px; color: #fff; background: var(--forest); box-shadow: 0 10px 24px rgba(18,55,42,.18); }
.btn-primary:hover { background: var(--forest-deep); box-shadow: 0 14px 30px rgba(18,55,42,.25); }
.btn-primary svg { transition: transform .2s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { color: var(--ink-soft); background: transparent; }
.btn-ghost:hover { color: var(--forest); background: rgba(18,55,42,.06); }
.btn-shine { display: none; }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }

/* Success */
.success-screen {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(680px, calc(100% - 48px));
  min-height: 100dvh;
  margin: auto;
  place-items: center;
  padding: 50px 0;
}
.success-card { width: 100%; padding: clamp(30px, 6vw, 54px); text-align: center; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); }
.success-mark { position: relative; display: grid; width: 74px; height: 74px; margin: 0 auto 24px; place-items: center; color: var(--lime); border-radius: 50%; background: var(--forest); }
.success-check-ring { display: none; }
.success-card h2 { margin: 0 0 10px; font: 800 clamp(2rem, 5vw, 3.4rem)/1 var(--display); letter-spacing: -.055em; }
.success-lead { max-width: 450px; margin: 0 auto; color: var(--ink-soft); }
.success-extra { margin-top: 14px; color: var(--ink-soft); font-size: 12px; }
.success-steps { margin-top: 30px; padding: 22px; text-align: left; border-radius: 16px; background: #f1f5ea; }
.success-steps-title { margin: 0 0 15px; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.success-steps ol { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.success-steps li { display: flex; align-items: center; gap: 11px; color: var(--ink-soft); font-size: 12px; }
.success-steps li span { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; color: #fff; border-radius: 50%; background: var(--forest); font: 700 9px var(--display); }

/* Development testing tools */
#testing-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  font-family: var(--font);
}

#testing-toggle {
  display: grid;
  width: 48px;
  height: 48px;
  margin-left: auto;
  cursor: pointer;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 15px;
  background: var(--forest);
  box-shadow: 0 14px 34px rgba(18,55,42,.28);
  font-size: 19px;
  transition: transform .2s var(--ease);
}

#testing-toggle:hover { transform: translateY(-2px) rotate(-4deg); }

#testing-drawer {
  width: 250px;
  margin-bottom: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,254,249,.96);
  box-shadow: 0 22px 60px rgba(18,34,25,.2);
  backdrop-filter: blur(16px);
}

.testing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--ink);
  font: 750 13px var(--display);
}

.testing-badge {
  padding: 3px 6px;
  color: var(--forest);
  border-radius: 999px;
  background: var(--lime);
  font-size: 8px;
  letter-spacing: .08em;
}

.testing-status {
  min-height: 36px;
  margin-bottom: 10px;
  padding: 9px 10px;
  color: var(--ink-soft);
  border-radius: 9px;
  background: #f0f2eb;
  font-size: 10px;
  line-height: 1.45;
}

.testing-action {
  width: 100%;
  min-height: 36px;
  margin-top: 7px;
  cursor: pointer;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 11px;
  font-weight: 650;
}

.testing-action:hover {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}

/* Responsive */
@media (max-width: 1100px) {
  :root { --sidebar-w: 340px; }
  .brand-inner { padding: 30px; }
  .partner-pill { display: none; }
  .brand-headline { font-size: 2.8rem; }
  .brand-copy { font-size: 14px; }
  .form-header, .form-main, .form-footer { width: min(680px, calc(100% - 48px)); }
}

@media (max-width: 820px) {
  .shell { display: block; }
  .panel-brand { position: relative; width: 100%; height: auto; min-height: 260px; }
  .brand-inner { min-height: 260px; padding: 24px; }
  .brand-top { margin-bottom: 42px; }
  .brand-body { padding: 0; }
  .brand-headline { max-width: 560px; font-size: clamp(2.2rem, 9vw, 4rem); }
  .brand-copy { max-width: 560px; margin-bottom: 0; }
  .brand-points, .brand-proof, .brand-foot { display: none; }
  .brand-sun {
    width: 240px;
    height: 240px;
    right: -145px;
    top: auto;
    bottom: -155px;
  }
  .panel-form { min-height: calc(100dvh - 260px); }
  .form-header { padding-top: 28px; }
  .form-header.is-welcome-step { display: none; }
  .form-main { padding: 44px 0; }
  .welcome h2 { font-size: clamp(2.6rem, 10vw, 4.8rem); }
  .success-screen { min-height: calc(100dvh - 260px); }
}

@media (max-width: 580px) {
  .brand-inner { min-height: 232px; }
  .panel-brand { min-height: 232px; }
  .brand-top { margin-bottom: 32px; }
  .brand-logo { width: 105px; }
  .brand-eyebrow { margin-bottom: 12px; }
  .brand-headline { margin-bottom: 12px; font-size: 2.45rem; }
  .brand-copy { font-size: 13px; }
  .form-header, .form-main, .form-footer { width: calc(100% - 32px); }
  .form-main { padding: 36px 0; }
  .welcome h2 { font-size: 2.65rem; }
  .welcome-lead { margin-top: 17px; font-size: 14px; }
  .welcome-bento { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bento-lg { grid-column: span 2; }
  .bento-wide { grid-column: span 2; }
  .bento-wide-copy { display: block; }
  .bento-wide-copy .bento-kicker { margin-bottom: 6px; }
  .step-head { grid-template-columns: 36px 1fr; gap: 12px; }
  .step-num { width: 36px; height: 36px; }
  .step-head h2 { font-size: 2rem; }
  .step-body-card { padding: 18px; border-radius: 18px; }
  .field-row, .option-grid, .radio-list { grid-template-columns: 1fr; }
  .form-footer { position: sticky; bottom: 0; z-index: 10; width: 100%; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: rgba(245,245,239,.94); backdrop-filter: blur(14px); }
  .btn-primary { min-width: 136px; }
  .review-row { display: block; }
  .review-row dd { margin-top: 4px; text-align: left; }
  #testing-panel { right: 12px; bottom: 84px; }
}

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