/* ==========================================================================
   Prophius v2.0 — Components & layout
   ========================================================================== */

@import url("./tokens.css");

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--prophius-neutral-canvas);
  color: var(--prophius-neutral-ink);
  font-family: var(--prophius-font-sans);
  font-size: var(--prophius-size-body);
  line-height: var(--prophius-lh-body);
  font-weight: var(--prophius-w-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; }
::selection { background: var(--prophius-sky-200); color: var(--prophius-navy-900); }

/* ---------- Type ---------- */
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }

.display {
  font-size: clamp(36px, 5.2vw, var(--prophius-size-display));
  line-height: var(--prophius-lh-display);
  font-weight: var(--prophius-w-display);
  letter-spacing: var(--prophius-track-display);
  color: var(--prophius-neutral-ink);
}
h1, .h1 {
  font-size: clamp(26px, 3.6vw, var(--prophius-size-h1));
  line-height: var(--prophius-lh-h1);
  font-weight: var(--prophius-w-h1);
  letter-spacing: var(--prophius-track-display);
  color: var(--prophius-neutral-ink);
}
h2, .h2 {
  font-size: var(--prophius-size-h2);
  line-height: var(--prophius-lh-h2);
  font-weight: var(--prophius-w-h2);
  letter-spacing: var(--prophius-track-h2);
  color: var(--prophius-neutral-ink);
}
h3, .h3 {
  font-size: var(--prophius-size-h3);
  line-height: var(--prophius-lh-h3);
  font-weight: var(--prophius-w-h3);
  letter-spacing: var(--prophius-track-h2);
  color: var(--prophius-neutral-ink);
}
.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--prophius-neutral-muted);
  font-weight: 400;
  max-width: 56ch;
}
.muted { color: var(--prophius-neutral-muted); }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-family: var(--prophius-font-mono);
  font-size: var(--prophius-size-eyebrow);
  line-height: var(--prophius-lh-eyebrow);
  font-weight: var(--prophius-w-eyebrow);
  letter-spacing: var(--prophius-track-eyebrow);
  text-transform: uppercase;
  color: var(--prophius-sky-700);
}
.eyebrow.on-dark { color: var(--prophius-sky-200); }

/* Mono tag */
.mono-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--prophius-font-mono);
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: var(--prophius-radius-sm);
  background: var(--prophius-navy-50);
  color: var(--prophius-navy-700);
}
.mono-tag.sky { background: var(--prophius-sky-50); color: var(--prophius-sky-900); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--prophius-content-max);
  margin: 0 auto;
  padding: 0 var(--prophius-gutter);
}
.section { padding: var(--prophius-space-24) 0; }
.section--tight { padding: var(--prophius-space-20) 0; }
.section--dark {
  background: var(--prophius-navy-700);
  color: var(--prophius-white);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--prophius-white); }
.section--dark .lead { color: rgba(255,255,255,0.78); }
@media (max-width: 768px) { .section { padding: var(--prophius-space-16) 0; } }

.section-head { max-width: 720px; margin-bottom: var(--prophius-space-12); }
.section-head .eyebrow { margin-bottom: var(--prophius-space-3); }
.section-head h2 + .lead { margin-top: var(--prophius-space-4); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--prophius-font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--prophius-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--prophius-dur) var(--prophius-ease),
              border-color var(--prophius-dur) var(--prophius-ease),
              color var(--prophius-dur) var(--prophius-ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--prophius-focus-ring); }
.btn .arrow { transition: transform var(--prophius-dur) var(--prophius-ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary { background: var(--prophius-navy-700); color: var(--prophius-white); }
.btn--primary:hover { background: var(--prophius-navy-600); }

.btn--secondary {
  background: transparent;
  color: var(--prophius-navy-700);
  border-color: var(--prophius-navy-700);
}
.btn--secondary:hover { background: var(--prophius-navy-50); }

.btn--ghost { background: transparent; color: var(--prophius-navy-700); }
.btn--ghost:hover { background: var(--prophius-neutral-panel); }

.btn--sky { background: var(--prophius-sky-700); color: var(--prophius-white); }
.btn--sky:hover { background: var(--prophius-sky-900); }

.btn--ghost-light { background: transparent; color: var(--prophius-white); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.08); }

.btn--lg { padding: 14px 28px; font-size: 15px; }

/* ---------- Marketing nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 249, 0.92);
  border-bottom: 0.5px solid var(--prophius-neutral-line);
  backdrop-filter: saturate(150%) blur(10px);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--prophius-space-6);
  height: 64px;
  max-width: var(--prophius-content-max);
  margin: 0 auto;
  padding: 0 var(--prophius-gutter);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__brand img {
  width: 112px;
  height: auto;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--prophius-space-6);
  margin-left: var(--prophius-space-6);
  flex: 1;
}
.nav__links a {
  font-size: 14px;
  color: var(--prophius-neutral-ink);
  padding: 6px 2px;
}
.nav__links a:hover { color: var(--prophius-navy-700); }
.nav__link.is-active { color: var(--prophius-navy-700); font-weight: 500; }
.nav__cta { display: flex; gap: var(--prophius-space-3); align-items: center; }
@media (max-width: 880px) { .nav__links { display: none; } }

/* ---------- Nav dropdowns (desktop) ---------- */
.nav__item { position: relative; }
.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 14px;
  color: var(--prophius-neutral-ink);
  background: none;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
  font-family: inherit;
}
.nav__trigger:hover,
.nav__trigger.is-active { color: var(--prophius-navy-700); }
.nav__trigger.is-active { font-weight: 500; }
.nav__chev {
  display: inline-flex;
  width: 14px;
  height: 14px;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1);
  color: currentColor;
}
.nav__chev svg { width: 100%; height: 100%; }
.nav__item[data-open="true"] .nav__chev { transform: rotate(180deg); }
.nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--prophius-neutral-line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(5, 29, 73, .12), 0 2px 6px rgba(5, 29, 73, .06);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s 160ms;
  z-index: 50;
}
.nav__item[data-open="true"] .nav__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s;
}
.nav__menu::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.nav__menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--prophius-neutral-ink);
  transition: background 120ms ease;
}
.nav__menu a:hover,
.nav__menu a:focus-visible {
  background: var(--prophius-neutral-canvas);
  color: var(--prophius-navy-700);
}
.nav__menu__title { font-size: 14px; font-weight: 600; }
.nav__menu__sub { font-size: 12px; color: var(--prophius-neutral-muted); }

/* ---------- Mobile drawer dropdown groups ---------- */
.nav__drawer__group { display: block; }
.nav__drawer__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 12px 0;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--prophius-neutral-ink);
  cursor: pointer;
  font-family: inherit;
}
.nav__drawer__trigger .nav__chev { width: 16px; height: 16px; }
.nav__drawer__group[data-open="true"] .nav__drawer__trigger .nav__chev { transform: rotate(180deg); }
.nav__drawer__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 8px var(--prophius-space-4);
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms cubic-bezier(.2,.8,.2,1);
}
.nav__drawer__group[data-open="true"] .nav__drawer__sub { max-height: 360px; }
.nav__drawer__sub li { padding: 6px 0; }
.nav__drawer__sub a {
  display: block;
  font-size: 15px;
  color: var(--prophius-neutral-muted);
  padding: 4px 0;
}

/* ==========================================================================
   Hero — Splash
   Full-viewport navy splash with floating sky orbs, grid mesh, mouse parallax,
   word-by-word headline reveal, animated payment card with tap-pulse rings,
   counter tick-up, cycling method chips, and scroll cue.
   All motion respects prefers-reduced-motion.
   ========================================================================== */
