:root {
  /* Brand colors, taken from the app's logo */
  --ink: #12262B;
  --cream: #F4EDE1;
  --rust: #D9653B;
  --teal: #0E5E6F;
  --teal-2: #1A8296;
  --rust-text: #B4502C;
  /* Light theme surfaces */
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --surface-2: #F4EDE1;
  --text: #12262B;
  --text-dim: #4F656A;
  --line: rgba(18, 38, 43, .12);
  --radius: 22px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; }
.accent { color: var(--rust); }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--rust-text);
  margin-bottom: 1rem;
}

/* ---------- progress & nav ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--teal-2), var(--rust));
  transform-origin: 0 50%; transform: scaleX(0);
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  transition: background .3s, backdrop-filter .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(251, 248, 243, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 10px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand span {
  font-family: var(--font-display); font-weight: 500; font-size: .82rem;
  line-height: 1.2; color: var(--text-dim); letter-spacing: .04em;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .92rem; }
.nav-links a:not(.btn) { color: var(--text-dim); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  background: var(--rust); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 10px 30px -10px rgba(217, 101, 59, .7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(217, 101, 59, .9); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: rgba(18, 38, 43, .04); box-shadow: inset 0 0 0 1.5px rgba(18, 38, 43, .3); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 120px 16px 80px; overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 6rem); font-weight: 800; margin-bottom: 1.5rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-dim); max-width: 640px; margin: 0 auto 2.4rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .reveal:nth-child(2) { transition-delay: .1s; }
.hero .reveal:nth-child(3) { transition-delay: .2s; }
.hero .reveal:nth-child(4) { transition-delay: .3s; }

.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, var(--bg) 75%);
}
/* Carpets: striped rugs with the logo's dashed stitching */
.rug {
  position: absolute; border-radius: 10px; opacity: .4;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(0,0,0,.08) 18px 20px),
    linear-gradient(var(--rug-c1), var(--rug-c2));
  box-shadow: inset 0 0 0 10px rgba(0,0,0,.12), 0 30px 60px -20px rgba(18,38,43,.35);
  will-change: transform;
}
.rug::before {
  content: ""; position: absolute; inset: 18px; border-radius: 4px;
  border: 2px dashed rgba(244, 237, 225, .45);
}
.rug::after {
  content: ""; position: absolute; left: -14px; right: -14px; top: 6px; bottom: 6px;
  background:
    repeating-linear-gradient(0deg, var(--rug-c2) 0 2px, transparent 2px 7px) left / 10px 100% no-repeat,
    repeating-linear-gradient(0deg, var(--rug-c2) 0 2px, transparent 2px 7px) right / 10px 100% no-repeat;
  opacity: .5;
}
.rug-a { --rug-c1: #0E5E6F; --rug-c2: #0A4653; width: 340px; height: 220px; left: -60px; top: 18%; transform: rotate(-14deg); }
.rug-b { --rug-c1: #D9653B; --rug-c2: #A9472A; width: 260px; height: 380px; right: -40px; top: 10%; transform: rotate(12deg); }
.rug-c { --rug-c1: #6B4E8C; --rug-c2: #4A3566; width: 300px; height: 190px; left: 55%; bottom: -60px; transform: rotate(-6deg); }

.bubbles i {
  position: absolute; bottom: -40px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), rgba(255,255,255,.08) 60%);
  border: 1px solid rgba(255,255,255,.25);
  animation: rise 12s linear infinite;
}
.bubbles i:nth-child(1) { left: 10%; animation-delay: 0s; }
.bubbles i:nth-child(2) { left: 22%; width: 10px; height: 10px; animation-delay: 3s; animation-duration: 9s; }
.bubbles i:nth-child(3) { left: 38%; width: 26px; height: 26px; animation-delay: 6s; }
.bubbles i:nth-child(4) { left: 52%; animation-delay: 1.5s; animation-duration: 14s; }
.bubbles i:nth-child(5) { left: 64%; width: 12px; height: 12px; animation-delay: 4s; }
.bubbles i:nth-child(6) { left: 76%; width: 22px; height: 22px; animation-delay: 8s; animation-duration: 10s; }
.bubbles i:nth-child(7) { left: 86%; animation-delay: 2s; }
.bubbles i:nth-child(8) { left: 94%; width: 9px; height: 9px; animation-delay: 7s; }
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(20px, -50vh); }
  100% { transform: translate(-10px, -105vh); opacity: 0; }
}

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid var(--line);
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--text-dim); animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 40px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: var(--text); }
.stat span { color: var(--text-dim); font-size: .92rem; }
.stat:nth-child(2) { transition-delay: .1s; }
.stat:nth-child(3) { transition-delay: .2s; }
.stat:nth-child(4) { transition-delay: .3s; }

