:root {
  --navy-950: #06152f;
  --navy-900: #071c3f;
  --navy-800: #0b2a5b;
  --navy-700: #123b77;
  --gold-500: #caa14a;
  --gold-300: #ead08a;
  --green-600: #15803d;
  --green-500: #16a34a;
  --ink: #10203a;
  --muted: #5f6e83;
  --line: #e4e9f0;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --danger: #b42318;
  --shadow: 0 22px 60px rgba(6, 21, 47, .16);
  --radius-lg: 28px;
  --radius-md: 19px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--navy-950);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(202, 161, 74, .16), transparent 36%),
    linear-gradient(180deg, var(--navy-900) 0 190px, #edf2f8 430px, #f7f9fc 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(202, 161, 74, .5);
  outline-offset: 3px;
}

.app-shell {
  width: 100%;
  max-width: 100vw;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr 54px;
  align-items: center;
  min-height: 72px;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
  color: #fff;
}

.brand {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-self: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 11px;
  background: #fff;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: -.2px;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .64);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.back-button {
  grid-column: 1;
}

.icon-button svg,
.primary-button svg,
.restart-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-counter {
  grid-column: 3;
  justify-self: end;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 800;
}

.progress-wrap {
  position: relative;
  z-index: 20;
  padding: 0 20px 8px;
}

.progress-track {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-500), #f4d98e);
  box-shadow: 0 0 15px rgba(234, 208, 138, .6);
  transition: width .38s cubic-bezier(.22, 1, .36, 1);
}

.screen {
  display: none;
  width: calc(100vw - 24px);
  max-width: 520px;
  min-height: calc(100svh - 94px - env(safe-area-inset-top));
  margin: 0 auto;
  padding: 26px 22px calc(28px + env(safe-area-inset-bottom));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow);
}