.hero-splash {
  position: relative;
  min-height: clamp(680px, 96vh, 920px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  color: var(--prophius-neutral-ink, #0F0F17);
}
/* No bg decoration — splash sits on plain white. */

.hero-splash__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-top: clamp(80px, 10vw, 120px);
  padding-bottom: clamp(120px, 12vw, 160px);
}
@media (max-width: 960px) {
  .hero-splash__inner { grid-template-columns: 1fr; padding-bottom: 140px; }
}

/* COPY */
.hero-splash__headline {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 28px;
  color: var(--prophius-navy-700, #051D49);
}
.hero-splash__headline em { font-style: normal; color: var(--prophius-sky-500, #00BFFF); }
.hero-splash__headline .line { display: block; }
.hero-splash__headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1);
}
.hero-splash.is-loaded .word { opacity: 1; transform: none; }
.hero-splash.is-loaded .word:nth-child(1) { transition-delay: 200ms; }
.hero-splash.is-loaded .word:nth-child(2) { transition-delay: 280ms; }
.hero-splash.is-loaded .word:nth-child(3) { transition-delay: 360ms; }
.hero-splash.is-loaded .word:nth-child(4) { transition-delay: 440ms; }
.hero-splash.is-loaded .line:nth-child(2) .word:nth-child(1) { transition-delay: 540ms; }
.hero-splash.is-loaded .line:nth-child(2) .word:nth-child(2) { transition-delay: 620ms; }
.hero-splash.is-loaded .line:nth-child(2) .word:nth-child(3) { transition-delay: 700ms; }
.hero-splash.is-loaded .line:nth-child(2) .word:nth-child(4) { transition-delay: 780ms; }

.hero-splash__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--prophius-neutral-muted, #59616F);
  max-width: 52ch;
  margin: 0 0 36px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.8,.2,1);
}
.hero-splash.is-loaded .hero-splash__lead { opacity: 1; transform: none; transition-delay: 900ms; }

.hero-splash__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  opacity: 0; transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.8,.2,1);
}
.hero-splash.is-loaded .hero-splash__actions { opacity: 1; transform: none; transition-delay: 1000ms; }

/* VISUAL — splash stage (4 scenes cycle on plain white) */
.splash-stage {
  position: relative;
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: scale(.97) translateY(20px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.8,.2,1);
}
.hero-splash.is-loaded .splash-stage { opacity: 1; transform: none; transition-delay: 600ms; }

.splash-scene {
  position: absolute;
  inset: 0 0 auto 0;
  height: 360px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.98);
  transition: opacity 600ms cubic-bezier(.2,.8,.2,1), transform 600ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.splash-scene.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Real-life video scenes.
   Clean videos: background pre-keyed to white via FFmpeg colorkey + overlay.
   `mix-blend-mode: multiply` then makes the white invisible against the
   white page, so the hand/card/POS subject appears to float without any
   visible frame or hard rectangle. */
.splash-scene--video {
  display: flex; align-items: center; justify-content: center;
}
.splash-video {
  width: 100%;
  max-width: 460px;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 24px;
}
/* Original (still-with-bg) videos kept as a fallback variant — feather + multiply */
.splash-video:not(.splash-video--clean) {
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, #000 35%, rgba(0,0,0,.85) 55%, rgba(0,0,0,0) 90%);
          mask-image: radial-gradient(ellipse 70% 70% at center, #000 35%, rgba(0,0,0,.85) 55%, rgba(0,0,0,0) 90%);
  mix-blend-mode: multiply;
  filter: contrast(1.06) saturate(1.06);
}
/* Clean (background-removed) videos: pure multiply, no frame, no mask */
.splash-video--clean {
  background: transparent;
  border-radius: 0;
  mix-blend-mode: multiply;
  filter: contrast(1.04) saturate(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .splash-video { animation-play-state: paused; }
}

/* Reserve the height of one scene at the top of the stage so absolute scenes don't collapse it */
.splash-stage::before {
  content: "";
  display: block;
  height: 360px;
}

.splash-stage__caption {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-top: 16px;
  min-height: 56px;
}
.splash-stage__title {
  font-family: var(--prophius-font-mono, "JetBrains Mono", monospace);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--prophius-sky-500, #00BFFF);
  margin-bottom: 6px;
}
.splash-stage__sub {
  font-size: 15px;
  color: var(--prophius-neutral-muted, #59616F);
}

.splash-stage__chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 22px;
}
.scene-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid rgba(5,29,73,.12);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--prophius-neutral-muted, #59616F);
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms ease;
}
.scene-chip svg { width: 16px; height: 16px; color: currentColor; }
.scene-chip:hover {
  border-color: rgba(0,191,255,.45);
  color: var(--prophius-navy-700, #051D49);
}
.scene-chip.is-active {
  border-color: var(--prophius-sky-500, #00BFFF);
  color: var(--prophius-navy-700, #051D49);
  background: rgba(0,191,255,.08);
  box-shadow: 0 0 0 4px rgba(0,191,255,.10);
  transform: translateY(-1px);
}

.hero-splash__scroll-arrow {
  display: inline-flex;
  width: 22px; height: 22px;
  animation: scroll-bounce 1.8s cubic-bezier(.5,0,.5,1) infinite;
}
.hero-splash__scroll-arrow svg { width: 100%; height: 100%; }
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

@media (max-width: 720px) {
  .hero-splash__scroll { display: none; }
  .splash-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-splash__orb { animation: none; }
  .splash-card__live .dot { animation: none; }
  .splash-card__pulse .ring { animation: none; opacity: .25; transform: scale(1.4); }
  .hero-splash__scroll-arrow { animation: none; }
  .hero-splash .word,
  .hero-splash__lead,
  .hero-splash__actions,
  .hero-splash__visual,
  .hero-splash__scroll { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero (legacy) ---------- */
.hero {
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 9vw, 96px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--prophius-space-16);
  align-items: center;
}
.hero__copy .eyebrow { margin-bottom: var(--prophius-space-5); }
.hero__copy h1 { margin-bottom: var(--prophius-space-6); }
.hero__copy .lead { margin-bottom: var(--prophius-space-8); max-width: 50ch; }
.hero__actions { display: flex; gap: var(--prophius-space-3); flex-wrap: wrap; }
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--prophius-space-12); }
}

/* Hero "payment flow" visual — represents card / link / contactless / mobile
   converging into a single platform. Built from primitives, no images. */
.flow {
  position: relative;
  background: var(--prophius-white);
  border: 0.5px solid var(--prophius-neutral-line);
  border-radius: var(--prophius-radius-lg);
  padding: 28px;
  max-width: 460px;
  margin-left: auto;
}
.flow__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px;
  border-bottom: 0.5px solid var(--prophius-neutral-line);
  margin-bottom: 18px;
}
.flow__head .label {
  font-family: var(--prophius-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--prophius-track-eyebrow);
  color: var(--prophius-sky-700);
}
.flow__head strong { display:block; font-size: 14px; font-weight: 600; margin-top: 2px; }
.flow__pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500;
  padding: 5px 10px; border-radius: var(--prophius-radius-pill);
  background: var(--prophius-success-50); color: var(--prophius-success-800);
}
.flow__pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--prophius-success-500); }
.flow__methods {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 16px;
}
.flow__method {
  background: var(--prophius-neutral-panel);
  border-radius: var(--prophius-radius-md);
  padding: 12px 10px;
  text-align: center;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.flow__method svg { width: 22px; height: 22px; color: var(--prophius-navy-700); }
.flow__method span {
  font-family: var(--prophius-font-mono);
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--prophius-neutral-muted);
}
.flow__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  font-size: 13px;
}
.flow__row .k { color: var(--prophius-neutral-muted); }
.flow__row .v { font-family: var(--prophius-font-mono); font-size: 12px; color: var(--prophius-neutral-ink); }
.flow__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; margin-top: 6px;
  border-top: 0.5px solid var(--prophius-neutral-line);
}
.flow__total .k { font-size: 13px; color: var(--prophius-neutral-muted); }
.flow__total .v {
  font-size: 22px; font-weight: 600;
  color: var(--prophius-navy-700);
  letter-spacing: var(--prophius-track-h2);
  font-variant-numeric: tabular-nums;
}

