:root {
  --paper: #fffaf2;
  --paper-2: #f7fbff;
  --ink: #10101a;
  --muted: #5f6070;
  --dim: #8b8b9a;
  --line: #e9e2db;
  --blue: #2457e6;
  --blue-2: #0d70b7;
  --purple: #8b35d6;
  --coral: #ff6d55;
  --orange: #ff9b5e;
  --cream: #fff1d7;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 70px rgba(29, 31, 58, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(36, 87, 230, 0.1), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(255, 109, 85, 0.13), transparent 24rem),
    linear-gradient(180deg, #fffdf8 0%, #f7fbff 52%, #fffaf2 100%);
  color: var(--ink);
  font-family: "Assistant", sans-serif;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.shell {
  position: relative;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.beam {
  position: absolute;
  width: 46vw;
  height: 18vh;
  opacity: 0.16;
  filter: blur(22px);
  transform: rotate(-14deg);
  animation: drift 9s ease-in-out infinite alternate;
}

.beam-a {
  top: 12%;
  right: -12%;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
}

.beam-b {
  bottom: 8%;
  left: -14%;
  background: linear-gradient(90deg, transparent, var(--coral), var(--orange), transparent);
  animation-delay: -3s;
}

.grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(36, 87, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 87, 230, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
}

.topbar {
  width: min(1120px, 100%);
  min-height: 62px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(16, 16, 26, 0.08);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(29, 31, 58, 0.07);
  backdrop-filter: blur(18px);
}

.topbar img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.topbar span {
  font-weight: 800;
  color: #1a1b27;
}

.stage {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
}

.brand-panel,
.quiz-card {
  border: 1px solid rgba(16, 16, 26, 0.08);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  min-width: 0;
}

.brand-panel {
  position: relative;
  padding: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 241, 215, 0.78)),
    var(--card);
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(36, 87, 230, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: -80px;
  top: 80px;
  background: radial-gradient(circle, rgba(255, 109, 85, 0.18), transparent 66%);
  pointer-events: none;
}

.brand-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 176px;
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(13, 112, 183, 0.12), rgba(139, 53, 214, 0.12)),
    #f4f7ff;
  overflow: hidden;
}

.brand-logo img {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(34, 28, 61, 0.18));
}

.brand-logo::after {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 34px;
  background:
    linear-gradient(135deg, rgba(13, 112, 183, 0.12), rgba(139, 53, 214, 0.12)),
    #f4f7ff;
  pointer-events: none;
}

.mark {
  width: 74px;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 7px;
  overflow: hidden;
  margin: 12px;
}

.mark span {
  display: grid;
  place-items: center;
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  font-size: 26px;
}

.mark span:first-child {
  background: linear-gradient(180deg, #0d70b7, #154879);
  color: white;
}

.mark span:last-child {
  background: linear-gradient(180deg, #9a34d6, #5b2d9a);
  color: white;
}

.kicker {
  position: relative;
  z-index: 1;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3 {
  font-family: "Rubik", sans-serif;
  margin: 0;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.brand-panel h1 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.02;
  margin: 16px 0;
}

.brand-copy {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 34ch;
}

.signal-card {
  position: relative;
  z-index: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-top: 22px;
}

.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f0ece6;
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-row span {
  color: var(--dim);
  font-size: 14px;
}

.signal-row b {
  color: var(--ink);
  font-size: 14px;
  text-align: left;
}

.quiz-card {
  min-height: 620px;
  padding: clamp(18px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 253, 248, 0.95)),
    var(--card);
}

.quiz-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 32px;
}

.ghost-button {
  min-height: 42px;
  border: 1px solid #ded7cf;
  background: white;
  color: #242431;
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ghost-button:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 87, 230, 0.42);
}

.ghost-button:disabled {
  opacity: 0.38;
  cursor: default;
  transform: none;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.progress-track {
  height: 8px;
  background: #eee8df;
  border-radius: 999px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--coral));
  border-radius: inherit;
  transition: width 0.35s ease;
}

.screen {
  flex: 1;
  display: flex;
  min-width: 0;
}

.screen-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  animation: enter 0.36s ease both;
  min-width: 0;
}

.screen-center {
  justify-content: center;
}

.question-count {
  color: var(--blue);
  font-weight: 900;
  margin: 0 0 12px;
}

.screen-title {
  max-width: 760px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  margin-bottom: 14px;
}

.screen-subtitle {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 68ch;
  margin: 0;
  overflow-wrap: anywhere;
}

.answer-grid {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.answer-button {
  width: 100%;
  min-height: 66px;
  border: 1px solid #e2d9d1;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fffaf4);
  color: var(--ink);
  padding: 14px 16px;
  text-align: right;
  cursor: pointer;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.answer-button:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 87, 230, 0.42);
  box-shadow: 0 14px 28px rgba(36, 87, 230, 0.1);
}

.answer-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #eadfd6;
  border-radius: 8px;
  color: var(--purple);
  background: #fff4fb;
  font-weight: 900;
}

.answer-text {
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.answer-arrow {
  color: var(--blue);
  font-size: 22px;
}

.start-actions,
.recommend-actions,
.form-actions,
.insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.link-button {
  min-height: 52px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--coral));
  box-shadow: 0 16px 38px rgba(36, 87, 230, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.link-button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  color: var(--ink);
  background: white;
  border-color: #ddd5cd;
}

.link-button {
  color: var(--muted);
  background: transparent;
  padding-inline: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.chip {
  border: 1px solid #e9ded6;
  background: #fff7ed;
  border-radius: 999px;
  padding: 8px 12px;
  color: #6a5266;
  font-size: 14px;
  font-weight: 800;
}

.insight-card {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
  margin: auto;
  width: min(720px, 100%);
}

.insight-visual {
  width: min(420px, 100%);
  min-height: 220px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 109, 85, 0.18), transparent 34%),
    linear-gradient(135deg, #eef5ff, #fff2e2);
  border: 1px solid #e5edf7;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
}

