:root {
  --ink: #071a3a;
  --muted: #5a6b86;
  --soft: #eef5ff;
  --line: #dfe8f4;
  --blue: #0864e8;
  --blue-2: #1688ff;
  --green: #2fb344;
  --green-2: #48c95a;
  --shadow-sm: 0 10px 24px rgba(14, 38, 78, 0.10);
  --shadow-md: 0 22px 60px rgba(10, 38, 84, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(145deg, #f9fcff 0%, #eef6ff 44%, #ffffff 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: geometricPrecision;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.app-shell {
  min-height: 100svh;
  display: block;
  padding: 0;
  isolation: isolate;
}

.app-frame {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(20px, env(safe-area-inset-top)) 24px max(22px, env(safe-area-inset-bottom));
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 255, 0.92) 53%, rgba(255, 255, 255, 0.98) 100%);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  scrollbar-width: none;
}

.step::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(118deg, rgba(8, 100, 232, 0.045) 0 1px, rgba(8, 100, 232, 0) 1px 34px);
  opacity: 0.42;
  transform: translate3d(-10%, 0, 0);
  animation: airflow 16s linear infinite;
  pointer-events: none;
}

.step::-webkit-scrollbar {
  display: none;
}

.step[hidden] {
  display: none !important;
}

.step:not(.is-active) {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.step.is-active {
  visibility: visible;
  opacity: 1;
}

.app-topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18px;
  min-height: 56px;
}

.app-topbar.compact {
  min-height: 66px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  transition: opacity 180ms var(--ease);
}

.brand:hover {
  color: var(--ink);
  opacity: 0.82;
}

.brand:focus-visible {
  outline: 2px solid rgba(8, 100, 232, 0.32);
  outline-offset: 6px;
  border-radius: 8px;
}

.brand strong {
  display: block;
  font-size: 2.18rem;
  font-weight: 850;
  line-height: 0.92;
}

.brand span {
  color: var(--blue);
}

.brand small {
  font-size: 1rem;
  color: var(--ink);
}

.brand em {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.brand.small strong {
  font-size: 1.82rem;
}

.brand.small small {
  font-size: 0.94rem;
}

.brand.small em {
  margin-top: 4px;
  font-size: 0.7rem;
}

.icon-button {
  position: relative;
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform 260ms var(--ease),
    box-shadow 260ms var(--ease),
    background 260ms var(--ease),
    opacity 260ms var(--ease);
}

.icon-button i {
  position: relative;
  z-index: 1;
  font-size: 1.42rem;
  line-height: 1;
}

.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(14, 38, 78, 0.14);
}

.icon-button:active {
  transform: scale(0.96);
}

.icon-button.ghost {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: none;
}

.icon-button.ghost i {
  font-size: 2rem;
}

.icon-button.soft {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(225, 233, 245, 0.86);
}

.step-hero {
  min-height: 100%;
  padding: max(18px, env(safe-area-inset-top)) 24px max(18px, env(safe-area-inset-bottom));
}

.step-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(126deg, rgba(255, 255, 255, 0) 0 45%, rgba(226, 234, 246, 0.72) 45% 100%);
  clip-path: polygon(42% 0, 100% 0, 100% 53%, 54% 38%);
  pointer-events: none;
}

