/* ============================================================
   FlowOrca / OrcaVaults — design system
   Built for: Cayman government, offshore law firms, CIMA-regulated finance
   Targets:   WCAG 2.2 Level AA, no external dependencies, light-mode primary
   ============================================================ */

/* ----- Reset & base -------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; }
ul, ol { list-style: none; }

/* ----- Design tokens ------------------------------------------------- */

:root {
  /* Colour palette — founder's amber (#f0b429) as accent; deep navy as
     primary; warm off-white as background. Honours the original brand
     identity while maintaining WCAG 2.2 AA contrast for procurement
     and accessibility. */
  --color-bg:               #fafaf7;
  --color-surface:          #ffffff;
  --color-surface-alt:      #f1f5f9;
  --color-surface-deep:     #0a1628;
  --color-text:             #0f172a;
  --color-text-muted:       #475569;
  --color-text-inverted:    #f8fafc;
  --color-text-on-deep:     #cbd5e1;
  --color-primary:          #0c4a6e;
  --color-primary-hover:    #075985;
  --color-accent:           #f0b429;
  --color-accent-hover:     #d49414;
  --color-accent-text:      #7c4a03;
  --color-border:           #e2e8f0;
  --color-border-strong:    #cbd5e1;
  --color-success:          #166534;
  --color-warning:          #92400e;
  --color-info:             #1e40af;
  --color-focus:            #0284c7;

  /* Typography */
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Helvetica Neue", "Liberation Sans", Arial, sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
  --shadow:    0 1px 3px 0 rgb(15 23 42 / 0.08), 0 1px 2px -1px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.08), 0 4px 6px -4px rgb(15 23 42 / 0.06);

  --container-narrow: 64rem;
  --container:        76rem;
  --container-wide:   90rem;

  /* Type scale aligned to clean integer px values at 16px root.
     12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 — readable on procurement
     laptops, predictable for designers handing this off. */
  --text-xs:   0.75rem;     /* 12px */
  --text-sm:   0.875rem;    /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-lg:   1.125rem;    /* 18px */
  --text-xl:   1.25rem;     /* 20px */
  --text-2xl:  1.5rem;      /* 24px */
  --text-3xl:  1.875rem;    /* 30px */
  --text-4xl:  2.25rem;     /* 36px */
  --text-5xl:  2.75rem;     /* 44px */

  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
}

/* ----- Body ---------------------------------------------------------- */

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----- Skip link ----------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--color-surface-deep);
  color: var(--color-text-inverted);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: var(--space-4);
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* ----- Container ----------------------------------------------------- */

.container,
.container-narrow,
.container-wide {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container        { max-width: var(--container); }
.container-narrow { max-width: var(--container-narrow); }
.container-wide   { max-width: var(--container-wide); }

@media (min-width: 768px) {
  .container, .container-narrow, .container-wide {
    padding-inline: var(--space-7);
  }
}

/* ----- Header & nav -------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
}
.nav-brand:hover { color: var(--color-primary); }

.nav-brand-mark {
  width: 40px; height: 30px;
  background: url('/assets/img/favicon.svg') center / contain no-repeat;
  /* Hide fallback "FO" text but keep it accessible */
  text-indent: -9999px;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  gap: var(--space-5);
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-1);
  border-bottom: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}
.nav-links a:hover { color: var(--color-text); border-color: var(--color-border-strong); }
.nav-links a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 2px;
}
.nav-links a[aria-current="page"] {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.nav-cta {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .nav-links, .nav-cta { display: flex; }
}

/* Mobile nav toggle */
.nav-toggle {
  margin-left: auto;
  padding: var(--space-2);
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--color-surface-alt); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: var(--space-4);
  flex-direction: column;
  gap: var(--space-3);
}
.nav-mobile[data-open="true"] { display: flex; }
.nav-mobile a {
  text-decoration: none;
  color: var(--color-text);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
}
.nav-mobile a:hover { background: var(--color-surface-alt); }

/* ----- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.12s, color 0.12s, border-color 0.12s, transform 0.06s;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverted);
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn-primary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--color-bg);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover { background: var(--color-surface-alt); border-color: var(--color-text); }

.btn-tertiary {
  background: transparent;
  color: var(--color-primary);
  padding-inline: var(--space-3);
}
.btn-tertiary:hover { color: var(--color-primary-hover); text-decoration: underline; }

.btn-large { padding: var(--space-4) var(--space-6); font-size: var(--text-base); }

/* ----- Sections ------------------------------------------------------ */

.section {
  padding-block: var(--space-8);
}
@media (min-width: 768px) {
  .section { padding-block: var(--space-9); }
}

