:root {
  --teal: #00c7af;
  --pink: #ff2569;
  --ink: #131313;
  --white: #ffffff;
  --app-width: 368px;
  --app-height: 736px;
  --app-scale: 1;
  --app-scaled-width: 368px;
  --app-scaled-height: 736px;
  --glass: rgba(255, 255, 255, 0.74);
  --glass-soft: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(255, 255, 255, 0.44);
  --shadow: 0 24px 62px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 12px 26px rgba(11, 12, 34, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
}

body {
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: "Work Sans", Arial, Helvetica, sans-serif;
  font-synthesis: none;
  background: #171127;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
[data-action] {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  width: var(--app-width);
  height: var(--app-height);
  min-height: 0;
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -184px;
  transform: scale(var(--app-scale));
  transform-origin: top center;
  font-family: "Work Sans", Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

.app-frame {
  width: var(--app-scaled-width);
  height: var(--app-scaled-height);
  position: relative;
  overflow: visible;
}

.experience {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 37, 105, 0.25), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(0, 199, 175, 0.2), transparent 38%),
    #171127;
}

.screen {
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  padding: 20px 20px 18px;
  background-size: cover;
  background-position: center bottom;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.bg-welcome .screen,
.bg-result .screen {
  background-image: url("public/assets/backgrounds/bg-01.png.png");
}

.bg-questions-a .screen {
  background-image: url("public/assets/backgrounds/bg-02.png.png");
  background-position: center;
}

.bg-questions-b .screen,
.bg-questions-c .screen {
  background-image: url("public/assets/backgrounds/bg-02.png.png");
  background-position: center;
}

.bg-analysis .screen {
  background-image: url("public/assets/backgrounds/bg-03.png.png");
  background-position: center;
}

.brand-logo {
  width: 146px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
  z-index: 2;
}

.glass-panel {
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: var(--pink);
}

.welcome-screen {
  justify-content: space-between;
  gap: 10px;
}

.welcome-stage {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 24px;
}

.welcome-content {
  margin: 0;
  position: relative;
  z-index: 2;
}

.welcome-content h1 {
  max-width: 332px;
  margin: 0;
  color: var(--white);
  font-size: clamp(31px, 8.8vw, 39px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.welcome-content p:not(.eyebrow) {
  max-width: 292px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.32;
}

.welcome-scene {
  min-height: 0;
  position: relative;
  overflow: visible;
}

.conti-crop {
  width: min(75%, 275px);
  position: absolute;
  left: -45px;
  bottom: -55px;
  overflow: visible;
  z-index: 2;
}

.conti-hero {
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, rgba(0, 0, 0, 0.85) 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 88%, rgba(0, 0, 0, 0.85) 94%, transparent 100%);
}

.conti-bubble {
  width: 192px;
  position: absolute;
  right: 0;
  top: 82px;
  z-index: 3;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 19px;
  background: rgba(13, 20, 40, 0.82);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(10, 20, 40, 0.12);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.conti-bubble::before {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  top: 46px;
  left: -7px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(13, 20, 40, 0.82);
  transform: rotate(45deg);
  z-index: -1;
}

.conti-bubble strong {
  display: block;
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
}

.conti-bubble p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.welcome-benefits {
  width: 214px;
  position: absolute;
  right: 0;
  bottom: 42px;
  z-index: 3;
  padding: 14px 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
}

.welcome-benefits p {
  margin: 0 0 7px;
  color: #101727;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.18;
}

.welcome-benefits ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.welcome-benefits li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: rgba(19, 19, 19, 0.78);
  font-size: 10.8px;
  font-weight: 500;
  line-height: 1.2;
}

.welcome-benefits li::before,
.benefit-list li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-weight: 900;
}

.welcome-benefits li::before {
  width: 18px;
  height: 18px;
  font-size: 11px;
}

.start-button,
.next-button,
.back-button,
.restart-button,
.answer-button {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.start-button,
.next-button,
.restart-button {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  background: var(--white);
  color: var(--pink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 34px rgba(15, 5, 44, 0.18);
}

.welcome-screen .start-button {
  position: relative;
  z-index: 6;
  font-weight: 700;
}

.start-button:active,
.next-button:active,
.back-button:active,
.answer-button:active,
.restart-button:active {
  transform: scale(0.985);
}

.question-screen {
  justify-content: center;
  gap: 12px;
}

.question-panel {
  width: 100%;
  height: calc(100% - 54px);
  min-height: calc(100% - 54px);
  max-height: calc(100% - 54px);
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 26px;
}

.question-top {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.question-top span {
  color: rgba(19, 19, 19, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.1);
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pink);
  transition: width 0.28s ease;
}

.question-heading {
  min-width: 0;
  display: block;
}

.question-heading h1 {
  margin: 0;
  color: #101727;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

.question-heading p {
  margin: 9px 0 0;
  color: rgba(19, 19, 19, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.answers {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.question-panel.is-compact .answers {
  gap: 6px;
  margin-top: 12px;
}

.answer-button {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.74);
  color: #121827;
  text-align: left;
  box-shadow: 0 8px 18px rgba(11, 12, 34, 0.055);
}

.question-panel.is-compact .answer-button {
  min-height: 43px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.answer-button span {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.18;
}

.answer-button strong {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.09);
  color: transparent;
  font-size: 13px;
  font-weight: 900;
}

.answer-button.is-selected {
  border-color: rgba(255, 37, 105, 0.8);
  background: var(--pink);
  color: var(--white);
}

.answer-button.is-selected strong {
  background: var(--white);
  color: var(--pink);
}

.question-insight {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  color: rgba(19, 19, 19, 0.72);
}

.question-insight span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 199, 175, 0.14);
  font-size: 15px;
}

.question-insight p {
  min-width: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.24;
}

.registration-panel {
  justify-content: flex-start;
}

.registration-heading {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.registration-eyebrow {
  margin: 0;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.registration-heading h1 {
  margin: 0;
  color: #101727;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

.registration-heading > p:not(.registration-eyebrow) {
  margin: 0;
  color: rgba(19, 19, 19, 0.62);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.registration-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.registration-field {
  display: grid;
  gap: 7px;
}

.registration-field span {
  color: #101727;
  font-size: 12px;
  font-weight: 700;
}

.registration-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 17px;
  outline: none;
  background: rgba(255, 255, 255, 0.74);
  color: #121827;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 18px rgba(11, 12, 34, 0.055);
}

.registration-field input::placeholder {
  color: rgba(19, 19, 19, 0.42);
}

.registration-field input:focus {
  border-color: rgba(0, 199, 175, 0.74);
  box-shadow: 0 0 0 3px rgba(0, 199, 175, 0.12);
}

.registration-field input[aria-invalid="true"] {
  border-color: rgba(255, 37, 105, 0.82);
}

.registration-field small {
  color: var(--pink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.registration-actions {
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
}

.registration-submit {
  width: 100%;
  min-height: 48px;
  box-shadow: none;
}

.nav-actions {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.nav-actions:has(.back-button:only-child) {
  grid-template-columns: 1fr;
}

.nav-actions.is-first-question {
  grid-template-columns: minmax(0, 1fr);
}

.nav-actions.is-first-question .next-button {
  justify-self: end;
  width: min(100%, 172px);
}

.back-button,
.next-button {
  min-height: 48px;
  box-shadow: none;
}

.back-button {
  border: 1px solid rgba(19, 19, 19, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #131313;
  font-size: 12px;
  font-weight: 900;
}

.next-button {
  background: var(--pink);
  color: var(--white);
  font-size: 12px;
}

.next-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.analysis-screen {
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.analysis-screen .brand-logo {
  position: absolute;
  top: 22px;
  left: 22px;
}

.conti-analysis {
  width: min(100%, 292px);
  height: auto;
  max-height: 316px;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

.analysis-copy p {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.analysis-copy h1 {
  margin: 0;
  color: var(--white);
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.analysis-steps {
  width: min(100%, 292px);
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.analysis-steps li {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  backdrop-filter: blur(16px);
}

.analysis-steps li span {
  color: var(--teal);
}

.result-screen {
  justify-content: flex-start;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: hidden;
}

.result-panel {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: visible;
  padding: 14px;
}

.result-panel h1 {
  max-width: 100%;
  margin: 0;
  color: #101727;
  font-size: clamp(24px, 6.6vw, 31px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.result-panel h1 span,
.result-panel h1 strong {
  display: block;
}

.result-panel h1 span {
  font-size: 0.66em;
  font-weight: 700;
  line-height: 1.08;
}

.result-panel h1 strong {
  margin-top: 3px;
  color: var(--teal);
  font-size: 1.02em;
  line-height: 0.98;
}

.diagnosis-lead {
  margin: 0;
  color: rgba(17, 24, 39, 0.68);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.result-block,
.plan-block,
.gift-box {
  margin: 0;
}

.diagnosis-lead + .result-block {
  margin-top: 14px;
}

.plan-block {
  margin-top: 0;
}

.result-divider {
  height: 1px;
  margin: 12px 0 12px;
  background: rgba(17, 24, 39, 0.12);
}

.benefits-card {
  width: 100%;
  padding: 13px 98px 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.62);
}

.gift-box {
  margin-top: 0;
}

.result-block h2,
.plan-block h2,
.benefits-title {
  margin: 0 0 6px;
  color: rgba(19, 19, 19, 0.62);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.benefits-card .benefits-title {
  margin: 0 0 10px;
  color: #101727;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.result-chips {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  align-content: flex-start;
  margin-bottom: 0;
}

.result-chips span {
  min-width: 0;
  flex: 1 1 0;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 199, 175, 0.12);
  color: #06796f;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.result-chips.has-three {
  gap: 4px;
}

.result-chips.has-three span {
  padding-inline: 6px;
  font-size: 7.5px;
}

.plan-stage {
  width: 100%;
  overflow: hidden;
}

.plan-name {
  display: block;
  width: 100%;
  margin: 0;
  color: var(--pink);
  font-size: clamp(52px, 14vw, 58px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.plan-standard {
  font-size: clamp(39px, 10vw, 44px);
}

.plan-pro,
.plan-full {
  font-size: clamp(52px, 14vw, 58px);
}

.plan-enterprise {
  font-size: clamp(34px, 9.8vw, 40px);
}

.result-enterprise .result-chips.has-three {
  flex-wrap: nowrap;
  gap: 3px;
}

.result-enterprise .result-chips.has-three span {
  padding-inline: 4px;
  font-size: 7.2px;
}

.complex-note {
  margin: 5px 0 0;
  color: rgba(17, 24, 39, 0.72);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.24;
}

.result-content-stack {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-bottom: 14px;
}

.conti-result {
  width: min(40%, 148px);
  height: auto;
  position: absolute;
  z-index: 2;
  right: -12px;
  top: auto;
  bottom: 14px;
  margin: 0;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, rgba(0, 0, 0, 0.92) 87%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 76%, rgba(0, 0, 0, 0.92) 87%, transparent 100%);
}

.benefit-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 7px;
  color: #111827;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
}

.benefit-list li::before {
  width: 15px;
  height: 15px;
  font-size: 9px;
}

.gift-box {
  min-height: 90px;
  display: block;
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 14px 72px 14px 16px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.64);
}

.high-complexity-box {
  background: rgba(255, 255, 255, 0.58);
}

.gift-box h2 {
  margin: 0;
  color: var(--pink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.gift-box p {
  margin: 6px 0 0;
  color: #111827;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
}

.restart-button {
  min-height: 38px;
  flex: 0 0 auto;
  margin: 0;
  background: rgba(255, 255, 255, 0.74);
  color: #131313;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
  position: relative;
  z-index: 4;
}
