/* Public SEO landing pages , hand-crafted, no framework.
   Color palette mirrors the SPA's `cream` / `green-ink` / `warm-dark`
   tokens so the look is consistent across surfaces. */

:root {
  --bg:           #fdfbf3;
  --bg-sand:     #f5efdf;
  --bg-stone:    #ebe5d7;
  --ink:         #1e3a2c;
  --text:        #3a3833;
  --muted:       #6f6859;
  --green:       #2d5340;
  --green-deep:  #1e3a2c;
  --green-mist:  #d9e7d8;
  --coral:       #b94a3e;
  --shadow:      0 1px 2px rgba(30, 58, 44, 0.05),
                 0 4px 12px rgba(30, 58, 44, 0.06);
  --radius:      8px;
  --max-w:       720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif, "Apple Color Emoji";
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--green-deep); }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--bg-stone);
  background: var(--bg);
}
.site-header .brand {
  font-weight: 600; font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-header nav a { margin-left: 16px; font-size: 14px; }

.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb .sep { margin: 0 6px; color: var(--bg-stone); }
.breadcrumb a { color: var(--muted); }

.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
}

.snp-article h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 24px;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.snp-article h2 {
  font-size: 18px;
  margin: 32px 0 12px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.snp-article h3 {
  font-size: 16px;
  margin: 24px 0 8px;
  color: var(--ink);
}

.snp-article p { margin: 0 0 16px; }
.snp-article ul, .snp-article ol { margin: 0 0 16px; padding-left: 24px; }
.snp-article li { margin-bottom: 6px; }
.snp-article strong { color: var(--ink); font-weight: 600; }

.snp-article code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-sand);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Key takeaways box , sits above the markdown body */
.key-takeaways {
  background: var(--green-mist);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 24px;
}
.key-takeaways h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  color: var(--green-deep);
}
.key-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.key-takeaways li {
  padding: 4px 0 4px 20px;
  position: relative;
}
.key-takeaways li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--green);
  font-weight: 600;
}

/* CTAs , primary mid-page card and secondary sticky bottom */
.cta-card {
  background: var(--bg-sand);
  border: 1px solid var(--bg-stone);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.cta-card.primary { background: var(--green-mist); border-color: var(--green); }
.cta-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink);
}
.cta-card p { margin: 0 0 14px; color: var(--text); }
.cta-card .btn {
  display: inline-block;
  background: var(--green-deep);
  color: var(--bg);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
}
.cta-card .btn:hover { background: var(--ink); color: var(--bg); }
.cta-card .cta-sub {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Mailing-list form */
.mailing-list-form {
  display: flex; gap: 8px;
  margin-top: 8px;
}
.mailing-list-form input[type=email] {
  flex: 1; min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--bg-stone);
  border-radius: 6px;
  background: var(--bg);
  font: inherit;
  color: var(--text);
}
.mailing-list-form input[type=email]:focus {
  outline: none;
  border-color: var(--green);
}
.mailing-list-form button {
  padding: 10px 20px;
  background: var(--green-deep);
  color: var(--bg);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.mailing-list-form button:hover { background: var(--ink); }
.mailing-list-form button:disabled { opacity: 0.6; cursor: progress; }
.mailing-list-form p.ok {
  margin: 0; padding: 10px 0;
  color: var(--green-deep);
  font-weight: 500;
}

/* FAQ section , schema.org/FAQPage compatible <details> blocks */
.faq h2 {
  font-size: 20px;
  margin: 40px 0 12px;
}
.faq-item {
  border-top: 1px solid var(--bg-stone);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--bg-stone); }
.faq-item summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  padding-right: 24px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 0; top: -2px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 10px 0 0; color: var(--text); }

