/* Self-hosted variable fonts (Inter & Sora, SIL Open Font License) —
   no third-party dependency; swap avoids invisible text on load. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/sora.woff2') format('woff2'); }

/* ============================================================
   AlphaBridge SmartOps — Enterprise Design System
   Restrained, authoritative, technically precise.
   Palette: Midnight/Deep Navy · Graphite · Ivory · Slate · muted Gold accent.
   No glassmorphism, no glow, no decorative shine. Gold ≈ 3% accent only.
   WCAG 2.2 AA · respects prefers-reduced-motion.
   ============================================================ */

/* ---------- Design tokens (remediation master §16) ---------- */
:root {
  --midnight: #07111F;   /* principal enterprise background */
  --deep-navy: #0B172A;  /* navigation & secondary dark surfaces */
  --graphite: #121821;   /* premium dark content surfaces */
  --navy-line: #1c2a40;  /* borders on dark */
  --ivory: #F7F5EF;      /* warm light background */
  --white: #FFFFFF;
  --gold: #C6A15B;       /* restrained brand accent */
  --gold-hi: #E2C47A;    /* limited hover / emphasis */
  --slate: #7D8796;      /* neutral interface & secondary text */

  /* Text */
  --ink: #101a2b;            /* body text on light */
  --ink-soft: #45536b;       /* secondary text on light */
  --on-dark: #EEF2F8;        /* text on dark */
  --on-dark-soft: #A9B4C6;   /* secondary text on dark */

  /* Surfaces on light */
  --surface: #ffffff;
  --surface-line: #e6e3d9;   /* warm hairline on ivory */
  --surface-line-cool: #e3e8f0;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(7,17,31,.06), 0 1px 3px rgba(7,17,31,.05);
  --shadow-md: 0 6px 20px rgba(7,17,31,.10);
  --shadow-dark: 0 12px 40px rgba(0,0,0,.28);

  --container: 1200px;
  --container-narrow: 780px;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
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 {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--midnight);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--gold); color: var(--midnight); padding: .7rem 1.1rem; border-radius: var(--r-sm); font-weight: 700; transition: top var(--dur) var(--ease); }
.skip-link:focus { top: 1rem; }
:where(a,button,input,textarea,select,[tabindex]):focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
.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; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.25rem, 7vw, 6rem); position: relative; }
.section-sm { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 960px){ .cols-3,.cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .cols-2,.cols-3,.cols-4 { grid-template-columns: 1fr; } }

