/* SkyPorter: landing page and its legal/support pages.
   Built from the app's V3 design: cream paper, brand brown, forest green for
   the "Looking" side, indigo for the "Offering" side, Playfair Display titles.
   Sections, in order: fonts, tokens, base, nav, side switch, store buttons,
   hero, how it works, match demo, is/isn't, questions, closing, footer,
   flight layer, motion, doc pages, print. */

/* ---- fonts -------------------------------------------------------------- */

@font-face {
  font-family: "Playfair Display";
  src: url("/assets/apps/skyporter/fonts/playfair-display-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/assets/apps/skyporter/fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---- tokens ------------------------------------------------------------- */

/* The tone follows the side switch. Registered so the whole page can ease
   from green to indigo instead of snapping. */
@property --tone { syntax: "<color>"; inherits: true; initial-value: #326a4f; }
@property --tone-soft { syntax: "<color>"; inherits: true; initial-value: #e8f0eb; }
@property --tone-ink { syntax: "<color>"; inherits: true; initial-value: #1f3a2d; }
@property --plane { syntax: "<color>"; inherits: true; initial-value: #5f8470; }

.app--skyporter {
  --paper: #fdf7f1;
  --surface: #fffcf8;
  --tile: #f2eadf;
  --line: #efe3d6;
  --outline: #d6c4b0;
  --outline-strong: #b89a7c;
  --ink: #3a3535;
  --ink-soft: #4f4542;
  --ink-deep: #2a2320;
  --brown: #7c4b2a;
  --brown-dark: #76441f;
  --brown-deep: #5a3719;
  --brown-soft: #7a5a43;
  --trail: #c8956a;
  --green: #326a4f;
  --green-soft: #e8f0eb;
  --green-ink: #1f3a2d;
  --indigo: #552ea1;
  --indigo-soft: #efeaf7;
  --indigo-ink: #2a1a4a;
  --amber: #8f5a0f;
  --amber-soft: #fbf0dc;

  --tone: var(--green);
  --tone-soft: var(--green-soft);
  --tone-ink: var(--green-ink);
  --plane: #5f8470;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --pad: max(var(--gutter), calc((100% - var(--max)) / 2));
  --shadow: 0 1px 0 rgb(124 75 42 / .06), 0 18px 40px -22px rgb(124 75 42 / .45);

  transition: --tone .6s var(--ease), --tone-soft .6s var(--ease), --tone-ink .6s var(--ease), --plane .6s var(--ease);
}

.app--skyporter:has(#side-carry:checked) {
  --tone: var(--indigo);
  --tone-soft: var(--indigo-soft);
  --tone-ink: var(--indigo-ink);
  --plane: #7457b8;
}

/* Side-specific copy: only the chosen side shows. Without :has() support
   nothing is hidden, both sides read in turn, and the switch is removed. */
.app--skyporter:not(:has(#side-carry:checked)) [data-side="carry"],
.app--skyporter:has(#side-carry:checked) [data-side="send"] {
  display: none !important;
}

@supports not selector(:has(*)) {
  .side { display: none !important; }
}

/* ---- base --------------------------------------------------------------- */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body.app--skyporter {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  color-scheme: light;
}

.app--skyporter *, .app--skyporter *::before, .app--skyporter *::after { box-sizing: border-box; }
.app--skyporter img, .app--skyporter svg { max-width: 100%; }
.app--skyporter img { height: auto; }
.app--skyporter h1, .app--skyporter h2, .app--skyporter h3 { text-wrap: balance; }
.app--skyporter p { text-wrap: pretty; }
.app--skyporter ::selection { background: var(--tone-soft); color: var(--tone-ink); }

.app--skyporter a { color: var(--tone); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.app--skyporter a:hover { text-decoration-thickness: 2px; }

.app--skyporter :focus-visible {
  outline: 3px solid var(--brown-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

main { display: block; position: relative; z-index: 1; }

.heading {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--brown-dark);
}

.how, .match, .honest, .faq, .get {
  padding-block: clamp(64px, 8vw, 112px);
  padding-inline: var(--pad);
}

@media (min-width: 760px) {
  body.app--skyporter { font-size: 1.125rem; }
}

/* ---- nav ---------------------------------------------------------------- */

.app-nav { position: relative; z-index: 30; }

.app-nav__inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.app-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--brown-dark) !important;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1;
}

.app-nav__brand img { border-radius: 8px; box-shadow: 0 0 0 1px rgb(58 39 21 / .1); }

.app-nav ul { list-style: none; margin: 0; padding: 0; }

.app-nav__links ul { display: flex; gap: 2px; }

.app-nav a:not(.app-nav__brand) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--brown-deep);
  font-size: .9375rem;
  font-weight: 560;
  text-decoration: none;
  transition: background-color .2s;
}

.app-nav a:not(.app-nav__brand):hover { background: var(--tile); }

.app-nav__menu { display: none; position: relative; }

.app-nav__menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--outline);
  color: var(--brown-deep);
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
}

.app-nav__menu summary::-webkit-details-marker { display: none; }

.app-nav__menu summary::before {
  content: "";
  width: 16px;
  height: 12px;
  background:
    linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
}

/* Open, the three bars become a cross. */
.app-nav__menu[open] summary::before {
  width: 14px;
  height: 14px;
  margin-inline: 1px;
  background:
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 2px 100% no-repeat;
  transform: rotate(45deg);
}

.app-nav__menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 232px;
  padding: 8px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgb(90 55 25 / .45);
}

.app-nav__menu ul { display: grid; }
.app-nav__menu a:not(.app-nav__brand) { display: flex; border-radius: 12px; padding: 0 14px; font-size: 1rem; }

@media (max-width: 759px) {
  .app-nav__links { display: none; }
  .app-nav__menu { display: block; }
}

/* ---- side switch -------------------------------------------------------- */

.side {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin: 8px 0 0 var(--pad);
  padding: 5px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 252 248 / .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -16px rgb(124 75 42 / .5);
}

/* The thumb slides under whichever option is chosen. */
.side::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--tone);
  box-shadow: 0 6px 16px -8px var(--tone);
  transition: transform .5s var(--ease);
}

.side:has(#side-carry:checked)::before { transform: translateX(100%); }

.side__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.side__opt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 20px;
  border-radius: 999px;
  color: var(--brown-deep);
  font-size: .9375rem;
  font-weight: 620;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color .35s var(--ease);
}

.side__input:checked + .side__opt { color: #fff; }
.side__input:focus-visible + .side__opt { outline: 3px solid var(--brown-deep); outline-offset: 2px; }
.side__input:not(:checked) + .side__opt:hover { color: var(--tone); }

.side__icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.side__short { display: none; }

@media (max-width: 520px) {
  .side { width: auto; margin-inline: var(--gutter); }
  .side__opt { padding-inline: 10px; font-size: .9375rem; }
  .side__long { display: none; }
  .side__short { display: inline; }
}

/* ---- store buttons (markup from the build, see apps-spec) --------------- */

.stores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stores > li { display: flex; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 18px 8px 14px;
  border-radius: 14px;
  line-height: 1.1;
  text-decoration: none !important;
}

.store__icon { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store__label { display: grid; gap: 2px; }
.store__kicker { font-size: .75rem; font-weight: 500; }
.store__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.005em; }

a.store {
  background: var(--ink-deep);
  color: #fffcf8 !important;
  box-shadow: 0 10px 24px -14px rgb(42 35 32 / .8);
  transition: transform .25s var(--ease), background-color .3s;
}

a.store:hover { background: var(--tone); transform: translateY(-2px); }
a.store:active { transform: translateY(0) scale(.98); }

/* "Soon" is drawn with the flight path's own dash: a route that is planned
   but not flown yet. It is a span, so nothing invites a click. */
.store.is-soon {
  color: var(--brown-deep);
  background: rgb(255 252 248 / .7);
  box-shadow: inset 0 0 0 1.5px transparent;
  border: 1.5px dashed var(--outline-strong);
  cursor: default;
}

.store.is-soon .store__kicker { color: var(--brown-soft); }
.store.is-soon .store__icon { color: var(--brown); }

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

.hero {
  display: grid;
  gap: 8px;
  padding: 28px var(--pad) 24px;
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.45rem + 4.3vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--brown-dark);
  max-width: 13ch;
}

.hero__title > span { display: block; }

.hero__lede {
  margin: 22px 0 0;
  max-width: 34ch;
  font-size: clamp(1.125rem, 1.02rem + .45vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.stores--hero { margin-top: 30px; }

.hero__art {
  position: relative;
  margin: -6% auto 0;
  width: min(100%, 520px);
}

.hero__art img { display: block; width: 100%; }

/* Under the art, so the route leaves the hero below the buttons. On wide
   screens it is a row of the hero grid instead, under whichever column runs
   longer, so buttons that wrap can never put themselves in the way. */
.hero__art > .hero__fly { left: 22%; top: calc(100% + 36px); }
.hero__fly--wide { display: none; }

.hero__trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--trail);
  stroke-width: 9;
  stroke-dasharray: 13 23;
  stroke-linecap: round;
}

/* Centred on the trail's first point (66, 214 of 1000), nose along it. */
.hero__plane {
  position: absolute;
  left: -.9%;
  top: 15.5%;
  width: 15%;
  transform: rotate(61deg);
}

.plane {
  display: block;
  aspect-ratio: 168 / 132;
  background: var(--plane);
  -webkit-mask: url("/assets/apps/skyporter/img/plane.png") center / contain no-repeat;
  mask: url("/assets/apps/skyporter/img/plane.png") center / contain no-repeat;
}

/* JavaScript flies the same trail and plane live, over the whole page. */
.has-flight .hero__trail,
.has-flight .hero__plane { visibility: hidden; }

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: start;
    gap: 40px;
    padding-top: 44px;
    padding-bottom: 0;
  }
  /* The art's top fifth is open sky; lift it so the plane sits level with
     the headline. */
  .hero__art { margin: -112px 0 0 auto; width: min(100%, 580px); }
  .hero__art > .hero__fly { display: none; }
  .hero > .hero__fly--wide { display: block; position: relative; grid-column: 2; grid-row: 2; margin: -4px 0 0 22%; }
}

