@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #062a27;
  --ink-2: #0a3b37;
  --brand: #0f766e;
  --brand-strong: #0b5c56;
  --brand-bright: #14b8a6;
  --brand-glow: #2dd4bf;
  --mint: #e3f2ef;
  --bg: #ffffff;
  --bg-soft: #f4f7f6;
  --text: #0c1716;
  --muted: #51605e;
  --line: #dfe7e5;
  --on-dark: #eaf6f4;
  --on-dark-muted: #a6c4bf;
  --warn: #f59e0b;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(6, 42, 39, .06), 0 12px 32px rgba(6, 42, 39, .08);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .35);
  --wrap: 1200px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand-glow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 560; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-primary { background: var(--brand-bright); color: #022724; }
.btn-primary:hover { background: var(--brand-glow); }
.btn-ghost { color: inherit; }
.btn-ghost:hover { background: rgba(127, 127, 127, .12); }
.btn-outline-light { border-color: rgba(234, 246, 244, .35); color: var(--on-dark); }
.btn-outline-light:hover { border-color: var(--on-dark); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 42, 39, .86); color: var(--on-dark);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-bright), var(--brand)); color: #fff;
  font-weight: 700; font-size: 18px;
}
.brand-name { font-weight: 650; font-size: 19px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--on-dark-muted); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-signin-mobile { display: none; }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; color: inherit; border-radius: 10px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav[data-open] .nav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav[data-open] .nav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); padding: 88px 0 56px; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(20, 184, 166, .38), rgba(20, 184, 166, 0));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 680; letter-spacing: -0.04em; }
.lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); color: var(--on-dark-muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--on-dark-muted); }
.hero-note a { color: var(--on-dark); }
.hero-visual { position: relative; }

