/* Apex shared subpage stylesheet — matches index.html design system */
:root {
  --slate: #1F3A4D;
  --slate-2: #1A3242;
  --slate-3: #152936;
  --ink: #1A1A1A;
  --paper: #F5F1E8;
  --paper-2: #ECE6D6;
  --rust: #C44536;
  --rust-deep: #A8392B;
  --gold: #D9B26F;
  --gold-soft: #C9A668;
  --bronze: #8A6420;
  --text: #ECE6D8;
  --text-dim: #A7B4BD;
  --text-faint: #6F8089;
  --line: #2C4658;
  --line-bright: #3E5A6E;
  --ink-text: #23323B;
  --ink-dim: #5C6B73;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max: 1280px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--slate);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(62, 90, 110, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 90, 110, 0.10) 1px, transparent 1px);
  background-size: 64px 64px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}
.label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.label--gold { color: var(--gold); }
a { color: var(--gold-soft); }
a:hover { color: var(--gold); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(31, 58, 77, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; display: block; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__word { font-weight: 700; letter-spacing: 0.12em; font-size: 1.1rem; color: var(--gold); }
.brand__sub {
  font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.5rem; color: var(--gold-soft); margin-top: 0.28rem;
}
.nav { display: flex; gap: 1.75rem; align-items: center; }
.nav a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.15s;
}
.nav a:hover { color: var(--gold); }
@media (max-width: 760px) { .nav a:not(:last-child) { display: none; } }

/* Breadcrumbs */
.crumbs {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-current] { color: var(--gold); }
.crumbs .sep { padding: 0 0.55rem; color: var(--text-faint); }

/* Hero */
.hero {
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 7vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.hero__fig {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.hero__fig-line { flex: 1; height: 1px; background: var(--line-bright); max-width: 200px; min-width: 40px; }
.hero__title {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  color: var(--gold);
}
.hero__title span { color: var(--text); }
.hero__lede {
  max-width: 720px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  font-family: var(--font-sans); font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--line-bright); background: transparent;
  color: var(--text); transition: all 0.15s;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn--primary { background: var(--rust); color: var(--paper); border-color: var(--rust); }
.btn--primary:hover { background: var(--rust-deep); border-color: var(--rust-deep); color: var(--paper); }
.hero__meta {
  display: flex; gap: 2rem; flex-wrap: wrap;
  border-top: 1px dashed var(--line); padding-top: 1.25rem;
}
.hero__meta-item .label { display: block; margin-bottom: 0.3rem; }
.hero__meta-item-value { font-weight: 600; font-size: 1rem; color: var(--gold); }

/* Sections */
.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.section__head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap;
}
.section__title {
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--gold);
}
.section__eyebrow { margin-bottom: 0.5rem; }
.section__side { max-width: 360px; font-size: 0.9rem; color: var(--text-dim); }

/* Prose blocks */
.prose { max-width: 760px; font-size: 1rem; color: var(--text); line-height: 1.7; }
.prose p + p { margin-top: 1rem; }
.prose h3 {
  margin-top: 2rem; margin-bottom: 0.6rem;
  color: var(--gold); font-size: 1.25rem; letter-spacing: -0.005em;
}

/* Feature grids */
.grid-3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.cell {
  background: var(--slate-2); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.cell__num { font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--rust); }
.cell__title { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.cell__desc { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }
.cell__list { list-style: none; padding-top: 0.6rem; }
.cell__list li {
  font-size: 0.82rem; color: var(--text-dim);
  padding: 0.22rem 0; letter-spacing: 0.01em;
}
.cell__list li::before { content: "▸ "; color: var(--rust); font-weight: 700; }

/* Cross-link cards */
.xlinks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.xlink {
  background: var(--slate-2); padding: 1.5rem;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 0.45rem;
  transition: background 0.15s;
}
.xlink:hover { background: var(--slate-3); color: var(--text); }
.xlink__label { font-size: 0.72rem; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; }
.xlink__name { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.xlink__name::after { content: " →"; color: var(--rust); }
.xlink__desc { font-size: 0.85rem; color: var(--text-dim); }

/* FAQ */
.faq { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--slate-2); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: none; }
.faq__item summary {
  padding: 1.15rem 1.4rem; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 0.98rem; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; transition: background 0.15s, color 0.15s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--rust); font-weight: 700; font-size: 1.4rem; line-height: 1; flex: none; }
.faq__item[open] summary { background: var(--slate-3); color: var(--gold); }
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:hover { background: var(--slate-3); }
.faq__body { padding: 0 1.4rem 1.4rem; color: var(--text-dim); font-size: 0.93rem; line-height: 1.65; }
.faq__body p + p { margin-top: 0.75rem; }

/* CTA strip */
.cta-strip {
  background: var(--slate-2); border: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
}
.cta-strip__title { color: var(--gold); font-weight: 700; font-size: clamp(1.25rem, 2.5vw, 1.6rem); letter-spacing: -0.01em; }
.cta-strip__sub { color: var(--text-dim); font-size: 0.95rem; margin-top: 0.4rem; }

/* Footer */
.footer { padding-block: 2.5rem; background: var(--ink); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 0.7rem; }
.footer__brand svg { width: 30px; height: 30px; }
.footer__meta {
  font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--text-faint); line-height: 1.8; text-transform: uppercase;
}
.footer__meta a { color: var(--gold-soft); text-decoration: none; }
.footer__meta a:hover { color: var(--gold); }
.footer__links { display: flex; gap: 1.25rem; margin-bottom: 0.5rem; }
.footer__links a { text-transform: uppercase; letter-spacing: 0.06em; }
