:root {
  --funnel-shell-width: 393px;
  --funnel-shell-height: 852px;
  --funnel-bg: linear-gradient(135deg, #fbfcff 0%, #f6f3ff 46%, #eef4ff 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--dew-font-ui);
}

body.dew-funnel-body {
  background: #f4f2fb;
  color: var(--dew-color-text);
}

.funnel-preview {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.funnel-shell {
  position: relative;
  width: min(100%, var(--funnel-shell-width));
  min-height: min(var(--funnel-shell-height), 100dvh - 16px);
  background: var(--funnel-bg);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(87, 76, 168, 0.16);
}

.funnel-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.74), transparent 34%),
    radial-gradient(circle at 16% 90%, rgba(244, 214, 232, 0.42), transparent 34%);
  pointer-events: none;
}

.funnel-screen {
  position: relative;
  min-height: min(var(--funnel-shell-height), 100dvh - 16px);
  display: flex;
  flex-direction: column;
}

.splash-screen {
  align-items: center;
  justify-content: center;
  padding: 180px 32px 56px;
}

.splash-copy {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  color: #6c6f8b;
  font-size: 15px;
  font-weight: 600;
}

/* Keep the loading status below the complete brand lockup. The splash status
   and brand are separate layers, so centering both makes them overlap. */
html.auth-return-pending .splash-copy,
.funnel-shell:has(.funnel-brand-block.is-centered) .splash-copy {
  transform: translateY(170px);
}

.splash-spinner {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 3px solid rgba(123, 105, 218, 0.18);
  border-top-color: #7b69da;
  animation: auth-spin 0.9s linear infinite;
  box-shadow: 0 10px 24px rgba(123, 105, 218, 0.16);
}

html.auth-return-pending .funnel-brand-block.is-centered {
  transform: translateY(232px);
}

html.auth-return-pending #signin-screen {
  display: none !important;
}

html.auth-return-pending #splash-screen {
  display: flex !important;
}

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

.funnel-shell > .funnel-brand-block {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

.funnel-screen[hidden] {
  display: none;
}

.funnel-brand-block {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
  transition: transform 640ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.funnel-brand-block.is-centered {
  transform: translateY(310px);
}

.funnel-brand-block.is-compact {
  transform: translateY(14px);
}

.funnel-brand-mark {
  width: 148px;
  max-width: 48vw;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(87, 76, 168, 0.25));
  transition: width 640ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.funnel-brand-block.is-compact .funnel-brand-mark {
  width: 58px;
}

.funnel-wordmark {
  margin-top: 24px;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.funnel-brand-block.is-compact .funnel-wordmark {
  font-size: 22px;
  margin-top: 6px;
}

.funnel-wordmark strong {
  color: #5c49d5;
  font-weight: 700;
}

.funnel-wordmark span {
  color: #9f97ff;
}

.funnel-tagline {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 600;
  color: #7867d7;
}

.funnel-brand-block.is-compact .funnel-tagline {
  display: none !important;
}

.funnel-screen#signin-screen {
  justify-content: flex-end;
  padding-top: 110px;
}

.funnel-sheet {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 16px 26px 30px;
}

.funnel-handle {
  width: 56px;
  height: 5px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: rgba(205, 210, 231, 0.88);
}

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

.funnel-social-btn {
  min-height: 58px;
  font-size: 16.5px;
  font-weight: 700;
  border-radius: 18px;
}

.funnel-social-btn--light {
  background: #fff;
  color: var(--dew-color-text);
  border: 1.5px solid rgba(205, 210, 231, 0.9);
}

.funnel-social-btn--dark {
  background: #17141f;
  color: #fff;
}

.funnel-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.funnel-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 20px;
  color: var(--dew-color-muted);
  font-size: 14.5px;
  font-weight: 500;
}

.funnel-divider::before,
.funnel-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(205, 210, 231, 0.88);
}

.funnel-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #2d2b40;
}

.funnel-inline-note {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--dew-color-muted);
  font-size: 13px;
  font-weight: 600;
}

