/* =========================================================================
   Romevo — Landing page
   Tokens: Ink / Paper / Volt / Circuit / Signal, Space Grotesk + Inter + Plex Mono
   ========================================================================= */

:root {
  /* Color */
  --ink: #0a1220;
  --ink-soft: #3c4658;
  --paper: #fafbfd;
  --paper-dim: #f0f3f9;
  --line: #e2e7f0;

  --volt: #0b5fff;
  --volt-dark: #073999;
  --circuit: #0eb9c7;   /* deepened cyan for AA contrast on paper */
  --signal: #1c9c6f;    /* deepened green for AA contrast on paper */
  --amber: #b8790a;     /* deepened amber for AA contrast on paper */

  --navy: #020617;      /* matches product dashboard background */
  --navy-card: #0b1120;
  --navy-line: #232a3d;
  --fog: #b8c1d6;       /* muted text on navy */

  /* Payment status — mirrors the product dashboard's own tokens so the
     marketing site and the platform read as one system */
  --status-success: #2fbf8b;
  --status-success-bg: #061c1a;
  --status-success-line: #06664b;
  --status-partial: #34d399;
  --status-partial-bg: #022c22;
  --status-partial-line: #10b981;
  --status-pending: #fbbf24;
  --status-pending-bg: #1c1003;
  --status-pending-line: #f59e0b;
  --status-fail: #f87171;
  --status-fail-bg: #1c0404;
  --status-fail-line: #ef4444;

  /* Type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Layout */
  --wrap: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--volt);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-navy :focus-visible { outline-color: var(--circuit); }

/* Visually hidden but available to assistive tech */
.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;
}

/* -------------------------------------------------------------------------
   Reveal-on-scroll (progressive enhancement; content visible without JS)
   ------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 253, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-glyph { width: 28px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.93rem;
  font-weight: 500;
}
.site-nav a {
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.link-muted {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.link-muted:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  gap: 4px;
}
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 14px; text-align: center; }

.site-header.is-open .mobile-nav { display: flex; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--volt);
  color: #fff;
}
.btn-primary:hover {
  background: var(--volt-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--volt);
  color: var(--volt);
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* =========================================================================
   Eyebrows / section heads
   ========================================================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--volt);
  margin: 0 0 14px;
}
.eyebrow-dark { color: var(--circuit); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head-dark { max-width: 700px; }

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.16;
  margin-bottom: 16px;
}

.section-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 58ch;
}
.section-lede-dark { color: var(--fog); }
.section-head-dark h2 { color: #fff; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  padding: 80px 0 56px;
  overflow: hidden;
}

.hero-trace {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.hero-trace svg { width: 100%; height: 100%; }

.trace-path {
  fill: none;
  stroke: var(--volt);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.35;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw-trace 2.6s ease-out forwards;
}
@keyframes draw-trace {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .trace-path { animation: none; stroke-dashoffset: 0; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.07;
  margin-bottom: 22px;
}

.hero-lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ---- Hero flow card: the money path, vertical so it survives 360px ------ */
.flow-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  box-shadow: 0 24px 60px -34px rgba(10, 18, 32, 0.4);
}

.flow-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow-node {
  position: relative;
  padding: 0 0 26px 30px;
}
.flow-node:last-child { padding-bottom: 0; }

/* connector line between nodes */
.flow-node::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 16px;
  bottom: -2px;
  width: 1.5px;
  background: linear-gradient(var(--line), var(--line));
}
.flow-node:last-child::before { display: none; }

.flow-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--volt);
  background: #fff;
}
.flow-node--end .flow-dot {
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 0 0 4px rgba(28, 156, 111, 0.16);
}

.flow-node-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}
.flow-node-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 3px;
}

.flow-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.flow-foot strong { color: var(--ink); }

/* =========================================================================
   Persona strip — satisfies the IA requirement for per-audience routing
   within one scroll, without letting personas take over the hero
   ========================================================================= */
.persona-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-dim);
  padding: 18px 0;
}
.persona-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.persona-intro {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.persona-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}
.persona-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.persona-link:hover { border-color: var(--volt); color: var(--volt); }

/* =========================================================================
   Section divider (signature trace motif, echoed quietly)
   ========================================================================= */
