:root {
  --bg: #f7f6f2;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(255, 248, 241, 0.9);
  --text: #151515;
  --text-muted: #616161;
  --text-soft: #8a8a8a;
  --line: rgba(18, 18, 18, 0.08);
  --line-strong: rgba(18, 18, 18, 0.12);
  --accent: #f28b44;
  --accent-strong: #ff6f1f;
  --accent-soft: #ffe6d5;
  --shadow: 0 24px 80px rgba(19, 19, 19, 0.08);
  --shadow-soft: 0 10px 28px rgba(19, 19, 19, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --ease: 220ms ease;
}

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

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

body {
  overflow-x: hidden;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(90vw 70vw at 0% 0%, rgba(255, 192, 145, 0.28), transparent 58%),
    radial-gradient(85vw 80vw at 100% 100%, rgba(255, 222, 199, 0.3), transparent 60%),
    linear-gradient(180deg, #fcfbf8 0%, #f3f1ec 100%);
}

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  filter: blur(24px);
  opacity: 0.8;
  z-index: 0;
}

.ambient--top {
  top: -4rem;
  left: -4rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: rgba(244, 142, 72, 0.26);
}

.ambient--bottom {
  right: -5rem;
  bottom: 3rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: rgba(255, 202, 157, 0.24);
}

.quiz-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 14px 14px 30px;
}

.quiz-header {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.back-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform var(--ease), opacity var(--ease), background var(--ease);
}

.back-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.88);
}

.back-button[disabled] {
  opacity: 0;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  color: var(--accent);
  font-size: 18px;
}

.brand-text {
  color: rgba(21, 21, 21, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.progress-wrap {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #ffb072 55%, #ffd8bb 100%);
  transition: width 380ms cubic-bezier(0.24, 0.7, 0.2, 1);
}

.progress-text {
  justify-self: end;
  color: rgba(21, 21, 21, 0.48);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-card {
  min-height: calc(100vh - 110px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 245, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.step {
  min-height: calc(100vh - 110px);
  padding: 24px 18px 22px;
  animation: fadeUp 320ms cubic-bezier(0.24, 0.66, 0.24, 1);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero {
  display: grid;
  gap: 18px;
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.shortcut-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(21, 21, 21, 0.4);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(21, 21, 21, 0.14);
  text-underline-offset: 3px;
}

.hero-copy h1,
.question-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 9vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.question-title {
  font-size: clamp(1.85rem, 7vw, 3rem);
}

.hero-copy p,
.question-description,
.final-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-pill,
.footer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(21, 21, 21, 0.72);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.hero-visual {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 196, 150, 0.88), transparent 28%),
    radial-gradient(circle at 78% 32%, rgba(255, 148, 72, 0.54), transparent 24%),
    radial-gradient(circle at 58% 74%, rgba(255, 226, 203, 0.98), transparent 30%),
    linear-gradient(145deg, #fff2e6 0%, #ffd2ae 42%, #f4a365 100%);
}

.hero-device {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 180px;
  padding: 14px 12px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.95;
}

.hero-shape--sun {
  top: 12%;
  left: 10%;
  width: 94px;
  height: 94px;
  background: radial-gradient(circle, rgba(255, 233, 173, 0.95) 0%, rgba(255, 196, 102, 0.7) 58%, transparent 74%);
}

.hero-shape--orb {
  top: 14%;
  right: 14%;
  width: 112px;
  height: 112px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.08) 72%, transparent 78%);
}

.hero-figure {
  position: absolute;
  left: 10%;
  bottom: 0;
  width: 42%;
  height: 68%;
}

.hero-figure-head {
  position: absolute;
  top: 10%;
  left: 28%;
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd6bf 0%, #f6b897 100%);
  box-shadow: 0 12px 24px rgba(145, 72, 19, 0.12);
}

.hero-figure-body {
  position: absolute;
  bottom: 0;
  left: 2%;
  width: 86%;
  height: 70%;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, #ffac6c 0%, #f28b44 100%);
  box-shadow: 0 18px 32px rgba(160, 78, 19, 0.16);
}

.hero-floating {
  position: absolute;
  left: 12px;
  top: 18px;
  z-index: 1;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 24px rgba(17, 17, 17, 0.06);
}

.hero-floating strong {
  display: block;
  font-size: 0.8rem;
}

.hero-floating span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.hero-device-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: rgba(21, 21, 21, 0.48);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-device-card {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 239, 228, 0.8));
  padding: 16px 14px;
}

.hero-device-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.hero-device-card span {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.hero-stat {
  min-width: 0;
}

.hero-stat strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  color: #fff;
}

.hero-stat span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  line-height: 1.35;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent 0%, rgba(34, 22, 16, 0.52) 100%);
}

