/* Refined Ladna Face lockup: recognizable face mark without a decorative ring. */
.brand {
  gap: 7px;
  line-height: 1;
}

.brand__mark-image {
  display: block;
  flex: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand__wordmark {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.brand--compact .brand__mark-image {
  width: 29px;
  height: 29px;
}

.lp-header .brand {
  font-size: 21px;
}

.lp-header .brand__mark-image {
  width: 40px;
  height: 40px;
}

.offer-footer .brand--compact .brand__mark-image {
  width: 32px;
  height: 32px;
}

/* Stable breathing room before manual/multi-select CTAs. */
.question-cta-spacer {
  flex: 1 0 22px;
  width: 100%;
  min-height: 22px;
  pointer-events: none;
}

.question-screen .question-cta-spacer + .screen-cta {
  margin-top: 0;
}

/* Analysis clarification is a real modal, so the paused process never looks stuck. */
body.analysis-modal-open {
  overflow: hidden;
}

.analysis-question-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    max(22px, env(safe-area-inset-top))
    18px
    max(22px, env(safe-area-inset-bottom));
  background: rgba(24, 30, 39, 0.42);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: analysis-backdrop-in 220ms ease-out both;
}

.analysis-question-modal.micro-question {
  width: min(100%, 440px);
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(255, 111, 97, 0.24);
  border-radius: 27px;
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 217, 209, 0.72), transparent 38%),
    #fff;
  box-shadow: 0 28px 80px rgba(22, 28, 36, 0.24);
  animation: analysis-modal-in 320ms cubic-bezier(0.2, 0.86, 0.24, 1) both;
}

.analysis-question-modal .analysis-question-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #e85f54;
  background: #fff0ed;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
}

.analysis-question-modal > strong {
  display: block;
  color: #17202b;
  font-size: clamp(23px, 6.4vw, 29px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.analysis-question-modal > p {
  max-width: 340px;
  margin: 11px auto 21px;
  color: #74777e;
  font-size: 13px;
  line-height: 1.48;
}

.analysis-question-modal > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.analysis-question-modal button {
  min-height: 58px;
  border: 1.5px solid rgba(255, 111, 97, 0.18);
  border-radius: 18px;
  color: #17202b;
  background: #fff7f4;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.analysis-question-modal button:hover,
.analysis-question-modal button:focus-visible {
  border-color: #ff6f61;
  background: #fff0ed;
  outline: none;
}

.analysis-question-modal button:active {
  transform: scale(0.98);
}

@keyframes analysis-backdrop-in {
  from { opacity: 0; }
}

@keyframes analysis-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}

/* Skin personalization: compact, useful and visually richer. */
.insight-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 20px 0 0;
}

.insight-points article {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 92px;
  padding: 10px 6px;
  border: 1px solid rgba(255, 111, 97, 0.12);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 27px rgba(35, 40, 48, 0.065);
  opacity: 0;
  transform: translateY(9px);
  animation: insight-point-in 420ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.insight-points article:nth-child(2) {
  animation-delay: 110ms;
}

.insight-points article:nth-child(3) {
  animation-delay: 220ms;
}

.insight-points article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #ff6f61;
  background: linear-gradient(145deg, #fff0ed, #ffe5de);
}

.insight-points svg {
  width: 19px;
  height: 19px;
}

.insight-points strong {
  font-size: 11px;
  line-height: 1.2;
}

.insight-points small {
  overflow-wrap: anywhere;
  color: #7b7d83;
  text-align: center;
  font-size: 8px;
  line-height: 1.25;
}

.story-screen--insight .insight-orbit {
  animation: insight-orbit-in 620ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.story-screen--insight .comparison-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 111, 97, 0.13);
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 151, 138, 0.22), transparent 35%),
    linear-gradient(145deg, #ffffff, #fff8f5);
  box-shadow: 0 15px 36px rgba(35, 40, 48, 0.08);
}

.story-screen--insight .comparison-card > strong,
.story-screen--insight .comparison-card > small,
.story-screen--insight .comparison-chart {
  position: relative;
  z-index: 1;
}

.story-screen--insight .comparison-chart i {
  transform: scaleY(0);
  transform-origin: center bottom;
  animation: insight-bar-grow 760ms 240ms cubic-bezier(0.2, 0.78, 0.2, 1) forwards;
}

