/* Case Waypoint marketing site: the same brand as the portal (navy, gold,
   off-white; Source Serif 4 headings, Inter text).
   Accessibility pass, 22 Oct 2026 (WCAG 2.2 AA): gold text on light
   backgrounds uses --gold-text, the proof band text is readable on navy,
   focus outlines show on every background, and focused items clear the
   sticky header. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --navy: #14213d;
  --navy-soft: #1d2e52;
  --navy-deep: #0f1a30;
  --gold: #f0b93a;
  --gold-deep: #d69a1a;   /* fills and hover states only: 2.4:1 as text */
  --gold-text: #8a6116;   /* gold text on light backgrounds: 5.0:1 or better */
  --paper: #fdfbf6;
  --card: #ffffff;
  --slate: #5c6a78;
  --slate-light: #636e7a; /* was #7d8894 (3.5:1); now 4.5:1 or better */
  --line: #e3e0d3;
  --green: #3f7358;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding keeps a focused or linked-to item clear of the 68px sticky header (WCAG 2.4.11) */
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }

/* Full width, with side margins that grow with the screen. */
.wrap { width: 100%; max-width: 2200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 112px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(15, 26, 48, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 16px; }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy); font: 700 12px/1 var(--serif); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-links a:not(.btn):hover { color: #fff; }
@media (max-width: 860px) { .nav-links a[href^="#"], .nav-links a[href^="/#"] { display: none; } }
@media (max-width: 440px) { .nav-links .signin { display: none; } .brand { font-size: 15px; } }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - 68px); /* the whole first screen, under the menu */
  background: radial-gradient(1100px 520px at 85% 0%, rgba(240, 185, 58, 0.12), transparent 60%),
              linear-gradient(135deg, var(--navy-deep), var(--navy-soft) 55%, #24406e);
  color: #fff;
  padding: 64px 0 88px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(48px, 5vw, 120px); } .hero { padding: 72px 0; } }
.eyebrow { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); }
.hero .eyebrow { color: var(--gold); }
h1 { font-size: clamp(36px, 4.6vw, 84px); line-height: 1.04; }
.lead { margin: 22px 0 0; max-width: 34em; font-size: clamp(17px, 1.25vw, 22px); color: rgba(255, 255, 255, 0.78); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.ticks li::before { content: "✓"; margin-right: 8px; color: var(--gold); font-weight: 700; }

.hero-art { position: relative; padding-bottom: 40px; }
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(5, 10, 22, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #eef0f3; border-bottom: 1px solid #dfe2e7; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d3d7de; }
.browser-bar em { margin-left: 12px; font-style: normal; font-size: 12px; color: var(--slate); }
.phone { border-radius: 34px; padding: 9px; background: #0b1324; box-shadow: 0 24px 60px rgba(5, 10, 22, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone img { border-radius: 26px; }
.phone-hero { position: absolute; right: -6px; bottom: 0; width: 30%; max-width: 320px; }
@media (max-width: 560px) { .phone-hero { width: 40%; right: -4px; } }

/* Proof band */
.band { background: var(--navy); color: rgba(255, 255, 255, 0.78); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.band-grid { display: grid; gap: 14px; padding-top: 26px; padding-bottom: 26px; font-size: 15px; }
/* The global p colour (slate) was overriding the band's light text: 2.9:1 on navy. */
.band-grid p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.band strong { color: var(--gold); font-weight: 700; }
@media (min-width: 860px) { .band-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: #f6f3ea; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; max-width: 22em; }
.section-lead { margin: 16px 0 0; max-width: 40em; font-size: 17px; color: var(--slate); }
h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
p { color: var(--slate); }

.phones { display: grid; gap: 40px; margin-top: 52px; }
@media (min-width: 860px) { .phones { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.phones figure { margin: 0; }
.phones .phone { max-width: clamp(260px, 20vw, 340px); margin: 0 auto; box-shadow: 0 20px 44px rgba(20, 33, 61, 0.22); }
.phones figcaption { max-width: 320px; margin: 26px auto 0; text-align: center; }
.phones figcaption p { margin: 8px 0 0; font-size: 15px; }

.firm-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .firm-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(48px, 5vw, 120px); } }
.browser-flat { box-shadow: 0 24px 56px rgba(20, 33, 61, 0.18), 0 0 0 1px var(--line); }
.features { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.features li { padding-left: 22px; border-left: 3px solid var(--gold); }
.features p { margin: 4px 0 0; font-size: 15px; }

/* Stages */
.stages { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: stage; }
.stages li {
  counter-increment: stage;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 600;
}
.stages li::before {
  content: counter(stage);
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
}
.fork { display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 760px) { .fork { grid-template-columns: 1fr 1fr; } }
.path { padding: 18px; border-radius: 16px; border: 1.5px dashed #d8d2c0; }
.path-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-text); }
.stages-tail { margin-top: 12px; counter-reset: none; }
.stages-tail li { counter-increment: none; }
.stages-tail li::before { content: ""; width: 10px; height: 10px; background: var(--gold); }

/* Steps */
.steps { display: grid; gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 28px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 50%; background: var(--gold); color: var(--navy); font: 700 16px/1 var(--serif); }
.steps p { margin: 8px 0 0; font-size: 15px; }

/* Security */
.secure-grid { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 640px) { .secure-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .secure-grid { grid-template-columns: repeat(3, 1fr); } }
.secure-grid > div { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.secure-grid h3::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 14px; border-radius: 2px; background: var(--gold); }
.secure-grid p { margin: 8px 0 0; font-size: 15px; }
.fine { margin: 28px 0 0; font-size: 14px; }
.fine a { color: var(--navy); font-weight: 600; }

/* Closing call to action */
.cta { background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft)); color: #fff; padding: 80px 0; text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: 20em; }
.cta p { margin: 14px 0 28px; color: rgba(255, 255, 255, 0.75); font-size: 17px; }

/* Footer */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.6); padding: 36px 0; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: #fff; }
.footer p { margin: 0; color: inherit; }
.brand-small { font-size: 15px; }
.brand-small .mark { width: 30px; height: 30px; font-size: 11px; }

/* Text pages (Accessibility): navy title band, then a readable column. */
.doc-head { background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft)); color: #fff; padding: 56px 0 44px; }
.doc-head h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.doc-updated { margin: 12px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.doc { max-width: 42em; padding: 44px 0 88px; }
.doc h2 { font-size: 22px; line-height: 1.25; margin: 40px 0 10px; color: var(--navy); }
.doc p, .doc li { font-size: 16.5px; line-height: 1.65; color: var(--slate); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc p.doc-lead { font-size: 18px; color: var(--navy); }
.doc strong { color: var(--navy); }
.doc a { color: var(--navy); font-weight: 600; }
.footer nav a[aria-current="page"] { color: #fff; }

/* Focus: navy on light sections, gold on navy ones, so the outline is
   always at least 3:1 against what's behind it (WCAG 1.4.11, 2.4.7).
   Gold alone was 1.7:1 on the off-white sections. */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.nav :focus-visible, .hero :focus-visible, .band :focus-visible,
.cta :focus-visible, .footer :focus-visible { outline-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
