/* ==========================================================================
   Ops — marketing site
   Palette follows the Ops app tokens (teal + amber on warm paper).
   ========================================================================== */

:root {
  --paper:      #F5F2EA;
  --paper-2:    #ECE7DA;
  --surface:    #FFFFFF;
  --ink:        #1B1714;
  --ink-2:      #4A453E;
  --muted:      #857F74;
  --line:       #E2DCCD;
  --line-2:     #D3CCBA;

  --teal:       #5C757C;
  --teal-deep:  #3F5359;
  --teal-soft:  #DDE6E5;
  --amber:      #BC9A1C;
  --amber-soft: #F3E8C2;
  --sage:       #ABAF96;
  --green:      #5E8A4E;
  --night:      #171513;
  --night-2:    #22201C;

  --font-sans:  "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono:  "Geist Mono", ui-monospace, "Cascadia Mono", monospace;

  --radius:     18px;
  --radius-sm:  10px;
  --shadow-float: 0 1px 1px rgba(27,23,20,.04), 0 8px 18px rgba(27,23,20,.08), 0 30px 60px -12px rgba(27,23,20,.22);
  --shadow-soft:  0 1px 2px rgba(27,23,20,.05), 0 6px 20px rgba(27,23,20,.06);
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons & small bits ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font-sans); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: 0 6px 18px -6px rgba(27,23,20,.5); }
.btn--primary:hover { background: var(--teal-deep); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--teal-deep); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.eyebrow {
  font: 500 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
.eyebrow--light { color: var(--sage); }

.av {
  display: inline-grid; place-items: center; flex: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c); color: #fff; font: 600 8px/1 var(--font-sans);
}
.av--lg { width: 36px; height: 36px; font-size: 12px; }