/* ---------- Products grid (4 product cards) ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--prophius-space-5);
}
@media (max-width: 1080px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .products { grid-template-columns: 1fr; } }

.product {
  display: flex;
  flex-direction: column;
  gap: var(--prophius-space-4);
  background: var(--prophius-white);
  border: 0.5px solid var(--prophius-neutral-line);
  border-radius: var(--prophius-radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--prophius-dur) var(--prophius-ease),
              border-color var(--prophius-dur) var(--prophius-ease);
}
.product:hover { transform: translateY(-2px); border-color: var(--prophius-navy-100); }
.product__icon { width: 32px; height: 32px; color: var(--prophius-navy-700); }
.product .name {
  font-family: var(--prophius-font-mono);
  font-size: var(--prophius-size-eyebrow);
  font-weight: var(--prophius-w-eyebrow);
  letter-spacing: var(--prophius-track-eyebrow);
  text-transform: uppercase;
  color: var(--prophius-sky-700);
}
.product h3 { margin: 0; font-weight: 600; font-size: 18px; }
.product p { font-size: 14px; line-height: 1.55; color: var(--prophius-neutral-muted); margin: 0; }
.product__more {
  margin-top: auto;
  font-size: 13px; font-weight: 500;
  color: var(--prophius-navy-700);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- Industry grid ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.10);
  border-radius: var(--prophius-radius-lg);
  overflow: hidden;
}
@media (max-width: 880px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .industries { grid-template-columns: 1fr; } }

.industry {
  background: var(--prophius-navy-700);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color var(--prophius-dur) var(--prophius-ease);
}
.industry:hover { background: var(--prophius-navy-900); }
.industry__num {
  font-family: var(--prophius-font-mono);
  font-size: var(--prophius-size-eyebrow);
  font-weight: var(--prophius-w-eyebrow);
  letter-spacing: var(--prophius-track-eyebrow);
  color: var(--prophius-sky-200);
}
.industry__icon { width: 24px; height: 24px; color: var(--prophius-white); margin-bottom: 4px; }
.industry h3 { color: var(--prophius-white); margin: 0; font-size: 17px; font-weight: 500; }
.industry p { color: rgba(255,255,255,0.72); font-size: 13px; line-height: 1.55; margin: 0; }

/* ---------- Trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--prophius-space-5);
}
@media (max-width: 1080px) { .trust { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .trust { grid-template-columns: repeat(2, 1fr); } }

.trust__item {
  background: var(--prophius-neutral-panel);
  border-radius: var(--prophius-radius-md);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.trust__check {
  width: 22px; height: 22px;
  color: var(--prophius-success-500);
}
.trust__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--prophius-neutral-ink);
  line-height: 1.3;
}

/* ---------- Trust badges (certification + license) ---------- */
.trust--badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--prophius-space-3);
}
@media (max-width: 900px)  { .trust--badges { grid-template-columns: repeat(2, 1fr); } }
.trust-badge {
  background: #fff;
  border: 1px solid var(--prophius-neutral-line);
  border-radius: var(--prophius-radius-md);
  padding: 22px 18px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease, border-color 220ms ease;
}
.trust-badge:hover {
  transform: translateY(-2px);
  border-color: var(--prophius-sky-200, #b8e8fc);
  box-shadow: 0 8px 22px rgba(5, 29, 73, .08);
}
.trust-badge__icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
}
.trust-badge__icon svg,
.trust-badge__icon img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.trust-badge__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--prophius-navy-700);
  letter-spacing: .2px;
}
.trust-badge__sub {
  font-size: 11px;
  color: var(--prophius-neutral-muted);
  font-family: var(--prophius-font-mono, "JetBrains Mono", monospace);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.trust__note {
  margin-top: var(--prophius-space-6);
  text-align: center;
  font-size: 13px;
  color: var(--prophius-neutral-muted);
  font-style: italic;
}

/* ---------- Developers split ---------- */
.dev-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--prophius-space-12);
  align-items: center;
}
@media (max-width: 880px) { .dev-split { grid-template-columns: 1fr; } }

.dev-split ul { list-style: none; padding: 0; margin: 0 0 var(--prophius-space-8) 0; display: grid; gap: 10px; }
.dev-split ul li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; line-height: 1.55; color: var(--prophius-neutral-ink);
}
.dev-split ul li .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--prophius-sky-500);
  margin-top: 9px; flex: 0 0 6px;
}
.dev-split ul li strong { font-weight: 600; }

.code-card {
  background: var(--prophius-navy-900);
  border-radius: var(--prophius-radius-lg);
  overflow: hidden;
  border: 0.5px solid rgba(255,255,255,0.08);
}
.code-card__head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}
.code-card__head .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.code-card__file {
  margin-left: 8px;
  font-family: var(--prophius-font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.code-card pre {
  margin: 0;
  padding: 18px 20px 22px;
  font-family: var(--prophius-font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  overflow-x: auto;
}
.code-card .c { color: var(--prophius-sky-200); opacity: 0.7; }
.code-card .k { color: var(--prophius-sky-200); }
.code-card .s { color: #B7F0CB; }
.code-card .n { color: #FFD27A; }
.code-card .p { color: var(--prophius-white); }

/* ---------- Final CTA banner ---------- */
.cta-banner {
  background: var(--prophius-navy-700);
  color: var(--prophius-white);
  border-radius: var(--prophius-radius-lg);
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--prophius-space-12);
  align-items: center;
}
@media (max-width: 880px) { .cta-banner { grid-template-columns: 1fr; } }
.cta-banner h2 { color: var(--prophius-white); margin-bottom: 12px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.cta-banner p { color: rgba(255,255,255,0.78); max-width: 50ch; }
.cta-banner__actions {
  display: flex; gap: var(--prophius-space-3); flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 880px) { .cta-banner__actions { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--prophius-navy-900);
  color: rgba(255,255,255,0.72);
  padding: var(--prophius-space-16) 0 var(--prophius-space-10);
  margin-top: var(--prophius-space-16);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--prophius-space-10);
  margin-bottom: var(--prophius-space-12);
}
@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--prophius-space-8); }
}
.footer__brand img { width: 96px; margin-bottom: 12px; }
.footer__brand p { font-size: 13px; line-height: 1.6; max-width: 32ch; }
.footer h5 {
  font-family: var(--prophius-font-mono);
  font-size: var(--prophius-size-eyebrow);
  font-weight: 500;
  letter-spacing: var(--prophius-track-eyebrow);
  text-transform: uppercase;
  color: var(--prophius-sky-200);
  margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { font-size: 13px; color: rgba(255,255,255,0.72); }
.footer ul a:hover { color: var(--prophius-white); }
.footer__bottom {
  border-top: 0.5px solid rgba(255,255,255,0.12);
  padding-top: var(--prophius-space-6);
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.footer__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__badges .badge {
  display: inline-flex;
  font-family: var(--prophius-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--prophius-sky-200);
  border: 0.5px solid rgba(255,255,255,0.16);
  padding: 5px 10px;
  border-radius: var(--prophius-radius-pill);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--prophius-ease), transform 600ms var(--prophius-ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .btn .arrow, .product, .industry { transition: none !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Sub-page patterns
   ========================================================================== */

/* Page hero (smaller than homepage hero) */
.page-hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 64px);
  background: var(--prophius-neutral-canvas);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--prophius-space-12);
  align-items: center;
}
@media (max-width: 880px) { .page-hero__grid { grid-template-columns: 1fr; gap: var(--prophius-space-10); } }
.page-hero__copy .eyebrow { margin-bottom: var(--prophius-space-4); }
.page-hero__copy h1 { margin-bottom: var(--prophius-space-5); }
.page-hero__copy .lead { margin-bottom: var(--prophius-space-8); max-width: 52ch; }
.page-hero__visual {
  background: var(--prophius-white);
  border: 0.5px solid var(--prophius-neutral-line);
  border-radius: var(--prophius-radius-lg);
  padding: 32px;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: var(--prophius-navy-300);
}
.page-hero__visual svg { width: 100%; max-width: 320px; height: auto; }

/* ---------- Feature list (icon + title + body) ---------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--prophius-space-6);
}
@media (max-width: 880px) { .feature-list { grid-template-columns: 1fr; } }

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--prophius-space-3);
  background: var(--prophius-white);
  border: 0.5px solid var(--prophius-neutral-line);
  border-radius: var(--prophius-radius-lg);
  padding: 24px;
}
.feature__icon { width: 28px; height: 28px; color: var(--prophius-navy-700); }
.feature h3 { margin: 0; font-size: 16px; font-weight: 600; }
.feature p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--prophius-neutral-muted); }

/* Two-column variant */
.feature-list--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .feature-list--two { grid-template-columns: 1fr; } }

/* ---------- Bullet list (checkmarks) ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; line-height: 1.55;
  color: var(--prophius-neutral-ink);
}
.checklist li svg {
  width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px;
  color: var(--prophius-success-500);
}

/* ---------- Solution cards (Enterprise / Acquiring / SME) ---------- */
.solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--prophius-space-6);
}
@media (max-width: 880px) { .solutions { grid-template-columns: 1fr; } }