.step-meta {
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-stack {
  display: grid;
  gap: 14px;
}

.info-copy {
  display: grid;
  gap: 10px;
  max-width: 42rem;
}

.info-visual {
  position: relative;
  min-height: 240px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.info-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 18, 18, 0.38) 100%);
}

.info-visual-chip {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: rgba(21, 21, 21, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.note-inline {
  padding-left: 14px;
  border-left: 3px solid rgba(242, 139, 68, 0.45);
  color: rgba(21, 21, 21, 0.68);
  font-size: 0.98rem;
  line-height: 1.65;
}

.options {
  display: grid;
  gap: 10px;
}

.question-visual {
  position: relative;
  height: 136px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.question-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 18, 18, 0.32) 100%);
}

.question-visual-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: rgba(21, 21, 21, 0.74);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.illustration {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 210, 176, 0.92), transparent 24%),
    radial-gradient(circle at 74% 28%, rgba(255, 163, 95, 0.5), transparent 20%),
    linear-gradient(150deg, #fff4eb 0%, #ffe1cc 48%, #ffc392 100%);
}

.tone-peach {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 219, 188, 0.9), transparent 24%),
    radial-gradient(circle at 76% 28%, rgba(255, 162, 97, 0.46), transparent 20%),
    linear-gradient(150deg, #fff4ec 0%, #ffe8d8 52%, #ffc794 100%);
}

.tone-sand {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 232, 201, 0.88), transparent 24%),
    radial-gradient(circle at 72% 28%, rgba(237, 165, 105, 0.45), transparent 20%),
    linear-gradient(150deg, #fff7ee 0%, #f6e0c9 50%, #efb27a 100%);
}

.tone-apricot {
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 213, 183, 0.9), transparent 24%),
    radial-gradient(circle at 78% 22%, rgba(255, 138, 75, 0.52), transparent 20%),
    linear-gradient(145deg, #fff1e6 0%, #ffd7b9 48%, #f89b59 100%);
}

.tone-gold {
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 226, 178, 0.92), transparent 24%),
    radial-gradient(circle at 74% 30%, rgba(233, 154, 72, 0.46), transparent 20%),
    linear-gradient(145deg, #fff8ef 0%, #ffe3ba 46%, #f5b05b 100%);
}

.illustration-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
}

.illustration-orb--a {
  top: 18%;
  left: 10%;
  width: 30%;
  height: 44%;
  background: rgba(255, 255, 255, 0.34);
}

.illustration-orb--b {
  right: 10%;
  top: 16%;
  width: 26%;
  height: 34%;
  background: rgba(255, 255, 255, 0.28);
}

.illustration-wave {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -16%;
  height: 56%;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(-4deg);
}

.option {
  position: relative;
  width: 100%;
  min-height: 62px;
  padding: 16px 56px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font: inherit;
  font-size: 0.99rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.03);
  transition:
    transform var(--ease),
    border-color var(--ease),
    background var(--ease),
    box-shadow var(--ease);
}

.option::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-strong);
  transform: translateY(-50%);
  box-shadow: 0 0 0 6px rgba(242, 139, 68, 0.12);
  opacity: 0;
  transition: opacity var(--ease);
}

.option:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 139, 68, 0.28);
}

.option.selected {
  border-color: rgba(242, 139, 68, 0.6);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 236, 222, 0.9));
  box-shadow: 0 12px 32px rgba(242, 139, 68, 0.16);
}

.option.selected::after {
  opacity: 1;
}

.step-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  min-height: 56px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform var(--ease), opacity var(--ease), box-shadow var(--ease);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--accent) 0%, #ff9d56 58%, #ffb56d 100%);
  box-shadow: 0 16px 34px rgba(242, 139, 68, 0.26);
}

.btn-primary:not(:disabled):hover {
  transform: translateY(-1px);
}

.hint-error {
  min-height: 18px;
  color: #cf4f18;
  font-size: 0.85rem;
}

.input-wrap {
  display: grid;
  gap: 10px;
}

.text-input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.text-input:focus {
  border-color: rgba(242, 139, 68, 0.6);
  box-shadow: 0 0 0 5px rgba(242, 139, 68, 0.12);
}

.summary-grid,
.plan-columns {
  display: grid;
  gap: 16px;
}

.score-ring {
  width: min(100%, 250px);
  aspect-ratio: 1;
  margin: 2px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.score-ring-inner {
  width: 78%;
  height: 78%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.04);
}

