:root {
  --ink: #373650;
  --ink-soft: #5f6073;
  --charcoal: #303030;
  --purple: #6f4ff0;
  --violet: #8c3cf0;
  --magenta: #c71bf1;
  --orange: #f47721;
  --mist: #f5f5fa;
  --line: #e5e4ef;
  --white: #fff;
  --shadow: 0 18px 60px rgba(54, 48, 93, .12);
  --font-display: "Manrope", "Open Sans", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
button, audio { font: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  color: white;
  background: var(--purple);
  transform: translateY(-150%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { position: relative; z-index: 20; background: rgba(255,255,255,.97); }
.utility-bar { height: 36px; color: #fff; background: var(--charcoal); font-size: 12px; }
.utility-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; opacity: .94; }
.utility-tip { display: inline-flex; gap: 7px; align-items: center; }
.utility-tip svg { width: 17px; height: 17px; }
.utility-bar a { color: #fff; text-underline-offset: 2px; }
.main-nav { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand-word { font: 800 26px/1 var(--font-display); letter-spacing: -.9px; }
.brand-word > span { color: var(--orange); }
.brand-mark { display: flex; height: 28px; gap: 2px; align-items: center; }
.brand-mark i { display: block; width: 3px; border-radius: 9px; background: linear-gradient(var(--orange), var(--purple)); }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(5) { height: 9px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 17px; }
.brand-mark i:nth-child(3) { height: 26px; }
.nav-links { display: flex; margin-left: auto; gap: 36px; color: #3b3a45; font: 700 14px/1 var(--font-display); }
.nav-links span { padding: 13px 0; border-bottom: 2px solid transparent; }
.nav-links span.active { color: var(--purple); border-color: var(--purple); }
.research-pill {
  padding: 11px 19px;
  border: 1px solid #cfc8f8;
  border-radius: 999px;
  color: var(--purple);
  font: 700 12px/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
}

main { position: relative; min-height: calc(100vh - 160px); overflow: hidden; }
.wave-field { position: absolute; top: -5px; left: 0; z-index: 0; width: 100%; height: 240px; pointer-events: none; overflow: hidden; }
.wave-field svg { width: 100%; height: 100%; }
.wave-field g { fill: none; stroke: url("#unused"); }
.wave-field path { stroke: #d3b7f4; stroke-width: 1; opacity: .32; }
.wave-field path:nth-child(2), .wave-field path:nth-child(4) { stroke: #f5a072; }

.screen { position: relative; z-index: 1; }
.intro-screen {
  min-height: 660px;
  padding-block: 92px 78px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 72px;
  align-items: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--purple);
  font: 800 12px/1 var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow > span { display: inline-block; width: 27px; height: 2px; background: linear-gradient(90deg, var(--orange), var(--purple)); }
.hero-copy h1, .test-heading h1, .completion-card h1 {
  margin: 0;
  font: 800 clamp(42px, 5vw, 64px)/1.08 var(--font-display);
  letter-spacing: -2.8px;
  color: #41405f;
}
.hero-copy h1 em {
  color: transparent;
  background: linear-gradient(90deg, var(--purple), #b21de8);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}
.hero-lead {
  max-width: 620px;
  margin: 26px 0 30px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}
.study-facts { display: flex; margin: 0 0 34px; }
.study-facts div { display: flex; min-width: 118px; padding: 0 28px; flex-direction: column; border-left: 1px solid var(--line); }
.study-facts div:first-child { padding-left: 0; border-left: 0; }
.study-facts strong { color: var(--ink); font: 800 21px/1.25 var(--font-display); }
.study-facts span { margin-top: 3px; color: #8b8998; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.primary-button {
  min-height: 52px;
  padding: 0 25px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff;
  background: linear-gradient(100deg, #684def, #c717f0);
  box-shadow: 0 10px 28px rgba(111,79,240,.25);
  font: 700 15px/1 var(--font-display);
  transition: transform .18s, box-shadow .18s;
}
.primary-button svg { width: 20px; height: 20px; stroke-width: 2.2; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(111,79,240,.32); }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }

.intro-card {
  position: relative;
  padding: 38px 38px 30px;
  border: 1px solid rgba(111,79,240,.12);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.card-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.orb-one { top: -68px; right: -48px; width: 160px; height: 160px; background: rgba(111,79,240,.08); }
.orb-two { bottom: -50px; left: -35px; width: 120px; height: 120px; background: rgba(244,119,33,.08); }
.mini-label { margin: 0; color: #9a98a6; font: 800 10px/1 var(--font-display); text-transform: uppercase; letter-spacing: .14em; }
.intro-step { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 17px; align-items: center; margin-top: 27px; }
.step-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; color: var(--orange); background: #fff3ea; }
.step-icon.purple { color: var(--purple); background: #f0edff; }
.step-icon svg { width: 29px; height: 29px; }
.intro-step div > span { color: var(--orange); font: 800 10px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.intro-step:nth-of-type(5) div > span { color: var(--purple); }
.intro-step h2 { margin: 6px 0 3px; color: var(--ink); font: 800 18px/1.2 var(--font-display); }
.intro-step p { margin: 0; color: #777686; font-size: 13px; }
.step-divider { height: 34px; margin-left: 28px; border-left: 1px dashed #cbc8dc; }
.privacy-note {
  position: relative;
  margin: 28px -38px -30px;
  padding: 15px 30px;
  display: flex;
  gap: 9px;
  justify-content: center;
  color: #777686;
  background: #f7f7fb;
  font-size: 11px;
}
.privacy-note svg { width: 17px; height: 17px; color: #6e9d78; stroke-width: 2; }

.test-screen { padding-block: 52px 80px; }
.test-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; }
.test-heading .eyebrow { margin-bottom: 12px; }
.test-heading h1 { font-size: clamp(30px, 4vw, 43px); letter-spacing: -1.8px; }
.test-heading > div > p:last-child { margin: 10px 0 0; color: #767586; font-size: 14px; }
.progress-copy { text-align: right; flex: 0 0 auto; }
.progress-copy span { display: block; color: var(--purple); font: 800 19px/1 var(--font-display); }
.progress-copy small { color: #9d9ba8; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.progress-track { height: 4px; margin: 23px 0 26px; border-radius: 8px; background: #e8e6f0; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--purple), var(--magenta)); transition: width .35s ease; }

.trial-card { border: 1px solid #e8e6f0; border-radius: 16px; background: #fff; box-shadow: 0 13px 42px rgba(54,48,93,.09); overflow: hidden; }
.sample-meta { min-height: 50px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.sample-meta > span:first-child { color: #656478; font: 800 11px/1 var(--font-display); text-transform: uppercase; letter-spacing: .1em; }
.blind-label { display: inline-flex; align-items: center; gap: 7px; color: #92909e; font-size: 11px; }
.blind-label i { width: 7px; height: 7px; border-radius: 50%; background: #69b97c; box-shadow: 0 0 0 3px #e3f5e7; }
.transcript-block { padding: 29px 42px 26px; display: grid; grid-template-columns: 38px 1fr; gap: 13px; background: linear-gradient(115deg, #fbfaff, #fff); }
.quote-mark { color: #cabfff; font: 700 53px/.75 Georgia, serif; }
.transcript-block .mini-label { margin-bottom: 11px; color: var(--purple); }
blockquote { margin: 0; color: #44435a; font: 600 clamp(17px, 2vw, 21px)/1.55 var(--font-display); letter-spacing: -.25px; }

.rating-panel, .ab-panel { padding: 25px 42px 30px; border-top: 1px solid #efedf5; }
.audio-shell { padding: 17px 20px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; border: 1px solid #e3e0ee; border-radius: 12px; background: #fff; }
.audio-badge { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--purple); background: #f0edff; }
.audio-badge svg { width: 23px; height: 23px; }
.audio-shell label { display: block; margin-bottom: 7px; color: #676577; font: 700 11px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
audio { display: block; width: 100%; height: 37px; accent-color: var(--purple); }
.mos-options { margin: 26px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mos-options legend { grid-column: 1 / -1; margin-bottom: 10px; color: #737182; font: 700 11px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.mos-options input { position: absolute; opacity: 0; pointer-events: none; }
.mos-options label span { min-height: 67px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #dedce8; border-radius: 10px; color: #747284; background: #fff; transition: all .15s; }
.mos-options label:hover span { border-color: #a99bf2; background: #faf9ff; }
.mos-options input:checked + span { color: var(--purple); border-color: var(--purple); background: #f3f0ff; box-shadow: inset 0 0 0 1px var(--purple), 0 5px 14px rgba(111,79,240,.12); }
.mos-options input:focus-visible + span { outline: 3px solid rgba(111,79,240,.25); outline-offset: 2px; }
.mos-options b { font: 800 19px/1 var(--font-display); }
.mos-options small { margin-top: 6px; font-size: 11px; }

.pair-prompt { margin: 0 0 20px; color: #6f6d7d; font-size: 13px; text-align: center; }
.audio-pair { display: grid; grid-template-columns: 1fr 38px 1fr; gap: 10px; align-items: center; }
.audio-choice { padding: 20px; border: 1px solid #dedce8; border-radius: 13px; background: #fff; transition: border .18s, box-shadow .18s, transform .18s; }
.audio-choice.selected { border-color: var(--purple); box-shadow: 0 10px 24px rgba(111,79,240,.12); transform: translateY(-2px); }
.choice-top { margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.choice-top span { color: var(--ink); font: 800 16px/1 var(--font-display); }
.choice-top i { padding: 5px 9px; border-radius: 999px; color: #777485; background: #f2f1f6; font: 700 9px/1 var(--font-display); font-style: normal; text-transform: uppercase; letter-spacing: .06em; }
.audio-choice audio { margin-bottom: 17px; }
.choice-button { width: 100%; min-height: 42px; border: 1px solid #dcd9e8; border-radius: 8px; display: flex; gap: 9px; align-items: center; justify-content: center; color: #646274; background: #fafafd; font: 700 12px/1 var(--font-display); }
.selected .choice-button { color: var(--purple); border-color: #afa3f1; background: #f1eeff; }
.radio-dot { width: 14px; height: 14px; border: 1.5px solid #aba8b7; border-radius: 50%; }
.selected .radio-dot { border: 4px solid var(--purple); }
.versus { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #e1dfeb; border-radius: 50%; color: #9693a3; background: #fff; font: 700 10px/1 var(--font-display); text-transform: uppercase; }

.form-error { min-height: 18px; margin: -3px 42px 7px; color: #bb3c4d; font-size: 12px; text-align: right; }
.trial-footer { min-height: 70px; padding: 12px 30px 12px 42px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); background: #fafafd; }
.trial-footer > span { display: flex; gap: 7px; align-items: center; color: #9996a5; font-size: 11px; }
.trial-footer > span svg { width: 16px; height: 16px; }
.next-button { min-height: 44px; padding-inline: 21px; font-size: 13px; }

.complete-screen { min-height: 650px; padding-block: 78px; display: grid; place-items: center; }
.completion-card { width: min(620px, 100%); padding: 55px; border: 1px solid #e5e2ef; border-radius: 20px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.success-mark { width: 70px; height: 70px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--orange), var(--purple)); box-shadow: 0 10px 28px rgba(111,79,240,.23); }
.success-mark svg { width: 35px; height: 35px; stroke-width: 2.5; }
.eyebrow.centered { justify-content: center; }
.completion-card h1 { font-size: 42px; letter-spacing: -1.7px; }
.completion-card > p:not(.eyebrow) { max-width: 460px; margin: 18px auto; color: #737181; line-height: 1.7; }
.completion-stats { margin: 28px auto; display: flex; flex-direction: column; }
.completion-stats strong { color: var(--purple); font: 800 32px/1 var(--font-display); }
.completion-stats span { margin-top: 5px; color: #9996a5; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.secondary-button { min-height: 45px; padding: 0 22px; border: 1px solid #b8aef2; border-radius: 999px; color: var(--purple); background: #fff; font: 700 13px/1 var(--font-display); }

footer { min-height: 52px; color: #d6d4dd; background: var(--charcoal); font-size: 11px; }
footer .shell { min-height: 52px; display: flex; align-items: center; justify-content: space-between; }

button:focus-visible, a:focus-visible, audio:focus-visible { outline: 3px solid rgba(111,79,240,.3); outline-offset: 3px; }

@media (max-width: 850px) {
  .intro-screen { grid-template-columns: 1fr; gap: 50px; padding-top: 64px; }
  .hero-copy { text-align: center; }
  .eyebrow, .study-facts { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .intro-card { width: min(540px, 100%); margin-inline: auto; }
  .nav-links { display: none; }
  .audio-pair { grid-template-columns: 1fr; }
  .versus { margin: -4px auto; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 1120px); }
  .utility-inner > span:first-child { display: none; }
  .utility-inner { justify-content: flex-end; }
  .main-nav { height: 68px; }
  .brand-word { font-size: 22px; }
  .research-pill { padding: 9px 12px; font-size: 9px; }
  .intro-screen { padding-block: 54px; }
  .hero-copy h1 { font-size: 39px; letter-spacing: -1.8px; }
  .hero-lead { font-size: 15px; }
  .study-facts div { min-width: 0; flex: 1; padding-inline: 12px; }
  .intro-card { padding: 28px 24px 25px; }
  .privacy-note { margin-inline: -24px; margin-bottom: -25px; }
  .test-screen { padding-block: 35px 55px; }
  .test-heading { align-items: flex-start; }
  .progress-copy { padding-top: 8px; }
  .test-heading h1 { font-size: 29px; }
  .test-heading > div > p:last-child { display: none; }
  .trial-card { border-radius: 12px; }
  .sample-meta { padding-inline: 20px; }
  .transcript-block { padding: 24px 20px; grid-template-columns: 26px 1fr; }
  .quote-mark { font-size: 40px; }
  .rating-panel, .ab-panel { padding: 20px; }
  .audio-shell { grid-template-columns: 1fr; }
  .audio-badge { display: none; }
  .mos-options { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .mos-options label span { min-height: 60px; }
  .mos-options small { font-size: 9px; }
  .form-error { margin-inline: 20px; }
  .trial-footer { padding: 14px 20px; justify-content: flex-end; }
  .trial-footer > span { display: none; }
  .next-button { width: 100%; }
  .completion-card { padding: 42px 22px; }
  .completion-card h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.resume-box {
  max-width: 500px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.custom-id-box {
  max-width: 500px;
  margin-top: 22px;
  padding: 17px;
  border: 1px solid #ddd8f2;
  border-radius: 12px;
  background: #faf9ff;
}
.resume-box label, .custom-id-box label {
  display: block;
  margin-bottom: 9px;
  color: #777586;
  font-size: 12px;
  line-height: 1.5;
}
.resume-box label strong, .custom-id-box label strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
}
.resume-row { display: flex; gap: 8px; }
.resume-row input {
  min-width: 0;
  height: 43px;
  padding: 0 14px;
  flex: 1;
  border: 1px solid #d9d6e6;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font: 700 13px/1 var(--font-display);
  text-transform: lowercase;
  outline: none;
}
.resume-row input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(111,79,240,.12);
}
.resume-row button {
  height: 43px;
  padding: 0 17px;
  border: 1px solid #b7adf2;
  border-radius: 9px;
  color: var(--purple);
  background: #fff;
  font: 700 12px/1 var(--font-display);
}
.resume-row button:disabled { cursor: wait; opacity: .6; }
.resume-error { min-height: 17px; margin: 6px 0 0; color: #b43d4f; font-size: 11px; }

.id-screen {
  min-height: 650px;
  padding-block: 72px;
  display: grid;
  place-items: center;
}
.id-card {
  width: min(650px, 100%);
  padding: 52px;
  border: 1px solid #e4e1ee;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
  text-align: center;
}
.id-fruit {
  width: 67px;
  height: 67px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--purple);
  background: linear-gradient(135deg, #fff0e6, #eeebff);
}
.id-fruit svg { width: 37px; height: 37px; stroke-width: 1.7; }
.id-card h1 {
  max-width: 520px;
  margin: 0 auto;
  color: var(--ink);
  font: 800 clamp(30px, 4vw, 42px)/1.15 var(--font-display);
  letter-spacing: -1.5px;
}
.id-card > p:not(.eyebrow) {
  max-width: 500px;
  margin: 16px auto 24px;
  color: #737181;
  font-size: 14px;
  line-height: 1.7;
}
.listener-id-value {
  margin: 0 auto 18px;
  padding: 18px 24px;
  border: 1px dashed #a99cf1;
  border-radius: 12px;
  color: var(--purple);
  background: #f6f3ff;
  font: 800 clamp(27px, 5vw, 38px)/1 var(--font-display);
  letter-spacing: .04em;
}
.id-card .copy-button { margin-right: 8px; }
.copy-button { min-width: 145px; }

.study-status {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.task-progress-list {
  margin: 14px 0 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.task-progress-item {
  padding: 11px 13px;
  border: 1px solid #e5e2ef;
  border-radius: 10px;
  background: rgba(255,255,255,.86);
}
.task-progress-item.active { border-color: #b8aef2; background: #f8f6ff; }
.task-progress-item > div:first-child {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #777485;
  font: 700 11px/1 var(--font-display);
}
.task-progress-item strong { color: var(--purple); }
.task-progress-track { height: 4px; overflow: hidden; border-radius: 999px; background: #e9e6f3; }
.task-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--purple)); }
.listener-chip {
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #ddd8f6;
  border-radius: 999px;
  color: #8a8798;
  background: rgba(255,255,255,.9);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.listener-chip strong {
  color: var(--purple);
  font: 800 11px/1 var(--font-display);
  text-transform: lowercase;
  letter-spacing: .03em;
}

#complete-listener-id {
  color: var(--purple);
  font-family: var(--font-display);
}

@media (max-width: 850px) {
  .resume-box, .custom-id-box { margin-inline: auto; text-align: left; }
  .study-status { min-width: 108px; }
}

@media (max-width: 600px) {
  .resume-box { margin-top: 22px; }
  .resume-row { align-items: stretch; }
  .resume-row button { padding-inline: 12px; }
  .id-screen { min-height: 610px; padding-block: 45px; }
  .id-card { padding: 38px 20px; }
  .id-card .copy-button {
    width: 100%;
    margin: 0 0 10px;
  }
  .id-card .primary-button { width: 100%; }
  .listener-chip {
    max-width: 125px;
    flex-wrap: wrap;
    justify-content: flex-end;
    border: 0;
    padding: 0;
    background: transparent;
  }
}