.funnel-inline-note svg {
  flex: 0 0 auto;
}

.funnel-inline-row {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 12px;
}

.funnel-country {
  padding-inline: 12px 36px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(111, 115, 145, 0.95) 50%),
    linear-gradient(135deg, rgba(111, 115, 145, 0.95) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.funnel-trust {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 2px 22px;
  color: #4e536f;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
}

.funnel-trust svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.funnel-submit {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  font-size: 17px;
}

.funnel-status {
  min-height: 20px;
  margin-top: 12px;
  text-align: center;
  color: var(--dew-color-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.funnel-status.is-error {
  color: #c2410c;
}

.funnel-status.is-success {
  color: #166534;
}

.funnel-legal {
  margin-top: 26px;
  text-align: center;
  color: var(--dew-color-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.funnel-corporate-info {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(111, 94, 174, 0.12);
  font-size: 11.5px;
  color: #7b7899;
  line-height: 1.45;
  text-align: center;
}

.funnel-corporate-info strong {
  color: #5345aa;
  font-weight: 600;
}

.verify-header {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
}

.verify-shell::before {
  background: radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.74), transparent 40%);
}

.verify-brand-block {
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;
  z-index: 1;
  align-items: center;
  padding: 0 28px;
  transform: none;
}

.verify-brand-block .funnel-brand-mark {
  width: 108px;
  max-width: 40vw;
}

.verify-brand-block .funnel-wordmark {
  margin-top: 20px;
  font-size: 36px;
}

.verify-screen {
  position: relative;
}

.verify-sheet {
  position: absolute;
  inset: 310px 0 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

.verify-back {
  width: 50px;
  height: 50px;
}

.verify-title {
  margin: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #5c49d5;
}

.verify-copy {
  margin: 22px 0 0;
  text-align: center;
  color: #4e536f;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.5;
}

.verify-copy strong {
  color: var(--dew-color-text);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.verify-code-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.verify-cell {
  width: 50px;
  height: 62px;
  border-radius: 16px;
  border: 1.5px solid rgba(205, 210, 231, 0.9);
  background: #fff;
  box-shadow: 0 2px 8px rgba(87, 76, 168, 0.05);
  color: var(--dew-color-text);
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  font-family: var(--dew-font-ui);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.verify-cell:focus,
.verify-cell.is-filled {
  border-color: rgba(109, 86, 216, 0.7);
  box-shadow: 0 0 0 3px rgba(109, 86, 216, 0.18);
}

.verify-footer {
  margin-top: auto;
  padding-bottom: 14px;
  text-align: center;
  color: #4e536f;
  font-size: 14.5px;
  font-weight: 500;
}

.verify-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dew-color-primary);
  font: inherit;
  font-weight: 700;
}

@media (max-width: 480px) {
  .funnel-preview {
    padding: 0;
  }

  .funnel-shell,
  .funnel-screen {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
  }

  .funnel-brand-block {
    padding-top: calc(env(safe-area-inset-top, 0px) + 20px);
  }

  .funnel-brand-block.is-centered {
    min-height: 360px;
  }

  .funnel-brand-block.is-compact {
    transform: translateY(0);
  }

  .funnel-brand-block.is-compact .funnel-brand-mark {
    width: 58px;
    max-width: 20vw;
    opacity: 1;
  }

  .funnel-brand-block.is-compact .funnel-wordmark {
    display: block;
    margin-top: 6px;
    font-size: 21px;
    line-height: 1;
  }

  .funnel-brand-block.is-compact .funnel-tagline {
    display: none;
  }

  #signin-screen {
    padding-top: calc(env(safe-area-inset-top, 0px) + 116px);
  }

  .funnel-sheet {
    padding-inline: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .verify-brand-block {
    top: calc(env(safe-area-inset-top, 0px) + 24px);
    padding-top: 0;
  }

  .verify-brand-block .funnel-brand-mark {
    width: 70px;
    max-width: 22vw;
  }

  .verify-brand-block .funnel-wordmark {
    margin-top: 6px;
    font-size: 24px;
    line-height: 1;
  }

  .verify-sheet {
    inset: 210px 0 0;
    min-height: 0;
  }

  .verify-copy {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.42;
  }

  .verify-code-row {
    gap: 7px;
    margin-top: 22px;
  }

  .verify-cell {
    width: 34px;
    height: 42px;
    border-radius: 11px;
    font-size: 21px;
  }

  .verify-footer {
    margin-top: 18px;
    padding-bottom: 0;
    font-size: 12px;
  }
}

.intro-stage-shell,
.onboarding-shell,
.results-shell,
.guide-shell {
  position: relative;
  min-height: min(var(--funnel-shell-height), 100dvh - 16px);
  display: flex;
  flex-direction: column;
  padding: 0 26px;
}

.intro-topbar,
.onboarding-topbar,
.results-topbar,
.guide-topbar {
  padding-top: 56px;
  display: grid;
  align-items: center;
}

.intro-topbar {
  grid-template-columns: 54px 1fr 54px;
}

.intro-skip {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--dew-color-muted);
  font-size: 15px;
  font-weight: 700;
}

.intro-stage-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.intro-copy {
  text-align: center;
  padding-top: 18px;
}

.intro-copy h1,
.onboarding-title,
.results-heading,
.guide-hero-copy h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #6b57dd;
}

.onboarding-title,
.results-heading {
  font-size: 24px;
}

.centered {
  text-align: center;
}

.intro-copy p,
.onboarding-copy,
.results-copy {
  margin: 14px auto 0;
  max-width: 330px;
  color: #4e536f;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.intro-dots,
.onboarding-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.intro-dot,
.onboarding-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(160, 167, 196, 0.55);
}

.intro-dot.active,
.onboarding-dot.active {
  width: 26px;
  background: #6d56d8;
}

.intro-actions,
.results-actions,
.guide-actions {
  padding-bottom: 40px;
}

.intro-orbit {
  position: relative;
  width: 290px;
  height: 290px;
}

.intro-bubble {
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 26px rgba(87, 76, 168, 0.16);
}

.intro-bubble.is-featured {
  width: 94px;
  height: 94px;
}

.intro-expert-visual,
.intro-insights-visual {
  position: relative;
  width: 100%;
  height: 320px;
}

.intro-expert-main {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 255px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 40px rgba(87, 76, 168, 0.18));
}

.intro-floating-card,
.intro-footer-card,
.intro-floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(87, 76, 168, 0.16);
}