.site-footer {
  border-top: 1px solid var(--bg-stone);
  padding: 40px 24px 16px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 48px;
  background: rgba(0,0,0,0.015);
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 28px;
}
.site-footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 10px;
  font-weight: 700;
}
.site-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer-col li { margin: 5px 0; line-height: 1.5; }
.site-footer-brand .brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.site-footer-tag {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 28ch;
}
.site-footer-meta {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--bg-stone);
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}
.site-footer-meta p { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 720px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer-brand { grid-column: 1 / -1; }
}

/* Newsletter index: archive section + "what is coming" preview keep
   the page from feeling empty when there are no past issues. */
.news-archive { margin-top: 32px; }
.news-preview {
  margin-top: 40px;
  padding: 24px;
  background: rgba(0,0,0,0.025);
  border-radius: 10px;
}
.news-preview h2 { margin: 0 0 12px; font-size: 18px; }
.news-preview p { margin: 0 0 14px; }
.news-preview-list { margin: 12px 0 0; padding-left: 22px; }
.news-preview-list li { margin: 8px 0; line-height: 1.5; }

@media (max-width: 600px) {
  .page { padding: 16px; }
  .snp-article h1 { font-size: 24px; }
  .gene-article h1 { font-size: 28px; }
  .mailing-list-form { flex-direction: column; }
}

/* Gene-page typography: bump heading hierarchy so /gene/<symbol>
   reads editorially rather than as a wall of body copy. The SNP
   pages get the existing tighter spec (28/18/16) since each entry
   is short; gene pages span multiple sections (LLM narrative,
   trait pills, variants table, CTA) and need the extra visual
   beats to separate them. */
.gene-article h1 {
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.gene-article .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 28px;
  max-width: 56ch;
}
.gene-article h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.gene-article h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 28px 0 10px;
}
/* Differentiate the LLM-authored narrative section from the
   surrounding deterministic blocks. A subtle left rule + lighter
   leading reads as "research notes" instead of "system text". */
.gene-article .llm-narrative {
  border-left: 3px solid var(--green-mist);
  padding-left: 18px;
  margin: 28px 0;
}
.gene-article .llm-narrative h2:first-child {
  margin-top: 0;
}

/* Explore / browse pages: /gene/ and /snp/ index. Card grid for
   the "Recently added" + "Most-studied" sections, link-only list
   for "Browse all". */
.muted { color: var(--muted); margin: 4px 0 16px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin: 12px 0 28px;
}
.explore-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-sand);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 100ms ease, box-shadow 100ms ease;
}
.explore-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(30, 58, 44, 0.08),
              0 8px 16px rgba(30, 58, 44, 0.10);
}
.explore-card .card-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.explore-card .card-meta {
  font-size: 12px;
  color: var(--muted);
}
.explore-card .chip {
  display: inline-block;
  font-size: 11px;
  background: var(--green-mist);
  color: var(--green-deep);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.pill {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.pill-lifestyle {
  background: #fef3e8;
  color: #b1561d;
}
/* Neutral fallback for cards without a chip-worthy stat. Same visual
   weight as the chip, but muted so the row reads "less data yet"
   instead of broken. */
.explore-card .card-placeholder {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}
.browse-list { margin: 16px 0 28px; }
.browse-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  line-height: 1.6;
}
.browse-link {
  color: var(--green-deep);
  text-decoration: none;
  white-space: nowrap;
}
.browse-link:hover { text-decoration: underline; }

/* Newsletter archive: index list + per-issue article. */
.news-list { list-style: none; padding: 0; margin: 16px 0; }
.news-list li { border-bottom: 1px solid var(--bg-stone); padding: 14px 0; }
.news-list .news-link {
  display: grid;
  grid-template-columns: minmax(100px, max-content) 1fr max-content;
  gap: 14px;
  align-items: baseline;
  text-decoration: none;
  color: var(--green-deep);
}
.news-list .news-link:hover { background: var(--bg-sand); }
.news-list .news-num { font-weight: 600; font-size: 15px; }
.news-list .news-date { font-size: 13px; color: var(--muted); }
.news-list .news-meta { font-size: 12px; color: var(--muted); justify-self: end; }
.newsletter-issue h1 { font-size: 28px; line-height: 1.25; margin-bottom: 4px; }
.newsletter-issue h2 { font-size: 18px; margin-top: 28px; }
.newsletter-issue p  { line-height: 1.65; font-size: 16px; }
.newsletter-issue ul { padding-left: 22px; line-height: 1.7; }
.newsletter-issue .small { font-size: 12px; }

/* Unified site nav. The .active class marks the section the current
   page belongs to; the .cta class styles the primary signup button.
   Stays responsive on mobile by dropping the nav-link gap. */
.site-header .site-nav { display: flex; align-items: center; gap: 18px; }
/* Override the legacy `.site-header nav a { margin-left: 16px }` so
   flex-gap doesn't compound with the inherited margin. */
.site-header .site-nav a { margin-left: 0; }
.site-nav a { font-size: 14px; color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--green-deep); }
.site-nav a.active {
  color: var(--green-deep);
  font-weight: 600;
  position: relative;
}
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 1px;
}
.site-nav a.cta {
  background: var(--green-deep);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 8px;
}
.site-nav a.cta:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 600px) {
  .site-nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a { font-size: 13px; }
  .site-nav a.cta { padding: 6px 12px; }
  .site-nav a.active::after { bottom: -4px; }
}

