/* planeworthy.com. The palette is the app's: the navy-to-teal of the icon and the
   dashboard's aircraft card, and the status colors of its due rows. The CSP allows
   same-origin styles and images only, so the type is the system font, which is the
   app's own font on the iPhones and iPads this site is for. */

:root {
  --navy: #0f2e61;
  --teal: #05809e;
  --page: #f2f4f7;
  --surface: #ffffff;
  --sunken: #e9edf2;
  --ink: #0e1726;
  --muted: #566274;
  --rule: #dfe4ea;
  --link: #046f8a;
  --solid: #0f2e61;
  --soon: #e07b0a;
  --ok: #2c9a4c;
  --urgent: #d63a2f;
  --soon-fill: #fdf0e1;
  --ok-fill: #e3f4e8;
  --urgent-fill: #fce6e4;
  --shadow: 0 1px 2px rgba(15, 46, 97, 0.06), 0 8px 24px rgba(15, 46, 97, 0.08);
  --device-shadow: 0 30px 60px -20px rgba(4, 20, 48, 0.55), 0 12px 24px -12px rgba(4, 20, 48, 0.35);
  --radius-group: 18px;
  --measure: 34rem;
  --wide: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b1016;
    --surface: #161d25;
    --sunken: #1e2731;
    --ink: #eef1f5;
    --muted: #9aa6b4;
    --rule: #28323d;
    --link: #5cc3dd;
    --solid: #05809e;
    --soon: #f59a33;
    --ok: #4cc26c;
    --urgent: #f0645a;
    --soon-fill: #3a2610;
    --ok-fill: #12301c;
    --urgent-fill: #3d1714;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* The icon ring runs off the band's right edge; clip it without clipping the hero phone. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 {
  font-family: -apple-system-headline, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---- Masthead: the gradient band every page opens with ---- */

.band {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, #0b4d78 55%, var(--teal) 100%);
}
/* The ring from the app icon, drawn large behind the header. */
.band::before {
  content: "";
  position: absolute;
  width: 780px; height: 780px;
  right: -260px; top: -300px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.band:has(.page-head)::before { width: 560px; height: 560px; right: -180px; top: -330px; }
.band a { color: #fff; }
.bar {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.01em; text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.bar nav { display: flex; gap: 6px; }
.bar nav a {
  font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 7px 14px; border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
}
.bar nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.bar nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* ---- Home hero ---- */

.hero {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 40px 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: end;
}
.hero-copy { padding-bottom: 88px; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 20px;
}
.hero .lede {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  max-width: 30rem;
  margin: 0 0 28px;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.button {
  display: inline-block;
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy) !important;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.4);
}
.button:hover { background: #eaf6fa; }
.actions .note { font-size: 15px; color: rgba(255, 255, 255, 0.75); margin: 0; }
/* The phone sits on the band's bottom edge and hangs into the page below. */
.hero-device { justify-self: center; margin-bottom: -120px; }

.device {
  width: 300px;
  padding: 9px;
  border-radius: 50px;
  background: #1b1f24;
  box-shadow: var(--device-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.device img { border-radius: 42px; width: 100%; aspect-ratio: 660 / 1434; }
.device.small { width: min(250px, 47%); border-radius: 44px; padding: 8px; }
.device.small img { border-radius: 37px; }

/* ---- Home sections ---- */

.after-hero { padding-top: 150px; }
.feature {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 56px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.feature + .feature { border-top: 1px solid var(--rule); }
.feature .shots { display: flex; justify-content: center; gap: 20px; }
.feature.flip .shots { order: 2; }
.feature h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 750; margin: 0 0 14px; }
.feature p { max-width: var(--measure); margin: 0 0 14px; color: var(--muted); }
.feature p strong { color: var(--ink); font-weight: 600; }
.intro { max-width: 46rem; margin: 0 auto; padding: 0 20px; text-align: center; }
.intro p { font-size: 21px; line-height: 1.5; margin: 0; color: var(--ink); }

/* A due list drawn the way the app draws it: status bar, name, interval, days left. */
.due {
  list-style: none;
  margin: 22px 0 0;
  padding: 4px 0;
  max-width: 26rem;
  background: var(--surface);
  border-radius: var(--radius-group);
  box-shadow: var(--shadow);
}
.due li {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 16px;
}
.due li + li { border-top: 1px solid var(--rule); }
.due .mark { width: 4px; height: 34px; border-radius: 2px; background: var(--ok); }
.due .soon .mark { background: var(--soon); }
.due .urgent .mark { background: var(--urgent); }
.due b { display: block; font-weight: 600; color: var(--ink); line-height: 1.25; }
.due small { display: block; color: var(--muted); font-size: 13px; }
.due .left {
  font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums;
  padding: 2px 10px; border-radius: 999px;
  color: var(--ok); background: var(--ok-fill);
}
.due .soon .left { color: var(--soon); background: var(--soon-fill); }
.due .urgent .left { color: var(--urgent); background: var(--urgent-fill); }

.facts {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
  max-width: var(--measure);
}
.facts li { padding-left: 26px; position: relative; color: var(--muted); }
.facts li::before {
  content: "";
  position: absolute; left: 2px; top: 0.5em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}
.facts strong { color: var(--ink); font-weight: 600; }

.pledge {
  max-width: var(--wide);
  margin: 24px auto 72px;
  padding: 0 20px;
}
.pledge-inner {
  border-radius: 28px;
  padding: 44px 44px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.pledge h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 34px); font-weight: 750; }
.pledge p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.pledge a { color: #fff; }
.pledge ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pledge li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 15px;
}

/* ---- Document pages: support, privacy, 404 ---- */

.page-head {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 96px;
}
.page-head h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; }
.page-head p { margin: 0; font-size: 19px; color: rgba(255, 255, 255, 0.85); max-width: 34rem; }
.doc {
  position: relative;
  max-width: 760px;
  margin: -64px auto 64px;
  padding: 0 20px;
}
.sheet {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 40px 48px 44px;
}
.sheet > :first-child { margin-top: 0; }
.sheet h2 { font-size: 26px; font-weight: 750; margin: 44px 0 10px; }
.sheet h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.012em; margin: 0; }
.sheet p, .sheet li { max-width: 38rem; }
.sheet .muted { color: var(--muted); }
.sheet .summary {
  font-size: 19px;
  line-height: 1.5;
  padding-left: 18px;
  border-left: 4px solid var(--teal);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--sunken);
}
.contact p { margin: 0; color: var(--muted); font-size: 15px; max-width: 26rem; }
.contact .address { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 2px; }
.contact .button { background: var(--solid); color: #fff !important; box-shadow: none; }
.contact .button:hover { background: var(--teal); }

.faq { margin: 8px 0 0; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover h3 { color: var(--link); }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.faq details p + p { margin-top: -6px; }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--rule); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 12px 16px; vertical-align: top; }
td { border-top: 1px solid var(--rule); }
td:first-child { font-weight: 600; width: 46%; }
th { background: var(--sunken); color: var(--muted); font-weight: 600; font-size: 14px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--sunken); padding: 1px 5px; border-radius: 5px; }
.nots { list-style: none; padding: 0; display: grid; gap: 8px; }
.nots li { padding-left: 28px; position: relative; }
.nots li::before, .nots li::after {
  content: "";
  position: absolute; left: 5px; top: 0.72em;
  width: 13px; height: 2.5px; border-radius: 2px;
  background: var(--urgent);
  transform: rotate(45deg);
}
.nots li::after { transform: rotate(-45deg); }

.lost { text-align: center; padding: 56px 48px; }
.lost p { margin: 0 auto 24px; }
.lost .button { background: var(--solid); color: #fff !important; box-shadow: none; }

/* ---- Footer ---- */

footer.site {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}
footer.site .inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px 20px 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
  align-items: start;
}
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
footer.site nav a:hover { color: var(--link); }
footer.site p { margin: 0; grid-column: 2; max-width: 44rem; justify-self: end; text-align: right; }
footer.site p:first-of-type { grid-row: 1; }

/* ---- Narrow screens ---- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; }
  .hero-copy { padding-bottom: 0; }
  .hero-device { margin-bottom: -150px; }
  .after-hero { padding-top: 190px; }
  .feature { grid-template-columns: 1fr; gap: 36px; padding: 48px 20px; }
  .feature.flip .shots { order: 0; }
  .pledge-inner { grid-template-columns: 1fr; padding: 32px 24px; }
  footer.site .inner { grid-template-columns: 1fr; }
  footer.site p { grid-column: 1; justify-self: start; text-align: left; }
  footer.site p:first-of-type { grid-row: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar { padding: 14px 16px; }
  .bar nav a { padding: 6px 10px; font-size: 14px; }
  .hero, .feature, .intro, .pledge, .page-head, .doc { padding-left: 16px; padding-right: 16px; }
  .hero .lede { font-size: 18px; }
  .device { width: 250px; border-radius: 44px; padding: 8px; }
  .device img { border-radius: 37px; }
  .device.small { border-radius: 30px; padding: 6px; }
  .device.small img { border-radius: 25px; }
  .feature .shots { gap: 12px; }
  .intro p { font-size: 18px; }
  .sheet { padding: 28px 20px 32px; border-radius: 20px; }
  .lost { padding: 40px 20px; }
  .contact .address { font-size: 19px; }
}

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