.intro-metric-card {
  right: 10px;
  top: 12%;
  border-radius: 18px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.intro-metric-card.left {
  left: 8px;
  right: auto;
  top: 6%;
}

.intro-ring {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--dew-color-text);
  font-weight: 800;
  background:
    radial-gradient(circle at center, #fff 54%, transparent 55%),
    conic-gradient(#6d56d8 0 75%, #ece9ff 0);
}

.intro-sound-card {
  left: 6px;
  top: 46%;
  border-radius: 999px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.intro-bars {
  display: inline-flex;
  gap: 3px;
  align-items: end;
}

.intro-bars i {
  display: block;
  width: 3px;
  background: #6d56d8;
  border-radius: 999px;
}

.intro-bars i:nth-child(1) { height: 11px; }
.intro-bars i:nth-child(2) { height: 15px; }
.intro-bars i:nth-child(3) { height: 17px; }
.intro-bars i:nth-child(4) { height: 12px; }

.intro-footer-card {
  left: 50%;
  top: calc(50% + 128px);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.intro-footer-card img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.intro-footer-card div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.intro-footer-card strong {
  font-size: 13px;
}

.intro-footer-card span {
  font-size: 11px;
  color: var(--dew-color-muted);
}

.intro-footer-card em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #6d56d8;
  background: #f1edff;
  border-radius: 999px;
  padding: 6px 11px;
}

.intro-insights-phone-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 156px;
  border-radius: 26px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 26px 60px rgba(87, 76, 168, 0.22);
}

.intro-insights-phone {
  width: 100%;
  display: block;
  border-radius: 21px;
}

.intro-floating-pill {
  right: 6px;
  top: 42%;
  border-radius: 999px;
  padding: 10px 15px;
  background: #6d56d8;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.onboarding-topbar {
  grid-template-columns: 44px 1fr 44px;
}

.onboarding-back,
.results-back,
.guide-back,
.intro-arrow {
  width: 46px;
  height: 46px;
}

.onboarding-skip {
  border: none;
  background: transparent;
  color: var(--dew-color-muted);
  font-size: 13px;
  font-weight: 600;
}

.onboarding-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-top: 30px;
  padding-bottom: 16px;
}

.onboarding-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.onboarding-panel.wide {
  gap: 18px;
}

.onboarding-eyebrow {
  display: block;
  text-align: center;
  color: #4e536f;
  font-size: 14px;
  font-style: italic;
  line-height: 1.45;
}

.onboarding-main-input {
  height: 62px;
  font-size: 20px;
  padding-inline: 22px;
  box-shadow: 0 16px 34px rgba(87, 76, 168, 0.08);
}

.onboarding-dob-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 12px;
}

