:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f7f7f8;
  --muted: rgba(247, 247, 248, 0.62);
  --pink: #ff2fb3;
  --pink-soft: #ff74d4;
  --coral: #ff5f7e;
  --cyan: #42f5ff;
  --violet: #7c2cff;
  --deep: #08050b;
  --surface: rgba(14, 10, 18, 0.78);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #000;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button {
  border: 0;
  border-radius: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.screen-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 47, 179, 0.34), transparent 34%),
    radial-gradient(circle at 8% 18%, rgba(66, 245, 255, 0.13), transparent 26%),
    radial-gradient(circle at 100% 100%, rgba(124, 44, 255, 0.26), transparent 30%),
    linear-gradient(180deg, #050106 0%, #0c0612 52%, #150818 100%);
}

.screen-shell::before,
.screen-shell::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 47, 179, 0.17), rgba(66, 245, 255, 0.08));
  filter: blur(68px);
  pointer-events: none;
  animation: ambientPulse 7s ease-in-out infinite alternate;
}

.screen-shell::before {
  left: -112px;
  top: -96px;
  width: 288px;
  height: 288px;
}

.screen-shell::after {
  right: -80px;
  bottom: -96px;
  width: 320px;
  height: 320px;
  animation-delay: -2.5s;
}

.funnel {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  padding: 28px 8px 16px;
  animation: pageIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.funnel::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(237, 77, 255, 0.22) 0 1px, transparent 1.2px);
  background-position: 18px 24px, 78px 96px;
  background-size: 150px 150px, 220px 220px;
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 86%, transparent);
  animation: starDrift 24s linear infinite;
}

.intro-copy {
  text-align: center;
}

.intro-copy h1 {
  margin: 0;
  color: #f7f7f8;
  font-size: clamp(35px, 7.2vw, 48px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
  text-shadow:
    0 0 24px rgba(237, 77, 255, 0.28),
    0 12px 42px rgba(0, 0, 0, 0.8);
}

.intro-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.72);
}

.hero-grid {
  display: grid;
  width: min(768px, calc(100vw - 16px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.topbar {
  display: grid;
  width: min(592px, calc(100vw - 16px));
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  min-height: 44px;
  margin-bottom: 12px;
}

.back-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.back-button:hover,
.back-button:focus-visible {
  border-color: rgba(237, 77, 255, 0.58);
  background: rgba(237, 77, 255, 0.14);
  transform: translateX(-2px);
}

.flow-title {
  margin: 0;
  text-align: center;
  color: #f7f7f8;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(237, 77, 255, 0.2);
}

.question {
  width: min(592px, calc(100vw - 16px));
  margin: 8px auto 24px;
  text-align: center;
  color: #f7f7f8;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.18;
  text-shadow:
    0 0 24px rgba(237, 77, 255, 0.22),
    0 10px 34px rgba(0, 0, 0, 0.7);
}

.answer-grid {
  display: grid;
  width: min(592px, calc(100vw - 16px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hair-grid {
  width: min(900px, calc(100vw - 16px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hair-grid .image-card {
  min-height: 250px;
}

.answer-grid.list {
  grid-template-columns: 1fr;
  gap: 12px;
}

.ethnicity-screen {
  padding-top: 16px;
}

.ethnicity-screen .topbar {
  display: none;
}

.ethnicity-screen .question {
  width: min(792px, calc(100vw - 32px));
  margin: 0 auto 34px;
  font-size: clamp(38px, 5vw, 52px);
  line-height: 1.1;
}

.ethnicity-list {
  display: flex;
  max-height: none;
  flex-direction: row;
  width: min(792px, calc(100vw - 32px));
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  padding: 2px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 47, 179, 0.75) rgba(255, 255, 255, 0.08);
}

.ethnicity-list::-webkit-scrollbar {
  height: 8px;
}

.ethnicity-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.ethnicity-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink), var(--violet));
}

.image-card,
.list-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #000;
  outline: none;
  transform: translateY(0);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease, box-shadow 260ms ease;
}

.image-card {
  --shine-opacity: 0;
}

.image-card {
  min-height: 257.5px;
  border-radius: 14px;
}

.hero-card {
  min-height: 526.5px;
  border-radius: 18px;
}

.list-card {
  display: flex;
  min-height: 65.5px;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.4)),
    var(--thumb);
  background-position: center;
  background-size: cover;
  border-radius: 16px;
}

.ethnicity-card {
  flex: 0 0 min(340px, 78vw);
  min-height: 360px;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018), transparent 45%),
    #0b0b0c;
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  scroll-snap-align: center;
}

