/* NeuralFusion commercial pages: shared styles.
   Used by /organisations, /academic-partnerships, /executive, /contact and /research.
   Brand tokens match the app: navy #081A3D, gold #E8B931, cream. No em dashes anywhere. */

:root {
  --black: #050F2A;
  --navy: #081A3D;
  --navy-2: #0D2757;
  --navy-3: #123066;
  --gold: #E8B931;
  --gold-light: #FFD76A;
  --gold-deep: #B8860B;
  --cream: #FFFFFF;
  --text: #FFFFFF;
  --muted: #D3DCF0;
  --line: rgba(232,185,49, 0.22);
  --line-soft: rgba(255, 255, 255, 0.09);
  --err: #F4A3A3;
  --ok: #8FD6A8;
  --radius: 14px;
  --maxw: 1160px;
  --head: 'Syne', 'Helvetica Neue', Arial, sans-serif;
  --body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, Consolas, monospace;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy);
  padding: 10px 16px; border-radius: 8px; z-index: 300; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 12px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header and navigation ----------
   Moved to /nf-nav.css (+ /nf-nav.js), shared by every public page and the React app. */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 8px; border: 1px solid var(--gold);
  background: var(--gold); color: var(--navy); font-family: var(--body); font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--gold-light); }
.btn-ghost:hover { background: rgba(232,185,49, 0.12); color: #fff; border-color: var(--gold-light); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Typography blocks ---------- */
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--head); color: #fff; margin: 0; line-height: 1.15; overflow-wrap: break-word; }
h1 { font-size: clamp(32px, 5.4vw, 58px); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.serif-accent { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold-light); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 720px; margin: 22px 0 0; }
.section { padding: 84px 0; border-top: 1px solid var(--line-soft); }
.section.alt { background: var(--navy-2); }
.section.deep { background: var(--black); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin: 0; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 80px; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero h1 .serif-accent { display: inline; }
.hero-figure { display: flex; justify-content: center; }
.hero-figure svg { width: 100%; max-width: 440px; }
.hero-note {
  margin-top: 26px; padding: 14px 18px; border-left: 3px solid var(--gold);
  background: rgba(232,185,49, 0.07); color: var(--muted); font-size: 15px; max-width: 640px; border-radius: 0 8px 8px 0;
}
@media (max-width: 900px) {
  .hero { padding: 56px 0 52px; }
  .hero .grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure svg { max-width: 240px; }
  .section { padding: 60px 0; }
}

/* Audience-specific identities on one brand */
.theme-org .hero {
  background:
    linear-gradient(rgba(232,185,49,0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(232,185,49,0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(900px 420px at 85% 0%, rgba(15,32,64,0.9), transparent 70%), var(--navy);
}
.theme-acad .hero {
  background: radial-gradient(800px 380px at 10% 0%, rgba(15,32,64,0.75), transparent 70%), var(--black);
  border-left: 0;
}
.theme-acad .hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.1; }
.theme-acad .hero::after {
  content: ''; position: absolute; left: max(24px, calc((100vw - var(--maxw)) / 2 + 24px)); top: 0; bottom: 0; width: 1px; background: var(--line); opacity: 0.0;
}
.theme-exec .hero {
  background: radial-gradient(700px 360px at 90% 10%, rgba(232,185,49,0.10), transparent 70%), linear-gradient(180deg, var(--black), var(--navy));
}
.theme-exec .hero h1 { letter-spacing: -0.02em; }
.theme-contact .hero { padding: 64px 0 48px; background: radial-gradient(800px 340px at 80% 0%, rgba(15,32,64,0.9), transparent 70%), var(--navy); }

/* ---------- Cards and grids ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line); }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--gold); display: block; margin-bottom: 14px; }
.card.link { text-decoration: none; display: block; color: inherit; }
.card.link:hover { transform: translateY(-2px); border-color: var(--gold); }
.card.link h3 { color: #fff; }
.card .more { display: inline-block; margin-top: 16px; color: var(--gold-light); font-weight: 600; font-size: 15px; }
.mode-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-right: 10px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.steps li { counter-increment: step; border-top: 2px solid var(--gold); padding-top: 18px; }
.steps li::before { content: '0' counter(step); font-family: var(--mono); color: var(--gold); font-size: 13px; letter-spacing: 0.12em; display: block; margin-bottom: 8px; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text); }
.checklist li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 14px; height: 2px; background: var(--gold); }
.checklist li span { color: var(--muted); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* Evidence labels (scientific integrity) */
.evidence-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.evidence-table caption { text-align: left; color: var(--muted); font-size: 15px; padding-bottom: 14px; }
.evidence-table th, .evidence-table td { text-align: left; vertical-align: top; padding: 16px 14px; border-bottom: 1px solid var(--line-soft); }
.evidence-table th { font-family: var(--head); color: #fff; font-weight: 600; width: 30%; }
.evidence-table td { color: var(--muted); }
@media (max-width: 700px) {
  .evidence-table, .evidence-table tbody, .evidence-table tr, .evidence-table th, .evidence-table td { display: block; width: 100%; }
  .evidence-table tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .evidence-table th, .evidence-table td { border: 0; padding: 6px 0; }
}
.tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-light); margin-bottom: 8px; white-space: normal;
}
.tag.neutral { color: var(--muted); border-color: var(--line-soft); }
.callout {
  border: 1px solid var(--line); background: rgba(232,185,49, 0.06); border-radius: var(--radius); padding: 22px 24px; color: var(--text);
}
.callout strong { color: var(--gold-light); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--head); font-weight: 600; color: #fff; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 26px; font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--muted); padding: 0 0 22px; margin: 0; max-width: 760px; }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
@media (max-width: 960px) { .form-shell { grid-template-columns: 1fr; gap: 28px; } }
.lead-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px;
}
.lead-form h3 { margin-bottom: 6px; }
.lead-form .sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } .lead-form { padding: 24px 18px; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--cream); }
.field label .req { color: var(--gold); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.22);
  background: var(--navy); color: #fff; font-family: var(--body); font-size: 16px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #A9B8D8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(232,185,49,0.55); outline-offset: 1px; border-color: var(--gold); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field .err { color: var(--err); font-size: 14px; min-height: 0; }
