/* =====================================================================
   Scienz Natural Beacon — design system
   Palette derived from the SNB logo. Fraunces + Hanken Grotesk.
   ===================================================================== */

:root {
  /* Brand palette (from SNB logo) */
  --teal:        #006054;
  --teal-700:    #00473e;
  --teal-600:    #007a68;
  --mint:        #00b490;
  --mint-200:    #d6f3ec;
  --gold:        #f5c63a;
  --forest:      #0a7a18;
  --paper:       #f6f3ea;

  /* Neutral / clinical surfaces */
  --ink:         #072722;   /* deep teal-black, darkest surfaces & headings */
  --ink-soft:    #274b45;   /* muted body on light */
  --slate:       #5c726c;   /* secondary text */
  --line:        #e2e8e4;   /* hairline borders */
  --line-soft:   #eef2ef;
  --surface:     #fbfcfb;   /* primary background (cool near-white) */
  --surface-2:   #f3f7f5;   /* alt band */
  --white:       #ffffff;

  /* Page-scoped accent — overridden per domain. Default = brand teal. */
  --accent:      var(--teal);
  --accent-tint: var(--mint-200);
  --accent-soft: #e7f1ee;

  /* Type */
  --display: "Google Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --body:    "Google Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Rhythm */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(7, 39, 34, .04), 0 10px 30px -18px rgba(7, 39, 34, .28);
  --shadow-lg: 0 30px 70px -40px rgba(7, 39, 34, .5);
}