.section-alt { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.section-deep {
  background: var(--color-surface-deep);
  color: var(--color-text-on-deep);
}
.section-deep h2,
.section-deep h3,
.section-deep h4 { color: var(--color-text-inverted); }
.section-deep a { color: var(--color-text-inverted); }

.section-header {
  max-width: 48rem;
  margin-bottom: var(--space-7);
}
.section-header.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent-text);
  margin-bottom: var(--space-3);
}
.section-deep .eyebrow { color: var(--color-accent); }

/* ----- Typography ---------------------------------------------------- */

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }
h1 {
  font-size: 2rem;
  line-height: var(--leading-tight);
}
@media (min-width: 768px) { h1 { font-size: 2.75rem; } }
h2 {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}
@media (min-width: 768px) { h2 { font-size: var(--text-3xl); } }
h3 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}
h4 {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2);
}

p { line-height: var(--leading-relaxed); max-width: 70ch; }
.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
  max-width: 60ch;
}

a:not(.btn):not(.nav-brand):not(.nav-links a):not(.nav-mobile a) {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:not(.btn):not(.nav-brand):not(.nav-links a):not(.nav-mobile a):hover {
  color: var(--color-primary-hover);
  text-decoration-thickness: 2px;
}

code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.92em; }

/* ----- Hero ---------------------------------------------------------- */

.hero {
  padding-block: var(--space-8) var(--space-7);
}
@media (min-width: 768px) {
  .hero { padding-block: var(--space-9) var(--space-8); }
}

.hero h1 { max-width: 22ch; margin-bottom: var(--space-5); }
.hero .lead { font-size: var(--text-lg); margin-bottom: var(--space-6); }
@media (min-width: 768px) { .hero .lead { font-size: var(--text-xl); } }

.hero-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* ----- Pillar grid (4-panel) ---------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(4, 1fr); } }

.pillar {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.pillar-icon {
  width: 32px; height: 32px;
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}
.pillar h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.pillar p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ----- Cards & grids ------------------------------------------------- */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  height: 100%;
}
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.card p { font-size: var(--text-sm); color: var(--color-text-muted); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary) !important;
  text-decoration: none !important;
}
.card-link:hover { color: var(--color-primary-hover) !important; }
.card-link::after { content: "→"; transition: transform 0.12s; }
.card-link:hover::after { transform: translateX(2px); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ----- Steps --------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { position: relative; padding-top: var(--space-6); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent-text);
  letter-spacing: -0.02em;
}
.step h3 { margin-bottom: var(--space-2); font-size: var(--text-lg); }
.step p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ----- Compliance posture grid -------------------------------------- */

.posture-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.posture-table th,
.posture-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.posture-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-surface-alt);
}
.posture-table tr:last-child td { border-bottom: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}
.badge::before {
  font-weight: 700;
  font-size: 0.95em;
  line-height: 1;
}
.badge-success { background: #dcfce7; color: var(--color-success); }
.badge-success::before { content: "\2713\00a0"; }     /* ✓ */
.badge-progress { background: #fef3c7; color: var(--color-warning); }
.badge-progress::before { content: "\26A0\00a0"; }    /* ⚠ */
.badge-roadmap { background: #dbeafe; color: var(--color-info); }
.badge-roadmap::before { content: "\29D6\00a0"; }     /* ⧖ hourglass */
.badge-neutral {
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
}
.badge-neutral::before { content: "\2014\00a0"; }     /* — em dash */

/* ----- Industry cards ----------------------------------------------- */

.industry {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  height: 100%;
}
.industry h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.industry .industry-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}
.industry ul {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.industry li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
}
.industry li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-accent-text);
}

/* ----- Pricing cards ------------------------------------------------- */

.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: stretch;
}
@media (min-width: 768px) { .pricing { grid-template-columns: repeat(3, 1fr); } }

.tier {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}
.tier-featured {
  border-color: var(--color-border);
  border-top: 4px solid var(--color-accent);
  box-shadow: var(--shadow);
  position: relative;
}
.tier-featured::before {
  content: "Recommended for first procurement";
  position: absolute;
  top: -12px;
  left: var(--space-5);
  background: var(--color-primary);
  color: var(--color-text-inverted);
  padding: 2px var(--space-3);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
}
.tier h3 { font-size: var(--text-xl); }
.tier-price {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-block: var(--space-3) var(--space-2);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.tier-price small {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.tier-desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}
.tier-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex: 1;
}
.tier-features li {
  font-size: var(--text-sm);
  padding-left: var(--space-5);
  position: relative;
  color: var(--color-text);
}
.tier-features li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* ----- Leadership card ---------------------------------------------- */