.field .hint { color: var(--muted); font-size: 13px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--gold); flex: 0 0 auto; }
.consent label { font-weight: 400; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-size: 15px; }
.form-status.error { color: var(--err); }
.form-success {
  border: 1px solid var(--ok); background: rgba(143, 214, 168, 0.08); border-radius: var(--radius); padding: 26px 24px; color: var(--text);
}
.form-success h3 { color: var(--ok); }
.form-success p { color: var(--muted); }
.lead-form button[type="submit"] { margin-top: 20px; width: 100%; }
@media (min-width: 641px) { .lead-form button[type="submit"] { width: auto; } }
.privacy-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; padding: 88px 0; background: radial-gradient(700px 300px at 50% 0%, rgba(232,185,49,0.12), transparent 70%), var(--navy-2); border-top: 1px solid var(--line); }
.final-cta h2 { max-width: 820px; margin: 0 auto 16px; }
.final-cta p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.final-cta .btn-row { justify-content: center; }

/* ---------- Contact centre ---------- */
.pathway { scroll-margin-top: 90px; }
.pathway-nav { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); margin-top: 8px; }
.pathway-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: #fff; font-family: var(--head); font-weight: 600; background: rgba(255,255,255,0.03); }
.pathway-nav a span { display: block; font-family: var(--body); font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 4px; }
.pathway-nav a:hover { border-color: var(--gold); }

/* ---------- Footer ---------- */
.nf-footer { background: var(--black); border-top: 1px solid var(--line); padding: 48px 0 36px; }
.nf-footer .cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); margin-bottom: 32px; }
.nf-footer h4 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.nf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nf-footer a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nf-footer a:hover { color: #fff; }
.nf-footer .legal { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.nf-footer .legal span { color: var(--gold); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 380px) {
  .container { padding: 0 18px; }
  .btn { width: 100%; }
}