.bg-dark { background: var(--midnight); color: var(--on-dark); }
.bg-graphite { background: var(--graphite); color: var(--on-dark); }
.bg-light { background: var(--white); color: var(--ink); }
.bg-ivory { background: var(--ivory); color: var(--ink); }

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-sans); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .8; }
h1.display { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
h2.display { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 64ch; }
.bg-dark .lead, .bg-graphite .lead { color: var(--on-dark-soft); }
.muted { color: var(--slate); }
.measure { max-width: 68ch; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.text-gold { color: var(--gold); }
.gold-accent { color: var(--gold-hi); }
.section-head { max-width: 720px; margin-bottom: clamp(1.8rem,3.5vw,2.75rem); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin: .7rem 0 .9rem; }

/* ---------- Buttons (flat, restrained) ---------- */
.btn { --py: .8rem; --px: 1.4rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: var(--py) var(--px); border-radius: var(--r-sm); font-weight: 600; font-size: .97rem; border: 1px solid transparent; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); white-space: nowrap; flex-shrink: 0; text-align: center; }
.btn svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.btn-gold { background: var(--gold); color: #22190a; }
.btn-gold:hover { background: var(--gold-hi); }
.btn-solid { background: var(--deep-navy); color: var(--on-dark); border-color: var(--navy-line); }
.btn-solid:hover { background: var(--graphite); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--surface-line-cool); }
.btn-ghost:hover { border-color: var(--gold); }
.bg-dark .btn-ghost, .bg-graphite .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost, .cta-band .btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,.28); }
.bg-dark .btn-ghost:hover, .bg-graphite .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover, .cta-band .btn-ghost:hover { border-color: var(--gold); background: rgba(198,161,91,.10); }
.btn-lg { --py: 1rem; --px: 1.8rem; font-size: 1.03rem; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .72; cursor: progress; pointer-events: none; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.center .btn-row { justify-content: center; }
.btn-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--gold); border-bottom: 1px solid transparent; white-space: nowrap; }
.bg-dark .btn-link, .bg-graphite .btn-link, .page-hero .btn-link { color: var(--gold-hi); }
.btn-link:hover { border-bottom-color: currentColor; }
.btn-link svg { width: 1.05em; height: 1.05em; transition: transform var(--dur) var(--ease); }
.btn-link:hover svg { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--deep-navy); border-bottom: 1px solid var(--navy-line); }
.nav { display: flex; align-items: center; gap: 1.25rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand img { height: 38px; width: 38px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark .wm-name { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -.01em; }
.wm-alpha { color: #eef2f8; }
.wm-bridge { color: var(--gold); }
.wordmark .wm-sub { font-family: var(--font-sans); font-size: .55rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--slate); margin-top: 3px; }
@media (max-width: 420px){ .wordmark .wm-name { font-size: 1.12rem; } .wordmark .wm-sub { display: none; } }

.nav-menu { display: flex; align-items: center; gap: .1rem; margin-inline-start: .5rem; }
.nav-menu > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .6rem; border-radius: var(--r-sm); color: var(--on-dark-soft); font-weight: 500; font-size: .92rem; white-space: nowrap; background: transparent; border: 0; appearance: none; cursor: pointer; font-family: inherit; transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; background: rgba(255,255,255,.05); }
.nav-link[aria-current="page"] { color: var(--gold-hi); }
.nav-link .chev { width: 9px; transition: transform var(--dur) var(--ease); opacity: .7; }
.has-menu[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-spacer { margin-inline-start: auto; }
.nav-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.nav-actions .login { color: var(--on-dark); font-weight: 600; padding: .55rem .6rem; font-size: .93rem; }
.nav-actions .login:hover { color: var(--gold-hi); }
.nav-search { display: inline-flex; align-items: center; }
.nav-search svg { width: 18px; height: 18px; }

/* ---------- Social icons (central, hidden until configured) ---------- */
.social { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--navy-line); color: var(--on-dark-soft); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.social a:hover { color: var(--gold-hi); border-color: var(--gold); background: rgba(198,161,91,.08); }
.social svg { width: 18px; height: 18px; }
.social-light a { border-color: var(--surface-line-cool); color: var(--ink-soft); }
.social-light a:hover { color: var(--gold-ink); border-color: var(--gold); }

.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: var(--graphite); border: 1px solid var(--navy-line); border-radius: var(--r-md); box-shadow: var(--shadow-dark); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur); }
.has-menu[aria-expanded="true"] + .dropdown, .dropdown:hover { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: .55rem .7rem; border-radius: var(--r-sm); color: var(--on-dark); transition: background var(--dur) var(--ease); }
.dropdown a:hover { background: rgba(198,161,91,.12); }
.dropdown a strong { display: block; font-weight: 600; font-size: .95rem; }
.dropdown a span { display: block; color: var(--on-dark-soft); font-size: .82rem; }