.solution {
  background: var(--prophius-white);
  border: 0.5px solid var(--prophius-neutral-line);
  border-radius: var(--prophius-radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: var(--prophius-space-4);
}
.solution__icon { width: 32px; height: 32px; color: var(--prophius-navy-700); }
.solution h3 { font-size: 18px; font-weight: 600; }
.solution p { font-size: 14px; line-height: 1.55; color: var(--prophius-neutral-muted); }
.solution ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.solution ul li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; line-height: 1.5; color: var(--prophius-neutral-ink);
}
.solution ul li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--prophius-sky-500); margin-top: 8px; flex: 0 0 6px;
}

/* ---------- Steps (numbered) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--prophius-space-6);
  counter-reset: step;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--prophius-neutral-panel);
  border-radius: var(--prophius-radius-md);
  padding: 28px 24px 24px;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--prophius-font-mono);
  font-size: var(--prophius-size-eyebrow);
  font-weight: 500;
  letter-spacing: var(--prophius-track-eyebrow);
  color: var(--prophius-sky-700);
  margin-bottom: 12px;
}
.step h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.step p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--prophius-neutral-muted); }

/* ---------- Quote card ---------- */
.quote-card {
  background: var(--prophius-navy-700);
  color: var(--prophius-white);
  border-radius: var(--prophius-radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  gap: var(--prophius-space-6);
}
.quote-card .mark {
  font-family: var(--prophius-font-mono);
  font-size: 36px;
  line-height: 1;
  color: var(--prophius-sky-500);
}
.quote-card blockquote {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--prophius-white);
}
.quote-card cite {
  font-style: normal;
  font-size: 14px;
  font-family: var(--prophius-font-mono);
  letter-spacing: 0.04em;
  color: var(--prophius-sky-200);
}

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--prophius-white);
  border: 0.5px solid var(--prophius-neutral-line);
  border-radius: var(--prophius-radius-md);
  padding: 20px 22px;
  transition: border-color var(--prophius-dur) var(--prophius-ease);
}
.faq details[open] { border-color: var(--prophius-navy-100); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--prophius-neutral-ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--prophius-font-mono);
  font-size: 18px;
  color: var(--prophius-navy-700);
  transition: transform var(--prophius-dur) var(--prophius-ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--prophius-neutral-muted);
}

/* ---------- Roles list ---------- */
.roles { display: grid; gap: 12px; }
.role {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: var(--prophius-space-5);
  align-items: center;
  background: var(--prophius-white);
  border: 0.5px solid var(--prophius-neutral-line);
  border-radius: var(--prophius-radius-md);
  padding: 20px 24px;
  transition: border-color var(--prophius-dur) var(--prophius-ease);
}
.role:hover { border-color: var(--prophius-navy-100); }
.role h3 { font-size: 15px; font-weight: 600; margin: 0; color: var(--prophius-neutral-ink); }
.role .meta {
  font-size: 13px;
  color: var(--prophius-neutral-muted);
  font-family: var(--prophius-font-mono);
  letter-spacing: 0.04em;
}
.role .apply {
  font-size: 13px; font-weight: 500;
  color: var(--prophius-navy-700);
}
@media (max-width: 700px) {
  .role { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
  .role .apply { justify-self: start; }
}

/* ---------- Pillar grid (About) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--prophius-space-6);
}
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--prophius-neutral-panel);
  border-radius: var(--prophius-radius-md);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.pillar__icon {
  width: 32px; height: 32px;
  color: var(--prophius-navy-700);
}
.pillar h3 { font-size: 18px; font-weight: 600; margin: 0; }
.pillar p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--prophius-neutral-muted); }

/* ---------- Stat grid (used in About / Why) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--prophius-space-6);
}
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px 0;
  border-top: 0.5px solid var(--prophius-neutral-line);
}
.stat-card .num {
  font-family: var(--prophius-font-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--prophius-navy-700);
  letter-spacing: var(--prophius-track-h2);
}
.stat-card .label {
  font-size: 13px;
  color: var(--prophius-neutral-muted);
  line-height: 1.5;
}

/* ---------- Dark-section overrides ---------- */
.section--dark .feature {
  background: var(--prophius-navy-900);
  border-color: rgba(255,255,255,0.08);
}
.section--dark .feature h3 { color: var(--prophius-white); }
.section--dark .feature p { color: rgba(255,255,255,0.72); }
.section--dark .feature__icon { color: var(--prophius-sky-200); }

.section--dark .checklist li { color: var(--prophius-white); }
.section--dark .checklist li svg { color: var(--prophius-sky-200); }

.section--dark .step {
  background: var(--prophius-navy-900);
  color: var(--prophius-white);
}
.section--dark .step h3 { color: var(--prophius-white); }
.section--dark .step p { color: rgba(255,255,255,0.72); }
.section--dark .step::before { color: var(--prophius-sky-200); }

.section--dark .solution {
  background: var(--prophius-navy-900);
  border-color: rgba(255,255,255,0.08);
}
.section--dark .solution h3 { color: var(--prophius-white); }
.section--dark .solution p, .section--dark .solution ul li { color: rgba(255,255,255,0.78); }
.section--dark .solution__icon { color: var(--prophius-sky-200); }

.section--dark .pillar {
  background: var(--prophius-navy-900);
}
.section--dark .pillar h3 { color: var(--prophius-white); }
.section--dark .pillar p { color: rgba(255,255,255,0.72); }
.section--dark .pillar__icon { color: var(--prophius-sky-200); }

.section--dark .prose p { color: rgba(255,255,255,0.85); }
.section--dark .lead { color: rgba(255,255,255,0.78); }

/* ---------- Long-form prose section ---------- */
.prose { max-width: 720px; }
.prose p { font-size: 16px; line-height: 1.7; color: var(--prophius-neutral-ink); margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Photography patterns
   ========================================================================== */

/* Hero photo — replaces the abstract visual on product page heroes */
.hero-photo {
  position: relative;
  border-radius: var(--prophius-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--prophius-neutral-panel);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo--product { background: #fff; border: 1px solid var(--prophius-neutral-line); }
.hero-photo--product img { object-fit: contain; }
.hero-photo__caption {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(5, 29, 73, 0.84);
  color: var(--prophius-white);
  font-family: var(--prophius-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--prophius-track-eyebrow);
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--prophius-radius-pill);
  backdrop-filter: blur(6px);
}
.hero-photo__caption .accent { color: var(--prophius-sky-200); }

/* Override page-hero__visual when it contains a hero-photo */
.page-hero__visual--photo {
  padding: 0;
  background: transparent;
  border: none;
  min-height: 0;
}

/* ---------- Photo industries grid (homepage) ---------- */
.photo-industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--prophius-space-5);
}
@media (max-width: 880px) { .photo-industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-industries { grid-template-columns: 1fr; } }

.photo-card {
  position: relative;
  display: block;
  border-radius: var(--prophius-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}
.photo-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--prophius-ease);
}
.photo-card:hover img { transform: scale(1.04); }
.photo-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,29,73,0) 35%, rgba(2,17,46,0.86) 100%);
  z-index: 1;
}
.photo-card__body {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--prophius-white);
}
.photo-card__num {
  position: absolute; top: 18px; left: 22px;
  font-family: var(--prophius-font-mono);
  font-size: var(--prophius-size-eyebrow);
  font-weight: var(--prophius-w-eyebrow);
  letter-spacing: var(--prophius-track-eyebrow);
  color: var(--prophius-white);
  background: rgba(5,29,73,0.6);
  padding: 4px 8px;
  border-radius: var(--prophius-radius-pill);
  backdrop-filter: blur(6px);
}
.photo-card h3 {
  color: var(--prophius-white);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}
