/* EastCoast homepage. Colours, type and spacing follow brand/eastcoast/BRAND_GUIDE.md and tokens.json. */

@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("/fonts/Montserrat-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); }

:root {
  --navy-900: #14284B;
  --navy-700: #34507E;
  --teal-500: #17A398;
  --teal-700: #0F7F76;
  --grey-300: #C9D3E0;
  --grey-200: #D5DBE5;
  --surface: #FFFFFF;
  --surface-alt: #F4F6FA;
  --ink: #14284B;
  --ink-muted: #5B6B85;
  --ink-faint: #6B778C;
  --on-navy-muted: #A9B8D0;
  --display: "Montserrat", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-700); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; color: var(--navy-900); }
h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.08; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; max-width: 22ch; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--navy-900); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy-900); color: #fff; padding: 8px 12px; border-radius: 4px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--teal-700); outline-offset: 3px; border-radius: 4px; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--grey-200); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { width: 140px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--navy-900); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 8px;
  background: var(--navy-900); color: #fff; border: 1px solid var(--navy-900);
  font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: #0E1E3A; border-color: #0E1E3A; }
.btn-small { height: 38px; padding: 0 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--grey-300); }
.btn-ghost:hover { background: var(--surface-alt); border-color: var(--grey-300); }
.btn-light { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-light:hover { background: var(--surface-alt); border-color: var(--surface-alt); }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.lede { margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--ink-muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.meta { margin-top: 28px; font-size: 14px; color: var(--ink-faint); max-width: 36em; }

.hero-visual { margin: 0; position: relative; }
.slide {
  position: relative; aspect-ratio: 16 / 10;
  background: #fff; border: 1px solid var(--grey-200); border-radius: 16px;
  padding: 26px 28px 22px;
  box-shadow: 0 1px 2px rgba(20, 40, 75, 0.04), 0 24px 48px -16px rgba(20, 40, 75, 0.18);
  display: flex; flex-direction: column;
}
.slide-title { font-family: var(--display); font-weight: 500; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.2; color: var(--navy-900); }
.slide-sub { margin-top: 4px; font-size: 12px; color: var(--ink-muted); }
.chart { margin-top: auto; width: 100%; }
.slide-source { margin-top: 6px; font-size: 10px; color: var(--ink-faint); }
.slide-mark { position: absolute; right: 18px; bottom: 16px; width: 18px; opacity: 0.9; }

.keys { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.keys li { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-alt); border: 1px solid var(--grey-200); border-radius: 8px; padding: 6px 10px 6px 6px; font-size: 13px; color: var(--ink-muted); }
.keys span { margin-left: 6px; }
kbd { font: 500 12px/1 var(--sans); color: var(--navy-900); background: #fff; border: 1px solid var(--grey-300); border-bottom-width: 2px; border-radius: 5px; padding: 4px 6px; min-width: 24px; text-align: center; }

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--grey-200); scroll-margin-top: 48px; }
.section-alt { background: var(--surface-alt); border-top: 0; }
.grid { display: grid; gap: 24px; margin-top: 48px; }
.features { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--grey-200); border-radius: 16px; padding: 28px; }
.card p, .audiences p { margin-top: 10px; color: var(--ink-muted); font-size: 16px; line-height: 1.6; }
.audiences { grid-template-columns: repeat(3, 1fr); gap: 40px; }
.audiences article { border-top: 2px solid var(--navy-900); padding-top: 20px; }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 20px 0; border-top: 1px solid var(--grey-200); color: var(--ink-muted); font-size: 16px; }
.facts li:first-child { border-top: 0; padding-top: 4px; }
.facts strong { display: block; color: var(--navy-900); font-weight: 600; margin-bottom: 4px; }

/* Closing band */
.band { background: var(--navy-900); color: #fff; padding: 72px 0; }
.band h2 { color: #fff; }
.band p { margin-top: 12px; color: var(--on-navy-muted); max-width: 36em; }
.band-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }

/* Footer */
.site-footer { padding: 32px 0 40px; font-size: 14px; color: var(--ink-faint); }
.footer-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-row img { width: 28px; }
.footer-row .fine { margin-left: auto; font-size: 12px; }

/* Not found */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 96px 0; }
.notfound p { color: var(--ink-muted); }

@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .features, .audiences { grid-template-columns: 1fr 1fr; }
  .band-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .header-row { height: 64px; }
  .brand img { width: 120px; }
  .section { padding: 72px 0; }
  .features, .audiences { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .slide { padding: 18px 18px 16px; }
  .footer-row .fine { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
