/* The landing page. Loaded by home.html only, on top of app.css.

   The two dark bands (the hero and the last call) are dark in both colour
   schemes: they are the "window" the globe hangs in, not a theme. Everything
   between them uses app.css's tokens, so dark mode follows on its own.
   Class names carry a prefix (lp-, pass-, fit-, calc-, flow-, art-, mock-,
   ex-) so nothing here can leak into, or be leaked into from, the rest of
   the site. */

.landing {
  --hero-1: #3b2a1d;
  --hero-2: #1d1611;
  --hero-3: #110d0a;
  --hero-ink: #fbf3e7;
  --hero-ink-2: rgba(251, 243, 231, 0.74);
  --hero-ink-3: rgba(251, 243, 231, 0.52);
  --hero-line: rgba(251, 243, 231, 0.12);
  /* The brand red, lifted so it still reads on the dark bands. */
  --hero-accent: #ff5a4f;
  --lp-radius: 20px;
  --lp-shadow: 0 40px 80px -50px rgba(36, 28, 18, 0.5);
}

/* ------------------------------------------------------------ chrome */
.landing .topbar {
  background: var(--hero-2); border-bottom-color: var(--hero-line);
}
.landing .brand { color: var(--hero-ink); }
.landing .brand-name span { color: var(--hero-accent); }

.lp-nav { display: flex; align-items: center; gap: 18px; }
.lp-nav a {
  font-family: var(--display); font-size: 14px; font-weight: 600;
  color: var(--hero-ink-2); text-decoration: none;
}
.lp-nav a:hover { color: var(--hero-ink); }
.lp-nav .lp-nav-go {
  color: var(--hero-ink); padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(251, 243, 231, 0.3);
}
.lp-nav .lp-nav-go:hover { border-color: var(--hero-accent); }
@media (max-width: 400px) { .lp-nav { gap: 12px; } .lp-nav .lp-nav-go { padding: 6px 12px; } }

/* A customer's nav, here from the logo, on the dark bar. */
.landing .topbar nav a, .landing .topbar nav .link { color: var(--hero-ink-2); }
.landing .topbar nav a:hover, .landing .topbar nav .link:hover { color: var(--hero-ink); }
.landing .menu-btn { border-color: rgba(251, 243, 231, 0.3); }
.landing .bars span { background: var(--hero-ink-2); }
.landing .topbar[data-open] .menu-btn { background: rgba(251, 243, 231, 0.08); border-color: var(--hero-accent); }
@media (max-width: 719px) {
  /* Except in the folded menu, which is app.css's light panel. */
  .has-js .landing .topbar nav a, .has-js .landing .topbar nav .link { color: var(--ink-2); }
  .has-js .landing .topbar nav a:hover, .has-js .landing .topbar nav .link:hover { color: var(--accent); }
}

main.lp { padding: 0; max-width: none; }
main.lp > .messages { max-width: 1180px; margin: 22px auto; padding: 0 28px; }

.landing .foot { background: var(--bg); }

/* ------------------------------------------------------------ shared */
.lp-in { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.lp-sec { padding: clamp(72px, 10vw, 128px) 0; }

.lp-eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 16px;
}
.lp-h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(31px, 4.4vw, 52px); line-height: 1.04;
  letter-spacing: -0.032em; margin: 0 0 18px; max-width: 21ch;
  text-wrap: balance;
}
.lp-h3 {
  font-family: var(--display); font-weight: 700; font-size: 24px;
  letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 18px;
}
.lp-sub {
  font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2);
  max-width: 58ch; margin: 0 0 44px;
}

