/* ============================================================
   MyResearchStudy — "Aurora Human" design system (direction 3a)
   Warm paper ground · green-teal primary (logo) · amber accent.
   Tokens verbatim from design_handoff_myresearch/tokens/*.css.
   Light-first per the design system; dark mode deferred.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* — Primary: green-teal (the logo colour) — */
  --green-700: #1C5C4A;
  --green-600: #23705A;
  --green-500: #2A806A;   /* PRIMARY */
  --green-400: #3E9C82;
  --green-300: #4FAE8F;
  --green-100: #DCEBE5;
  --green-050: #EDF5F1;

  /* — Warm amber accent — */
  --amber-500: #E8924A;
  --amber-600: #C0792A;
  --amber-100: #FBEEDD;

  /* — Warm neutrals — */
  --ink:        #14302E;
  --body:       #3C504E;
  --muted:      #6B807D;
  --line:       #E1E8E6;
  --line-warm:  #E7E3DB;
  --paper:      #F7F5F2;
  --card:       #FFFFFF;
  --sunken:     #F3F1EC;
  --ink-invert: #FFFFFF;

  /* — Semantic — */
  --success:    #1F9D57;  --success-bg: #E3F6EA;
  --info:       #2A806A;  --info-bg:    #EDF5F1;
  --warn:       #C0792A;  --warn-bg:    #FBEEDD;
  --danger:     #C0392B;  --danger-bg:  #FBE7E4;

  --accent:        var(--green-500);
  --accent-hover:  var(--green-600);
  --accent-press:  var(--green-700);
  --border:        var(--line-warm);
  --gradient-accent: linear-gradient(90deg, var(--green-500), var(--amber-500));
  --glow-accent: rgba(42,128,106,.26);

  /* — Type — */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-serif:   'Newsreader', Georgia, serif;
  --font-sans:    'Public Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --fs-display: clamp(2.6rem, 1.6rem + 3.4vw, 3.9rem);
  --fs-h1:      clamp(2.0rem, 1.4rem + 2.0vw, 2.8rem);
  --fs-h2:      clamp(1.5rem, 1.2rem + 1.1vw, 2.0rem);
  --fs-lead:    1.125rem;
  --fs-body:    1.0625rem;
  --ls-eyebrow: 0.14em;

  /* — Layout / shape / motion — */
  --page-max: 1120px;
  --gutter:   clamp(20px, 4vw, 48px);
  --section-y: clamp(48px, 7vw, 96px);
  --radius-sm:   8px;
  --radius-md:   11px;
  --radius-card: 14px;
  --radius-lg:   18px;
  --radius-xl:   22px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(0,40,79,.06), 0 1px 3px rgba(0,40,79,.05);
  --shadow-2: 0 8px 30px rgba(0,40,79,.08);
  --shadow-3: 0 26px 60px rgba(0,40,79,.16);
  --ease-out:  cubic-bezier(.2,.7,.2,1);
  --ease-expo: cubic-bezier(.16,1,.3,1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.02em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: var(--green-500); text-decoration: none; }
a:hover { color: var(--green-600); }
img { max-width: 100%; display: block; }