.nav-toggle { display: none; background: transparent; border: 0; padding: .5rem; color: #fff; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 1180px){ .nav-menu, .nav-actions .login { display: none; } .nav-toggle { display: inline-flex; } }

.mobile-panel { position: fixed; inset: 72px 0 0 0; z-index: 99; background: var(--midnight); padding: 1.1rem var(--gutter) 2.5rem; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform 260ms var(--ease), visibility 260ms; }
.mobile-panel.open { transform: translateX(0); visibility: visible; }
.mobile-panel a { display: block; color: var(--on-dark); font-size: 1.1rem; font-weight: 600; padding: .85rem .25rem; border-bottom: 1px solid var(--navy-line); }
.mobile-panel a:hover { color: var(--gold-hi); }
.mobile-panel .m-actions { margin-top: 1.4rem; display: grid; gap: .7rem; }

/* ---------- Hero (restrained) ---------- */
.hero { position: relative; overflow: hidden; background: var(--midnight); color: var(--on-dark); padding-block: clamp(3.25rem, 7vw, 5.5rem); border-bottom: 1px solid var(--navy-line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
@media (max-width: 940px){ .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 1.2rem; }
.hero .lead { margin-bottom: 1.9rem; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px); background-size: 56px 56px; opacity: .30; mask-image: radial-gradient(70% 60% at 70% 35%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 70% 35%, #000 10%, transparent 75%); }
.hero > * { position: relative; z-index: 1; }
.hero-note { margin-top: 1rem; font-size: .9rem; color: var(--on-dark-soft); }

/* ---------- Signature workflow visual (product, not decorative) ---------- */
.workflow { border: 1px solid var(--navy-line); border-radius: var(--r-lg); background: var(--graphite); box-shadow: var(--shadow-dark); overflow: hidden; }
.workflow-head { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid var(--navy-line); background: var(--deep-navy); }
.workflow-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--navy-line); }
.workflow-head .wf-title { margin-left: .4rem; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--on-dark-soft); }
.workflow-body { padding: clamp(1rem,2.2vw,1.5rem); display: grid; gap: .55rem; }
.wf-step { display: flex; align-items: center; gap: .8rem; padding: .7rem .85rem; border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid var(--navy-line); }
.wf-step .wf-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(198,161,91,.35); background: rgba(198,161,91,.08); }
.wf-step .wf-ic svg { width: 18px; height: 18px; }
.wf-step .wf-t strong { display: block; font-size: .92rem; font-weight: 600; color: var(--on-dark); }
.wf-step .wf-t span { font-size: .8rem; color: var(--on-dark-soft); }
.wf-step.wf-core { border-color: rgba(198,161,91,.5); }
.wf-arrow { display: grid; place-items: center; color: var(--slate); }
.wf-arrow svg { width: 16px; height: 16px; }

/* ---------- Credibility strip ---------- */
.cred-strip { border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); background: var(--deep-navy); }
.cred-strip ul { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: center; padding-block: 1.05rem; }
.cred-strip li { display: inline-flex; align-items: center; gap: .5rem; color: var(--on-dark-soft); font-size: .88rem; font-weight: 500; }
.cred-strip li svg { width: 15px; color: var(--gold); flex-shrink: 0; }

/* ---------- Cards (solid, bordered) ---------- */
.card { background: var(--surface); color: var(--ink); border: 1px solid var(--surface-line-cool); border-radius: var(--r-lg); padding: clamp(1.3rem,2.4vw,1.8rem); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); height: 100%; }
.card:hover { border-color: rgba(198,161,91,.5); box-shadow: var(--shadow-sm); }
.card h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.card p { color: var(--ink-soft); }
.bg-ivory .card { border-color: var(--surface-line); }
.card-dark { background: var(--graphite); color: var(--on-dark); border-color: var(--navy-line); }
.card-dark p { color: var(--on-dark-soft); }
.card-dark:hover { border-color: rgba(198,161,91,.5); }
.card-icon { width: 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: 1rem; color: var(--gold); border: 1px solid rgba(198,161,91,.35); background: rgba(198,161,91,.07); }
.card-icon svg { width: 22px; height: 22px; }
.card-num { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--gold); letter-spacing: .08em; }

.feat-list { display: grid; gap: .65rem; margin-top: 1rem; }
.feat-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); }
.card-dark .feat-list li, .bg-dark .feat-list li, .bg-graphite .feat-list li { color: var(--on-dark-soft); }
.feat-list li svg { width: 18px; flex-shrink: 0; color: var(--gold); margin-top: 3px; }