.hero-visual {
  display: none;
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border-radius: clamp(34px, 5vw, 86px);
  background-image: url("assets/hero-ac-v2.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  box-shadow: none;
  filter:
    saturate(1.04)
    drop-shadow(0 26px 42px rgba(12, 38, 74, 0.13));
  opacity: 0.56;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 72% 46%, #000 0 40%, rgba(0, 0, 0, 0.74) 54%, transparent 74%);
  mask-image: radial-gradient(ellipse at 72% 46%, #000 0 40%, rgba(0, 0, 0, 0.74) 54%, transparent 74%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: -1px;
  height: auto;
  background:
    linear-gradient(90deg, rgba(248, 252, 255, 0.98) 0%, rgba(248, 252, 255, 0.46) 18%, rgba(248, 252, 255, 0) 42%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.74) 0%, rgba(248, 252, 255, 0) 18%, rgba(248, 252, 255, 0) 68%, rgba(239, 248, 255, 0.92) 100%),
    radial-gradient(circle at 76% 52%, rgba(8, 100, 232, 0), rgba(8, 100, 232, 0.05) 42%, rgba(248, 252, 255, 0.55) 72%);
  opacity: 0.98;
}

.hero-glow {
  position: absolute;
  z-index: 0;
  inset: auto -18% 10% 18%;
  height: 38%;
  background: linear-gradient(120deg, rgba(0, 110, 255, 0), rgba(0, 110, 255, 0.12), rgba(0, 110, 255, 0));
  transform: rotate(-6deg);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 430px;
  padding: 16px 0 2px;
}

.partner-pill {
  position: relative;
  z-index: 3;
  top: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: min(100%, 360px);
  margin: 10px 0 0;
  padding: 8px 11px;
  border: 1px solid rgba(216, 228, 244, 0.86);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 32px rgba(15, 44, 86, 0.08);
  backdrop-filter: blur(16px);
  font-size: 0.7rem;
  font-weight: 750;
}

.partner-pill i {
  color: var(--blue);
  font-size: 1.1rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 390px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.92rem;
  line-height: 1.08;
  font-weight: 850;
}

h1 span {
  display: block;
  color: var(--blue);
}

.hero-subtitle,
.step-copy {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.hero-subtitle {
  margin-bottom: 16px;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0 0 16px;
}

.trust-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 72px;
  padding: 9px 7px;
  border: 1px solid rgba(218, 229, 244, 0.66);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.15;
  text-align: center;
  backdrop-filter: blur(10px);
}

.trust-item i {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(8, 100, 232, 0.08);
  box-shadow: inset 0 0 0 1px rgba(8, 100, 232, 0.18);
}

.rating-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 13px;
  margin-bottom: 0;
  border: 1px solid rgba(226, 233, 244, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(20, 52, 98, 0.08);
  backdrop-filter: blur(12px);
}

.google-mark {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #4285f4;
  background: #fff;
  font-size: 1.1rem;
  font-weight: 850;
}

.stars {
  color: #f6b400;
  font-size: 1rem;
}

.primary-cta,
.success-cta,
.secondary-cta {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 16px;
  padding: 0 26px;
  font-size: 1.05rem;
  font-weight: 800;
  transition:
    transform 260ms var(--ease),
    box-shadow 260ms var(--ease),
    filter 260ms var(--ease);
}

.primary-cta {
  width: 100%;
  margin-top: auto;
  color: #fff;
  background: linear-gradient(135deg, #004bdc 0%, #1688ff 100%);
  box-shadow: 0 18px 42px rgba(8, 100, 232, 0.34);
}

.primary-cta:hover,
.success-cta:hover,
.secondary-cta:hover {
  transform: translateY(-2px);
  filter: saturate(1.04);
}

.primary-cta:active,
.success-cta:active,
.secondary-cta:active {
  transform: scale(0.98);
}

.primary-cta i,
.success-cta i {
  font-size: 1.35rem;
}

.micro-note {
  width: 100%;
  margin: 14px 0 0;
  color: #4f6078;
  font-size: 0.85rem;
  text-align: center;
}

.micro-note i {
  margin-right: 4px;
}

.progress-wrap {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.progress-wrap > .icon-button {
  grid-column: 1;
}

.progress-stack {
  --progress: 0%;
  grid-column: 2;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(326px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 13px 10px;
  border: 1px solid rgba(215, 228, 246, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 38px rgba(12, 38, 74, 0.10);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.question-step .progress-wrap {
  grid-template-columns: 1fr;
  gap: 0;
}

.question-step {
  overflow: hidden;
}

.question-step .question-content {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  scrollbar-width: none;
}

.question-step .question-content::-webkit-scrollbar {
  display: none;
}

.question-step .progress-wrap > .icon-button {
  display: none;
}

.question-step .progress-stack {
  grid-column: 1;
}

.result-step .progress-wrap > .icon-button,
.contact-step .progress-wrap > .icon-button {
  border: 1px solid rgba(205, 220, 240, 0.92);
  box-shadow:
    0 18px 38px rgba(12, 38, 74, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.progress-stack::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: skewX(-18deg);
  animation: progress-sheen 3.8s ease-in-out infinite;
  pointer-events: none;
}

.progress-line {
  order: 2;
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: #e6eef9;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(7, 26, 58, 0.06);
}

.progress-line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  border-radius: inherit;
  background:
    linear-gradient(90deg, #0051df 0%, #0a72ff 55%, #45a3ff 100%);
  box-shadow: 0 0 18px rgba(8, 100, 232, 0.38);
  transition: width 520ms var(--ease);
}

.progress-line.complete::after {
  width: 100%;
}

.progress-dots {
  order: 3;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
}

.progress-dots span {
  width: 100%;
  height: 5px;
  display: block;
  border-radius: 99px;
  background: #d8e4f2;
  transition:
    transform 260ms var(--ease),
    background 260ms var(--ease),
    box-shadow 260ms var(--ease);
}

.progress-dots span.is-active {
  transform: scaleY(1.35);
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  box-shadow: 0 5px 12px rgba(8, 100, 232, 0.24);
}

.progress-dots span.is-past {
  background: rgba(8, 100, 232, 0.82);
}

.step-counter {
  order: 1;
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.question-content {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: 0 auto;
  padding: clamp(24px, 4svh, 44px) 0 26px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.question-content h2,
.result-content h2,
.form-heading h2,
.final-content h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1.14;
  font-weight: 850;
}

.step-copy {
  max-width: 360px;
  margin-bottom: 22px;
}

.unit-illustration {
  position: relative;
  width: min(266px, 86vw);
  height: 178px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 0 20px;
  padding: 0 20px;
  border: 1px solid rgba(216, 228, 244, 0.82);
  border-radius: 30px;
  background:
    radial-gradient(circle at 75% 16%, rgba(8, 100, 232, 0.18), transparent 35%),
    radial-gradient(circle at 18% 86%, rgba(22, 136, 255, 0.10), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.82));
  box-shadow:
    0 24px 56px rgba(12, 38, 74, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.unit-illustration::before {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 2px;
  border-radius: 99px;
  background: rgba(8, 100, 232, 0.10);
}

.house-shape {
  position: relative;
  z-index: 1;
  width: 172px;
  height: 122px;
  display: block;
  margin-bottom: 14px;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 16px 24px rgba(8, 100, 232, 0.08));
}

.house-shape::before,
.house-shape::after {
  content: "";
  position: absolute;
  clip-path: polygon(50% 1%, 96% 40%, 96% 100%, 4% 100%, 4% 40%);
}

.house-shape::before {
  inset: 0;
  background: rgba(8, 100, 232, 0.52);
}

.house-shape::after {
  inset: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.84));
}

.house-roof {
  display: none;
}

.house-floor {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 3px;
  border-radius: 99px;
  background: rgba(8, 100, 232, 0.13);
}

.indoor-illustration .house-shape {
  width: 184px;
  height: 130px;
  margin-bottom: 10px;
}

.indoor-units-wrap {
  position: absolute;
  z-index: 4;
  left: 28px;
  right: 28px;
  top: 66px;
  display: grid;
  gap: 8px 7px;
  justify-content: center;
  align-content: start;
}

.indoor-units-wrap[data-count="1"] {
  top: 74px;
  grid-template-columns: 82px;
}

.indoor-units-wrap[data-count="2"] {
  top: 74px;
  grid-template-columns: repeat(2, 56px);
}

.indoor-units-wrap[data-count="3"] {
  top: 72px;
  grid-template-columns: repeat(3, 38px);
}

.indoor-units-wrap[data-count="4"] {
  grid-template-columns: repeat(2, 56px);
}

.indoor-units-wrap[data-count="5"] {
  grid-template-columns: repeat(3, 38px);
}

.indoor-units-wrap[data-count="5"] .mini-indoor-unit:nth-child(n + 4) {
  transform: translateX(22px);
}

.mini-indoor-unit {
  position: relative;
  height: 19px;
  border: 1px solid rgba(8, 100, 232, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f4f9ff);
  box-shadow:
    0 8px 18px rgba(8, 100, 232, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.indoor-units-wrap[data-count="1"] .mini-indoor-unit {
  height: 25px;
  border-radius: 10px;
}

.mini-indoor-unit::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 5px;
  height: 2px;
  border-radius: 99px;
  background: rgba(8, 100, 232, 0.36);
}

.indoor-air {
  position: absolute;
  left: 12%;
  top: 90%;
  width: 76%;
  height: 22px;
  border-bottom: 2px solid rgba(8, 100, 232, 0.30);
  border-radius: 50%;
  animation: mini-air 2.8s ease-in-out infinite;
  pointer-events: none;
}

.indoor-air.air-2 {
  left: 28%;
  top: 116%;
  width: 48%;
  opacity: 0.72;
  animation-delay: 0.42s;
}

.mini-indoor-unit:nth-child(2) .indoor-air {
  animation-delay: 0.18s;
}

.mini-indoor-unit:nth-child(3) .indoor-air {
  animation-delay: 0.34s;
}

.mini-indoor-unit:nth-child(4) .indoor-air {
  animation-delay: 0.5s;
}

.mini-indoor-unit:nth-child(5) .indoor-air {
  animation-delay: 0.66s;
}

.outdoor-illustration {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 12px;
  justify-content: center;
  padding: 0 18px;
}

.outdoor-illustration .house-shape {
  width: 126px;
  height: 112px;
  margin: 0 0 12px;
  justify-self: end;
}

.window-dot {
  position: absolute;
  z-index: 4;
  left: 50px;
  top: 64px;
  width: 26px;
  height: 24px;
  border-radius: 8px;
  background: rgba(8, 100, 232, 0.12);
  box-shadow: inset 0 0 0 1px rgba(8, 100, 232, 0.20);
}

.outdoor-units-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 48px);
  gap: 8px;
  align-items: end;
  align-content: end;
  justify-content: start;
  justify-self: start;
  margin: 0 0 12px;
}

.outdoor-units-wrap[data-count="1"] {
  grid-template-columns: 68px;
}

.outdoor-units-wrap[data-count="1"] .outdoor-mini-unit {
  width: 68px;
  height: 52px;
  border-radius: 15px;
}

.outdoor-units-wrap[data-count="3"] .outdoor-mini-unit:last-child {
  grid-column: 1 / -1;
  justify-self: center;
}

.outdoor-mini-unit {
  position: relative;
  width: 48px;
  height: 38px;
  display: grid;
  place-items: center;
  justify-self: start;
  border: 1px solid rgba(8, 100, 232, 0.48);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(8, 100, 232, 0.12);
}

.fan-ring {
  width: 46%;
  aspect-ratio: 1;
  border: 2px solid rgba(8, 100, 232, 0.42);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 45%, rgba(8, 100, 232, 0.22) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(8, 100, 232, 0.22) 45% 55%, transparent 55%);
  animation: fan-spin 5s linear infinite;
}

.outdoor-mini-unit:nth-child(2) .fan-ring {
  animation-duration: 4.4s;
}

.outdoor-mini-unit:nth-child(3) .fan-ring {
  animation-duration: 5.4s;
}

.outdoor-mini-unit:nth-child(4) .fan-ring {
  animation-duration: 4.8s;
}

.grille-lines {
  position: absolute;
  inset: 8px 7px;
  border-radius: 9px;
  background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(8, 100, 232, 0.12) 6px 7px);
  pointer-events: none;
}

.unit-plus-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 8px 14px rgba(8, 100, 232, 0.24);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.choice-grid {
  width: 100%;
  display: grid;
  gap: 12px;
}

.choice-card {
  position: relative;
  min-height: 68px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(12, 38, 74, 0.06);
  text-align: left;
  transition:
    border-color 240ms var(--ease),
    background 240ms var(--ease),
    box-shadow 240ms var(--ease),
    transform 240ms var(--ease),
    color 240ms var(--ease);
}

.choice-card:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 100, 232, 0.36);
  box-shadow: 0 18px 38px rgba(12, 38, 74, 0.10);
}

.choice-card:active {
  transform: scale(0.985);
}

.choice-card span:not(.choice-icon):not(.choice-check) {
  font-size: 0.96rem;
  font-weight: 760;
  line-height: 1.25;
}

.choice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #8a96a7;
  background: #f7faff;
  transition:
    color 240ms var(--ease),
    background 240ms var(--ease);
}

