/* Signal Audit application. Tokens follow the site light theme. */

:root {
  --bg: #f7f5fc;
  --ink: #17151f;
  --ink-soft: #5c5670;
  --violet: #6d28d9;
  --accent: #7d5cff;
  --line: rgba(23, 21, 31, 0.1);
  --line-strong: rgba(90, 70, 150, 0.16);
  --card: #ffffff;
  --wash: #f6f3ff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Manrope", system-ui, sans-serif;
  --radius: 28px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html:not(.js) .app { display: none !important; }
html { font-size: 16px; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: -0.011em;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img, svg { max-width: 100%; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 5;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(214, 196, 255, 0.45), transparent 70%),
    radial-gradient(760px 560px at 100% 8%, rgba(186, 164, 245, 0.28), transparent 68%),
    radial-gradient(680px 420px at 18% 110%, rgba(232, 214, 255, 0.4), transparent 70%),
    var(--bg);
}
.atmosphere__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}
.atmosphere__blob--a {
  width: 38vw;
  height: 52vh;
  left: -8vw;
  top: 18vh;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(210, 190, 255, 0.18) 42%, transparent 70%);
  transform: rotate(-18deg);
}
.atmosphere__blob--b {
  width: 34vw;
  height: 46vh;
  right: -6vw;
  bottom: 6vh;
  background: radial-gradient(circle, rgba(196, 170, 255, 0.28), transparent 68%);
}
.atmosphere__blob--c {
  width: 22vw;
  height: 28vh;
  right: 18vw;
  top: -6vh;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 70%);
}

.noscript {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  text-align: center;
}
.noscript p { max-width: 28rem; margin: 0 auto 12px; font-size: 1.05rem; }
.noscript a { color: var(--violet); font-weight: 600; }

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: safe center;
  justify-content: safe center;
  padding: clamp(16px, 2vw, 32px);
}

.shell {
  width: min(1560px, 100%);
  display: grid;
  grid-template-columns: minmax(300px, 32.5%) minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow:
    0 30px 80px rgba(86, 62, 150, 0.08),
    0 2px 10px rgba(40, 20, 80, 0.04);
  overflow: hidden;
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(28px, 3vw, 44px) clamp(24px, 2.4vw, 40px) 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(246, 241, 255, 0.45));
  border-right: 1px solid rgba(88, 62, 140, 0.08);
  overflow: hidden;
  min-height: min-content;
}
.sidebar__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(28px, 4vh, 42px);
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
}
.back-home__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(23, 21, 31, 0.08);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}
.back-home__icon svg { width: 16px; height: 16px; }
.back-home:hover { color: var(--ink); }
.sidebar h1 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7b7494;
}
.sidebar__main { padding-bottom: 168px; }
.display {
  margin: 22px 0 0;
  max-width: 9.2em;
  font-size: clamp(1.85rem, 2.15vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #14101c;
}
.lede {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}
.sidebar__rule {
  width: 100%;
  height: 1px;
  margin: 26px 0 22px;
  border: 0;
  background: rgba(23, 21, 31, 0.08);
}
.reassure {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.reassure li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}
.reassure__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(125, 92, 255, 0.1);
  color: var(--violet);
}
.reassure__icon svg { width: 18px; height: 18px; }
.reassure .reassure__title {
  margin: 1px 0 2px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.reassure p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.audit-book {
  position: absolute;
  width: 188px;
  height: 250px;
  left: -22px;
  bottom: -92px;
  transform: rotate(-8deg);
  pointer-events: none;
  filter: drop-shadow(16px 22px 16px rgba(28, 16, 48, 0.16));
}
.audit-book__cover {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px 3px 3px 2px;
  padding: 22px 18px 20px 22px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0%, transparent 28%),
    linear-gradient(180deg, #281c38 0%, #181225 52%, #0c0912 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset -10px 0 18px rgba(0, 0, 0, 0.22);
}
.audit-book__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.audit-book__spine {
  position: absolute;
  left: -7px;
  top: 3px;
  bottom: 3px;
  width: 8px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, #020106 0%, #16101f 40%, #2c2038 70%, #100c16 100%);
  z-index: 2;
}
.audit-book__pages {
  position: absolute;
  right: -5px;
  top: 4px;
  bottom: 4px;
  width: 6px;
  background: repeating-linear-gradient(90deg, #f4efe6 0 1px, #e6ddd0 1px 2px);
  z-index: 2;
}
.audit-book__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.audit-book__title span { display: block; }
.audit-book__rule {
  position: relative;
  z-index: 1;
  display: block;
  width: 42px;
  height: 1px;
  margin: 14px 0 12px;
  background: rgba(255, 255, 255, 0.4);
}
.audit-book__tag {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 14em;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}
.audit-book__wave {
  position: absolute;
  right: -18%;
  top: 8%;
  width: 92%;
  height: 88%;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}
#application-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.panel__top,
.panel__body,
.panel__nav { padding-left: clamp(22px, 3vw, 52px); padding-right: clamp(22px, 3vw, 52px); }
.panel__top { padding-top: clamp(26px, 3vw, 42px); }
.panel__body { flex: 1; min-height: 0; padding-top: 28px; padding-bottom: 8px; }
.panel__nav { padding-top: 8px; padding-bottom: clamp(18px, 2vw, 28px); }

.progress-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.progress {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 22px;
}
.progress__track {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 2px;
  background: #e6e1f0;
  transform: translateY(-50%);
  overflow: hidden;
}
.progress__fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--violet), var(--accent));
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  transition: transform 0.42s var(--ease);
}
.progress__nodes {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 22px;
  align-items: center;
}
.progress__nodes li span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ddd6ea;
  box-shadow: 0 0 0 4px #fff;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.progress__nodes li.is-complete span {
  background: var(--accent);
  border-color: var(--accent);
}
.progress__nodes li.is-current span {
  background: var(--violet);
  border-color: var(--violet);
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(109, 40, 217, 0.16);
}
.step-count {
  margin: 0;
  flex: none;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #8a849c;
  white-space: nowrap;
}