/* ---------- Panels (solid, no glass) ---------- */
.panel { border-radius: var(--r-lg); background: var(--graphite); border: 1px solid var(--navy-line); box-shadow: var(--shadow-dark); padding: clamp(1.3rem,2.6vw,2rem); color: var(--on-dark); }
.panel-light { background: var(--surface); border: 1px solid var(--surface-line-cool); box-shadow: var(--shadow-sm); color: var(--ink); }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem,4vw,3.5rem); align-items: center; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } }
.split.reverse .split-media { order: -1; }
@media (max-width: 860px){ .split.reverse .split-media { order: 0; } }

/* ---------- Data tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--surface-line-cool); }
.bg-dark .table-wrap, .bg-graphite .table-wrap { border-color: var(--navy-line); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--surface); }
.bg-dark table.data, .bg-graphite table.data { background: var(--graphite); color: var(--on-dark); }
table.data th, table.data td { text-align: left; padding: .95rem 1.1rem; vertical-align: top; border-bottom: 1px solid var(--surface-line-cool); }
.bg-dark table.data th, .bg-dark table.data td, .bg-graphite table.data th, .bg-graphite table.data td { border-color: var(--navy-line); }
table.data thead th { background: var(--ivory); font-family: var(--font-display); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.bg-dark table.data thead th, .bg-graphite table.data thead th { background: var(--deep-navy); color: var(--on-dark-soft); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .cap { color: var(--gold); font-weight: 600; font-family: var(--font-display); }

/* ---------- Capability badge (not status) ---------- */
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .26rem .65rem; border-radius: var(--r-pill); font-size: .74rem; font-weight: 700; letter-spacing: .02em; border: 1px solid rgba(198,161,91,.35); color: var(--gold); background: rgba(198,161,91,.08); white-space: nowrap; }
.bg-dark .badge, .bg-graphite .badge { color: var(--gold-hi); }

/* ---------- Capability sections (SmartLedgerOps) ---------- */
.cap-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem,4vw,3rem); align-items: center; padding-block: clamp(1.6rem,3.5vw,2.6rem); border-top: 1px solid var(--surface-line-cool); scroll-margin-top: 90px; }
.bg-dark .cap-row, .bg-graphite .cap-row { border-color: var(--navy-line); }
.cap-row:first-of-type { border-top: 0; }
@media (max-width: 820px){ .cap-row { grid-template-columns: 1fr; } }
.cap-domain { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* ---------- Accordion (assurance controls) ---------- */
.accordion { display: grid; gap: .75rem; max-width: 880px; }
.acc-item { border: 1px solid var(--surface-line-cool); border-radius: var(--r-md); background: var(--surface); overflow: hidden; scroll-margin-top: 90px; transition: border-color var(--dur) var(--ease); }
.acc-item[open] { border-color: rgba(198,161,91,.5); }
.acc-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.2rem; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: -3px; border-radius: var(--r-md); }
.acc-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; color: var(--gold-ink); border: 1px solid rgba(198,161,91,.3); background: rgba(198,161,91,.07); }
.acc-ic svg { width: 20px; height: 20px; }
.acc-head { flex: 1; }
.acc-head strong { display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.01em; }
.acc-head span { display: block; color: var(--ink-soft); font-size: .92rem; margin-top: .15rem; }
.acc-chev { color: var(--slate); flex-shrink: 0; transition: transform var(--dur) var(--ease); }
.acc-chev svg { width: 20px; height: 20px; }
.acc-item[open] .acc-chev { transform: rotate(180deg); }
.acc-body { padding: 0 1.2rem 1.25rem 4rem; }
@media (max-width: 560px) { .acc-body { padding-left: 1.2rem; } }
.acc-body p { color: var(--ink-soft); }
.acc-value { margin-top: .7rem; }
.acc-value strong { color: var(--ink); }