/* ---------- video (the app videos are portrait, recorded on a phone) ---------- */
.video-sec { padding: 130px clamp(16px, 4vw, 48px) 0; }
.video-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 96px); align-items: center;
}
.video-sec .story-head { text-align: left; margin: 0; }
.video-sec .story-head > p:not(.eyebrow) { color: var(--text-dim); font-size: 1.08rem; max-width: 460px; margin-top: 1.2rem; }
.video {
  width: 100%; aspect-ratio: 9 / 16;
  border-radius: var(--radius); overflow: hidden; background: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(18, 38, 43, .55);
}
.video iframe, .yt { display: block; width: 100%; height: 100%; border: 0; }
.yt { position: relative; }
/* The thumbnail is 16:9 with the portrait video in the middle; cover keeps just that middle */
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.yt::after { content: ""; position: absolute; inset: 0; background: rgba(18, 38, 43, .12); transition: background .3s; }
.yt:hover::after { background: rgba(18, 38, 43, 0); }
.yt:hover img { transform: scale(1.03); }
.yt:focus-visible { outline: 3px solid var(--rust); outline-offset: -3px; }
.yt-play {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  background: var(--rust); box-shadow: 0 0 0 9px rgba(217, 101, 59, .28);
  transition: transform .3s;
}
.yt-play::before {
  content: ""; position: absolute; left: 29px; top: 23px;
  border-style: solid; border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #fff;
}
.yt:hover .yt-play { transform: scale(1.08); }

/* ---------- story (sticky phone) ---------- */
.story { padding: 140px clamp(16px, 4vw, 48px) 60px; }
.story-head { text-align: center; max-width: 800px; margin: 0 auto 80px; }
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px);
  max-width: 1180px; margin: 0 auto;
}
.phone-wrap {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; place-items: center;
}
.phone {
  position: relative; z-index: 2;
  width: min(330px, 80vw); aspect-ratio: 9 / 19;
  border-radius: 48px; padding: 12px;
  background: linear-gradient(145deg, #2b4a52, #0b1a1e);
  box-shadow:
    0 0 0 1.5px rgba(18, 38, 43, .15),
    0 50px 100px -30px rgba(18, 38, 43, .45),
    inset 0 0 0 2px rgba(255, 255, 255, .05);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px; border-radius: 14px; background: #000; z-index: 5;
}
.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 38px; background: #F8FAFC; color: #0F172A;
  font-family: var(--font-body); font-size: 12px;
}
.phone-glow {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(14, 94, 111, .55)), transparent 65%);
  filter: blur(40px); z-index: 1; transition: background .8s;
}

/* screens */
.scr {
  position: absolute; inset: 0; padding: 56px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}
