/* OcuGrid website. Colours and type follow brand/README.md (tokens in brand/tokens.css). */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-opsz.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #12304D;
  --mid: #1E4A70;
  --steel: #2F6690;
  --gold: #F6B93B;
  --ink: #0B1622;
  --ink-raised: #13212F;
  --sky: #AFCDE7;
  --mist: #E3EEF7;
  --paper: #F7F9FB;
  --white: #FFFFFF;
  --body: #33475B;
  --muted: #5B6B7C;
  --muted-dark: #9AABBC;
  --rule: #DCE3EA;
  --rule-dark: #22364A;
  --control-border: #7A8B9C;
  --danger: #C62828;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; border-radius: 2px; }
.dark :focus-visible, .band-navy :focus-visible, .hero-figure :focus-visible { outline-color: var(--gold); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

.eyebrow { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow-dot { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--gold); }
h1, h2, h3 { margin: 0; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 62px); line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink); }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--body); max-width: 34em; }
.body { font-size: 15px; line-height: 24px; color: var(--body); }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 4px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--mid); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #F8C764; color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; text-decoration: none; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.site-header .logo img { height: 32px; width: auto; }
.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--steel); }
@media (max-width: 860px) { .site-nav { display: none; } }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.facts { margin: 4px 0 0; border-top: 1px solid var(--rule); }
.facts div { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 20px; }
.facts dt { width: 96px; flex-shrink: 0; color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; }

.hero-figure { flex: 1.35 1 560px; min-width: 0; margin: 0; background: var(--ink); color: #E6EDF3; border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.fig-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; font-size: 13px; line-height: 18px; color: var(--muted-dark); }
.fig-head strong { color: var(--white); margin-right: 10px; }
.fig-head .mono { font-family: var(--mono); }
.maps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.map { min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 600px) { .maps { gap: 10px; } .map-label { font-size: 11px; line-height: 15px; } }
.map img { width: 100%; aspect-ratio: 1; }
.map-label { font-size: 13px; line-height: 18px; color: var(--muted-dark); }
.map-label b { display: block; color: var(--white); font-weight: 600; }
.map-label .gold { color: var(--gold); }
.readout { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--rule-dark); padding-top: 16px; margin: 0; }
.readout div { flex: 1 1 150px; display: flex; flex-direction: column; gap: 2px; }
.readout dt { font-size: 12px; line-height: 16px; color: var(--muted-dark); }
.readout dd { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.hero-figure figcaption { font-size: 12px; line-height: 16px; color: var(--muted-dark); }

/* Devices strip */
.devices { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.devices .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; padding-top: 28px; padding-bottom: 28px; }
.device-list { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; font-size: 17px; font-weight: 600; color: var(--navy); }
.device-next { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-white { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 56px; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.section-head .title { display: flex; flex-direction: column; gap: 12px; max-width: 660px; }
.section-head .aside { max-width: 420px; font-size: 16px; line-height: 26px; color: var(--body); }

.steps { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 40px; padding: 0; list-style: none; }
.steps li { flex: 1 1 230px; display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--navy); padding-top: 20px; }
.step-n { font-size: 14px; font-weight: 600; color: var(--steel); font-variant-numeric: tabular-nums; }

.callout { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 32px; }
.callout img { width: 220px; aspect-ratio: 1; image-rendering: pixelated; }
.callout > div { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.callout h3 { font-size: 22px; line-height: 30px; color: var(--navy); }
.callout p { font-size: 16px; line-height: 26px; color: var(--body); }

.audiences { display: flex; flex-wrap: wrap; gap: 40px; }
.audiences > div { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }

.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > .title { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.principles { flex: 1.4 1 520px; min-width: 0; margin: 0; border-top: 1px solid var(--rule); }
.principles div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.principles dt { flex: 0 0 220px; font-weight: 600; }
.principles dd { flex: 1 1 260px; margin: 0; font-size: 15px; color: var(--body); }

/* Pilot band + form */
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h2 { color: var(--white); }
.band-navy .lead { color: var(--sky); }
.pilot { display: flex; flex-wrap: wrap; gap: 48px 64px; padding-top: 88px; padding-bottom: 96px; }
.pilot-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pilot-copy ul { margin: 8px 0 0; padding-left: 20px; color: var(--sky); font-size: 15px; line-height: 26px; }
.pilot-form { flex: 1.2 1 480px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field-row .field { flex: 1 1 220px; }
.field label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--white); border: 1px solid var(--control-border); border-radius: 4px; padding: 11px 12px; min-height: 44px; width: 100%; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--steel); outline-offset: 1px; border-color: var(--steel); }
.form-note { font-size: 13px; line-height: 20px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pilot-form .btn { align-self: flex-start; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--rule); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: center; padding-top: 40px; padding-bottom: 48px; }
.site-footer img { height: 28px; width: auto; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.footer-nav a { color: var(--body); text-decoration: none; }
.footer-nav a:hover { color: var(--navy); }
.legal { flex: 1 1 100%; font-size: 13px; line-height: 20px; color: var(--muted); }

/* Plain pages (privacy, thanks, 404) */
.page { padding-top: 72px; padding-bottom: 96px; }
.prose { max-width: 680px; display: flex; flex-direction: column; gap: 18px; }
.prose h1 { font-size: clamp(34px, 4vw, 46px); }
.prose h2 { font-size: 22px; line-height: 30px; margin-top: 18px; color: var(--navy); }
.prose p, .prose li { font-size: 16px; line-height: 26px; color: var(--body); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose .meta { font-size: 14px; color: var(--muted); }

@media (max-width: 600px) {
  .hero { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .hero-figure { padding: 16px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .callout, .pilot-form { padding: 22px; }
  .callout img { width: 100%; max-width: 280px; }
}