.section-divider {
  height: 32px;
  margin-top: -8px;
}
.section-divider svg { width: 100%; height: 100%; }
.section-divider path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

/* =========================================================================
   Stat strip
   ========================================================================= */
.stat-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* =========================================================================
   Features (shared grid used by several sections)
   ========================================================================= */
.features { padding: 96px 0; }
.features-alt { background: var(--paper-dim); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}
.feature-icon {
  display: inline-flex;
  color: var(--volt);
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.section-cta {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

.feature-grid--spaced { margin-top: 56px; }

/* =========================================================================
   PAYMENTS — the centrepiece. Lifecycle timeline on the trace motif.
   ========================================================================= */
.payments-section { padding: 96px 0; }

/* Column-wise flow so stages read 1-2-3 down the left, 4-5-6 down the right —
   which is what lets each column carry one continuous connecting line. */
.lifecycle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 0 56px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.stage {
  position: relative;
  padding: 0 0 34px 58px;
}

/* the vertical trace each stage hangs off */
.stage::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 34px;
  bottom: 0;
  width: 1.5px;
  background: var(--line);
}
/* the last stage in each column stops the line */
.stage:nth-child(3)::before,
.stage:nth-child(6)::before { display: none; }

.stage-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--volt);
  background: #fff;
  color: var(--volt);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
}

.stage-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.stage-desc {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.stage-tech {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper-dim);
  border-left: 2px solid var(--circuit);
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  overflow-wrap: anywhere;
}

/* ---- Callout: the PARTIAL_SUCCESS argument ----------------------------- */
.callout {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 30px 32px;
}
.callout h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 14px;
}
.callout p {
  font-size: 0.96rem;
  color: var(--ink-soft);
  max-width: 76ch;
}
.callout p + p { margin-top: 12px; }
.callout code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--paper-dim);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid;
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-success { color: var(--status-success); border-color: var(--status-success-line); background: var(--status-success-bg); }
.badge-partial { color: var(--status-partial); border-color: var(--status-partial-line); background: var(--status-partial-bg); }
.badge-pending { color: var(--status-pending); border-color: var(--status-pending-line); background: var(--status-pending-bg); }
.badge-fail    { color: var(--status-fail);    border-color: var(--status-fail-line);    background: var(--status-fail-bg); }

/* ---- Split of responsibilities ---------------------------------------- */
.responsibility {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.resp-col {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 28px 26px;
}
.resp-col--theirs { background: var(--paper-dim); }
.resp-head {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 18px;
}
.resp-col--theirs .resp-head { color: var(--ink-soft); }
.resp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.resp-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.resp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--volt);
}
.resp-col--theirs .resp-list li::before { background: var(--ink-soft); opacity: 0.45; }

.resp-note {
  margin-top: 40px;
  text-align: center;
  font-size: 1.02rem;
  color: var(--ink);
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================================
   MONEY FLOW — dark panel
   ========================================================================= */
.money-section {
  background: var(--navy);
  padding: 96px 0;
  color: #fafafa;
}

.money-diagram {
  margin: 8px 0 48px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.money-diagram svg {
  display: block;
  width: 100%;
  min-width: 700px;
  height: auto;
}
.money-node {
  fill: var(--navy-card);
  stroke: var(--navy-line);
  stroke-width: 1.5;
}
.money-node--end { stroke: var(--signal); }
.money-romevo { fill: var(--navy-card); stroke: var(--circuit); stroke-width: 1.5; }
.money-label {
  fill: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.money-sub {
  fill: var(--fog);
  font-family: var(--font-mono);
  font-size: 11px;
}
.money-edge {
  stroke: var(--fog);
  stroke-width: 1.4;
  fill: none;
  opacity: 0.65;
}
.money-edge--dash {
  stroke: var(--circuit);
  stroke-dasharray: 4 4;
  opacity: 0.8;
}
.money-edge-label {
  fill: var(--circuit);
  font-family: var(--font-mono);
  font-size: 11px;
}

.money-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.money-point {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}
.money-point h3 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 10px;
}
.money-point p {
  font-size: 0.92rem;
  color: var(--fog);
}

/* =========================================================================
   INTEGRATIONS — provider directory
   ========================================================================= */
.integrations { padding: 96px 0; background: var(--paper-dim); }

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.integration-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.int-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.int-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}
.int-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid;
}
.int-status--live    { color: var(--signal); border-color: rgba(28,156,111,0.4); background: rgba(28,156,111,0.08); }
.int-status--ready   { color: var(--volt);   border-color: rgba(11,95,255,0.35); background: rgba(11,95,255,0.07); }
.int-status--request { color: var(--ink-soft); border-color: var(--line); background: var(--paper-dim); }