.onboarding-stack,
.onboarding-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onboarding-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  border: 1.5px solid rgba(205, 210, 231, 0.9);
  background: #fff;
  color: var(--dew-color-text);
  box-shadow: 0 2px 8px rgba(87, 76, 168, 0.04);
}

.onboarding-choice.selected {
  background: #f1edff;
  border-color: #6d56d8;
}

.onboarding-choice-check {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #d3d6e8;
  color: #fff;
}

.onboarding-choice.selected .onboarding-choice-check {
  background: #6d56d8;
  border-color: #6d56d8;
}

.focus-visual-card,
.image-choice-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border-radius: 18px;
  border: 1.5px solid rgba(205, 210, 231, 0.9);
  background: #fff;
  box-shadow: 0 2px 8px rgba(87, 76, 168, 0.04);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.focus-visual-card.selected,
.image-choice-card.selected {
  background: #f1edff;
  border-color: #6d56d8;
  box-shadow: 0 10px 24px rgba(98, 71, 217, 0.14);
}

.focus-visual-card:hover,
.image-choice-card:hover {
  transform: translateY(-2px);
}

.focus-visual-image {
  width: 100%;
  height: 148px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}

.focus-visual-copy,
.image-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 4px 4px;
}

.focus-visual-copy strong,
.image-choice-copy strong {
  font-size: 15px;
  color: var(--dew-color-text);
}

.focus-visual-copy span,
.image-choice-copy span {
  font-size: 12px;
  color: var(--dew-color-muted);
}

.breather-panel,
.trust-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 120px;
}

.onboarding-inline-loader {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.onboarding-inline-loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(109, 86, 216, 0.28);
  animation: onboarding-loader-pulse 1.2s ease-in-out infinite;
}

.onboarding-inline-loader-dot:nth-child(2) {
  animation-delay: 0.18s;
}

.onboarding-inline-loader-dot:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes onboarding-loader-pulse {
  0%, 100% {
    transform: translateY(0);
    background: rgba(109, 86, 216, 0.28);
  }
  50% {
    transform: translateY(-3px);
    background: rgba(109, 86, 216, 0.88);
  }
}

.breather-art {
  position: relative;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(122, 99, 232, 0.22) 0%, rgba(122, 99, 232, 0) 70%);
}

.breather-ripple {
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(122, 99, 232, 0.5);
  animation: pf-ripple 3.6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.breather-ripple.delay {
  animation-delay: 1.8s;
}

.breather-heart {
  position: relative;
  z-index: 1;
  color: #9781f1;
  font-size: 34px;
}

.breather-skip {
  margin-top: 28px;
  border: none;
  background: transparent;
  color: var(--dew-color-muted);
  font-size: 14px;
  font-weight: 600;
}

.image-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 12px;
}