/* ---------- Pillars / numbered cards ---------- */
.pillar { position: relative; }
.pillar .card-num { position: absolute; top: 1.3rem; right: 1.4rem; opacity: .5; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--gold); }
.price-card .tier-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.price-card .tier-pos { color: var(--ink-soft); margin: .5rem 0 1.2rem; min-height: 4.2em; }
.card-dark.price-card .tier-pos { color: var(--on-dark-soft); }
.price-amount { font-family: var(--font-display); font-size: 1.02rem; color: var(--gold); font-weight: 600; margin-bottom: 1.2rem; }
.card-dark .price-amount { color: var(--gold-hi); }
.price-card .btn { margin-top: auto; }
.featured-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #22190a; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: .28rem .8rem; border-radius: var(--r-pill); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px){ .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.bg-dark .field label, .bg-graphite .field label, .panel .field label { color: var(--on-dark); }
.field .req { color: var(--gold); }
.field .hint { font-size: .82rem; color: var(--slate); }
.panel .field .hint, .bg-dark .field .hint, .bg-graphite .field .hint { color: var(--on-dark-soft); }
.field input, .field select, .field textarea { font: inherit; width: 100%; padding: .78rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--surface-line-cool); background: var(--surface); color: var(--ink); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.panel .field input, .panel .field select, .panel .field textarea { background: rgba(255,255,255,.04); border-color: var(--navy-line); color: #fff; }
.panel .field input::placeholder, .panel .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,161,91,.18); }
.field textarea { min-height: 118px; resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d05a5a; box-shadow: 0 0 0 3px rgba(208,90,90,.15); }
.field .err { color: #ff9a9a; font-size: .82rem; display: none; }
.field.invalid .err { display: block; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; }
.checkbox input { width: 19px; height: 19px; margin-top: 2px; flex-shrink: 0; accent-color: var(--gold); }
.checkbox label { font-weight: 500; font-size: .9rem; }
.error-summary { display: none; padding: 1rem 1.2rem; border-radius: var(--r-md); background: rgba(208,90,90,.12); border: 1px solid rgba(208,90,90,.4); color: #ffcaca; }
.error-summary.show { display: block; }
.error-summary h3 { color: #ffdada; font-size: 1rem; margin-bottom: .5rem; }
.error-summary a { color: #ffdada; text-decoration: underline; }
.error-summary li { list-style: disc; margin-left: 1.2rem; }
.form-success { display: none; padding: 1.4rem; border-radius: var(--r-md); background: rgba(64,150,110,.14); border: 1px solid rgba(64,150,110,.4); color: #c8f2dc; }
.form-success.show { display: block; }
.form-success h3 { color: #daffec; margin-bottom: .4rem; }

/* ---------- Leadership ---------- */
.exec-avatar { width: 68px; height: 68px; border-radius: var(--r-md); flex-shrink: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; background: var(--deep-navy); color: var(--gold-hi); border: 1px solid var(--navy-line); overflow: hidden; }
.exec-avatar img { width: 100%; height: 100%; object-fit: cover; }
.exec-avatar--placeholder { background: linear-gradient(160deg, var(--deep-navy), var(--graphite)); }
.exec-avatar--placeholder svg { width: 60%; height: 60%; fill: none; stroke: var(--gold-hi); stroke-width: 2.2; stroke-linecap: round; opacity: .55; }
.exec-role { color: var(--gold); font-weight: 600; font-size: .9rem; }

/* ---------- Prose content blocks (continuity, narrative pages) ---------- */
.prose-blocks { display: grid; gap: 1.1rem; }
.prose-block { padding: 1.4rem 1.5rem; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r-md); }
.prose-block h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.12rem; margin-bottom: .5rem; }
.prose-block p { margin: 0; color: var(--ink-2, var(--ink)); }
.prose-block .prose-ic { display: inline-flex; width: 22px; height: 22px; color: var(--gold-ink); flex-shrink: 0; }
.card-dark .exec-role { color: var(--gold-hi); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-cover { aspect-ratio: 16/9; background: var(--deep-navy); position: relative; border-bottom: 1px solid var(--surface-line-cool); }
.post-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 15% 10%, rgba(198,161,91,.22), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px); }
.post-cover .pc-cat { position: absolute; left: 12px; bottom: 12px; z-index: 1; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-hi); background: rgba(7,17,31,.6); border: 1px solid var(--navy-line); padding: .25rem .6rem; border-radius: var(--r-pill); }
.post-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.post-body p { color: var(--ink-soft); font-size: .95rem; }
.post-meta { margin-top: auto; padding-top: 1rem; font-size: .82rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: .4rem .8rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .35rem .8rem; border-radius: var(--r-pill); border: 1px solid var(--surface-line-cool); font-size: .85rem; font-weight: 500; color: var(--ink-soft); transition: border-color var(--dur), color var(--dur); }
.bg-dark .chip, .bg-graphite .chip { border-color: var(--navy-line); color: var(--on-dark-soft); }
.chip:hover, .chip[aria-current="true"] { border-color: var(--gold); color: var(--gold); }
.article { max-width: 720px; margin-inline: auto; }
.article h1 { font-size: clamp(1.9rem,3.6vw,2.7rem); margin: 1rem 0; }
.article .article-body { font-size: 1.08rem; }
.article .article-body p { margin-bottom: 1.15rem; color: var(--ink); }
.article-hero-cover { aspect-ratio: 21/9; border-radius: var(--r-lg); background: var(--deep-navy); position: relative; overflow: hidden; margin: 1.5rem 0; border: 1px solid var(--surface-line-cool); }
.article-hero-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 12% 8%, rgba(198,161,91,.22), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px); }
.byline { display: flex; align-items: center; gap: .8rem; }
.byline .exec-avatar { width: 46px; height: 46px; font-size: 1rem; }

