:root {
  --field: #e9eef4;
  --ink: #16213a;
  --ink-2: #22304f;
  --ink-soft: #4a5672;
  --paper: #fffef9;
  --line: #cfd8e4;
  --ok: #1c8b57;
  --ok-deep: #136a42;
  --warn: #e3a21a;
  --stop: #c9372c;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --measure: 62ch;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  /* spacing scale */
  --s1: 8px; --s2: 12px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px; --s9: 128px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; color: inherit; font-family: var(--sans); }
h1, h2 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 22ch; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--warn); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(233, 238, 244, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 150ms; }
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: var(--s5); font-size: 0.95rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-soft); }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--ink); }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; margin: 0 auto; transition: transform 150ms; }
.menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: 15px 26px; border-radius: 10px; font-weight: 700; text-decoration: none; text-align: center;
  transition: transform 80ms ease, background 120ms ease;
}
.btn:hover { background: #24345a; }
.btn:active { transform: scale(0.97); }
.btn-small { padding: 10px 18px; font-size: 0.92rem; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.link { font-weight: 600; text-underline-offset: 5px; }

/* Hero */
.hero { padding: var(--s7) 0 var(--s8); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.lede { margin-top: var(--s4); font-size: 1.18rem; color: var(--ink-soft); max-width: var(--measure); }
.actions { margin-top: var(--s5); display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }

.rig { background: var(--ink); border-radius: 22px; padding: 18px; color: var(--paper); box-shadow: 0 30px 60px -30px rgba(22, 33, 58, 0.55); }
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 0.82rem; padding: 4px 6px 16px; }
.pill { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.dot[data-state="warn"] { background: var(--warn); }
.dot[data-state="stop"] { background: var(--stop); }
.printer { background: var(--ink-2); border-radius: 14px; padding: 0 22px 22px; height: 360px; overflow: hidden; position: relative; }
.slot { height: 12px; margin: 0 -8px; background: #0e1628; border-radius: 0 0 8px 8px; position: relative; z-index: 2; }
.feed { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.ticket {
  background: var(--paper); color: #1d1d1d; font: 400 13.5px/1.45 var(--mono);
  padding: 14px 16px 16px; border-radius: 2px 2px 6px 6px;
  animation: print 700ms cubic-bezier(.2,.7,.2,1) both;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) bottom / 12px 8px repeat-x;
}
.ticket-head { display: flex; justify-content: space-between; font-weight: 600; border-bottom: 1px dashed #9a9a9a; padding-bottom: 6px; margin-bottom: 6px; }
.ticket-tag { font-weight: 600; }
.ticket-tag[data-src="uber"] { color: #1a7f4b; }
.ticket-tag[data-src="mrd"] { color: #a33a1f; }
.ticket-note { margin-top: 6px; color: #6b6b6b; }
@keyframes print { from { transform: translateY(-110%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ticket { animation: none; } }
.rig-foot { display: flex; align-items: center; gap: 16px; padding: 18px 4px 4px; flex-wrap: wrap; }
.cable {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  background: transparent; color: var(--paper); border: 2px solid #5a6a8e; border-radius: 999px;
  padding: 8px 18px 8px 8px; font: 700 0.95rem var(--sans);
}
.cable:hover { border-color: var(--paper); }
.cable-knob { width: 34px; height: 20px; border-radius: 999px; background: var(--ok); position: relative; transition: background 150ms; flex: none; }
.cable-knob::after { content: ''; position: absolute; top: 3px; left: 17px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); transition: left 150ms; }
.cable[aria-pressed="true"] .cable-knob { background: var(--warn); }
.cable[aria-pressed="true"] .cable-knob::after { left: 3px; }
.queue { font-size: 0.86rem; color: #c3cbe0; flex: 1 1 200px; }

/* Bands */
.band { padding: var(--s8) 0; }
.band-paper { background: var(--paper); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ok { background: var(--ok-deep); color: var(--paper); }
.section-lede { margin-top: var(--s3); font-size: 1.12rem; color: var(--ink-soft); max-width: var(--measure); }
.fine { margin-top: var(--s5); font-size: 0.92rem; color: var(--ink-soft); }

/* What it fixes */
.fixes { margin: var(--s6) 0 0; }
.fix { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s3) var(--s6); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.fix:last-child { border-bottom: 1px solid var(--line); }
.fix dt { font-weight: 700; font-size: 1.12rem; line-height: 1.4; padding-left: 16px; border-left: 3px solid var(--stop); }
.fix dd { margin: 0; max-width: var(--measure); color: var(--ink-soft); }

/* Product tour */
.tour { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: var(--s8); }
.tour-flip .tour-copy { order: 2; }
.tour-copy > p { margin-top: var(--s2); font-size: 1.08rem; color: var(--ink-soft); }
.tour-copy h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); font-weight: 800; letter-spacing: -0.015em; }
.ticks { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s2); }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.tour-media { margin: 0; position: relative; }
.tour-stack { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
.tour-stack .tour-copy { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s2) clamp(32px, 5vw, 72px); }
.tour-stack .tour-copy h3, .tour-stack .tour-copy > p { grid-column: 1; }
.tour-stack .ticks { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
.tour-stack .phones { max-width: 900px; margin: 0 auto; width: 100%; }

/* Device frames */
.device { background: #0f1729; border-radius: 22px; padding: 12px; box-shadow: 0 40px 70px -40px rgba(22, 33, 58, 0.6), inset 0 0 0 1px #2c3a5c; }
.device img { border-radius: 12px; width: 100%; }
.device-tablet { border-radius: 26px; padding: 14px; }
.device-inset { position: absolute; width: 50%; right: -2%; bottom: -14%; padding: 8px; border-radius: 16px; }
.device-inset img { border-radius: 8px; }
.device-tv { border-radius: 10px; padding: 10px; position: relative; margin-bottom: 34px; }
.device-tv img { border-radius: 3px; }
.device-tv::after { content: ''; position: absolute; left: 50%; bottom: -30px; width: 28%; height: 20px; transform: translateX(-50%); background: linear-gradient(#1b2640, #0f1729); border-radius: 0 0 10px 10px; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); align-items: start; }
.phones .device:nth-child(2) { margin-top: var(--s6); }
.device-phone { border-radius: 34px; padding: 9px; }
.device-phone img { border-radius: 26px; }
.device-monitor { border-radius: 14px; padding: 12px 12px 26px; position: relative; }
.device-monitor img { border-radius: 4px; }
.device-monitor::after { content: ''; position: absolute; left: 50%; bottom: 9px; width: 8px; height: 8px; border-radius: 50%; background: #2c3a5c; transform: translateX(-50%); }
.zone-frame { background: #121b22; aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: 4px; }
.zone-frame img { height: 100%; width: auto; max-height: 100%; }

/* How it works (a real sequence, so numbered) */
.steps { list-style: none; counter-reset: step; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 1.1rem;
}
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 21px; left: 56px; right: calc(-1 * var(--s5) + 12px); height: 2px; background: var(--line); }
.steps p { margin-top: var(--s2); color: var(--ink-soft); }

/* HQ */
.hq-head p { margin-top: var(--s4); color: #c9d1e3; font-size: 1.12rem; max-width: var(--measure); }
.hq-grid { margin-top: var(--s6); display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.hq-list { list-style: none; margin: 0; padding: 0; }
.hq-list li { padding: var(--s3) 0; border-top: 1px solid #34436a; color: #c9d1e3; }
.hq-list li:last-child { border-bottom: 1px solid #34436a; }
.hq-list strong { color: var(--paper); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: #0f1729; border-radius: 12px; margin-bottom: var(--s3); }
.tabs button { font: 600 0.92rem var(--sans); color: #c3cbe0; background: transparent; border: 0; border-radius: 9px; padding: 9px 16px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.band-ink .device { box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.7), inset 0 0 0 1px #34436a; }

/* South Africa */
.sa-grid { margin-top: var(--s6); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s6); }
.sa-grid > div { border-top: 3px solid var(--ink); padding-top: var(--s3); }
.sa-grid p { margin-top: var(--s2); color: var(--ink-soft); }
.integrations { margin-top: var(--s7); }
.chips { list-style: none; margin: var(--s3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips li { border: 1px solid var(--line); background: var(--field); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.95rem; }

/* Proof */
.figures { margin-top: var(--s6); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.figures p { color: var(--ink-soft); max-width: 22ch; }
.fig { display: block; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.05; color: var(--ink); margin-bottom: var(--s1); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform 150ms; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-soft); max-width: var(--measure); }

/* Demo CTA */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--s6); align-items: end; }
.band-ok h2 { max-width: 18ch; }
.demo-grid > div > p { margin-top: var(--s4); font-size: 1.18rem; max-width: var(--measure); color: #e3f4ea; }
.demo-actions { display: grid; gap: var(--s3); justify-items: start; }
.demo-actions p { color: #e3f4ea; }
.demo-actions .btn { font-size: 1.08rem; padding: 18px 34px; }

/* Footer */
.foot { background: var(--ink); color: #c9d1e3; padding: var(--s7) 0 var(--s5); font-size: 0.95rem; }
.foot .brand { color: var(--paper); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.foot-grid > div > p { margin-top: var(--s3); max-width: 34ch; }
.foot h3 { color: var(--paper); font-size: 0.95rem; margin-bottom: var(--s2); }
.foot nav a, .foot-grid a:not(.brand) { display: block; text-decoration: none; padding: 4px 0; }
.foot nav a:hover, .foot-grid a:not(.brand):hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.foot-base { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid #34436a; font-size: 0.85rem; }
.demo-grid { align-items: center; }

/* Tablet */
@media (max-width: 1000px) {
  .hero-grid, .tour, .hq-grid, .faq-wrap, .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .tour-flip .tour-copy { order: 0; }
  .tour-stack .tour-copy { grid-template-columns: minmax(0, 1fr); }
  .tour-stack .ticks { grid-column: 1; grid-row: auto; margin-top: var(--s3); }
  .tour-media { max-width: 720px; }
  .device-inset { width: 46%; right: -2%; bottom: -10%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
  .sa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--field); border-bottom: 1px solid var(--line); padding: var(--s2) var(--gutter) var(--s4); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; font-size: 1.05rem; color: var(--ink); }
  .nav .btn { margin-top: var(--s2); }
}

/* Phone */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .band { padding: var(--s7) 0; }
  .hero { padding: var(--s5) 0 var(--s7); }
  .fix { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .tour { margin-top: var(--s7); }
  .device-inset { position: static; width: 80%; margin: var(--s3) 0 0 auto; }
  .phones { gap: var(--s2); }
  .phones .device:nth-child(2) { margin-top: var(--s4); }
  .device-phone { border-radius: 20px; padding: 5px; }
  .device-phone img { border-radius: 15px; }
  .steps, .sa-grid, .figures { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .printer { height: 300px; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1; padding: 9px 6px; font-size: 0.85rem; white-space: nowrap; }
}