.image-choice-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.onboarding-actions {
  position: sticky;
  bottom: 0;
  padding: 14px 0 22px;
  background: linear-gradient(180deg, rgba(237, 233, 254, 0) 0%, rgba(246, 243, 255, 0.98) 42%);
}

.results-shell {
  align-items: center;
}

.results-topbar {
  width: 100%;
  grid-template-columns: 46px 1fr 46px;
}

.results-main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
}

.results-ring-wrap {
  position: relative;
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(87, 76, 168, 0.16);
}

.results-ring-wrap svg {
  position: absolute;
  inset: 0;
}

.results-load {
  position: relative;
  text-align: center;
}

.results-load strong {
  display: block;
  font-size: 32px;
  color: #6b57dd;
}

.results-load span {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dew-color-muted);
}

.results-chip {
  margin-top: 30px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(87, 76, 168, 0.12);
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--dew-color-text);
}

.results-copy {
  max-width: 336px;
  text-align: center;
}

.results-rule {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
}

.results-rule::before,
.results-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(87, 76, 168, 0), rgba(87, 76, 168, 0.25));
}

.results-rule::after {
  background: linear-gradient(90deg, rgba(87, 76, 168, 0.25), rgba(87, 76, 168, 0));
}

.results-rule span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #6d56d8;
}

.guide-topbar {
  grid-template-columns: 46px 1fr 46px;
  padding: 56px 22px 16px;
}

.guide-heading {
  margin: 0;
  text-align: center;
  font-size: 23px;
  font-weight: 700;
}

.guide-avatar-badge {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #6d56d8;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  font-family: inherit;
  box-shadow: 0 6px 16px rgba(87, 76, 168, 0.28);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.guide-avatar-badge:hover,
.guide-avatar-badge:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(87, 76, 168, 0.34);
  outline: none;
}

.guide-avatar-badge:focus-visible {
  box-shadow: 0 0 0 4px rgba(109, 86, 216, 0.18), 0 9px 22px rgba(87, 76, 168, 0.34);
}

.guide-account-menu {
  position: relative;
  z-index: 60;
}

.guide-avatar-badge img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.guide-account-initials {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.guide-account-panel {
  position: fixed;
  top: max(82px, calc(env(safe-area-inset-top, 0px) + 66px));
  right: 12px;
  z-index: 25000;
  width: min(86vw, 320px);
  display: none;
  padding: 14px;
  border: 1px solid rgba(186, 192, 220, 0.52);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 50px rgba(75, 64, 124, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: left;
}

.guide-account-panel.open {
  display: block;
}

.guide-account-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(186, 192, 220, 0.36);
}

.guide-account-avatar-large {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6f3ff, #e9edff);
  color: #6d56d8;
  box-shadow: 0 8px 20px rgba(109, 86, 216, 0.12);
  font-size: 0.92rem;
  font-weight: 900;
}

.guide-account-avatar-large img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.guide-account-name {
  margin: 0;
  color: #19172a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.guide-account-id {
  margin: 3px 0 0;
  color: #72758e;
  font-size: 0.76rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.guide-account-details {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

.guide-account-detail {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #72758e;
  font-size: 0.78rem;
}

.guide-account-detail strong {
  color: #19172a;
  font-weight: 600;
  text-align: right;
}

.guide-account-action {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: #b42318;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.guide-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 22px 120px;
  scrollbar-width: none;
}

.guide-scroll::-webkit-scrollbar {
  display: none;
}

.guide-hero-card {
  position: relative;
  min-height: 150px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(87, 76, 168, 0.14);
  overflow: hidden;
  isolation: isolate;
}

.guide-hero-card.is-clickable {
  cursor: pointer;
}

.guide-hero-photo {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 118px;
  height: 100%;
  background-size: cover;
  background-position: center top;
  border-radius: 18px 0 0 18px;
  z-index: 1;
}

.guide-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 76% 48%, rgba(237, 233, 254, 0.75), rgba(237, 233, 254, 0) 58%);
  z-index: 0;
}

.guide-hero-copy {
  position: relative;
  z-index: 2;
  padding: 15px 132px 15px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.guide-match-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: #57946f;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.guide-hero-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #6d56d8;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(87, 76, 168, 0.14);
  cursor: pointer;
  z-index: 3;
}

.guide-hero-cta span {
  font-size: 22px;
  line-height: 1;
  transform: translateX(1px);
}

.guide-hero-copy h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.guide-hero-copy p,
.guide-hero-copy .guide-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #6d56d8;
}

