/* IBM Plex Sans (SIL Open Font License), self-hosted. Variable font: one file covers weights 400–600. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #17294D;
  --accent: #5FA8E8;
  --accent-hover: #7AB9EE;
  --accent-active: #4A93D6;
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #fff; font-family: var(--font); color: #1a1a1a; }
a { color: var(--ink); }
a:hover { color: var(--accent); }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fff;
}

/* Header */
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(18px, 3vh, 32px) var(--gutter);
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.bar-logo { display: block; flex: none; }
.wordmark { font: 500 20px/1 var(--font); letter-spacing: -0.015em; color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 6vw, 120px);
  align-items: center;
  align-content: center;
  padding: clamp(24px, 5vh, 64px) var(--gutter) clamp(40px, 8vh, 96px);
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.hero-copy { display: flex; flex-direction: column; gap: clamp(18px, 3vh, 32px); max-width: 720px; }
.eyebrow { margin: 0; font: 500 14px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
h1 {
  margin: 0;
  font: 500 clamp(34px, 5.6vw, 92px)/1.04 var(--font);
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: pretty;
}
.lede {
  margin: 0;
  font: 400 clamp(16px, 1.3vw, 22px)/1.55 var(--font);
  color: rgba(0, 0, 0, .65);
  max-width: 600px;
  text-wrap: pretty;
}
.hero-mark { display: block; width: clamp(160px, min(30vw, 46vh), 520px); height: auto; justify-self: center; }

/* Signup band */
.band { background: var(--ink); color: #fff; }
.band-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px clamp(32px, 5vw, 96px);
  align-items: center;
  padding: clamp(28px, 5vh, 56px) var(--gutter) 24px;
  max-width: 1600px;
  margin: 0 auto;
}
.band-copy { display: flex; flex-direction: column; gap: 6px; }
.band-title { margin: 0; font: 500 clamp(20px, 2vw, 26px)/1.2 var(--font); letter-spacing: -0.015em; }
.band-sub { margin: 0; font: 400 14px/1.5 var(--font); color: rgba(255, 255, 255, .6); }

.signup { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 560px; margin: 0; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: 400 16px var(--font);
}
.signup input[type="email"]::placeholder { color: rgba(255, 255, 255, .45); }
.signup input[type="email"]:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .1); }
.signup button {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--ink);
  font: 500 16px var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.signup button:hover { background: var(--accent-hover); }
.signup button:active { background: var(--accent-active); }
.signup button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.signup button:disabled { opacity: .7; cursor: progress; }

.signup-done {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(95, 168, 232, .6);
  background: rgba(95, 168, 232, .12);
  font: 400 16px/1.4 var(--font);
}
.signup-done svg { flex: none; }
.signup-email { color: var(--accent); overflow-wrap: anywhere; }
.signup-error { margin: 0; font: 400 14px/1.5 var(--font); color: #FFD3CC; }
.signup-error a { color: #fff; }
.signup [hidden] { display: none; }

.band-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px var(--gutter) max(24px, env(safe-area-inset-bottom));
  max-width: 1600px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font: 400 13px/1.4 var(--font);
  color: rgba(255, 255, 255, .6);
}
.band-foot a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.band-foot a:hover { color: var(--accent); }

/* Spam trap and screen-reader-only text */
.hp, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