/* ---------- CTA band (solid) ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--deep-navy); border: 1px solid var(--navy-line); border-radius: var(--r-xl); padding: clamp(2.2rem,5vw,3.4rem); color: var(--on-dark); text-align: center; }
.cta-band h2 { max-width: 22ch; margin: 0 auto 1.3rem; }

/* ---------- Notice / callout ---------- */
.notice { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--r-md); background: rgba(198,161,91,.08); border: 1px solid rgba(198,161,91,.32); }
.notice svg { width: 20px; flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.bg-dark .notice svg, .bg-graphite .notice svg { color: var(--gold-hi); }
.notice p { font-size: .93rem; }

/* ---------- Breadcrumb & page hero ---------- */
.crumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .86rem; color: var(--on-dark-soft); padding-top: 1.4rem; }
.crumb a:hover { color: var(--gold-hi); }
.crumb .sep { opacity: .5; }
.page-hero { background: var(--midnight); color: var(--on-dark); padding-block: clamp(2.25rem,5vw,3.75rem) clamp(2.25rem,5vw,3.25rem); border-bottom: 1px solid var(--navy-line); }
.page-hero h1 { margin: .7rem 0 1rem; font-size: clamp(2rem,4vw,3rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight); color: var(--on-dark-soft); border-top: 1px solid var(--navy-line); padding-block: clamp(2.75rem,5vw,4rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 1.75rem; }
@media (max-width: 1080px){ .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 620px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand img { height: 44px; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-sans); font-size: .74rem; letter-spacing: .11em; text-transform: uppercase; color: var(--slate); margin-bottom: .9rem; }
.footer-col a { display: block; padding: .3rem 0; color: var(--on-dark-soft); font-size: .9rem; }
.footer-col a:hover { color: var(--gold-hi); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--navy-line); font-size: .84rem; }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-bottom a:hover { color: var(--gold-hi); }
.tm { font-size: .72em; vertical-align: super; opacity: .8; }