.integration-card h3 { font-size: 1.12rem; }
.integration-card > p {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.int-examples {
  list-style: none;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.int-examples li {
  font-size: 0.87rem;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.int-examples .int-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
  flex-shrink: 0;
}

.int-benefits {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.int-benefit {
  border-top: 2px solid var(--volt);
  padding-top: 20px;
}
.int-benefit h3 { font-size: 1.02rem; margin-bottom: 10px; }
.int-benefit p { font-size: 0.92rem; color: var(--ink-soft); }

.disclaimer {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================================
   HARDWARE
   ========================================================================= */
.hardware { padding: 96px 0; }
.hardware-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: stretch;
}

/* Stylized terminal — stands in for a product photograph */
.device-frame {
  background: var(--navy);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.device-body {
  width: 100%;
  max-width: 230px;
  background: #10151f;
  border: 1px solid #2b3346;
  border-radius: 14px;
  padding: 16px 14px 20px;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.9);
}
.device-screen {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: 8px;
  padding: 16px 14px;
  text-align: center;
  color: #fff;
}
.device-amount {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--circuit);
  display: block;
}
.device-caption {
  display: block;
  font-size: 0.74rem;
  color: var(--fog);
  margin-top: 4px;
}
.device-contactless {
  display: flex;
  justify-content: center;
  margin: 16px 0 12px;
  color: var(--circuit);
}
.device-slot {
  height: 5px;
  background: #2b3346;
  border-radius: 3px;
  margin: 14px 8px 0;
}
.device-note {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--fog);
  text-align: center;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.spec-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 14px;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink-soft);
  width: 38%;
  padding-right: 20px;
}
.spec-table td { color: var(--ink); }

.hardware-adds {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hardware-add {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.hardware-add .ha-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--volt);
  flex-shrink: 0;
}
.hardware-add p { font-size: 0.93rem; color: var(--ink-soft); }
.hardware-add strong { color: var(--ink); font-weight: 600; }

/* =========================================================================
   DRIVERS — payment methods + app screens
   ========================================================================= */
.drivers { padding: 96px 0; background: var(--paper-dim); }

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}
.method-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
}
.method-icon {
  display: inline-flex;
  width: 34px; height: 34px;
  color: var(--volt);
  margin-bottom: 18px;
}
.method-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.method-card p { font-size: 0.92rem; color: var(--ink-soft); }
.method-flag {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--signal);
  border: 1px solid rgba(28,156,111,0.35);
  background: rgba(28,156,111,0.07);
  border-radius: 999px;
  padding: 4px 11px;
}
.method-flag--account {
  color: var(--ink-soft);
  border-color: var(--line);
  background: var(--paper-dim);
}

/* ---- Phone frames ------------------------------------------------------ */
.app-showcase {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.phones {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 22px; /* room for the lifted frames */
}

.phone {
  width: 208px;
  flex-shrink: 0;
  display: flex;               /* lets the screen fill a stretched frame */
  background: #10151f;
  border: 1px solid #2b3346;
  border-radius: 26px;
  padding: 10px;
  box-shadow: 0 28px 60px -32px rgba(10, 18, 32, 0.75);
}
.phone--lift { transform: translateY(-22px); }

.phone-screen {
  flex: 1;
  background: var(--navy);
  border-radius: 18px;
  padding: 14px 13px 18px;
  color: #fff;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.phone-notch {
  width: 52px; height: 4px;
  border-radius: 3px;
  background: #2b3346;
  margin: 0 auto 4px;
}
.phone-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
}
.phone-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--fog);
}