.steps { position: relative; }
.step { display: none; }
.step.is-current,
.step.is-leaving { display: block; }
.step.is-leaving {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  pointer-events: none;
  z-index: 2;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a7eae;
}
.step__title {
  margin: 0;
  max-width: 18em;
  font-size: clamp(1.75rem, 2.5vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.12;
  color: #14101c;
  scroll-margin-top: 20px;
}
.step__title:focus { outline: none; }
.step__title:focus-visible {
  outline: 2px solid rgba(109, 40, 217, 0.45);
  outline-offset: 6px;
  border-radius: 6px;
}
.step__sub {
  margin: 12px 0 0;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

fieldset {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
legend { padding: 0; }
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.options--list { gap: 10px; }
.option--span { grid-column: 1 / -1; }

.option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  margin: 0;
  padding: 14px 16px;
  border: 1.5px solid rgba(23, 21, 31, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.options--list .option {
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 16px;
}
.option:hover {
  background: #fbfaff;
  border-color: rgba(125, 92, 255, 0.32);
  transform: translateY(-1px);
}
.option:has(input:checked) {
  border-color: var(--accent);
  background: var(--wash);
  transform: none;
}
.option:focus-within {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}
.option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.option input:focus,
.option input:focus-visible { outline: none; }
.option__icon {
  width: 22px;
  height: 22px;
  color: #4c465c;
}
.option:has(input:checked) .option__icon { color: var(--violet); }
.option__icon svg { width: 22px; height: 22px; display: block; }
.option__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.option__title {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.option__hint {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.4;
}
.mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #ddd6e8;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transform: scale(0.4);
  transition: transform 0.18s var(--ease), background 0.18s ease;
}
.option:has(input:checked) .mark { border-color: var(--accent); }
.option:has(input:checked) .mark::after {
  background: var(--accent);
  transform: scale(1);
}
.option:has(input[type="checkbox"]) .mark { border-radius: 7px; }
.option:has(input[type="checkbox"]:checked) .mark {
  background: var(--accent);
  border-color: var(--accent);
}
.option:has(input[type="checkbox"]:checked) .mark::after {
  width: 10px;
  height: 6px;
  border-radius: 0;
  background: transparent;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
}

.composer { margin-top: 22px; }
textarea,
.field input,
.stack-notes input {
  width: 100%;
  border: 1.5px solid rgba(23, 21, 31, 0.1);
  border-radius: 16px;
  background: #fff;
  padding: 16px 16px;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.011em;
  resize: vertical;
}
textarea { min-height: 168px; }
textarea::placeholder,
.field input::placeholder,
.stack-notes input::placeholder { color: #9a93aa; }
textarea:hover,
.field input:hover,
.stack-notes input:hover { border-color: rgba(125, 92, 255, 0.28); }
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #c9899c;
  background: #fffafa;
}
.counter {
  margin: 8px 2px 0;
  text-align: right;
  color: #8d879c;
  font-size: 0.8rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.counter.is-full { color: #7a3e56; }

.stack-notes {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows 0.32s var(--ease), opacity 0.32s var(--ease), margin-top 0.32s var(--ease);
}
.stack-notes.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 14px;
}
.stack-notes__inner { overflow: hidden; min-height: 0; }
.stack-notes label {
  display: block;
  margin: 2px 0 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-set { margin-top: 28px; }
.contact-set legend {
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.field { min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 600;
}
.field-error,
.form-error {
  margin: 8px 0 0;
  color: #7a3e56;
  font-size: 0.88rem;
  line-height: 1.4;
}
.form-error { margin: 0 0 10px; }

.panel__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.btn-back,
.btn-next {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-back {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(23, 21, 31, 0.08);
  background: #f7f6fa;
  color: #2c2638;
}
.btn-back svg { width: 18px; height: 18px; }
.btn-back:hover { background: #f1eef6; }
.btn-next {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: #161222;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  gap: 10px;
}
.btn-next svg { width: 18px; height: 18px; }
.btn-next:hover { background: #241c33; transform: translateY(-1px); }
.btn-next:active,
.btn-back:active,
.option:active { transform: none; }
.btn-next:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.confirm:not([hidden]) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 64px);
  max-width: 40rem;
}
.confirm__mark {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(125, 92, 255, 0.12);
  color: var(--violet);
}
.confirm__mark svg { width: 24px; height: 24px; }
.confirm h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.confirm h2:focus { outline: none; }
.confirm p { margin: 0 0 12px; color: var(--ink-soft); font-size: 1.05rem; max-width: 36rem; }
.confirm__home { align-self: flex-start; margin-top: 18px; }

.is-exit-forward { animation: exit-forward 0.4s var(--ease) both; }
.is-enter-forward { animation: enter-forward 0.4s var(--ease) both; }
.is-exit-back { animation: exit-back 0.4s var(--ease) both; }
.is-enter-back { animation: enter-back 0.4s var(--ease) both; }
.steps { transition: height 0.4s var(--ease); }

@keyframes exit-forward {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}
@keyframes enter-forward {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes exit-back {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(16px); }
}
@keyframes enter-back {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.next-strip {
  width: min(1560px, 100%);
  margin-top: clamp(36px, 5vh, 64px);
  padding: 8px clamp(8px, 1.5vw, 20px) clamp(12px, 2vh, 28px);
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
}
.next-strip__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a849c;
}
.next-strip__steps { padding-right: clamp(28px, 4vw, 72px); }
.next-strip__steps ol {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.next-strip__steps li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.next-strip__num,
.next-strip__glyph {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #efe8ff;
  color: #8d74d8;
}
.next-strip__num {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.next-strip__glyph svg { width: 22px; height: 22px; }
.next-strip__step-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}
.next-strip__steps li p:last-child {
  margin: 3px 0 0;
  max-width: 34em;
  font-size: 0.94rem;
  line-height: 1.45;
  color: #6d6780;
}
.next-strip__offer {
  border-left: 1px solid rgba(23, 21, 31, 0.1);
  padding-left: clamp(28px, 4.2vw, 72px);
}
.next-strip__offer h2 {
  margin: 16px 0 0;
  max-width: 12em;
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 1.02;
}
.next-strip__offer h2 span { display: block; }
.next-strip__lead {
  margin: 18px 0 0;
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #5e5872;
}
.next-strip__perks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
}
.next-strip__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.next-strip__perks li > span:last-child {
  max-width: 8.2em;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .shell { grid-template-columns: minmax(250px, 31%) minmax(0, 1fr); }
  .display { font-size: 1.7rem; }
}

@media (max-height: 820px) and (min-width: 861px) {
  .audit-book { display: none; }
  .sidebar__main { padding-bottom: 8px; }
  .sidebar { padding-top: 22px; }
  .sidebar__top { gap: 18px; }
  .display { margin-top: 16px; font-size: 1.65rem; }
  .lede { margin-top: 12px; }
  .reassure { gap: 12px; }
  .sidebar__rule { margin: 16px 0 14px; }
}

@media (max-width: 860px) {
  .page {
    height: auto;
    min-height: 100dvh;
    align-items: stretch;
    justify-content: flex-start;
    padding: 10px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
  .shell {
    height: calc(100dvh - 20px - env(safe-area-inset-bottom));
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
  }
  .sidebar {
    flex: none;
    overflow: visible;
    border-right: 0;
    background: transparent;
    padding: 14px 16px 0;
  }
  .sidebar__top {
    position: relative;
    width: 100%;
    min-height: 44px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  .back-home {
    position: absolute;
    left: 0;
    top: 2px;
  }
  .back-home__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .sidebar h1 {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }
  .sidebar__main,
  .audit-book { display: none; }
  .panel {
    flex: 1;
    min-height: 0;
    background: transparent;
  }
  #application-form { min-height: 0; }
  .panel__top { padding: 14px 16px 0; }
  .panel__body {
    overflow: auto;
    overscroll-behavior: contain;
    padding: 18px 16px 22px;
    -webkit-overflow-scrolling: touch;
  }
  .panel__nav {
    flex: none;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid rgba(23, 21, 31, 0.06);
  }
  .progress-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .step-count { text-align: right; }
  .options,
  .contact-grid { grid-template-columns: 1fr; }
  .option--span,
  .field--wide { grid-column: auto; }
  .step__title { font-size: 1.65rem; }
  .confirm:not([hidden]) { padding: 28px 18px 36px; }
  .next-strip {
    grid-template-columns: 1fr;
    margin-top: 36px;
    padding: 4px 12px 8px;
  }
  .next-strip__steps { padding-right: 0; }
  .next-strip__offer {
    border-left: 0;
    border-top: 1px solid rgba(23, 21, 31, 0.1);
    margin-top: 8px;
    padding: 32px 0 0;
  }
  .next-strip__offer h2 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .next-strip__perks { grid-template-columns: 1fr; gap: 14px; }
  .next-strip__perks li > span:last-child { max-width: none; }
}

@media (max-width: 420px) {
  .contact-grid { grid-template-columns: 1fr; }
  .btn-next { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .option:hover,
  .btn-next:hover { transform: none; }
}
