/*
  Purpose: Research landing page styles — BDNA.one brand, mobile first
  Last modified: 2026-06-26 | Completeness: 95/100
*/

@import url("brand.css");

:root {
  --bg: var(--bdna-bg-soft);
  --surface: var(--bdna-surface);
  --text: var(--bdna-text);
  --muted: var(--bdna-muted);
  --accent: var(--bdna-primary);
  --accent-hover: var(--bdna-primary-hover);
  --accent-soft: var(--bdna-soft);
  --border: var(--bdna-border);
  --navy: var(--bdna-navy);
  --sans: var(--bdna-font);
  --radius: var(--bdna-radius);
  --max: 720px;
  --wide: 960px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2rem, var(--max));
}

.site-header {
  padding: 3rem 0 3.5rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(99, 54, 249, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, #0a1028 100%);
  color: #fff;
  border-bottom: none;
}

.site-header .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.site-header .brand-link {
  color: #fff;
  background: var(--bdna-gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header h1 {
  color: #fff;
  max-width: 22ch;
}

.site-header h1 em {
  font-style: normal;
  background: var(--bdna-gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header .lede {
  color: rgba(255, 255, 255, 0.72);
}

.site-header .lede strong {
  color: #fff;
  font-weight: 600;
}

.site-header .disclaimer {
  color: rgba(255, 255, 255, 0.45);
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1.25rem;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.75rem;
  line-height: 1.65;
}

.disclaimer {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.section {
  padding: 3rem 0;
}

.section.muted {
  background: var(--accent-soft);
}

.section h2 {
  font-family: var(--sans);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.section p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.topic-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.topic-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.topic-grid h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.topic-grid p {
  margin: 0;
  font-size: 0.875rem;
}

.not-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.not-list li {
  margin-bottom: 0.65rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cta-row.center {
  justify-content: center;
  margin: 1.5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 54, 249, 0.35);
}

.btn.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(99, 54, 249, 0.4);
}

.site-header .btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn.ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.cta-section {
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.fine-print {
  font-size: 0.8125rem !important;
  margin-top: 1.5rem !important;
}

/* --- Block letter logo — footer / end only --- */
.bdna-block-logo {
  display: block;
  margin: 0 auto 1.25rem;
  max-width: min(100%, 18rem);
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.15s ease;
}

.bdna-block-logo:hover {
  opacity: 1;
}

.bdna-block-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.bdna-logo--text .bdna-wordmark {
  animation: none;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.site-footer .bdna-block-logo {
  margin-bottom: 1rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer a,
.fine-print a,
.brand-link {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover,
.fine-print a:hover,
.brand-link:hover {
  text-decoration: underline;
}

.brand-link {
  font-weight: 600;
  letter-spacing: inherit;
  text-transform: none;
}

@media (min-width: 640px) {
  .site-header {
    padding: 4rem 0 4.5rem;
  }

  h1 {
    max-width: none;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .topic-grid li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.625rem);
  }

  .section {
    padding: 4rem 0;
  }
}

/* --- Form --- */
.form-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.form-intro {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.research-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field .label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8125rem;
}

.research-form input[type="text"],
.research-form input[type="email"],
.research-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.research-form input:focus,
.research-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 54, 249, 0.15);
}

.research-form textarea {
  resize: vertical;
  min-height: 4rem;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--muted);
  cursor: pointer;
}

.checkbox-field input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.btn-submit {
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: 0.5rem;
  font: inherit;
}

@media (min-width: 480px) {
  .btn-submit {
    width: auto;
    align-self: flex-start;
  }
}

.form-alt {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: center;
}

.form-alt a {
  color: var(--accent);
  font-weight: 600;
}

/* --- Google Form embed --- */
.google-form-panel {
  margin-top: 0.5rem;
}

.google-form-embed {
  width: 100%;
  min-height: 720px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-setup-notice {
  padding: 1.25rem;
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.form-setup-notice code {
  font-size: 0.8125rem;
  background: var(--surface);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.form-fallback {
  margin: 1rem 0 0;
  text-align: center;
}

.form-fallback .btn {
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .google-form-embed {
    min-height: 860px;
  }
}

.thank-you {
  text-align: center;
  padding-bottom: 4rem;
}

.thank-you h1 {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 1rem;
}

.thank-you .lede {
  margin-bottom: 2rem;
}

.thank-you .btn {
  display: inline-block;
}

.preview-unlock {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

.preview-unlock h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.preview-unlock p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
}

.thank-you .fine-print {
  color: rgba(255, 255, 255, 0.45);
}

.thank-you .btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* --- One DNA hypothesis --- */
.dna-hypothesis {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dna-hypothesis h2 {
  font-size: clamp(1.375rem, 3vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 28ch;
}

.dna-hypothesis p {
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.65;
}

.dna-hypothesis p strong {
  color: var(--text);
}

.dna-hypothesis a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.dna-hypothesis a:hover {
  text-decoration: underline;
}

.dna-hypothesis-ask {
  margin-top: 1.25rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  font-style: italic;
}

.inline-alias {
  font-size: 0.875em;
  color: var(--muted);
  font-weight: 400;
}

.eyebrow-light {
  color: var(--accent);
}

.site-header .disclaimer-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-header .disclaimer-link:hover {
  color: #fff;
}

/* --- Pre-launch teaser (index.html) --- */
.teaser-page {
  margin: 0;
  min-height: 100dvh;
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(99, 54, 249, 0.28) 0%, transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, #0a1028 100%);
  color: #fff;
}

.teaser {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(clamp(2rem, 8vw, 4rem) + var(--bdna-nav-h)) clamp(1.25rem, 5vw, 2rem) clamp(2rem, 8vw, 4rem);
}

.teaser__inner {
  width: min(100%, 26rem);
  text-align: center;
}

.teaser__signal {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  letter-spacing: 0.35em;
  opacity: 0.35;
  animation: teaser-pulse 3s ease-in-out infinite;
}

@keyframes teaser-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .teaser__signal { animation: none; opacity: 0.4; }
}

.teaser__wordmark {
  justify-content: center;
  margin-bottom: 2rem;
  flex-direction: column;
  gap: 0.75rem;
}

.teaser__wordmark .bdna-logo__mark {
  width: 2.75rem;
  height: auto;
}

.teaser__wordmark .bdna-wordmark {
  font-size: 1.125rem;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  animation: none;
}

.teaser__eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.teaser__headline {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 9vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.teaser__headline em {
  font-style: normal;
  background: var(--bdna-gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.teaser__domain {
  margin: -0.75rem 0 1.5rem;
  font-size: clamp(0.9375rem, 2.8vw, 1.125rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.28);
}

.teaser__line {
  margin: 0 0 1rem;
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.42);
}

.teaser__line--dim {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.26);
  margin-bottom: 2rem;
}

.teaser__actions {
  margin-bottom: 2.5rem;
}

.teaser__btn {
  min-width: 11rem;
}

.teaser__foot {
  margin: 0;
  font-size: 0.75rem;
}

.teaser__link {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.teaser__link:hover {
  color: rgba(255, 255, 255, 0.75);
}

.teaser__sep {
  margin: 0 0.5rem;
  opacity: 0.35;
}