.choice-icon i {
  font-size: 1.42rem;
}

.choice-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 8px 18px rgba(8, 100, 232, 0.28);
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 180ms var(--ease),
    transform 220ms var(--ease);
}

.choice-check i {
  font-size: 1rem;
}

.choice-card.is-selected {
  border-color: var(--blue);
  color: #062052;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.98));
  box-shadow:
    0 18px 36px rgba(8, 100, 232, 0.12),
    inset 0 0 0 1px rgba(8, 100, 232, 0.06);
}

.choice-card.is-selected .choice-icon {
  color: var(--blue);
  background: rgba(8, 100, 232, 0.08);
}

.choice-card.is-selected .choice-check {
  opacity: 1;
  transform: scale(1);
}

.number-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.indoor-number-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.indoor-number-grid .number-card {
  grid-column: span 2;
}

.indoor-number-grid .number-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.indoor-number-grid .number-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.outdoor-number-grid {
  max-width: 360px;
  margin-inline: auto;
}

.number-card {
  min-height: 102px;
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
}

.number-card span:not(.choice-check) {
  font-size: 2rem;
  font-weight: 850;
}

.problem-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.problem-grid .choice-card {
  min-height: 86px;
  grid-template-columns: 36px 1fr;
  padding: 12px;
}

.problem-grid .choice-card.wide {
  grid-column: span 2;
}

