:root {
  --ink: #183432;
  --ink-soft: #526765;
  --cream: #f8f5ed;
  --paper: #fffdf8;
  --teal: #184e4a;
  --teal-dark: #123d3a;
  --mint: #cce0d5;
  --coral: #e77c62;
  --coral-soft: #f2c1ae;
  --gold: #d9aa54;
  --line: #dcded5;
  --shadow: 0 18px 55px rgba(35, 66, 61, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: white;
  padding: .75rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 92px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.compact-header { height: 78px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
}
.brand-name {
  color: var(--ink);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .17em;
}
nav { display: flex; gap: 2rem; }
.nav-link, .back-link {
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-link:hover, .nav-link.is-active, .back-link:hover { color: var(--teal); }
.back-link { display: flex; align-items: center; gap: .5rem; }

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 4rem;
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding: 4.5rem 0 6rem;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--coral);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.05; }
h1, h2 { font-family: "Newsreader", serif; font-weight: 500; }
.hero h1 { max-width: 720px; margin-bottom: 1.5rem; font-size: clamp(3.3rem, 6vw, 5.55rem); letter-spacing: -.045em; }
.hero h1 em { color: var(--coral); font-weight: 500; }
.hero-intro, .lead {
  max-width: 600px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.hero-intro { max-width: 520px; margin: 0 0 2.2rem; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .8rem 1.4rem;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.button-primary { color: white; background: var(--teal); box-shadow: 0 9px 24px rgba(24, 78, 74, .2); }
.button-primary:hover { background: var(--teal-dark); box-shadow: 0 12px 28px rgba(24, 78, 74, .26); }
.button-wide { width: 100%; margin-top: 1.5rem; }

.hero-art { min-height: 450px; display: grid; place-items: center; }
.hero-logo { width: min(100%, 510px); height: auto; display: block; filter: drop-shadow(0 24px 32px rgba(35, 66, 61, .1)); }

.studies-section { padding: 6rem max(24px, calc((100% - 1180px) / 2)) 7rem; background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; margin-bottom: 3rem; }
.section-heading h2, .about-section h2 { margin-bottom: 0; font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -.035em; }
.section-note { max-width: 480px; justify-self: end; margin: 0; color: var(--ink-soft); }
.study-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.study-card {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.study-card::after { content: ""; width: 200px; height: 200px; position: absolute; right: -80px; top: 82px; border: 1px solid var(--coral-soft); border-radius: 50%; }
.card-topline { display: flex; justify-content: space-between; align-items: center; }
.status-dot { display: inline-flex; align-items: center; gap: .5rem; font-size: .73rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.status-dot i { width: 8px; height: 8px; border-radius: 50%; background: #56a77a; box-shadow: 0 0 0 4px rgba(86, 167, 122, .13); }
.study-number { color: #9caaa7; font-family: "Newsreader", serif; font-size: 1.2rem; }
.card-symbol { width: 104px; height: 104px; display: flex; align-items: center; justify-content: center; gap: 5px; margin: 2.3rem 0 1.8rem; border-radius: 50%; background: var(--coral-soft); transform: rotate(-6deg); }
.card-symbol span { width: 13px; border: 2px solid var(--teal); border-radius: 50%; }
.card-symbol span:nth-child(1) { height: 42px; transform: rotate(-20deg); }
.card-symbol span:nth-child(2) { height: 54px; }
.card-symbol span:nth-child(3) { height: 42px; transform: rotate(20deg); }
.study-card h3 { max-width: 460px; margin-bottom: .75rem; font-family: "Newsreader", serif; font-size: 2rem; font-weight: 500; }
.study-card > p { max-width: 520px; margin: 0 0 1.5rem; color: var(--ink-soft); }
.card-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: auto; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .78rem; }
.card-meta span { display: flex; gap: .4rem; align-items: center; }
.card-meta b { color: var(--coral); }
.card-link { display: flex; justify-content: space-between; align-items: center; margin: .5rem -2rem -2rem; padding: 1.1rem 2rem; color: white; background: var(--teal); font-size: .86rem; font-weight: 700; text-decoration: none; }
.card-link:hover { background: var(--teal-dark); }
.empty-state { grid-column: 1 / -1; padding: 3rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

.about-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 6rem; padding: 7rem max(24px, calc((100% - 1180px) / 2)); color: white; background: var(--teal); }
.eyebrow-light { color: var(--coral-soft); }
.about-points { display: grid; gap: 2rem; }
.about-point { display: grid; grid-template-columns: 55px 1fr; column-gap: 1.25rem; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.about-point:last-child { border-bottom: 0; }
.point-number { grid-row: 1 / 3; color: var(--coral-soft); font-family: "Newsreader", serif; font-size: 1.3rem; }
.about-point h3 { margin: 0 0 .3rem; font-size: 1.08rem; }
.about-point p { margin: 0; color: rgba(255,255,255,.7); font-size: .9rem; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2.2rem max(24px, calc((100% - 1180px) / 2)); color: var(--ink-soft); background: var(--paper); font-size: .78rem; }
footer p { margin: 0; }
.brand-footer { color: var(--ink); }

.flow-page { width: min(860px, calc(100% - 40px)); margin: 1.6rem auto 6rem; }
.flow-progress { max-width: 620px; display: flex; align-items: flex-start; justify-content: center; margin: 2rem auto 3.2rem; }
.progress-step { width: 104px; flex: 0 0 auto; text-align: center; color: #9aa8a5; }
.progress-step span { width: 34px; height: 34px; display: grid; place-items: center; margin: auto; border: 1px solid #c9cfcc; border-radius: 50%; background: var(--cream); font-size: .78rem; font-weight: 700; }
.progress-step p { margin: .5rem 0 0; font-size: .72rem; font-weight: 600; }
.progress-step.is-current { color: var(--teal); }
.progress-step.is-current span { color: white; border-color: var(--teal); background: var(--teal); }
.progress-step.is-complete { color: var(--teal); }
.progress-step.is-complete span { color: var(--teal); border-color: var(--mint); background: var(--mint); }
.progress-line { width: 110px; height: 1px; margin: 17px -17px 0; background: #c9cfcc; }
.progress-line.is-complete { background: var(--teal); }

.content-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.detail-header { padding: 3.5rem 3.8rem 2.6rem; background: linear-gradient(135deg, #f5e0d4, #f9f3e9 66%); }
.detail-header h1, .form-intro h1, .ready-card h1 { margin-bottom: 1rem; font-size: clamp(2.7rem, 6vw, 4.4rem); letter-spacing: -.035em; }
.study-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2.4rem 0 0; padding-top: 1.6rem; border-top: 1px solid rgba(24,52,50,.15); }
.study-facts div + div { padding-left: 1.5rem; border-left: 1px solid rgba(24,52,50,.15); }
.study-facts dt { color: var(--ink-soft); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.study-facts dd { margin: .2rem 0 0; font-family: "Newsreader", serif; font-size: 1.2rem; }
.detail-body { padding: 1rem 3.8rem 3.8rem; }
.detail-body > section { padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.detail-body > section > h2, .consent-heading h2 { margin-bottom: .75rem; font-family: "DM Sans", sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.detail-body p { color: var(--ink-soft); }
.detail-body .consent-section { margin-top: 1rem; padding: 2rem; border: 0; border-radius: 16px; background: #edf4ef; }
.consent-heading { display: flex; align-items: center; gap: 1rem; }
.consent-heading .eyebrow { margin-bottom: .3rem; }
.consent-copy { margin-top: 1.5rem; }
.consent-copy h3 { margin: 1.7rem 0 .55rem; color: var(--ink); font-size: .96rem; line-height: 1.35; }
.consent-copy p { margin: 0 0 1rem; font-size: .88rem; }
.consent-copy a { color: var(--teal); font-weight: 700; text-underline-offset: 3px; }
.section-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--teal); }
.checkbox-list { display: grid; gap: .75rem; margin: 1.4rem 0 0; }
.check-row { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; padding: 1rem; border: 1px solid #d5e1da; border-radius: 10px; background: white; cursor: pointer; font-size: .88rem; }
.check-row:hover { border-color: #9bbcaf; }
.check-row input { width: 18px; height: 18px; margin: .16rem 0 0; accent-color: var(--teal); }
.declaration-row { padding: 1.2rem; border-color: #9bbcaf; }

.form-card { max-width: 720px; margin: auto; padding: 3.8rem; }
.form-intro { text-align: center; }
.form-intro .lead { margin: 0 auto 1.8rem; }
.privacy-note { display: grid; grid-template-columns: 28px 1fr; gap: .7rem; padding: 1rem 1.2rem; border-radius: 12px; color: var(--ink-soft); background: #edf4ef; text-align: left; }
.privacy-note span { color: var(--teal); font-size: 1.2rem; }
.privacy-note p { margin: 0; font-size: .82rem; }
.form-card form { margin-top: 2.4rem; }
fieldset { margin: 0 0 1.5rem; padding: 0; border: 0; }
legend, .field-group > label { display: block; margin-bottom: .65rem; color: var(--ink); font-size: .86rem; font-weight: 700; }
legend span, .field-group > label span, .required-note span { color: var(--coral); }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card span { display: grid; place-items: center; min-height: 58px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; font-size: .86rem; font-weight: 600; }
.choice-card input:checked + span { color: var(--teal); border: 2px solid var(--teal); background: #edf4ef; }
.choice-card input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.field-group { margin-bottom: 1.5rem; }
.field-group input { width: 100%; height: 54px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; }
.field-group input:focus { border-color: var(--teal); outline: 2px solid rgba(24,78,74,.13); }
.field-group small { display: block; margin-top: .35rem; color: #7f8e8b; font-size: .72rem; }
.form-error { margin-top: 1rem; padding: .8rem 1rem; border: 1px solid #e6a493; border-radius: 8px; color: #88412f; background: #fff2ed; font-size: .82rem; }
.required-note { margin: .8rem 0 0; color: #899491; font-size: .7rem; text-align: center; }

.ready-card { display: flex; flex-direction: column; align-items: center; padding: 5rem 3rem; text-align: center; }
.ready-icon { width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: 1.5rem; border-radius: 50%; color: var(--teal); background: var(--mint); font-size: 2rem; }
.ready-card .lead { margin: 0 auto 2rem; }
.ready-card .text-link { margin-top: 1.5rem; color: var(--ink-soft); font-size: .84rem; font-weight: 600; }
.simple-footer { border-top: 1px solid var(--line); }

@media (max-width: 800px) {
  .site-header { width: min(100% - 32px, 1180px); }
  nav { gap: 1rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 3rem; }
  .hero-art { min-height: 380px; margin-top: -1rem; }
  .section-heading, .about-section { grid-template-columns: 1fr; gap: 2rem; }
  .section-note { justify-self: start; }
  .study-grid { grid-template-columns: 1fr; }
  .about-section { padding-top: 5rem; padding-bottom: 5rem; }
  .detail-header, .detail-body, .form-card { padding-left: 2rem; padding-right: 2rem; }
}

@media (max-width: 560px) {
  .site-header { height: 72px; }
  .site-header nav { display: none; }
  .brand-name { font-size: .82rem; }
  .hero { width: min(100% - 36px, 1180px); gap: 1rem; padding: 3rem 0 4rem; }
  .hero h1 { font-size: 3.35rem; }
  .hero-art { min-height: 300px; margin: -1rem 0 -2rem; }
  .hero-logo { width: min(100%, 400px); }
  .studies-section { padding-top: 4.5rem; padding-bottom: 5rem; }
  .section-heading h2, .about-section h2 { font-size: 2.8rem; }
  .study-card { min-height: 440px; padding: 1.5rem; }
  .card-link { margin: .5rem -1.5rem -1.5rem; padding: 1.1rem 1.5rem; }
  footer { flex-wrap: wrap; }
  .flow-page { width: min(100% - 24px, 860px); margin-top: 1rem; }
  .flow-progress { margin-bottom: 2rem; }
  .progress-step { width: 82px; }
  .progress-step p { font-size: .62rem; }
  .progress-line { margin-left: -12px; margin-right: -12px; }
  .detail-header { padding: 2.5rem 1.4rem 2rem; }
  .detail-body { padding: .5rem 1.4rem 2rem; }
  .detail-body .consent-section { padding: 1.2rem; }
  .study-facts div + div { padding-left: .8rem; }
  .study-facts dd { font-size: 1rem; }
  .form-card { padding: 2.5rem 1.4rem; }
  .choice-grid { grid-template-columns: 1fr; }
  .ready-card { padding: 3.5rem 1.5rem; }
  .simple-footer { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