.photo-card p {
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Photo strip (full-width photo with caption) ---------- */
.photo-strip {
  position: relative;
  border-radius: var(--prophius-radius-lg);
  overflow: hidden;
  min-height: 360px;
  isolation: isolate;
}
.photo-strip img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-strip::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,29,73,0.78) 0%, rgba(5,29,73,0.45) 50%, rgba(5,29,73,0) 100%);
  z-index: 1;
}
.photo-strip__body {
  position: relative; z-index: 2;
  padding: clamp(40px, 6vw, 72px);
  max-width: 540px;
  color: var(--prophius-white);
}
.photo-strip__body .eyebrow { color: var(--prophius-sky-200); margin-bottom: 16px; }
.photo-strip__body h2 { color: var(--prophius-white); margin-bottom: 14px; }
.photo-strip__body p { color: rgba(255,255,255,0.85); font-size: 16px; line-height: 1.6; }

/* ==========================================================================
   Page persona variants — each page gets a distinct character while staying
   on the v2.0 token system.
   ========================================================================== */

/* ---------- Dark hero (Paygate, Developers) ---------- */
.page-hero--dark {
  background: var(--prophius-navy-700);
  color: var(--prophius-white);
  border-bottom: none;
  padding: clamp(64px, 9vw, 128px) 0 clamp(56px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.page-hero--dark .page-hero__copy h1,
.page-hero--dark .page-hero__copy h1.display { color: var(--prophius-white); }
.page-hero--dark .page-hero__copy .lead { color: rgba(255,255,255,0.78); }
.page-hero--dark .page-hero__copy .eyebrow { color: var(--prophius-sky-200); }
.page-hero--dark .btn--primary { background: var(--prophius-white); color: var(--prophius-navy-700); }
.page-hero--dark .btn--primary:hover { background: var(--prophius-sky-50); }
.page-hero--dark .btn--secondary { color: var(--prophius-white); border-color: rgba(255,255,255,0.4); }
.page-hero--dark .btn--secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--prophius-white); }
.page-hero--dark .page-hero__visual { background: transparent; border: none; padding: 0; }
.page-hero--dark::after {
  content: ""; position: absolute; right: -180px; top: -180px; width: 480px; height: 480px;
  border: 0.5px solid rgba(255,255,255,0.06); border-radius: 50%;
  pointer-events: none;
}

/* Metric strip — sub-hero strip of mono numbers (Paygate) */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--prophius-space-6);
  margin-top: var(--prophius-space-12);
  padding-top: var(--prophius-space-6);
  border-top: 0.5px solid rgba(255,255,255,0.18);
}
@media (max-width: 880px) { .metric-strip { grid-template-columns: repeat(2, 1fr); } }
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric .num {
  font-family: var(--prophius-font-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--prophius-white);
  letter-spacing: var(--prophius-track-h2);
}
.metric .label {
  font-family: var(--prophius-font-mono);
  font-size: 11px;
  letter-spacing: var(--prophius-track-eyebrow);
  text-transform: uppercase;
  color: var(--prophius-sky-200);
}

/* ---------- Full-bleed photo hero (POS Pulse) ---------- */
.page-hero--full {
  position: relative;
  padding: 0;
  border-bottom: none;
  background: var(--prophius-navy-700);
  overflow: hidden;
}
.page-hero--full__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.page-hero--full__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--full__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(2,17,46,0.92) 0%, rgba(5,29,73,0.78) 50%, rgba(5,29,73,0.45) 100%);
}
.page-hero--full__inner {
  position: relative; z-index: 1;
  max-width: var(--prophius-content-max);
  margin: 0 auto;
  padding: clamp(96px, 14vw, 200px) var(--prophius-gutter) clamp(80px, 11vw, 168px);
  color: var(--prophius-white);
  max-width: 800px;
  width: 100%;
}
.page-hero--full__inner .eyebrow { color: var(--prophius-sky-200); margin-bottom: 18px; }
.page-hero--full__inner h1.display {
  color: var(--prophius-white);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.05;
  margin-bottom: 22px;
  max-width: 14ch;
}
.page-hero--full__inner .lead { color: rgba(255,255,255,0.86); max-width: 50ch; margin-bottom: 32px; }
.page-hero--full__inner .btn--primary { background: var(--prophius-white); color: var(--prophius-navy-700); }
.page-hero--full__inner .btn--primary:hover { background: var(--prophius-sky-50); }
.page-hero--full__inner .btn--secondary { color: var(--prophius-white); border-color: rgba(255,255,255,0.4); }
.page-hero--full__inner .btn--secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--prophius-white); }

/* ---------- Mobile-first hero (PayContactless) — oversized phone photo ---------- */
.page-hero--mobile { padding: clamp(48px, 6vw, 80px) 0 0; }
.page-hero--mobile .page-hero__grid { grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: end; }
@media (max-width: 880px) { .page-hero--mobile .page-hero__grid { grid-template-columns: 1fr; } }
.page-hero--mobile .page-hero__copy { padding-bottom: clamp(48px, 8vw, 96px); }
.page-hero--mobile .hero-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--prophius-radius-lg) var(--prophius-radius-lg) 0 0;
  height: 100%;
  min-height: 480px;
}
.page-hero--mobile .app-badges { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.app-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--prophius-navy-700); color: var(--prophius-white);
  padding: 10px 16px; border-radius: var(--prophius-radius-md);
  font-size: 13px; font-weight: 500;
  text-decoration: none;
}
.app-badge:hover { background: var(--prophius-navy-600); }
.app-badge .small { font-size: 10px; opacity: 0.7; line-height: 1; display: block; font-family: var(--prophius-font-mono); letter-spacing: 0.06em; }
.app-badge .name { font-size: 14px; line-height: 1.1; display: block; }

/* ---------- Editorial hero (About) — centered, no visual ---------- */
.page-hero--editorial {
  text-align: center;
  padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 7vw, 96px);
  border-bottom: none;
}
.page-hero--editorial .page-hero__grid { grid-template-columns: 1fr; }
.page-hero--editorial .page-hero__copy { max-width: 820px; margin: 0 auto; }
.page-hero--editorial .page-hero__copy h1.display {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: var(--prophius-track-display);
  max-width: 18ch; margin-left: auto; margin-right: auto;
}
.page-hero--editorial .page-hero__copy .lead { max-width: 56ch; margin-left: auto; margin-right: auto; font-size: 18px; }
.page-hero--editorial .hero__actions { justify-content: center; }
.page-hero--editorial .page-hero__visual { display: none; }

/* Photo strip — full-width photo block (used after editorial hero on About) */
.photo-strip-full {
  width: 100%;
  height: clamp(320px, 42vw, 560px);
  position: relative;
  overflow: hidden;
}
.photo-strip-full img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-strip-full__caption {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 24px;
  background: rgba(5,29,73,0.78);
  color: var(--prophius-white);
  font-family: var(--prophius-font-mono);
  font-size: 11px;
  letter-spacing: var(--prophius-track-eyebrow);
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--prophius-radius-pill);
  backdrop-filter: blur(6px);
}

