/* PMT Group — shared shell (tokens, nav, buttons, footer). Generated from the original inline <style>; edit here, not in HTML. */

:root {
  /* Revolut design tokens — light canvas + ink text; PMT teal as accent */
  --canvas:      #ffffff;
  --canvas-soft: #f4f4f4;
  --surface-card:#ffffff;
  --ink:         #191c1f;
  --body-text:   #1f2226;
  --mute:        #505a63;
  --stone:       #8d969e;
  --faint:       #c9c9cd;
  --hairline:    #e2e2e7;
  --hairline-strong: #191c1f;
  --teal:        #0d9488;   /* PMT brand accent */
  --teal-bright: #12b3a3;
  --teal-deep:   #0b7d72;
  --teal-soft:   #e6f7f4;
  --canvas-dark: #000000;
  --on-dark:     #ffffff;
  --on-dark-mute: rgba(255, 255, 255, 0.72);
  --hairline-dark: rgba(255, 255, 255, 0.12);
  --display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad-x: clamp(20px, 5vw, 56px);
  --nav-h: 72px;
  /* legacy aliases so existing rules resolve to the new light palette */
  --navy: var(--canvas);
  --navy-deep: var(--canvas);
  --navy-deeper: var(--canvas-soft);
  /* Buttons use the deep teal, not --teal: white on #0d9488 is only 3.74:1 and
     fails WCAG AA. #0b7d72 is 5.01:1, #0f766e (hover) is 5.47:1. */
  --teal-btn: var(--teal-deep);
  --teal-btn-hi: #0f766e;
  --cream: var(--ink);
  --on-navy: var(--mute);
  --on-navy-dim: var(--stone);
  --line: var(--hairline);
  --serif: var(--display);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
}


body {
  font-family: var(--sans);
  background: var(--navy-deep);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--teal); color: var(--navy-deep); }
/* --teal (#0d9488) is only 3.74:1 on white — fails AA for text. Links use
   the deep teal (5.01:1); --teal stays the accent for non-text marks. */
a { color: var(--teal-deep); text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal-btn); color: #fff; padding: 10px 18px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Preloader (luma-spin rings orbiting the PMT logo) ---------- */
html.is-loading { overflow: hidden; }
.pl-word { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  padding: 13px 24px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--teal-btn); color: #fff; letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn:hover { background: var(--teal-btn-hi); transform: translateY(-2px); box-shadow: 0 12px 28px -12px oklch(0.55 0.11 200 / 0.7); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost {
  background: transparent; color: var(--cream);
  border: 1px solid var(--line); box-shadow: none;
}
.btn.ghost:hover { background: var(--canvas-soft); border-color: var(--ink); box-shadow: none; }

/* ---------- Nav (resizable pill on scroll) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: 6px;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px var(--pad-x); height: var(--nav-h);
  border-radius: 999px; border: 1px solid transparent; background: transparent;
  /* springy width/position like the reference; smooth for the rest */
  transition:
    max-width 0.55s cubic-bezier(0.34, 1.35, 0.4, 1),
    transform 0.55s cubic-bezier(0.34, 1.35, 0.4, 1),
    padding 0.45s var(--ease-out),
    background 0.4s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    border-color 0.4s var(--ease-out);
  will-change: max-width, transform;
}
.nav.scrolled .nav-inner {
  max-width: min(900px, calc(100% - 24px));
  padding: 9px 12px 9px 22px;
  transform: translateY(12px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  box-shadow:
    0 1px 1px oklch(0 0 0 / 0.22),
    0 18px 50px -22px oklch(0.05 0.02 260 / 0.85),
    0 1px 0 oklch(1 0 0 / 0.06) inset;
}
@media (prefers-reduced-motion: reduce) {

  .nav-inner { transition: background 0.3s, box-shadow 0.3s, border-color 0.3s; }
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { display: block; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.link {
  color: var(--on-navy); font-size: 14.5px; position: relative;
  padding: 8px 16px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a.link:hover { color: var(--ink); background: var(--canvas-soft); }
.nav-links .btn { margin-left: 8px; }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 2px; background: #fff; position: relative;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  display: none; flex-direction: column; padding: 8px var(--pad-x) 26px;
  background: var(--navy-deep); border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--on-navy); font-size: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: none; }
/* `.mobile-menu a` outranks `.btn`, which was leaving the CTA with muted text
   on the teal fill (1.4:1). Restore the button's own foreground. */
.mobile-menu .btn { margin-top: 16px; justify-content: center; color: #fff; }

/* Section marker: a contrail flight-path leading to a beacon node — brand-specific, no generic pill */
.eyebrow, .stats-label {
  display: inline-flex; align-items: center; gap: 13px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 30px;
}
.eyebrow .trail, .stats-label .trail { flex: none; color: var(--teal); overflow: visible; }
.eyebrow .trail .node, .stats-label .trail .node { animation: beacon 2.8s ease-in-out infinite; }
@keyframes beacon { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) {
 .eyebrow .trail .node, .stats-label .trail .node { animation: none; }
}

@keyframes lm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.scroll-wrap { width: 100%; max-width: 1064px; perspective: 1000px; }
/* Header hides behind the tablet (lower z), then pops out over the top bezel */
.scroll-header { text-align: center; will-change: transform; position: relative; z-index: 1; }
@media (max-width: 620px) {

  /* Footer: two link columns per row on phones
     (.footer prefix outranks the base rule, which appears later in the sheet) */
  .footer .footer-cols { grid-template-columns: 1fr 1fr; }
}


/* ---------- Footer (dark) ---------- */
.footer {
  background: var(--canvas-dark); color: var(--on-dark-mute);
  padding: 80px var(--pad-x) 36px;
  border-top: 1px solid var(--hairline-dark);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 64px; flex-wrap: wrap; }
.footer-brand { max-width: 340px; }
.footer .brand span { color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.65; margin: 18px 0 24px; }
.footer-social { display: flex; gap: 0; list-style: none; margin-left: -12px; }
/* 44x44 hit area per WCAG 2.5.8 target size; the icon itself stays 20x20. */
.footer-social a {
  color: var(--on-dark-mute); transition: color 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
}
.footer-social a:hover { color: #fff; }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: clamp(28px, 4vw, 80px);
}
.footer-cols h3 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-cols ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-cols a { color: var(--on-dark-mute); transition: color 0.2s; }
.footer-cols a:hover { color: #fff; }
.footer-cols li.plain { color: var(--on-dark-mute); }
.footer-bottom {
  margin-top: 64px; padding-top: 28px;
  border-top: 1px solid var(--hairline-dark);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px;
}
.footer-bottom ul { display: flex; gap: 22px; list-style: none; }
.footer-bottom a { color: var(--on-dark-mute); transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 860px) {

  .footer-top { flex-direction: column; gap: 44px; }
  .footer-cols { width: 100%; }
}


/* ---------- Responsive ---------- */
@media (max-width: 860px) {

  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}