.leader {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
@media (min-width: 640px) {
  .leader { grid-template-columns: 160px 1fr; gap: var(--space-6); }
}
.leader-photo {
  width: 160px; height: 160px;
  border-radius: var(--radius);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  display: grid; place-items: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
}
.leader-name { font-size: var(--text-2xl); }
.leader-title {
  color: var(--color-accent-text);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}
.leader-links {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ----- CTA banner ---------------------------------------------------- */

.cta-banner {
  text-align: center;
  padding: var(--space-7);
  background: var(--color-surface-deep);
  color: var(--color-text-on-deep);
  border-radius: var(--radius-lg);
}
.cta-banner h2 { color: var(--color-text-inverted); margin-bottom: var(--space-3); }
.cta-banner p { margin-inline: auto; margin-bottom: var(--space-5); }
.cta-banner .btn-primary { background: var(--color-accent); border-color: var(--color-accent-text); }
.cta-banner .btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.cta-banner .btn-secondary {
  background: transparent;
  color: var(--color-text-inverted);
  border-color: var(--color-text-on-deep);
}
.cta-banner .btn-secondary:hover { background: rgb(255 255 255 / 0.08); border-color: var(--color-text-inverted); }

/* ----- Citation strip ----------------------------------------------- */

.citation-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-5) 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-items: center;
}
.citation-strip span { font-weight: 600; }
.citation-strip strong { color: var(--color-text); font-weight: 600; }

/* ----- Footer -------------------------------------------------------- */

.site-footer {
  background: var(--color-surface-deep);
  color: var(--color-text-on-deep);
  padding-block: var(--space-8) var(--space-6);
  margin-top: var(--space-9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-grid h4 {
  color: var(--color-text-inverted);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.footer-grid ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-grid li { font-size: var(--text-sm); }
.footer-grid a {
  text-decoration: none;
  color: var(--color-text-on-deep);
  transition: color 0.12s;
}
.footer-grid a:hover { color: var(--color-text-inverted); text-decoration: underline; }

.footer-grid address {
  font-style: normal;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-on-deep);
}

.footer-baseline {
  border-top: 1px solid #1e293b;
  padding-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-on-deep);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
}

/* ----- Trust page specific ------------------------------------------ */

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

.trust-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.trust-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

/* ----- Architecture diagram ----------------------------------------- */

.diagram {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  overflow-x: auto;
  white-space: pre;
}

/* ----- Form inputs --------------------------------------------------- */

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field textarea,
.form-field select {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid #6b7280;     /* 4.62:1 vs surface — meets WCAG 1.4.11 */
  border-radius: var(--radius);
  transition: border-color 0.12s, box-shadow 0.12s;
  min-height: 44px;              /* WCAG 2.5.5 touch target */
}
.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px rgb(2 132 199 / 0.25);
}
.form-field .form-help {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.form-field .form-error {
  font-size: var(--text-sm);
  color: #b91c1c;                /* 5.2:1 vs surface — error red */
}

/* ----- Utilities ---------------------------------------------------- */

.muted { color: var(--color-text-muted); }
.center { text-align: center; }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

/* Visually hidden but accessible to screen readers */
.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;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .nav-mobile, .cta-banner, .btn { display: none !important; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}

/* ----- Dark mode ---------------------------------------------------- */
/* Activates only for visitors whose OS is in dark mode. Light mode
   remains the default to match procurement-audience reading habits.
   Maintains WCAG 2.2 AA contrast ratios. Honours the founder's
   original dark-themed brand identity for those who prefer it. */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:               #0a1628;
    --color-surface:          #0f1f36;
    --color-surface-alt:      #142745;
    --color-surface-deep:     #050d1a;
    --color-text:             #e2e8f0;
    --color-text-muted:       #94a3b8;
    --color-text-inverted:    #f8fafc;
    --color-text-on-deep:     #cbd5e1;
    --color-primary:          #38bdf8;
    --color-primary-hover:    #7dd3fc;
    --color-accent:           #f0b429;
    --color-accent-hover:     #fbbf24;
    --color-accent-text:      #f0b429;
    --color-border:           #1e2d4a;
    --color-border-strong:    #2d4068;
    --color-success:          #4ade80;
    --color-warning:          #fbbf24;
    --color-info:             #60a5fa;
    --color-focus:            #f0b429;
  }
  .badge-success { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
  .badge-progress { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
  .badge-roadmap { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
  .nav-brand-mark { filter: brightness(1.1); }
  .btn-primary {
    background: var(--color-accent);
    color: #1a0f00;
    border-color: var(--color-accent);
  }
  .btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
  .posture-table th { background: var(--color-surface-deep); }
  .diagram { background: var(--color-surface-deep); }
}