/* Domain accent themes (set on <body data-theme="...">) */
body[data-theme="clinical"] { --accent: #12506b; --accent-tint: #dcecf2; --accent-soft: #e6f0f4; }
body[data-theme="hive"]     { --accent: #b7791f; --accent-tint: #f6ead0; --accent-soft: #f7efdd; }
body[data-theme="neuro"]    { --accent: #4b3f8a; --accent-tint: #e6e2f4; --accent-soft: #ece9f5; }
body[data-theme="systems"]  { --accent: #0a7a5f; --accent-tint: #d7f0e6; --accent-soft: #e4f3ec; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); }
p { margin: 0 0 1.1em; max-width: 68ch; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.band-alt   { background: var(--surface-2); }
.band-paper { background: var(--paper); }
.band-ink   { background: var(--ink); color: #cfe0db; }
.band-ink h1, .band-ink h2, .band-ink h3, .band-ink h4 { color: #fff; }

/* ---------- Eyebrow / section intro ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body); font-weight: 600; font-size: .82rem;
  letter-spacing: .02em; color: var(--accent); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.band-ink .eyebrow { color: var(--gold); }
.section-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--slate); max-width: 60ch; }
.band-ink .section-lead { color: #a9c4bd; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 12px 24px -14px var(--accent); }
.btn--primary:hover { background: var(--teal-700); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--ghost { background: #f5c63a; border-color: color-mix(in srgb, var(--accent) 85%, transparent); color:  white; }
.btn--ghost:hover { background: var(--accent-soft); color:#00473e;}
.band-ink .btn--ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.band-ink .btn--ghost:hover { background: rgba(255,255,255,.08); color:#00473e;}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px; padding-inline: var(--gutter); max-width: var(--container); margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: .65rem; margin-right: auto; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--display); font-weight: 500; font-size: 1.12rem; color: var(--ink); }
.brand__sub { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.nav__links { display: flex; align-items: center; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; padding: .35rem 0; position: relative; }
.nav__links a:hover { color: var(--accent); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--accent); }
.nav__links a.btn--primary, .nav__links a.btn--primary:hover { color: #fff; padding: .4rem 1.4rem; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px;
}
.nav__cta { margin-left: .5rem; }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s;
}
.nav__toggle span::before { position: absolute; top: -6px; } .nav__toggle span::after { position: absolute; top: 6px; }

@media (max-width: 940px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; opacity: 1; border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow); display: none;
  }
  .nav[data-open="true"] .nav__links { display: flex; }
  .nav__links li { border-bottom: 1px solid var(--line-soft); }
  .nav__links a { display: block; padding: .85rem 0; }
  .nav__cta { margin: 1rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7.5rem);
  background: url("../img/hero.png") center / cover no-repeat;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero__kicker { color: var(--accent); font-weight: 600; letter-spacing: .02em; margin-bottom: 1.1rem; display: block; }
.hero__lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.hero__meta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.75rem; }
.hero__meta div { min-width: 90px; }
.hero__meta dt { font-family: var(--display); font-size: 1.7rem; color: var(--ink); }
.hero__meta dd { margin: 0; font-size: .85rem; color: var(--slate); }

/* Beacon motif — the signature visual */
.beacon { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; margin-inline: auto; }
.beacon__rings { position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--gold) 55%, transparent) 0%, transparent 22%),
    radial-gradient(circle at 50% 46%, transparent 30%, color-mix(in srgb, var(--accent) 14%, transparent) 31%, transparent 33%),
    radial-gradient(circle at 50% 46%, transparent 44%, color-mix(in srgb, var(--accent) 11%, transparent) 45%, transparent 47%),
    radial-gradient(circle at 50% 46%, transparent 58%, color-mix(in srgb, var(--accent) 8%, transparent) 59%, transparent 61%),
    radial-gradient(circle at 50% 46%, transparent 72%, color-mix(in srgb, var(--accent) 6%, transparent) 73%, transparent 75%);
}
.beacon svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__aura {
  position: absolute; z-index: -1; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  right: -14vw; top: -18vw; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%);
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .beacon { max-width: 320px; margin-top: 1rem; }
}

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; position: relative;
}
.card h3 { font-size: 1.28rem; margin-bottom: .4rem; }
.card p { color: var(--slate); font-size: .98rem; margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 1.1rem;
}
.card__icon svg { width: 24px; height: 24px; }
/* Feature card variant with a link that turns the whole card interactive */
.card--link { transition: border-color .18s ease, box-shadow .18s ease; }
.card--link:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }
.card--link a::after { content: ""; position: absolute; inset: 0; }
.card__more { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: .92rem; color: var(--accent); }

/* Pillar tile (lighter than a card, for six-up grids) */
.pillar { padding: 1.35rem 1.4rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.pillar h3 { font-size: 1.12rem; font-family: var(--body); font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.pillar p { font-size: .93rem; color: var(--slate); margin: 0; }

/* ---------- Evidence label (compliance) ---------- */
.evidence {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--body); font-weight: 600; font-size: .72rem; letter-spacing: .01em;
  padding: .28rem .6rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--slate); background: var(--surface); white-space: nowrap;
}
.evidence::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--slate); }
.evidence--preclinical  { color: #8a5a12; border-color: #f0dcb0; background: #fbf3e0; }
.evidence--preclinical::before  { background: var(--gold); }
.evidence--clinical     { color: #12506b; border-color: #cfe2ea; background: #eaf3f7; }
.evidence--clinical::before     { background: #2f83a6; }
.evidence--approved     { color: #0a5a2a; border-color: #c9e6d2; background: #e8f5ec; }
.evidence--approved::before     { background: var(--forest); }
.evidence--investigational { color: #6a3f7a; border-color: #e2d0ea; background: #f4ecf7; }
.evidence--investigational::before { background: #8b5aa3; }

/* ---------- Process / steps (a real sequence, so numbered) ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  counter-increment: step; font-family: var(--display); font-size: 1rem; color: var(--accent);
  width: 3ch; padding-top: .2rem;
}
.step__num::before { content: "0" counter(step); }
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--slate); margin: 0; }

/* ---------- Ecosystem diagram ---------- */
.ecosystem { display: grid; place-items: center; padding-block: 1rem; }
.ecosystem figure { margin: 0; width: 100%; max-width: 560px; }
.ecosystem figcaption { text-align: center; color: var(--slate); font-size: .9rem; margin-top: 1rem; }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.media-frame {
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-2);
  aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; position: relative;
}

/* Image placeholder — swap for real clinical photography later */
.imgph {
  width: 100%; height: 100%; display: grid; place-items: center; gap: .4rem;
  color: var(--slate); text-align: center; padding: 1.5rem;
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 60%),
    repeating-linear-gradient(45deg, var(--line-soft) 0 12px, transparent 12px 24px);
}
.imgph svg { width: 34px; height: 34px; opacity: .55; }
.imgph span { font-size: .82rem; letter-spacing: .01em; }
.imgph strong { color: var(--ink-soft); font-weight: 600; }

/* ---------- Insights / cards list ---------- */
.post { display: flex; flex-direction: column; height: 100%; }
.post__cat { font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: .5rem; }
.post h3 { font-size: 1.18rem; }
.post p { font-size: .95rem; color: var(--slate); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #cfe0db; position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band__aura { position: absolute; inset: 0; background: radial-gradient(circle at 82% 30%, rgba(0,180,144,.18), transparent 45%), radial-gradient(circle at 12% 80%, rgba(245,198,58,.12), transparent 40%); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; padding: .8rem .9rem; border: 1px solid var(--line);
  border-radius: 10px; background: var(--white); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .field--row { grid-template-columns: 1fr; } }
.form__note { font-size: .82rem; color: var(--slate); }

/* ---------- Disclaimer / notice ---------- */
.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface-2);
  border-radius: 10px; padding: 1.1rem 1.25rem; font-size: .92rem; color: var(--ink-soft);
}
.notice strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a9c4bd; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: #cfe0db; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 40px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .92; }
.footer__brand p { color: #8fb0a8; font-size: .92rem; max-width: 34ch; }
.footer h4 { color: #fff; font-family: var(--body); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer__contact { font-size: .95rem; display: grid; gap: .6rem; }
.footer__contact span { display: block; color: #8fb0a8; font-size: .8rem; }
.footer__disclaimer { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .82rem; color: #7ba095; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: space-between; margin-top: 1rem; font-size: .82rem; }
.footer__legal a { color: #8fb0a8; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); position: relative; overflow: hidden; }
.page-hero .hero__aura { top: -30vw; }
.page-hero h1 { max-width: 20ch; }
.page-hero p { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 60ch; }
.breadcrumb { font-size: .85rem; color: var(--slate); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--slate); }

/* Utilities */
.stack-sm > * + * { margin-top: .75rem; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.list-check li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.list-check li::before { content: ""; margin-top: .55rem; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