/* Until the copy column is wide enough, give it more of the row and close
   the buttons up, so the headline keeps to three lines and all three
   buttons stay on one. */
@media (min-width: 900px) and (max-width: 1279px) {
  .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
  .stores--hero { gap: 8px; }
  .stores--hero .store { gap: 8px; padding-inline: 12px 14px; }
}

/* ---- route waypoints ----------------------------------------------------
   Empty markers that only steer the flight path (app.js joins every visible
   [data-fly] in page order). Each is placed where the route should pass at
   that width, always in open space beside the text, never across it. */

.hero__fly, .how__fly, .stop__end, .demo__fly, .chat__fly, .pass__fly {
  position: absolute;
  width: 2px;
  height: 2px;
  pointer-events: none;
}

/* ---- how it works ------------------------------------------------------- */

.how { position: relative; scroll-margin-top: 72px; --mark: 48px; --mark-gap: 18px; }

/* The heading hangs in line with the stops' titles, leaving the marker
   column free for the route to come down. */
.how__head { position: relative; max-width: calc(36rem + var(--mark) + var(--mark-gap)); padding-left: calc(var(--mark) + var(--mark-gap)); }

.how > .how__fly { top: 56px; left: calc(var(--pad) + var(--mark) / 2 - 1px); }
.how__head > .how__fly--b { bottom: -30px; left: calc(var(--mark) / 2 - 1px); }

