@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --gold: #edc851;
  --teal: #55bfbf;
  --magenta: #d85bd2;
  --orange: #ff8345;
  --purple: #8170f9;
  --mint: #70e8a0;
  --coral: #f45b5b;
  --ink: #1a1523;
  --paper: #fffaf3;
  --cream: #fff3dc;
  --slate: #4a4454;
  --fog: #7a7384;
  --line: #eadfce;
  --white: #ffffff;
  --font: "Plus Jakarta Sans", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --focus: 2px solid var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(237, 200, 81, 0.55), transparent 60%),
    radial-gradient(700px 420px at 110% 8%, rgba(216, 91, 210, 0.28), transparent 55%),
    radial-gradient(640px 380px at 90% 110%, rgba(85, 191, 191, 0.35), transparent 55%),
    radial-gradient(520px 320px at -10% 90%, rgba(255, 131, 69, 0.28), transparent 50%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { top: 12px; }
.noscript { padding: 24px; }

.app {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
}

.appbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(255, 250, 243, 0.88);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  justify-self: start;
}
.brand-mark {
  width: 22px;
  height: 22px;
  flex: none;
  align-self: center;
  border-radius: 6px;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 11px 11px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 11px 0 / 11px 11px no-repeat,
    linear-gradient(var(--magenta), var(--magenta)) 0 11px / 11px 11px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 11px 11px / 11px 11px no-repeat;
}
.brand-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-by {
  font-size: 13px;
  color: var(--fog);
  font-weight: 400;
}
.appbar-mid {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dots {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  border: 2px solid var(--ink);
  background: var(--white);
}
.dot[data-tone="output"].is-filled,
.dot[data-tone="output"].is-on { background: var(--purple); }
.dot[data-tone="origin"].is-filled,
.dot[data-tone="origin"].is-on { background: var(--orange); }
.dot[data-tone="appearance"].is-filled,
.dot[data-tone="appearance"].is-on { background: var(--magenta); }
.dot[data-tone="signoff"].is-filled,
.dot[data-tone="signoff"].is-on { background: var(--teal); }
.dot.is-on { outline: 2px solid var(--ink); outline-offset: 2px; }
.progress-copy {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.disclaimer-bar {
  justify-self: end;
  max-width: 34ch;
  font-size: 12px;
  color: var(--slate);
  text-align: right;
  line-height: 1.4;
}

.stage {
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  min-height: 0;
}

.art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  border-right: 2px solid var(--ink);
  overflow: hidden;
}
.art[data-tone="gold"] { background: var(--gold); }
.art[data-tone="teal"] { background: var(--teal); }
.art[data-tone="magenta"] { background: var(--magenta); }
.art[data-tone="orange"] { background: var(--orange); }
.art[data-tone="purple"] { background: var(--purple); }
.art[data-tone="mint"] { background: var(--mint); }
.art[data-tone="coral"] { background: var(--coral); }
.art figure {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 440px;
  width: 100%;
}
.art img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.art figcaption {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 28ch;
  line-height: 1.35;
  color: var(--ink);
}
.art[data-tone="magenta"] figcaption,
.art[data-tone="purple"] figcaption,
.art[data-tone="coral"] figcaption {
  color: var(--paper);
}

.panel {
  min-width: 0;
  background: var(--white);
  padding: 36px 40px 48px;
}

.kicker, .step-kicker, .result-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
}
.welcome h1 {
  margin-top: 10px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-wrap: balance;
}
.welcome h1 mark {
  background: var(--gold);
  color: inherit;
  font: inherit;
  padding: 0 0.08em;
  border-radius: 4px;
}
.dek {
  margin-top: 16px;
  max-width: 42rem;
  font-size: 18px;
  color: var(--slate);
}
.cta-row { margin-top: 28px; }

.how {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 18px;
  max-width: 42rem;
}
.how li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 8px 12px;
  align-items: start;
}
.how .n {
  font-size: 13px;
  font-weight: 600;
  color: var(--fog);
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding-top: 1px;
}
.how h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.how p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.45;
}

.dates {
  margin-top: 28px;
  max-width: 42rem;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
}

.trust {
  margin-top: 28px;
  display: grid;
  gap: 10px;
  max-width: 42rem;
  font-size: 14px;
  color: var(--slate);
}
.fine { font-size: 13px; color: var(--fog); }

.behind {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  max-width: 42rem;
  font-size: 14px;
  color: var(--slate);
}
.behind h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fog);
}

.composer { max-width: 640px; }
.step-kicker { margin-bottom: 8px; }
.step h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.step .help {
  margin: 8px 0 18px;
  color: var(--slate);
  font-size: 15px;
}
.opts { display: grid; gap: 10px; }
.opt {
  display: flex;
  gap: 12px;
  text-align: left;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 56px;
}
.opt:hover { background: var(--cream); }
.opt.is-on {
  background: var(--ink);
  color: var(--paper);
}
.opt.is-on .opt-copy span { color: rgba(255, 250, 243, 0.78); }
.opt-mark {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 2px solid currentColor;
  border-radius: 99px;
  background: transparent;
}
.opt.is-on .opt-mark {
  background: radial-gradient(circle at center, var(--gold) 0 5px, transparent 6px);
}
.opt-copy { display: grid; gap: 2px; }
.opt-copy strong { font-weight: 700; letter-spacing: -0.02em; }
.opt-copy span { color: var(--slate); font-size: 14px; }
.form-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--gold); }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--cream); }

.result { max-width: 640px; }
.result[id] {
  padding: 8px 0 0;
}
.result-kicker { margin-bottom: 10px; }
.result h2 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.app[data-screen="result"] .result h2 {
  background: var(--gold);
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.12em;
  border-radius: 6px;
}
.why, .next, .note {
  margin-top: 16px;
  color: var(--slate);
}
.next strong { color: var(--ink); }
.label-card {
  margin: 20px 0 0;
  padding: 16px 18px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
}
.label-card figcaption {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 8px;
}
.label-card blockquote {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.preview {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--paper);
  border-left: 6px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 24px 18px;
  border-top: 2px solid var(--ink);
  background: var(--cream);
  font-size: 13px;
  color: var(--slate);
}
.site-footer strong { color: var(--ink); font-weight: 700; }
.site-footer a { color: #5b3fd4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }

@media (min-width: 900px) {
  .app { height: 100dvh; }
  .stage { min-height: 0; overflow: hidden; }
  .panel { overflow: auto; }
}

@media (max-width: 899px) {
  .appbar {
    grid-template-columns: 1fr auto;
    justify-items: start;
  }
  .disclaimer-bar { display: none; }
  .appbar-mid { justify-self: end; }
  .stage { grid-template-columns: 1fr; }
  .art {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
    padding: 12px 16px;
    min-height: 0;
  }
  .art figure { max-width: 180px; gap: 8px; }
  .art img { width: 120px; }
  .art figcaption { font-size: 13px; }
  .panel { padding: 24px 18px 40px; }
}

@media (max-width: 520px) {
  .brand-by { display: none; }
  .result-actions .btn, .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .opt { transition: none; }
}
