/* ReRoot, Everitt Ventures product styling (tokens from css/shared.css) */

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--soft-white);
  color: var(--steel);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: 0;
}

.screen {
  min-height: 100vh;
  position: relative;
  display: none;
  overflow: hidden;
}

.screen.active {
  display: block;
}

.brand {
  position: absolute;
  z-index: 5;
  top: 1.5rem;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ivory);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.92;
}

.brand strong,
.mini-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
}

.brand span,
.mini-brand span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
}

.signin {
  position: absolute;
  z-index: 5;
  top: 1.75rem;
  right: 5vw;
  background: transparent;
  color: var(--soft-white);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  font-weight: 400;
}

.hero-bg,
.result-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(46, 65, 86, 0.1) 0%, rgba(46, 65, 86, 0.58) 100%),
    linear-gradient(135deg, rgba(180, 196, 212, 0.18) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  max-width: 48rem;
  margin: 0 auto;
  padding: 8rem 5vw 5rem;
  text-align: center;
  color: var(--ivory);
  display: grid;
  justify-items: center;
  align-content: center;
}

.kicker {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
}

h1, h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  line-height: 0.92;
  font-weight: 300;
  color: var(--soft-white);
}

.subline {
  margin: 1.25rem auto 1.75rem;
  max-width: 28rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.primary-btn,
.light-btn,
.price-card a {
  display: inline-block;
  min-width: 220px;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  background: var(--slate-deep);
  color: var(--soft-white);
  border: 1px solid var(--slate-deep);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  font-weight: 400;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glass);
}

.primary-btn span {
  margin-left: 0.5rem;
}

.primary-btn:hover,
.light-btn:hover,
.price-card a:hover {
  transform: translateY(-1px);
  background: var(--slate);
  border-color: var(--slate);
}

.hero-content small {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Quiz */
.quiz-screen {
  background: var(--soft-white);
  grid-template-columns: minmax(320px, 42vw) 1fr;
}

.quiz-screen.active {
  display: grid;
}

.quiz-panel {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 5rem 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--soft-white);
  border-right: 1px solid var(--glass-border);
}

.mini-brand {
  position: absolute;
  top: 1.5rem;
  left: 5vw;
}

.mini-brand strong {
  font-size: 1.35rem;
}

.progress {
  width: 100%;
  max-width: 10rem;
  height: 2px;
  background: rgba(200, 212, 224, 0.45);
  margin-bottom: 1.5rem;
}

.progress span {
  display: block;
  height: 100%;
  width: 12.5%;
  background: var(--blue-accent);
  transition: width 0.3s ease;
}

.quiz-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.05;
  font-weight: 300;
  max-width: 24rem;
  margin-bottom: 1.75rem;
  color: var(--slate-deep);
}

.answers {
  display: grid;
  gap: 0;
  max-width: 28rem;
}

.answer {
  width: 100%;
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
  background: transparent;
  color: var(--slate-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
}

.answer::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 1px solid var(--taupe);
  border-radius: 50%;
  flex-shrink: 0;
}

.answer.selected::after {
  background: var(--charcoal);
  box-shadow: inset 0 0 0 3px var(--ivory);
}

.quiz-actions {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 28rem;
}

.ghost-btn {
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--steel);
  font-size: 0.65rem;
  font-weight: 400;
}

.circle-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--slate-deep);
  color: var(--soft-white);
  font-size: 1.25rem;
}

.quiz-image {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  transition: background-image 0.4s ease;
}

/* Results */
.result-screen {
  color: var(--ivory);
  min-height: 100vh;
}

.result-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(46, 65, 86, 0.72) 0%, rgba(46, 65, 86, 0.28) 50%, rgba(46, 65, 86, 0.62) 100%),
    linear-gradient(180deg, rgba(180, 196, 212, 0.12) 0%, rgba(46, 65, 86, 0.52) 100%);
}

.result-main {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  padding: 7rem 5vw 14rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 36rem;
}

.result-main h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 3.5rem);
  line-height: 0.92;
  font-weight: 300;
  text-transform: none;
  color: var(--soft-white);
  word-break: break-word;
}

.match-score {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin-top: 0.75rem;
  color: var(--stone);
}

.city-poem {
  max-width: 28rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
  margin: 1rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.82);
}

.light-btn {
  background: var(--soft-white);
  color: var(--slate-deep);
  min-width: auto;
  box-shadow: none;
  border-color: var(--soft-white);
}