.problem-grid .choice-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.problem-grid .choice-icon i {
  font-size: 1.2rem;
}

.floating-input {
  width: 100%;
  max-width: 430px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(12, 38, 74, 0.07);
  transition:
    border-color 240ms var(--ease),
    box-shadow 240ms var(--ease);
}

.floating-input:focus-within {
  border-color: var(--blue);
  box-shadow: 0 18px 38px rgba(8, 100, 232, 0.12);
}

.floating-input i {
  color: #8794a7;
  font-size: 1.25rem;
}

.floating-input input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1rem;
  font-weight: 650;
}

.floating-input input::placeholder,
.form-field input::placeholder {
  color: #9ba8b9;
}

.location-picker {
  position: relative;
  z-index: 8;
  width: 100%;
  max-width: 430px;
}

.location-picker .floating-input {
  max-width: none;
}

.location-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  gap: 6px;
  max-height: 278px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(219, 230, 244, 0.94);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 50px rgba(12, 38, 74, 0.14);
  backdrop-filter: blur(18px);
}

.location-suggestions[hidden] {
  display: none;
}

.location-suggestion {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  transition:
    background 180ms var(--ease),
    transform 180ms var(--ease);
}

.location-suggestion:hover {
  background: rgba(8, 100, 232, 0.07);
}

