/* JetBlue Virtual — home page (ROADMAP P7-02).
   Rebuilt from the Claude Design export in docs/design/home/ (Direction A, "Framed daylight").
   Colours, gradients, radii and the clamp() type scale are carried from the export; the export's
   inline styles became classes. Light only, like the export. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;                 /* variable weight axis — one file covers 400–800 */
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-wght.153fc85b70.woff2') format('woff2');
}

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

/* Make the `hidden` attribute authoritative: the open/closed blocks and the email card's states
   all rely on it, and an author `display` rule would otherwise beat the UA's display:none. */
[hidden] { display: none !important; }

:root {
  --navy: #05204F;
  --blue-900: #0B3F9E;
  --blue-600: #0B5FE0;
  --ink: #10233F;
  --ink-2: #10335F;
  --muted: #5C7191;
  --line: #E6EDF7;
  --bg: #F5F8FC;
  --teal: #0B7A6B;
  --teal-dot: #0E9F8A;
  --teal-bg: #E4F7F3;
  --amber: #8A5A07;
  --amber-dot: #E08A00;
  --gutter: clamp(20px, 5vw, 56px);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, p { margin: 0; }

.eyebrow {
  font: 700 12px/1 var(--font);
  letter-spacing: .12em;
  color: var(--blue-600);
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: block; flex: none; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(100deg, #05204F, #0B3F9E);
  box-shadow: 0 8px 24px -16px rgba(5, 32, 79, .8);
}
.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo img { width: clamp(112px, 12vw, 136px); height: auto; }
.site-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 2vw, 22px);
}
/* The text links drop out (wrap into the clipped second line) before the Sign in button would. */
.site-nav-links {
  flex: 0 1 auto;
  min-width: 0;
  height: 16px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 22px;
}
.site-nav-links a { white-space: nowrap; color: #CFE4FA; font: 600 14px/16px var(--font); }
.site-nav-links a:hover { color: #fff; }
.btn-signin {
  flex: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--blue-900);
  border-radius: 11px;
  padding: 10px 15px;
  font: 700 14px/1 var(--font);
}
.btn-signin:hover { color: var(--navy); background: #EAF3FF; }

/* --- Hero --------------------------------------------------------------- */
.hero { padding: clamp(10px, 1.6vw, 18px); }
.hero-frame {
  position: relative;
  min-height: clamp(640px, 88svh, 820px);
  border-radius: clamp(20px, 2.6vw, 32px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #DCEBFA;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 34%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(245, 248, 252, .95) 0%,
    rgba(245, 248, 252, .85) 30%,
    rgba(245, 248, 252, .4) 44%,
    rgba(245, 248, 252, 0) 58%,
    rgba(5, 32, 79, 0) 72%,
    rgba(5, 32, 79, .4) 100%);
}
.hero-copy {
  position: relative;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 48px) 0;
  max-width: 820px;
}
.hero-copy h1 {
  margin-top: 14px;
  font: 800 clamp(30px, 4.4vw, 56px)/1.06 var(--font);
  letter-spacing: -.025em;
  color: var(--navy);
  max-width: 20ch;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 14px;
  font: 600 clamp(15px, 1.7vw, 19px)/1.5 var(--font);
  color: var(--ink-2);
  max-width: 42ch;
  text-wrap: pretty;
}
.hero-cta {
  position: relative;
  margin-top: auto;
  padding: 24px clamp(12px, 3vw, 32px) clamp(12px, 3vw, 32px);
}
.join-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  padding: clamp(16px, 2.4vw, 24px);
  max-width: 540px;
  box-shadow: 0 24px 50px -24px rgba(5, 32, 79, .55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 12px/1 var(--font);
  letter-spacing: .08em;
}
.status-open { color: var(--teal); }
.status-open .dot { background: var(--teal-dot); }
.status-closed { color: var(--amber); }
.status-closed .dot { background: var(--amber-dot); }
.join-title { font: 800 19px/1.3 var(--font); color: var(--navy); margin-top: 10px; }
.join-sub { font: 500 14px/1.5 var(--font); color: var(--muted); margin-top: 5px; }
.join-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 16px;
}
.btn-primary {
  flex: 1 0 auto;
  text-align: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(150deg, #05204F, #0B5FE0);
  color: #fff;
  border-radius: 12px;
  padding: 16px 26px;
  font: 700 15px/1 var(--font);
  box-shadow: 0 12px 24px -12px rgba(11, 63, 158, .8);
}
.btn-primary:hover { color: #fff; filter: brightness(1.12); }
.btn-primary:disabled { cursor: progress; filter: saturate(.6); }
.link-signin { font: 700 14px/1 var(--font); color: var(--blue-900); }
.link-signin-below { display: inline-block; margin-top: 14px; }

.notify-form { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.notify-form input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  outline: 0;
  background: #F1F6FD;
  border: 1px solid #D9E5F4;
  color: var(--ink);
  border-radius: 12px;
  padding: 15px 16px;
  font: 500 16px/1 var(--font);          /* 16px: iOS zooms into anything smaller */
}
.notify-form input[type="email"]:focus { border-color: var(--blue-600); background: #fff; }
.notify-form input::placeholder { color: var(--muted); }
.notify-form .btn-primary { padding: 15px 22px; box-shadow: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notify-error { margin-top: 8px; font: 600 13px/1.4 var(--font); color: #A4552A; }
.notify-success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  background: var(--teal-bg);
  color: #07584C;
  border-radius: 12px;
  padding: 12px 14px;
  font: 600 14px/1.45 var(--font);
}
.notify-success svg { flex: none; color: var(--teal); }

/* --- What's different ---------------------------------------------------- */
.why {
  padding: clamp(40px, 7vw, 80px) var(--gutter) 0;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.why-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 18px; }
.feature {
  background: linear-gradient(160deg, #FFFFFF, #EEF5FF);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 14px 34px -22px rgba(10, 42, 99, .55);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.feature-kicker { display: flex; align-items: center; gap: 12px; }
.feature-icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
}
.icon-debrief { background: linear-gradient(150deg, #0B5FE0, #37A9FF); }
.icon-fleet { background: linear-gradient(150deg, #05204F, #0B5FE0); }
.feature h2 {
  margin-top: 16px;
  font: 800 clamp(24px, 2.8vw, 32px)/1.15 var(--font);
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.feature-text { margin-top: 10px; font: 500 15px/1.6 var(--font); color: var(--muted); max-width: 46ch; }

/* The debrief card. Tones are the portal's band tones (web/lib/palette.ts):
   Excellent → teal, Good → blue, Fair → amber, Needs work → terracotta. */
.debrief {
  margin-top: auto;
  background: linear-gradient(150deg, #EAF3FF, #D6E6FF);
  border-radius: 20px;
  padding: clamp(12px, 2vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.debrief-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 2px 4px;
  font: 700 12.5px/1.35 var(--font);
  color: var(--blue-900);
}
.debrief-overall { font: 800 13px/1.35 var(--font); color: var(--navy); }
.dcard {
  --tone: #0B3F9E;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--tone-bar, var(--tone));
  border-radius: 16px;
  padding: 14px 16px;
}
.dcard[data-tone="ok"] { --tone: #0B7A6B; --tone-bar: #0E9F8A; }
.dcard[data-tone="good"] { --tone: #0B3F9E; --tone-bar: #0B5FE0; }
.dcard[data-tone="warn"] { --tone: #8A5A07; --tone-bar: #E08A00; }
.dcard[data-tone="alert"] { --tone: #A4552A; --tone-bar: #C8693A; }
.dcard-head { display: flex; align-items: center; gap: 12px; }
.dcard-head > div:first-child { flex: 1; min-width: 0; }
.dcard-label { font: 700 11px/1 var(--font); letter-spacing: .1em; color: var(--muted); }
.dcard-band { font: 800 17px/1.1 var(--font); color: var(--tone); margin-top: 5px; }
.dcard-score { font: 700 14px/1 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.dcard-facts { font: 500 13px/1.5 var(--font); color: var(--muted); margin-top: 9px; }
.debrief-source { font: 600 11.5px/1 var(--font); color: var(--blue-900); text-align: right; }

/* The tail card. */
.tail { margin-top: auto; display: flex; flex-direction: column; }
.tail-photo { position: relative; border-radius: 20px; overflow: hidden; height: clamp(150px, 22vw, 200px); }
.tail-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
}
.tail-card {
  position: relative;
  margin: -44px clamp(10px, 2vw, 16px) 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 18px 36px -18px rgba(5, 32, 79, .6);
}
.tail-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 10px; }
.tail-head > div { min-width: 0; }
.tail-name { font: 800 16px/1.1 var(--font); color: var(--navy); }
.tail-meta { font: 600 12px/1.35 var(--font); color: var(--muted); margin-top: 4px; }
.pill {
  border-radius: 999px;
  padding: 6px 10px;
  font: 700 11.5px/1 var(--font);
  white-space: nowrap;
}
.pill[data-tone="ok"] { background: var(--teal-bg); color: var(--teal); }
.pill[data-tone="warn"] { background: #FDF2DF; color: var(--amber); }
.tail-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 12px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font: 600 12.5px/1.35 var(--font);
}
.tail-rows > div { display: flex; justify-content: space-between; gap: 10px; }
.tail-rows dt { color: var(--muted); }
.tail-rows dd { margin: 0; text-align: right; }

.why-small { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.point {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  box-shadow: 0 10px 26px -20px rgba(10, 42, 99, .5);
}
.point-icon { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.icon-sky { background: linear-gradient(150deg, #E3F4FF, #CDEBFF); color: #0A6BAD; }
.icon-blue { background: linear-gradient(150deg, #E8F0FE, #D6E6FF); color: var(--blue-600); }
.point-title { font: 800 16px/1.3 var(--font); }
.point-text { font: 500 14px/1.55 var(--font); color: var(--muted); margin-top: 4px; }

/* --- Live fleet numbers ---------------------------------------------------- */
.fleet {
  padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(40px, 7vw, 72px);
  max-width: 1240px;
  margin: 0 auto;
  scroll-margin-top: 80px;
}
.fleet-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #E8F0FE;
  color: var(--blue-900);
  border-radius: 999px;
  padding: 7px 12px;
  font: 700 11.5px/1 var(--font);
  letter-spacing: .08em;
}
.chip .dot { width: 7px; height: 7px; background: var(--blue-600); }
.fleet-updated { font: 500 13px/1.3 var(--font); color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px; margin-top: 16px; }
.stats-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { border-radius: 20px; padding: 22px; color: #fff; min-width: 0; }
.stat-1 { background: linear-gradient(150deg, #05204F, #0B3F9E); }
.stat-2 { background: linear-gradient(150deg, #0B3F9E, #0B5FE0); }
.stat-3 { background: linear-gradient(150deg, #0B5FE0, #1575E6); }
.stat-4 { background: linear-gradient(150deg, #1575E6, #1B84EC); }
.stat-value {
  font: 800 clamp(32px, 4.6vw, 52px)/1 var(--font);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label { font: 600 14px/1.4 var(--font); margin-top: 10px; }
.stat-1 .stat-label { color: #CFE4FA; }
.stat-2 .stat-label { color: #DDEBFF; }
.stat-3 .stat-label { color: #EAF3FF; }
.stat-4 .stat-label { color: #fff; }

/* --- Gallery ------------------------------------------------------------------ */
.gallery {
  padding: 0 var(--gutter) clamp(48px, 8vw, 96px);
  max-width: 1240px;
  margin: 0 auto;
}
.gallery figure {
  margin: 0;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  /* Not aspect-ratio + min-height, as in the export: the min-height transfers through the ratio
     into a 560 px minimum WIDTH and overflows a phone. A clamped height gives the same shape. */
  height: clamp(240px, 38vw, 484px);
  box-shadow: 0 18px 40px -24px rgba(10, 42, 99, .6);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(5, 32, 79, .8);
  color: #fff;
  border-radius: 999px;
  padding: 8px 13px;
  font: 700 12px/1 var(--font);
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(115deg, #05204F, #0B3F9E 70%, #1073E8);
  color: #fff;
  padding: clamp(40px, 6vw, 64px) var(--gutter) 28px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-title { font: 800 clamp(22px, 3vw, 30px)/1.2 var(--font); }
.footer-sub { font: 500 14px/1.5 var(--font); color: #CFE4FA; margin-top: 6px; }
.footer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-light {
  background: #fff;
  color: var(--blue-900);
  border-radius: 12px;
  padding: 14px 22px;
  font: 700 14px/1 var(--font);
}
.btn-light:hover { color: var(--navy); background: #EAF3FF; }
.btn-ghost {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
  border-radius: 12px;
  padding: 13px 22px;
  font: 700 14px/1 var(--font);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .2); }
.footer-legal {
  max-width: 1240px;
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font: 500 12px/1.6 var(--font);
  color: #BFD7F0;
}

#notify { scroll-margin-top: 90px; }
