@import url('/fonts/fonts.css');

/* grai.supply design tokens. One accent (approval green), one radius rule:
   buttons and chips are pills, cards and media are 14px, inputs 10px. */
:root {
  --bg: #f3f4f1;
  --bg-2: #e9ebe6;
  --surface: #fbfbfa;
  --ink: #111513;
  --ink-2: #3a423e;
  --muted: #5d6661;
  --line: #d7dbd5;
  --line-2: #c3c9c2;
  --accent: #1d6b4c;
  --accent-hover: #175a3f;
  --accent-ink: #f2f8f4;
  --accent-soft: #dcebe2;
  --shadow: 0 1px 2px rgb(17 21 19 / 0.06), 0 18px 40px -18px rgb(17 21 19 / 0.28);
  --shadow-soft: 0 1px 2px rgb(17 21 19 / 0.05), 0 8px 24px -14px rgb(17 21 19 / 0.22);
  --radius: 14px;
  --radius-sm: 10px;
  --pill: 999px;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --wrap: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Light only, by Patrick's call: the site never switches to a dark theme. */
  color-scheme: only light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-stretch: 108%;
  text-wrap: balance;
  color: var(--ink);
}
h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 21px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
p {
  text-wrap: pretty;
}
.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}
.lede {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 58ch;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: var(--pill);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Icons: Phosphor SVG files used as masks so they follow currentColor. */
.ico {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.ico-phone { --i: url('/icons/phone.svg'); }
.ico-mail { --i: url('/icons/envelope-simple.svg'); }
.ico-wa { --i: url('/icons/whatsapp-logo.svg'); }
.ico-tag { --i: url('/icons/tag.svg'); }
.ico-truck { --i: url('/icons/truck.svg'); }
.ico-factory { --i: url('/icons/factory.svg'); }
.ico-warehouse { --i: url('/icons/warehouse.svg'); }
.ico-check { --i: url('/icons/check.svg'); }
.ico-check-circle { --i: url('/icons/check-circle.svg'); }
.ico-shield { --i: url('/icons/shield-check.svg'); }
.ico-list { --i: url('/icons/list-checks.svg'); }
.ico-translate { --i: url('/icons/translate.svg'); }
.ico-arrow { --i: url('/icons/arrow-right.svg'); }
.ico-arrow-up { --i: url('/icons/arrow-up-right.svg'); }
.ico-user-check { --i: url('/icons/user-check.svg'); }
.ico-lock { --i: url('/icons/lock-key.svg'); }
.ico-wave { --i: url('/icons/waveform.svg'); }
.ico-plus { --i: url('/icons/plus.svg'); }
.ico-chat { --i: url('/icons/chat-circle-text.svg'); }
.ico-headset { --i: url('/icons/headset.svg'); }
.ico-db { --i: url('/icons/database.svg'); }
.ico-plug { --i: url('/icons/plugs-connected.svg'); }
.ico-package { --i: url('/icons/package.svg'); }
.ico-clock { --i: url('/icons/clock.svg'); }
.ico-pause { --i: url('/icons/pause.svg'); }
.ico-play { --i: url('/icons/play.svg'); }
.ico-users { --i: url('/icons/users-three.svg'); }

.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;
}
a,
button,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Buttons: one primary intent on the whole page ("Book a call"). */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--pill);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn .ico {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}
.btn:hover .ico-arrow {
  transform: translateX(3px);
}
.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand-mark .bm-bg {
  fill: var(--accent);
}
.brand-mark .bm-bar {
  fill: var(--accent-ink);
}
.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand-word {
  font-weight: 780;
  font-stretch: 115%;
}
.brand-sub {
  font-weight: 430;
  font-stretch: 100%;
  color: var(--ink-2);
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: auto;
  background: currentColor;
  position: relative;
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle span::before {
  top: -5px;
}
.nav-toggle span::after {
  top: 5px;
}
.nav[data-open='true'] .nav-toggle span {
  background: transparent;
}
.nav[data-open='true'] .nav-toggle span::before {
  transform: translateY(5px) rotate(45deg);
}
.nav[data-open='true'] .nav-toggle span::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* Hero */
.hero {
  padding-top: 56px;
}
.hero-top {
  display: grid;
  grid-template-columns: auto minmax(300px, 1fr);
  gap: 56px;
  align-items: end;
}
.hero h1 {
  white-space: nowrap;
  font-size: clamp(48px, 6.6vw, 100px);
  font-weight: 760;
  font-stretch: 112%;
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.hero h1 .soft {
  color: var(--accent);
}
.hero h1.h1-long {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
/* Long headline: it gets its own row, subline and buttons sit side by side below it */
.hero-top.stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.hero-top.stacked .hero-copy {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 0;
}
.hero-top.stacked .lede {
  max-width: 56ch;
}
.hero-top.stacked .hero-ctas {
  flex: none;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 10px;
}
.hero-copy .lede {
  font-size: 20px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.stage {
  position: relative;
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 600px;
  background: var(--bg-2);
  isolation: isolate;
}
.stage-pause {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: var(--pill);
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(14 18 16 / 0.55);
  color: #f2f5f3;
  font: 500 13px var(--body);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.2s var(--ease);
}
.stage-pause:hover {
  background: rgb(14 18 16 / 0.75);
}
.stage-pause .ico {
  width: 14px;
  height: 14px;
}
.stage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(10 14 12 / 0.55) 0%, rgb(10 14 12 / 0.15) 55%, rgb(10 14 12 / 0) 100%);
}
.stage-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 240px) minmax(0, 400px);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 56px;
  min-height: 600px;
}