.p-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: 10px;
  padding: 11px 12px;
}
.p-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(35, 42, 61, 0.7);
}
.p-row:last-child { border-bottom: 0; }
.p-row dt, .p-key {
  font-size: 0.66rem;
  line-height: 1.35;
  color: var(--fog);
}
.p-row dd, .p-val {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #fff;
  white-space: nowrap;   /* amounts must never break mid-figure */
}
.p-big {
  font-family: var(--font-mono);
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--circuit);
  display: block;
  white-space: nowrap;
  margin-bottom: 2px;
}
.p-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  color: var(--fog);
}
.p-pulse {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--status-success);
}
.p-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--status-success);
  animation: p-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes p-ping {
  75%, 100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .p-pulse::after { animation: none; }
}

/* miniature map inside phone 1 */
.p-map {
  position: relative;
  flex-grow: 1;
  min-height: 130px;
  border-radius: 10px;
  background:
    linear-gradient(rgba(35,42,61,0.55) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, rgba(35,42,61,0.55) 1px, transparent 1px) 0 0 / 26px 100%,
    var(--navy-card);
  border: 1px solid var(--navy-line);
}
.p-pin {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--navy);
}
.p-pin--free { background: var(--status-success); }
.p-pin--busy { background: var(--status-pending); }

.p-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: 8px;
}
.p-item-name { font-size: 0.7rem; color: #fff; white-space: nowrap; }
.p-item-meta { font-family: var(--font-mono); font-size: 0.62rem; color: var(--fog); white-space: nowrap; }
.p-chip {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.p-chip--free { color: var(--status-success); border-color: var(--status-success-line); background: var(--status-success-bg); }
.p-chip--busy { color: var(--status-pending); border-color: var(--status-pending-line); background: var(--status-pending-bg); }
.p-chip--paid { color: var(--status-success); border-color: var(--status-success-line); background: var(--status-success-bg); }

.app-copy {
  max-width: 62ch;
  margin: 0 auto;
}
.app-copy h3 { font-size: 1.3rem; margin-bottom: 14px; }
.app-copy p { color: var(--ink-soft); font-size: 0.98rem; }
.app-copy p + p { margin-top: 14px; }
.app-copy .btn { margin-top: 26px; }

.placeholder-note {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--amber);
  padding: 8px 0 8px 14px;
}

/* =========================================================================
   PLATFORM — stylized admin dashboard
   ========================================================================= */
.platform-section { padding: 96px 0; }

.admin-mock {
  margin-top: 8px;
  background: var(--navy);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -46px rgba(10, 18, 32, 0.8);
}
.mock-shell {
  display: grid;
  grid-template-columns: 208px 1fr;
  min-height: 460px;
}

.mock-side {
  background: var(--navy-card);
  border-right: 1px solid var(--navy-line);
  padding: 20px 14px;
}
.mock-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px 20px;
  border-bottom: 1px solid var(--navy-line);
  margin-bottom: 16px;
}
.mock-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}
.mock-side-group {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  color: #5b6579;
  padding: 14px 8px 8px;
}
.mock-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--fog);
}
.mock-side-item.is-active {
  background: rgba(11, 95, 255, 0.14);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--volt);
}
.mock-side-dot {
  width: 6px; height: 6px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}

.mock-main { padding: 22px 24px 26px; min-width: 0; }
.mock-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.mock-head h3 { color: #fff; font-size: 1.05rem; }
.mock-head span { font-size: 0.74rem; color: var(--fog); }

.mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.mock-stat {
  border: 1px solid var(--navy-line);
  background: var(--navy-card);
  border-radius: 10px;
  padding: 13px 14px;
}
.mock-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  color: #fff;
  font-weight: 600;
}
.mock-stat span {
  display: block;
  font-size: 0.66rem;
  color: var(--fog);
  margin-top: 3px;
}
.mock-stat--success { border-color: var(--status-success-line); background: var(--status-success-bg); }
.mock-stat--success b { color: var(--status-success); }
.mock-stat--pending { border-color: var(--status-pending-line); background: var(--status-pending-bg); }
.mock-stat--pending b { color: var(--status-pending); }
.mock-stat--fail { border-color: var(--status-fail-line); background: var(--status-fail-bg); }
.mock-stat--fail b { color: var(--status-fail); }

.mock-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.mock-tab {
  font-size: 0.7rem;
  color: var(--fog);
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  padding: 5px 12px;
}
.mock-tab.is-active {
  color: #fff;
  border-color: var(--volt);
  background: rgba(11, 95, 255, 0.14);
}