/* Pull-quote — editorial breaker (About) */
.pull-quote {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: var(--prophius-space-12) 0;
}
.pull-quote blockquote {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--prophius-navy-700);
  margin: 0 0 18px;
}
.pull-quote cite {
  font-style: normal;
  font-family: var(--prophius-font-mono);
  font-size: 12px;
  letter-spacing: var(--prophius-track-eyebrow);
  text-transform: uppercase;
  color: var(--prophius-sky-700);
}

/* ---------- Lean utility hero (FAQs) — single column, no photo ---------- */
.page-hero--lean {
  padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 0.5px solid var(--prophius-neutral-line);
}
.page-hero--lean .page-hero__grid { grid-template-columns: 1fr; max-width: 720px; }
.page-hero--lean .page-hero__visual { display: none; }
.page-hero--lean .page-hero__copy h1.display {
  font-size: clamp(32px, 4vw, 56px);
  margin-bottom: 16px;
}
.search-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--prophius-white);
  border: 0.5px solid var(--prophius-neutral-line);
  border-radius: var(--prophius-radius-md);
  padding: 14px 18px;
  margin-top: 28px;
}
.search-box svg { width: 18px; height: 18px; color: var(--prophius-neutral-muted); flex-shrink: 0; }
.search-box input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: var(--prophius-font-sans);
  font-size: 14px;
  color: var(--prophius-neutral-ink);
}
.search-box .kbd {
  font-family: var(--prophius-font-mono);
  font-size: 11px;
  color: var(--prophius-neutral-muted);
  background: var(--prophius-neutral-panel);
  padding: 3px 8px;
  border-radius: var(--prophius-radius-sm);
}

/* ---------- Code/terminal hero (Developers) ---------- */
.page-hero--code { background: var(--prophius-navy-900); color: var(--prophius-white); border-bottom: none; }
.page-hero--code .page-hero__copy h1.display { color: var(--prophius-white); }
.page-hero--code .page-hero__copy .lead { color: rgba(255,255,255,0.78); }
.page-hero--code .page-hero__copy .eyebrow { color: var(--prophius-sky-200); }
.page-hero--code .btn--primary { background: var(--prophius-sky-700); }
.page-hero--code .btn--primary:hover { background: var(--prophius-sky-900); }
.page-hero--code .btn--secondary { color: var(--prophius-white); border-color: rgba(255,255,255,0.4); }
.page-hero--code .page-hero__visual { background: transparent; border: none; padding: 0; }

/* ---------- Story block — alternating photo + text (PayLinks) ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--prophius-space-16);
  align-items: center;
  padding: var(--prophius-space-12) 0;
}
.story + .story { border-top: 0.5px solid var(--prophius-neutral-line); }
.story--reverse .story__copy { order: 2; }
.story--reverse .story__visual { order: 1; }
@media (max-width: 880px) {
  .story { grid-template-columns: 1fr; gap: var(--prophius-space-10); }
  .story--reverse .story__copy { order: 1; }
  .story--reverse .story__visual { order: 2; }
}
.story__visual { border-radius: var(--prophius-radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.story__visual img { width: 100%; height: 100%; object-fit: cover; }
.story__copy h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.story__copy p { font-size: 16px; line-height: 1.6; color: var(--prophius-neutral-muted); margin-bottom: 14px; }

/* ---------- Spec sheet — mono spec list (POS Pulse) ---------- */
.spec-sheet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 0.5px solid var(--prophius-neutral-line);
  border-radius: var(--prophius-radius-lg);
  overflow: hidden;
  background: var(--prophius-white);
}
@media (max-width: 700px) { .spec-sheet { grid-template-columns: 1fr; } }
.spec {
  padding: 20px 24px;
  border-bottom: 0.5px solid var(--prophius-neutral-line);
  border-right: 0.5px solid var(--prophius-neutral-line);
  display: flex; flex-direction: column; gap: 6px;
}
.spec:nth-child(2n) { border-right: none; }
.spec:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 700px) {
  .spec { border-right: none; }
  .spec:nth-last-child(-n+2) { border-bottom: 0.5px solid var(--prophius-neutral-line); }
  .spec:last-child { border-bottom: none; }
}
.spec__label {
  font-family: var(--prophius-font-mono);
  font-size: 11px;
  letter-spacing: var(--prophius-track-eyebrow);
  text-transform: uppercase;
  color: var(--prophius-sky-700);
}
.spec__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--prophius-neutral-ink);
}

/* ---------- Big photo strip with copy (Careers / About supporting) ---------- */
.photo-band {
  position: relative;
  border-radius: var(--prophius-radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
@media (max-width: 880px) { .photo-band { grid-template-columns: 1fr; } }
.photo-band__media { position: relative; min-height: 360px; }
.photo-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band__copy {
  background: var(--prophius-navy-700);
  color: var(--prophius-white);
  padding: clamp(40px, 6vw, 72px);
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.photo-band__copy .eyebrow { color: var(--prophius-sky-200); }
.photo-band__copy h2 { color: var(--prophius-white); }
.photo-band__copy p { color: rgba(255,255,255,0.78); font-size: 16px; line-height: 1.6; }

/* ==========================================================================
   Interaction primitives
   ========================================================================== */

/* Scroll progress bar — a 2px sky-coloured strip at the very top */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--prophius-sky-500);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 60;
  pointer-events: none;
  transition: transform 80ms linear;
}

/* Sticky-nav scrolled state — adds a subtle shadow + tightens height */
.nav.is-scrolled {
  background: rgba(246, 247, 249, 0.96);
  box-shadow: 0 1px 0 var(--prophius-neutral-line);
}

/* Mobile nav button (hidden on desktop) */
.nav__menu-btn {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 0.5px solid var(--prophius-neutral-line);
  border-radius: var(--prophius-radius-md);
  color: var(--prophius-navy-700);
  cursor: pointer;
  transition: background-color var(--prophius-dur) var(--prophius-ease);
  margin-left: auto;
}
.nav__menu-btn:hover { background: var(--prophius-neutral-panel); }
.nav__menu-btn svg { width: 18px; height: 18px; }
.nav__menu-btn .icon-close { display: none; }
.nav__menu-btn[aria-expanded="true"] .icon-open { display: none; }
.nav__menu-btn[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 880px) {
  .nav__cta { display: none; }
  .nav__menu-btn { display: inline-flex; }
}

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  top: 64px; left: 0;
  width: 100%;
  height: calc(100dvh - 64px);
  background: var(--prophius-neutral-canvas);
  border-top: 0.5px solid var(--prophius-neutral-line);
  padding: var(--prophius-space-8) var(--prophius-gutter);
  transform: translateX(100%);
  transition: transform 280ms var(--prophius-ease);
  z-index: 49;
  overflow-y: auto;
  display: none;
}
.nav__drawer.is-open { transform: translateX(0); }

@media (max-width: 880px) { .nav__drawer { display: block; } }

.nav__drawer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.nav__drawer ul li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--prophius-neutral-ink);
  border-bottom: 0.5px solid var(--prophius-neutral-line);
}
.nav__drawer ul li a:hover { color: var(--prophius-navy-700); }
.nav__drawer ul li a::after {
  content: "→";
  font-family: var(--prophius-font-mono);
  color: var(--prophius-neutral-muted);
}
.nav__drawer__cta {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: var(--prophius-space-8);
  padding-top: var(--prophius-space-6);
  border-top: 0.5px solid var(--prophius-neutral-line);
}
.nav__drawer__cta .btn { justify-content: center; }

/* FAQ empty-state when search returns nothing */
.faq__empty {
  text-align: center;
  padding: 32px 0;
  font-size: 14px;
  color: var(--prophius-neutral-muted);
  font-family: var(--prophius-font-mono);
  letter-spacing: 0.04em;
}

/* Search-box keyboard-shortcut affordance — already styled */