.ethnicity-card:first-child,
.ethnicity-card:hover,
.ethnicity-card:focus-visible {
  border-color: var(--pink);
  background:
    radial-gradient(circle at 68% 0%, rgba(66, 245, 255, 0.13), transparent 42%),
    radial-gradient(circle at 18% 50%, rgba(255, 47, 179, 0.16), transparent 38%),
    linear-gradient(90deg, rgba(255, 95, 126, 0.08), transparent 58%),
    #120816;
  box-shadow:
    0 22px 62px rgba(255, 47, 179, 0.18),
    0 0 34px rgba(66, 245, 255, 0.08),
    inset 0 0 0 1px rgba(255, 116, 212, 0.2);
}

.ethnicity-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  width: 100%;
  min-width: 100%;
  place-items: end center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, var(--coral), var(--pink) 52%, var(--violet));
  box-shadow: inset -18px 0 42px rgba(0, 0, 0, 0.16);
}

.ethnicity-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22));
  transition: transform 280ms ease;
}

.image-card img,
.image-card .generated-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--position, center);
  transform: scale(1.015);
  filter: saturate(1.03) contrast(1.03);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease;
}

.generated-bg {
  background:
    radial-gradient(circle at var(--light-x, 50%) 20%, rgba(237, 77, 255, 0.35), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.22)),
    var(--thumb);
  background-position: center;
  background-size: cover;
}

.image-card::before,
.list-card::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: inherit;
  pointer-events: none;
}

.image-card::before {
  background: linear-gradient(135deg, rgba(255, 47, 179, 0.65), transparent 28%, transparent 66%, rgba(66, 245, 255, 0.5)) border-box;
  border: 1px solid transparent;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 240ms ease;
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6) 18%, transparent 48%),
    linear-gradient(125deg, rgba(255, 47, 179, 0.23), transparent 40%),
    radial-gradient(circle at 80% 15%, rgba(66, 245, 255, 0.12), transparent 28%);
}

.image-card .shine-sweep {
  position: absolute;
  inset: -45% -70%;
  z-index: 2;
  background:
    linear-gradient(
      115deg,
      transparent 37%,
      rgba(255, 255, 255, 0.08) 44%,
      rgba(255, 255, 255, 0.58) 50%,
      rgba(66, 245, 255, 0.2) 54%,
      transparent 63%
    );
  opacity: 0;
  pointer-events: none;
  transform: translateX(-52%) rotate(8deg);
}

.image-card .card-label::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 50%;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(66, 245, 255, 0.9), rgba(255, 47, 179, 0.95), transparent);
  transform: translateX(-50%);
}

.card-label {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex;
  min-height: 74px;
  align-items: flex-end;
  justify-content: center;
  padding: 0 14px 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.58) 52%, transparent);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.92),
    0 0 18px rgba(237, 77, 255, 0.34);
}

.list-label {
  position: relative;
  z-index: 3;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 2px 18px #000;
}

.ethnicity-card .list-label {
  z-index: 3;
  width: 100%;
  padding: 72px 22px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.5) 58%, transparent);
  color: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  text-align: center;
  text-shadow: none;
  transition: color 180ms ease, transform 180ms ease;
}

.ethnicity-card:first-child .list-label,
.ethnicity-card:hover .list-label,
.ethnicity-card:focus-visible .list-label {
  color: var(--pink-soft);
  text-shadow: 0 0 20px rgba(255, 47, 179, 0.28);
}