.story-screen--insight .comparison-chart .is-accent i {
  animation-delay: 390ms;
  background: linear-gradient(180deg, #ff9b90 0%, #ff6f61 100%);
  box-shadow: 0 10px 23px rgba(255, 111, 97, 0.23);
}

/* Personal plan: assemble the result in front of the user. */
.story-screen--trust .trust-progress__track i {
  transform: scaleX(0);
  transform-origin: left center;
  animation: trust-progress-fill 920ms 180ms cubic-bezier(0.2, 0.78, 0.2, 1) forwards;
}

.story-screen--trust .trust-progress strong {
  animation: trust-score-pulse 420ms 640ms ease-out both;
}

.story-screen--trust .trust-goal-tile,
.story-screen--trust .trust-zones__heading,
.story-screen--trust .trust-zone-grid article,
.story-screen--trust .trust-plan-note,
.story-screen--trust .trust-week,
.story-screen--trust .trust-plan-card__footer,
.story-screen--trust > .screen-cta {
  opacity: 0;
  transform: translateY(10px);
  animation: trust-item-in 390ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.story-screen--trust .trust-goal-tile {
  animation-delay: 720ms;
}

.story-screen--trust .trust-zones__heading {
  animation-delay: 900ms;
}

.story-screen--trust .trust-zone-grid article:nth-child(1) {
  animation-delay: 1020ms;
}

.story-screen--trust .trust-zone-grid article:nth-child(2) {
  animation-delay: 1140ms;
}

.story-screen--trust .trust-zone-grid article:nth-child(3) {
  animation-delay: 1260ms;
}

.story-screen--trust .trust-zone-grid article:nth-child(4) {
  animation-delay: 1380ms;
}

.story-screen--trust .trust-zone-grid article:nth-child(5) {
  animation-delay: 1500ms;
}

.story-screen--trust .trust-zone-grid article:nth-child(6),
.story-screen--trust .trust-zone-grid article:nth-child(7) {
  animation-delay: 1620ms;
}

.story-screen--trust .trust-plan-note {
  animation-delay: 1740ms;
}

.story-screen--trust .trust-week {
  animation-delay: 1860ms;
}

.story-screen--trust .trust-plan-card__footer {
  animation-delay: 1980ms;
}

.story-screen--trust > .screen-cta {
  animation-delay: 2080ms;
}

.story-screen--trust .trust-check,
.story-screen--trust .trust-week i.is-done,
.story-screen--trust .trust-week i.is-current {
  transform: scale(0);
  animation: trust-check-pop 340ms 940ms cubic-bezier(0.2, 1.45, 0.4, 1) forwards;
}

.story-screen--trust .trust-zone-grid article:nth-child(1) .trust-check {
  animation-delay: 1180ms;
}

.story-screen--trust .trust-zone-grid article:nth-child(2) .trust-check {
  animation-delay: 1300ms;
}

.story-screen--trust .trust-zone-grid article:nth-child(3) .trust-check {
  animation-delay: 1420ms;
}

.story-screen--trust .trust-zone-grid article:nth-child(4) .trust-check {
  animation-delay: 1540ms;
}

.story-screen--trust .trust-zone-grid article:nth-child(5) .trust-check,
.story-screen--trust .trust-zone-grid article:nth-child(6) .trust-check,
.story-screen--trust .trust-zone-grid article:nth-child(7) .trust-check {
  animation-delay: 1680ms;
}

.story-screen--trust .trust-week > span:nth-child(1) i {
  animation-delay: 2020ms;
}

.story-screen--trust .trust-week > span:nth-child(2) i {
  animation-delay: 2100ms;
}

.story-screen--trust .trust-week > span:nth-child(3) i {
  animation-delay: 2180ms;
}

.story-screen--trust .trust-week > span:nth-child(4) i {
  animation-delay: 2260ms;
}

.story-screen--trust .trust-week > span:nth-child(5) i,
.story-screen--trust .trust-week > span:nth-child(6) i {
  animation-delay: 2340ms;
}

@keyframes insight-point-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes insight-orbit-in {
  from {
    opacity: 0;
    transform: translateY(8px) rotate(-12deg) scale(0.78);
  }
  to {
    opacity: 1;
    transform: rotate(-5deg) scale(1);
  }
}

@keyframes insight-bar-grow {
  to {
    transform: scaleY(1);
  }
}

@keyframes trust-progress-fill {
  to {
    transform: scaleX(1);
  }
}

@keyframes trust-score-pulse {
  from {
    opacity: 0;
    transform: scale(0.78);
  }
  70% {
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes trust-item-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes trust-check-pop {
  70% {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

@media (min-width: 0px) {
  .story-screen--insight {
    padding-top: 20px;
    background:
      radial-gradient(circle at 50% 8%, rgba(255, 226, 216, 0.46), transparent 28%),
      #fff;
  }

  .story-screen--insight .insight-orbit {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 20px;
  }

  .story-screen--insight > h1 {
    max-width: 370px;
    font-size: clamp(27px, 7.4vw, 32px);
    line-height: 1.07;
  }

  .story-screen--insight > .screen-subtitle {
    max-width: 370px;
    font-size: 13px;
    line-height: 1.45;
  }

  .insight-points {
    gap: 7px;
    margin-top: 16px;
  }

  .insight-points article {
    min-height: 78px;
    padding: 8px 4px;
    border-radius: 16px;
  }

  .insight-points article > span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .insight-points strong {
    font-size: 10px;
  }

  .insight-points small {
    font-size: 7.5px;
  }

  .story-screen--insight .comparison-card {
    margin: 15px 0 14px;
    padding: 15px;
    border-radius: 21px;
  }

  .story-screen--insight .comparison-card > strong {
    font-size: 13px;
  }

  .story-screen--insight .comparison-chart {
    height: clamp(135px, 19svh, 160px);
    margin: 11px 0 8px;
    padding: 9px 27px 0;
  }

  .story-screen--insight .comparison-chart span {
    font-size: 8.5px;
  }

  .story-screen--insight .comparison-card > small {
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analysis-question-backdrop,
  .analysis-question-modal.micro-question,
  .insight-points article,
  .story-screen--insight .insight-orbit,
  .story-screen--insight .comparison-chart i,
  .story-screen--trust .trust-progress__track i,
  .story-screen--trust .trust-progress strong,
  .story-screen--trust .trust-goal-tile,
  .story-screen--trust .trust-zones__heading,
  .story-screen--trust .trust-zone-grid article,
  .story-screen--trust .trust-plan-note,
  .story-screen--trust .trust-week,
  .story-screen--trust .trust-plan-card__footer,
  .story-screen--trust > .screen-cta,
  .story-screen--trust .trust-check,
  .story-screen--trust .trust-week i {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
