/* ==========================================================================
   tRetail Labs — Passenger Experience Intelligence Reports 2027
   Shared foundation: tokens, type, layout, components (all three options)
   Values come from the Figma "Redesign" styles and colour variables.
   ========================================================================== */

:root {
  /* Colour tokens (Figma: color/...) */
  --ink: #0f2b44;
  --ink-2: #163756;
  --brand-orange: #f08a24;   /* Figma names this color/brand/blue + brand/yellow */
  --brand-green: #308f83;
  --brand-purple: #795ac9;
  --surface-page: #ffffff;
  --surface-subtle: #f2f5f8;
  --border: #dfe5ec;
  --border-strong: #0f2b44;
  --border-on-dark: #2c4964;
  --text-primary: #0f2b44;
  --text-secondary: #4a5b6e;
  --text-tertiary: #7d8b9b;
  --text-accent: #b5600c;
  --on-dark: #ffffff;
  --on-dark-muted: #b9c5d2;

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --page-max: 1440px;
  --gutter: clamp(20px, 5.56vw, 80px);
  --section-y: clamp(80px, 8.9vw, 128px);
  --col-label: 416px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 3px; border-radius: 4px; }

.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;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; overflow: clip; }
.section--subtle { background: var(--surface-subtle); }
.section--ink { background: var(--ink); color: var(--on-dark); }

/* ---------- Type scale (Figma Redesign/*) ---------- */
.t-display {
  font-weight: 500;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.t-h1 { font-weight: 500; font-size: clamp(36px, 3.9vw, 56px); line-height: 1.05; letter-spacing: -0.025em; }
.t-h2 { font-weight: 500; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.t-h4 { font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -0.005em; }
.t-body-lg { font-size: clamp(17px, 1.32vw, 19px); line-height: 1.55; letter-spacing: -0.002em; }
.t-body { font-size: 16px; line-height: 1.6; }
.t-body-sm { font-size: 14px; line-height: 1.55; }
.t-label { font-weight: 500; font-size: 14px; line-height: 1.3; }
.t-eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; }
.t-mono-sm { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: 0.02em; }
.t-stat { font-weight: 300; font-size: clamp(44px, 3.9vw, 56px); line-height: 1; letter-spacing: -0.03em; }

.c-orange { color: var(--brand-orange); }
.c-secondary { color: var(--text-secondary); }
.c-tertiary { color: var(--text-tertiary); }
.c-muted { color: var(--on-dark-muted); }

/* ---------- Brand bar & stripe ---------- */
.brand-bar { display: flex; width: 64px; height: 3px; flex-shrink: 0; }
.brand-bar > i { flex: 1; display: block; }
.brand-bar > i:nth-child(1) { background: var(--brand-orange); }
.brand-bar > i:nth-child(2) { background: var(--brand-green); }
.brand-bar > i:nth-child(3) { background: var(--brand-purple); }

.brand-stripe {
  position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
  display: flex; flex-direction: column; z-index: 2;
}
.brand-stripe > i { flex: 1; display: block; transform-origin: top; }
.brand-stripe > i:nth-child(1) { background: var(--brand-orange); }
.brand-stripe > i:nth-child(2) { background: var(--brand-green); }
.brand-stripe > i:nth-child(3) { background: var(--brand-purple); }

/* ---------- Partner logo: The Moodie Davitt Report (white, Figma 312:5558) ---------- */
.md-logo { position: relative; display: inline-block; width: 163px; height: 40px; flex-shrink: 0; }
/* Figma clips this logo with a plain 162.5×40 rectangle. That clip has no visible effect, and a CSS mask
   fails to load from file:// (CORS) and hides the logo, so no mask is applied. */
.md-logo img { position: absolute; top: 0; left: 0; width: 99.73%; height: 100%; }

/* ---------- Eyebrow (accent · index · rule · label) ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow__accent { width: 3px; height: 14px; border-radius: 2px; background: var(--accent, var(--brand-orange)); }
.eyebrow__index { color: var(--text-tertiary); }
.eyebrow__rule { width: 24px; height: 1px; background: var(--border); transform-origin: left; }
.eyebrow__label { color: var(--text-primary); }
.on-dark .eyebrow__index { color: var(--on-dark-muted); }
.on-dark .eyebrow__label { color: var(--on-dark); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-dark);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: 14px; line-height: 1.3; white-space: nowrap;
  cursor: pointer; isolation: isolate; overflow: hidden;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.btn img { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.btn:hover img { transform: translateX(4px); }
/* liquid fill on hover */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover, rgba(255,255,255,.14));
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }

.btn--primary { --btn-bg: var(--ink); --btn-fg: var(--on-dark); --btn-hover: var(--ink-2); }
.btn--accent { --btn-bg: var(--brand-orange); --btn-fg: var(--ink); --btn-hover: #ffa14a; }
.btn--outline-dark { --btn-bg: transparent; --btn-fg: var(--on-dark); border-color: var(--border-on-dark); --btn-hover: rgba(255,255,255,.08); }
.btn--outline-dark:hover { border-color: var(--on-dark-muted); }
.btn--text { --btn-bg: transparent; --btn-fg: var(--text-primary); padding: 0; height: 44px; }
.btn--text::before { display: none; }
.btn--block { width: 100%; }

/* ---------- Nav (floating pill) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 20px clamp(16px, 7.85vw, 113px) 0;
  pointer-events: none;
  transition: transform .5s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-120%); }
.nav-pill {
  pointer-events: auto;
  max-width: 1214px; margin-inline: auto;
  height: 66px; padding: 10px 10px 10px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface-page);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 15px rgba(0,0,0,.08);
  transition: box-shadow .4s var(--ease-out), height .4s var(--ease-out);
}
.site-header.is-scrolled .nav-pill { box-shadow: 0 14px 34px rgba(15,43,68,.16); }
.nav-pill__logo { width: 203px; height: 34px; flex-shrink: 0; }
.nav-pill__logo img { width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
  font-weight: 500; font-size: 15px; line-height: 1.3; padding-block: 4px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links .nrture { width: 123px; height: 18px; object-fit: contain; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-page); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-menu-btn span { width: 16px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease-out); }
.nav-open .nav-menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-open .nav-menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink);
  padding: 120px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  clip-path: circle(0% at calc(100% - 48px) 52px);
  transition: clip-path .7s var(--ease-out);
  visibility: hidden;
}
.nav-open .mobile-menu { clip-path: circle(150% at calc(100% - 48px) 52px); visibility: visible; }
.mobile-menu a { color: var(--on-dark); font-size: 32px; font-weight: 500; letter-spacing: -0.02em; padding: 6px 0; border-bottom: 1px solid var(--border-on-dark); }

/* ---------- Section header (label column + title column) ---------- */
.sec-head { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 64px; }
.sec-head__label { width: var(--col-label); flex-shrink: 0; }
.sec-head__title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sec-head__title .t-body-lg { max-width: 640px; color: var(--text-secondary); }

/* ---------- Stat ---------- */
.stat { display: flex; flex-direction: column; gap: 12px; }
.stat__num { display: inline-block; font-variant-numeric: tabular-nums; }

/* ---------- Report matrix ---------- */
.matrix { border-bottom: 1px solid var(--border); }
.matrix__row {
  display: grid; grid-template-columns: var(--col-label) repeat(3, 1fr); gap: 32px;
  align-items: center; padding-block: 16px; border-top: 1px solid var(--border);
  position: relative;
}
.matrix__row--head { border-top-color: var(--border-strong); font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .02em; color: var(--text-secondary); }
.matrix__row:not(.matrix__row--head) { transition: background-color .3s; }
.matrix__row:not(.matrix__row--head)::before {
  content: ""; position: absolute; inset: 0 calc(-1 * 16px); background: var(--surface-subtle);
  opacity: 0; transition: opacity .3s; z-index: -1; border-radius: 6px;
}
.matrix__row:not(.matrix__row--head):hover::before { opacity: 1; }
.matrix__name { font-weight: 500; font-size: 14px; line-height: 1.3; }
.matrix__tick { font-size: 16px; line-height: 1.6; display: inline-block; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field__label { font-weight: 500; font-size: 14px; line-height: 1.3; color: var(--text-primary); }
.field input, .field select {
  height: 48px; width: 100%; padding: 0 16px;
  background: var(--surface-page); border: 1px solid var(--border); border-radius: 8px;
  font-size: 16px; line-height: 1.6; color: var(--text-primary);
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder { color: var(--text-tertiary); }
.field input:hover, .field select:hover { border-color: #c4cfda; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(240,138,36,.18); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("../assets/chevron.svg"); background-repeat: no-repeat;
  background-position: right 16px center; background-size: 16px 16px; padding-right: 44px;
}
.field input.is-invalid { border-color: #c2412d; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-page);
  font-weight: 500; font-size: 14px; line-height: 1.3; color: var(--text-primary);
  cursor: pointer; user-select: none;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out), transform .2s;
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip__box {
  width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0;
  border: 1px solid var(--border-strong); background: var(--surface-page);
  display: grid; place-items: center; overflow: hidden;
  transition: background-color .3s, border-color .3s;
}
.chip__box img { width: 14px; height: 14px; transform: scale(0); transition: transform .35s var(--ease-out); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.chip[aria-pressed="true"] .chip__box { background: var(--brand-orange); border-color: var(--brand-orange); }
.chip[aria-pressed="true"] .chip__box img { transform: scale(1); }

/* Register confirmation popup (dev pack: confirmation-message.html), shown in a <dialog> */
/* position/inset/margin pin the open modal to the viewport centre; never set position on .pxir-confirm. */
.success-modal { position: fixed; inset: 0; margin: auto; height: fit-content; padding: 0; border: 0; background: transparent; max-width: none; width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.success-modal::backdrop { background: rgba(15, 43, 68, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pxir-confirm{--navy:#0f2a44;--card:#16395b;--fb:#f08a24;--lounge:#2f8f83;--hotel:#7a5ac8;--box:#f1f4f8;--label:#1f4e79;--ink:#202124;--mute:#c9d6e3;
  font-family:'IBM Plex Sans',Arial,sans-serif;color:var(--ink);}
.pxir-confirm *{box-sizing:border-box;}
.pxir-confirm [hidden]{display:none !important;}
.pxir-close{position:absolute;top:22px;right:14px;z-index:2;width:32px;height:32px;border:0;border-radius:50%;background:var(--box);color:var(--navy);font-size:22px;line-height:1;cursor:pointer;}
.pxir-close:hover{background:#e3e9f0;}
.pxir-close:focus-visible{outline:2px solid var(--fb);outline-offset:2px;}
.pxir-wrap{display:flex;flex-direction:column;gap:12px;}
.pxir-dot{width:7px;height:7px;border-radius:1px;flex:none;}
.pxir-card{background:#fff;border-radius:12px;overflow:hidden;border-top:10px solid var(--navy);}
.pxir-body{padding:28px 24px;display:flex;flex-direction:column;gap:16px;font-size:15px;line-height:1.6;}
.pxir-body p{margin:0;}
.pxir-title{margin:0;font-family:'Archivo',Arial,sans-serif;font-weight:800;font-size:30px;line-height:1.15;letter-spacing:-.01em;color:var(--navy);}
.pxir-box{background:var(--box);border-radius:8px;padding:18px;}
.pxir-box .lbl{font-size:11px;font-weight:600;letter-spacing:.14em;color:var(--label);margin-bottom:10px;}
.pxir-row{display:flex;align-items:baseline;gap:10px;font-size:14px;color:#3b4a5c;padding:3px 0;}
.pxir-row b{color:var(--navy);width:115px;flex:none;}
.pxir-row .pxir-dot{align-self:center;}
.pxir-dot.lg{width:9px;height:9px;border-radius:2px;}
.pxir-strong{font-weight:700;color:var(--navy);}
@media (max-width:600px){.pxir-title{font-size:26px;padding-right:36px;}.pxir-row{flex-wrap:wrap;}}

/* ---------- Footer (Options A & B) ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding: 112px 0 40px; }
.footer__news { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 96px; }
.footer__news h2 { max-width: 620px; }
.footer__news p { max-width: 520px; margin-top: 16px; }
.news-form { display: flex; gap: 8px; align-items: center; }
.news-form input {
  height: 44px; width: 320px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--border-on-dark); background: transparent; color: var(--on-dark); font-size: 14px;
  transition: border-color .25s;
}
.news-form input::placeholder { color: var(--on-dark-muted); }
.news-form input:focus { outline: none; border-color: var(--brand-orange); }
.footer__links { display: flex; justify-content: space-between; gap: 40px; padding-top: 56px; border-top: 1px solid var(--border-on-dark); }
.footer__brand img { width: 191px; height: 32px; object-fit: contain; object-position: left; }
.footer__brand p { width: 280px; margin-top: 16px; }
.footer__cols { display: flex; gap: 72px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; white-space: nowrap; }
.footer__col a, .footer__col span { font-size: 14px; line-height: 1.55; }
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out); }
.link-u:hover { background-size: 100% 1px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 96px; }
.footer__bottom .row { display: flex; align-items: center; gap: 16px; }
.footer__legal { display: flex; gap: 24px; }

/* ---------- Reveal defaults (JS adds .js) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word { display: inline-block; will-change: transform; }

/* Scroll progress bar in brand colours */
.scroll-progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-green), var(--brand-purple));
  pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-flex; }
  :root { --col-label: 300px; }
}
@media (max-width: 900px) {
  .sec-head { flex-direction: column; gap: 20px; margin-bottom: 40px; }
  .sec-head__label { width: auto; }
  .matrix { overflow-x: auto; }
  .matrix__row { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 12px; min-width: 520px; }
  .footer__news { flex-direction: column; align-items: flex-start; margin-bottom: 64px; }
  .footer__links { flex-direction: column; }
  .footer__cols { flex-wrap: wrap; gap: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 56px; }
}
@media (max-width: 640px) {
  .site-header { padding: 12px 12px 0; }
  .nav-pill { height: 56px; padding-left: 16px; }
  .nav-pill__logo { width: 150px; height: 26px; }
  .nav-actions .btn { height: 38px; padding: 0 14px; font-size: 13px; }
  .form__row { grid-template-columns: 1fr; }
  .news-form { width: 100%; flex-direction: column; align-items: stretch; }
  .news-form input { width: 100%; }
  .footer__legal { flex-wrap: wrap; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Lead capture: error line + honeypot ---------- */
.form__error { margin: 0; font-size: 14px; line-height: 1.5; color: var(--brand-orange); }
.form__error[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