/* ─────────── BLOG ─────────── */
/* Wider page container for blog content. The default .page is 720px
   max , that's right for SNP/gene pages but too constrained for
   long-form posts where a 65-72 char measure is the readability
   target. */
.blog-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* Blog index header */
.blog-index-header {
  border-bottom: 1px solid var(--bg-stone);
  padding-bottom: 32px;
  margin-bottom: 32px;
}
.blog-index-header h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.blog-index-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
}

/* Blog index list , clean vertical cards, not the 3-column grid the
   newsletter index uses. Each item is a clickable block with date,
   title, excerpt. */
.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-list-item {
  border-bottom: 1px solid var(--bg-stone);
}
.blog-list-item:last-child { border-bottom: none; }
.blog-list-item a {
  display: block;
  padding: 28px 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-radius: 4px;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}
.blog-list-item a:hover {
  background: var(--bg-sand);
}
.blog-list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.blog-list-date,
.blog-list-readtime {
  display: inline-block;
}
.blog-list-dot {
  color: var(--bg-stone);
}
.blog-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.blog-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-deep);
  background: rgba(76, 130, 70, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
}
.reading-time { color: var(--muted); }
.blog-list-title {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-weight: 600;
}
.blog-list-item a:hover .blog-list-title { color: var(--green-deep); }
.blog-list-excerpt {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 12px;
  max-width: 60ch;
}
.blog-list-more {
  display: inline-block;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
}
.blog-list-item a:hover .blog-list-more { color: var(--green-deep); }

/* Blog post (article view) */
.blog-post-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-post-meta a { color: var(--muted); text-decoration: none; }
.blog-post-meta a:hover { color: var(--green-deep); }
.blog-post-meta .dot { opacity: 0.5; }
.blog-post-meta time { font-variant-numeric: tabular-nums; }

.blog-post h1 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 28px;
  font-weight: 600;
}
.blog-post h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 48px 0 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 600;
}
.blog-post h3 {
  font-size: 19px;
  line-height: 1.4;
  margin: 32px 0 12px;
  color: var(--ink);
  font-weight: 600;
}
.blog-post p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 20px;
}
.blog-post ul, .blog-post ol {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 24px;
  padding-left: 28px;
  color: var(--text);
}
.blog-post li { margin-bottom: 10px; }
.blog-post strong { color: var(--ink); font-weight: 600; }
.blog-post a {
  color: var(--green-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.blog-post a:hover {
  text-decoration-thickness: 2px;
}
.blog-post code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-sand);
  padding: 2px 6px;
  border-radius: 3px;
}
.blog-post hr {
  border: 0;
  border-top: 1px solid var(--bg-stone);
  margin: 48px 0 32px;
}
.blog-post .blog-cta {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}
.blog-post .blog-cta a {
  font-style: normal;
  font-weight: 500;
}