/* Live demo cards (real UI components, labelled as an example) */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.demo-in {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.demo-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--pill);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.demo-who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.demo-who b {
  font-size: 15px;
  font-weight: 650;
}
.demo-who span {
  font-size: 13px;
  color: var(--muted);
}
.demo-tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 2px 9px;
}
.bubbles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 182px;
}
.bubble {
  font-size: 14.5px;
  line-height: 1.45;
  padding: 10px 13px;
  border-radius: 12px;
  max-width: 92%;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.bubble.in {
  background: var(--bg-2);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.bubble.out {
  align-self: flex-end;
  background: var(--accent-soft);
  color: var(--ink);
  border-bottom-right-radius: 4px;
}
.bubble.show {
  opacity: 1;
  transform: none;
}
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.wave i {
  display: block;
  width: 3px;
  height: 30%;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}
.is-live .wave i {
  animation: wave 1.1s var(--ease) infinite;
}
.wave i:nth-child(2n) {
  animation-delay: -0.3s;
}
.wave i:nth-child(3n) {
  animation-delay: -0.6s;
}
.wave i:nth-child(5n) {
  animation-delay: -0.85s;
}
@keyframes wave {
  0%,
  100% {
    height: 25%;
  }
  50% {
    height: 100%;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 550;
  color: rgb(255 255 255 / 0.78);
  background: rgb(14 18 16 / 0.42);
  border: 1px solid rgb(255 255 255 / 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background-color 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.step .dot {
  width: 22px;
  height: 22px;
  border-radius: var(--pill);
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.3);
}
.step .dot .ico {
  width: 13px;
  height: 13px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.step.done {
  color: #f2f8f4;
  background: rgb(29 107 76 / 0.82);
  border-color: rgb(140 220 180 / 0.45);
}
.step.done .dot {
  background: #f2f8f4;
  color: #1d6b4c;
  border-color: transparent;
}
.step.done .dot .ico {
  opacity: 1;
}

.draft {
  overflow: hidden;
}
.draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.draft-head b {
  font-size: 15px;
}
.status {
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--bg-2);
  color: var(--ink-2);
  white-space: nowrap;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.status.ok {
  background: var(--accent);
  color: var(--accent-ink);
}
.draft-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--muted);
}
.lines {
  list-style: none;
  margin: 0;
  padding: 4px 18px;
}
.line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 9px 0;
  font-size: 14px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.line.show {
  opacity: 1;
  transform: none;
}
.line .q {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}
.draft-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
}
.draft-foot .mono {
  color: var(--muted);
}
.approve {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.approve.pressed {
  transform: scale(0.96);
}

/* Live ticker on the hero photo: the real 30-day order value, rolled in like an odometer */
.ticker {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 9px 12px;
  border-radius: var(--pill);
  background: rgb(14 18 16 / 0.62);
  border: 1px solid rgb(255 255 255 / 0.16);
  color: #f2f5f3;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a6e3c4;
}
.ticker-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: var(--pill);
  background: #5cc495;
  box-shadow: 0 0 0 3px rgb(92 196 149 / 0.25);
}
.ticker-num {
  display: inline-flex;
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 720;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.od {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}
.od-strip {
  display: flex;
  flex-direction: column;
  transition: transform 2s var(--ease);
}
.od-strip span {
  display: block;
  height: 1em;
  line-height: 1;
}
.ticker-cap {
  font-size: 14px;
  color: rgb(242 245 243 / 0.82);
  white-space: nowrap;
}
.cap-short {
  display: none;
}

/* Sections */
.section {
  padding: 128px 0;
}
.section-tight {
  padding: 96px 0;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
  margin-bottom: 56px;
}

/* The map: every conversation around the company, live or next */
.map {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.map::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  border-top: 1.5px dashed var(--line-2);
  z-index: -1;
}
.map-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.map-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.map-head .ico {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.flows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.flows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.3;
}
.map-right {
  display: grid;
  gap: 20px;
}
.map-core {
  text-align: center;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
}
.map-core h3 {
  color: var(--accent-ink);
  font-size: 22px;
}
.map-core p {
  margin-top: 12px;
  font-size: 15.5px;
  opacity: 0.88;
}
.core-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: block;
}
.map-core .bm-bg {
  fill: var(--accent-ink);
}
.map-core .bm-bar {
  fill: var(--accent);
}

/* ROI calculator: typing time and its cost, from the visitor's own numbers */
.roi {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}
.roi-intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.roi-intro h2 {
  font-size: clamp(30px, 3.4vw, 44px);
}
.roi-src {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}
.roi-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.field label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.field output {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.field input[type='range'] {
  width: 100%;
  height: 28px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.presets button {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
  font: 500 13.5px var(--body);
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.presets button:hover,
.presets button[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--accent);
}
.roi-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.roi-big {
  display: block;
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 720;
  font-size: clamp(32px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.roi-label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.roi-fte {
  font-size: 15px;
  color: var(--ink-2);
}

/* Problem: a statement, then three sourced facts in one quiet row */
.problem-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 780px;
  margin-bottom: 56px;
}
.problem-head h2 {
  font-size: clamp(30px, 3.4vw, 44px);
}
.problem-head .lede {
  font-size: 18px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.fact {
  padding: 28px 32px 0 0;
  min-width: 0;
}
.fact + .fact {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.fact-num {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: clamp(34px, 3.4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fact p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 34ch;
}
.fact .src {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* Channels bento: 5 items, 5 cells (phone spans 2x2) */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
  gap: 16px;
}
.cell {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  isolation: isolate;
}
.cell .ico-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.cell p {
  color: var(--ink-2);
  font-size: 16px;
}
.cell-phone {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  color: #f2f5f3;
  background: #121614;
  border-color: transparent;
  justify-content: flex-end;
  min-height: 520px;
}
.cell-phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cell-phone::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(10 14 12 / 0) 20%, rgb(10 14 12 / 0.86) 78%);
}
.cell-phone .cell-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cell-phone h3,
.cell-phone p {
  color: #f2f5f3;
}
.cell-phone p {
  color: rgb(242 245 243 / 0.82);
  max-width: 44ch;
}
.cell-phone .ico-badge {
  background: rgb(242 245 243 / 0.14);
  color: #f2f5f3;
}
.transcript {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.transcript span {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 46ch;
}
.transcript span.agent {
  align-self: flex-end;
  background: rgb(29 107 76 / 0.7);
  border-color: rgb(140 220 180 / 0.35);
}
.cell-wa {
  background: var(--accent-soft);
  border-color: transparent;
}
.cell-wa .ico-badge {
  background: var(--surface);
}
.mini-chat {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
}
.mini-chat span {
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--surface);
  max-width: 90%;
  box-shadow: var(--shadow-soft);
}
.mini-chat span.me {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-ink);
}
.mail-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13.5px;
}
.mail-row .mono {
  margin-left: auto;
  color: var(--accent);
}
.qa {
  margin-top: auto;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.qa .q {
  color: var(--muted);
}
.qa .a {
  font-weight: 600;
}
.track {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.track i {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 64%, var(--line-2) 64%);
}

/* How it works: sticky story */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.story-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.story-step {
  padding: 40px 0 40px 28px;
  border-left: 2px solid var(--line);
  min-height: 42vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  transition: border-color 0.4s var(--ease);
}
.story-step .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.story-step h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--muted);
  transition: color 0.4s var(--ease);
}
.story-step p {
  color: var(--muted);
  max-width: 44ch;
  transition: color 0.4s var(--ease);
}
.story-step.active {
  border-left-color: var(--accent);
}
.story-step.active h3 {
  color: var(--ink);
}
.story-step.active p {
  color: var(--ink-2);
}
.story-visual {
  position: sticky;
  top: 120px;
}
.panel {
  padding: 22px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 14.5px;
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    border-color 0.45s var(--ease),
    background-color 0.45s var(--ease);
}
.panel-row .ico {
  color: var(--accent);
}
.panel-row .mono {
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}
.panel-row[data-at] {
  opacity: 0.28;
  transform: translateY(4px);
}
.panel-row.lit {
  opacity: 1;
  transform: none;
}
.panel-row.focus {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-title b {
  font-size: 15px;
}

/* Control */
.control {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
.control-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
}
.control-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 32px;
  margin-top: 40px;
}
.rule {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rule .ico {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.rule p {
  color: var(--ink-2);
  font-size: 16px;
}

/* Integrations */
.tinted {
  background: var(--bg-2);
}
.connectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.conn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.conn-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  flex: none;
}
.conn-logo .ico {
  width: 22px;
  height: 22px;
}
.logo-odoo { --i: url('/img/logos/odoo.svg'); }
.logo-sap { --i: url('/img/logos/sap.svg'); }
.logo-sheets { --i: url('/img/logos/googlesheets.svg'); }
.conn b {
  display: block;
  font-size: 16px;
  font-weight: 650;
}
.conn span.muted {
  font-size: 14px;
}
.pill {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--pill);
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
}
.pill.live {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}
.pill.pilot {
  border-color: var(--accent);
  color: var(--accent);
}

/* Who it's for: two large photo cards, one smaller "next" card */
.who {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
}
.who-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  gap: 10px;
  color: #f2f5f3;
  text-decoration: none;
  isolation: isolate;
  background: #1a1f1c;
}
.who-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease);
}
.who-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(10 14 12 / 0) 30%, rgb(10 14 12 / 0.55) 58%, rgb(10 14 12 / 0.92) 100%);
}
.who-card h3,
.who-card p {
  text-shadow: 0 1px 12px rgb(10 14 12 / 0.45);
}
.who-card.next h3,
.who-card.next p {
  text-shadow: none;
}
.who-card:hover img {
  transform: scale(1.03);
}
.who-card h3 {
  color: #f2f5f3;
  font-size: 26px;
}
.who-card p {
  color: rgb(242 245 243 / 0.82);
  font-size: 16px;
  max-width: 38ch;
}
.who-card.next {
  background: var(--surface);
  color: var(--ink);
  border: 1px dashed var(--line-2);
  justify-content: space-between;
}
.who-card.next::after {
  display: none;
}
.who-card.next h3 {
  color: var(--ink);
}
.who-card.next p {
  color: var(--ink-2);
}
.who-card.next .ico {
  width: 34px;
  height: 34px;
  color: var(--accent);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
}

