/* NDC Deals — Fare Board
   Dense B2B ops aesthetic. Inspired by FIDS screens + agent workstations.
   Not soft SaaS cream, not acid-dark startup. */

:root {
  --ink: #0a1628;
  --ink-soft: #1c2b3a;
  --paper: #f0f2f5;
  --sheet: #ffffff;
  --line: #d5dbe3;
  --line-strong: #a8b3c0;
  --mute: #5c6b7a;
  --green: #0a7a52;
  --green-deep: #065c3d;
  --green-soft: #e6f5ef;
  --amber: #d97706;
  --amber-soft: #fff7ed;
  --navy: #0a1628;
  --navy-2: #132337;
  --danger: #b91c1c;
  --ok: #0a7a52;

  /* Modern product UI — not condensed/newspaper */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Inter", system-ui, sans-serif;

  --max: 1120px;
  --nav-h: 64px;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--green-deep);
  text-underline-offset: 2px;
}
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.45em;
  text-transform: none;
}

p { margin: 0 0 1em; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
}

.site-footer .logo img { height: 80px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 0.4rem 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 3px 0;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--sheet);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.btn-amber {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}
.btn-amber:hover {
  background: #b45309;
  border-color: #b45309;
  color: #fff;
  text-decoration: none;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

.btn-block { width: 100%; }

/* ——— Hero ——— */
.hero {
  background: var(--navy);
  color: #e8eef4;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* The photo bleeds to the right edge of the viewport. Its left edge feathers into the
   navy so the copy always sits on a quiet ground, whatever the viewport width. */
.hero-visual {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 44%;
  right: 0;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.28) 0%, rgba(10, 22, 40, 0) 35%, rgba(10, 22, 40, 0.5) 100%);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 34rem) 1fr;
  gap: 2rem;
  align-items: end;
  min-height: 560px;
  padding: 3.25rem 0 2rem;
}

.hero-copy {
  align-self: center;
  padding: 0 0 0.5rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #9bb0c2;
  margin-bottom: 1rem;
}

.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(10, 122, 82, 0.35);
}