.tag { font: 600 10px/1 var(--font-sans); padding: 5px 8px; border-radius: 999px; }
.tag--ok { background: #E3EEDC; color: #3E6630; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { width: min(1180px, 100% - 32px); margin-inline: auto; height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* Language switcher — ES · CA · EN */
.langs { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__links + .langs { margin-left: 0; }
.langs a {
  text-decoration: none; padding: 5px 8px; border-radius: 7px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .04em; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.langs a:hover { color: var(--ink); background: var(--paper-2); }
.langs a[aria-current] { color: var(--ink); background: var(--paper-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 9vw, 104px); overflow: clip; }
.hero__glow {
  position: absolute; inset: -10% -20% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(40% 45% at 22% 38%, rgba(188,154,28,.16), transparent 70%),
    radial-gradient(45% 50% at 78% 30%, rgba(92,117,124,.20), transparent 70%);
  filter: blur(10px);
}
.hero__copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; margin-bottom: 30px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line);
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  transition: box-shadow .2s;
}
.pill:hover { box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line-2); }
.pill__tag { background: var(--amber-soft); color: #6F5A0C; font: 600 12px/1 var(--font-sans); padding: 6px 10px; border-radius: 999px; }

.hero__title {
  font-size: clamp(46px, 8.4vw, 104px); line-height: .98; letter-spacing: -.045em; font-weight: 600;
  max-width: 14ch; text-wrap: balance;
}
.hero__title em { font-size: 1.1em; letter-spacing: -.03em; color: var(--teal-deep); }
.hero__lede { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero__proof {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  font-size: 14px; color: var(--muted);
}
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%233F5359' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Stage: floating mockups ---------- */
.stage {
  position: relative; width: min(1180px, 100% - 32px); margin: clamp(56px, 8vw, 88px) auto 0;
  perspective: 2200px;
}
.stage::after { /* fade the bottom of the window into the page */
  content: ""; position: absolute; left: -16px; right: -16px; bottom: -1px; height: 26%;
  background: linear-gradient(to bottom, transparent, var(--paper) 88%);
  pointer-events: none; z-index: 1;
}
.stage__inner {
  --rx: 14deg; --ry: 0deg;
  position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-origin: 50% 0;
  transition: transform .8s var(--ease-out);
  padding: 0 7%;
}
.js .stage__inner { opacity: 0; translate: 0 40px; }
.js .stage.is-in .stage__inner { opacity: 1; translate: 0 0; transition: transform .8s var(--ease-out), opacity 1.2s var(--ease-out), translate 1.4s var(--ease-out); }

.window {
  position: relative; background: var(--surface); border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(27,23,20,.06), 0 40px 80px -24px rgba(27,23,20,.28), 0 12px 30px -10px rgba(27,23,20,.12);
  font-size: 13px;
}
.window__bar { height: 38px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-bottom: 1px solid #EEEAE0; background: #FBFAF6; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #E2DDD0; }
.window__url { margin: 0 auto; font: 12px/1 var(--font-mono); color: var(--muted); background: #F1EEE5; padding: 6px 14px; border-radius: 6px; }

.app { display: flex; min-height: 440px; }
.app__side { width: 56px; flex: none; background: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 16px; }
.app__side .ico { width: 18px; height: 18px; border-radius: 5px; background: rgba(255,255,255,.14); }
.app__side .ico.is-active { background: var(--amber); }
.app__main { flex: 1; min-width: 0; padding: 18px 20px; background: #F7F6F1; }
.app__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.app__title { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.app__sub { color: var(--muted); font-size: 12px; }
.app__tools { display: flex; gap: 10px; align-items: center; }
.search { background: #fff; border: 1px solid #E6E1D5; border-radius: 8px; padding: 7px 12px; color: #A7A194; font-size: 12px; min-width: 170px; }
.seg { display: flex; background: #EAE6DB; border-radius: 8px; padding: 3px; font-size: 12px; }
.seg > * { padding: 4px 10px; border-radius: 6px; color: var(--muted); font-weight: 500; }
.seg b { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.col { background: #EFECE3; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 330px; }
.col__head { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12px; padding: 4px 4px 2px; }
.col__head em { font: 500 11px/1 var(--font-sans); color: var(--muted); margin-left: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.card { background: #fff; border-radius: 8px; padding: 10px; box-shadow: 0 1px 2px rgba(27,23,20,.06), 0 0 0 1px rgba(27,23,20,.03); }
.card__code { font: 500 10px/1 var(--font-mono); color: var(--muted); }
.card__name { font-weight: 600; margin: 5px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.card__meta span:first-child { overflow: hidden; text-overflow: ellipsis; }
.card__bar { height: 4px; border-radius: 4px; background: #EEEAE0; margin-bottom: 8px; overflow: hidden; }
.card__bar i { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.card--ghost { min-height: 64px; background: transparent; box-shadow: inset 0 0 0 1.5px #DCD6C8; border: 0; background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,.025) 6px 12px); }
.card--lift { box-shadow: 0 14px 30px -8px rgba(27,23,20,.25), 0 0 0 1.5px var(--amber); rotate: -2.5deg; translate: 6px -2px; }

/* Floating cards */
.float {
  position: absolute; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-float);
  transform: translateZ(calc(var(--z, 60) * 1px));
  animation: bob 7s ease-in-out infinite;
  z-index: 2;
}
@keyframes bob { 50% { translate: 0 -12px; } }
.float__label { font-weight: 600; font-size: 14px; }
.float__sub { font-size: 12px; color: var(--muted); }

.float--presence { --z: 90; top: 9%; left: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 14px; animation-delay: -1.5s; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--green); position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.8); opacity: 0; } }

.float--invoice { --z: 120; top: -6%; right: 0; width: 270px; padding: 16px; animation-delay: -3s; }
.inv__top { display: flex; justify-content: space-between; align-items: center; }
.inv__no { font: 500 12px/1 var(--font-mono); color: var(--muted); }
.inv__client { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.inv__amount { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.inv__rows { margin: 12px 0; padding: 10px 0; border-block: 1px dashed var(--line); display: grid; gap: 6px; font-size: 12px; color: var(--ink-2); }
.inv__rows div { display: flex; justify-content: space-between; gap: 10px; }
.inv__rows div span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv__rows div span:last-child { white-space: nowrap; }
.inv__foot { display: flex; align-items: center; gap: 12px; }
.inv__verified { font-weight: 600; font-size: 13px; color: var(--teal-deep); }

.qr { width: 52px; height: 52px; flex: none; display: grid; grid-template-columns: repeat(11, 1fr); gap: 0; padding: 3px; background: #fff; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.qr i { background: var(--ink); }
.qr i.o { background: transparent; }
.qr--sm { width: 40px; height: 40px; }

.float--phone { --z: 130; left: -1%; bottom: -4%; padding: 0; background: var(--ink); border-radius: 34px; animation-delay: -4.5s; }
.phone { width: 214px; margin: 7px; background: #F7F6F1; border-radius: 28px; padding: 30px 14px 14px; position: relative; }
.phone__notch { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 64px; height: 16px; border-radius: 10px; background: var(--ink); }
.phone__title { font-weight: 700; font-size: 16px; letter-spacing: -.02em; margin-bottom: 10px; }
.receipt { background: #fff; border-radius: 10px; padding: 12px; display: grid; gap: 6px; box-shadow: var(--shadow-soft); rotate: -2deg; margin-bottom: 12px; }
.receipt i { height: 5px; border-radius: 3px; background: #E7E2D6; width: 100%; }
.phone__chip { display: inline-block; font-size: 11px; font-weight: 600; color: #6F5A0C; background: var(--amber-soft); padding: 5px 9px; border-radius: 999px; margin-bottom: 8px; }
.field { display: flex; justify-content: space-between; background: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; margin-bottom: 6px; box-shadow: inset 0 0 0 1px #ECE8DD; }
.field span { color: var(--muted); }
.phone__btn { margin-top: 10px; text-align: center; background: var(--teal); color: #fff; font-weight: 600; font-size: 13px; padding: 10px; border-radius: 10px; }

.float--chat { --z: 110; right: 3%; bottom: 6%; width: 280px; padding: 14px; animation-delay: -2.2s; }
.chat__head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.chat__spark { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--teal); color: #fff; font-size: 11px; }
.chat__q { background: var(--ink); color: var(--paper); font-size: 13px; padding: 8px 12px; border-radius: 12px 12px 4px 12px; margin-left: 24px; margin-bottom: 8px; }
.chat__a { background: #F3F1EA; font-size: 13px; padding: 10px 12px; border-radius: 12px 12px 12px 4px; color: var(--ink-2); }
.chat__a b { color: var(--ink); }
.meter { display: block; height: 6px; border-radius: 6px; background: #E3DED2; margin: 8px 0 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--amber)); border-radius: inherit; }

/* ---------- Replace strip ---------- */
.replace { position: relative; z-index: 3; text-align: center; padding: clamp(40px, 7vw, 72px) 0 clamp(64px, 10vw, 120px); }
.replace__title { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.035em; font-weight: 600; line-height: 1.05; }
.replace__list { list-style: none; padding: 0; margin: 36px auto 0; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.replace__list li {
  position: relative; font: 14px/1 var(--font-mono); color: var(--muted);
  padding: 12px 16px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.replace__list li::after { /* strike-through that draws in */
  content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1.5px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.replace.is-in .replace__list li::after { transform: scaleX(1); }
.replace.is-in .replace__list li { color: #ABA496; transition: color .6s .2s; }
.replace__list li:nth-child(2)::after { transition-delay: .08s; }
.replace__list li:nth-child(3)::after { transition-delay: .16s; }
.replace__list li:nth-child(4)::after { transition-delay: .24s; }
.replace__list li:nth-child(5)::after { transition-delay: .32s; }
.replace__list li:nth-child(6)::after { transition-delay: .40s; }
.replace__list li:nth-child(7)::after { transition-delay: .48s; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--paper { background: var(--paper-2); }
.section--night { background: var(--night); color: #F1EDE3; }
.section__head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }
.section__title { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.section__title em { color: var(--teal); font-size: 1.06em; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  padding: 28px; display: flex; flex-direction: column; gap: 24px; min-height: 280px;
  transition: box-shadow .3s, transform .4s var(--ease-out);
}
.tile:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-soft); transform: translateY(-3px); }
.tile h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.tile p { margin-top: 10px; font-size: 15px; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.tile--pipeline { grid-column: span 4; grid-row: span 2; }
.tile--pipeline h3 { font-size: clamp(26px, 2.6vw, 34px); }
.tile--invoice  { grid-column: span 2; grid-row: span 2; }
.tile--ocr, .tile--ask, .tile--presence, .tile--crm { grid-column: span 2; }
.tile--time, .tile--reports { grid-column: span 3; }
.tile--secure { grid-column: span 4; }

.tile--teal { background: var(--teal); color: #fff; box-shadow: none; }
.tile--teal p { color: rgba(255,255,255,.8); }
.tile--dark { background: var(--night); color: #F1EDE3; box-shadow: none; }
.tile--dark p { color: rgba(241,237,227,.7); }
.badge { display: inline-block; margin-bottom: 14px; font: 500 12px/1 var(--font-mono); padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; }

/* Tile visuals */
.viz-board { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; background: var(--paper); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.vb-col { display: flex; flex-direction: column; gap: 8px; }
.vb-h { height: 8px; width: 55%; border-radius: 4px; background: var(--line-2); margin: 4px 0 4px; }
.vb-c { height: 54px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(27,23,20,.06); position: relative; }
.vb-c::before { content: ""; position: absolute; left: 10px; top: 12px; width: 60%; height: 6px; border-radius: 3px; background: #E7E2D6; }
.vb-c::after { content: ""; position: absolute; left: 10px; top: 26px; width: 36%; height: 6px; border-radius: 3px; background: #F0ECE3; }
.vb-c.short { height: 40px; }
.vb-c.drop { background: transparent; box-shadow: inset 0 0 0 1.5px var(--amber); background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(188,154,28,.08) 6px 12px); }
.vb-c.drop::before, .vb-c.drop::after { display: none; }
.vb-c.drag { box-shadow: 0 18px 30px -10px rgba(27,23,20,.3), 0 0 0 1.5px var(--amber); z-index: 1; animation: drag 4.5s var(--ease-out) infinite; }
.vb-c.drag::before { background: var(--amber-soft); }
@keyframes drag {
  0%, 15%  { translate: 0 0; rotate: 0deg; }
  45%, 70% { translate: calc(100% + 12px) 0; rotate: -3deg; }
  90%,100% { translate: 0 0; rotate: 0deg; }
}

.viz-stamp { margin-top: auto; display: grid; place-items: center; }
.stamp-paper { width: 100%; max-width: 230px; background: #fff; border-radius: 12px; padding: 18px; display: grid; gap: 8px; rotate: 3deg; box-shadow: 0 30px 50px -20px rgba(0,0,0,.45); }
.stamp-paper > i { height: 7px; border-radius: 4px; background: #ECE8DD; }
.stamp-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.stamp { font: 600 13px/1 var(--font-mono); color: var(--teal-deep); padding: 8px 10px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--teal); rotate: -8deg; }
.tile--invoice.is-in .stamp { animation: stamp .5s .6s var(--ease-out) both; }
@keyframes stamp { from { scale: 1.8; opacity: 0; } to { scale: 1; opacity: 1; } }

.viz-ocr { margin-top: auto; display: grid; gap: 8px; }
.ocr-line { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: 14px; }
.ocr-line span { color: var(--muted); }
.ocr-line .type { font-weight: 600; clip-path: inset(0 100% 0 0); }
.tile--ocr.is-in .type { animation: type .8s calc(var(--d) + .3s) steps(12) forwards; }
@keyframes type { to { clip-path: inset(0 0 0 0); } }

.viz-chat { margin-top: auto; display: grid; gap: 8px; font-size: 14px; }
.bubble { padding: 9px 13px; border-radius: 14px; max-width: 88%; }
.bubble--me { justify-self: end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.bubble--ops { background: var(--teal-soft); color: var(--ink); border-bottom-left-radius: 4px; }

.viz-chain { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; column-gap: 0; row-gap: 10px; }
.link { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--paper); font: 500 13px/1.1 var(--font-mono); position: relative; margin-right: 14px; }
.link b { font-size: 10px; color: var(--teal); letter-spacing: .06em; }
.link:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 14px; height: 2px; background: var(--line-2); }
.link--live { box-shadow: inset 0 0 0 1.5px var(--green); }
.link--live b { color: var(--green); }

.viz-week { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; height: 120px; align-items: end; }
.day { display: grid; grid-template-rows: 1fr auto; gap: 8px; height: 100%; text-align: center; font: 500 12px/1 var(--font-mono); color: var(--muted); }
.day i { align-self: end; height: var(--h); border-radius: 8px; background: var(--teal); transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease-out); }
.day:nth-child(2) i { transition-delay: .06s; } .day:nth-child(3) i { transition-delay: .12s; } .day:nth-child(4) i { transition-delay: .18s; } .day:nth-child(5) i { transition-delay: .24s; }
.tile--time.is-in .day i { transform: scaleY(1); }
.day--off i { background: repeating-linear-gradient(135deg, var(--amber-soft) 0 6px, #EADB9F 6px 12px); }

.viz-line { margin-top: auto; width: 100%; height: 120px; }
.viz-line .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.tile--reports.is-in .draw { transition: stroke-dashoffset 1.6s .2s var(--ease-out); stroke-dashoffset: 0; }

.viz-people { margin-top: auto; display: grid; gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: var(--paper); }
.person b { display: block; font-size: 14px; }
.chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-deep); }
.chip--amber { background: var(--amber-soft); color: #6F5A0C; }

.tile--secure { flex-direction: row; align-items: center; }
.tile--secure .tile__copy { flex: 1; }
.viz-silo { display: flex; gap: 12px; align-items: end; }
.silo { width: 88px; padding: 10px; border-radius: 12px; background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); display: grid; gap: 6px; }
.silo span { font: 500 10px/1.2 var(--font-mono); color: rgba(241,237,227,.5); }
.silo i { height: 26px; border-radius: 6px; background: rgba(255,255,255,.06); }
.silo--you { background: var(--teal); box-shadow: 0 0 0 4px rgba(92,117,124,.3); padding-top: 12px; }
.silo--you span { color: #fff; }
.silo--you i { background: rgba(255,255,255,.22); }

/* ---------- Flow ---------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: flow; }
.flow li { position: relative; padding-top: 28px; border-top: 2px solid var(--line-2); }
.flow li::before { content: ""; position: absolute; top: -2px; left: 0; width: 0; height: 2px; background: var(--teal); transition: width 1s var(--ease-out); }
.flow li.is-in::before { width: 100%; }
.flow__n { font: 500 13px/1 var(--font-mono); color: var(--teal); }
.flow h3 { font-size: 28px; letter-spacing: -.03em; font-weight: 600; margin: 14px 0 6px; }
.flow p { color: var(--ink-2); font-size: 16px; }

/* ---------- Trust ---------- */
.section--night .section__title { color: #F6F2E8; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
.trust__item { background: var(--night); padding: 32px; }
.trust__item h3 { font-size: 20px; letter-spacing: -.02em; font-weight: 600; }
.trust__item p { margin-top: 8px; font-size: 15px; color: rgba(241,237,227,.62); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(96px, 14vw, 180px) 0; text-align: center; overflow: clip; }
.cta::before { content: ""; position: absolute; inset: 10% 10%; background: radial-gradient(50% 50% at 50% 50%, rgba(92,117,124,.18), transparent 70%); pointer-events: none; }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__mark { border-radius: 14px; box-shadow: var(--shadow-float); margin-bottom: 32px; animation: bob 7s ease-in-out infinite; }
.cta__title { font-size: clamp(48px, 8vw, 104px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.cta__title em { color: var(--teal-deep); font-size: 1.08em; }
.cta__lede { margin-top: 22px; font-size: 19px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { color: var(--ink); font-size: 17px; }
.footer__links { display: flex; gap: 20px; margin-left: auto; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out), box-shadow .3s, transform .4s var(--ease-out); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .col--hide-md { display: none; }
  .board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .float--invoice { width: 240px; }
  .float--chat { width: 250px; }
}

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .tile { grid-column: span 1; grid-row: auto; }
  .bento .tile--pipeline, .bento .tile--secure { grid-column: span 2; }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__inner { gap: 12px; }
  .langs { margin-left: auto; gap: 0; }
  .langs a { padding: 5px 6px; }

  .stage__inner { padding: 0; --rx: 8deg; }
  .app { min-height: 330px; }
  .app__side { display: none; }
  .app__tools .search { display: none; }
  .app__main { padding: 14px 12px; }
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .col--hide-sm { display: none; }
  .col { min-height: 250px; }
  .window__url { font-size: 10px; padding: 5px 8px; }
  .float--presence, .float--chat { display: none; }
  .float { --z: 40; }
  .float--invoice { width: 190px; top: auto; bottom: 10%; right: 0; padding: 12px; scale: .8; transform-origin: bottom right; }
  .inv__rows, .inv__client { display: none; }
  .inv__amount { font-size: 22px; margin: 6px 0 8px; }
  .inv__verified { font-size: 12px; }
  .float--phone { left: 0; bottom: -6%; scale: .5; transform-origin: bottom left; }
  .card { padding: 8px; }
  .card__name { font-size: 11px; }
  .col__head { font-size: 11px; }
  .col__head em { display: none; }

  .bento { grid-template-columns: 1fr; }
  .bento .tile, .bento .tile--pipeline, .bento .tile--secure { grid-column: auto; }
  .tile { padding: 22px; min-height: 0; }
  .tile--secure { flex-direction: column; align-items: stretch; }
  .viz-silo .silo { flex: 1; width: auto; }
  .viz-board { grid-template-columns: repeat(3, 1fr); }
  .vb-col:last-child { display: none; }
  .flow { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust__item { padding: 24px; }
  .footer__links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .stage__inner { opacity: 1; translate: none; }
  .ocr-line .type { clip-path: none; }
  .day i { transform: none; }
  .viz-line .draw { stroke-dashoffset: 0; }
  .replace__list li::after { transform: scaleX(1); }
}
