:root {
  /* Locked brand palette */
  --blue: #2583FF;          /* Front-Desk Blue: actions, focus, icons */
  --navy: #021D47;          /* Night-Shift Navy: all text, dark grounds */
  --coral: #FF6F52;         /* Welcome Coral: warm accent, 2nd CTA, always navy text */
  --white: #FFFFFF;         /* Lobby White */
  --off-white: #F7F9FC;     /* Morning Mist: alternating sections, app canvas */

  /* Derived tints */
  --navy-muted: #46587A;    /* Ledger Slate: secondary text */
  --line: #E2E8F1;          /* Hairline */
  --line-strong: #CBD5E3;   /* Hairline Strong */
  --field-border: #93A2BA;
  --blue-tint: #EAF3FF;     /* Blue Wash */
  --blue-soft: #A9CDFF;
  --coral-tint: #FFF1ED;    /* Coral Wash */
  --on-navy-muted: #C3CEE0; /* Moonlit Grey: muted text on navy */

  /* Software-only status tints (not brand colours; small UI states only) */
  --ok: #157A4A;  --ok-tint: #E7F6EE;
  --warn: #8A5A00; --warn-tint: #FFF6D6;
  --error: #B4321A; --error-tint: var(--coral-tint);

  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-sm: 12px;   /* fields */
  --radius-tile: 14px; /* icon tiles */
  --radius: 18px;      /* cards */
  --radius-lg: 24px;   /* panels, media */
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(2, 29, 71, .05), 0 8px 24px rgba(2, 29, 71, .06);
  --shadow-lift: 0 2px 4px rgba(2, 29, 71, .06), 0 18px 40px rgba(2, 29, 71, .12);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(48px, 6vw, 80px);
  --hero-gradient:
    radial-gradient(1200px 600px at 100% 100%, rgba(37, 131, 255, .55), transparent 60%),
    linear-gradient(140deg, #021D47 0%, #04306F 45%, #2583FF 130%);
  --cta-gradient: linear-gradient(115deg, var(--blue) 0%, var(--coral) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--navy); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 18px; } }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-weight: 700; font-size: clamp(2rem, 4vw, 3.05rem); text-wrap: balance; }
h3 { font-weight: 600; font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--navy); text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--white); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--off { background: var(--off-white); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--blue); }
.on-dark .eyebrow::before { background: var(--coral); }

.btn { --btn-bg: var(--blue); --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; font: 700 19px/1.2 var(--font);
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid transparent;
  border-radius: var(--radius-pill); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 131, 255, .28); }
.btn--coral { --btn-bg: var(--coral); --btn-fg: var(--navy); }
.btn--coral:hover { box-shadow: 0 10px 24px rgba(255, 111, 82, .3); }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--navy); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--line-strong); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 16px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(24px, 3vw, 32px);
  transition: transform .25s ease, box-shadow .25s ease; }
a.card:hover, .card--interactive:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.icon-tile { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius-tile);
  background: var(--blue-tint); color: var(--blue); }
.icon-tile svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tag { display: inline-flex; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--blue-tint);
  color: var(--navy); font-size: 12px; font-weight: 600; }
.badge { display: inline-flex; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--coral);
  color: var(--navy); font-size: 14px; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--white); border: 1px solid var(--line-strong); font-size: 15px; font-weight: 600; }

.input, select, textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: 400 16px/1.4 var(--font);
  color: var(--navy); background: var(--white); border: 1px solid var(--field-border); border-radius: var(--radius-sm); }
.input:hover, select:hover, textarea:hover { border-color: var(--navy-muted); }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 131, 255, .18); }

.hero-dark { background: var(--hero-gradient); color: var(--white); }
.hero-dark p { color: var(--on-navy-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