.hero h1 {
  font-size: clamp(2.15rem, 4.5vw, 3.1rem);
  color: #fff;
  margin-bottom: 0.85rem;
  max-width: 20ch;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero h1 .hl {
  color: #3dd68c;
  display: inline;
  white-space: nowrap;
}

.hero-lead {
  font-size: 1.05rem;
  color: #a8b8c8;
  max-width: 36ch;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 1.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto; /* icon, title, line: rows align across the three points */
  gap: 0 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-points li {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 0.3rem;
  align-content: start;
  min-width: 0;
}

.hp-icon {
  width: 26px;
  height: 26px;
  color: #3dd68c;
  margin-bottom: 0.2rem;
}

.hero-points strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-points span {
  font-size: 0.78rem;
  color: #8496a8;
  line-height: 1.4;
}

/* One honest fact over the photo: the live carrier count, linking to the list. */
.hero-chip {
  justify-self: end;
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.7rem 0.95rem;
  background: rgba(7, 16, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r);
  color: #cfd9e3;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.3;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-chip-n {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.hero-chip strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #3dd68c;
}

.hero-chip:hover,
.hero-chip:focus-visible {
  border-color: #3dd68c;
  color: #fff;
}

/* Full-width airline logo carousel */
.carrier-strip {
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  overflow: hidden;
}

.logo-carousel {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  animation: logo-scroll 45s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-slide {
  flex: 0 0 auto;
  width: 150px;
  height: 62px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
}

.logo-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .logo-carousel { mask-image: none; -webkit-mask-image: none; overflow: visible; padding: 0 1rem; }
}

/* ——— Sections ——— */
.section {
  padding: 3.5rem 0;
}

.section-tight {
  padding: 2.75rem 0;
}

.section-dark {
  background: var(--navy);
  color: #e8eef4;
}

.section-sheet {
  background: var(--sheet);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Switch checklist — full section photo background */
.section-switch {
  position: relative;
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.section-switch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(240, 242, 245, 0.94) 0%,
      rgba(240, 242, 245, 0.88) 45%,
      rgba(240, 242, 245, 0.92) 100%
    ),
    url("../assets/images/bg-switch.jpg") center / cover no-repeat;
}

.section-switch .section-head-on-photo {
  max-width: 36rem;
}

.section-switch .section-head-on-photo h2 {
  color: var(--ink);
}

.section-switch .compare-wrap {
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.1);
  background: rgba(255, 255, 255, 0.97);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-dark .section-head h2 { color: #fff; }

.section-head p {
  color: var(--mute);
  font-size: 1rem;
  margin: 0;
  max-width: 48ch;
}

.section-dark .section-head p { color: #8fa0b0; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
  display: block;
}

.section-dark .eyebrow { color: #3dd68c; }

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.split-head .section-head { margin-bottom: 0; }

/* ——— Steps (process, numbers OK) ——— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--sheet);
  border-radius: var(--r);
  overflow: hidden;
}

.step-card {
  padding: 1.5rem 1.35rem;
  border-right: 1px solid var(--line);
  background: var(--sheet);
}

.step-card:last-child { border-right: none; }

.step-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green);
  margin-bottom: 0.55rem;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mute);
  line-height: 1.55;
}

/* ——— Comparison tables ——— */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sheet);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.compare-table th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.compare-table th.highlight {
  background: var(--green);
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table td:first-child {
  font-weight: 700;
  color: var(--ink-soft);
  width: 18%;
  font-size: 0.85rem;
}

.compare-table td.highlight {
  background: var(--green-soft);
  font-weight: 500;
}

/* ——— Feature tabs ——— */
.tabs {
  display: grid;
  grid-template-columns: 200px 1fr;
  border: 1px solid var(--line);
  background: var(--sheet);
  border-radius: var(--r);
  overflow: hidden;
  min-height: 240px;
}

.tab-list {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  gap: 0.25rem;
  border-right: 1px solid var(--line);
}

.tab-btn {
  background: transparent;
  border: none;
  text-align: left;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mute);
  cursor: pointer;
  border-radius: var(--r);
}

.tab-btn[aria-selected="true"] {
  background: var(--green);
  color: #fff;
}

.tab-btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.tab-panels { padding: 1.5rem 1.75rem; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.tab-panel li {
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ——— Accordion ——— */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sheet);
}

.acc-item {
  border-bottom: 1px solid var(--line);
  background: var(--sheet);
}

.acc-item:last-child { border-bottom: none; }

.acc-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 0.95rem 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.acc-trigger:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.acc-icon {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  color: var(--mute);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  line-height: 1;
}

.acc-item.open .acc-icon {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.acc-panel {
  display: none;
  padding: 0 1.1rem 1.1rem;
  color: var(--mute);
  font-size: 0.92rem;
}

.acc-item.open .acc-panel { display: block; }

.acc-panel ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

/* FAQ answers are stored as HTML (paragraphs, links, screenshots from the old site) */
.acc-answer p { margin: 0 0 0.7em; }
.acc-answer p:last-child { margin-bottom: 0; }
.acc-answer a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; }
.acc-answer img {
  display: block;
  max-width: min(100%, 720px);
  height: auto;
  margin: 0.75rem 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sheet);
}

/* ——— Timeline ——— */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sheet);
}

.tl-card {
  padding: 1.15rem;
  border-right: 1px solid var(--line);
  background: var(--sheet);
}

.tl-card:last-child { border-right: none; }

.tl-year {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 0.5rem;
  display: block;
}

.tl-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.tl-card p {
  font-size: 0.82rem;
  color: var(--mute);
  margin: 0;
  line-height: 1.45;
}

/* ——— Videos ——— */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.video-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
}

.video-card .cap {
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

/* ——— Blog cards ——— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.blog-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s;
}

.blog-card:hover {
  border-color: var(--green);
  color: inherit;
  text-decoration: none;
}

.blog-card-img {
  aspect-ratio: 16/9;
  background: var(--navy);
  object-fit: cover;
  width: 100%;
}

.blog-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
}

.blog-card p {
  color: var(--mute);
  font-size: 0.88rem;
  margin: 0;
  flex: 1;
}

/* ——— Offers ——— */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.offer-pass {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s;
}

.offer-pass:hover {
  border-color: var(--amber);
  text-decoration: none;
  color: inherit;
}

.offer-pass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 110px;
  background: var(--navy);
}