/* Closing CTA */
.closing {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 40px;
  align-items: end;
}
.closing h2 {
  font-size: clamp(36px, 5vw, 68px);
}
.closing p {
  margin-top: 18px;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
}
.faq-list details {
  border-top: 1px solid var(--line);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary .ico {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary .ico {
  transform: rotate(45deg);
}
.faq-list details p {
  padding: 0 0 24px;
  color: var(--ink-2);
  max-width: 62ch;
}

/* Footer */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.footer a {
  color: var(--ink-2);
  text-decoration: none;
}
.footer a:hover {
  color: var(--ink);
}
.footer small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* Sub pages (logistics, legal) */
.page {
  padding: 96px 0 128px;
}
.page h1 {
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 740;
  font-stretch: 112%;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.legal {
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 24px;
}
.legal h2 {
  font-size: 22px;
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
}
.legal p,
.legal li {
  color: var(--ink-2);
}
.legal ul {
  padding-left: 20px;
}
.legal a {
  color: var(--accent);
}
.split-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.page-cta {
  margin-top: 32px;
}
.split-page h1 {
  margin-top: 18px;
}
.split-page .lede {
  margin-top: 24px;
}
.split-page .photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
}
.split-page .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 28px 0 36px;
  display: grid;
  gap: 14px;
}
.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-2);
}
.ticks .ico {
  margin-top: 3px;
  color: var(--accent);
}