.container { max-width: var(--page-max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.center { text-align: center; }
.lead { font-size: var(--fs-lead); color: var(--body); max-width: 60ch; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: var(--ls-eyebrow); font-size: .78rem; font-weight: 700; color: var(--green-500); margin-bottom: .6rem; font-family: var(--font-sans); }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.grad-word { background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Skip link & focus ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; border-radius: 4px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 242, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand__logo { height: 44px; width: auto; display: block; }
.nav__links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav__links a { color: var(--body); font-weight: 500; padding: 9px 12px; border-radius: var(--radius-sm); font-size: .92rem; }
.nav__links a:hover { color: var(--green-600); background: var(--green-050); }
.nav__links a.active { color: var(--green-600); font-weight: 700; }
.nav__sponsor { color: var(--muted) !important; }
@media (max-width: 820px) {
  .nav__links a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .18s var(--ease-out), box-shadow .18s var(--ease-out), transform .08s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 12px 30px var(--glow-accent); }
.btn--primary:active { background: var(--accent-press); }
.btn--amber { background: var(--amber-500); color: #0A1420; }
.btn--amber:hover { filter: brightness(.96); color: #0A1420; }
.btn--ghost { background: var(--card); color: var(--green-600); border-color: var(--border); }
.btn--ghost:hover { background: var(--green-050); color: var(--green-600); }
.btn--soft { background: var(--green-050); color: var(--green-600); }
.btn--soft:hover { background: var(--green-100); color: var(--green-700); }
.btn--pill { border-radius: var(--radius-pill); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { background: var(--sunken); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.btn--pulse { animation: mrsPulse 3s ease-in-out infinite; }

/* ---------- Cards & grids ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-1); }
.card--raised { box-shadow: var(--shadow-2); border-radius: var(--radius-xl); }
.card--pad-lg { padding: 32px; }
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.tile { background: var(--sunken); border-radius: var(--radius-md); padding: 10px 12px; }
.tile__k { font-size: .72rem; color: var(--muted); }
.tile__v { font-size: .94rem; color: var(--ink); font-weight: 700; margin-top: 3px; }
.tile__v--success { color: var(--success); }

/* ---------- Animations ---------- */
@keyframes mrsShimmer { to { background-position: -200% 0; } }
@keyframes mrsPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 26px rgba(42,128,106,.35); }
  50% { transform: scale(1.04); box-shadow: 0 16px 40px rgba(42,128,106,.5); }
}
@keyframes mrsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes mrsFloatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes mrsMarquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Hero (landing) ---------- */
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center; padding-block: 46px 30px; }
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; gap: 36px; } }
.shimmer-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(42,128,106,.28); color: var(--green-500);
  font-size: 13px; font-weight: 600; padding: 8px 15px; border-radius: var(--radius-pill); margin-bottom: 26px;
  background: linear-gradient(90deg, rgba(42,128,106,.05), rgba(42,128,106,.18), rgba(42,128,106,.05));
  background-size: 200% 100%;
  animation: mrsShimmer 5s linear infinite;
}
.hero__h1 { font-size: var(--fs-display); line-height: 1.02; margin-bottom: 22px; }
.hero__lead { font-size: 18px; line-height: 1.6; margin: 0 0 32px; max-width: 440px; }
.hero__cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 34px; }
.hero__proof { display: flex; align-items: center; gap: 14px; }
.hero__proof-note { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.hero__proof-note b { color: var(--ink); }
.avatar-chip {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 2px solid var(--paper); box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .9rem;
}
.avatar-chip + .avatar-chip { margin-left: -12px; }

.hero__visual { position: relative; height: 520px; }
.hero__glow { position: absolute; right: 0; top: 14px; width: 96%; height: 470px; border-radius: 26px;
  background: radial-gradient(120% 120% at 70% 20%, rgba(42,128,106,.26), transparent 62%); filter: blur(6px); }
.hero__photo {
  position: absolute; right: 0; top: 30px; width: 94%; height: 460px; border-radius: 24px;
  background: linear-gradient(145deg, var(--green-100), var(--green-300) 60%, var(--green-500));
  overflow: hidden;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
/* Frosted glass over the hero photo */
.match-float {
  position: absolute; left: -6px; bottom: 26px; width: 290px;
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.65); border-radius: 20px; padding: 20px;
  box-shadow: var(--shadow-3);
  animation: mrsFloat 6s ease-in-out infinite;
}
.match-float .tile { background: rgba(255,255,255,.5); }
.match-float .fit-ring__core { background: rgba(255,255,255,.9); }
.eligible-pill {
  position: absolute; right: 18px; top: 56px; display: flex; align-items: center; gap: 7px;
  background: var(--success); color: #fff; font-size: 13px; font-weight: 700; padding: 9px 15px;
  border-radius: var(--radius-pill); box-shadow: 0 10px 26px rgba(31,157,87,.5);
  animation: mrsFloatB 5s 1.7s ease-in-out infinite;
}
@media (max-width: 880px) { .hero__visual { height: 420px; } .hero__photo { height: 370px; } }

/* Fit ring — conic gradient set inline via --fit (deg) */
.fit-ring {
  width: 66px; height: 66px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--green-500) var(--fit, 300deg), rgba(0,0,0,.08) 0);
  display: flex; align-items: center; justify-content: center;
}
.fit-ring__core {
  width: 50px; height: 50px; border-radius: 50%; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.fit-ring__pct { font-family: var(--font-display); font-size: 16px; color: var(--ink); font-weight: 800; line-height: 1; }
.fit-ring__cap { font-size: 8px; color: var(--muted); letter-spacing: .08em; }
.fit-ring--sm { width: 60px; height: 60px; background: conic-gradient(var(--green-500) var(--fit, 300deg), var(--sunken) 0); }
.fit-ring--sm .fit-ring__core { width: 46px; height: 46px; }

/* ---------- Impact strip ---------- */
.impact {
  display: grid; grid-template-columns: auto 1px 1fr 1fr 1fr; align-items: center;
  margin: 14px 0 8px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.impact__statement { padding-right: 36px; max-width: 250px; font-size: 15px; color: var(--ink); font-weight: 600; line-height: 1.4; }
.impact__divider { width: 1px; height: 52px; background: var(--line); }
.impact .stat { text-align: center; }
.stat__n { font-family: var(--font-display); font-size: 38px; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.stat__n--green { color: var(--green-500); }
.stat__n--amber { color: var(--amber-500); }
.stat__l { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) {
  .impact { grid-template-columns: 1fr 1fr; gap: 20px; }
  .impact__statement { grid-column: 1 / -1; max-width: none; padding: 0; }
  .impact__divider { display: none; }
}

/* ---------- Partner marquee ---------- */
.marquee-wrap { overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { display: flex; gap: 64px; width: max-content; align-items: center; animation: mrsMarquee 28s linear infinite; }
.marquee span { white-space: nowrap; color: var(--muted); }

/* ---------- Story cards ---------- */
.story { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.story__avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.3rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}
.story__name { font-size: 15px; color: var(--ink); font-weight: 700; line-height: 1.25; }
.story__meta { font-size: 12.5px; color: var(--muted); }

/* ---------- Closing impact band ---------- */
.band { position: relative; min-height: 340px; margin-top: 22px; display: flex; align-items: center; overflow: hidden; }
.band__photo { position: absolute; inset: 0; background: linear-gradient(120deg, var(--green-300), var(--green-600) 55%, var(--green-700)); }
.band__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,48,46,.93) 0%, rgba(20,48,46,.68) 46%, rgba(20,48,46,.1) 100%); }
.band__content { position: relative; padding: 48px 44px; max-width: 560px; }
.band__content h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.05; color: #fff; margin-bottom: 16px; }
.band__content h2 em { color: #86D9B6; font-style: normal; }
.band__content p { font-size: 17px; color: #C3D6D2; margin-bottom: 26px; }

/* ---------- Dark gradient panels ---------- */
.panel-dark { background: linear-gradient(160deg, var(--green-700), var(--ink)); color: #fff; }
.panel-dark .eyebrow { color: #9FD9C6; }
.panel-dark h1, .panel-dark h2 { color: #fff; }
.panel-dark p { color: #CFE6DD; }
.check-row { display: flex; gap: 12px; align-items: flex-start; }
.check-row__tick {
  width: 22px; height: 22px; border-radius: 50%; flex: none; margin-top: 2px;
  display: grid; place-items: center; font-size: 12px;
  background: rgba(255,255,255,.16); color: #fff;
}
.check-row__text { font-size: 15px; color: rgba(255,255,255,.9); line-height: 1.5; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 20px; }
.form-field label, .field-label { display: block; font-weight: 600; font-size: .84rem; color: var(--body); margin-bottom: 6px; }
.form-field .hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea {
  width: 100%; font: inherit; font-size: .94rem; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--paper); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-400); box-shadow: 0 0 0 4px var(--green-050); background: var(--card); }

/* Condition typeahead dropdown */
.combo { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; z-index: 20; list-style: none; padding: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-2); max-height: 300px; overflow: auto; }
.combo li { padding: 13px 16px; cursor: pointer; color: var(--body); font-weight: 500; font-size: .94rem; border-bottom: 1px solid var(--line); }
.combo li:last-child { border-bottom: 0; }
.combo li:hover, .combo li[aria-selected="true"] { background: var(--green-050); color: var(--green-700); }
.combo li .add { color: var(--green-600); font-weight: 600; }
.combo li small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; margin-top: 2px; }

/* Option chips — pill single-select (radios) */
.options { display: flex; gap: 10px; flex-wrap: wrap; }
.option {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 11px 20px;
  cursor: pointer; background: var(--card);
  font-weight: 600; font-size: .92rem; color: var(--ink);
  transition: background .15s var(--ease-out), border-color .15s var(--ease-out), color .15s var(--ease-out);
}
.option:hover { border-color: var(--green-300); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:checked) { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.option__label { font-weight: inherit; }

/* Consent rows (whole row clickable) */
.consent-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; position: relative; }
.consent-row input { position: absolute; opacity: 0; pointer-events: none; }
.consent-row__box {
  width: 24px; height: 24px; border-radius: 7px; flex: none; margin-top: 1px;
  border: 1px solid var(--border); background: var(--card);
  display: grid; place-items: center; color: transparent; font-size: 13px;
  transition: background .15s var(--ease-out);
}
.consent-row:has(input:checked) .consent-row__box { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.consent-row__text { font-size: 14.5px; color: var(--body); line-height: 1.45; }
.consent-row__text b { color: var(--ink); }

/* ---------- Wizard ---------- */
.wizard { max-width: 720px; margin-inline: auto; }
.wizard__progress { display: flex; justify-content: space-between; margin-bottom: 28px; }
.wstep { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.wstep__circle {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sunken); color: var(--muted); font-weight: 700; font-size: .82rem;
  transition: background .3s var(--ease-out);
}
.wstep__label { font-size: .76rem; color: var(--muted); font-weight: 600; }
.wstep.done .wstep__circle, .wstep.active .wstep__circle { background: var(--green-500); color: #fff; }
.wstep.active .wstep__label { color: var(--ink); }
.wizard__step { display: none; }
.wizard__step.active { display: block; animation: fade .3s var(--ease-out); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wizard__step > .card { border-radius: var(--radius-xl); box-shadow: var(--shadow-2); }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.steplabel { font-size: .78rem; font-weight: 700; color: var(--green-500); text-transform: uppercase; letter-spacing: var(--ls-eyebrow); margin-bottom: 8px; }

/* Review list */
.review { border: 0; margin: 0; background: var(--sunken); border-radius: var(--radius-md); padding: 14px 18px; }
.review__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.review__row:last-child { border-bottom: 0; }
.review__row dt { color: var(--muted); font-size: .85rem; }
.review__row dd { margin: 0; color: var(--ink); font-weight: 600; font-size: .85rem; text-align: right; }

/* Consent box */
.consent { background: var(--card); border: 0; padding: 0; }
.consent ul { margin: 14px 0 0; padding-left: 20px; font-size: .85rem; color: var(--muted); }
.consent li { margin-bottom: 6px; }

/* ---------- Status timeline (horizontal) ---------- */
.htimeline { display: flex; align-items: center; }
.htimeline__seg { display: flex; align-items: center; flex: 1; }
.htimeline__dot { width: 16px; height: 16px; border-radius: 50%; flex: none; border: 3px solid var(--border); background: var(--card); }
.htimeline__seg.done .htimeline__dot { background: var(--green-500); border-color: var(--green-500); }
.htimeline__seg.current .htimeline__dot { border-color: var(--green-500); }
.htimeline__line { flex: 1; height: 3px; background: var(--line); }
.htimeline__seg.done .htimeline__line { background: var(--green-500); }
.htimeline__labels { display: flex; margin-top: 10px; }
.htimeline__labels > div { flex: 1; font-size: .82rem; color: var(--muted); }
.htimeline__labels > div.current { color: var(--ink); font-weight: 700; }
.htimeline__labels .t-sub { font-size: .76rem; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* ---------- Match cards (portal) ---------- */
.match-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: 22px; }
.match-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.match-card__name { font-family: var(--font-display); font-size: 21px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.match-card__meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.match-card__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 16px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-pill); line-height: 1.4; }
.badge--good { background: var(--success-bg); color: var(--success); }
.badge--info { background: var(--green-050); color: var(--green-600); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--neutral { background: var(--sunken); color: var(--body); }
.badge--amber { background: var(--amber-100); color: var(--amber-600); }

/* ---------- Dashboard ---------- */
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 20px 22px; }
.kpi__n { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.kpi__n--green { color: var(--green-500); }
.kpi__n--success { color: var(--success); }
.kpi__n--amber { color: var(--amber-500); }
.kpi__l { color: var(--muted); font-size: 13px; margin-top: 5px; }
.kpi__delta { font-size: .78rem; font-weight: 700; color: var(--success); margin-top: 8px; }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar input[type=text], .toolbar select { width: auto; padding: 10px 13px; background: var(--card); }
.toolbar .grow { flex: 1; min-width: 200px; }

.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; padding: 12px 16px; color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--body); vertical-align: middle; }
table.data td strong { color: var(--ink); }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--green-050); }
.mono { font-variant-numeric: tabular-nums; font-family: var(--font-mono); color: var(--ink); font-size: .82rem; }
@media (max-width: 720px) { .hide-sm { display: none; } }

/* Distribution bars */
.distbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.distbar__label { width: 130px; font-size: .84rem; color: var(--body); font-weight: 500; flex: none; }
.distbar__track { flex: 1; height: 8px; background: var(--sunken); border-radius: var(--radius-pill); overflow: hidden; }
.distbar__fill { height: 100%; background: var(--green-400); border-radius: var(--radius-pill); }
.distbar__val { width: 36px; text-align: right; font-weight: 700; color: var(--ink); font-size: .84rem; flex: none; }

/* ---------- Banner / notice ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-bg); border: 1px solid #f0ddc2; color: var(--warn); border-radius: var(--radius-md); padding: 13px 16px; font-size: .88rem; }
.proto-flag { background: var(--ink); color: #9FD9C6; text-align: center; font-size: .8rem; font-weight: 600; padding: 7px 16px; letter-spacing: .02em; }
.proto-flag b { color: #fff; }

/* ---------- Rights rows / regulator strip (learn) ---------- */
.right-row { display: flex; gap: 13px; align-items: flex-start; background: var(--green-050); border: 1px solid var(--green-300); border-radius: var(--radius-md); padding: 15px 18px; }
.right-row__tick { width: 22px; height: 22px; border-radius: 50%; background: var(--green-500); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; margin-top: 1px; }

/* ---------- FAQ ---------- */
details.faq { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 2px 20px; background: var(--card); margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1rem; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--green-500); font-weight: 400; transition: transform .28s var(--ease-out); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { padding-bottom: 16px; margin: 0; font-size: .94rem; }

/* ---------- Process (how it works) ---------- */
.process-intro { padding: 66px 28px 74px; text-align: center; }
.process-intro h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.05; margin-bottom: 18px; }
.stations { max-width: 780px; margin: 0 auto; padding: 30px var(--gutter) 56px; display: flex; flex-direction: column; gap: 64px; perspective: 1500px; perspective-origin: center; }
.station { transform-origin: center; will-change: transform, opacity; backface-visibility: hidden; }
.station__card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-2);
  padding: 32px 36px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
}
.station__num {
  width: 84px; height: 84px; border-radius: 50%; flex: none;
  background: var(--green-050); border: 2px solid var(--green-300);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 31px; color: var(--green-600);
}
.station__title { font-family: var(--font-display); font-size: 28px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.station__desc { font-size: 16.5px; line-height: 1.55; color: var(--body); }
@media (max-width: 640px) { .station__card { grid-template-columns: 1fr; } }

/* ---------- Researcher signup split ---------- */
.auth-split { min-height: calc(100vh - 77px); display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 880px) { .auth-split { grid-template-columns: 1fr; } }
.auth-split__left { background: linear-gradient(165deg, var(--green-700), var(--ink)); padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-split__right { display: flex; align-items: flex-start; justify-content: center; padding: 48px 40px; }
.seg { display: flex; gap: 6px; background: var(--sunken); border-radius: var(--radius-lg); padding: 6px; margin-bottom: 28px; }
.seg__tab { flex: 1; text-align: center; font-weight: 700; font-size: .92rem; color: var(--muted); padding: 10px; border-radius: var(--radius-card); cursor: pointer; border: 0; background: transparent; font-family: inherit; }
.seg__tab.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #9DC4BF; padding-block: 48px 32px; margin-top: var(--section-y); }
.footer a { color: #CFE7E3; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; font-family: var(--font-sans); font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer__brand { font-family: var(--font-serif); font-size: 1.4rem; color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Page header ---------- */
.pagehead { padding-block: clamp(36px, 5vw, 56px) 0; }

/* Utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 12px; } .gap-3 { gap: 20px; } .wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.hidden { display: none !important; }
.text-sm { font-size: .88rem; } .text-lg { font-size: 1.15rem; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Mobile tap targets (≥44px) — launch-readiness 375px pass ---------- */
@media (max-width: 760px) {
  .btn { min-height: 44px; }
  .btn--sm { min-height: 44px; }
  .seg__tab { min-height: 44px; }
  input[type=text], input[type=email], input[type=tel], input[type=number],
  input[type=password], input[type=search], select, textarea { min-height: 44px; }
  /* Footer legal/nav links: give inline links a comfortable tap height */
  .footer__grid a { display: inline-block; padding-block: 5px; }
}