/* ---------- Cookie consent ---------- */
.cookie-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150; max-width: 560px; margin-inline: auto; background: var(--graphite); color: var(--on-dark); border: 1px solid var(--navy-line); border-radius: var(--r-lg); box-shadow: var(--shadow-dark); padding: 1.2rem 1.4rem; transform: translateY(160%); transition: transform 320ms var(--ease); }
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p { font-size: .9rem; margin-bottom: 1rem; color: var(--on-dark-soft); }
.cookie-bar .cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-bar .btn { --py: .6rem; --px: 1.1rem; font-size: .9rem; }
.cookie-bar .btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,.24); }
.cookie-bar .btn-ghost:hover { border-color: var(--gold); }
.cookie-bar[hidden] { display: none; }

/* ---------- Cookie preference centre ---------- */
.legal-cookie { background: none; border: 0; color: var(--on-dark-soft); font: inherit; font-size: .84rem; cursor: pointer; padding: 0; }
.legal-cookie:hover { color: var(--gold-hi); }
.cookie-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.25rem; background: rgba(3,7,14,.62); }
.cookie-modal[hidden] { display: none; }
.cookie-modal-panel { width: 100%; max-width: 520px; background: var(--graphite); color: var(--on-dark); border: 1px solid var(--navy-line); border-radius: var(--r-lg); box-shadow: var(--shadow-dark); padding: 1.5rem; max-height: 90vh; overflow-y: auto; }
.cookie-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.cookie-modal-head h2 { font-size: 1.3rem; }
.cookie-close { background: none; border: 1px solid var(--navy-line); color: var(--on-dark-soft); width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.cookie-close:hover { color: var(--gold-hi); border-color: var(--gold); }
.cookie-close svg { width: 18px; height: 18px; }
.cookie-cats { display: grid; gap: .6rem; margin: 1.1rem 0; }
.cookie-cat { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding: .9rem 1rem; border: 1px solid var(--navy-line); border-radius: var(--r-md); background: rgba(255,255,255,.02); }
.cookie-cat strong { display: block; font-size: .98rem; }
.cookie-cat span { color: var(--on-dark-soft); font-size: .85rem; }
.cookie-always { color: var(--slate); font-size: .82rem; font-weight: 600; flex-shrink: 0; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.switch { position: relative; display: inline-flex; flex-shrink: 0; width: 46px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .slider { width: 46px; height: 26px; border-radius: 999px; background: var(--navy-line); transition: background var(--dur) var(--ease); }
.switch .slider::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--dur) var(--ease); }
.switch input:checked + .slider { background: var(--gold); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 3px solid var(--gold-hi); outline-offset: 2px; }

/* ---------- Reveal (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--surface-line-cool); border: 0; margin-block: 2rem; }
.bg-dark .divider, .bg-graphite .divider { background: var(--navy-line); }
.stack > * + * { margin-top: 1rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { padding: .38rem .85rem; border-radius: var(--r-pill); background: rgba(198,161,91,.08); border: 1px solid rgba(198,161,91,.3); font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.bg-dark .pill-list li, .bg-graphite .pill-list li { color: var(--on-dark); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }

/* ---------- Accessibility: WCAG 2.2 AA text contrast ----------
   The brand gold (#C6A15B) and slate are used for FILLS, BORDERS and icons,
   but as TEXT on light surfaces they fail AA. These darker ink variants are
   used for accent/secondary TEXT on light; the lighter tones stay on dark. */
:root { --gold-ink: #86682a; --muted-ink: #5b6675; }
.eyebrow, .btn-link, .text-gold, .badge, .cap-domain, .price-amount { color: var(--gold-ink); }
.muted, .field .hint, .post-meta { color: var(--muted-ink); }
.bg-dark .eyebrow, .bg-graphite .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow,
.bg-dark .btn-link, .bg-graphite .btn-link, .hero .btn-link, .page-hero .btn-link,
.bg-dark .text-gold, .bg-graphite .text-gold, .hero .text-gold, .page-hero .text-gold,
.bg-dark .badge, .bg-graphite .badge, .card-dark .badge,
.bg-dark .cap-domain, .bg-graphite .cap-domain,
.card-dark .price-amount { color: var(--gold-hi); }
.bg-dark .muted, .bg-graphite .muted, .hero .muted, .page-hero .muted { color: var(--slate); }