/* First-paragraph lede styling. Treat the first <p> after the H1 as
   a slightly larger lead. */
.blog-post h1 + p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .blog-page { padding: 24px 20px 40px; }
  .blog-index-header h1 { font-size: 34px; }
  .blog-index-lead { font-size: 16px; }
  .blog-list-title { font-size: 22px; }
  .blog-list-excerpt { font-size: 15px; }
  .blog-post h1 { font-size: 30px; }
  .blog-post h2 { font-size: 22px; margin-top: 36px; }
  .blog-post p, .blog-post ul, .blog-post ol { font-size: 17px; }
  .blog-post h1 + p { font-size: 18px; }
}

/* ───────── early-access modal ───────── */
.ea-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.ea-modal {
  position: fixed; inset: 0;
  display: none;
  z-index: 1000;
}
.ea-modal-open { display: block; }
.ea-modal-open-html, .ea-modal-open-html body { overflow: hidden; }
.ea-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 58, 44, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: ea-fade-in 0.18s ease-out;
}
.ea-modal-panel {
  position: relative;
  max-width: 480px;
  margin: min(8vh, 80px) auto;
  background: var(--bg);
  border-radius: 12px;
  padding: 40px 36px 32px;
  box-shadow: 0 24px 64px rgba(30, 58, 44, 0.25);
  animation: ea-pop 0.22s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
@keyframes ea-fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes ea-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ea-modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: 0;
  font-size: 28px; line-height: 1;
  color: var(--muted); cursor: pointer;
  padding: 4px 10px; border-radius: 6px;
}
.ea-modal-close:hover { color: var(--ink); background: var(--bg-sand); }
.ea-modal-kicker {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--green-deep);
  font-weight: 600; margin: 0 0 12px;
}
.ea-modal-panel h2 {
  font-size: 26px; line-height: 1.2;
  margin: 0 0 12px; color: var(--ink);
  letter-spacing: -0.015em; font-weight: 600;
}
.ea-modal-lead {
  font-size: 15px; line-height: 1.55;
  color: var(--text); margin: 0 0 24px;
}
.ea-modal-form {
  display: flex; gap: 8px;
  flex-direction: column;
}
@media (min-width: 480px) {
  .ea-modal-form { flex-direction: row; }
}
.ea-modal-form input[type=email] {
  flex: 1; min-width: 0;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--bg-stone);
  border-radius: 6px; background: var(--bg);
  color: var(--text);
}
.ea-modal-form input[type=email]:focus {
  outline: none; border-color: var(--green-deep);
  box-shadow: 0 0 0 3px var(--green-mist);
}
.ea-modal-submit {
  font: inherit; font-weight: 600;
  padding: 12px 22px;
  background: var(--green-deep); color: var(--bg);
  border: 0; border-radius: 6px; cursor: pointer;
  white-space: nowrap;
}
.ea-modal-submit:hover { background: var(--ink); }
.ea-modal-submit:disabled { opacity: 0.55; cursor: progress; }
.ea-modal-fineprint {
  font-size: 12px; color: var(--muted);
  margin: 16px 0 0; line-height: 1.5;
}
.ea-modal-err {
  margin-top: 14px; padding: 10px 14px;
  font-size: 13px; color: var(--coral);
  background: rgba(185, 74, 62, 0.08);
  border-radius: 6px;
}
.ea-modal-ok-headline {
  font-size: 18px; color: var(--green-deep);
  font-weight: 600; margin: 0 0 6px;
}
.ea-modal-ok-sub {
  font-size: 14px; color: var(--text); margin: 0;
}
@media (max-width: 480px) {
  .ea-modal-panel { margin: 0; border-radius: 0; min-height: 100vh; padding: 32px 24px; }
  .ea-modal-panel h2 { font-size: 22px; }
}

