:root {
  --bg: #080306;
  --ink: #dcd9db;
  --ink-strong: rgba(244, 244, 242, 0.94);
  --muted: rgba(220, 217, 219, 0.56);
  --dim: rgba(220, 217, 219, 0.34);
  --line: rgba(227, 216, 195, 0.2);
  --line-strong: rgba(227, 216, 195, 0.38);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "TWK Lausanne Pan", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  overflow-x: hidden;
}

button,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.app {
  min-height: 100dvh;
  background: var(--bg);
}

.initial-loader {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  pointer-events: none;
  opacity: 1;
  transition: opacity 620ms var(--ease), filter 620ms var(--ease);
}

.loader-line {
  width: 92px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.loader-line::after {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  content: "";
  transform: translateX(-100%);
  animation: loader-line 920ms var(--ease) infinite;
}

body.is-initial-ready .initial-loader {
  opacity: 0;
  filter: blur(8px);
}

body.is-initial-loading .screen {
  opacity: 0;
  filter: blur(6px);
}

.screen {
  width: min(1440px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  opacity: 1;
  animation: page-in 760ms var(--ease) both;
}

.app.is-leaving .screen {
  opacity: 0;
  filter: blur(4px);
  transition: opacity 280ms var(--ease), filter 280ms var(--ease);
}

.intro-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  min-height: 720px;
  overflow: hidden;
  padding: 24px;
}

.intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(700px, 100%);
  padding: 56px 56px 54px;
  gap: 88px;
  border-radius: 4px;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(500px, 100%);
}

.intro-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.kicker {
  color: rgba(220, 217, 219, 0.64);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
  line-height: 38px;
  letter-spacing: -0.06em;
  text-align: center;
}

.intro-title {
  font-size: 56px;
  line-height: 44px;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 460px;
  margin: 0;
  color: rgba(220, 217, 219, 0.68);
  font-size: 16px;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
}

.intro-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: min(500px, 100%);
  gap: 8px;
  padding-top: 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  border: 1px solid rgba(220, 217, 219, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: rgba(220, 217, 219, 0.58);
  font-size: 8.5px;
  font-weight: 300;
  line-height: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.intro-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 0;
}

.note {
  max-width: 390px;
  margin: 0;
  padding-top: 26px;
  color: rgba(220, 217, 219, 0.34);
  font-family: var(--serif);
  font-size: 12.5px;
  font-style: italic;
  line-height: 19px;
  text-align: center;
}

.done-screen {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100dvh;
  min-height: 720px;
  overflow: hidden;
  padding: 373px 24px 48px;
}

.done-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(980px, 100%);
  gap: 40px;
}

.done-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.done-title {
  margin: 0;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.97);
  font-family: var(--serif);
  font-size: 56px;
  font-style: italic;
  font-weight: 400;
  line-height: 70px;
  letter-spacing: -0.06em;
  text-align: center;
}

.done-copy {
  width: min(393px, 100%);
  margin: 0;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
  text-align: center;
}

.done-button {
  width: 200px;
  margin-top: 32px;
}

.question-screen {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100dvh;
  padding: 100px 24px 118px;
}

.question-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(820px, 100%);
  padding: 0 72px 50px;
  border-radius: 6px;
  backdrop-filter: blur(2px);
}

.route-one .question-card {
  gap: 10px;
}

.route-four .question-card,
.route-ai .question-card {
  gap: 48px;
}

.progress {
  position: relative;
  width: 300px;
  height: 14px;
  margin-bottom: 58px;
}

.progress::before {
  position: absolute;
  top: 6px;
  left: 7px;
  width: 286px;
  height: 1px;
  background: rgba(220, 217, 219, 0.26);
  content: "";
}

.progress-fill {
  position: absolute;
  top: 6px;
  left: 7px;
  height: 1px;
  background: rgba(244, 244, 242, 0.86);
}

.dot {
  position: absolute;
  top: 2px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(220, 217, 219, 0.38);
  border-radius: 999px;
  background: var(--bg);
  transform: translateX(-50%);
}

.dot.is-active,
.dot.is-done {
  border-color: rgba(244, 244, 242, 0.88);
  background: rgba(244, 244, 242, 0.94);
}

.question-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(698px, 100%);
  min-height: 185px;
}

.question-head .hero-title {
  max-width: 637px;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -0.06em;
}

.route-ai .question-head .hero-title {
  letter-spacing: -0.0001em;
}

.route-four .question-head .hero-title {
  max-width: 760px;
}

.route-one .question-head .hero-title {
  max-width: 674px;
  letter-spacing: -0.0001em;
}

.question-head .lead {
  max-width: 460px;
  font-size: 16px;
  line-height: 20px;
}

.route-one .question-head .lead {
  max-width: 520px;
}

.diagram-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(820px, 100%);
  min-height: 340px;
  margin-top: 0;
  padding-top: 45px;
}