.location-suggestion:active {
  transform: scale(0.99);
}

.location-suggestion i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: rgba(8, 100, 232, 0.08);
}

.location-suggestion span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.location-suggestion strong,
.location-suggestion small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-suggestion strong {
  font-size: 0.92rem;
  font-weight: 820;
}

.location-suggestion small,
.location-suggestion em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 720;
}

.location-suggestion em {
  justify-self: end;
  padding: 5px 7px;
  border-radius: 99px;
  background: #f2f7ff;
}

.location-feedback {
  min-height: 38px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.location-feedback[data-tone="success"] {
  color: #168a2a;
}

.location-feedback[data-tone="error"] {
  color: #c92a2a;
}

.geo-attribution {
  margin: -2px 0 0;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 650;
  text-align: left;
}

.info-card {
  width: 100%;
  max-width: 430px;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(218, 228, 241, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(12, 38, 74, 0.07);
  color: var(--ink);
  text-align: left;
  font-weight: 760;
}

.info-card i {
  color: var(--blue);
  font-size: 1.75rem;
}

.wave {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 58px;
  height: 100px;
  opacity: 0.48;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg width='420' height='110' viewBox='0 0 420 110' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-8 67C47 48 86 86 142 72C192 59 227 34 282 48C337 62 365 82 430 56' fill='none' stroke='%230864e8' stroke-width='7' stroke-linecap='round' opacity='.11'/%3E%3C/svg%3E")
    center bottom / 520px 130px repeat-x;
}

.step-actions {
  position: relative;
  z-index: 4;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  margin-top: auto;
  padding: 12px 0 max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.question-step .step-actions::before {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  top: -28px;
  bottom: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0), rgba(248, 252, 255, 0.96) 32%, #f8fcff 68%);
  pointer-events: none;
}

.step-actions .icon-button {
  z-index: 1;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(205, 220, 240, 0.92);
  box-shadow:
    0 20px 42px rgba(12, 38, 74, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  pointer-events: auto;
}

.step-actions .icon-button i {
  font-size: 1.52rem;
}

.step-actions .next-button {
  width: 64px;
  height: 64px;
}

.next-button {
  color: #fff;
  background: linear-gradient(135deg, #004bdc 0%, #1688ff 100%);
  box-shadow:
    0 22px 48px rgba(8, 100, 232, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  opacity: 0.42;
  transform: scale(0.92);
}

.next-button::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: inherit;
  border: 1px solid rgba(8, 100, 232, 0.20);
  opacity: 0;
  transform: scale(0.86);
  pointer-events: none;
}

.next-button:disabled {
  cursor: default;
  box-shadow: 0 10px 24px rgba(32, 54, 86, 0.12);
}

.next-button:not(:disabled) {
  opacity: 1;
  transform: scale(1);
}

.next-button:not(:disabled)::after {
  animation: action-pulse 1.7s var(--ease) infinite;
}

.next-button.just-enabled {
  animation: ready-pop 420ms var(--ease);
}

.spinning {
  animation: spin 720ms linear infinite;
}

.result-step,
.final-step {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.96) 55%, rgba(255, 255, 255, 0.98) 100%);
}

.result-content,
.final-content {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 14px 0 20px;
  text-align: center;
}

.success-mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 20px 44px rgba(47, 179, 68, 0.28);
}

.success-mark i {
  font-size: 2rem;
}

.success-mark.large {
  width: 86px;
  height: 86px;
}

.result-content h2 {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 2.45rem;
  line-height: 1;
}

.service-list {
  width: 100%;
  display: grid;
  gap: 12px;
  margin: 10px 0 28px;
  padding: 0;
  color: var(--ink);
  list-style: none;
  text-align: left;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 680;
  line-height: 1.35;
}

.service-list i {
  color: var(--green);
  font-size: 1.05rem;
}

.success-cta {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, #28a83a 0%, #48c95a 100%);
  box-shadow: 0 18px 42px rgba(47, 179, 68, 0.30);
}

.confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: -24px;
  width: 8px;
  height: 16px;
  border-radius: 3px;
  background: var(--blue);
  opacity: 0.8;
  animation: confetti-fall 4.8s linear infinite;
}

