.interest-shell {
  position: relative;
  z-index: 1;
  --interest-text-width: 56rem;
  width: min(64rem, calc(100% - clamp(2rem, 8vw, 7rem)));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.25rem) 0 clamp(2.75rem, 6vw, 4.75rem);
}

.site-header,
.site-footer {
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.15rem 0 0.9rem;
  font-size: 0.78rem;
  border-bottom: 0;
}

.form-surface {
  position: relative;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-intro,
.interest-form {
  position: relative;
  z-index: 1;
  padding-inline: clamp(1.35rem, 5vw, 3.5rem);
}

.page-intro {
  padding-top: clamp(1.6rem, 4vw, 2.75rem);
  padding-bottom: clamp(1.1rem, 3vw, 2rem);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  width: min(100%, var(--interest-text-width));
  max-width: var(--interest-text-width);
  margin-bottom: 0.8rem;
  color: var(--ink-deep);
  font-size: clamp(1.9rem, 2.45vw, 2.65rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: 0;
  white-space: nowrap;
}

.intro-copy,
.supporting-copy {
  width: min(100%, var(--interest-text-width));
  max-width: var(--interest-text-width);
  color: #294e76;
  font-size: clamp(1.16rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.supporting-copy {
  margin-top: 0.85rem;
  color: #345779;
}

.science-link-row {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.science-link-row a {
  color: var(--ink-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.storage-note {
  width: min(100%, var(--interest-text-width));
  max-width: var(--interest-text-width);
  margin-top: 0;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.45;
}

.interest-form {
  padding-bottom: clamp(1.25rem, 3.5vw, 2.4rem);
}

.error-summary {
  margin-bottom: 0.9rem;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--pink-strong);
  color: var(--ink-deep);
  background: rgba(240, 111, 152, 0.1);
}

.error-summary p {
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.join-section {
  display: grid;
  gap: 0.55rem;
  padding: 0 0 clamp(0.7rem, 1.8vw, 1.1rem);
}

.join-divider {
  margin-top: 0;
}

.join-row {
  display: grid;
  grid-template-columns: minmax(13.75rem, 0.8fr) minmax(22.5rem, 1.2fr);
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.join-field {
  min-width: 0;
}

.scroll-notice {
  min-height: 3.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1.5px solid var(--rule-soft);
  color: var(--ink-soft);
  background: rgba(255, 252, 245, 0.56);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
}

.join-button {
  height: 3.1rem;
  min-height: 3.1rem;
  margin-top: 0;
  border-color: #aa365f;
  background: #aa365f;
}

.join-button:hover {
  border-color: var(--coral);
  background: var(--coral);
}

.join-button.is-success {
  border-color: #2f74ad;
  background: #2f74ad;
}

.join-button.is-success:hover {
  border-color: #3f8bc8;
  background: #3f8bc8;
}

.join-status {
  min-height: 0;
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.45;
}

.join-status:empty {
  display: none;
}

.join-status.ok {
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #2f74ad;
  color: var(--ink-deep);
  background: rgba(47, 116, 173, 0.12);
  font-weight: 600;
}

.join-status.error {
  color: #aa365f;
}

.join-status.loading {
  color: var(--pink-strong);
}

.survey-section {
  padding-top: 0;
}

.survey-section .section-divider {
  margin-top: clamp(0.25rem, 0.8vw, 0.5rem);
}

.question-row {
  display: grid;
  grid-template-columns: minmax(13.75rem, 0.8fr) minmax(22.5rem, 1.2fr);
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: clamp(1rem, 2.6vw, 1.55rem) 0;
  border-top: 1.5px solid var(--rule-soft);
}

.question-row:first-of-type {
  border-top: 0;
}

.prompt-column {
  display: grid;
  gap: 0.42rem;
}

.prompt-text,
.email-label {
  color: var(--ink-deep);
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0;
}

.prompt-note,
.field-error {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.45;
}

.field-error {
  min-height: 1.1rem;
  margin-top: 0.25rem;
  color: #aa365f;
}

.email-input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0 1rem;
}

.free-text-input {
  width: 100%;
  min-height: 7.2rem;
  resize: vertical;
  padding: 0.85rem 1rem;
  line-height: 1.5;
}

.control-column {
  min-width: 0;
}

.section-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin: clamp(0.7rem, 2vw, 1.2rem) 0 0;
  color: var(--pink-strong);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1.5px;
  background: var(--rule);
}

.survey-intro {
  width: min(100%, var(--interest-text-width));
  max-width: var(--interest-text-width);
  margin: 0.95rem 0 0;
  color: #345779;
  font-size: 1.04rem;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  display: contents;
}

.option-group {
  display: grid;
  gap: 0.7rem;
}

.option-card {
  min-height: 2.9rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.72rem;
  align-items: center;
  padding: 0.68rem 0.85rem;
  border: 1.5px solid var(--rule-soft);
  color: #345779;
  background: rgba(255, 252, 245, 0.56);
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.option-card span {
  font-size: 0.94rem;
  line-height: 1.35;
}

.option-card:hover {
  border-color: var(--rule);
  background: rgba(244, 236, 223, 0.76);
}

.option-card:has(input:checked) {
  border-color: var(--pink-strong);
  color: var(--ink-deep);
  background: rgba(217, 138, 163, 0.12);
}

.option-card input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--pink-strong);
}

.option-detail {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.45rem;
  margin-top: -0.25rem;
  padding: 0 0 0.25rem 2.35rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.option-detail input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.8rem;
}

.bottom-section {
  margin-top: clamp(1rem, 2.8vw, 1.65rem);
  padding: clamp(1.05rem, 3vw, 1.45rem);
  border: 1.5px solid var(--rule);
  background: rgba(244, 236, 223, 0.46);
}

.bottom-section h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.05;
}

.bottom-section p {
  color: #345779;
  font-size: 0.98rem;
  line-height: 1.58;
}

.bottom-section p + p {
  margin-top: 0.45rem;
}

.check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.72rem;
  align-items: start;
  margin-top: 0.75rem;
  color: var(--ink-deep);
  cursor: pointer;
}

.check-row span {
  font-size: 0.88rem;
  line-height: 1.45;
}

.check-row input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  accent-color: var(--pink-strong);
}

.privacy-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.submit-button {
  min-width: 14.5rem;
  min-height: 3.25rem;
  padding: 0 1.25rem;
  font-size: 0.82rem;
}

.submit-button.join-button {
  height: 3.1rem;
  min-height: 3.1rem;
  margin-top: 0;
}

.submitted-page h1 {
  max-width: none;
  white-space: nowrap;
}

.submitted-contact {
  margin-top: 0.85rem;
  color: #345779;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.submitted-contact a {
  color: var(--ink-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.privacy-page {
  position: relative;
  z-index: 1;
  padding: clamp(1.6rem, 4vw, 2.75rem) clamp(1.35rem, 5vw, 3.5rem) clamp(1.25rem, 3.5vw, 2.4rem);
}

.privacy-page h1 {
  margin-bottom: 0.7rem;
}

.privacy-effective-date,
.privacy-intro,
.privacy-section p {
  width: min(100%, var(--interest-text-width));
  max-width: var(--interest-text-width);
  color: #345779;
}

.privacy-effective-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.45;
}

.privacy-intro {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.privacy-section {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0.35rem;
  align-items: start;
  width: min(100%, var(--interest-text-width));
  max-width: var(--interest-text-width);
  margin-top: 1.25rem;
}

.privacy-section h2 {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.28;
}

.privacy-section p {
  font-family: var(--font-serif);
  font-size: 1.03rem;
  line-height: 1.58;
}

.privacy-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  margin-top: 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.privacy-action-link {
  color: var(--ink-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.site-footer {
  padding: 0;
}

@media (min-width: 58rem) {
  .option-group[data-layout="compact"] {
    grid-template-columns: 1fr 1fr;
  }

  .option-group[data-layout="compact"] .option-detail {
    grid-column: 2;
  }
}

@media (max-width: 48rem) {
  .interest-shell {
    width: min(100% - 2rem, 64rem);
    padding-top: 1.25rem;
  }

  .site-header,
  .site-footer {
    align-items: flex-end;
  }

  .question-row {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .join-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .join-button {
    margin-top: 0;
  }

  .submit-button.join-button {
    margin-top: 0;
  }

  .section-divider {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .section-divider::before,
  .section-divider::after {
    width: 100%;
  }

  .privacy-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .privacy-section {
    grid-template-columns: 1fr;
    row-gap: 0.35rem;
  }

  .submit-button {
    width: 100%;
  }

  h1,
  .submitted-page h1 {
    font-size: 1.55rem;
    white-space: normal;
  }
}

@media (max-width: 25rem) {
  .interest-shell {
    width: min(100% - 1.25rem, 64rem);
  }

  .page-intro,
  .interest-form {
    padding-inline: 1rem;
  }

  .bottom-section {
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
