:root {
  --brand-colors--titan-white: #e4e2e9;
  --brand-colors--magnolia: #e8e4f2;
  --brand-colors--purple: #4225a6;
  --brand-colors--purple-light: #d1cae5;
  --brand-colors--purple-mid: #9b7eff;
  --brand-colors--razzmatazz-pink: #d51254;
  --brand-colors--slate-gray: #696670;
  --brand-colors--grey: #565656;
  --brand-colors--white: #ffffff;
  --111: #111111;
  --1b1b1b: #1b1b1b;
  --nav-surface: rgba(236, 234, 241, 0.9);
  --site-max: 108rem;
  --nav-max: 68rem;
  --site-gutter: clamp(1.5rem, 7vw, 9.5rem);
  --grid-gap: 20px;
}

* {
  box-sizing: border-box;
}

html {
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--brand-colors--titan-white);
  color: var(--1b1b1b);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

.page-wrapper {
  min-height: 100vh;
  overflow-x: hidden;
}

.nav {
  z-index: 90;
  width: auto;
  padding-top: 0;
  padding-bottom: 0.75rem;
  color: var(--111);
  background-color: rgba(0, 0, 0, 0);
  position: sticky;
  top: 0;
}

.nav-padding {
  padding-left: 2rem;
  padding-right: 2rem;
}