/* Photo card hover affordance: arrow that slides in */
.photo-card__body::after {
  content: "→";
  position: absolute;
  right: 22px; bottom: 22px;
  font-family: var(--prophius-font-mono);
  font-size: 18px;
  color: var(--prophius-white);
  transform: translateX(-8px);
  opacity: 0;
  transition: transform var(--prophius-dur) var(--prophius-ease),
              opacity var(--prophius-dur) var(--prophius-ease);
}
.photo-card:hover .photo-card__body::after,
.photo-card:focus-visible .photo-card__body::after {
  transform: translateX(0);
  opacity: 1;
}

/* Photo card keyboard focus ring */
.photo-card:focus-visible { outline: none; box-shadow: var(--prophius-focus-ring); }

/* Code card cursor blink (visible only while typing) */
[data-type-out]::after {
  content: "";
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--prophius-sky-500);
  margin-left: 2px;
  vertical-align: -2px;
  animation: cursor-blink 700ms steps(2) infinite;
}
[data-type-out].is-done::after { display: none; }
@keyframes cursor-blink { 50% { opacity: 0; } }

/* Reduced motion: disable the animation entirely */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress, .nav__drawer, .photo-card__body::after, [data-type-out]::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   GSAP-style motion utilities (driven by motion.js)
   ========================================================================== */

/* Only hide [data-anim] elements when JS has flagged the document.
   This guarantees content remains visible without JS or with reduced motion. */
html.js [data-anim] { opacity: 0; will-change: transform, opacity; }
[data-anim].is-anim-done { will-change: auto; opacity: 1 !important; }

/* Tilt target — the receipt visual on homepage hero */
[data-tilt] { transform-style: preserve-3d; transition: transform 240ms var(--prophius-ease); will-change: transform; }
[data-tilt-inner] { transform: translateZ(20px); }

/* ==========================================================================
   Logo marquee
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  padding: var(--prophius-space-8) 0;
  border-top: 0.5px solid var(--prophius-neutral-line);
  border-bottom: 0.5px solid var(--prophius-neutral-line);
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--prophius-neutral-canvas), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--prophius-neutral-canvas), transparent); }

.marquee__track {
  display: flex; gap: 64px; align-items: center;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__logo {
  font-family: var(--prophius-font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--prophius-neutral-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   Partner logos — schemes, wallets, networks
   NOTE: Wordmarks here are styling placeholders. Replace with licensed
   partner-supplied logo SVGs before launch.
   ========================================================================== */
.partners {
  position: relative;
  padding: var(--prophius-space-10) 0 var(--prophius-space-8);
  border-top: 0.5px solid var(--prophius-neutral-line);
  border-bottom: 0.5px solid var(--prophius-neutral-line);
  overflow: hidden;
}
.partners__title {
  text-align: center;
  font-family: var(--prophius-font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--prophius-neutral-muted);
  margin: 0 0 var(--prophius-space-6);
}
.partners::before, .partners::after {
  content: "";
  position: absolute; top: 36px; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.partners::before { left: 0; background: linear-gradient(90deg, var(--prophius-neutral-canvas), transparent); }
.partners::after  { right: 0; background: linear-gradient(-90deg, var(--prophius-neutral-canvas), transparent); }
.partners__track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .partners__track { animation: none; } }
.partners:hover .partners__track { animation-play-state: paused; }

.partner-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  min-width: 140px;
  padding: 0 24px;
  transition: opacity 200ms ease, transform 200ms ease;
}
.partner-logo img {
  max-height: 44px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Slight desaturation for visual rhythm; lift on hover */
  opacity: .85;
  transition: opacity 200ms ease;
}
.partner-logo:hover img {
  opacity: 1;
  transform: translateY(-1px);
}

@keyframes marquee-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}


/* ==========================================================================
   Toast notifications
   ========================================================================== */
.toast-stack {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--prophius-navy-900);
  color: var(--prophius-white);
  border-radius: var(--prophius-radius-md);
  padding: 12px 18px;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(2, 17, 46, 0.32);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms var(--prophius-ease), transform 240ms var(--prophius-ease);
  pointer-events: auto;
  min-width: 280px;
}
.toast.is-shown { opacity: 1; transform: translateY(0); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast--success svg { color: var(--prophius-success-500); }
.toast--error   svg { color: var(--prophius-danger-500); }

/* ==========================================================================
   Modal dialog
   ========================================================================== */
.modal-backdrop {
  position: fixed; inset: 0;
  z-index: 90;
  background: rgba(2, 17, 46, 0.65);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--prophius-ease);
  backdrop-filter: blur(4px);
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--prophius-white);
  border-radius: var(--prophius-radius-lg);
  width: 100%; max-width: 520px;
  max-height: 92dvh; overflow-y: auto;
  padding: 28px;
  transform: translateY(8px) scale(0.98);
  transition: transform 240ms var(--prophius-ease);
}
.modal-backdrop.is-open .modal { transform: translateY(0) scale(1); }
.modal__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 16px;
}
.modal__head .eyebrow { color: var(--prophius-sky-700); margin-bottom: 6px; display: block; }
.modal__head h2 { font-size: 22px; font-weight: 600; line-height: 1.25; margin: 0; }
.modal__close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--prophius-neutral-muted);
  border-radius: var(--prophius-radius-sm);
  transition: background-color var(--prophius-dur) var(--prophius-ease);
}
.modal__close:hover { background: var(--prophius-neutral-panel); }
.modal__close svg { width: 18px; height: 18px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form { display: grid; gap: 14px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form__row--two { grid-template-columns: 1fr; } }

.form label {
  font-family: var(--prophius-font-mono);
  font-size: var(--prophius-size-eyebrow);
  font-weight: 500;
  letter-spacing: var(--prophius-track-eyebrow);
  text-transform: uppercase;
  color: var(--prophius-neutral-muted);
}
.form__hint { font-size: 12px; color: var(--prophius-neutral-muted); }
.form input, .form textarea, .form select {
  background: var(--prophius-neutral-canvas);
  border: 0.5px solid var(--prophius-neutral-line);
  border-radius: var(--prophius-radius-md);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--prophius-neutral-ink);
  outline: none;
  transition: border-color var(--prophius-dur) var(--prophius-ease),
              box-shadow var(--prophius-dur) var(--prophius-ease);
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--prophius-navy-700);
  box-shadow: var(--prophius-focus-ring);
}
.form textarea { resize: vertical; min-height: 96px; }
.form__row.is-invalid input,
.form__row.is-invalid textarea,
.form__row.is-invalid select {
  border-color: var(--prophius-danger-500);
}
.form__error {
  font-size: 12px; color: var(--prophius-danger-800);
  display: none;
  align-items: center; gap: 6px;
}
.form__row.is-invalid .form__error { display: flex; }
.form__error svg { width: 14px; height: 14px; color: var(--prophius-danger-500); }

.form__submit { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.form__submit .small { font-size: 12px; color: var(--prophius-neutral-muted); }

/* Newsletter row in footer */
.newsletter {
  display: flex;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: var(--prophius-radius-md);
  overflow: hidden;
  margin-top: 14px;
}
.newsletter input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--prophius-white);
}
.newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter button {
  background: var(--prophius-sky-700);
  color: var(--prophius-white);
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--prophius-dur) var(--prophius-ease);
}
.newsletter button:hover { background: var(--prophius-sky-900); }

/* ==========================================================================
   Tabs (Paygate solutions)
   ========================================================================== */