.route-four .diagram-block {
  min-height: 299px;
  padding-top: 27px;
}

.route-one .diagram-block {
  min-height: 340px;
  padding-top: 48px;
}

.route-ai .diagram-block {
  min-height: 333px;
  padding-top: 27px;
}

.diagram-caption {
  max-width: 330px;
  margin: 26px 0 0;
  color: rgba(220, 217, 219, 0.56);
  font-size: 14px;
  font-weight: 300;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
}

.answers {
  width: min(676px, 100%);
  margin-top: 0;
  border-top: 1px solid rgba(227, 216, 195, 0.16);
  padding-top: 42px;
}

.prompt {
  max-width: 573px;
  margin: 0 auto 24px;
  color: rgba(244, 244, 242, 0.9);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.06em;
  text-align: center;
}

.route-ai .prompt {
  max-width: 500px;
}

.route-one .prompt {
  max-width: 500px;
}

.qa {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(600px, 100%);
  margin: 0 auto;
}

.qa-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 169px;
  padding: 13px 16px 14px;
}

.qa-row.tall {
  min-height: 205px;
}

.qa-row.compact {
  min-height: 106px;
}

.qa-question {
  margin: 0;
  color: rgba(244, 244, 242, 0.86);
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  line-height: 18px;
}

.thoughts {
  width: 100%;
  min-height: 75px;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid rgba(220, 217, 219, 0.3);
  outline: 0;
  background: transparent;
  color: rgba(244, 244, 242, 0.86);
  font-size: 14px;
  font-weight: 300;
  line-height: 18px;
}

.thoughts::placeholder {
  color: rgba(220, 217, 219, 0.34);
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 3px;
}

.opt {
  min-height: 30px;
  border: 1px solid rgba(220, 217, 219, 0.16);
  border-radius: 999px;
  padding: 5px 11px;
  background: transparent;
  color: rgba(220, 217, 219, 0.58);
  cursor: pointer;
  font-size: 14px;
  font-weight: 300;
  line-height: 18px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.opt:hover,
.opt.is-selected {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 244, 242, 0.8);
}

.continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 42px;
  margin-top: 32px;
  border: 1px solid rgba(220, 217, 219, 0.42);
  border-radius: 999px;
  padding: 11px 24px;
  background: transparent;
  color: rgba(244, 244, 242, 0.92);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  line-height: 18px;
  transition: background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.continue:hover,
.continue:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
  outline: 0;
}

.scale-svg,
.one-svg,
.four-svg,
.ai-main,
.ai-key-svg {
  display: block;
  overflow: visible;
}

.one-svg {
  width: 368px;
  height: 142px;
}

.one-serif-label {
  fill: rgba(244, 244, 242, 0.84);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.one-mono-label {
  fill: rgba(255, 255, 255, 0.32);
  font-family: Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 1.372px;
}

.ai-diagram {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  width: 676px;
  height: 290px;
}

.ai-main {
  width: 620px;
  height: 228px;
}

.ai-key-svg {
  width: 440px;
  height: 18px;
}

.four-card {
  fill: rgba(255, 255, 255, 0.018);
  stroke: rgba(227, 216, 195, 0.18);
}

.four-label,
.diagram-label {
  fill: rgba(244, 244, 242, 0.76);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.diagram-muted {
  fill: rgba(220, 217, 219, 0.48);
}

.ai-key {
  fill: rgba(220, 217, 219, 0.52);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes loader-line {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes page-in {
  0% {
    opacity: 0;
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@media (max-width: 760px) {
  .intro-screen {
    min-height: 100dvh;
    padding: 32px 22px;
  }

  .intro-card {
    transform: none;
    padding: 32px 0;
  }

  .lead {
    font-size: 16px;
    line-height: 20px;
  }

  .intro-actions {
    margin-top: 62px;
  }

  .question-screen {
    padding: 72px 22px 80px;
  }

  .done-screen {
    align-items: center;
    min-height: 100dvh;
    padding: 72px 22px;
  }

  .done-title {
    font-size: 44px;
    line-height: 52px;
  }

  .question-card {
    padding: 0 0 40px;
  }

  .question-head .hero-title {
    font-size: 30px;
    line-height: 35px;
  }

  .progress {
    width: 244px;
    margin-bottom: 58px;
  }

  .progress::before {
    width: 230px;
  }

  .diagram-block {
    min-height: 250px;
    margin-top: 34px;
  }

  .scale-svg,
  .one-svg,
  .four-svg,
  .ai-diagram,
  .ai-main,
  .ai-key-svg {
    width: min(100%, 360px);
    height: auto;
  }

  .answers {
    margin-top: 36px;
    padding-top: 36px;
  }

  .prompt {
    margin-left: 0;
    margin-bottom: 34px;
    font-size: 18px;
    line-height: 22px;
  }

  .qa {
    gap: 26px;
  }
}
