:root {
  --blue: #56e39b;
  --blue-2: #34c97f;
  --blue-soft: rgba(86, 227, 155, 0.12);
  --blue-line: rgba(190, 240, 215, 0.26);
  --ink: #ecf4ef;
  --text: #cbd8d0;
  --muted: #8fa69a;
  --soft: #0a1310;
  --surface: #0f1c17;
  --surface-2: #12241d;
  --line: rgba(190, 240, 215, 0.12);
  --line-2: rgba(190, 240, 215, 0.2);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  --shadow-small: 0 12px 30px rgba(86, 227, 155, 0.14);
  --radius: 22px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(55% 45% at 12% -5%, rgba(86, 227, 155, 0.11), transparent 60%),
    radial-gradient(45% 40% at 102% 8%, rgba(86, 227, 155, 0.06), transparent 60%),
    var(--soft);
  color: var(--ink);
  font-family: Archivo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

body.is-unlocked .unlock-status {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

body.is-unlocked .lock-dot {
  background: #10b981;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.14);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.notice-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #07130d;
  color: var(--text);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
}

.notice-bar span {
  color: var(--blue);
}

.notice-bar a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(10, 19, 16, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: var(--shadow-small);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 20px;
  font-weight: 900;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 2.3vw, 34px);
}

.site-nav a,
.header-action,
.top-left-action {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.header-action:hover,
.top-left-action:hover {
  color: var(--blue);
}

.header-action,
.top-left-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
}

.top-left-action {
  justify-self: start;
}

.default-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100vh - 116px);
  padding: clamp(52px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.default-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: Newsreader, serif;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.98;
  font-weight: 600;
}

.default-hero p {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 600;
  line-height: 1.45;
}

.hero-action {
  margin-top: 30px;
}

.method-snapshot {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 36, 29, 0.98), rgba(11, 24, 19, 0.98));
  box-shadow: var(--shadow);
}

.method-snapshot > span {
  display: block;
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.method-snapshot strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.1;
}

.method-snapshot ol {
  margin: 24px 0 0;
  padding-left: 22px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.method-snapshot li + li {
  margin-top: 12px;
}

.participant-dashboard[hidden] {
  display: none;
}

body.is-unlocked .locked-content {
  display: none;
}

.participant-dashboard {
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100vh - 116px);
  padding: clamp(42px, 6vw, 82px) clamp(20px, 5vw, 72px);
}

.dashboard-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.dashboard-top h1 {
  margin: 0;
  color: var(--ink);
  font-family: Newsreader, serif;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 600;
  line-height: 0.98;
}

.dashboard-top p:not(.eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--text);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.dashboard-survey-btn {
  min-width: min(100%, 320px);
}

.dashboard-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.dashboard-flow span,
.dashboard-flow strong {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-flow strong {
  border-color: var(--blue-line);
  background: var(--blue-soft);
  color: var(--blue);
}

.dashboard-study-grid {
  margin-top: 34px;
}

.hero-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 82px) clamp(20px, 5vw, 72px) clamp(34px, 4vw, 60px);
}

.section-heading {
  text-align: center;
}

.section-heading.align-left {
  text-align: left;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.section-heading h1 {
  font-size: clamp(42px, 5.2vw, 64px);
}

.section-heading h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.section-heading p {
  margin: 24px auto 0;
  max-width: 660px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
}

.section-heading.align-left p {
  margin-left: 0;
}

.blue-rule {
  display: block;
  width: 112px;
  height: 7px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: var(--blue);
}

.align-left .blue-rule {
  margin-left: 0;
}

.unlock-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(680px, 100%);
  margin: 36px auto 0;
  padding: 14px 18px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
  text-align: center;
}

.lock-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.14);
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(42px, 7vw, 74px);
}