.tabs__list {
  display: flex;
  gap: 4px;
  border-bottom: 0.5px solid var(--prophius-neutral-line);
  margin-bottom: var(--prophius-space-8);
  flex-wrap: wrap;
}
.tabs__btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--prophius-neutral-muted);
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -0.5px;
  transition: color var(--prophius-dur) var(--prophius-ease),
              border-color var(--prophius-dur) var(--prophius-ease);
}
.tabs__btn:hover { color: var(--prophius-navy-700); }
.tabs__btn[aria-selected="true"] {
  color: var(--prophius-navy-700);
  border-bottom-color: var(--prophius-sky-500);
}
.tabs__panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms var(--prophius-ease), transform 240ms var(--prophius-ease);
  display: none;
}
.tabs__panel[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

/* ---------- Legal pages (Ketch slot) ---------- */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--prophius-neutral-ink);
}
.legal-doc h2 { margin-top: var(--prophius-space-10); }
.legal-doc h3 { margin-top: var(--prophius-space-8); }
.legal-doc p, .legal-doc ul, .legal-doc ol { margin-bottom: var(--prophius-space-5); }
.legal-doc__fallback {
  background: var(--prophius-neutral-canvas);
  border: 1px solid var(--prophius-neutral-line);
  border-radius: 12px;
  padding: var(--prophius-space-5) var(--prophius-space-6);
  margin-bottom: var(--prophius-space-4);
  color: var(--prophius-neutral-muted);
  font-size: 14px;
}
.legal-doc__fallback code {
  font-family: var(--prophius-font-mono, "JetBrains Mono", monospace);
  font-size: 12px;
  background: rgba(5,29,73,.06);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--prophius-navy-700);
}

/* Contact block (used by Newsroom etc.) */
.contact-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact-block h2 { margin-bottom: var(--prophius-space-4); }
.contact-block .lead { margin-bottom: var(--prophius-space-6); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--prophius-navy-700);
  color: var(--prophius-white);
  padding: 10px 16px;
  border-radius: 0 0 var(--prophius-radius-md) 0;
  font-size: 14px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Splash scene images (Higgsfield product renders) ----------
   Backgrounds are normalised to pure white; multiply makes that white
   disappear against the white hero so only the devices and their soft
   shadows show (same trick as the pre-keyed video scenes). No CSS
   drop-shadow: the image box is opaque, so it would draw a rectangle. */
.splash-scene__img {
  width: 100%;
  max-width: 620px;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  mix-blend-mode: multiply;
}
@media (max-width: 720px) {
  .splash-scene__img { max-height: 300px; }
}

/* ---------- Pricing page ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--prophius-space-5); }
@media (max-width: 800px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--prophius-white);
  border: 1px solid var(--prophius-neutral-line);
  border-radius: var(--prophius-radius-lg);
  padding: 32px;
}
.price-card__eyebrow {
  display: inline-block;
  font-family: var(--prophius-font-mono, "JetBrains Mono", monospace);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--prophius-sky-700, #0086b3);
  margin-bottom: 12px;
}
.price-card h3 { font-size: 22px; font-weight: 700; margin: 0 0 6px; color: var(--prophius-navy-700); }
.price-card__sub { margin: 0 0 22px; color: var(--prophius-neutral-muted); font-size: 15px; }
.price-rows { margin: 0; display: grid; gap: 0; }
.price-row {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--prophius-neutral-line);
}
.price-row dt { margin: 0; font-weight: 600; color: var(--prophius-neutral-ink); }
.price-row dd { margin: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.price-row dd strong { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--prophius-navy-700); line-height: 1.1; }
.price-row dd span { font-size: 13px; color: var(--prophius-neutral-muted); }
.price-note { max-width: 720px; margin: 20px auto 0; text-align: center; font-size: 14px; color: var(--prophius-neutral-muted); }

/* ---------- Legal documents ---------- */
.legal-doc__meta { font-family: var(--prophius-font-mono, "JetBrains Mono", monospace); font-size: 12px; letter-spacing: 0.04em; color: var(--prophius-neutral-muted); margin-bottom: var(--prophius-space-6); }
.legal-doc__notice { background: #FFF7E6; border: 1px solid #F2C14E; border-radius: 12px; padding: 14px 18px; font-size: 14px; margin-bottom: var(--prophius-space-6); }
.legal-doc h2 { font-size: 22px; }
.legal-doc h3 { font-size: 17px; }
.legal-doc li { margin-bottom: 6px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 var(--prophius-space-6); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--prophius-neutral-line); }
.legal-table th { font-weight: 600; color: var(--prophius-navy-700); background: var(--prophius-neutral-canvas); }
@media (max-width: 640px) { .legal-table { display: block; overflow-x: auto; } }

/* ---------- PayContactless tap-to-phone demo (animated hero) ----------
   Pre-rendered frames: the phone with each app screen already composited onto its glass
   (scene-work/bake_pcl_frames.py), cross-faded on the page. The card slides in behind the phone. */
.page-hero__visual--demo { padding: 0; background: transparent; border: none; min-height: 0; overflow: visible; }
.tap-demo { width: 100%; }
.tap-demo__stage { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: visible; }
.tap-demo__phone {
  position: absolute; left: 50%; top: 50%; height: 96%; aspect-ratio: 535 / 740;
  transform: translate(-50%, -50%); z-index: 3;
  animation: tap-float 7s ease-in-out infinite;
}
@keyframes tap-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  50%      { transform: translate(-47%, calc(-50% - 20px)) rotate(3deg); }
}
/* a CSS animation overrides transform, so the tap state switches it off and leans the phone into the card */
.tap-demo.is-tapping .tap-demo__phone, .tap-demo.is-receipt .tap-demo__phone { animation: none; transition: transform 1000ms cubic-bezier(.2,.8,.2,1); }
.tap-demo.is-tapping .tap-demo__phone { transform: translate(-40%, -48%) rotate(9deg) scale(1.03); }
.tap-demo.is-receipt .tap-demo__phone { transform: translate(-50%, -50%) rotate(0deg); }
.tap-demo__frame, .tap-demo__frame img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tap-demo__frame { opacity: 0; transition: opacity 360ms ease; pointer-events: none; }
.tap-demo__frame.is-on { opacity: 1; }
/* the card sweeps in from the right and slides behind the phone, against its back */
.tap-demo__card {
  position: absolute; z-index: 2; width: 44%; height: auto;
  left: 115%; top: 8%; transform: rotate(-22deg) scale(.96); opacity: 0;
  filter: drop-shadow(0 18px 24px rgba(5, 29, 73, 0.28));
  transition: left 1000ms cubic-bezier(.2,.8,.2,1), top 1000ms cubic-bezier(.2,.8,.2,1), transform 1000ms cubic-bezier(.2,.8,.2,1), opacity 500ms ease;
}
.tap-demo.is-tapping .tap-demo__card { left: 48%; top: 4%; transform: rotate(-12deg) scale(1); opacity: 1; }
.tap-demo.is-receipt .tap-demo__card { left: 115%; top: 8%; transform: rotate(-22deg) scale(.96); opacity: 0; }
.tap-demo__ripples { position: absolute; z-index: 1; left: 56%; top: 28%; width: 0; height: 0; pointer-events: none; }
.tap-demo__ripples span {
  position: absolute; left: 50%; top: 50%; width: 34vmin; max-width: 300px; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(0, 191, 255, 0.6); transform: translate(-50%, -50%) scale(0.2); opacity: 0;
}
.tap-demo.is-ripple .tap-demo__ripples span { animation: tap-ripple 1.4s ease-out infinite; }
.tap-demo.is-ripple .tap-demo__ripples span:nth-child(2) { animation-delay: .35s; }
.tap-demo.is-ripple .tap-demo__ripples span:nth-child(3) { animation-delay: .7s; }
@keyframes tap-ripple { 0% { opacity: .9; transform: translate(-50%, -50%) scale(0.25); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); } }
@media (prefers-reduced-motion: reduce) {
  .tap-demo__phone, .tap-demo.is-ripple .tap-demo__ripples span { animation: none; }
  .tap-demo__card, .tap-demo__frame, .tap-demo.is-tapping .tap-demo__phone { transition: none; }
}

/* ---------- Press releases ---------- */
.press-doc__figure { margin: 0 0 var(--prophius-space-8); border-radius: var(--prophius-radius-lg); overflow: hidden; border: 1px solid var(--prophius-neutral-line); }
.press-doc__figure img { display: block; width: 100%; height: auto; }
.press-doc__back { margin-top: var(--prophius-space-10); font-size: 14px; color: var(--prophius-neutral-muted); }
.feature--link { text-decoration: none; color: inherit; display: block; }
.feature--link:hover h3 { color: var(--prophius-sky-700); }