.mock-table-scroll { overflow-x: auto; }
.mock-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.73rem;
}
.mock-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5b6579;
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--navy-line);
}
.mock-table td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid rgba(35, 42, 61, 0.6);
  color: var(--fog);
  white-space: nowrap;
}
.mock-table td.mock-id { font-family: var(--font-mono); color: #8b95ab; }
.mock-table td.mock-energy { font-family: var(--font-mono); color: var(--circuit); }
.mock-table td.mock-total { font-family: var(--font-mono); color: #fff; font-weight: 600; }

.mock-caption {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
  text-align: center;
}

/* =========================================================================
   Technology / network (dark)
   ========================================================================= */
.tech-section {
  background: var(--navy);
  padding: 96px 0;
}
.tech-section .section-head { margin-bottom: 40px; }

.protocol-chips {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.protocol-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--circuit);
  border: 1px solid var(--navy-line);
  background: var(--navy-card);
  padding: 6px 14px;
  border-radius: 999px;
}

.feature-grid-dark .feature-card-dark {
  background: var(--navy-card);
  border-color: var(--navy-line);
}
.feature-card-dark .feature-icon { color: var(--circuit); }
.feature-card-dark h3 { color: #fff; }
.feature-card-dark p { color: var(--fog); }

/* =========================================================================
   Company
   ========================================================================= */
.company-section { padding: 96px 0; }

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.company-col-heading {
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.company-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.company-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.company-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--volt);
}
.company-list strong { color: var(--ink); }

/* =========================================================================
   CTA / contact
   ========================================================================= */
.cta {
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
  padding: 96px 0;
}
.cta-inner {
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.16; margin-bottom: 16px; }
.cta .section-lede { margin: 0 auto; }

/* Fieldset is a plain block wrapper; the flex row lives on an inner element,
   because a <legend> inside a flex container is laid out inconsistently. */
.reason-fieldset {
  border: 0;
  padding: 0;
  margin: 40px 0 0;
  min-width: 0;
}
.reason-label {
  display: block;
  float: none;
  width: 100%;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.reason-chip { position: relative; }
/* inset:0 pins the input to the chip. Without it the input takes its static
   position, which the inherited `text-align: center` shifts off to the right. */
.reason-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.reason-chip span {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.reason-chip input:hover + span { border-color: var(--volt); color: var(--volt); }
.reason-chip input:checked + span {
  border-color: var(--volt);
  background: var(--volt);
  color: #fff;
}
.reason-chip input:focus-visible + span {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
}

.cta .btn { margin-top: 30px; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--navy);
  color: var(--fog);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--navy-line);
}
.footer-brand .brand-name { color: #fff; }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 10px;
  color: var(--fog);
  max-width: 26ch;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 4px;
}
.footer-col a { font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding: 22px 0;
  font-size: 0.82rem;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .flow-card { max-width: 520px; }
  .hardware-grid { grid-template-columns: 1fr; gap: 40px; }
  .mock-shell { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}

@media (max-width: 980px) {
  .feature-grid,
  .stat-grid,
  .company-grid,
  .method-grid,
  .money-points,
  .int-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
  /* single column: revert the column-wise flow so 1–6 read straight down */
  .lifecycle {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 0;
  }
  .stage:nth-child(3)::before { display: block; }
  .stage:last-child::before { display: none; }
  .responsibility { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: 1fr; }
  .mock-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .phone--lift { transform: none; }
  .phones { padding-top: 0; }
}

/* The payment-first nav carries more items than the old one, so the desktop
   header needs ~900px before it fits. Below that, collapse to the toggle. */
@media (max-width: 900px) {
  .site-nav,
  .header-actions { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 760px) {
  .reason-chips { flex-direction: column; align-items: stretch; }
  .reason-chip span { text-align: center; }

  .feature-grid,
  .stat-grid,
  .company-grid,
  .method-grid,
  .money-points,
  .int-benefits {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 52px 0 44px; }
  .persona-links { margin-left: 0; }
  .features,
  .cta,
  .tech-section,
  .company-section,
  .payments-section,
  .money-section,
  .integrations,
  .hardware,
  .drivers,
  .platform-section { padding: 64px 0; }
  .callout { padding: 24px 22px; }
  .phones { gap: 16px; }
  .phone { width: 176px; }
}