.study-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: clamp(22px, 2.6vw, 32px);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.study-card.is-featured,
.study-card:hover {
  border-color: var(--blue-line);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.study-art {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 18px;
  background: rgba(86, 227, 155, 0.08);
  color: var(--blue);
}

.study-art svg {
  width: 70px;
  height: 70px;
}

.study-card h2 {
  min-height: 92px;
  margin: 30px 0 0;
  color: var(--ink);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.study-card p {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.primary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 64px;
  padding: 14px 28px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  color: #fff;
  box-shadow: var(--shadow-small);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(86, 227, 155, 0.24);
}

.primary-btn:focus-visible,
.study-card summary:focus-visible,
.site-header a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(86, 227, 155, 0.35);
  outline-offset: 3px;
}

.wide-btn {
  width: 100%;
  margin-top: 22px;
}

.study-card .primary-btn {
  width: 100%;
  margin-top: auto;
}

.instructions {
  margin-top: 24px;
  color: var(--text);
}

.instructions summary {
  color: var(--blue);
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
}

.instructions ol {
  margin: 18px 0 0;
  padding-left: 30px;
  font-size: 20px;
  line-height: 1.45;
}

.instructions li + li {
  margin-top: 12px;
}

.flow-section,
.rules-section,
.terms-section,
.access-section,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 82px) clamp(20px, 5vw, 72px);
}

.simple-graph {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr;
  align-items: stretch;
  gap: 12px;
  margin-top: 34px;
}

.simple-graph div,
.rules-grid article,
.terms-section,
.access-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.simple-graph div {
  min-height: 140px;
  padding: 24px;
}

.simple-graph strong {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

.simple-graph span {
  display: block;
  margin-top: 18px;
  font-size: 22px;
  font-weight: 900;
}

.simple-graph i {
  position: relative;
  align-self: center;
  height: 3px;
  background: var(--blue-line);
  border-radius: 999px;
}

.simple-graph i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-top: 3px solid var(--blue-line);
  border-right: 3px solid var(--blue-line);
  transform: translateY(-50%) rotate(45deg);
}

.rules-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.rules-grid p,
.terms-section p,
.access-panel p,
.site-footer p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.rules-section {
  background: rgba(18, 36, 29, 0.48);
  max-width: none;
}

.rules-section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.rules-grid article {
  padding: 28px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.terms-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px !important;
  color: var(--blue) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terms-section h2,
.access-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  font-weight: 900;
}

.terms-section a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 900;
}

.quiet-terms {
  border: 1px dashed var(--line-2);
  border-radius: 16px;
  padding: 20px;
  background: rgba(246, 249, 253, 0.62);
  color: var(--muted);
  opacity: 0.72;
}

.quiet-terms summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.quiet-terms p {
  font-size: 15px;
}

.access-section {
  padding-top: 24px;
}

.access-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.9fr);
  gap: 26px;
  align-items: end;
  padding: clamp(26px, 4vw, 42px);
}

.code-form label,
.profile-form label span,
.survey-form label span {
  display: block;
  color: #44403c;
  font-size: 18px;
  font-weight: 900;
}