.stop { position: relative; }
.stop__end { left: calc(var(--mark) / 2 - 1px); top: calc(100% + 40px); }
@media (min-width: 900px) { .stop__end { display: none; } }

.how__lede { margin: 16px 0 0; color: var(--ink-soft); max-width: 40ch; }

.how__head .heading > span,
.how__lede > span { display: block; }

.route {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 36px;
}

.stop {
  display: grid;
  grid-template-columns: var(--mark) minmax(0, 1fr);
  column-gap: var(--mark-gap);
  align-items: start;
}

.stop__mark {
  grid-row: 1 / span 2;
  width: var(--mark);
  height: var(--mark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tone);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 0 0 7px var(--paper), 0 10px 20px -10px var(--tone);
}

.stop__title {
  grid-column: 2;
  margin: 6px 0 6px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--brown-dark);
}

.stop__text { grid-column: 2; margin: 0; max-width: 36ch; color: var(--ink-soft); }

/* From a tablet up, the stops step down and across, a route coming in to land. */
@media (min-width: 760px) {
  .how { --mark: 56px; --mark-gap: 22px; }
  .route { --step: clamp(34px, 9.6vw, 150px); gap: 22px; margin-top: 56px; }
  .stop { grid-template-columns: var(--mark) minmax(0, 25rem); }
  .stop__mark { font-size: 1.375rem; }
  .stop:nth-child(2) { margin-left: calc(1 * var(--step)); }
  .stop:nth-child(3) { margin-left: calc(2 * var(--step)); }
  .stop:nth-child(4) { margin-left: calc(3 * var(--step)); }
  .stop:nth-child(5) { margin-left: calc(4 * var(--step)); }
}