.score-stack {
  position: absolute;
  z-index: 4;
  top: 38%;
  right: 5vw;
  display: grid;
  gap: 0.85rem;
  min-width: 220px;
  font-size: 0.9rem;
}

.score-stack div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.score-stack b {
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--stone);
}

.match-strip {
  position: absolute;
  z-index: 5;
  left: 5vw;
  right: 5vw;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 9rem;
  border-radius: 1.5rem 1.5rem 0 0;
  overflow: hidden;
  border: 1px solid rgba(200, 212, 224, 0.28);
  border-bottom: none;
  box-shadow: var(--shadow-glass);
}

.strip-card {
  position: relative;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--ivory);
  isolation: isolate;
  border: none;
  cursor: pointer;
}

.strip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(46, 65, 86, 0.08) 0%, rgba(46, 65, 86, 0.68) 100%);
}

.strip-card.locked::before {
  background: rgba(46, 65, 86, 0.72);
}

.strip-card span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.strip-card small {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  opacity: 0.9;
}

.arrow {
  position: absolute;
  z-index: 6;
  bottom: 10rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(46, 65, 86, 0.35);
  color: var(--soft-white);
}

.arrow.left { left: 1.5rem; }
.arrow.right { right: 1.5rem; }

/* Passport / pricing */
.passport {
  padding: 6rem 6vw;
  background: linear-gradient(180deg, rgba(200, 212, 224, 0.14) 0%, var(--soft-white) 100%);
  border-top: 1px solid var(--glass-border);
}

.passport-intro {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.dark-kicker {
  color: var(--steel);
}

.passport h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--charcoal);
}

.passport p {
  max-width: 32rem;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.6;
  color: var(--taupe);
}

.passport ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
  color: var(--charcoal);
  font-size: 0.92rem;
}

.passport li::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 1px;
  margin-right: 0.65rem;
  vertical-align: middle;
  background: var(--steel);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 56rem;
}

.price-card {
  border: 1px solid var(--glass-border);
  border-radius: 0;
  padding: 2rem 1.75rem;
  text-align: center;
  background: var(--soft-white);
  box-shadow: none;
}

.price-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 300;
  margin-bottom: 0.75rem;
  color: var(--slate-deep);
}

.price-card.featured-plan {
  border-color: var(--slate-deep);
  box-shadow: var(--shadow-soft);
}

.price-card strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 300;
  color: var(--slate-deep);
}

.price-card span,
.price-card small {
  display: block;
  color: var(--taupe);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.price-card a {
  display: block;
  min-width: 0;
  width: 100%;
  margin-top: 1.25rem;
}

.footer {
  padding: 2.75rem 6vw;
  background: var(--bg-cool);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

.footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer a:hover {
  color: var(--slate-deep);
}

@media (max-width: 900px) {
  .brand {
    top: 1rem;
    left: 1.25rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 1.35rem;
  }

  .signin {
    top: 1.25rem;
    right: 1.25rem;
  }

  .hero-content {
    padding: 7rem 1.25rem 4rem;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .subline {
    font-size: 1rem;
  }

  .quiz-screen.active {
    display: block;
  }

  .quiz-panel {
    min-height: auto;
    padding: 5.5rem 1.25rem 2rem;
    border-right: none;
    border-bottom: 1px solid var(--stone);
  }

  .mini-brand {
    left: 1.25rem;
  }

  .quiz-panel h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .quiz-image {
    min-height: 28vh;
  }

  .result-main {
    padding: 6rem 1.25rem 11rem;
    max-width: 100%;
  }

  .result-main h2 {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
    line-height: 1;
  }

  .match-score {
    font-size: clamp(1.25rem, 5vw, 1.65rem);
  }

  .city-poem {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .score-stack {
    display: none;
  }

  .match-strip {
    left: 0;
    right: 0;
    height: 7.5rem;
    grid-template-columns: repeat(4, 72%);
    overflow-x: auto;
    border-radius: 0;
  }

  .strip-card span {
    font-size: 1.15rem;
  }

  .arrow {
    display: none;
  }

  .passport {
    padding: 3.5rem 1.25rem;
  }

  .passport h2 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 430px) {
  .result-main {
    padding-bottom: 10rem;
  }

  .match-strip {
    height: 6.5rem;
  }
}
