/* PIC site. Day: FAA chart paper and ink; night: the cockpit (true black, PFD magenta, cyan and amber).
   Type: PT Sans Narrow for headings and labels, PT Sans for reading, B612 Mono for readouts. */

@font-face { font-family: "PT Sans"; src: url("../fonts/pt-sans-latin-400-normal.2dea6190c1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("../fonts/pt-sans-latin-400-italic.1f275d5225.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("../fonts/pt-sans-latin-700-normal.05ea99a48e.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("../fonts/pt-sans-latin-700-italic.064f8ebfc7.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "PT Sans Narrow"; src: url("../fonts/pt-sans-narrow-latin-400-normal.4b6275c797.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PT Sans Narrow"; src: url("../fonts/pt-sans-narrow-latin-700-normal.c988193131.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url("../fonts/b612mono-400.36316fb226.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #eef2f4;
  --paper-2: #e1e8ec;
  --ink: #14202b;
  --ink-2: #4a5a68;
  --rule: #c3ced6;
  --magenta: #a8127a;
  --cyan: #0b6f80;
  --amber: #f2a900;
  --amber-ink: #6e4a00;
  --amber-wash: #fdf1cf;
  --focus: #0b6f80;
  /* the cockpit band is dark in both themes */
  --cockpit: #000;
  --cockpit-2: #0b141c;
  --cockpit-ink: #dde7ed;
  --cockpit-ink-2: #9db0be;
  --cockpit-magenta: #ff5cdb;
  --cockpit-cyan: #48d6ec;
  --display: "PT Sans Narrow", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --mono: "B612 Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --text: "PT Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --measure: 38rem;
  --wide: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #000;
    --paper-2: #0b141c;
    --ink: #dde7ed;
    --ink-2: #9db0be;
    --rule: #24333f;
    --magenta: #ff5cdb;
    --cyan: #48d6ec;
    --amber-ink: #f2c14e;
    --amber-wash: #1d1606;
    --focus: #48d6ec;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #000;
  --paper-2: #0b141c;
  --ink: #dde7ed;
  --ink-2: #9db0be;
  --rule: #24333f;
  --magenta: #ff5cdb;
  --cyan: #48d6ec;
  --amber-ink: #f2c14e;
  --amber-wash: #1d1606;
  --focus: #48d6ec;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-x: hidden;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.cockpit :focus-visible { outline-color: var(--cockpit-cyan); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.2em; color: var(--ink-2); }
.readout { font-family: var(--mono); font-size: .92em; letter-spacing: 0; white-space: nowrap; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--amber); color: #000; padding: .5rem .75rem; z-index: 10; font-weight: 700; }
.skip:focus { left: .5rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ header */
.site-head { background: var(--cockpit); color: var(--cockpit-ink); border-bottom: 1px solid #1c2a35; }
.site-head .wrap { display: flex; align-items: center; gap: 1rem 1.5rem; min-height: 4rem; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; margin-right: auto; }
.brand svg { width: 2.1rem; height: 2.1rem; }
.brand b { font-family: var(--display); font-size: 1.35rem; letter-spacing: .04em; }
.brand span { color: var(--cockpit-ink-2); font-size: .85rem; }
.site-nav { display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; align-items: center; }
.site-nav a { color: var(--cockpit-ink); text-decoration: none; font-family: var(--display); font-size: .95rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--cockpit-ink-2); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--cockpit-magenta); color: #fff; }
.theme { font: 700 .8rem var(--display); color: var(--cockpit-ink); background: transparent; border: 1px solid #3a4b58; border-radius: 999px; padding: .35rem .8rem; cursor: pointer; }
.theme:hover { border-color: var(--cockpit-ink-2); }
.theme [data-mode] { display: none; }
.theme[data-current="auto"] [data-mode="auto"], .theme[data-current="light"] [data-mode="light"], .theme[data-current="dark"] [data-mode="dark"] { display: inline; }
.no-js .theme { display: none; }

/* ------------------------------------------------------------------ the cockpit band (hero) */
.cockpit { background: var(--cockpit); color: var(--cockpit-ink); position: relative; overflow: hidden; }
.cockpit a:not(.btn) { color: var(--cockpit-cyan); }
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; } }
.hero h1 { color: #fff; max-width: 18ch; }
.hero-new { color: var(--cockpit-ink); margin-top: 1rem; padding-left: .9rem; border-left: 3px solid var(--cockpit-cyan); max-width: 34rem; }
.hero .lede { color: var(--cockpit-ink-2); margin-top: 1.25rem; }
.hero-copy { padding-bottom: clamp(1rem, 4vw, 4.5rem); position: relative; z-index: 1; }
.hits { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55; }
.hits svg { width: 100%; height: 100%; }
.hero-shot { position: relative; z-index: 1; margin-bottom: -1px; }
.hero-shot figcaption { color: var(--cockpit-ink-2); font-size: .85rem; padding: .9rem 0 1.4rem; max-width: 40rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .6rem 1.3rem;
  font: 700 1rem var(--display); text-decoration: none; border-radius: .4rem; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--amber); color: #000; }
.btn-primary:hover { background: #ffc12e; }
.btn-ghost { border-color: #43576a; color: var(--cockpit-ink); }
.btn-ghost:hover { border-color: var(--cockpit-ink); }
.page .btn-ghost { border-color: var(--rule); color: var(--ink); }
.page .btn-ghost:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------ device frames (drawn in CSS) */
.tablet {
  background: #111; border-radius: 1.4rem; padding: clamp(.55rem, 1.4vw, .95rem);
  box-shadow: 0 0 0 1px #2c3843, 0 30px 60px -30px rgba(0, 0, 0, .8);
  position: relative;
}
.tablet::before { /* the front camera on the long edge */
  content: ""; position: absolute; top: calc(clamp(.55rem, 1.4vw, .95rem) / 2 - 3px); left: 50%; width: 6px; height: 6px;
  border-radius: 50%; background: #2b3640; transform: translateX(-50%);
}
.tablet img { border-radius: .45rem; width: 100%; background: #000; }
.panel-frame { background: #111; border-radius: .9rem; padding: .5rem; box-shadow: 0 0 0 1px #2c3843; }
.panel-frame img { border-radius: .4rem; width: 100%; }
:root:not([data-theme="dark"]) .page .tablet { box-shadow: 0 0 0 1px #2c3843, 0 24px 48px -28px rgba(20, 32, 43, .55); }

/* ------------------------------------------------------------------ sections */
.page section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.page section + section { border-top: 1px solid var(--rule); }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-2); margin-top: .9rem; }

/* one flight, start to finish: the magenta line */
.flight { list-style: none; margin: 0; padding: 0; position: relative; }
.flight::before { content: ""; position: absolute; left: .95rem; top: .9rem; bottom: .9rem; width: 4px; background: var(--magenta); border-radius: 2px; }
.leg { position: relative; padding: 0 0 2.6rem 3.4rem; display: grid; gap: .4rem 2.5rem; }
.leg:last-child { padding-bottom: 0; }
@media (min-width: 56rem) { .leg { grid-template-columns: 16rem minmax(0, 1fr); } }
.leg .wpt { position: absolute; left: 0; top: .1rem; width: 2.1rem; height: 2.1rem; }
.leg h3 { font-size: 1.35rem; }
.leg .phase { display: block; font-family: var(--mono); font-size: .85rem; color: var(--magenta); margin-bottom: .2rem; font-weight: 400; letter-spacing: 0; }
.leg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; max-width: 44rem; }
.leg li { padding-left: 1.1rem; position: relative; }
.leg li::before { content: ""; position: absolute; left: 0; top: .72em; width: .5rem; height: 2px; background: var(--ink-2); }

/* screens */
.shots { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .shots { grid-template-columns: 1fr 1fr; gap: 3rem 2.5rem; } }
.shot figcaption { margin-top: 1rem; color: var(--ink-2); font-size: .95rem; max-width: 34rem; }
.shot figcaption strong { color: var(--ink); font-family: var(--display); font-size: 1rem; display: block; margin-bottom: .2rem; }
figure { margin: 0; }

/* data sources: a chart legend */
.legend { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.legend div { display: grid; gap: .2rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) { .legend div { grid-template-columns: 15rem minmax(0, 1fr); } }
.legend dt { font-family: var(--display); font-weight: 700; }
.legend dd { margin: 0; color: var(--ink-2); max-width: 44rem; }

/* safety */
.caution { background: var(--amber-wash); border-left: 6px solid var(--amber); padding: 1.4rem clamp(1.1rem, 3vw, 2rem); }
.caution h2, .caution h3 { color: var(--ink); margin-bottom: .6rem; }
.caution p { color: var(--ink); margin-bottom: .6em; }
.caution p:last-child { margin-bottom: 0; }

/* call to action band */
.cta { background: var(--cockpit); color: var(--cockpit-ink); }
.cta .wrap { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .cta .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.cta h2 { color: #fff; }
.cta p { color: var(--cockpit-ink-2); margin: .75rem 0 0; }

/* ------------------------------------------------------------------ features page */
.doc .feature-index { padding-left: 0; }
.actions + p { margin-top: 1.25rem; }
.feature-index { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-family: var(--display); font-size: .95rem; }
.feature-group { display: grid; gap: 2rem 3rem; }
@media (min-width: 62rem) { .feature-group.has-shot { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } .feature-group.has-shot .group-shot { position: sticky; top: 1.5rem; align-self: start; } }
.items { margin: 0; display: grid; gap: 1.4rem; }
.items dt { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.items dd { margin: .3rem 0 0; color: var(--ink-2); max-width: var(--measure); }
.items dd p { margin-bottom: .5em; }
.group-shot figcaption { margin-top: .8rem; color: var(--ink-2); font-size: .9rem; }
.soon { border: 2px dashed var(--rule); padding: clamp(1.25rem, 3vw, 2rem); }
.soon h2 { margin-bottom: .5rem; }
.soon ul { margin: 1rem 0 0; padding-left: 1.2rem; max-width: 44rem; }
.soon li { margin-bottom: .5rem; }
.tag { display: inline-block; font: 700 .78rem var(--display); border: 1px solid currentColor; color: var(--ink-2); padding: .05rem .45rem; border-radius: .25rem; vertical-align: .15em; margin-left: .35rem; }

/* ------------------------------------------------------------------ text pages (support, privacy, terms) */
.doc { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.doc.intro { padding-bottom: 0; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); margin-bottom: 1rem; }
.doc h2 { font-size: 1.45rem; margin: 2.5rem 0 .75rem; }
.doc h3 { margin: 1.75rem 0 .5rem; }
.doc ul, .doc ol { max-width: var(--measure); padding-left: 1.25rem; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.draft { border: 2px solid var(--magenta); color: var(--ink); padding: 1rem 1.25rem; margin: 0 0 2rem; max-width: 46rem; }
.draft strong { color: var(--magenta); font-family: var(--display); }
.faq { max-width: 48rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1.05rem 2.2rem 1.05rem 0; font-family: var(--display); font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font: 400 1.5rem var(--mono); color: var(--magenta); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.2rem; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 2.4rem; margin-bottom: 1rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid var(--magenta); color: var(--magenta); font: 700 .85rem/1.45rem var(--display); text-align: center; }
.spec { margin: 0 0 1.5rem; max-width: 46rem; border-top: 1px solid var(--rule); }
.spec div { display: grid; gap: .2rem 1.5rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 40rem) { .spec div { grid-template-columns: 11rem 1fr; } }
.spec dt { font-family: var(--display); font-weight: 700; }
.spec dd { margin: 0; color: var(--ink-2); }

/* 404 */
.lost { min-height: 60vh; display: grid; align-content: center; padding-top: 4rem; padding-bottom: 4rem; }
.lost .readout { color: var(--magenta); font-size: 1rem; display: block; margin-bottom: 1rem; }

/* ------------------------------------------------------------------ footer */
.site-foot { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; color: var(--ink-2); font-size: .92rem; }
.site-foot .wrap { display: grid; gap: 1.75rem; }
@media (min-width: 56rem) { .site-foot .wrap { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 3rem; } }
.site-foot .notice { max-width: 46rem; }
.site-foot .notice strong { color: var(--ink); font-family: var(--display); }
.site-foot nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-foot nav a { color: var(--ink); }
.site-foot .small { font-size: .85rem; margin-top: 1rem; }

@media (prefers-reduced-motion: no-preference) {
  .hits .box { animation: approach 9s linear infinite; transform-box: view-box; transform-origin: 820px 250px; }
  .hits .box:nth-child(2) { animation-delay: -3s; }
  .hits .box:nth-child(3) { animation-delay: -6s; }
}
@keyframes approach { from { transform: scale(.25); opacity: 0; } 20% { opacity: .9; } 85% { opacity: .9; } to { transform: scale(2.4); opacity: 0; } }

@media print {
  .site-head, .cta, .theme, .hits { display: none; }
  body { background: #fff; color: #000; }
}