.score-value {
  font-family: "Sora", sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.score-note {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-cards {
  display: grid;
  gap: 12px;
}

.summary-card,
.plan-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.03);
}

.summary-card h3,
.plan-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.summary-card p,
.plan-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.loader-wrap {
  display: grid;
  gap: 12px;
  width: min(100%, 560px);
}

.loader-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
}

.loader-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #ffb16d 100%);
  transition: width 280ms ease;
}

.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.offer-hero,
.offer-grid,
.testimonial-row {
  display: grid;
  gap: 16px;
}

.offer-copy {
  display: grid;
  gap: 14px;
}

.offer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.offer-card,
.offer-panel,
.testimonial-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 235, 0.9));
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.04);
}

.offer-plan-stack {
  display: grid;
  gap: 12px;
}

.offer-plan {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.04);
}

.offer-plan--selected {
  border-color: rgba(242, 139, 68, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 238, 225, 0.92));
}

.offer-plan-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-top: 10px;
}

.offer-plan-main strong {
  display: block;
  font-size: 1.05rem;
}

.offer-plan-main span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.offer-plan-price {
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.offer-card {
  display: grid;
  gap: 14px;
}

.offer-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(242, 139, 68, 0.12);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-price strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -0.07em;
}

.offer-price span,
.offer-price-note,
.offer-security,
.testimonial-card span {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.offer-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

.offer-list li + li {
  margin-top: 8px;
}

.testimonial-card p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

.offer-actions {
  width: 100%;
}

.offer-secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.04);
}

.app-screen {
  padding-bottom: 94px;
}

.checkout-topbar,
.app-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.checkout-back {
  width: 42px;
  height: 42px;
}

.checkout-card,
.profile-card,
.message-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.04);
}

.checkout-summary {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.checkout-title {
  font-size: clamp(1.7rem, 7vw, 2.6rem);
}

.checkout-price-block strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.checkout-price-block span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.stripe-shell {
  border-radius: 22px;
  border: 1px solid rgba(18, 18, 18, 0.08);
  background: linear-gradient(180deg, rgba(248, 249, 253, 0.96), rgba(255, 255, 255, 0.96));
  padding: 16px;
}

.stripe-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.checkout-row {
  display: grid;
  gap: 10px;
}

.checkout-actions {
  margin-top: 16px;
}

.app-body,
.dashboard-pane,
.dashboard-home {
  display: grid;
  gap: 16px;
}

.dashboard-hero {
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 245, 235, 0.95), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(242, 139, 68, 0.12);
}

.dashboard-title {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
}

.dashboard-section {
  display: grid;
  gap: 12px;
}

.dashboard-section-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(178px, 74%);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

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

.rail-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.04);
}

.rail-card-art {
  position: relative;
  width: 100%;
  height: 128px;
}

.rail-card-copy {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.rail-card-copy strong {
  font-size: 0.96rem;
}

.rail-card-copy span,
.profile-card span,
.message-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.rail--chips {
  grid-auto-columns: max-content;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.dashboard-search {
  margin-bottom: 2px;
}

.messages-pane {
  gap: 12px;
}

.message-card strong,
.profile-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.settings-list {
  display: grid;
  gap: 10px;
}

.settings-item {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
}

.mobile-tabs {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
  backdrop-filter: blur(14px);
}

.mobile-tab {
  min-height: 48px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.mobile-tab--active {
  background: rgba(242, 139, 68, 0.12);
  color: var(--accent-strong);
}

@media (min-width: 720px) {
  .quiz-shell {
    padding: 22px 18px 40px;
  }

  .quiz-header {
    grid-template-columns: 46px 1fr minmax(220px, 280px);
    margin-bottom: 16px;
  }

  .progress-wrap {
    grid-column: auto;
    justify-self: end;
    min-width: 220px;
  }

  .quiz-card {
    min-height: 680px;
  }

  .step {
    min-height: 680px;
    padding: 34px 34px 30px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
  }

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

  .options[data-many="true"] {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }

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

   .offer-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: start;
  }

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

  .checkout-summary,
  .checkout-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .rail {
    grid-auto-columns: minmax(200px, 28%);
  }

  .step-actions {
    width: fit-content;
    min-width: 240px;
  }

  .btn {
    width: auto;
    min-width: 220px;
  }
}

@media (min-width: 980px) {
  .quiz-shell {
    padding-inline: 20px;
  }

  .step {
    padding: 40px 40px 34px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-device {
    width: 220px;
  }

  .question-visual {
    height: 164px;
  }

  .info-visual {
    min-height: 320px;
  }
}