.confetti span:nth-child(2n) {
  background: var(--green);
}

.confetti span:nth-child(3n) {
  background: #f6b400;
}

.confetti span:nth-child(1) { left: 9%; animation-delay: 0.1s; }
.confetti span:nth-child(2) { left: 18%; animation-delay: 1.3s; }
.confetti span:nth-child(3) { left: 27%; animation-delay: 0.7s; }
.confetti span:nth-child(4) { left: 36%; animation-delay: 2.1s; }
.confetti span:nth-child(5) { left: 45%; animation-delay: 0.4s; }
.confetti span:nth-child(6) { left: 54%; animation-delay: 1.7s; }
.confetti span:nth-child(7) { left: 63%; animation-delay: 0.9s; }
.confetti span:nth-child(8) { left: 72%; animation-delay: 2.5s; }
.confetti span:nth-child(9) { left: 81%; animation-delay: 1.1s; }
.confetti span:nth-child(10) { left: 90%; animation-delay: 0.3s; }
.confetti span:nth-child(11) { left: 96%; animation-delay: 1.9s; }
.confetti span:nth-child(12) { left: 4%; animation-delay: 2.8s; }

.contact-step {
  overflow-y: auto;
}

.contact-form {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  margin: 0 auto;
  padding: 10px 0 24px;
}

.form-heading {
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(12, 38, 74, 0.05);
  transition:
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease),
    background 220ms var(--ease);
}

.form-field input {
  min-height: 56px;
  padding: 0 16px;
}

.form-field textarea {
  min-height: 92px;
  padding: 14px 16px;
  resize: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 16px 36px rgba(8, 100, 232, 0.12);
}

.upload-field {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed rgba(8, 100, 232, 0.42);
  border-radius: 14px;
  color: var(--blue);
  background: rgba(240, 247, 255, 0.72);
  box-shadow: 0 12px 28px rgba(12, 38, 74, 0.05);
  font-weight: 800;
  cursor: pointer;
}

.upload-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.upload-field i {
  font-size: 1.4rem;
}

.submit-status {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(216, 228, 244, 0.88);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 14px 34px rgba(12, 38, 74, 0.07);
}

.submit-status[hidden] {
  display: none;
}

.submit-progress {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4eefb;
  box-shadow: inset 0 1px 2px rgba(7, 26, 58, 0.07);
}

.submit-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0051df 0%, #1688ff 72%, #58b5ff 100%);
  box-shadow: 0 0 18px rgba(8, 100, 232, 0.32);
  transition: width 180ms linear;
}

.submit-progress.is-indeterminate span {
  width: 42%;
  animation: submit-progress-sweep 1.1s var(--ease) infinite;
}

.submit-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  text-align: center;
}

.contact-form.is-submitting {
  pointer-events: none;
}