.image-card:hover,
.image-card:focus-visible,
.list-card:hover,
.list-card:focus-visible {
  transform: translateY(-5px);
  filter: saturate(1.08);
  box-shadow:
    0 26px 76px rgba(0, 0, 0, 0.54),
    0 0 48px rgba(255, 47, 179, 0.2),
    0 0 24px rgba(66, 245, 255, 0.08),
    inset 0 0 0 1px rgba(255, 116, 212, 0.2);
}

.image-card:hover::before,
.image-card:focus-visible::before {
  opacity: 1;
}

.image-card:hover img,
.image-card:focus-visible img,
.image-card:hover .generated-bg,
.image-card:focus-visible .generated-bg {
  transform: scale(1.075);
}

.image-card:hover .shine-sweep,
.image-card:focus-visible .shine-sweep {
  animation: shineSweep 1.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ethnicity-card:hover .ethnicity-thumb img,
.ethnicity-card:focus-visible .ethnicity-thumb img {
  transform: scale(1.08);
}

.ethnicity-card:hover .list-label,
.ethnicity-card:focus-visible .list-label {
  transform: translateY(-4px);
}

.loading-screen {
  display: grid;
  width: min(592px, calc(100vw - 16px));
  min-height: calc(100vh - 120px);
  place-items: center;
  text-align: center;
}

.loader-ring {
  width: 118px;
  height: 118px;
  margin: 0 auto 22px;
  border: 9px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--pink-soft);
  border-radius: 999px;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 48px rgba(237, 77, 255, 0.26);
}

.loading-screen h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.loading-screen p {
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.5;
}

.start-button {
  min-height: 56px;
  width: min(360px, 100%);
  margin-top: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), var(--pink), var(--violet));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 50px rgba(237, 77, 255, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.start-button:hover,
.start-button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 24px 64px rgba(255, 47, 179, 0.38),
    0 0 30px rgba(66, 245, 255, 0.14);
}

.scroll-screen {
  min-height: 100vh;
  overflow-y: auto;
  padding-bottom: 48px;
}

.step-subtitle {
  width: min(592px, calc(100vw - 16px));
  margin: -14px auto 22px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  line-height: 1.45;
}

.multi-grid {
  width: min(980px, calc(100vw - 16px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.multi-card {
  min-height: 250px;
}

.multi-card.is-selected {
  box-shadow:
    0 26px 76px rgba(255, 47, 179, 0.24),
    0 0 30px rgba(66, 245, 255, 0.12),
    inset 0 0 0 2px var(--pink);
}

.check-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.54);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(255, 47, 179, 0.3);
}

.multi-card.is-selected .check-badge {
  background: linear-gradient(135deg, var(--coral), var(--pink), var(--violet));
}

.continue-button {
  margin-top: 24px;
}

.multi-list-panel,
.traits-panel,
.login-card,
.pricing-card {
  display: grid;
  width: min(520px, calc(100vw - 24px));
  gap: 12px;
}

.multi-list-option,
.trait-row,
.login-card input,
.summary-field input,
.summary-details textarea {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(9, 6, 14, 0.8);
  color: #fff;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.32);
}

.multi-list-option {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  text-align: left;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.multi-list-option:hover,
.multi-list-option:focus-visible,
.multi-list-option.is-selected {
  border-color: var(--pink);
  background:
    radial-gradient(circle at 80% 0%, rgba(66, 245, 255, 0.12), transparent 34%),
    rgba(255, 47, 179, 0.12);
  transform: translateY(-2px);
}

.option-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.check-dot {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
}

.interstitial-card,
.boolean-preview {
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.5), 0 0 44px rgba(255, 47, 179, 0.16);
}

.interstitial-card img,
.boolean-preview img {
  display: block;
  width: 100%;
  height: min(52vh, 460px);
  object-fit: cover;
  object-position: top center;
}

.trait-row {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.trait-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
}

.trait-value {
  color: var(--pink-soft);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--pink);
}

.boolean-actions {
  display: flex;
  width: min(420px, calc(100vw - 32px));
  gap: 12px;
  margin-top: 24px;
}