/* Scroll reveal (only when motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.8s var(--ease),
      transform 0.8s var(--ease);
  }
  .reveal.seen {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Tablet */
@media (max-width: 1080px) {
  .stage-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 36px;
  }
  .stage-grid .steps {
    display: none;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .connectors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .who {
    grid-template-columns: 1fr 1fr;
  }
  .who-card.next {
    grid-column: span 2;
    min-height: 0;
  }
  .map {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .map::before {
    display: none;
  }
  .map-core {
    order: -1;
  }
}

/* Mobile: every multi-column layout collapses to one column */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav-links a {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .nav[data-open='true'] .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .nav-cta {
    display: none;
  }
  .brand-name {
    font-size: 19px;
  }
  .hero {
    padding-top: 32px;
  }
  .hero-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero h1 {
    font-size: clamp(44px, 13.5vw, 72px);
  }
  .hero h1.h1-long {
    white-space: normal;
    font-size: clamp(34px, 9.4vw, 48px);
  }
  .hero-top.stacked .hero-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
  .hero h1.h1-long br {
    display: none;
  }
  .hero-copy .lede {
    font-size: 18px;
  }
  .stage {
    margin-top: 32px;
    min-height: 0;
    background: transparent;
    overflow: visible;
  }
  .stage-photo {
    position: relative;
    height: 260px;
    border-radius: var(--radius);
  }
  .stage::after {
    display: none;
  }
  .stage-pause {
    top: 12px;
    right: 12px;
    bottom: auto;
  }
  .stage-grid {
    grid-template-columns: 1fr;
    padding: 0;
    margin-top: -48px;
    min-height: 0;
    gap: 12px;
  }
  .stage-grid .demo-in {
    margin-inline: 12px;
  }
  .ticker {
    top: 12px;
    left: 12px;
    gap: 9px;
    padding: 7px 12px 7px 10px;
  }
  .ticker-num {
    font-size: 17px;
  }
  .ticker-cap {
    font-size: 12.5px;
  }
  .cap-long {
    display: none;
  }
  .cap-short {
    display: inline;
  }
  .ticker-live {
    display: none;
  }
  .stage-pause [data-demo-toggle-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .stage-pause {
    padding: 0 11px;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .roi-card {
    padding: 22px;
  }
  .fact,
  .fact + .fact {
    padding: 22px 0;
    border-left: 0;
  }
  .fact + .fact {
    border-top: 1px solid var(--line);
  }
  .section {
    padding: 88px 0;
  }
  .section-tight {
    padding: 72px 0;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .roi,
  .story,
  .control,
  .faq,
  .split-page {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .story-visual {
    position: static;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .cell-phone {
    grid-column: auto;
    grid-row: auto;
    min-height: 460px;
  }
  .story-step {
    min-height: 0;
    padding: 24px 0 24px 20px;
  }
  .story-visual {
    display: none;
  }
  .rules {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .connectors {
    grid-template-columns: 1fr;
  }
  .who {
    grid-template-columns: 1fr;
  }
  .who-card,
  .who-card.next {
    grid-column: auto;
    min-height: 380px;
  }
  .who-card.next {
    min-height: 0;
  }
  .closing {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }
}
