/* firstFDE landing page: brand tokens from firstFDE Brand Assets v1.
   Small-text colours use the AA-safe shades the app uses (muted #5f6d89,
   eyebrow #1E6DB4); the brand originals stay for graphics. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); }

:root {
  --navy: #0b1e63;
  --royal: #1652a8;
  --royal-hover: #123f84;
  --blue: #2e86c8;
  --blue-300: #8ab6e0;
  --ink: #222f4b;
  --bg: #f6f8fc;
  --card: #ffffff;
  --line: #e7ecf4;
  --line-strong: #cfdaea;
  --muted: #5f6d89;
  --eyebrow: #1e6db4;
  --dark: #0f1b33;
  --dark-2: #152443;
  --on-dark: #9fb0cc;
  --focus-ring: rgba(46, 134, 200, 0.38);
  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-brand: 0 10px 26px rgba(22, 82, 168, 0.24);
  --page-max: 1080px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--royal); }
a:hover { color: var(--blue); }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
  border-radius: 6px;
}

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 56px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--royal);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}
.skip-link:focus { top: 8px; }

/* Logo: one node feeding three bars, plus the wordmark. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.logo svg { width: 28px; height: 28px; flex: none; }
.logo span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo .b1 { fill: var(--blue); }
.logo .b2 { fill: var(--royal); }
.logo .b3 { fill: var(--navy); }
.on-dark .logo .b2 { fill: var(--blue-300); }
.on-dark .logo .b3 { fill: #fff; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms cubic-bezier(.4,0,.2,1), border-color 180ms cubic-bezier(.4,0,.2,1),
    box-shadow 180ms cubic-bezier(.4,0,.2,1), transform 120ms cubic-bezier(.4,0,.2,1);
}
.button:active { transform: scale(0.98); }
.button-primary { background: var(--royal); color: #fff; }
.button-primary:hover { background: var(--royal-hover); color: #fff; box-shadow: var(--shadow-brand); }
.button-secondary { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.button-secondary:hover { border-color: var(--ink); color: var(--ink); }
.on-dark .button-secondary { border-color: rgba(255, 255, 255, 0.24); color: #fff; }
.on-dark .button-secondary:hover { border-color: #fff; color: #fff; }

/* Navigation over the dark hero */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(15, 27, 51, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

/* Hero: the dark slab the illustration was made for */
.hero {
  background: var(--dark);
  color: #fff;
  padding: 72px 0 96px;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.on-dark .eyebrow { color: var(--blue-300); }
.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede {
  margin: 20px 0 0;
  max-width: 64ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--on-dark);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-art {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 56px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Sections */
section.block { padding: 96px 0; }
section.block h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section-lede { margin: 12px 0 0; max-width: 64ch; color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.step {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.step-index {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--eyebrow);
}
.step h3 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.step-bar {
  display: block;
  height: 7px;
  margin-bottom: 18px;
  border-radius: 999px;
}
.step:nth-child(1) .step-bar { width: 52%; background: var(--blue); }
.step:nth-child(2) .step-bar { width: 72%; background: var(--royal); }
.step:nth-child(3) .step-bar { width: 92%; background: var(--navy); }

.note {
  margin-top: 40px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
}
.note strong { color: var(--ink); }

.cta {
  background: var(--dark);
  color: #fff;
  padding: 72px 0;
}
.cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}
.cta p { margin: 8px 0 0; color: var(--on-dark); }

footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
footer nav { display: flex; gap: 20px; }
footer .logo { color: var(--ink); }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1b33;
    --card: #152443;
    --ink: #ffffff;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.24);
    --muted: #9fb0cc;
    --eyebrow: #8ab6e0;
    --royal-link: #8ab6e0;
    color-scheme: dark;
  }
  a { color: var(--blue-300); }
  .hero, .cta { background: #0b1530; }
  .logo .b2 { fill: var(--blue-300); }
  .logo .b3 { fill: #fff; }
  .step:nth-child(2) .step-bar { background: var(--blue-300); }
  .step:nth-child(3) .step-bar { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