.lp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
  background: #dc2229; color: #fff;
  box-shadow: 0 12px 30px -10px rgba(220, 34, 41, 0.7),
              inset 0 -2px 0 rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s;
}
.lp-btn::after { content: "\2192"; transition: transform 0.15s ease; }
.lp-btn:hover { background: #e8323a; transform: translateY(-1px); }
.lp-btn:hover::after { transform: translateX(3px); }
.lp-btn:focus-visible { outline: 3px solid var(--hero-ink); outline-offset: 3px; }

.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.lp-quiet {
  font-family: var(--display); font-size: 15px; font-weight: 600;
  color: var(--hero-ink-2); text-decoration: underline;
  text-underline-offset: 4px; text-decoration-color: rgba(251, 243, 231, 0.3);
}
.lp-quiet:hover { color: var(--hero-ink); }

/* Revealed as they scroll in. The script adds .lp-anim only when motion is
   welcome, so with no script, or reduced motion, everything simply shows. */
.lp-anim .rv {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.lp-anim .rv.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ hero */
.lp-hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--hero-ink);
  background:
    radial-gradient(860px 640px at 74% 44%, var(--hero-1) 0%, rgba(59, 42, 29, 0) 70%),
    linear-gradient(180deg, var(--hero-2) 0%, var(--hero-3) 100%);
}
/* A faint grid of dots, strongest behind the globe. */
.lp-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(251, 243, 231, 0.09) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 45%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse at 72% 45%, #000 10%, transparent 70%);
}

.lp-hero-in {
  max-width: 1180px; margin: 0 auto; padding: 36px 28px 92px;
  display: grid; column-gap: 40px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "head visual" "body visual";
  align-items: center;
}
.lp-head { grid-area: head; align-self: end; padding-top: 30px; }
.lp-body { grid-area: body; align-self: start; }
.lp-visual { grid-area: visual; position: relative; }

.lp-kicker {
  display: flex; align-items: center; gap: 11px; margin: 0 0 22px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--hero-accent);
}
.lp-kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--hero-accent);
  box-shadow: 0 0 0 4px rgba(255, 90, 79, 0.18);
  animation: lp-blink 2.4s ease-in-out infinite;
}
@keyframes lp-blink { 50% { box-shadow: 0 0 0 7px rgba(255, 90, 79, 0.05); } }