.screen.is-active {
  display: block;
  animation: screenIn .42s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-screen {
  text-align: center;
}

.intro-visual {
  position: relative;
  display: grid;
  width: 205px;
  height: 177px;
  margin: -4px auto 9px;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one {
  width: 148px;
  height: 148px;
  background: radial-gradient(circle, rgba(202, 161, 74, .28), rgba(202, 161, 74, .04) 64%, transparent 66%);
}

.orb-two {
  width: 104px;
  height: 104px;
  border: 1px solid rgba(202, 161, 74, .22);
}

.book-mark {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  border: 1px solid rgba(11, 42, 91, .08);
  border-radius: 32px;
  background: linear-gradient(145deg, #fff, #f4f7fb);
  box-shadow: 0 18px 45px rgba(7, 28, 63, .16);
}

.book-mark img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  color: var(--navy-800);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(7, 28, 63, .12);
  font-size: 10px;
  font-weight: 850;
}

.floating-card span { font-size: 13px; }
.card-time { top: 17px; left: -2px; transform: rotate(-3deg); }
.card-depth { top: 28px; right: -8px; transform: rotate(3deg); }
.card-structure { right: 1px; bottom: 4px; transform: rotate(-2deg); }

.eyebrow,
.section-label,
.result-label,
.question-kicker {
  display: inline-block;
  color: #8a651d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.intro-copy h1,
.result-hero h1 {
  margin: 11px auto 12px;
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 8.3vw, 40px);
  line-height: 1.04;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.intro-copy h1 em {
  color: var(--gold-500);
  font-style: normal;
}

.intro-copy > p,
.lead-screen > p,
.result-summary {
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.intro-benefits {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  text-align: left;
}

.intro-benefits span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #33445d;
  font-size: 12.5px;
  font-weight: 700;
}

.intro-benefits i {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--green-600);
  background: #eaf8ee;
  font-style: normal;
  font-size: 12px;
}

.primary-button {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 18px;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(180deg, #1fb354, var(--green-600));
  box-shadow: 0 14px 30px rgba(21, 128, 61, .24), inset 0 1px rgba(255, 255, 255, .22);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.primary-button:active {
  transform: translateY(1px) scale(.99);
  box-shadow: 0 8px 20px rgba(21, 128, 61, .2);
}

.privacy-note,
.secure-note,
.offer-note,
.tap-hint {
  margin: 12px 0 0;
  color: #7b8798;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}

.question-screen {
  padding-top: 30px;
}

.question-copy h2,
.lead-screen h2,
.processing-screen h2,
.result-card h2,
.route-card h2,
.product-bridge h2 {
  margin: 9px 0 8px;
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.13;
  letter-spacing: -.025em;
}

.question-copy > p {
  min-height: 21px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.answers {
  display: grid;
  gap: 10px;
  margin-top: 23px;
}

.answer-button {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  min-height: 73px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 13px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.answer-button:hover {
  border-color: rgba(202, 161, 74, .7);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(7, 28, 63, .08);
}

.answer-button.is-selected {
  border-color: var(--gold-500);
  background: #fffbf1;
  transform: scale(.985);
}

.answer-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--navy-800);
  background: #edf3fb;
  font-size: 18px;
}

.answer-text {
  display: grid;
  gap: 3px;
}

.answer-text strong {
  font-size: 13.5px;
  line-height: 1.25;
}

.answer-text small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.answer-arrow {
  color: #9aa5b4;
  font-size: 22px;
  text-align: center;
}

.tap-hint {
  margin-top: 18px;
}

.lead-screen,
.processing-screen {
  padding-top: 39px;
  text-align: center;
}

.result-ready-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 24px;
  color: var(--green-600);
  background: linear-gradient(145deg, #effbf2, #e4f5e9);
  box-shadow: 0 14px 34px rgba(21, 128, 61, .13);
}

.result-ready-icon svg {
  width: 45px;
  height: 45px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#lead-form {
  display: grid;
  margin-top: 25px;
  text-align: left;
}

#lead-form label {
  margin: 0 0 7px 3px;
  color: #35455d;
  font-size: 11px;
  font-weight: 850;
}

.field-wrap {
  display: grid;
  grid-template-columns: 25px 1fr;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field-wrap:focus-within {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(202, 161, 74, .11);
}

.field-wrap svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #8190a5;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field-wrap input {
  width: 100%;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.field-wrap input::placeholder {
  color: #9aa5b4;
}

.field-wrap.has-error {
  border-color: #e5a19a;
}

.field-error {
  min-height: 21px;
  padding: 4px 3px 2px;
  color: var(--danger);
  font-size: 10.5px;
}

#lead-form .primary-button {
  margin-top: 4px;
}

.analysis-animation {
  position: relative;
  display: grid;
  width: 152px;
  height: 152px;
  margin: 4px auto 28px;
  place-items: center;
}

.analysis-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(202, 161, 74, .25);
}

.ring-one {
  width: 140px;
  height: 140px;
  border-top-color: var(--gold-500);
  animation: spin 2.2s linear infinite;
}

.ring-two {
  width: 112px;
  height: 112px;
  border-right-color: var(--navy-700);
  animation: spin 1.7s linear infinite reverse;
}

.analysis-logo {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(7, 28, 63, .15);
}

.analysis-logo img {
  width: 59px;
  height: 59px;
}

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

.analysis-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  text-align: left;
}

.analysis-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}

.analysis-item i {
  display: block;
  width: 17px;
  height: 17px;
  border: 2px solid #cbd4df;
  border-top-color: var(--navy-700);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.analysis-item span {
  color: #34455d;
  font-size: 12px;
  font-weight: 800;
}

.analysis-item b {
  color: #8b98a9;
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.analysis-item.is-done {
  border-color: #cfebd7;
  background: #f1fbf4;
}

.analysis-item.is-done i {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--green-600);
  background: #d9f4e1;
  animation: none;
}

.analysis-item.is-done i::after {
  content: "✓";
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.analysis-item.is-done b { color: var(--green-600); }

.result-screen {
  padding: 0 0 calc(30px + env(safe-area-inset-bottom));
  background: #f4f7fb;
}

.result-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 22px 27px;
  border-radius: var(--radius-lg) var(--radius-lg) 25px 25px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0, rgba(202, 161, 74, .25), transparent 34%),
    radial-gradient(circle at 90% 80%, rgba(33, 83, 148, .55), transparent 44%),
    linear-gradient(155deg, var(--navy-950), var(--navy-800));
  text-align: center;
}

.result-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .08);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.result-badge i {
  color: var(--gold-300);
  font-style: normal;
}

.result-greeting {
  position: relative;
  z-index: 2;
  margin: 19px 0 6px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

.result-label {
  position: relative;
  z-index: 2;
  color: var(--gold-300);
}

.result-hero h1 {
  position: relative;
  z-index: 2;
  max-width: 360px;
  color: #fff;
  font-size: clamp(33px, 9vw, 44px);
}

.result-summary {
  position: relative;
  z-index: 2;
  max-width: 390px;
  color: rgba(255, 255, 255, .78);
}

.result-tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 17px;
}