.guide-hero-copy .guide-meta {
  color: var(--dew-color-text);
}

.guide-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.topic-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 8px 14px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  background: #fff;
  box-shadow: 0 6px 18px rgba(87, 76, 168, 0.08);
}

.topic-tile.active {
  border-color: #6d56d8;
  box-shadow: 0 8px 22px rgba(98, 71, 217, 0.16);
}

.topic-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #2d2b40;
}

.topic-tile-icon svg {
  width: 30px;
  height: 30px;
}

.guide-list-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.guide-list-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  background: #fff;
  box-shadow: 0 6px 18px rgba(87, 76, 168, 0.08);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.guide-list-card.selected {
  border-color: #8870ff;
  background: #f7f4ff;
  box-shadow: 0 10px 24px rgba(98, 71, 217, 0.12);
}

.guide-list-card:hover {
  transform: translateY(-1px);
}

.guide-list-card:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  box-shadow: 0 4px 12px rgba(87, 76, 168, 0.05);
}

.guide-list-card:disabled:hover {
  transform: none;
}

.guide-list-photo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background-size: cover;
  background-position: top center;
  flex: none;
}

.guide-list-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.guide-list-copy strong {
  font-size: 16px;
}

.guide-list-copy em {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #6d56d8;
}

.guide-list-copy .guide-list-meta {
  font-size: 12.5px;
  color: var(--dew-color-muted);
}

.guide-availability {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  color: #6f7391;
}

.guide-availability > span {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 999px;
  background: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.12);
}