/* ---- match demo --------------------------------------------------------- */

/* The listings slide in from the sides; clip them so they never widen the
   page while they wait. */
.match { scroll-margin-top: 72px; overflow-x: hidden; overflow-x: clip; }

.match__head { max-width: 40rem; }
.match__head p { margin: 18px 0 0; max-width: 46ch; color: var(--ink-soft); }

.demo__fly { display: none; left: 50%; top: 50%; }
.chat__fly { display: none; }

.demo { margin: 20px 0 0; }

.demo__stage {
  position: relative;
  display: grid;
  gap: 22px;
  justify-items: center;
}

.listing {
  width: min(100%, 340px);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 4px 19px rgb(58 39 21 / .16);
  overflow: hidden;
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
}

.listing__head { position: relative; aspect-ratio: 640 / 300; overflow: hidden; }
.listing__head img { display: block; width: 100%; height: 100%; object-fit: cover; }

.listing__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: .8px solid rgb(255 255 255 / .45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-shadow: 0 1px 4px rgb(0 0 0 / .3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.listing--looking .listing__badge { background: rgb(38 104 70 / .78); }
.listing--offering .listing__badge { background: rgb(85 46 161 / .74); }

.listing__body {
  position: relative;
  margin-top: -12px;
  padding: 16px;
  border-radius: 12px 12px 25px 25px;
  background: #fff;
}

.listing__top { display: flex; justify-content: space-between; gap: 10px; }
.listing__route { display: flex; align-items: flex-start; gap: 6px; margin: 0; }
.listing__to { padding-top: 2px; color: #6e6660; }
.city b { display: block; font-size: 15px; color: var(--ink); }
.city small { display: block; font-size: 11px; color: #6e6660; }
.listing__date { margin: 0; font-weight: 600; white-space: nowrap; color: var(--ink); }
.listing__owner { margin: 6px 0 0; font-size: 12px; color: #5f5752; }

.listing__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0 0;
  padding: 12px 0;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgb(0 0 0 / .05);
}

.listing__stats > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; padding: 0 12px; align-items: center; }
.listing__stats > div + div { border-left: 1px solid #eee; }
.listing__stats dt { display: contents; font-size: 11px; font-weight: 500; color: #6e6660; }
.listing__stats dt svg {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  fill: #fff;
}
.listing__stats > div:first-child dt svg { background: linear-gradient(225deg, #66cb58, #219212); }
.listing__stats > div:last-child dt svg { background: linear-gradient(225deg, #c7a5fe, #8963f1); }
.listing__stats dd { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); }

.listing__actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.listing__actions span {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 25px;
  font-weight: 600;
}
.listing__actions span:first-child { width: 128px; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.listing__actions span:last-child { width: 108px; background: var(--accent); color: #fff; }
.listing--looking { --accent: var(--green); }
.listing--offering { --accent: var(--indigo); }

.demo__link {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgb(143 90 15 / .2), 0 0 0 7px var(--paper);
}

.chip svg { width: 22px; height: 22px; fill: currentColor; }

.demo__checks {
  list-style: none;
  margin: 0;
  padding: 6px 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  border-radius: 14px;
  background: var(--paper);
  font-size: .9375rem;
  font-weight: 560;
  color: var(--brown-deep);
}

.demo__checks li { display: inline-flex; align-items: center; gap: 4px; }
.demo__checks svg { width: 18px; height: 18px; fill: var(--amber); }

@media (min-width: 900px) {
  .match__head { max-width: calc(50% - 72px); }
  .demo__fly { display: block; }
  /* The route threads down between the two listings, through the match,
     then swings out round the left of the chat. */
  .demo__fly--b { top: calc(100% + 30px); }
  .demo__stage { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
  .chat__fly { display: block; left: -72px; top: -36px; bottom: 64px; height: auto; }
  .listing--looking { justify-self: end; }
  .listing--offering { justify-self: start; }
  .demo__checks { display: grid; grid-template-columns: auto auto; }
}

.chat {
  position: relative;
  width: min(100%, 520px);
  margin: 48px auto 0;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  overflow: hidden;
}

@media (min-width: 900px) {
  .chat { margin-top: 60px; }
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.chat__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--tone-soft);
  color: var(--tone-ink);
  font-size: .875rem;
  font-weight: 700;
  flex: none;
}

.chat__who { margin: 0; line-height: 1.25; }
.chat__who b { display: block; font-family: var(--serif); font-size: 1.125rem; color: var(--brown-dark); }
.chat__who span { font-size: .8125rem; color: var(--green); font-weight: 600; }

.chat__log {
  list-style: none;
  margin: 0;
  padding: 18px 16px 20px;
  display: grid;
  gap: 10px;
}

.msg {
  justify-self: start;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 20px 20px 20px 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--ink);
}

/* The thread is told from your side: whoever you are on the switch, your
   messages sit on the right in your colour. */
.app--skyporter:not(:has(#side-carry:checked)) .msg[data-from="ines"],
.app--skyporter:has(#side-carry:checked) .msg[data-from="daniel"] {
  justify-self: end;
  border-radius: 20px 20px 6px 20px;
  background: var(--tone);
  box-shadow: none;
  color: #fff;
}

.chat__done {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: .875rem;
  font-weight: 650;
}

.chat__done svg { width: 20px; height: 20px; fill: currentColor; }

.demo__caption {
  margin: 0 0 40px;
  max-width: 44ch;
  font-size: .875rem;
  color: var(--brown-soft);
}

/* ---- what it is and isn't ----------------------------------------------- */

.honest { display: grid; gap: 0; }
.honest__intro { margin: 18px 0 0; max-width: 48ch; color: var(--ink-soft); }
.honest__col--is { margin-top: 56px; }
.honest__col--isnt { margin-top: 48px; }

.honest__label {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brown-deep);
}

.honest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.honest li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; }
.honest li p { margin: 0; color: var(--ink-soft); }
.honest li svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; }

.honest__col--is li svg { background: var(--tone-soft); fill: var(--tone); }
.honest__col--is strong { color: var(--ink); font-weight: 680; }

.honest__col--isnt li { gap: 16px; }
.honest__col--isnt li svg { margin-top: 4px; background: #f4e4d6; fill: var(--brown); }
.honest__col--isnt strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--brown-dark);
}

.honest__gutter { display: none; }

/* Wide screens: heading over "it is", introduction over "it isn't", and the
   route straight down the gutter between them. */
@media (min-width: 900px) {
  .honest { grid-template-columns: minmax(0, 5fr) 120px minmax(0, 7fr); }
  .honest__title { grid-column: 1; grid-row: 1; }
  .honest__intro { grid-column: 3; grid-row: 1; align-self: end; margin: 0; }
  .honest__gutter { display: block; grid-column: 2; grid-row: 1 / span 2; }
  .honest__col--is { grid-column: 1; grid-row: 2; margin-top: 64px; }
  .honest__col--isnt { grid-column: 3; grid-row: 2; margin-top: 64px; }
}

/* ---- questions ---------------------------------------------------------- */

.faq { display: grid; gap: 28px; }
.faq__head p { margin: 14px 0 0; color: var(--ink-soft); }
.faq__gutter { display: none; }

.faq__list { border-bottom: 1.5px dashed var(--outline); }

.qa { border-top: 1.5px dashed var(--outline); }

.qa summary {
  position: relative;
  list-style: none;
  padding: 20px 48px 20px 0;
  font-size: 1.125rem;
  font-weight: 640;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  border-radius: 8px;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background:
    linear-gradient(var(--brown) 0 0) center / 12px 2px no-repeat,
    linear-gradient(var(--brown) 0 0) center / 2px 12px no-repeat,
    var(--tile);
  transition: transform .35s var(--ease), background-color .3s;
}

.qa[open] summary::after { transform: rotate(135deg); }
.qa summary:hover { color: var(--tone); }

.qa p { margin: 0 0 24px; max-width: 60ch; color: var(--ink-soft); }

@media (min-width: 900px) {
  .faq { grid-template-columns: minmax(0, 4fr) 120px minmax(0, 8fr); gap: 0; align-items: start; }
  .faq__head { position: sticky; top: 40px; }
  .faq__gutter { display: block; align-self: stretch; }
}

/* ---- closing: the boarding pass ----------------------------------------- */

.get { display: grid; gap: 56px; align-items: center; }

.pass {
  position: relative;
  display: grid;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

.pass__main { padding: clamp(28px, 4.5vw, 56px); }
.pass__main p { margin: 16px 0 0; max-width: 42ch; color: var(--ink-soft); }
.stores--pass { margin-top: 28px; }

.pass__stub {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 22px;
  align-items: center;
  padding: 26px clamp(28px, 4.5vw, 56px) 30px;
  border-top: 2px dashed var(--outline);
}

/* The punched notches at each end of the perforation. */
.pass__stub::before,
.pass__stub::after {
  content: "";
  position: absolute;
  top: -15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pass__stub::before { left: -14px; }
.pass__stub::after { right: -14px; }

.pass__fly { display: none; }

.pass__icon { border-radius: 15px; box-shadow: 0 0 0 1px rgb(58 39 21 / .1); }

.pass__fields { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
.pass__fields dt {
  font-size: .8125rem;
  font-variant-caps: all-small-caps;
  letter-spacing: .08em;
  font-weight: 650;
  color: var(--brown-soft);
}
.pass__fields dd { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--brown-dark); }

.phone { margin: 0 auto; width: 236px; transform: rotate(3deg); }

.phone__frame {
  position: relative;
  padding: 8px;
  border-radius: 40px;
  background: #2e2622;
  box-shadow: inset 0 0 0 1.5px #5d4b40, 0 40px 60px -30px rgb(58 39 21 / .6);
}

.phone__frame img { display: block; width: 100%; border-radius: 32px; }

/* The Dynamic Island, which a screenshot leaves out. */
.phone__frame::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  width: 30%;
  height: 20px;
  margin-left: -15%;
  border-radius: 999px;
  background: #141110;
}

@media (min-width: 700px) {
  .pass { grid-template-columns: minmax(0, 1fr) 236px; }
  .pass__stub {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 36px 32px;
    border-top: 0;
    border-left: 2px dashed var(--outline);
  }
  .pass__stub::before, .pass__stub::after { left: -15px; right: auto; }
  .pass__stub::before { top: -14px; }
  .pass__stub::after { top: auto; bottom: -14px; }
  .pass__fields { display: grid; gap: 14px; }
}

/* On wide screens the route ends just above the stub's top notch, so the
   plane parks pointing down the perforation. Narrower, it ends under the
   last stop instead (.stop__end). */
@media (min-width: 900px) {
  .pass__fly { display: block; left: -2px; top: -64px; }
}

@media (min-width: 1000px) {
  .get { grid-template-columns: minmax(0, 1fr) auto; gap: 0; }
  .phone { margin: 0 0 0 -12px; width: 252px; z-index: 2; }
}

/* ---- footer ------------------------------------------------------------- */

.app-footer {
  position: relative;
  z-index: 1;
  background: var(--tile);
  color: var(--brown-deep);
  font-size: .9375rem;
}

.app-footer__inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 56px var(--gutter) 20px;
  display: grid;
  gap: 28px;
}

.app-footer a { color: inherit; text-decoration: none; }
.app-footer a:hover span, .app-footer__nav a:hover { text-decoration: underline; }

.app-footer__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brown-dark) !important;
}

.app-footer__name img { border-radius: 7px; }
.app-footer__brand p { margin: 4px 0 0; max-width: 32ch; }

.app-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0 32px;
}

.app-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; }

.app-footer__base {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--outline);
  font-size: .8125rem;
}

.app-footer__base p { margin: 0; }

.trimotech-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.trimotech-credit svg { flex: none; }
.trimotech-credit:hover span { text-decoration: underline; }

@media (min-width: 760px) {
  .app-footer__inner { grid-template-columns: 1fr auto; column-gap: 48px; }
  .app-footer__base { grid-column: 1 / -1; }
}

/* ---- flight layer ------------------------------------------------------- */

.flight {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.flight__route { fill: none; stroke: var(--trail); stroke-linecap: round; }
.flight__reveal { fill: none; stroke: #fff; stroke-linecap: round; }

.flight-plane {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* ---- motion ------------------------------------------------------------- */

@keyframes sp-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes sp-fade { from { opacity: 0; } }
@keyframes sp-swap { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
@keyframes sp-pop { from { opacity: 0; transform: scale(.6); } }

@media (prefers-reduced-motion: no-preference) {
  html:has(.app--skyporter) { scroll-behavior: smooth; }

  .hero__title, .hero__lede, .stores--hero { animation: sp-rise .9s var(--ease) both; }
  .hero__lede { animation-delay: .12s; }
  .stores--hero { animation-delay: .24s; }
  .hero__art { animation: sp-fade 1.2s .1s var(--ease) both; }

  /* Set by app.js on a change of side, so first paint stays calm. */
  .is-swapping [data-side] { animation: sp-swap .5s var(--ease) both; }

  /* The demo plays once when it scrolls into view (app.js arms it). */
  .demo__stage.is-armed .listing,
  .demo__stage.is-armed .demo__link,
  .chat.is-armed .msg,
  .chat.is-armed .chat__done {
    transition: opacity .7s var(--ease), transform .9s var(--ease);
  }

  .demo__stage.is-armed:not(.is-on) .listing--looking { opacity: 0; transform: translateX(-64px) rotate(-3deg); }
  .demo__stage.is-armed:not(.is-on) .listing--offering { opacity: 0; transform: translateX(64px) rotate(3deg); }
  .demo__stage.is-armed:not(.is-on) .demo__link { opacity: 0; transform: scale(.85); }
  .demo__stage.is-on .listing--offering { transition-delay: .08s; }
  .demo__stage.is-on .demo__link { transition-delay: .5s; }
  .demo__stage.is-on .demo__checks li { animation: sp-pop .45s var(--ease) both; }
  .demo__stage.is-on .demo__checks li:nth-child(1) { animation-delay: .8s; }
  .demo__stage.is-on .demo__checks li:nth-child(2) { animation-delay: .92s; }
  .demo__stage.is-on .demo__checks li:nth-child(3) { animation-delay: 1.04s; }
  .demo__stage.is-on .demo__checks li:nth-child(4) { animation-delay: 1.16s; }

  .chat.is-armed:not(.is-on) .msg,
  .chat.is-armed:not(.is-on) .chat__done { opacity: 0; transform: translateY(14px); }
  .chat.is-on .msg:nth-child(2) { transition-delay: .7s; }
  .chat.is-on .msg:nth-child(3) { transition-delay: 1.4s; }
  .chat.is-on .msg:nth-child(4) { transition-delay: 2.1s; }
  .chat.is-on .chat__done { transition-delay: 2.8s; }
}

/* ---- doc pages ---------------------------------------------------------- */

/* The measure is set in rem, not ch: Figtree's zero is much wider than its
   average letter, so 68ch would run to about ninety characters a line. */
.app-doc .doc {
  --measure: 38rem;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 32px var(--gutter) 104px;
}

.doc__head { padding: 24px 0 28px; }

.doc__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-weight: 650;
  font-size: .9375rem;
  color: var(--green);
}

.doc__kicker::before {
  content: "";
  width: 28px;
  height: 0;
  border-top: 2px dashed var(--trail);
}

.doc__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--brown-dark);
}

.doc__meta { margin: 14px 0 0; font-size: .9375rem; color: var(--brown-soft); }

/* Below the sidebar layout the pages wrap onto as many lines as they need,
   so every page, and the current one, is always in view. */
.doc__nav { margin: 0 0 28px; }

.doc__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: .9375rem;
  font-weight: 560;
  color: var(--brown-deep);
  text-decoration: none;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.doc__nav a:hover { box-shadow: inset 0 0 0 1px var(--outline); }
.doc__nav a[aria-current="page"] { background: var(--brown-deep); color: #fffcf8; box-shadow: none; }

.doc__notice {
  margin: 0 0 32px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--amber-soft);
  color: #6b4310;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgb(143 90 15 / .18);
}

.doc__toc {
  margin: 0 0 40px;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1rem;
}

.doc__toc::before {
  content: "On this page";
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--brown-deep);
}

.doc__toc ol { margin: 0; padding-left: 1.4em; columns: 2 16rem; column-gap: 32px; }
.doc__toc li { break-inside: avoid; padding: 3px 0; }
.doc__toc li::marker { color: var(--brown-soft); }
.doc__toc a { color: var(--brown-deep); text-decoration: none; }
.doc__toc a:hover { text-decoration: underline; }

.doc__body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  overflow-wrap: break-word;
}

.doc__body > :first-child { margin-top: 0; }
.doc__body p, .doc__body ul, .doc__body ol, .doc__body blockquote, .doc__body table { margin: 0 0 1.15em; }

.doc__body h2 {
  margin: 2.4em 0 .7em;
  padding-top: 1em;
  border-top: 2px dashed var(--outline);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  line-height: 1.2;
  color: var(--brown-dark);
  scroll-margin-top: 24px;
}

.doc__body > h2:first-child { border-top: 0; padding-top: 0; }

.doc__body h3 {
  margin: 1.9em 0 .45em;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  scroll-margin-top: 24px;
}

.doc__body a { color: var(--green); }
.doc__body strong { font-weight: 680; color: var(--ink); }
.doc__body ul, .doc__body ol { padding-left: 1.35em; }
.doc__body li + li { margin-top: .45em; }
.doc__body li > ul, .doc__body li > ol { margin: .45em 0 0; }
.doc__body li::marker { color: var(--brown); }

.doc__body blockquote {
  padding: 14px 20px;
  border-left: 4px solid var(--green);
  border-radius: 4px 16px 16px 4px;
  background: var(--green-soft);
  color: var(--green-ink);
}

.doc__body blockquote > :last-child { margin-bottom: 0; }

.doc__body hr { margin: 2.6em 0; border: 0; border-top: 2px dashed var(--outline); }

.doc__body code {
  padding: .1em .35em;
  border-radius: 6px;
  background: var(--tile);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
}

/* Tables scroll sideways on a phone instead of squeezing the columns. */
.doc__body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .9375rem;
  line-height: 1.5;
  -webkit-overflow-scrolling: touch;
}