.code-form > div {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.code-form input,
.profile-form input,
.survey-form input,
.survey-form select,
.survey-form textarea {
  width: 100%;
  min-height: 58px;
  border: 2px solid #d7d2ce;
  border-radius: 16px;
  background: #fff;
  color: #171717;
  padding: 14px 18px;
  font-size: 20px;
  font-weight: 600;
}

.code-form .primary-btn {
  min-height: 58px;
  font-size: 18px;
  border-radius: 16px;
}

.form-feedback {
  min-height: 24px;
  margin: 10px 0 0 !important;
  color: #b91c1c !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

.form-feedback.is-good {
  color: #047857 !important;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  font-size: 20px;
  font-weight: 900;
}

.site-footer a {
  margin-left: 16px;
  color: var(--blue);
  font-weight: 900;
}

.footer-note {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px !important;
  color: var(--muted) !important;
}

.modal-shell[hidden] {
  display: none;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
}

.modal-card {
  --ink: #ecf4ef;
  --text: #cbd8d0;
  --muted: #8fa69a;
  --surface: #0f1c17;
  --line: rgba(190, 240, 215, 0.12);
  --line-2: rgba(190, 240, 215, 0.2);
  --blue-line: rgba(52, 201, 127, 0.34);
  --blue-soft: rgba(86, 227, 155, 0.12);
  position: relative;
  width: min(980px, 100%);
  max-height: min(92vh, 1160px);
  overflow: auto;
  border: 4px solid var(--line-2);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
  padding: clamp(28px, 5vw, 58px);
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -20px;
  margin-right: -20px;
  border: 0;
  border-radius: 999px;
  background: rgba(86, 227, 155, 0.1);
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.modal-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.modal-progress span {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(190, 240, 215, 0.16);
}

.modal-progress span.is-active,
.modal-progress span.is-complete {
  background: var(--blue);
}

.modal-panel[hidden] {
  display: none;
}

.modal-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0;
}

.modal-panel > p {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
}

.profile-form {
  margin-top: 42px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field-wide {
  grid-column: 1 / -1;
}

.profile-form label span,
.survey-form label span {
  margin-bottom: 8px;
}

.check-row {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.check-row span {
  display: inline;
  margin-bottom: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.check-row input {
  width: 26px;
  height: 26px;
  min-height: 0;
  flex: none;
  margin-top: 3px;
  accent-color: var(--blue);
}

.check-row a,
.login-note button,
.consent-box a {
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.login-note {
  margin: 24px 0 0 !important;
  text-align: center;
  color: var(--text) !important;
  font-size: 22px !important;
}

.consent-list {
  margin: 44px 0 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.45;
}

.consent-list li + li {
  margin-top: 16px;
}

.compact-panel {
  text-align: center;
}

.compact-panel .blue-rule {
  margin-left: auto;
}

.detected-copy {
  color: var(--blue) !important;
  font-size: 24px !important;
}

.choice-grid {
  display: grid;
  gap: 18px;
  margin-top: 48px;
}

.location-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.choice-grid button {
  position: relative;
  min-height: 112px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: #1f2937;
  font-size: 28px;
  font-weight: 900;
}

.option-grid button {
  min-width: 210px;
  min-height: 102px;
  border: 0;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  color: #fff;
  box-shadow: var(--shadow-small);
  text-transform: uppercase;
}

.choice-grid button.is-selected {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: inset 0 0 0 3px rgba(86, 227, 155, 0.16);
}

.choice-grid button span {
  position: absolute;
  left: 24px;
  top: -18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
}

.survey-panel {
  background: #fff;
}

.selected-study {
  color: var(--blue) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.survey-card {
  margin-top: 34px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.survey-card h3 {
  margin: 0 0 28px;
  color: var(--blue);
  font-size: 34px;
  font-weight: 900;
}

.survey-card > p {
  color: #57534e;
  font-size: 24px;
  font-weight: 600;
}

.survey-form label {
  display: block;
  margin-top: 26px;
}

.survey-form fieldset {
  margin: 34px 0 0;
  padding: 0;
  border: 0;
}

.survey-form legend {
  margin-bottom: 16px;
  color: #44403c;
  font-size: 24px;
  font-weight: 900;
}

.survey-form fieldset label {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 14px 0;
  color: #4b4642;
  font-size: 24px;
  font-weight: 600;
}

.survey-form fieldset input[type="radio"],
.survey-form fieldset input[type="checkbox"] {
  width: 30px;
  height: 30px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--blue);
}

.checkbox-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px 34px;
}

.rating-block {
  margin-top: 34px;
  overflow-x: auto;
}

.rating-block p {
  color: #4b4642;
  font-size: 23px;
}

.rating-table {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  min-width: 620px;
}

.rating-table-wrap {
  overflow-x: auto;
}

.rating-row,
.rating-head {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(5, minmax(52px, 0.5fr));
  align-items: center;
  gap: 18px;
}

.rating-head {
  color: #57534e;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rating-head span:first-child {
  text-align: left;
}

.rating-row strong {
  color: #4b4642;
  font-size: 22px;
}

.rating-row label {
  display: grid;
  place-items: center;
  margin: 0;
}

.rating-row input {
  width: 30px;
  height: 30px;
  min-height: 0;
  accent-color: var(--blue);
}

.consent-box {
  margin-top: 34px;
  padding: 28px;
  border-radius: 20px;
  background: #f7f7f7;
}

.consent-box strong {
  font-size: 24px;
  color: #44403c;
}

.consent-box p {
  color: #57534e;
  font-size: 22px;
}

.success-graph {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 12px;
}

.success-graph span,
.success-graph strong {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.success-graph strong {
  background: #dcfce7;
  color: #047857;
}

@media (max-width: 1120px) {
  .default-hero,
  .dashboard-top,
  .modal-study-grid,
  .study-grid,
  .rules-grid {
    grid-template-columns: 1fr 1fr;
  }

  .default-hero {
    min-height: auto;
  }

  .study-card {
    min-height: 0;
  }

  .simple-graph {
    grid-template-columns: 1fr;
  }

  .simple-graph i {
    width: 3px;
    height: 26px;
    justify-self: center;
  }

  .simple-graph i::after {
    right: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(50%) rotate(135deg);
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .top-left-action,
  .header-action {
    width: 100%;
  }

  .default-hero,
  .modal-study-grid,
  .study-grid,
  .rules-grid,
  .terms-section,
  .access-panel,
  .field-grid,
  .location-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-section,
  .default-hero,
  .participant-dashboard,
  .flow-section,
  .rules-section,
  .terms-section,
  .access-section,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .study-art {
    min-height: 180px;
  }

  .study-card h2 {
    min-height: 0;
  }

  .code-form > div {
    flex-direction: column;
  }

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

  .modal-shell {
    padding: 10px;
  }

  .modal-card {
    border-width: 2px;
    border-radius: 22px;
    padding: 24px 18px 32px;
  }

  .modal-close {
    margin-top: -12px;
    margin-right: -8px;
  }

  .modal-panel > p,
  .consent-list,
  .check-row,
  .survey-form legend,
  .survey-form fieldset label,
  .survey-card > p,
  .consent-box p {
    font-size: 19px;
  }

  .profile-form input,
  .survey-form input,
  .survey-form select,
  .survey-form textarea,
  .code-form input {
    font-size: 18px;
  }

  .site-footer a {
    margin: 0 16px 0 0;
  }
}

@media (max-width: 520px) {
  .notice-bar {
    justify-content: flex-start;
  }

  .section-heading h1 {
    font-size: 38px;
  }

  .default-hero h1 {
    font-size: 42px;
  }

  .study-card {
    padding: 18px;
  }

  .primary-btn {
    min-height: 56px;
    font-size: 19px;
  }

  .option-grid button {
    width: 100%;
  }

  .choice-grid button {
    min-height: 86px;
    font-size: 23px;
  }

  .rating-table {
    min-width: 560px;
  }
}

.notice-bar {
  background: #07130d;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.notice-bar span,
.notice-bar a,
.site-nav a:hover,
.header-action:hover,
.instructions summary,
.terms-section a,
.source-links a,
.site-footer a,
.selected-study,
.detected-copy,
.check-row a,
.login-note button,
.consent-box a {
  color: var(--blue) !important;
}

.site-header {
  background: rgba(10, 19, 16, 0.82);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  background: var(--blue);
  color: #07130d;
  box-shadow: none;
}

.brand strong,
.section-heading h1,
.section-heading h2,
.access-panel h1,
.access-panel h2,
.terms-section h2 {
  font-family: Newsreader, serif;
  font-weight: 600;
}

.brand small,
.eyebrow,
.source-links a,
.modal-progress,
.success-graph span,
.success-graph strong {
  font-family: "IBM Plex Mono", monospace;
}

.site-nav a,
.header-action {
  color: var(--muted);
}

.header-action,
.top-left-action,
.source-links a,
.terms-actions a {
  border-color: var(--line-2);
  background: rgba(86, 227, 155, 0.08);
}

.gate-section {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 116px);
}

.gate-section .access-panel {
  align-items: center;
}

.gate-section .access-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.98;
}

.modal-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.modal-study-grid .study-card {
  min-height: 0;
  padding: 18px;
}

.modal-study-grid .study-art {
  min-height: 112px;
  border-radius: 14px;
}

.modal-study-grid .study-art svg {
  width: 48px;
  height: 48px;
}

.modal-study-grid h3 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.18;
}

.modal-study-grid p {
  margin: 10px 0 18px;
  color: var(--text);
  font-size: 16px;
}

.modal-study-grid .primary-btn {
  min-height: 50px;
  border-radius: 14px;
  font-size: 17px;
}

.blue-rule {
  background: var(--blue);
}

.unlock-status {
  border-color: rgba(230, 199, 126, 0.42);
  background: rgba(230, 199, 126, 0.09);
  color: var(--gold, #e6c77e);
}

body.is-unlocked .unlock-status {
  background: rgba(86, 227, 155, 0.1);
  border-color: var(--blue-line);
  color: var(--blue);
}

.lock-dot,
body.is-unlocked .lock-dot {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(86, 227, 155, 0.14);
}

.study-card,
.simple-graph div,
.rules-grid article,
.terms-section,
.access-panel,
.modal-card,
.survey-card,
.consent-box {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(18, 36, 29, 0.98), rgba(11, 24, 19, 0.98));
  box-shadow: var(--shadow);
}

.study-card:hover,
.study-card.is-featured {
  border-color: var(--blue-line);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.study-art {
  background:
    linear-gradient(135deg, rgba(86, 227, 155, 0.14), rgba(86, 227, 155, 0.04)),
    #0b1813;
  color: var(--blue);
}

.study-card h2,
.choice-grid button,
.survey-card h3,
.consent-box strong,
.survey-form legend,
.rating-row strong,
.rating-head,
.terms-doc h1,
.terms-doc h2,
.terms-doc h3 {
  color: var(--ink);
}

.study-card p,
.simple-graph span,
.rules-grid p,
.terms-section p,
.access-panel p,
.site-footer p,
.modal-panel > p,
.consent-list,
.check-row,
.check-row span,
.survey-card > p,
.survey-form fieldset label,
.rating-block p,
.consent-box p {
  color: var(--text) !important;
}

.rules-section {
  background: rgba(18, 36, 29, 0.48);
}

.simple-graph strong,
.success-graph span {
  background: var(--blue-soft);
  color: var(--blue);
}

.simple-graph i {
  background: var(--blue-line);
}

.simple-graph i::after {
  border-color: var(--blue-line);
}

.primary-btn,
.option-grid button {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #07130d;
  box-shadow: var(--shadow-small);
}

.option-grid button {
  color: #fff;
}

.primary-btn:hover {
  box-shadow: 0 16px 36px rgba(86, 227, 155, 0.22);
}

.primary-btn:focus-visible,
.study-card summary:focus-visible,
.site-header a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline-color: rgba(86, 227, 155, 0.42);
}

.code-form label,
.profile-form label span,
.survey-form label span {
  color: var(--ink);
}

.code-form input,
.profile-form input,
.survey-form input,
.survey-form select,
.survey-form textarea {
  border-color: var(--line-2);
  background: rgba(7, 19, 13, 0.86);
  color: var(--ink);
}

.code-form input::placeholder,
.profile-form input::placeholder,
.survey-form input::placeholder,
.survey-form textarea::placeholder {
  color: var(--muted);
}

.form-feedback {
  color: #ef9a8e !important;
}

.form-feedback.is-good {
  color: var(--blue) !important;
}

.site-footer {
  border-top-color: var(--line);
}

.footer-note {
  border-top-color: var(--line);
}

.modal-backdrop {
  background: rgba(3, 9, 7, 0.72);
}

.modal-card {
  border-color: var(--line-2);
}

.modal-close {
  background: rgba(86, 227, 155, 0.1);
  color: var(--ink);
}

.modal-progress span {
  background: rgba(190, 240, 215, 0.16);
}

.modal-progress span.is-active,
.modal-progress span.is-complete {
  background: var(--blue);
}

.choice-grid button {
  border-color: var(--line-2);
  background: rgba(7, 19, 13, 0.68);
}

.choice-grid button.is-selected {
  border-color: var(--blue);
  background: rgba(86, 227, 155, 0.12);
  color: var(--blue);
  box-shadow: inset 0 0 0 3px rgba(86, 227, 155, 0.16);
}

.choice-grid button span {
  background: var(--blue);
  color: #07130d;
}

.survey-panel {
  background: transparent;
}

.quiet-terms {
  border-color: var(--line-2);
  background: rgba(7, 19, 13, 0.44);
}

.check-row input,
.survey-form fieldset input[type="radio"],
.survey-form fieldset input[type="checkbox"],
.rating-row input {
  accent-color: var(--blue);
}

.success-graph strong {
  background: var(--blue);
  color: #07130d;
}