.nav-container {
  width: 100%;
  max-width: var(--nav-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0.35rem 0.75rem 0.35rem 1rem;
  border-radius: 0.75rem;
  background-color: var(--nav-surface);
  box-shadow: rgba(0, 0, 0, 0.12) 0 0 16px;
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: center;
}

.nav-logo {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  width: 96px;
  min-height: 32px;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.nav-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-menu {
  grid-column: 8 / 13;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}

.nav-link {
  flex: 0 0 auto;
  padding: 0.7rem 0.85rem;
  color: var(--brand-colors--slate-gray);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.current {
  color: var(--brand-colors--razzmatazz-pink);
}

.nav-link.current {
  font-weight: 600;
}

.main-wrapper {
  min-height: auto;
}

.confidence-section {
  min-height: calc(100svh - 4rem);
  padding: clamp(3.75rem, 7vh, 5.25rem) var(--site-gutter) clamp(3.75rem, 6.5vh, 5rem);
}

.confidence-container {
  width: 100%;
  max-width: var(--site-max);
  height: auto;
  min-height: 0;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3.75rem, 6.5vh, 5rem);
}

.confidence-intro {
  width: 100%;
  max-width: 76rem;
  margin: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand-colors--razzmatazz-pink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--111);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 4.9rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 > span {
  display: block;
}

.brand-red {
  display: inline;
  color: var(--brand-colors--razzmatazz-pink);
}

.card-stage {
  position: relative;
  width: 100%;
  margin-top: 0;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-window {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.confidence-card {
  position: relative;
  isolation: isolate;
  width: auto;
  max-width: 100%;
  height: clamp(16.2rem, calc(100svh - 29rem), 32.25rem);
  min-height: 16.2rem;
  aspect-ratio: 1.618 / 1;
  border: 0;
  border-radius: 2.25rem;
  background: #d1cae5;
  box-shadow:
    var(--brand-colors--razzmatazz-pink) 0 0.35rem 0,
    rgba(17, 17, 17, 0.13) 0 22px 48px;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.confidence-card::before {
  content: none;
}

.active-card {
  z-index: 3;
  position: relative;
}

.side-card {
  z-index: 1;
  position: absolute;
  top: 0;
  opacity: 0.36;
  filter: saturate(0.65);
  pointer-events: none;
  transform: none;
  transform-origin: center;
}

.side-card-prev {
  right: calc(50% + min(29rem, 28vw));
  -webkit-mask-image: linear-gradient(to left, #000 0, rgba(0, 0, 0, 0.68) 20px, transparent 60px);
  mask-image: linear-gradient(to left, #000 0, rgba(0, 0, 0, 0.68) 20px, transparent 60px);
}

.side-card-next {
  left: calc(50% + min(29rem, 28vw));
  -webkit-mask-image: linear-gradient(to right, #000 0, rgba(0, 0, 0, 0.68) 20px, transparent 60px);
  mask-image: linear-gradient(to right, #000 0, rgba(0, 0, 0, 0.68) 20px, transparent 60px);
}

.question-panel {
  position: relative;
  z-index: 1;
  padding: clamp(1.4rem, 2.6vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.35rem;
}

.question-count {
  display: none;
  width: fit-content;
  color: var(--brand-colors--purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.question-panel h2 {
  margin: 0;
  color: var(--111);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(1.45rem, 2vw, 2.45rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0;
}

.card-action-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.answer-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.answer-button,
.answer-row.muted span {
  min-width: 7.75rem;
  min-height: 3.15rem;
  padding: 0.5rem 0.5rem 0.5rem 1.35rem;
  border: 2px solid var(--111);
  border-radius: 100rem;
  background: #d1cae5;
  color: var(--111);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  overflow: hidden;
  position: relative;
}

.answer-button {
  cursor: pointer;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.answer-button-label,
.answer-button-icon {
  z-index: 1;
  position: relative;
}

.answer-button-label {
  transition: color 180ms ease;
}

.answer-button-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 100rem;
  color: var(--brand-colors--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.answer-button-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.answer-button-fill {
  z-index: 0;
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 100rem;
  background-color: var(--brand-colors--razzmatazz-pink);
  transform: translateY(-50%) scale(1);
  transform-origin: center;
  transition: transform 240ms ease;
}

.answer-button[data-answer="Yes"] .answer-button-fill {
  background-color: var(--brand-colors--purple);
}

.answer-button[data-answer="No"] .answer-button-fill {
  background-color: var(--brand-colors--razzmatazz-pink);
}

.answer-button:hover .answer-button-label,
.answer-button.selected .answer-button-label {
  color: var(--brand-colors--white);
}

.answer-button[data-answer="Yes"]:hover,
.answer-button[data-answer="Yes"].selected {
  border-color: var(--brand-colors--purple);
}

.answer-button[data-answer="No"]:hover,
.answer-button[data-answer="No"].selected {
  border-color: var(--brand-colors--razzmatazz-pink);
}

.answer-button:hover .answer-button-fill,
.answer-button.selected .answer-button-fill {
  transform: translateY(-50%) scale(7);
}

.answer-button.shake {
  animation: answer-shake-strong 420ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.answer-button:focus-visible,
.stage-control:focus-visible {
  outline: 3px solid rgba(213, 18, 84, 0.28);
  outline-offset: 3px;
}

.answer-row.muted {
  opacity: 0.36;
}

.card-progress {
  --progress: 0%;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--111);
  border-radius: 100rem;
  background:
    conic-gradient(var(--brand-colors--razzmatazz-pink) var(--progress), #d1cae5 0),
    #d1cae5;
  transition: background 220ms ease;
}

.stage-control {
  z-index: 5;
  width: 3.6rem;
  height: 3.6rem;
  border: 2px solid var(--111);
  border-radius: 100rem;
  background-color: var(--brand-colors--white);
  color: var(--111);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.stage-control:hover {
  border-color: var(--brand-colors--razzmatazz-pink);
  background-color: var(--brand-colors--razzmatazz-pink);
  color: var(--brand-colors--white);
}

.stage-control svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage-control-prev {
  left: max(0.75rem, calc(50% - 34rem));
}

.stage-control-next {
  right: max(0.75rem, calc(50% - 34rem));
}

.chatbot {
  z-index: 80;
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: min(34rem, calc(100vw - 2rem));
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2.5rem;
}

.bot-avatar {
  order: 2;
  width: 4.25rem;
  aspect-ratio: 1;
  border: 1.5px solid var(--111);
  border-radius: 100rem;
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.45) 0 9%, transparent 10%),
    var(--brand-colors--purple);
  box-shadow: rgba(17, 17, 17, 0.12) 0 12px 28px;
  position: relative;
  animation: emma-float 4.8s ease-in-out infinite;
}

.emma-status {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 100rem;
  background-color: var(--brand-colors--razzmatazz-pink);
  position: absolute;
  right: -0.2rem;
  bottom: 0.35rem;
  border: 2px solid var(--brand-colors--titan-white);
}

.bot-message {
  order: 1;
  width: min(15rem, 100%);
  min-height: 4rem;
  padding: 0.9rem 1.2rem 1rem;
  border: 1.5px solid var(--111);
  border-radius: 1rem;
  background-color: var(--brand-colors--white);
  box-shadow: rgba(17, 17, 17, 0.08) 0 16px 34px;
  position: relative;
}

.bot-message::before {
  content: "";
  position: absolute;
  right: 1.7rem;
  bottom: -0.62rem;
  width: 1rem;
  height: 1rem;
  border-right: 1.5px solid var(--111);
  border-bottom: 1.5px solid var(--111);
  background-color: var(--brand-colors--white);
  transform: rotate(45deg);
}

.bot-label {
  margin-bottom: 0.35rem;
  color: var(--brand-colors--razzmatazz-pink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.bot-message p {
  margin: 0;
  color: var(--111);
  font-size: 1rem;
  line-height: 1.32;
}

.contact-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 28rem;
  padding: clamp(5rem, 8vw, 7.5rem) 2rem;
  background-color: var(--brand-colors--razzmatazz-pink);
  color: var(--brand-colors--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-cta::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: -38rem -20rem -34rem;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 4.55rem,
    rgba(255, 255, 255, 0.14) 4.62rem,
    rgba(255, 255, 255, 0.14) 4.7rem
  );
  opacity: 0.55;
}

.contact-cta-inner {
  width: 100%;
  max-width: 76rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 4vw, 4rem);
}

.contact-cta h2 {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.contact-cta h2 span {
  display: block;
  white-space: nowrap;
}

.contact-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.9rem;
  padding: 0.55rem 0.6rem 0.55rem 1.65rem;
  border: 2px solid var(--brand-colors--white);
  border-radius: 100rem;
  color: var(--brand-colors--white);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.contact-cta-button svg {
  width: 2.7rem;
  height: 2.7rem;
  padding: 0.55rem;
  border-radius: 100rem;
  background-color: var(--brand-colors--white);
  color: var(--brand-colors--razzmatazz-pink);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-footer {
  color: var(--111);
}

.section-footer-bg {
  background-color: transparent;
}

.footer-padding {
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer-container {
  width: 100%;
  max-width: 84rem;
  margin-left: auto;
  margin-right: auto;
}

.section-footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  padding-top: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgb(202, 195, 223);
}

.section-footer-links-row {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  width: 100%;
  gap: 4rem;
}

.section-footer-links-col {
  flex: 0 0 auto;
}

.footer-heading {
  margin-bottom: 1rem;
  color: var(--111);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.section-footer-links {
  display: inline-flex;
  flex-flow: column;
  gap: 1rem;
}

.section-footer-link {
  width: fit-content;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: var(--111);
  font-size: 1rem;
  line-height: 1.2;
  transition: color 180ms ease;
}

.section-footer-link:hover {
  color: var(--brand-colors--razzmatazz-pink);
}

.section-footer-logo-strip {
  display: inline-flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
}

.section-footer-logo-strip img {
  display: block;
  max-width: 80%;
  height: auto;
}

.section-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section-footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  max-width: 150px;
  color: var(--111);
  font-size: 0.95rem;
  line-height: 1.2;
}

.section-footer-logo img {
  display: block;
  width: 90px;
  height: auto;
}

.section-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.25rem;
}

.section-footer-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
}

.section-footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--brand-colors--grey);
}

.section-footer-social-link svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: currentColor;
}

.footer-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  border-radius: 100rem;
  background-color: var(--brand-colors--razzmatazz-pink);
  color: var(--brand-colors--white);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

.footer-contact-button svg {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border-radius: 100rem;
  background-color: var(--111);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes emma-float {
  0%,
  100% {
    transform: translateY(-0.35rem);
  }

  50% {
    transform: translateY(-1rem);
  }
}

@keyframes answer-shake-strong {
  10%,
  90% {
    transform: translateX(-2px);
  }

  20%,
  80% {
    transform: translateX(5px);
  }

  30%,
  50%,
  70% {
    transform: translateX(-9px);
  }

  40%,
  60% {
    transform: translateX(9px);
  }
}

@media (max-width: 980px) {
  .confidence-section {
    padding-left: clamp(1rem, 4vw, 3rem);
    padding-right: clamp(1rem, 4vw, 3rem);
  }

  .confidence-container {
    gap: clamp(3rem, 5vh, 4rem);
  }

  .card-window {
    width: 100%;
  }

  .confidence-card {
    width: auto;
    max-width: 100%;
    height: clamp(16.2rem, calc(100svh - 28rem), 30rem);
  }

  .side-card {
    display: none;
    opacity: 0.24;
  }

  .side-card-prev {
    right: calc(50% + min(27rem, 36vw));
  }

  .side-card-next {
    left: calc(50% + min(27rem, 36vw));
  }

  .chatbot {
    width: min(32rem, calc(100vw - 2rem));
  }

  .section-footer-links-row {
    gap: 3rem;
  }
}

@media (max-width: 760px) {
  .nav-padding {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-container {
    padding: 0.35rem 0.75rem 0.35rem 1rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .nav-logo {
    width: 88px;
    min-height: 29px;
  }

  .nav-menu {
    display: none;
  }

  .confidence-section {
    padding: 3.25rem 1rem 3rem;
  }

  .confidence-container {
    gap: 3rem;
  }

  .confidence-intro {
    text-align: left;
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.55rem, 10.6vw, 3.55rem);
  }

  .card-stage {
    min-height: auto;
  }

  .card-window {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .confidence-card {
    width: 100%;
    height: auto;
    min-height: 25.2rem;
    aspect-ratio: auto;
    grid-template-columns: 1fr;
  }

  .side-card {
    display: none;
  }

  .stage-control {
    top: auto;
    bottom: -0.75rem;
    transform: none;
  }

  .stage-control-prev {
    left: calc(50% - 3.8rem);
  }

  .stage-control-next {
    right: calc(50% - 3.8rem);
  }

  .answer-row {
    gap: 0.75rem;
  }

  .answer-button,
  .answer-row.muted span {
    min-width: 6.5rem;
  }

  .card-progress {
    width: 2rem;
    height: 2rem;
  }

  .chatbot {
    right: 1rem;
    bottom: 1rem;
    gap: 2rem;
    margin-top: 0;
  }

  .bot-avatar {
    width: 3.75rem;
  }

  .contact-cta {
    min-height: 23rem;
    padding: 4rem 1.25rem;
  }

  .contact-cta::before {
    inset: -28rem -36rem -22rem;
  }

  .footer-padding {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section-footer-links-row {
    gap: 2.5rem;
  }

  .section-footer-links-col {
    width: 45%;
  }

  .section-footer-bottom {
    align-items: flex-start;
  }

  .section-footer-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
  }
}

@media (max-width: 430px) {
  .question-panel {
    padding: 1.6rem;
  }

  .answer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .card-action-row {
    align-items: flex-end;
  }

  .answer-button {
    width: 100%;
  }

  .chatbot {
    width: min(24rem, calc(100vw - 2rem));
  }

  .bot-avatar {
    width: 3.25rem;
  }

  .contact-cta {
    min-height: 20rem;
    padding: 3.5rem 1rem;
  }

  .contact-cta h2 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .contact-cta h2 span {
    white-space: normal;
  }

  .contact-cta-button {
    min-height: 3.35rem;
    padding-left: 1.25rem;
    font-size: 0.95rem;
  }

  .contact-cta-button svg {
    width: 2.25rem;
    height: 2.25rem;
  }

  .bot-message::before {
    right: 1.1rem;
  }

  .section-footer-links-row {
    gap: 1.5rem;
  }

  .section-footer-links-col {
    width: 100%;
  }

  .section-footer-bottom {
    flex-direction: column;
  }

  .section-footer-actions {
    align-items: flex-start;
  }

  .section-footer-social-links {
    gap: 1.5rem;
  }
}

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