.doc__body th, .doc__body td {
  min-width: 9rem;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc__body th { background: var(--tile); font-weight: 700; color: var(--brown-deep); }
.doc__body tr:first-child th:first-child { border-top-left-radius: 10px; }
.doc__body tr:first-child th:last-child { border-top-right-radius: 10px; }

@media (min-width: 1040px) {
  .app-doc .doc {
    grid-template-columns: 220px minmax(0, var(--measure));
    column-gap: 72px;
    max-width: calc(220px + 72px + var(--measure) + 2 * var(--gutter));
  }
  .app-doc .doc > * { grid-column: 2; }
  .doc__nav {
    grid-column: 1 !important;
    grid-row: 2 / span 4;
    align-self: start;
    position: sticky;
    top: 28px;
    margin: 0;
  }
  .doc__nav ul {
    display: grid;
    gap: 2px;
    padding: 0 0 0 16px;
    border-left: 2px dashed var(--outline);
    overflow: visible;
  }
  .doc__nav a { min-height: 40px; padding: 0 12px; background: none; box-shadow: none; border-radius: 10px; white-space: normal; }
  .doc__nav a:hover { background: var(--tile); box-shadow: none; }
}

/* ---- print -------------------------------------------------------------- */

@media print {
  .app-nav, .app-footer, .doc__nav, .doc__toc, .side, .flight, .flight-plane { display: none !important; }
  body.app--skyporter { background: #fff; color: #000; font-size: 11pt; }
  .app-doc .doc { display: block; max-width: none; padding: 0; }
  .doc__head { padding: 0 0 12pt; }
  .doc__kicker::before { display: none; }
  .doc__title { font-size: 24pt; color: #000; }
  .doc__notice { background: none; box-shadow: none; border: 1px solid #999; color: #000; }
  .doc__body { font-size: 11pt; line-height: 1.5; color: #000; }
  .doc__body h2 { font-size: 15pt; color: #000; border-top: 0; padding-top: 0; break-after: avoid; }
  .doc__body h3 { font-size: 12pt; break-after: avoid; }
  .doc__body p, .doc__body li { orphans: 3; widows: 3; }
  .doc__body a { color: #000; }
  .doc__body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .doc__body table { display: table; font-size: 9.5pt; }
  .doc__body th { background: none; }
  .doc__body tr { break-inside: avoid; }
}