.ghost-action {
  flex: 1;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
}

.wide-action {
  width: 100%;
}

.boolean-actions .start-button {
  flex: 1;
  margin-top: 0;
}

.progress-list {
  display: grid;
  gap: 10px;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.progress-list b {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.loading-kicker {
  color: var(--pink-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.summary-shell,
.checkout-shell,
.login-shell {
  width: min(900px, calc(100vw - 24px));
}

.summary-shell .question span {
  color: var(--pink-soft);
}

.summary-card {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 22px;
  background: rgba(11, 7, 16, 0.78);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.summary-preview {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 47, 179, 0.2), transparent 34%),
    #07050a;
}

.summary-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(9px);
  transform: scale(1.08);
}

.ai-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  filter: blur(6px) saturate(1.1) brightness(0.8);
}

.ai-preview-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.ai-open-layer {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 3;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.66);
  text-align: center;
  backdrop-filter: blur(14px);
}

.ai-open-layer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.mini-action {
  min-height: 42px;
  margin-top: 0;
  padding: 0 16px;
  text-decoration: none;
}

.ai-prompt-box {
  max-height: 92px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.lock-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.24);
  font-size: 42px;
}

.summary-details {
  display: grid;
  gap: 14px;
}

.summary-field {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.summary-field input,
.login-card input {
  min-height: 52px;
  padding: 0 16px;
  font: inherit;
}

.summary-details textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
  font: inherit;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-chips span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.pricing-card,
.login-card {
  margin: 0 auto;
  padding: 24px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 900;
}

.price-row strong {
  color: var(--pink-soft);
  font-size: 34px;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 12px 16px;
  background: rgba(10, 8, 14, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(16px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

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

@keyframes ambientPulse {
  from {
    opacity: 0.76;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 1;
    transform: translate3d(18px, -14px, 0) scale(1.08);
  }
}

@keyframes starDrift {
  from {
    background-position: 18px 24px, 78px 96px;
  }
  to {
    background-position: 178px 264px, -102px 316px;
  }
}

@keyframes shineSweep {
  0% {
    opacity: 0;
    transform: translateX(-58%) rotate(8deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(58%) rotate(8deg);
  }
}

@media (min-width: 900px) {
  .funnel {
    padding-top: 34px;
  }

  .hero-grid {
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .funnel {
    padding-top: 24px;
  }

  .intro-copy h1 {
    font-size: 35px;
  }

  .hero-grid,
  .answer-grid {
    gap: 8px;
  }

  .hair-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hair-grid .image-card {
    min-height: 190px;
  }

  .hair-grid .card-label {
    min-height: 62px;
    padding: 0 8px 16px;
    font-size: 14px;
  }

  .hero-card {
    min-height: 526.5px;
  }

  .image-card {
    min-height: 232px;
  }

  .question {
    margin-bottom: 18px;
    font-size: 21px;
  }

  .ethnicity-screen {
    padding-top: 20px;
  }

  .ethnicity-screen .topbar {
    display: grid;
  }

  .ethnicity-screen .question {
    margin: 8px auto 20px;
    font-size: 32px;
  }

  .ethnicity-list {
    width: min(592px, calc(100vw - 16px));
    max-height: none;
    gap: 12px;
  }

  .ethnicity-card {
    flex-basis: min(280px, 82vw);
    min-height: 330px;
  }

  .ethnicity-thumb {
    width: 100%;
    min-width: 100%;
  }

  .ethnicity-thumb img {
    width: 100%;
    height: 100%;
  }

  .ethnicity-card .list-label {
    padding: 68px 20px 22px;
    font-size: 19px;
  }

  .multi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(592px, calc(100vw - 16px));
  }

  .multi-card {
    min-height: 220px;
  }

  .boolean-actions,
  .summary-card {
    grid-template-columns: 1fr;
  }

  .boolean-actions {
    flex-direction: column;
  }

  .summary-card {
    padding: 16px;
  }

  .summary-preview {
    width: min(260px, 100%);
    margin: 0 auto;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

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