/* ==========================================================================
   "Learn to fly" ad landing page

   Standalone, like the coming-soon splash. Loads tokens.css and this file and
   nothing else, so it stays fast and self-contained for paid traffic. Every
   value below is a token, so the page and the rest of the site share one palette
   even though this page carries none of the site's chrome.

   Two panes: the pitch over a photograph on the left, the form card on the
   right. On a phone they stack, pitch first, form immediately under it, because
   the whole page exists to be filled in.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  color: var(--ink-body);
  background: var(--bg-inverse-2);
}

img { max-width: 100%; height: auto; }
h1, h2, p, ul, legend { margin: 0; }
ul { padding: 0; list-style: none; }

.bp__skip {
  position: absolute;
  left: -9999px;
}
.bp__skip:focus {
  left: var(--space-s);
  top: var(--space-s);
  z-index: 10;
  padding: var(--space-2xs) var(--space-s);
  background: var(--paper);
  color: var(--ink-strong);
  border-radius: var(--radius-s);
}

.bp__grid {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 60rem) {
  /* The form gets a fixed, comfortable measure; the pitch takes the rest. */
  .bp__grid { grid-template-columns: 1fr minmax(30rem, 34rem); }
}

/* --------------------------------------------------------------------------
   Pitch
   -------------------------------------------------------------------------- */
.bp__pitch {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: var(--space-xl) var(--gutter);
  color: var(--ink-invert);
  overflow: hidden;
}

.bp__bg { position: absolute; inset: 0; z-index: -1; }
.bp__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* The scrim. A photograph is not a contrast guarantee, so the text side is held
   dark enough that the measured ratio never depends on the sky behind it. */
.bp__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--navy-900) 74%, transparent) 0%,
    color-mix(in oklab, var(--navy-900) 84%, transparent) 100%);
}
@media (min-width: 60rem) {
  .bp__bg::after {
    background: linear-gradient(100deg,
      color-mix(in oklab, var(--navy-900) 88%, transparent) 0%,
      color-mix(in oklab, var(--navy-900) 72%, transparent) 60%,
      color-mix(in oklab, var(--navy-900) 44%, transparent) 100%);
  }
}

.bp__pitch-inner { max-width: 40rem; }

.bp__mark { margin-bottom: var(--space-l); }
.bp__mark img { width: min(15rem, 62%); filter: brightness(0) invert(1); }

.bp__kicker {
  margin-bottom: var(--space-2xs);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--azure-300);
}

.bp__title {
  margin-bottom: var(--space-s);
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-display);
  color: var(--paper);
  text-wrap: balance;
}

.bp__lede {
  margin-bottom: var(--space-l);
  max-width: 48ch;
  font-size: var(--step-1);
  color: var(--ink-invert-muted);
  text-wrap: pretty;
}

.bp__points { display: grid; gap: var(--space-s); max-width: 46ch; }
.bp__points li {
  position: relative;
  padding-left: var(--space-m);
  color: var(--ink-invert-muted);
  font-size: var(--step--1);
}
.bp__points strong { color: var(--paper); font-weight: 700; }
/* A leading azure chevron, drawn not typed, so the list reads as a set of
   promises rather than a paragraph. */
.bp__points li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--azure-400);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.bp__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-m);
  padding: var(--space-xl) var(--gutter);
  background: var(--bg-page);
}

.bp__card-title {
  margin-bottom: var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--ink-strong);
}

.bp__note {
  margin-bottom: var(--space-m);
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.bp__note + .bp__note { margin-top: calc(var(--space-s) * -1 + var(--space-2xs)); }

.bp__field { margin-bottom: var(--space-s); }

/* Two-up rows on anything but the narrowest phone. */
.bp__duo { display: grid; gap: var(--space-s); }
@media (min-width: 26rem) { .bp__duo { grid-template-columns: 1fr 1fr; } }

.bp__label {
  display: block;
  margin-bottom: var(--space-3xs);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-strong);
  padding: 0;
}

.bp__input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink-strong);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-s);
}

.bp__select {
  appearance: none;
  padding-right: 2.25rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
    linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) calc(50% + 2px), calc(100% - 0.75rem) calc(50% + 2px);
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
  background-repeat: no-repeat;
}

.bp__input.is-invalid { border-color: var(--state-alert); border-width: 2px; }

.bp__input:focus-visible,
.bp__submit:focus-visible,
.bp__check input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus-outer);
  outline-offset: 2px;
}

/* Interest checkboxes. A bordered group so it reads as one question, in two
   columns so four options do not run down the page. */
.bp__fieldset {
  margin: 0 0 var(--space-s);
  padding: var(--space-s);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
}
.bp__fieldset.is-invalid { border-color: var(--state-alert); }

.bp__checks {
  display: grid;
  gap: var(--space-2xs);
  margin-top: var(--space-2xs);
}
@media (min-width: 26rem) { .bp__checks { grid-template-columns: 1fr 1fr; } }

.bp__check {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--step--1);
  cursor: pointer;
}
.bp__check input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: 0 0 auto; }

.bp__submit {
  width: 100%;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.bp__submit:hover { background: var(--accent-hover); }

.bp__fine {
  margin-top: var(--space-s);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.bp__err {
  margin-top: var(--space-3xs);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--state-alert);
}

.bp__alert {
  margin-bottom: var(--space-s);
  padding: var(--space-xs);
  border-left: 3px solid var(--state-alert);
  border-radius: var(--radius-xs);
  background: color-mix(in oklab, var(--state-alert) 12%, transparent);
  color: var(--ink-strong);
  font-weight: 600;
}

.bp__ref { font-family: var(--font-mono); font-size: 0.95em; letter-spacing: 0.04em; }

.bp__foot {
  margin-top: var(--space-m);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

/* Honeypot: off-screen, not display:none, and out of the clipboard. */
.bp__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  user-select: none;
}

/* --------------------------------------------------------------------------
   High contrast: drop the photograph, since a scrim over an image is only ever
   an average, and pin every light-on-dark value to solid ink.
   -------------------------------------------------------------------------- */
html[data-contrast="high"] .bp__bg { display: none; }
html[data-contrast="high"] .bp__pitch { background: var(--bg-page); color: var(--ink-body); }
html[data-contrast="high"] :is(.bp__title, .bp__points strong) { color: var(--ink-strong); }
html[data-contrast="high"] :is(.bp__lede, .bp__points li) { color: var(--ink-body); }
html[data-contrast="high"] .bp__kicker { color: var(--accent); }
html[data-contrast="high"] .bp__points li::before { color: var(--accent); }
html[data-contrast="high"] .bp__mark img { filter: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