.contact-form.is-submitting .submit-cta {
  filter: saturate(1.04);
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-cta {
  margin-top: 18px;
}

.was-validated input:invalid,
.was-validated textarea:invalid {
  border-color: #dc3545;
}

.secondary-cta {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

@keyframes ready-pop {
  0% {
    transform: scale(0.9);
  }
  55% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes action-pulse {
  0% {
    opacity: 0.56;
    transform: scale(0.86);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes airflow {
  0% {
    transform: translate3d(-12%, 0, 0);
  }
  100% {
    transform: translate3d(12%, 0, 0);
  }
}

@keyframes progress-sheen {
  0%,
  42% {
    transform: translateX(0) skewX(-18deg);
    opacity: 0;
  }
  55% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(380%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes mini-air {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.46;
  }
  50% {
    transform: translateY(5px);
    opacity: 0.9;
  }
}

@keyframes fan-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes confetti-fall {
  0% {
    transform: translate3d(0, -20px, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(22px, 112svh, 0) rotate(520deg);
    opacity: 0;
  }
}

@keyframes submit-progress-sweep {
  0% {
    transform: translateX(-115%);
  }
  100% {
    transform: translateX(255%);
  }
}

@media (min-width: 430px) {
  .problem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .problem-grid .choice-card.wide {
    grid-column: span 2;
  }
}

@media (min-width: 768px) {
  body {
    overflow: hidden;
  }

  .app-shell {
    padding: 0;
  }

  .app-frame {
    width: 100vw;
    height: 100svh;
    border-radius: 0;
    box-shadow: none;
  }

  .step {
    padding: 34px clamp(42px, 7vw, 96px);
  }

  .step-hero {
    padding: 34px clamp(48px, 8vw, 112px);
  }

  .partner-pill {
    position: absolute;
    top: 34px;
    right: clamp(48px, 8vw, 112px);
    margin: 0;
    max-width: 280px;
    padding: 10px 13px;
    border-radius: 18px;
    font-size: 0.76rem;
  }

  .partner-pill i {
    font-size: 1.35rem;
  }

  .hero-content {
    justify-content: center;
    max-width: 450px;
    padding-bottom: 14px;
  }

  .hero-visual {
    display: block;
    top: 126px;
    right: -10px;
    width: 520px;
    height: 326px;
    background-size: cover;
    background-position: 61% 50%;
    opacity: 0.96;
  }

  h1 {
    max-width: 500px;
    font-size: 2.85rem;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 1.08rem;
    margin-bottom: 26px;
  }

  .trust-list {
    grid-template-columns: repeat(3, max-content);
    gap: 24px;
    margin-bottom: 30px;
  }

  .trust-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    width: max-content;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.92rem;
    text-align: left;
    backdrop-filter: none;
  }

  .rating-box {
    min-height: 48px;
    padding: 10px 14px;
    margin-bottom: 32px;
  }

  .primary-cta {
    min-height: 64px;
    width: 240px;
    margin-top: 0;
  }

  .micro-note {
    width: 240px;
  }

  .progress-wrap {
    margin-top: 0;
  }

  .question-step {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .question-content {
    justify-content: center;
    padding: 8px 0 120px;
  }

  .question-step .question-content {
    overflow: visible;
    min-height: auto;
  }

  .step-actions {
    position: absolute;
    left: clamp(20px, 6vw, 72px);
    right: clamp(20px, 6vw, 72px);
    bottom: max(16px, env(safe-area-inset-bottom));
    width: auto;
    margin-top: 0;
    padding: 0;
  }

  .question-step .step-actions::before {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    height: 108px;
  }

  .question-content h2,
  .form-heading h2,
  .final-content h2 {
    font-size: 2rem;
  }

  .choice-grid.list-on-mobile {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .choice-grid.system-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 620px;
  }

  .choice-grid.unit-style-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .list-on-mobile .choice-card {
    min-height: 138px;
    grid-template-columns: 1fr;
    grid-template-rows: 50px 1fr;
    justify-items: center;
    align-content: center;
    padding: 22px 12px;
    text-align: center;
  }

  .number-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .indoor-number-grid .number-card,
  .indoor-number-grid .number-card:nth-child(4),
  .indoor-number-grid .number-card:nth-child(5) {
    grid-column: auto;
  }

  .outdoor-number-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 560px;
  }

  .number-card {
    min-height: 122px;
  }

  .problem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 720px;
  }

  .problem-grid .choice-card {
    min-height: 78px;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-field.full,
  .upload-field.full {
    grid-column: 1 / -1;
  }

  .success-cta {
    max-width: 560px;
  }
}

@media (min-width: 1024px) {
  .step-actions {
    left: clamp(54px, 8vw, 128px);
    right: clamp(54px, 8vw, 128px);
    bottom: clamp(34px, 5vw, 72px);
  }

  .step-actions .icon-button {
    width: 76px;
    height: 76px;
  }

  .step-actions .next-button {
    width: 86px;
    height: 86px;
  }

  .step-actions .icon-button i {
    font-size: 2rem;
  }

  .result-step .progress-wrap > .icon-button,
  .contact-step .progress-wrap > .icon-button {
    width: 66px;
    height: 66px;
  }

  .result-step .progress-wrap > .icon-button i,
  .contact-step .progress-wrap > .icon-button i {
    font-size: 1.7rem;
  }

  .hero-content {
    max-width: 560px;
  }

  .hero-visual {
    top: 18%;
    right: 3vw;
    width: min(48vw, 690px);
    height: 430px;
    background-size: cover;
    background-position: 58% 50%;
  }

  h1 {
    max-width: 560px;
    font-size: 3.55rem;
  }
}

@media (min-width: 1200px) {
  .hero-content {
    max-width: 650px;
  }

  .hero-visual {
    right: 4vw;
    width: min(46vw, 760px);
  }

  h1 {
    max-width: 650px;
    font-size: 4.25rem;
  }
}

@media (min-width: 1500px) {
  h1 {
    font-size: 4.65rem;
  }
}

@media (max-width: 380px) {
  .step {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-visual {
    top: 238px;
    right: 6px;
    width: 204px;
    height: 132px;
  }

  h1 {
    font-size: 1.68rem;
  }

  .partner-pill {
    font-size: 0.64rem;
    padding: 7px 9px;
  }

  .trust-item {
    min-height: 66px;
    padding: 8px 5px;
    font-size: 0.66rem;
  }

  .rating-box {
    transform-origin: left center;
    transform: scale(0.94);
  }

  .question-content h2,
  .result-content h2,
  .form-heading h2,
  .final-content h2 {
    font-size: 1.45rem;
  }

  .choice-card {
    min-height: 62px;
    padding: 10px 14px;
  }

  .number-card {
    min-height: 92px;
  }

  .unit-illustration {
    width: min(250px, 88vw);
    height: 168px;
    margin-bottom: 16px;
  }

  .question-step .progress-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) and (max-height: 760px) {
  .step {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .app-topbar.compact {
    min-height: 48px;
  }

  .brand.small strong {
    font-size: 1.48rem;
  }

  .brand.small small {
    font-size: 0.72rem;
  }

  .brand.small em {
    margin-top: 3px;
    font-size: 0.56rem;
  }

  .progress-wrap {
    margin-top: 2px;
  }

  .progress-stack {
    gap: 6px;
    padding: 8px 12px;
    border-radius: 16px;
  }

  .step-counter {
    font-size: 0.66rem;
  }

  .question-content {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .eyebrow {
    margin-bottom: 5px;
    font-size: 0.72rem;
  }

  .question-content h2,
  .result-content h2,
  .form-heading h2,
  .final-content h2 {
    margin-bottom: 8px;
    font-size: 1.36rem;
  }

  .step-copy {
    margin-bottom: 13px;
    font-size: 0.88rem;
    line-height: 1.36;
  }

  .choice-grid {
    gap: 9px;
  }

  .choice-card {
    min-height: 58px;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    padding: 9px 12px;
  }

  .choice-card span:not(.choice-icon):not(.choice-check) {
    font-size: 0.9rem;
  }

  .choice-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .choice-icon i {
    font-size: 1.24rem;
  }

  .problem-grid .choice-card {
    min-height: 66px;
    grid-template-columns: 34px 1fr;
    padding: 9px 10px;
  }

  .number-card {
    min-height: 76px;
  }

  .number-card span:not(.choice-check) {
    font-size: 1.58rem;
  }

  .unit-illustration {
    width: min(230px, 84vw);
    height: 120px;
    margin-bottom: 10px;
  }

  .unit-illustration .house-shape {
    transform: scale(0.78);
    transform-origin: bottom center;
  }

  .step-actions {
    padding-top: 8px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .step-actions .icon-button {
    width: 52px;
    height: 52px;
  }

  .step-actions .next-button {
    width: 58px;
    height: 58px;
  }
}

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