.screen { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.screen-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #eef2f1; border-bottom: 1px solid var(--line); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd8d6; }
.screen-bar span { margin-left: 12px; font-size: 12px; color: var(--muted); background: #fff; padding: 2px 12px; border-radius: 999px; }
.hero .screen {
  transform: perspective(1600px) rotateY(calc(-6deg + var(--ry, 0deg) + var(--hs, 0) * 6deg)) rotateX(calc(2deg + var(--rx, 0deg))) translateY(calc(var(--hs, 0) * -36px)) scale(calc(1 + var(--hs, 0) * .04));
  transform-origin: left center; transition: transform .35s ease-out; will-change: transform;
}

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 560;
  background: rgba(255,255,255,.96); color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.25);
  animation: float 6s ease-in-out infinite;
}
.chip-a { left: -22px; top: 18%; }
.chip-b { right: -10px; top: 46%; animation-delay: -2s; }
.chip-c { left: 12%; bottom: -18px; animation-delay: -4s; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-ok { background: var(--brand-bright); box-shadow: 0 0 0 4px rgba(20,184,166,.18); }
.dot-warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.scope { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.scope li { font-size: 14px; color: var(--on-dark-muted); padding: 6px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; white-space: nowrap; }

/* Sections */
.section { padding: 112px 0; }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section h2 { font-size: clamp(30px, 3.8vw, 48px); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow-dark { color: var(--brand-glow); }
.sub { margin-top: 18px; font-size: 19px; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 30px 26px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.num { display: block; font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 26px; }

/* Platform bento */
.platform { background: var(--bg-soft); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 32px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-wide { grid-column: span 2; background: linear-gradient(160deg, #fff 55%, var(--mint)); }
.tile h3 { font-size: 21px; margin: 18px 0 10px; }
.tile p { color: var(--muted); font-size: 16px; }
.ico { width: 46px; height: 46px; padding: 10px; border-radius: 13px; background: var(--mint); stroke: var(--brand); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Tabs */
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.tab-list button {
  font: inherit; font-size: 15px; font-weight: 550; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
}
.tab-list button:hover { color: var(--text); border-color: #bccac7; }
.tab-list button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.panel { margin: 0; }
.panel img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel figcaption { margin-top: 18px; color: var(--muted); font-size: 16px; max-width: 46em; }

/* Feature rows */
.features .wrap { display: grid; gap: 120px; }
.row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.row-flip .row-copy { order: 2; }
.row-copy h2 { margin-bottom: 18px; }
.row-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 530; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.row-visual.screen { border: 1px solid var(--line); box-shadow: var(--shadow); }
.phones { position: relative; display: flex; justify-content: center; gap: 24px; padding: 40px 20px; border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, var(--mint), var(--bg-soft) 70%); }
.phone { width: 42%; max-width: 260px; border-radius: 30px; border: 8px solid var(--ink); box-shadow: var(--shadow-lg); }
.phone-2 { margin-top: 48px; }

/* Why */
.why { background: var(--bg-soft); }
.why .card { background: #fff; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--ink), #07433d); color: var(--on-dark); padding: 96px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(30px, 3.6vw, 46px); }
.cta p { margin-top: 14px; color: var(--on-dark-muted); font-size: 18px; max-width: 34em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer { background: #041d1b; color: var(--on-dark-muted); padding: 64px 0 28px; font-size: 15px; }
.footer .brand { color: var(--on-dark); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; max-width: 26em; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: var(--on-dark); font-size: 15px; margin-bottom: 4px; letter-spacing: 0; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }

/* Plain pages */
.page { padding: 80px 0 112px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 24px; }
.page h2 { font-size: 22px; margin: 36px 0 10px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }

/* Reveal */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero-inner, .row { grid-template-columns: 1fr; }
  .row-flip .row-copy { order: 0; }
  .hero .screen { transform: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--ink); padding: 8px 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav[data-open] .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-signin-mobile { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-block; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 80px 0; }
  .bento, .grid-4 { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .chip { font-size: 12.5px; padding: 7px 11px; }
  .chip-a { left: -4px; top: -16px; }
  .chip-b { right: -4px; }
  .nav-cta .btn-primary { padding: 8px 14px; font-size: 14px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .features .wrap { gap: 80px; }
  .tab-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tab-list button { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .tile:hover { transform: none; }
}
.page .updated { margin-top: 36px; font-size: 15px; }
.footer-plain { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-plain a { color: var(--on-dark); }

/* ===== Interactive layer ===== */

/* Scroll progress and current section in the nav */
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.nav-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-bright), var(--brand-glow)); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.nav-links a { position: relative; }
.nav-links a.is-current { color: #fff; }
.nav-links a.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--brand-glow); }

/* Hero entrance, mouse tilt and glow */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes chipIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.js .hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(5) { animation-delay: .32s; }
.js .hero-visual { animation: rise 1s .2s cubic-bezier(.2, .7, .2, 1) both; }
.js .chip { animation: chipIn .6s cubic-bezier(.2, .7, .2, 1) both, float 6s ease-in-out infinite; }
.js .chip-a { animation-delay: .8s, .8s; }
.js .chip-b { animation-delay: 1.1s, -1s; }
.js .chip-c { animation-delay: 1.4s, -3s; }
.hero-glow { transform: translate(var(--gx, 0px), var(--gy, 0px)); transition: transform .8s ease-out; }

/* Stats with counters */
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin: 72px 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.stat { display: flex; flex-direction: column; padding: 24px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.08); }
.stat dd { display: contents; }
.stat dt { font-size: 15px; font-weight: 560; color: var(--on-dark); margin-top: 6px; }
.stat-num { order: -1; font-size: clamp(38px, 4.2vw, 56px); font-weight: 650; letter-spacing: -0.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat-note { font-size: 14px; color: var(--on-dark-muted); margin-top: 4px; }

/* Module marquee */
.marquee { position: relative; z-index: 1; margin-top: 44px; overflow: hidden; padding: 0 24px; }
.js .marquee { padding: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .scope { flex-wrap: nowrap; padding-right: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Without / with Fleetech */
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section-head-row > div:first-child { max-width: 780px; }
.switch { display: none; position: relative; padding: 4px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); flex: none; }
.js .switch { display: inline-flex; }
.switch::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--sw, 0px); border-radius: 999px;
  background: var(--ink); transform: translateX(var(--sx, 4px));
  transition: transform .4s cubic-bezier(.3, .7, .2, 1), width .4s cubic-bezier(.3, .7, .2, 1), background .4s;
}
.problem[data-mode="after"] .switch::before { background: var(--brand-bright); }
.switch button { position: relative; z-index: 1; font: inherit; font-size: 15px; font-weight: 580; border: 0; background: transparent; color: var(--muted); padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: color .3s; }
.switch button[aria-pressed="true"] { color: #fff; }
.problem[data-mode="after"] .switch button[aria-pressed="true"] { color: #022724; }
.problem:not([data-touched]) [data-mode-btn="after"]::after { content: ""; position: absolute; inset: 0; border-radius: 999px; box-shadow: 0 0 0 0 rgba(20,184,166,.5); animation: ping 2.2s ease-out 1.5s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(20,184,166,.45); } 80%, 100% { box-shadow: 0 0 0 12px rgba(20,184,166,0); } }
.face-after { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.face-after .num { color: var(--brand-strong); }
.js .flip { display: grid; }
.js .face { grid-area: 1 / 1; transition: opacity .45s ease, transform .55s cubic-bezier(.3, .7, .2, 1), visibility .45s; transition-delay: var(--fd, 0s); }
.js .face-after { margin: 0; padding: 0; border: 0; opacity: 0; visibility: hidden; transform: translateY(16px); }
.js .problem[data-mode="after"] .face-before { opacity: 0; visibility: hidden; transform: translateY(-16px); }
.js .problem[data-mode="after"] .face-after { opacity: 1; visibility: visible; transform: none; }
.problem .card { transition: background .45s, border-color .45s, opacity .7s ease, transform .7s ease; }
.problem[data-mode="after"] .card { background: var(--mint); border-color: rgba(15,118,110,.22); }

/* Platform tiles: cursor spotlight */
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(45,212,191,.2), transparent 65%); }
.tile:hover::before { opacity: 1; }
.ico { transition: transform .35s cubic-bezier(.3, .7, .2, 1), background .3s, stroke .3s; }
.tile:hover .ico { transform: rotate(-6deg) scale(1.08); background: var(--brand-bright); stroke: #fff; }

/* Tabs: autoplay with progress */
.tab-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.tab-list button { position: relative; overflow: hidden; }
.tabs[data-auto] .tab-list button[aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--brand-glow); transform-origin: left; animation: tabprog 6s linear forwards; }
.tabs[data-auto][data-hold] .tab-list button[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes tabprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tab-play { flex: none; font: inherit; font-size: 14px; font-weight: 560; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.tab-play:hover { color: var(--text); border-color: #bccac7; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.js .panel:not([hidden]) { animation: fadeUp .5s cubic-bezier(.2, .7, .2, 1) both; }

/* How it works: one rental, step by step */
.story { background: var(--ink); color: var(--on-dark); }
.story .sub { color: var(--on-dark-muted); }
.story-track { padding: 112px 0; }
.story-head { max-width: 780px; margin-bottom: 56px; }
.story-head h2 { font-size: clamp(30px, 3.8vw, 48px); }
.story-stage { display: none; }

/* Stacked timeline (phones, short screens, no script) */
.story-steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 58px; max-width: 760px; }
.story-steps::before, .story-steps::after { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.12); }
.story-steps::after { background: var(--brand-glow); bottom: auto; height: calc((100% - 36px) * var(--p, 0)); }
.story-steps li { position: relative; }
.story-steps li + li { margin-top: 44px; }
.step-btn { display: flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.step-num { position: absolute; left: -58px; top: 0; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; background: var(--ink); color: var(--brand-glow); border: 2px solid rgba(45,212,191,.45); transition: background .3s, color .3s, border-color .3s; }
.story-steps li.is-done .step-num, .story-steps li.is-active .step-num { background: var(--brand-bright); border-color: var(--brand-bright); color: #022724; }
.step-title { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; line-height: 36px; }
.step-body p { margin: 6px 0 18px; color: var(--on-dark-muted); font-size: 16px; }
.step-img { border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow-lg); }
.step-img-phone { width: 46%; max-width: 230px; border: 6px solid #0f4a45; border-radius: 26px; }

/* Pinned story (desktop) */
.story.is-pinned .story-track { padding: 0; height: calc(100vh + 7 * 55vh); }
.story.is-pinned .story-pin { position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; align-items: center; overflow: hidden; }
.story.is-pinned .story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-rows: auto auto; gap: 28px 44px; align-items: start; }
.story.is-pinned .story-head { grid-column: 1 / -1; margin: 0; max-width: 900px; }
.story.is-pinned .story-head h2 { font-size: clamp(28px, 3vw, 42px); }
.story.is-pinned .story-head .sub { font-size: 17px; margin-top: 10px; }
.story.is-pinned .story-stage { display: block; position: relative; width: min(100%, calc((100vh - 68px - 290px) * 16 / 9)); }
.story-screen { border-radius: var(--radius-sm); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.story-frames { position: relative; aspect-ratio: 16 / 9; background: var(--bg-soft); }
.frame { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.frame.is-active { opacity: 1; transform: none; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.frame-phone { background: radial-gradient(circle at 50% 40%, var(--mint), var(--bg-soft) 70%); }
.frame-phone img { position: absolute; top: 5%; left: 0; right: 0; margin: 0 auto; width: auto; height: 90%; max-width: none; border: 6px solid var(--ink); border-radius: 22px; box-shadow: 0 18px 40px rgba(6,42,39,.25); }
.story-card { position: absolute; left: 20px; bottom: 34px; min-width: 250px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.97); color: var(--text); box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.story-card-meta { display: flex; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.story-card-meta span + span { color: var(--muted); }
.story-card-title { margin-top: 4px; font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.story-card.bump { animation: rise .45s cubic-bezier(.2, .7, .2, 1); }
.story-bar { margin-top: 16px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.story-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-bright), var(--brand-glow)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.story.is-pinned .story-steps { grid-column: 2; padding: 8px; max-width: none; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.story.is-pinned .story-steps::before, .story.is-pinned .story-steps::after { display: none; }
.story.is-pinned .story-steps li + li { margin-top: 2px; }
.story.is-pinned .step-btn { width: 100%; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--on-dark-muted); transition: background .3s, color .3s; }
.story.is-pinned .step-btn:hover { color: #fff; background: rgba(255,255,255,.04); }
.story.is-pinned .step-num { position: static; width: auto; height: auto; border: 0; background: none; color: rgba(166,196,191,.6); font-size: 12.5px; }
.story.is-pinned li.is-done .step-num, .story.is-pinned li.is-active .step-num { background: none; color: var(--brand-glow); }
.story.is-pinned .step-title { font-size: 16px; line-height: 1.3; font-weight: 600; }
.story.is-pinned li.is-active .step-btn { background: rgba(45,212,191,.12); color: #fff; }
.story.is-pinned .step-body { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.story.is-pinned li.is-active .step-body { max-height: 130px; }
.story.is-pinned .step-body p { margin: 0; padding: 2px 12px 12px 44px; font-size: 14.5px; line-height: 1.5; }
.story.is-pinned .step-img { display: none; }

/* Documents row: scanning */
.scan { position: relative; }
.scan-line { position: absolute; left: 0; right: 0; top: -90px; height: 90px; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(45,212,191,0), rgba(45,212,191,.22) 80%, var(--brand-glow) 99%, rgba(45,212,191,0)); }
.row.in .scan-line { animation: scan 2.6s .5s ease-in-out 2; }
@keyframes scan { 0% { top: -90px; opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.scan-tag { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 560; background: rgba(255,255,255,.97); color: var(--text); box-shadow: 0 10px 28px rgba(6,42,39,.22); opacity: 0; transform: translateY(10px) scale(.95); transition: opacity .5s, transform .5s cubic-bezier(.2, .7, .2, 1); }
.scan-tag-1 { right: 16px; top: 14%; }
.scan-tag-2 { left: 16px; top: 46%; }
.scan-tag-3 { right: 22px; bottom: 12%; }
.row.in .scan-tag { opacity: 1; transform: none; }
.row.in .scan-tag-1 { transition-delay: 1.3s; }
.row.in .scan-tag-2 { transition-delay: 2s; }
.row.in .scan-tag-3 { transition-delay: 2.7s; }

/* Phones parallax */
.phones[data-parallax] .phone { transform: translateY(calc(var(--py, 0) * -26px)); }
.phones[data-parallax] .phone-2 { transform: translateY(calc(var(--py, 0) * 34px)); }

@media (max-width: 920px) {
  .nav-links a.is-current::after { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); margin-top: 24px; }
}
@media (max-width: 640px) {
  .stats { margin-top: 48px; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 14px; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat-note { font-size: 13px; }
  .marquee { padding: 0 16px; }
  .story-track { padding: 80px 0; }
  .story-head { margin-bottom: 40px; }
  .switch { width: 100%; }
  .switch button { flex: 1; padding: 10px 8px; }
  .scan-tag { font-size: 11.5px; padding: 6px 10px; }
  .scan-tag-3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-copy > *, .js .hero-visual, .js .chip, .js .panel:not([hidden]), .story-card.bump { animation: none; }
  .marquee-track { animation: none; }
  .js .marquee { overflow-x: auto; }
  .hero .screen, .hero-glow { transition: none; }
  .frame, .js .face, .scan-tag { transition: none; }
  .row.in .scan-line { animation: none; }
  .problem:not([data-touched]) [data-mode-btn="after"]::after { animation: none; }
  .tile:hover .ico { transform: none; }
}