.guide-availability.is-online { color: #237a4b; }
.guide-availability.is-online > span { background: #35a66f; box-shadow: 0 0 0 3px rgba(53, 166, 111, 0.13); }
.guide-availability.is-busy { color: #a86708; }
.guide-availability.is-busy > span { background: #e6a31a; box-shadow: 0 0 0 3px rgba(230, 163, 26, 0.14); }
.guide-availability.is-offline { color: #7b8196; }

.guide-list-arrow {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #f3efff;
  color: #6d56d8;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
}

.guide-list-arrow {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #f3efff;
  color: #6d56d8;
  font-size: 22px;
}

/* Guide Match is an app screen, not a phone-sized funnel preview. */
body.guide-match-page .funnel-preview {
  min-height: 100dvh;
  padding: 0;
  align-items: stretch;
}

body.guide-match-page .funnel-shell {
  width: 100%;
  min-height: 100dvh;
  border-radius: 0;
  box-shadow: none;
}

body.guide-match-page .guide-shell {
  width: min(1180px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 92px;
}

body.guide-match-page .guide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(28px, env(safe-area-inset-top, 0px)) 12px 14px;
}

body.guide-match-page .guide-topbar-leading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body.guide-match-page .guide-heading {
  font-size: 1.18rem;
  font-weight: 700;
  padding: 0 12px 4px;
  margin: 0;
}

body.guide-match-page .guide-account-menu {
  justify-self: end;
}

body.guide-match-page .guide-topbar.no-back-control .guide-heading {
  text-align: left;
  padding-left: 12px;
}

body.guide-match-page .guide-topbar.no-back-control::before {
  content: none;
  display: none;
}

body.guide-match-page .guide-topbar.no-back-control .guide-account-menu {
  /* no grid overrides needed in flex */
}

body.guide-match-page .guide-back[hidden] {
  display: none !important;
}

body.guide-match-page .guide-topbar-logo,
body.guide-match-page .guide-logo-button img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 0;
}

body.guide-match-page .guide-topbar-brand-name {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.05;
}

body.guide-match-page .guide-topbar-plus-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(109, 86, 216, 0.22);
  background: linear-gradient(135deg, rgba(118, 92, 240, 0.08), rgba(90, 62, 216, 0.06));
  color: #6d56d8;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.guide-match-page .guide-scroll {
  padding-left: 12px;
  padding-right: 12px;
}

.guide-page-nav {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  width: min(460px, calc(100% - 20px));
  min-height: 62px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(75, 64, 124, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.guide-page-nav[hidden],
.guide-page-nav.is-hidden {
  display: none !important;
}

.guide-page-nav a {
  flex: 0 0 auto;
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  border-radius: 999px;
  color: #777b96;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  transition: width 340ms cubic-bezier(0.22, 0.61, 0.36, 1), padding 340ms cubic-bezier(0.22, 0.61, 0.36, 1), background-color 260ms ease, color 200ms ease, box-shadow 260ms ease;
}

.guide-page-nav a svg {
  flex: none;
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.guide-page-nav a span {
  display: block;
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transform: translateX(-4px);
  transition: max-width 340ms cubic-bezier(0.22, 0.61, 0.36, 1), margin-left 340ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 260ms ease, transform 340ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.guide-page-nav a.active {
  color: #634ed6;
  width: auto;
  min-width: 94px;
  padding: 0 16px;
  background: #e9e2ff;
  box-shadow: 0 4px 12px rgba(87, 76, 168, 0.14);
}

.guide-page-nav a.active span {
  max-width: 90px;
  margin-left: 8px;
  opacity: 1;
  transform: translateX(0);
}

.guide-page-nav a:hover {
  color: #634ed6;
  background: rgba(241, 237, 255, 0.72);
}

.guide-page-nav a:focus-visible {
  outline: 3px solid rgba(99, 78, 214, 0.25);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .guide-page-nav a,
  .guide-page-nav a span {
    transition: none;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.guide-match-page .guide-shell {
    width: min(820px, 100%);
    padding-inline: clamp(28px, 5vw, 52px);
  }

  body.guide-match-page .guide-scroll {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "topics"
      "list";
    align-content: start;
    gap: 18px;
    padding-inline: 0;
  }

  body.guide-match-page .guide-hero-card {
    grid-area: hero;
    position: relative;
    top: auto;
    align-self: start;
    width: 100%;
    min-height: 190px;
    height: 190px;
  }

  body.guide-match-page .guide-hero-photo {
    width: min(240px, 36%);
  }

  body.guide-match-page .guide-hero-copy {
    padding: 24px clamp(220px, 38%, 280px) 24px 24px;
  }

  body.guide-match-page .guide-topic-grid {
    grid-area: topics;
    margin-top: 0;
  }

  body.guide-match-page .guide-list-stack {
    grid-area: list;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }
}

@media (min-width: 1200px) {
  body.guide-match-page .guide-shell {
    padding-inline: clamp(32px, 5vw, 72px);
  }

  body.guide-match-page .guide-scroll {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
    grid-template-areas: "hero topics" "hero list";
    align-content: start;
    gap: 22px 30px;
    padding-inline: 0;
  }

  body.guide-match-page .guide-hero-card {
    grid-area: hero;
    align-self: start;
    height: 330px;
    min-height: 330px;
    max-height: 330px;
    position: sticky;
    top: 24px;
  }

  body.guide-match-page .guide-hero-photo { width: 54%; }
  body.guide-match-page .guide-hero-copy { padding: 28px 48% 28px 26px; }
  body.guide-match-page .guide-topic-grid { grid-area: topics; margin-top: 0; }
  body.guide-match-page .guide-list-stack {
    grid-area: list;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }
}