.offer-pass-body {
  padding: 1rem 1.1rem;
  border-left: 1px dashed var(--line);
}

.offer-pass-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 700;
}

.offer-pass-body p {
  font-size: 0.88rem;
  color: var(--mute);
  margin: 0;
}

/* ——— Contact form ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.form {
  background: var(--navy);
  color: #e8eef4;
  padding: 1.5rem;
  border-radius: var(--r);
}

.form h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.form .sub {
  color: #8fa0b0;
  font-size: 0.9rem;
  margin-bottom: 1.15rem;
}

.form-row { margin-bottom: 0.85rem; }

.form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d93a8;
  margin-bottom: 0.3rem;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form input::placeholder,
.form textarea::placeholder { color: rgba(255,255,255,0.35); }

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 0;
  border-color: transparent;
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.form-msg {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-msg.ok { color: #3dd68c; }
.form-msg.err { color: #fca5a5; }

/* ——— Footer ——— */
.site-footer {
  background: #060d16;
  color: #8fa0b0;
  padding: 2.75rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer .logo {
  margin-bottom: 1rem;
}

.site-footer p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 32rem;
  margin: 0;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  color: #8fa0b0;
  text-decoration: none;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.footer-col a:hover { color: #3dd68c; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* ——— Modal ——— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 22, 0.72);
}

.modal-panel {
  position: relative;
  width: min(100%, 400px);
  background: var(--sheet);
  border-radius: var(--r);
  padding: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--mute);
}

.modal-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.modal-panel .sub {
  color: var(--mute);
  font-size: 0.9rem;
  margin-bottom: 1.15rem;
}

.modal .form-row label { color: var(--mute); }

.modal input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.modal input:focus {
  outline: 2px solid var(--green);
  border-color: transparent;
}

/* ——— Inner page hero ——— */
.page-hero {
  background: var(--navy);
  color: #e8eef4;
  padding: 2.5rem 0 2.25rem;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  color: #fff;
  margin-bottom: 0.4rem;
}

.page-hero p {
  color: #8fa0b0;
  max-width: 42rem;
  margin: 0;
  font-size: 1rem;
}

.page-hero a { color: #3dd68c; }

/* ——— Prose ——— */
.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 1.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
}

.prose img {
  border-radius: var(--r);
  margin: 1rem 0;
  border: 1px solid var(--line);
}

/* ——— Airlines page ———
   Rows on a hairline board, grouped by status. Live = green, in progress = amber and
   desaturated until hovered. Logos of any shape or resolution sit in a fixed slot. */
.page-hero .eyebrow { color: #3dd68c; }

/* Airlines heading: tails at the gates behind the text, faded to navy on the left. */
.page-hero-airlines {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 3rem 0 2.75rem;
}

.page-hero-airlines::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 22, 40, 0.97) 0%, rgba(10, 22, 40, 0.86) 42%, rgba(10, 22, 40, 0.38) 100%),
    url("../assets/images/bg-airlines.jpg") right center / cover no-repeat;
}

@media (max-width: 960px) {
  .page-hero-airlines::before {
    background:
      linear-gradient(90deg, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.82) 55%, rgba(10, 22, 40, 0.55) 100%),
      url("../assets/images/bg-airlines-960.jpg") 70% center / cover no-repeat;
  }
}

.airline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.airline-stats .stat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.82rem;
  color: #cfd9e3;
}

.airline-stats .stat::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dd68c;
}

.airline-stats .stat.prog::before { background: var(--amber); }

.airline-stats b {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

.airline-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.airline-search { flex: 1 1 260px; }

.airline-search input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.airline-search input:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.airline-group { margin-bottom: 2.25rem; }

.airline-group h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  margin: 0 0 0.9rem;
}

.airline-group h2::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.airline-group.in_progress h2::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

.airline-group h2 small {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--mute);
}

/* Rows on a hairline board. The logo sits in a fixed slot (112×48) and shrinks to fit in
   whichever direction is tighter, so any shape or resolution reads the same; row height comes
   from the text, never from the image. */