.scr.active { opacity: 1; transform: none; }
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-family: var(--font-display); }
.appbar > span:first-child { font-size: 22px; line-height: 1; color: #475569; }
.appbar b { font-size: 15px; flex: 1; }
.chip {
  font-size: 8.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 7px; border-radius: 999px;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
  white-space: nowrap;
}
.card { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 10px; }
.cust { display: flex; gap: 10px; align-items: center; }
.cust small, .item small { display: block; color: #64748B; font-size: 10.5px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 12px;
}
.items { display: flex; flex-direction: column; gap: 7px; }
.item {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #E2E8F0;
  border-radius: 12px; padding: 8px;
}
.item > div:nth-child(2) { flex: 1; }
.item em { font-style: normal; font-weight: 700; color: var(--teal); }
.scr.active .item.new { animation: pop .6s .5s both cubic-bezier(.2, .9, .3, 1.4); }
@keyframes pop { from { opacity: 0; transform: translateX(30px) scale(.9); } }
.sw { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.sw1 { background: repeating-linear-gradient(45deg, #0E5E6F 0 5px, #157a8e 5px 10px); }
.sw2 { background: repeating-linear-gradient(90deg, #D9653B 0 4px, #f0a07f 4px 8px); }
.sw3 { background: radial-gradient(circle, #F4EDE1 20%, transparent 22%) 0 0 / 10px 10px, #6B4E8C; }
.sw4 { background: conic-gradient(#A9472A 0 25%, #F4EDE1 0 50%, #A9472A 0 75%, #F4EDE1 0) 0 0 / 12px 12px; }
.totals { margin-top: auto; background: #0F172A; color: #fff; border-radius: 14px; padding: 12px; display: grid; gap: 4px; }
.totals div { display: flex; justify-content: space-between; color: #94A3B8; }
.totals b { color: #fff; }
.totals .net { color: #fff; font-family: var(--font-display); font-size: 15px; padding-top: 4px; border-top: 1px dashed #334155; }
.fab {
  align-self: center; background: var(--rust); color: #fff; font-weight: 600;
  border-radius: 999px; padding: 9px 18px; box-shadow: 0 8px 18px -6px rgba(217, 101, 59, .7);
}

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ph { aspect-ratio: 1; border-radius: 12px; position: relative; }
.scr.active .ph { animation: pop .5s both; }
.scr.active .ph:nth-child(2) { animation-delay: .08s; }
.scr.active .ph:nth-child(3) { animation-delay: .16s; }
.scr.active .ph:nth-child(4) { animation-delay: .24s; }
.scr.active .ph:nth-child(5) { animation-delay: .32s; }
.scr.active .ph:nth-child(6) { animation-delay: .4s; }
.ph.pending::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(15, 23, 42, .45); }
.ph.pending span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px; z-index: 1; animation: bob 1.2s infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.ph.add {
  border: 2px dashed #CBD5E1; display: grid; place-content: center; text-align: center;
  color: #64748B; font-size: 22px; line-height: 1;
}
.ph.add small { font-size: 9px; }
.note { display: flex; align-items: center; gap: 8px; background: #FEF3C7; color: #92400E; border-radius: 10px; padding: 9px 10px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #F59E0B; flex: none; }
.pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .7); } 100% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } }
.mini { color: #64748B; font-size: 11px; }

.printer { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: 6px; }
.printer-body {
  width: 82%; padding: 12px; border-radius: 14px 14px 8px 8px; z-index: 2;
  background: linear-gradient(#334155, #1E293B); color: #CBD5E1; font-size: 10px;
  display: flex; align-items: center; gap: 6px; justify-content: center;
}
.led { width: 7px; height: 7px; border-radius: 50%; background: #10B981; box-shadow: 0 0 8px #10B981; }
.receipt {
  width: 70%; background: #fff; padding: 12px 10px 16px; margin-top: -4px;
  font-family: ui-monospace, monospace; font-size: 9px; text-align: center;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .3);
  clip-path: polygon(0 0, 100% 0, 100% 96%, 90% 100%, 80% 96%, 70% 100%, 60% 96%, 50% 100%, 40% 96%, 30% 100%, 20% 96%, 10% 100%, 0 96%);
  transform-origin: top; transform: scaleY(0);
}
.scr.active .receipt { animation: printOut 1.4s .3s forwards steps(14); }
@keyframes printOut { to { transform: scaleY(1); } }
.receipt b { display: block; font-size: 10.5px; }
.receipt hr { border: 0; border-top: 1px dashed #94A3B8; margin: 6px 0; }
.receipt p { display: flex; justify-content: space-between; }
.receipt .big { font-weight: 700; font-size: 10.5px; }
.barcode { height: 22px; margin-top: 8px; background: repeating-linear-gradient(90deg, #000 0 2px, #fff 2px 3px, #000 3px 4px, #fff 4px 7px); }
.btn-row { display: flex; gap: 8px; margin-top: auto; }
.pill {
  flex: 1; text-align: center; padding: 9px; border-radius: 999px; font-weight: 600;
  background: var(--teal); color: #fff;
}
.pill.ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }

.scr.call { background: linear-gradient(180deg, #1E293B, #0F172A); color: #fff; align-items: center; }
.call-top { text-align: center; margin-top: 14px; }
.call-top small { color: #94A3B8; }
.call-top b { display: block; font-size: 18px; font-family: var(--font-display); }
.call-card {
  width: 100%; background: var(--cream); color: var(--ink); border-radius: 18px; padding: 14px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); display: grid; gap: 4px; margin-top: 10px;
}
.scr.call.active .call-card { animation: slideDown .7s .2s both cubic-bezier(.2, .9, .3, 1.3); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-40px) scale(.9); } }
.cc-head { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--teal); font-weight: 600; }
.cc-head img { width: 34px; padding: 4px; border-radius: 6px; background: var(--ink); }
.call-card > b { font-size: 17px; font-family: var(--font-display); }
.call-card > small { color: #4b6066; margin-top: -4px; }
.cc-row { display: flex; justify-content: space-between; border-top: 1px solid rgba(18, 38, 43, .1); padding-top: 5px; }
.call-card .pill { margin-top: 6px; }
.call-btns { margin-top: auto; display: flex; gap: 70px; padding-bottom: 14px; }
.call-btns span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.dec { background: #EF4444; }
.acc { background: #10B981; animation: ring 1s infinite; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-8deg); } }

.scr.wa { background: #ECE5DD; }
.tpl { background: #fff; border-radius: 12px; padding: 10px; border: 1px solid #E2E8F0; }
.tpl small { color: #64748B; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.tpl i { font-style: normal; background: #E0F2F1; color: var(--teal); border-radius: 5px; padding: 0 4px; font-weight: 600; }
.arrow-down { text-align: center; font-size: 18px; color: #64748B; }
.bubble {
  align-self: flex-end; max-width: 88%; background: #DCF8C6; border-radius: 12px 2px 12px 12px;
  padding: 9px 10px 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); position: relative;
}
.scr.wa.active .bubble { animation: pop .6s .5s both cubic-bezier(.2, .9, .3, 1.4); }
.bubble small { display: block; text-align: right; color: #53BDEB; font-size: 9px; margin-top: 3px; }

.map {
  border-radius: 14px; overflow: hidden; height: 180px; flex: none;
  background: #E8EEE7; border: 1px solid #E2E8F0;
}
.map svg { width: 100%; height: 100%; }
.road { stroke: #fff; stroke-width: 9; fill: none; }
.route-line {
  stroke: var(--rust); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 400; stroke-dashoffset: 400;
}
.scr.active .route-line { animation: draw 1.6s .3s forwards ease-in-out; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.stop circle { fill: var(--teal); stroke: #fff; stroke-width: 2.5; }
.stop text { fill: #fff; font-size: 9px; font-weight: 700; text-anchor: middle; font-family: var(--font-body); }
.stops { display: grid; gap: 6px; }
.stops div { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; padding: 7px 8px; }
.stops div b {
  width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: 10px; flex: none;
}
.stops .chip { margin-left: auto; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { border-radius: 14px; padding: 12px; color: #fff; }
.kpi small { opacity: .8; }
.kpi b { display: block; font-size: 17px; font-family: var(--font-display); }
.kpi.in { background: linear-gradient(135deg, #10B981, #047857); }
.kpi.out { background: linear-gradient(135deg, var(--rust), #A9472A); }
.bars { height: 110px; display: flex; align-items: flex-end; gap: 8px; padding: 10px 4px 0; }
.bars div {
  flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px;
  background: linear-gradient(var(--teal-2), var(--teal));
  transform-origin: bottom; transform: scaleY(0);
}
.scr.active .bars div { animation: grow .8s forwards cubic-bezier(.2, .9, .3, 1.2); }
.scr.active .bars div:nth-child(2) { animation-delay: .06s; }
.scr.active .bars div:nth-child(3) { animation-delay: .12s; }
.scr.active .bars div:nth-child(4) { animation-delay: .18s; }
.scr.active .bars div:nth-child(5) { animation-delay: .24s; }
.scr.active .bars div:nth-child(6) { animation-delay: .3s; }
.scr.active .bars div:nth-child(7) { animation-delay: .36s; }
@keyframes grow { to { transform: scaleY(1); } }
.days { display: flex; gap: 8px; padding: 0 4px; color: #94A3B8; font-size: 9px; }
.days span { flex: 1; text-align: center; }
.ledger { display: grid; gap: 6px; }
.ledger div { display: flex; justify-content: space-between; background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; padding: 8px 10px; }
.pos { color: #059669; }
.neg { color: #DC2626; }

.ring-wrap { position: relative; width: 170px; margin: 6px auto 4px; }
.ring { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .track { stroke: #E2E8F0; }
.ring .val {
  stroke: var(--rust); stroke-linecap: round;
  stroke-dasharray: 302; stroke-dashoffset: 302;
}
.scr.active .ring .val { animation: ringFill 1.4s .2s forwards cubic-bezier(.2, .7, .2, 1); }
@keyframes ringFill { to { stroke-dashoffset: 80; } }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label b { font-size: 22px; font-family: var(--font-display); }
.ring-label small { color: #64748B; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid2 div { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 10px; }
.grid2 small { color: #64748B; font-size: 10px; }
.grid2 b { display: block; font-size: 17px; font-family: var(--font-display); }

/* steps */
.steps { display: flex; flex-direction: column; }
.step {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  opacity: .22; transition: opacity .5s;
}
.step.active { opacity: 1; }
.step .num {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  color: var(--rust); letter-spacing: .1em; margin-bottom: 1rem;
}
.step h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700; margin-bottom: 1.1rem; }
.step p { color: var(--text-dim); font-size: 1.08rem; max-width: 470px; }
.step ul { list-style: none; margin-top: 1.4rem; display: grid; gap: 10px; }
.step li { display: flex; align-items: center; gap: 10px; }
.step li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--rust) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tag {
  align-self: flex-start; margin-top: 1rem; padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; color: var(--text-dim); border: 1px solid var(--line);
}

/* ---------- lifecycle (horizontal pinned) ---------- */
.lifecycle { position: relative; height: 380vh; }
.lc-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 56px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(14, 94, 111, .12), transparent 60%),
    var(--surface-2);
}
.lc-head { padding: 0 clamp(16px, 6vw, 96px); }
.lc-track-wrap { position: relative; }
.lc-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.lc-line span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #3B82F6, #F59E0B, #8B5CF6, #10B981, #0EA5E9, #64748B);
  transform-origin: 0 50%; transform: scaleX(0);
}
.lc-track {
  display: flex; gap: 28px; padding: 40px clamp(16px, 6vw, 96px) 0;
  width: max-content; will-change: transform;
}
.lc-card {
  position: relative; width: clamp(260px, 30vw, 380px); flex: none;
  padding: 30px; border-radius: var(--radius);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 12%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  transition: transform .5s, box-shadow .5s;
}
.lc-card.lit { transform: translateY(-8px); box-shadow: 0 30px 50px -30px color-mix(in srgb, var(--c) 70%, transparent); }
.lc-dot {
  position: absolute; top: -49px; left: 30px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface-2); border: 3px solid var(--c); transition: background .4s, box-shadow .4s;
}
.lc-card.lit .lc-dot { background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 25%, transparent); }
.lc-card small { font-family: var(--font-display); color: color-mix(in srgb, var(--c) 80%, #000); font-weight: 700; letter-spacing: .1em; }
.lc-card b { display: block; font-family: var(--font-display); font-size: 1.7rem; margin: 6px 0 10px; }
.lc-card p { color: var(--text-dim); }

/* ---------- offline ---------- */
.offline {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 160px clamp(16px, 4vw, 48px);
}
.offline-copy > p:not(.eyebrow) { color: var(--text-dim); font-size: 1.08rem; margin: 1.4rem 0; }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks li::before { content: "✓"; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(14, 94, 111, .12); color: var(--teal); font-weight: 700; flex: none; }

.sync-viz {
  position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center;
  border-radius: 32px; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 20%, rgba(26, 130, 150, .14), transparent 60%), var(--surface);
  box-shadow: 0 30px 60px -40px rgba(18, 38, 43, .35);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 40px 24px;
}
.cloud { font-size: 72px; line-height: 1; position: relative; color: var(--teal); }
.sync-badge {
  position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
  font-family: var(--font-display); font-size: .72rem; white-space: nowrap; font-weight: 600;
  background: #10B981; color: #fff; padding: 3px 10px; border-radius: 999px;
}
.wires {
  position: absolute; left: 15%; right: 15%; top: 32%; bottom: 32%;
  background:
    linear-gradient(var(--line), var(--line)) 0 0 / 2px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 50% 0 / 2px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 100% 0 / 2px 100% no-repeat;
}
.packet {
  position: absolute; width: 10px; height: 10px; border-radius: 50%; margin-left: -4px;
  background: var(--rust); box-shadow: 0 0 12px var(--rust);
  animation: travel 2.4s infinite ease-in-out;
}
.p1 { left: 0; }
.p2 { left: 50%; animation-delay: .8s; background: #94A3B8; box-shadow: none; animation-name: waiting; }
.p3 { left: 100%; animation-delay: 1.6s; animation-direction: reverse; background: var(--teal-2); box-shadow: 0 0 12px var(--teal-2); }
@keyframes travel { 0% { top: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 0; opacity: 0; } }
@keyframes waiting { 0%, 100% { top: 92%; opacity: .4; } 50% { top: 84%; opacity: 1; } }
.devices { display: flex; justify-content: space-between; width: 100%; padding: 0 2%; }
.dev { display: grid; justify-items: center; gap: 8px; }
.dev i {
  width: 46px; height: 82px; border-radius: 10px; border: 2.5px solid var(--ink);
  background: linear-gradient(var(--teal-2), var(--teal)); position: relative;
}
.dev i::after { content: ""; position: absolute; top: 5px; left: 50%; width: 12px; height: 3px; margin-left: -6px; border-radius: 2px; background: var(--cream); opacity: .6; }
.dev.off i { border-color: #94A3B8; background: #E2E8F0; }
.dev small { color: var(--text-dim); font-size: .78rem; }
.dev.off small { color: #B45309; }

/* ---------- bento ---------- */
.bento-sec { padding: 40px clamp(16px, 4vw, 48px) 160px; }
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 1180px; margin: 0 auto;
}
.tile {
  position: relative; overflow: hidden;
  padding: 30px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(18, 38, 43, .04);
  transition: transform .4s, border-color .4s, box-shadow .4s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(217, 101, 59, .1), transparent 40%);
}
.tile:hover { transform: translateY(-4px); border-color: rgba(18, 38, 43, .2); box-shadow: 0 24px 40px -28px rgba(18, 38, 43, .35); }
.tile:hover::before { opacity: 1; }
.t-wide { grid-column: span 2; }
.t-ico { font-size: 1.8rem; margin-bottom: 18px; }
.tile h3 { font-size: 1.4rem; margin-bottom: 8px; }
.tile p { color: var(--text-dim); max-width: 520px; }
.bento .tile:nth-child(2), .bento .tile:nth-child(5) { transition-delay: .08s; }
.bento .tile:nth-child(3), .bento .tile:nth-child(6) { transition-delay: .16s; }
.team { display: flex; margin-top: 22px; }
.team span {
  width: 42px; height: 42px; border-radius: 50%; margin-right: -10px; display: grid; place-items: center;
  font-weight: 700; font-size: .8rem; border: 3px solid var(--surface); background: var(--teal); color: #fff;
}
.team span:nth-child(2) { background: var(--rust); }
.team span:nth-child(3) { background: #6B4E8C; }
.team span:nth-child(4) { background: var(--surface-2); color: var(--text-dim); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; color: var(--text-dim); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 160px 16px; margin: 0 clamp(16px, 4vw, 48px);
  border-radius: 40px; background: var(--teal); color: var(--cream);
}
.cta .btn-ghost { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(244, 237, 225, .35); }
.cta .btn-ghost:hover { background: rgba(244, 237, 225, .08); box-shadow: inset 0 0 0 1.5px rgba(244, 237, 225, .6); }
.cta-rug {
  position: absolute; inset: 20px; border-radius: 26px; pointer-events: none;
  border: 2px dashed rgba(244, 237, 225, .3);
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(0, 0, 0, .15) 40px 42px);
}
.cta > *:not(.cta-rug) { position: relative; }
.cta-logo { margin: 0 auto 30px; }
.cta h2 { margin-bottom: 1rem; }
.cta p { color: rgba(244, 237, 225, .8); margin-bottom: 2.2rem; font-size: 1.1rem; }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 40px clamp(16px, 4vw, 48px); color: var(--text-dim); font-size: .88rem;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .brand span { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .video-sec { padding-top: 90px; }
  .video-grid { grid-template-columns: 1fr; gap: 32px; }
  .video-sec .story-head { text-align: center; }
  .video-sec .story-head > p:not(.eyebrow) { margin-inline: auto; }
  .video { width: min(100%, 320px); margin: 0 auto; }

  .story { padding-top: 100px; }
  .story-head { margin-bottom: 20px; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .phone-wrap {
    height: auto; top: 56px; padding: 14px 0 28px; z-index: 5;
    background: linear-gradient(var(--bg) 88%, transparent);
  }
  .phone { width: 170px; border-radius: 30px; padding: 7px; }
  .notch { top: 14px; width: 54px; height: 15px; }
  .screen { border-radius: 25px; }
  .phone .scr { zoom: .5; }
  .steps { position: relative; z-index: 1; padding-top: 30vh; }
  .step {
    min-height: 0; margin-bottom: 45vh; padding: 24px 20px; opacity: 1;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 20px 40px -30px rgba(18, 38, 43, .4);
  }
  .step:last-child { margin-bottom: 20vh; }
  .step h3 { font-size: 1.6rem; }
  .step p { font-size: 1rem; }

  .lifecycle { height: 460vh; }
  .lc-sticky { gap: 40px; }
  .lc-card { width: 78vw; padding: 24px; }

  .offline { grid-template-columns: 1fr; padding: 110px 16px; }
  .bento { grid-template-columns: 1fr; }
  .t-wide { grid-column: auto; }
  .cta { padding: 110px 16px; border-radius: 28px; }
  .rug-a { width: 220px; height: 150px; }
  .rug-b { width: 170px; height: 250px; }
  .rug-c { width: 200px; height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