/* ───────── inline signup section ───────── */
/* Sits in the footer area of every static page. Uses the same
   visual language as the .cta-card primary block. */
.signup-section {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 0 24px;
}
.signup-card {
  background: var(--green-mist);
  border: 1px solid #c5d8c1;
  border-radius: 12px;
  padding: 28px 28px 24px;
}
.signup-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-deep);
  font-weight: 600;
  margin: 0 0 6px;
}
.signup-title {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.signup-lead {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
  color: var(--text);
}
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signup-form input[type=email] {
  padding: 11px 13px;
  border: 1px solid var(--bg-stone);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.signup-form input[type=email]:focus {
  outline: none;
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(46, 83, 64, 0.18);
}
.signup-form button {
  background: var(--green-deep);
  color: var(--bg);
  border: 0;
  padding: 11px 20px;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}
.signup-form button:hover { background: var(--ink); }
.signup-form button:disabled { opacity: 0.55; cursor: progress; }
.signup-fineprint {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.5;
}
.signup-ok {
  font-size: 14px;
  color: var(--green-deep);
  font-weight: 500;
  margin: 0;
  padding: 8px 0;
}
.signup-err {
  font-size: 13px;
  color: var(--coral);
  margin: 4px 0 0;
}
.cf-turnstile { margin: 4px 0; }

/* SnpPage: "Lifestyle context" section. Renders the Haiku-generated +
   admin-approved rec rows grouped by section (diet, supplements, etc).
   Sits between the research body and the FAQ block. */
.snp-recs {
  margin: 40px 0;
  padding: 24px;
  background: rgba(76,130,70,0.04);
  border: 1px solid rgba(76,130,70,0.12);
  border-radius: 12px;
}
.snp-recs h2 {
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--ink);
}
.snp-recs-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}
.snp-rec-section { margin-bottom: 22px; }
.snp-rec-section:last-child { margin-bottom: 0; }
.snp-rec-section h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-deep);
  margin: 0 0 10px;
  font-weight: 700;
}
.snp-rec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.snp-rec-item {
  background: var(--bg);
  border: 1px solid var(--bg-stone);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.snp-rec-item:last-child { margin-bottom: 0; }
.snp-rec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.snp-rec-item-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.snp-rec-strength {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.snp-rec-strength-high { background: rgba(76,130,70,0.16); color: var(--green-deep); }
.snp-rec-strength-moderate { background: rgba(204,167,84,0.18); color: #8a6b1f; }
.snp-rec-strength-low { background: rgba(160,160,160,0.18); color: #555; }
.snp-rec-mechanism {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.snp-rec-action {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.snp-rec-citations {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.snp-rec-citations li { margin: 0; }
.snp-rec-citation {
  display: inline-block;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  background: var(--bg-stone);
  color: var(--text);
  padding: 2px 7px;
  border-radius: 4px;
  text-decoration: none;
}
.snp-rec-citation.pmid {
  color: var(--green-deep);
  background: rgba(76,130,70,0.10);
}
.snp-rec-citation.pmid:hover { background: rgba(76,130,70,0.18); }

/* /newsletter/confirmed thank-you page. The signup form (widgets.js
   + the React component) both redirect here on success; this is the
   conversion endpoint for funnels + campaigns. */
.newsletter-confirmed { max-width: 720px; }
.newsletter-confirmed .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green-deep);
  font-weight: 700;
  margin: 0 0 12px;
}
.newsletter-confirmed h1 {
  font-size: 38px;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.newsletter-confirmed .lead {
  font-size: 18px;
  color: var(--text);
  margin: 0 0 36px;
  max-width: 56ch;
}
.confirmed-next, .confirmed-explore { margin-top: 32px; }
.confirmed-next h2, .confirmed-explore h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 14px;
}
.confirmed-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.confirmed-list li {
  padding: 12px 14px;
  border-left: 3px solid var(--green-mist);
  background: rgba(76,130,70,0.04);
  border-radius: 0 6px 6px 0;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.55;
}
.confirmed-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.confirmed-explore-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  background: var(--bg);
  border: 1px solid var(--bg-stone);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.12s, background 0.12s;
}
.confirmed-explore-card:hover {
  border-color: var(--green);
  background: rgba(76,130,70,0.04);
}
.confirmed-explore-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.confirmed-explore-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.confirmed-explore-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
}

/* ---------- Landing page (/) ---------- */
/* Hand-styled SSR landing — see services/content-service/src/
   landing_render.rs. Mirrors the SPA's hero shape so a returning
   visitor sees the same vibe regardless of which path served them. */

.landing {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.landing-hero {
  text-align: center;
  padding: 24px 0 56px;
  border-bottom: 1px solid var(--bg-stone);
}

.landing-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 16px;
}

.landing-h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 20px;
}

.landing-lead {
  font-size: 18px;
  color: var(--text);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.landing-lead-small {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 16px;
}

.landing-trust {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

.landing-tagline {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  margin: 8px 0 0;
  font-weight: 500;
}

.landing-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--bg-stone);
}

.landing-section:last-of-type {
  border-bottom: none;
}

.landing-section h2 {
  font-size: 28px;
  color: var(--ink);
  margin: 0 0 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.landing-section h3 {
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 8px;
  font-weight: 500;
}

.landing-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.landing-steps li {
  counter-increment: step;
  padding: 20px 0 20px 56px;
  position: relative;
  border-bottom: 1px solid var(--bg-stone);
}

.landing-steps li:last-child {
  border-bottom: none;
}

.landing-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-mist);
  color: var(--green-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-steps p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.landing-cats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.landing-cats li {
  padding: 12px 14px;
  background: var(--bg-sand);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
}

.landing-explore {
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-explore li {
  padding: 14px 0;
  border-bottom: 1px solid var(--bg-stone);
}

.landing-explore li:last-child {
  border-bottom: none;
}

.landing-explore a {
  text-decoration: none;
  color: var(--text);
}

.landing-explore a strong {
  color: var(--ink);
  font-weight: 500;
}

.landing-explore a:hover {
  color: var(--green-deep);
}

.landing-explore a:hover strong {
  color: var(--green-deep);
}

.landing-manifesto h2 {
  font-size: 32px;
  line-height: 1.15;
  max-width: 560px;
  margin-bottom: 28px;
}

.landing-manifesto p {
  margin: 0 0 16px;
  max-width: 620px;
}

@media (max-width: 600px) {
  .landing { padding: 32px 20px 64px; }
  .landing-h1 { font-size: 40px; }
  .landing-lead { font-size: 16px; }
  .landing-section { padding: 40px 0; }
  .landing-section h2 { font-size: 24px; }
  .landing-manifesto h2 { font-size: 26px; }
}

/* ---------- About + Privacy ---------- */
/* Narrow prose pages share a single layout class. The site-header
   and footer styles already exist above. */

.narrow-prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.narrow-prose h1 {
  font-size: 36px;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.narrow-prose h2 {
  font-size: 22px;
  color: var(--ink);
  margin: 36px 0 12px;
  font-weight: 500;
}

.narrow-prose .lead {
  font-size: 18px;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 28px;
}

.narrow-prose p {
  margin: 0 0 16px;
  line-height: 1.65;
}

.narrow-prose ul {
  padding-left: 20px;
  margin: 0 0 20px;
}

.narrow-prose ul li {
  margin-bottom: 6px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .narrow-prose { padding: 32px 20px 64px; }
  .narrow-prose h1 { font-size: 28px; }
}