.airline-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.airline-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  min-width: 0;
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
}

.airline-logo {
  flex: none;
  width: 112px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The image box is exactly the slot (flex, not grid: an auto grid track would grow to the
   bitmap's own height). scale-down fits the bitmap inside in whichever direction is tighter
   and never enlarges a small source. */
.airline-logo img {
  display: block;
  flex: none;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: scale-down;
}

.airline-logo.nologo::after {
  content: attr(data-code);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.airline-board.in_progress .airline-logo img {
  filter: grayscale(1);
  opacity: 0.6;
}

.airline-board.in_progress .airline-row:hover .airline-logo img {
  filter: none;
  opacity: 1;
}

.airline-text {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.airline-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--ink);
}

.airline-code {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.airline-status {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 600;
}

.airline-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.airline-status.in_progress {
  background: var(--amber-soft);
  color: #92400e;
}

.airline-status.in_progress::before { background: var(--amber); }

.airline-empty { color: var(--mute); }

@media (max-width: 960px) {
  .airline-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .airline-board { grid-template-columns: 1fr; }
  .airline-row { gap: 0.75rem; padding: 0.65rem 0.8rem; }
  .airline-logo { width: 96px; height: 42px; }
  .airline-status { font-size: 0.68rem; }
}

/* ——— How NDC works ——— */
.page-hero-how {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 3.25rem 0 2.5rem;
}

.page-hero-how::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 22, 40, 0.97) 0%, rgba(10, 22, 40, 0.88) 45%, rgba(10, 22, 40, 0.45) 100%),
    url("../assets/images/bg-how.jpg") center 40% / cover no-repeat;
}

.page-hero-how h1 { max-width: 22ch; }
.page-hero-how p { max-width: 46rem; }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.jump a {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cfd9e3;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.jump a:hover,
.jump a:focus-visible {
  color: #fff;
  border-color: #3dd68c;
}

/* definition strip */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.5rem 0 0;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.facts > div {
  padding: 1rem 1.1rem;
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
}

.facts dt {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.facts dd {
  margin: 0;
  font-size: 0.86rem;
  color: var(--mute);
  line-height: 1.45;
}

/* the chain: who sits between the airline and the traveller */
.chain {
  display: grid;
  gap: 1rem;
}

.chain-row {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.chain-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
}

.chain-row h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin: 0;
}

.chain-row h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

.chain-row.ndc h3::before {
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.chain-row .chain-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--mute);
  line-height: 1.45;
  max-width: 70ch;
}

.chain-nodes {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.node {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.55rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
}

.node svg {
  width: 20px;
  height: 20px;
  grid-row: span 2;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--mute);
}

.node svg.solid {
  fill: currentColor;
  stroke: none;
}

.node b {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.node span {
  font-size: 0.7rem;
  color: var(--mute);
  line-height: 1.2;
}

.hop {
  flex: none;
  min-width: 44px;
  padding: 0 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--line-strong);
}

.hop svg {
  width: 26px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hop i {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: #92400e;
}

.chain-row.legacy .node.mid { border-style: dashed; }
.chain-row.legacy .hop { color: var(--amber); }

.chain-row.ndc .node {
  border-color: var(--green);
  background: var(--green-soft);
}

.chain-row.ndc .node svg { color: var(--green-deep); }

.chain-row.ndc .node.hub {
  background: var(--navy);
  border-color: var(--navy);
}

.chain-row.ndc .node.hub b,
.chain-row.ndc .node.hub span,
.chain-row.ndc .node.hub svg { color: #fff; }

.chain-row.ndc .hop { color: var(--green); }
.chain-row.ndc .hop i { color: var(--green-deep); }

/* order flow: five stops on one route, dark band */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 1.25rem;
  counter-reset: stop;
}

.flow li {
  position: relative;
  padding-top: 2.5rem;
  min-width: 0;
}

.flow li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 36px;
  right: -1.25rem;
  border-top: 2px dashed rgba(61, 214, 140, 0.45);
}

.flow li:last-child::before { display: none; }