.mini-dashboard,
.path-map,
.profile-meter {
  width: 100%;
  display: grid;
  gap: 12px;
}

.mini-dashboard {
  grid-template-columns: repeat(3, 1fr);
}

.mini-dashboard span,
.path-node,
.profile-row {
  background: white;
  border: 1px solid #dce7f6;
  border-radius: 8px;
  padding: 14px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(36, 87, 230, 0.08);
}

.mini-dashboard b {
  display: block;
  color: var(--blue);
  font-size: 26px;
}

.path-map {
  position: relative;
  grid-template-columns: 1fr;
  max-width: 300px;
}

.path-node {
  position: relative;
  text-align: center;
}

.path-node.is-active {
  color: white;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.profile-meter {
  max-width: 340px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.profile-row strong {
  color: var(--ink);
}

.quote-box {
  border: 1px solid #e9ded6;
  background: white;
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 800;
}

.loader-box {
  margin-top: 26px;
  border: 1px solid #e1d8ce;
  border-radius: 8px;
  padding: 18px;
  background: white;
}

.scan-line {
  height: 10px;
  background: #eee8df;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.scan-line span {
  display: block;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: scan 1.25s ease-in-out infinite;
}

.loader-text {
  color: var(--muted);
  font-size: 18px;
  min-height: 28px;
}

.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

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

.field label {
  color: var(--muted);
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 56px;
  border: 1px solid #ded5ce;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.field input:focus {
  border-color: rgba(36, 87, 230, 0.7);
  box-shadow: 0 0 0 4px rgba(36, 87, 230, 0.1);
}

.fine-print {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.5;
}

.recommend-card {
  display: grid;
  gap: 18px;
  border: 1px solid #d7e4ff;
  background: linear-gradient(135deg, #f1f7ff, #fff6ee);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
  margin-top: 22px;
  min-width: 0;
}

.plan-pill {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #e9f0ff;
  color: var(--blue);
  border: 1px solid #d6e2ff;
  padding: 8px 12px;
  font-weight: 900;
}

.price {
  font-family: "Rubik", sans-serif;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1;
  color: var(--ink);
}

.price span {
  color: var(--coral);
  font-size: 0.45em;
}

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

.reason-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 800;
}

.reason-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--blue), var(--purple));
  margin-top: 8px;
  flex: 0 0 auto;
}

.alt-note {
  color: var(--dim);
  margin: 0;
}

.testimonials {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.testimonials article {
  border: 1px solid rgba(16, 16, 26, 0.08);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 18px 42px rgba(29, 31, 58, 0.08);
}

.stars {
  color: #00a36c;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.testimonials p {
  color: #272936;
  line-height: 1.45;
  margin: 0 0 12px;
  font-weight: 700;
}

.testimonials span {
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.site-footer {
  width: min(1120px, 100%);
  margin-top: 14px;
  padding: 18px 18px 16px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%),
    #0b1426;
  color: #c9d5ec;
  text-align: center;
  box-shadow: 0 16px 34px rgba(12, 20, 38, 0.14);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 10px;
}

.footer-links a {
  color: #f5f7ff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  padding: 0 20px;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.footer-links a + a {
  border-inline-start: 1px solid rgba(201, 213, 236, 0.34);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #8fd0ff;
}

.site-footer p {
  margin: 0;
  color: #9fb0cc;
  font-size: 12px;
  font-weight: 600;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  to {
    transform: translate3d(4vw, -2vh, 0) rotate(-10deg);
  }
}

@keyframes scan {
  from {
    transform: translateX(190%);
  }
  to {
    transform: translateX(-290%);
  }
}

@media (max-width: 900px) {
  .shell {
    padding: 10px;
  }

  .topbar {
    display: flex;
    justify-content: center;
    min-height: 82px;
    padding: 10px 16px;
    margin-bottom: 10px;
    position: sticky;
    top: 8px;
    z-index: 5;
  }

  .topbar span {
    display: none;
  }

  .topbar img {
    width: 142px;
    height: auto;
  }

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

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

  .brand-panel {
    display: none;
  }

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

  .start-screen {
    align-items: center;
    text-align: center;
  }

  .start-screen .question-count,
  .start-screen .screen-title,
  .start-screen .screen-subtitle {
    margin-inline: auto;
  }

  .start-screen .screen-title {
    max-width: 15ch;
  }

  .start-screen .screen-subtitle {
    max-width: 34ch;
  }

  .start-screen .chips,
  .start-screen .start-actions {
    justify-content: center;
  }

  .site-footer {
    padding: 16px 14px 14px;
  }
}

@media (max-width: 560px) {
  .topbar img {
    width: 132px;
    height: auto;
  }

  .quiz-top {
    grid-template-columns: 1fr;
    margin-bottom: 22px;
  }

  .footer-links {
    gap: 10px 14px;
    margin-bottom: 10px;
  }

  .footer-links a {
    padding: 0;
  }

  .footer-links a + a {
    border-inline-start: 0;
  }

  .ghost-button {
    width: max-content;
  }

  .answer-button {
    min-height: 62px;
    grid-template-columns: 34px 1fr;
  }

  .answer-arrow {
    display: none;
  }

  .answer-text {
    font-size: 16px;
  }

  .screen-title {
    font-size: 28px;
  }

  .brand-copy,
  .screen-subtitle {
    font-size: 17px;
  }

  .mini-dashboard {
    grid-template-columns: 1fr;
  }
}