.result-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(234, 208, 138, .2);
  border-radius: 999px;
  color: #f7e7b9;
  background: rgba(202, 161, 74, .09);
  font-size: 9px;
  font-weight: 750;
}

.confetti i {
  position: absolute;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-300);
  opacity: .7;
}

.confetti i:nth-child(1) { top: 23%; left: 8%; }
.confetti i:nth-child(2) { top: 52%; left: 14%; width: 3px; height: 3px; }
.confetti i:nth-child(3) { top: 16%; right: 11%; width: 4px; height: 4px; }
.confetti i:nth-child(4) { bottom: 19%; right: 8%; }
.confetti i:nth-child(5) { bottom: 12%; left: 24%; width: 3px; height: 3px; }
.confetti i:nth-child(6) { top: 37%; right: 21%; width: 3px; height: 3px; }

.result-card,
.route-card,
.product-bridge {
  margin: 14px 12px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7, 28, 63, .06);
}

.insight-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
}

.card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #8a651d;
  background: #fbf2dc;
}

.result-card h2,
.route-card h2,
.product-bridge h2 {
  font-size: 20px;
}

.result-card p,
.product-bridge p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.62;
}

.signal-list,
.product-checks {
  display: grid;
  gap: 11px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li,
.product-checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 9px;
  color: #35455d;
  font-size: 12px;
  line-height: 1.45;
}

.signal-list li::before,
.product-checks li::before {
  content: "✓";
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-600);
  background: #eaf8ee;
  font-size: 10px;
  font-weight: 900;
}

.route-card {
  border-color: rgba(202, 161, 74, .32);
  background: linear-gradient(145deg, #fffdf8, #fff);
}

.route-steps {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.route-step {
  position: relative;
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 10px;
  min-height: 63px;
  padding-bottom: 12px;
}

.route-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: #e7d4a7;
}

.route-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #e8d5a6;
  border-radius: 11px;
  color: #765618;
  background: #fff7e3;
  font-size: 11px;
  font-weight: 900;
}

.route-step strong {
  display: block;
  margin: 1px 0 3px;
  color: var(--navy-900);
  font-size: 12.5px;
}

.route-step p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.product-bridge {
  overflow: hidden;
  padding: 22px 20px 20px;
  border-color: rgba(11, 42, 91, .18);
  background: linear-gradient(180deg, #fff, #f3f7fc);
}

.product-copy {
  text-align: center;
}

.product-image {
  margin: 12px -9px 0;
}

.product-image img {
  display: block;
  width: 100%;
  height: auto;
}

.responsibility-note {
  display: grid;
  grid-template-columns: 29px 1fr;
  gap: 9px;
  margin: 17px 0;
  padding: 12px;
  border: 1px solid #e7dcc1;
  border-radius: 15px;
  background: #fffbf1;
}

.responsibility-note span {
  font-size: 20px;
}

.responsibility-note p {
  color: #61563e;
  font-size: 10.5px;
  line-height: 1.5;
}

.offer-button {
  margin-top: 5px;
}

.restart-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 24px);
  min-height: 48px;
  margin: 14px auto 0;
  border: 0;
  color: #65758a;
  background: transparent;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 600px) {
  body {
    padding: 18px 0 36px;
    background:
      radial-gradient(circle at 50% 0, rgba(202, 161, 74, .17), transparent 30%),
      linear-gradient(145deg, var(--navy-950), var(--navy-800));
  }

  .app-shell {
    max-width: 540px;
    min-height: calc(100svh - 54px);
  }

  .screen {
    min-height: calc(100svh - 140px);
    border-radius: var(--radius-lg);
  }

  .result-screen {
    overflow: hidden;
  }
}

@media (max-width: 360px) {
  .screen { width: calc(100% - 14px); padding-right: 17px; padding-left: 17px; }
  .topbar { padding-right: 12px; padding-left: 12px; }
  .intro-copy h1 { font-size: 29px; }
  .answer-button { grid-template-columns: 38px 1fr 18px; padding-right: 10px; padding-left: 10px; }
  .answer-icon { width: 38px; height: 38px; }
}

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