.flow li::after {
  counter-increment: stop;
  content: counter(stop);
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3dd68c;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.flow h3 {
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.35rem;
}

.flow code {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  color: #3dd68c;
  background: rgba(61, 214, 140, 0.1);
  border: 1px solid rgba(61, 214, 140, 0.25);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  margin: 0 0.25rem 0.5rem 0;
}

.flow p {
  margin: 0;
  font-size: 0.86rem;
  color: #a8b8c8;
  line-height: 1.5;
}

/* what travels over NDC */
.sell {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
}

.sell-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sell-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.15rem 0.75rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.sell-item svg {
  width: 36px;
  height: 36px;
  grid-row: span 2;
  padding: 7px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-deep);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sell-item b {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.sell-item span {
  font-size: 0.82rem;
  color: var(--mute);
  line-height: 1.4;
}

.photo-frame {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sheet);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto; /* the width/height attributes otherwise pin the height */
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-frame figcaption {
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  color: var(--mute);
  border-top: 1px solid var(--line);
}

/* at your desk */
.desk {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.checklist {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.checklist li::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7a52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>") center / 12px no-repeat;
}

/* myth and fact */
.myths {
  display: grid;
  gap: 0.75rem;
}

.myth {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sheet);
}

.myth > div { padding: 1rem 1.1rem; }

.myth .m {
  background: var(--amber-soft);
  border-right: 1px solid var(--line);
}

.myth small {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.myth .m small { color: #92400e; }
.myth .f small { color: var(--green); }

.myth p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sell,
  .desk { grid-template-columns: 1fr; }

  .flow {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .flow li {
    padding-top: 0;
    padding-left: 2.75rem;
  }

  .flow li::before {
    top: 34px;
    bottom: -1.25rem;
    left: 15px;
    right: auto;
    border-top: 0;
    border-left: 2px dashed rgba(61, 214, 140, 0.45);
  }
}

@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .sell-grid { grid-template-columns: 1fr; }

  .chain-nodes {
    flex-direction: column;
    align-items: stretch;
  }

  .hop {
    width: auto;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
  }

  .hop svg { transform: rotate(90deg); }

  .myth { grid-template-columns: 1fr; }

  .myth .m {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ——— Utility ——— */
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }

.flex-center {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink-soft);
  border-radius: 2px;
  padding: 0.4rem 0.75rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
}

.chip[aria-pressed="true"],
.chip:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.cta-band {
  background: var(--green);
  color: #fff;
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 122, 82, 0.92) 0%, rgba(6, 92, 61, 0.88) 100%),
    url("../assets/images/bg-cta.jpg") center / cover no-repeat;
  z-index: 0;
}

.cta-band > .container {
  position: relative;
  z-index: 1;
}

/* ——— Agent journey (home: three stops on one route) ——— */
.journey {
  --jmark: 36px;
  --jgap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto 1fr; /* marker, title, text, card: rows align across stops */
  gap: 0 var(--jgap);
}

.jstop {
  position: relative;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  align-content: start;
  min-width: 0;
}

/* dashed route to the next stop */
.jstop::before {
  content: "";
  position: absolute;
  top: calc(var(--jmark) / 2 - 1px);
  left: var(--jmark);
  right: calc(var(--jgap) * -1);
  border-top: 2px dashed var(--line-strong);
}

.jstop:last-child::before { display: none; }

.jmark {
  width: var(--jmark);
  height: var(--jmark);
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 0 4px var(--paper);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.jstop h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.jstop > p {
  color: var(--mute);
  font-size: 0.95rem;
  max-width: 34ch;
  margin-bottom: 1.1rem;
}

/* the plane flies the route once, when the section scrolls into view */
.jplane {
  position: absolute;
  top: calc(var(--jmark) / 2);
  left: calc(var(--jmark) + 14px);
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  color: var(--green);
  background: var(--paper);
  border-radius: 50%;
  z-index: 2;
}

.journey.in-view .jplane {
  animation: jfly 2.4s cubic-bezier(0.45, 0, 0.2, 1) 0.3s forwards;
}

@keyframes jfly {
  to { left: calc((100% - var(--jgap) * 2) * 2 / 3 + var(--jgap) * 2 - 14px); }
}

/* schematic of what the agent sees at each stop */
.jcard {
  align-self: stretch;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.06);
}

.chat-line {
  max-width: 88%;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  margin-bottom: 0.4rem;
  background: var(--paper);
  border-bottom-left-radius: 3px;
}

.chat-line.out {
  background: var(--green-soft);
  color: var(--green-deep);
  margin-left: auto;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 3px;
  font-weight: 600;
}

.chat-stamp {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
}

.fare-route {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.fare-route span {
  color: var(--mute);
  margin: 0 0.2rem;
  font-weight: 500;
}

.fare-lines div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0;
  border-top: 1px solid var(--line);
}

.fare-lines span { color: var(--mute); }
.fare-lines b { font-weight: 600; }

.fare-actions,
.pnr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.fare-actions span,
.pnr-actions span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.fare-actions span:first-child {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pnr-head {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.pnr-head b { color: var(--green); }

.pnr-wallet {
  margin-top: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.5rem;
}

.pnr-wallet span { color: var(--mute); }
.pnr-wallet b { font-weight: 600; }

.pnr-wallet i {
  grid-column: 2;
  font-style: normal;
  color: var(--mute);
  font-size: 0.72rem;
}

.cta-band .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: 1.65rem;
  color: #fff;
  margin: 0 0 0.25rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.cta-band .btn-secondary {
  border-color: rgba(255,255,255,0.55);
}

.cta-band .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .hero-grid,
  .contact-grid,
  .two-col,
  .tabs {
    grid-template-columns: 1fr;
  }

  .tab-list {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .tab-btn { white-space: nowrap; }

  .steps,
  .card-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .steps .step-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .tl-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Hero stacks: copy first, then the photo fades in below it with the chip on top. */
  .hero-grid {
    min-height: 0;
    gap: 1rem;
    padding: 2.5rem 0 190px;
  }

  .hero-copy { padding-bottom: 0; }

  .hero-chip {
    justify-self: start;
    position: relative;
    z-index: 2;
  }

  .hero-visual {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    height: 300px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%);
  }

  .hero-visual img { object-position: 60% 60%; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .site-header .logo img { height: 40px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--sheet);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    display: block;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .btn {
    margin-top: 0.65rem;
    width: 100%;
  }

  .hero-points {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0.85rem;
  }

  .hero-points li {
    grid-template-columns: 26px 1fr;
    grid-template-rows: auto auto;
    grid-row: auto;
    column-gap: 0.7rem;
    row-gap: 0.15rem;
  }

  .hero-points .hp-icon { grid-row: span 2; margin: 0; }

  /* Journey runs vertically: markers down the left, one dashed line between them. */
  .journey {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 1.5rem;
  }

  .jstop {
    display: flex;
    flex-direction: column;
    padding-left: calc(var(--jmark) + 0.9rem);
  }

  .jmark {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }

  .jstop::before {
    top: var(--jmark);
    bottom: -1.5rem;
    left: calc(var(--jmark) / 2 - 1px);
    right: auto;
    border-top: 0;
    border-left: 2px dashed var(--line-strong);
  }

  .jplane { display: none; }

  .jstop h3 { margin-top: 0.3rem; }

  .offer-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .offer-pass {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-track { animation: none; }
  .jplane { animation: none; left: calc((100% - var(--jgap) * 2) * 2 / 3 + var(--jgap) * 2 - 14px); }
}

/* Page-level Turnstile (pre-clearance). Invisible in "interaction-only" mode. When Cloudflare
   decides the visitor must interact, site.js adds .is-needed and this full-width strip slides up
   from the bottom with the widget and a one-line explanation (above the modal, z 200). */
.ndc-clearance {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--navy);
  color: #fff;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(110%);
  transition: transform 0.25s ease;
  font-size: 0.95rem;
}
.ndc-clearance.is-needed { transform: none; }
.ndc-clearance-text { max-width: 420px; line-height: 1.4; }
.ndc-clearance-text strong { display: block; font-weight: 600; color: var(--amber-soft); }
@media (prefers-reduced-motion: reduce) {
  .ndc-clearance { transition: none; }
}