.lp-hero h1 {
  font-family: var(--display); font-weight: 700; color: var(--hero-ink);
  /* Two lines, "You know where." over "We'll find when.": sized so the
     longer one still fits its column at every width. */
  font-size: clamp(40px, 4.9vw, 68px); line-height: 1;
  letter-spacing: -0.038em; margin: 0 0 30px;
  animation: lp-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.lp-find { display: inline-block; animation: lp-rise 0.9s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.lp-when { position: relative; color: var(--hero-accent); white-space: nowrap; }
.lp-swoosh {
  position: absolute; left: -3%; bottom: -0.2em; width: 106%; height: 0.3em;
  overflow: visible; pointer-events: none;
}
/* Drawn in from the left. Its resting state is drawn, and only the animation
   starts it hidden, so with motion off it is simply there. */
.lp-swoosh path {
  fill: none; stroke: var(--hero-accent); stroke-width: 4;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: lp-draw 0.9s 0.7s cubic-bezier(0.6, 0.1, 0.2, 1) both;
}
@keyframes lp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.lp-lede {
  font-size: clamp(17px, 1.55vw, 20px); line-height: 1.55;
  color: var(--hero-ink-2); max-width: 48ch; margin: 0 0 32px;
  animation: lp-rise 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.lp-lede strong { color: var(--hero-ink); font-weight: 600; }
.lp-body .lp-cta { animation: lp-rise 0.9s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.lp-facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 30px 0 0; padding: 0;
  font-family: var(--display); font-size: 14px; font-weight: 500;
  color: var(--hero-ink-2);
  animation: lp-rise 0.9s 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.lp-facts li { display: flex; align-items: center; gap: 8px; }
.lp-facts li::before {
  content: "\2713"; display: grid; place-items: center; flex: none;
  width: 18px; height: 18px; border-radius: 50%; font-size: 11px;
  background: rgba(255, 90, 79, 0.16); color: var(--hero-accent);
}

/* The globe. Sized by its column and always square. On a wide screen also by
   the screen's HEIGHT: the pass sits under it, and on a laptop (1366x657 to
   the browser, say) a globe sized by width alone pushed the pass off the
   bottom of the first screen. 370px is everything else in that column's
   height: the top bar, the hero's top padding and the pass. */
.lp-globe-wrap {
  position: relative; width: 100%; max-width: 540px; margin: 0 auto;
  aspect-ratio: 1 / 1;
  animation: lp-globe-in 1.4s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes lp-globe-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .lp-globe-wrap {
    max-width: clamp(300px, calc(100vh - 370px), 540px);
    max-width: clamp(300px, calc(100svh - 370px), 540px);
  }
}
/* A short, wide screen: less air above and below the hero, so the pass and
   the three facts fit on the first screen. Tall screens keep theirs. */
@media (min-width: 900px) and (max-height: 820px) {
  .lp-hero-in { padding-top: 16px; padding-bottom: 56px; }
  .lp-head { padding-top: 12px; }
}
/* The globe's own lines, dots and labels are route-globe.css, shared with
   the trip builder. */

/* ------------------------------------------------------ boarding pass */
/* The drop shadow sits on a wrapper: the pass itself is masked (the two
   notches at the tear), and a mask would clip its own shadow away. */
/* Under the globe with air between them: routes run left, right and down
   depending on the trip, and a pass beside it covered New York. The globe's
   box has room for its glow below the sphere, hence the negative margin. */
.pass-wrap {
  position: relative; z-index: 2; margin: -5% auto 0;
  width: clamp(290px, 26vw, 320px);
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.5));
  animation: lp-pass-in 1s 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes lp-pass-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
/* --tear is how far up from the bottom the dashed line is, where the two
   notches are cut: bottom padding + .pass-foot + the tear's bottom margin.
   The foot's line heights are fixed below so this sum holds. */
.pass {
  --tear: calc(100% - 114px);
  position: relative; color: #241c12; background: #fffaf2;
  border-radius: 16px; padding: 15px 18px 14px; transform: rotate(-1.5deg);
  -webkit-mask:
    radial-gradient(circle 9px at 0 var(--tear), transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 9px at 100% var(--tear), transparent 98%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle 9px at 0 var(--tear), transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 9px at 100% var(--tear), transparent 98%, #000) right / 51% 100% no-repeat;
}
.pass-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pass-label, .pass-k {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: #9c8a70;
}
/* Only once the globe is running: without it the buttons would do nothing. */
.pass-ctl { display: none; align-items: center; gap: 5px; }
.lp-globe-on .pass-ctl { display: flex; }
.pass-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: #e6d3b8; cursor: pointer; transition: width 0.25s, background-color 0.25s;
}
.pass-dot[aria-pressed="true"] { width: 20px; background: #d81f26; }
.pass-dot:focus-visible, .pass-pause:focus-visible { outline: 2px solid #d81f26; outline-offset: 2px; }
.pass-pause {
  display: grid; place-items: center; width: 22px; height: 22px; margin-left: 4px;
  padding: 0; border: 1px solid #e6d3b8; border-radius: 50%;
  background: none; cursor: pointer; color: #9c8a70;
}
.pass-pause svg { width: 11px; height: 11px; fill: currentColor; }
.pass-pause .i-play { display: none; }
.pass-pause[aria-pressed="true"] .i-play { display: inline; }
.pass-pause[aria-pressed="true"] .i-pause { display: none; }

.pass-city {
  font-family: var(--display); font-weight: 700; font-size: 27px;
  letter-spacing: -0.025em; line-height: 1.1; margin: 8px 0 2px;
}
/* The trip in one line, and the point of the product ("any day in
   February"), so it reads at a glance rather than as small print
   (2 October). Two lines kept free so the ticket does not jump between
   examples. */
.pass-when {
  font-family: var(--display); font-weight: 600; font-size: 15.5px;
  line-height: 1.35; color: #241c12; margin: 4px 0 14px;
  min-height: 2.7em;
}
.pass-route { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 10px; }
.pass-leg { display: grid; gap: 3px; }
.pass-to { text-align: right; }
.pass-codes {
  display: flex; gap: 6px; font-family: var(--mono); font-weight: 600;
  font-size: 17px; letter-spacing: 0.02em; line-height: 1.1;
}
.pass-to .pass-codes { justify-content: flex-end; color: #d81f26; font-size: 21px; }
.pass-line {
  position: relative; height: 22px; display: grid; place-items: center;
  margin-bottom: 1px;
}
.pass-line::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1.5px dashed #d9c3a2;
}
.pass-line svg {
  position: relative; width: 20px; height: 20px; fill: #d81f26;
  background: #fffaf2; padding: 0 3px; box-sizing: content-box;
}
.pass-tear { margin: 15px -18px 12px; border-top: 2px dashed #eadbc4; }
/* Each column as wide as its words, so neither label breaks onto two lines.
   The ticket's punchline, so it is the loudest part of it (2 October): this
   many combinations, every day, for this little. A tinted panel, the numbers
   big on a line of their own, the price in the brand red. */
.pass-foot {
  display: grid; grid-template-columns: auto auto; justify-content: space-between;
  gap: 12px; margin: 0 -8px; padding: 12px 14px 13px;
  background: #fcebe6; border-radius: 12px;
}
/* 12 + 3 + 30 + 1 + 16 = 62 a column, 87 with the padding: see --tear. */
.pass-foot > div { display: grid; gap: 3px; }
.pass-foot > div + div { text-align: right; }
.pass-foot .pass-k { color: #b0523f; line-height: 12px; white-space: nowrap; }
.pass-v { font-family: var(--display); font-size: 13px; line-height: 16px; color: #6b5a45; }
.pass-v strong {
  display: block; margin-bottom: 1px; font-size: 30px; font-weight: 700;
  line-height: 30px; color: #241c12; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.pass-foot > div + div .pass-v strong { color: #d81f26; }

/* Swapping one example for the next. */
.pass [data-f] { transition: opacity 0.22s ease, transform 0.22s ease; }
.pass.swap [data-f] { opacity: 0; transform: translateY(5px); }

/* ------------------------------------------------------ hero on phones */
@media (max-width: 899px) {
  .lp-hero-in {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "visual" "body";
    padding: 24px 20px 64px;
  }
  .lp-head { padding-top: 12px; }
  .lp-hero h1 { margin-bottom: 8px; font-size: clamp(38px, 10.4vw, 64px); }
  .lp-visual { width: 100%; max-width: 480px; margin: 0 auto; }
  .lp-globe-wrap { width: 88%; }
  /* Smaller on a phone, so the globe stays the picture and the pass the
     caption. */
  .pass-wrap { width: auto; max-width: 300px; margin: -3% auto 0; }
  /* 12 bottom padding + 76 foot + 10 tear margin + 1. */
  .pass { padding: 13px 15px 12px; --tear: calc(100% - 99px); }
  .pass-city { font-size: 22px; margin-top: 6px; }
  .pass-when { font-size: 14.5px; margin-bottom: 11px; }
  .pass-codes { font-size: 15px; }
  .pass-to .pass-codes { font-size: 18px; }
  .pass-tear { margin: 12px -15px 10px; }
  /* 12 + 3 + 24 + 1 + 15 = 55 a column, 76 with the padding. */
  .pass-foot { padding: 10px 12px 11px; margin: 0 -6px; }
  .pass-v { font-size: 12px; line-height: 15px; }
  .pass-v strong { font-size: 24px; line-height: 24px; }
  .lp-body { margin-top: 36px; }
}
@media (max-width: 620px) {
  .lp-in { padding: 0 20px; }
  main.lp > .messages { padding: 0 20px; }
}

/* Dark (data-theme on <html>, see app.css). The "Is this for you?" cards
   that shared these rules were taken off the page on 2 October. */
:where([data-theme="dark"]) .calc-us { border: 1px solid var(--accent); }
/* The warm brown shadows are lighter than the dark page, and read as a
   glow rather than depth. */
:where([data-theme="dark"]) .landing { --lp-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.8); }

/* ------------------------------------------------------------ the sum */
.lp-math { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 26px; padding: clamp(22px, 4vw, 44px);
  box-shadow: var(--lp-shadow);
}
.calc-sum {
  display: grid; align-items: start; gap: 10px;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1.1fr;
}
.calc-f { display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; text-align: center; }
.calc-n { display: flex; align-items: center; gap: 12px; }
.calc-n output {
  font-family: var(--display); font-weight: 700; line-height: 1;
  font-size: clamp(42px, 5.4vw, 68px); letter-spacing: -0.045em;
  min-width: 1.3ch; text-align: center; font-variant-numeric: tabular-nums;
}
.calc-total output { color: var(--accent); }
.calc-b {
  display: none; place-items: center; width: 38px; height: 38px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); cursor: pointer;
  font-family: var(--display); font-size: 20px; line-height: 1;
  transition: border-color 0.15s, color 0.15s, transform 0.1s;
}
.lp-js .calc-b { display: grid; }
.calc-b:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.calc-b:active:not(:disabled) { transform: scale(0.94); }
.calc-b:disabled { opacity: 0.3; cursor: default; }
.calc-op {
  font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1; color: var(--ink-3); padding-top: clamp(4px, 1vw, 14px);
}
.calc-l {
  font-family: var(--display); font-size: 14px; font-weight: 500;
  line-height: 1.3; color: var(--ink-2); max-width: 15ch;
}

.calc-board {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
  gap: 22px 30px; margin: 40px 0 14px; min-height: 60px;
}
.mx { display: grid; gap: 9px; justify-items: center; }
.mx-code { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-3); }
.mx-grid { display: grid; grid-template-columns: repeat(var(--cols), var(--dot)); gap: var(--gap); }
.mx-grid i {
  display: block; width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--line); transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s;
}
.mx-grid i.q { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.mx-grid i.t1 { background: #b88a58; }
.mx-grid i.t2 { background: #cfa878; }
.mx-grid i.t3 { background: #e2c7a2; }
.mx-grid i.t4 { background: #efdfc8; }
.mx-grid i.best {
  background: var(--accent); transform: scale(1.45);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 14px rgba(216, 31, 38, 0.65);
}
:where([data-theme="dark"]) .mx-grid i.t1 { background: #c79a66; }
:where([data-theme="dark"]) .mx-grid i.t2 { background: #9c774f; }
:where([data-theme="dark"]) .mx-grid i.t3 { background: #6e553a; }
:where([data-theme="dark"]) .mx-grid i.t4 { background: #4a3a29; }
.calc-legend {
  display: none; text-align: center; font-size: 14px; color: var(--ink-3);
  max-width: 60ch; margin: 0 auto 34px;
}
.lp-js .calc-legend { display: block; }
.calc-red { color: var(--accent); font-weight: 600; }

.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.lp-js .calc-out { margin-top: 0; }
.calc-row { display: grid; gap: 4px; align-content: start; border-radius: 16px; padding: 20px 22px; }
.calc-k {
  font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; opacity: 0.72;
}
.calc-row strong {
  font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 40px);
  letter-spacing: -0.035em; line-height: 1.08; font-variant-numeric: tabular-nums;
}
.calc-s { font-size: 14.5px; line-height: 1.45; opacity: 0.8; }
.calc-hand { background: var(--surface-2); }
.calc-hand strong { color: var(--ink-2); }
.calc-win { background: var(--good-soft); }
.calc-win strong { color: var(--good); }
.calc-us { background: var(--hero-2); color: var(--hero-ink); }
.calc-us strong { color: var(--hero-accent); }
.calc-cap { color: var(--hero-accent); opacity: 1; }
.calc-cap[hidden] { display: none; }
.calc-us.over strong { font-size: 26px; }

@media (max-width: 860px) {
  .calc-sum { grid-template-columns: 1fr; gap: 0; }
  .calc-op { display: none; }
  .calc-f {
    flex-direction: row; justify-content: space-between; text-align: left;
    padding: 14px 0; border-bottom: 1px solid var(--line);
  }
  .calc-l { font-size: 15.5px; max-width: 18ch; }
  .calc-f + .calc-op + .calc-f .calc-l::before { content: "\00d7  "; color: var(--ink-3); }
  .calc-total { border-bottom: 0; }
  .calc-sum .calc-f.calc-total .calc-l::before { content: "=  "; color: var(--ink-3); }
  .calc-n output { font-size: 40px; }
  .calc-total output { font-size: 48px; }
  .calc-out { grid-template-columns: 1fr; }
  .calc-board { gap: 18px 22px; margin-top: 28px; }
}

/* ------------------------------------------------------------ how */
.lp-how { background: var(--bg); }
.flow {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; gap: clamp(64px, 9vw, 120px);
}
.flow-step {
  display: grid; align-items: center; gap: clamp(28px, 5.5vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
}
.flow-step:nth-child(even) .flow-text { order: 2; }
.flow-n {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px;
  border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent);
  font-family: var(--display); font-weight: 700; font-size: 18px;
}
.flow-text h3 {
  font-family: var(--display); font-weight: 700; margin: 0 0 16px;
  font-size: clamp(25px, 2.7vw, 34px); line-height: 1.1;
  letter-spacing: -0.025em; text-wrap: balance;
}
.flow-text p { font-size: 17.5px; color: var(--ink-2); margin: 0; max-width: 46ch; }
.flow-art { position: relative; }

.art {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--lp-radius); padding: 26px; box-shadow: var(--lp-shadow);
}
.art-cap {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px;
}
.madlib { margin: 0; display: grid; gap: 13px; }
.madlib > div {
  display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 12px;
  padding-bottom: 13px; border-bottom: 1px dashed var(--line-strong);
}
.madlib > div:last-child { padding-bottom: 0; border-bottom: 0; }
.madlib dt { font-family: var(--display); font-size: 14px; color: var(--ink-3); }
.madlib dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-lp {
  display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px;
  background: var(--accent-soft); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 15px;
}
.chip-dest { background: #dc2229; color: #fff; }
.chip-code { font-family: var(--mono); font-weight: 500; font-size: 13.5px; background: var(--surface-2); }

.limits { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; }
.limits li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--display); font-size: 14px; font-weight: 500;
}
.limits li::before { content: "\2713"; color: var(--good); font-weight: 700; }
.limits li.limit-no::before { content: "\2715"; color: var(--risk); }
.art-quote {
  display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px;
  background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: 14px;
}
.art-quote > div { display: grid; gap: 2px; }
.art-quote > div + div { text-align: right; }
.art-quote strong {
  font-family: var(--display); font-weight: 700; font-size: 30px;
  letter-spacing: -0.03em; line-height: 1.05;
}
.art-quote span { font-size: 13.5px; color: var(--ink-2); }

/* The trip page, in miniature. The same parts as the real one. */
.art-page { padding: 0; overflow: hidden; }
.mock-hero {
  position: relative; isolation: isolate; height: 118px; padding: 14px 18px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  background: linear-gradient(135deg, var(--dest-from, #b8452f), var(--dest-to, #3a1c12));
}
.mock-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.mock-hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.15) 75%);
}
.mock-hero p { margin: 0; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.mock-place { font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.mock-title { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.015em; }
.mock-route { font-size: 13px; opacity: 0.9; }
.mock-body { display: grid; gap: 14px; padding: 16px 18px 18px; }
.mock-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.mock-stats > div { display: grid; gap: 2px; padding: 10px 12px; background: var(--surface); }
.mk { font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.mv { font-family: var(--display); font-size: 23px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.mv.down { color: var(--good); }
.ms { font-size: 11.5px; color: var(--ink-3); }
.mock-chart { display: block; width: 100%; height: auto; overflow: visible; }
.area-top { stop-color: var(--accent); stop-opacity: 0.18; }
.area-bottom { stop-color: var(--accent); stop-opacity: 0; }
.mock-area { fill: url(#lp-area); }
.mock-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.mock-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.mock-thr { stroke: var(--warn); stroke-width: 1.3; stroke-dasharray: 4 4; }
.mock-thr-l { font-family: var(--mono); font-size: 9.5px; fill: var(--warn); }
.mock-opts { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mock-opts td { padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mock-opts tr:last-child td { border-bottom: 0; }
.mock-opts tr.best td { background: var(--accent-soft); }
.mock-opts .mp { font-family: var(--display); font-weight: 700; font-size: 14px; }
.mock-opts .mr { font-family: var(--mono); font-size: 11.5px; }
.mock-tag {
  display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 3px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--accent); color: var(--accent-ink); vertical-align: 1px;
}

/* The email, arriving. */
/* Over the corner of the photograph, where it hides nothing that matters. */
.mock-mail {
  position: absolute; right: -22px; top: -26px; z-index: 2;
  display: flex; align-items: center; gap: 12px; max-width: 300px;
  padding: 12px 16px 12px 12px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px -18px rgba(36, 28, 18, 0.55);
}
.lp-anim .mock-mail.rv { transform: translate(24px, 8px); }
.lp-anim .mock-mail.rv.in { transform: none; }
.mail-ico {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: #dc2229;
}
.mail-ico svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.mail-txt { display: grid; gap: 1px; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.mail-txt b { font-family: var(--display); font-size: 12px; color: var(--ink-3); }
.art-foot { margin: 14px 4px 0; font-size: 13px; color: var(--ink-3); }

@media (max-width: 860px) {
  .flow-step { grid-template-columns: minmax(0, 1fr); }
  .flow-step:nth-child(even) .flow-text { order: 0; }
  .art { padding: 20px; }
  .art-page { padding: 0; }
  .mock-mail { position: relative; right: auto; top: auto; margin: -26px 10px 0 auto; }
}
@media (max-width: 420px) {
  .madlib > div { grid-template-columns: 70px 1fr; }
  .mock-opts td:nth-child(4) { display: none; }
}

/* ------------------------------------------------------------ examples */
/* Page background since 2 October, when the sum moved below "How it works"
   and became the white section above this one: sections alternate. */
.lp-trips { background: var(--bg); }
.ex { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ex-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--lp-radius);
}
.lp-anim .ex-card.rv.in { transition-property: opacity, transform, box-shadow; }
.ex-card:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow); }
.ex-pic {
  position: relative; isolation: isolate; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, var(--dest-from, #b8452f), var(--dest-to, #3a1c12));
}
.ex-pic img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ex-card:hover .ex-pic img { transform: scale(1.06); }
.ex-pic::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 55%);
}
.ex-route {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
/* Attribution: required by the licences, so quiet rather than gone. */
.ex-credit {
  position: absolute; right: 0; top: 0; margin: 0; max-width: 78%;
  padding: 3px 7px 4px; border-radius: 0 0 0 7px;
  font-size: 9px; line-height: 1.3; text-align: right;
  color: rgba(255, 255, 255, 0.6); background: rgba(0, 0, 0, 0.28);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ex-credit:hover, .ex-credit:focus-within { color: #fff; background: rgba(0, 0, 0, 0.5); white-space: normal; }
.ex-credit a { color: inherit; text-decoration: none; }
.ex-credit a:hover, .ex-credit a:focus { text-decoration: underline; }
.ex-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 18px 20px; }
.ex-city {
  margin: 0; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.ex-body h3 {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.018em; line-height: 1.15;
}
.ex-when { margin: 2px 0 0; font-size: 15px; line-height: 1.45; }
.ex-from { margin: 0; font-size: 14px; color: var(--ink-2); }
.ex-sum { margin: auto 0 0; padding-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.ex-price {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 4px 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.ex-price strong { font-family: var(--display); font-size: 17px; color: var(--ink); }

@media (max-width: 1080px) { .ex { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  /* A row to swipe, one card and a peek of the next. */
  .ex {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -20px; padding: 4px 20px 18px;
  }
  .ex::-webkit-scrollbar { display: none; }
  .ex-card { flex: 0 0 82%; scroll-snap-align: center; }
}

/* ------------------------------------------------------------ price */
.lp-price { background: var(--surface); border-top: 1px solid var(--line); }
.lp-split {
  display: grid; align-items: start; gap: clamp(36px, 6vw, 96px);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}
.lp-price-card {
  position: relative; overflow: hidden; margin-top: 30px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 24px; padding: 34px 32px 32px; box-shadow: var(--lp-shadow);
}
.lp-price-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #dc2229, #ff7a52);
}
.lp-price-big {
  font-family: var(--display); font-weight: 700; line-height: 0.9;
  font-size: clamp(66px, 8vw, 96px); letter-spacing: -0.055em;
}
.lp-price-per { margin: 10px 0 22px; font-size: 15px; color: var(--ink-3); }
.lp-price-card ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.lp-price-card li { display: flex; gap: 10px; }
.lp-price-card li::before { content: "\2713"; color: var(--good); font-weight: 700; }
.lp-price-note { margin: 0 0 26px; font-size: 14px; color: var(--ink-3); }

.lp-plain { padding-top: 6px; }
.lp-plain > p { font-size: 16.5px; color: var(--ink-2); max-width: 60ch; }
.lp-plain > p strong { color: var(--ink); }
.lp-faq { margin-top: 30px; border-bottom: 1px solid var(--line); }
.lp-faq details { border-top: 1px solid var(--line); }
.lp-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 17px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+"; flex: none; font-size: 24px; line-height: 1; color: var(--accent);
  transition: transform 0.2s ease;
}
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq summary:hover { color: var(--accent); }
.lp-faq details p { margin: -4px 0 20px; font-size: 16px; color: var(--ink-2); max-width: 60ch; }

@media (max-width: 860px) { .lp-split { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ last call */
.lp-end {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(88px, 13vw, 160px) 0; color: var(--hero-ink);
  background:
    radial-gradient(900px 420px at 50% 115%, #5a2c1f 0%, rgba(90, 44, 31, 0) 70%),
    var(--hero-3);
}
/* A faint grid of dots drifting behind it all, as on log in and sign up. */
.lp-end::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(251, 243, 231, 0.08) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 60%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 60%, #000 15%, transparent 75%);
  animation: dots-drift 6s linear infinite;
}
/* The dotted routes flow, and flights cross them one after another so one is
   always in the air. The keyframes are app.css's. */
.lp-end-arcs { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.lp-end-arcs .arc-base {
  fill: none; stroke: rgba(255, 90, 79, 0.45); stroke-width: 2; stroke-dasharray: 4 10;
  animation: arc-march 1.4s linear infinite;
}
.lp-end-arcs .arc-fly {
  fill: none; stroke: #ff5a4f; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 12 188; animation: arc-cross 6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 90, 79, 0.85));
}
.lp-end-arcs .arc-fly-2 { animation-duration: 7.5s; animation-delay: -2.5s; }
.lp-end-arcs .arc-fly-3 { animation-duration: 9s; animation-delay: -6s; }
.lp-end h2 {
  font-family: var(--display); font-weight: 700; margin: 0 auto 26px;
  font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.04em;
}
.lp-end p { margin: 0 auto 36px; max-width: 52ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--hero-ink-2); }
.lp-end p strong { color: var(--hero-ink); font-weight: 600; }
/* Down here the page has long since loaded, so the underline draws when the
   heading scrolls in rather than on load. */
.lp-end .lp-swoosh path { animation: none; transition: stroke-dashoffset 0.9s 0.45s cubic-bezier(0.6, 0.1, 0.2, 1); }
.lp-anim .lp-end .rv:not(.in) .lp-swoosh path { stroke-dashoffset: 1; }
.lp-end .lp-cta { justify-content: center; }

/* ------------------------------------------------------------ phone bar */
.lp-sticky { display: none; }
@media (max-width: 719px) {
  .lp-js .lp-sticky {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 8px 8px 20px; border-radius: 999px;
    background: rgba(29, 22, 17, 0.94); color: var(--hero-ink);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
    font-family: var(--display); font-size: 14px;
    transform: translateY(150%); visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s 0.35s;
  }
  .lp-js .lp-sticky.show { transform: none; visibility: visible; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .lp-sticky strong { color: var(--hero-accent); }
  .lp-sticky .lp-btn { padding: 11px 18px; font-size: 14.5px; box-shadow: none; }
}

/* ------------------------------------------------------------ motion off */
@media (prefers-reduced-motion: reduce) {
  .lp-anim .rv, .lp-anim .mock-mail.rv { opacity: 1; transform: none; }
  .lp-swoosh path { stroke-dashoffset: 0; }
}
