/* BiBoTracking — marketing site
   Self-contained styles. Brand tokens mirror the product design system. */

:root {
  --accent: #6C5CE7;
  --accent-dark: #5b4bd6;
  --accent-weak: #f4f2fe;
  --ink: #0f1623;
  --ink-soft: #38445a;
  --muted: #6b7689;
  --bg: #ffffff;
  --bg-subtle: #f6f8fb;
  --bg-tint: #f0f5ff;
  --border: #e4e8ef;
  --success: #2fa85a;
  --warn: #e0a400;
  --danger: #d9453c;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 22, 35, .06), 0 2px 8px rgba(16, 22, 35, .05);
  --shadow-lg: 0 24px 60px -20px rgba(20, 40, 90, .35), 0 8px 24px -12px rgba(20, 40, 90, .2);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  /* Offline design-system tokens — adopted part-by-part for the redesign.
     Header uses these; the rest of the page still uses the legacy tokens above. */
  --brand-500: #6c5ce7;
  --brand-600: #5b4bd6;
  --brand-tint: #f4f2fe;
  --text-primary: #14161b;
  --text-secondary: #5b6276;
  --text-brand: #5b4bd6;
  --surface-hover: #f5f7fc;
  --surface-card: #ffffff;
  --control-bg: #ffffff;
  --border-subtle: rgba(20, 22, 27, .07);
  --border-default: rgba(20, 22, 27, .11);
  --data-lavender: #8B7DF6;
  --data-sky: #38BDF8;
  --data-mint: #34D399;
  --data-amber: #FBBF24;
  --data-rose: #F472B6;
  --data-teal: #2DD4BF;
  --text-muted: #6B7488;
  --surface-sunken: #F2F4FB;
  --positive: #10B981;
  --focal-grad: linear-gradient(155deg, #20242E, #111319);
  --focal-border: rgba(139, 125, 246, .32);
  --shadow-xl: 0 32px 80px rgba(24, 32, 64, .16), 0 8px 20px rgba(24, 32, 64, .06);
  --us-col-tint: #ece8fb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  /* whole-page background = the offline hero gradient (fixed so it stays consistent) */
  background:
    radial-gradient(1200px 800px at 12% -8%, #ECE9FA, transparent 55%),
    radial-gradient(1000px 700px at 100% 0%, #E7ECF8, transparent 50%),
    linear-gradient(160deg, #EEF0F8, #E4E8F3) fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  --bw: 1px;
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: var(--bw) solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px var(--accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lg { font-size: 16px; padding: 14px 26px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- pill buttons (offline design) ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s, background .14s, border-color .14s;
}
.lp-btn:hover { text-decoration: none; }
.lp-btn:active { transform: scale(.97); }
.lp-btn svg { width: 16px; height: 16px; }
.lp-btn--primary { background: var(--brand-500); color: #fff; box-shadow: 0 10px 24px -10px var(--brand-500); }
.lp-btn--primary:hover { background: var(--brand-600); }
.lp-btn--secondary { background: var(--control-bg); color: var(--text-primary); border-color: var(--border-default); }
.lp-btn--secondary:hover { background: var(--surface-hover); }
.lp-btn--ghost { background: transparent; color: var(--text-secondary); }
.lp-btn--ghost:hover { background: var(--surface-hover); color: var(--text-primary); }
.lp-btn--sm { height: 36px; padding: 0 12px; font-size: 13px; }

/* ---------- nav (offline design) ---------- */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border-subtle); transition: box-shadow .2s ease;
}
/* frosted glass on a ::before layer so .lp-nav itself is NOT a containing block for the
   fixed mobile drawer (backdrop-filter would make it one → drawer widens the page) */
.lp-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, #EAEDF6 35%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
}
.lp-nav.scrolled { box-shadow: 0 1px 0 rgba(16,22,35,.04), 0 6px 20px -14px rgba(16,22,35,.28); }
.lp-nav__in { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 12px; }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); flex-shrink: 0; }
.lp-brand:hover { text-decoration: none; }
.lp-brand img { width: 32px; height: 32px; border-radius: 9px; }
.lp-brand__name { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.lp-brand__name b { color: var(--text-brand); font-weight: 800; }
.lp-navlinks { display: flex; align-items: center; gap: 2px; margin-left: 8px; margin-right: auto; }
.lp-navlink { padding: 7px 9px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-decoration: none; white-space: nowrap; transition: background .14s, color .14s; }
.lp-navlink:hover { background: var(--surface-hover); color: var(--text-primary); text-decoration: none; }
.lp-nav__right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* wrapper is transparent to layout on desktop (links + right act as direct flex children) */
.lp-nav__menu { display: contents; }
.lp-nav__burger {
  display: none; margin-left: auto; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border-default); background: #fff; color: var(--text-primary);
  align-items: center; justify-content: center; cursor: pointer;
}
.lp-nav__burger svg { width: 20px; height: 20px; }
.lp-nav__burger .ic-close { display: none; }
/* dim backdrop behind the mobile drawer (sits below the nav bar + drawer, above page) */
.lp-nav__scrim {
  display: none; position: fixed; inset: 0; z-index: 30;
  background: rgba(16,22,35,.36); opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lp-nav.open ~ .lp-nav__scrim { opacity: 1; pointer-events: auto; }

/* footer still uses .brand */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }

/* Anchor links share the capped (1120px) bar with the brand, the language switcher
   and three CTAs. The longest locales (vi/fr/id) need the full width — hide the anchors
   below 1160px so no locale ever overflows; the CTAs + switcher always stay. */
/* Progressive shedding — keep the primary nav links visible on the single row for as
   long as possible; the links themselves NEVER wrap (white-space:nowrap above). When
   the row runs out of space, drop the optional CTAs first (GitHub, then Sign in — both
   remain in the footer / OSS section), and only then hide the links. The longest
   locales (vi/fr/id) drive the widths, so English keeps everything a little longer. */
/* Below 1180px the single row can't hold every locale's links + CTAs, so collapse the
   whole menu behind a hamburger and drop it as a full-width vertical panel. */
@media (max-width: 1180px) {
  .lp-nav__burger { display: inline-flex; position: relative; z-index: 3; }
  .lp-nav__scrim { display: block; }
  /* off-canvas drawer sliding in from the right edge */
  .lp-nav__menu {
    display: flex; position: fixed; top: 0; right: 0; z-index: 1;
    height: 100vh; height: 100dvh; width: min(340px, 86vw);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #EAEEF6; border-radius: 20px 0 0 20px;
    box-shadow: -24px 0 60px -28px rgba(16,22,35,.5);
    padding: 78px 14px 22px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  }
  .lp-nav.open .lp-nav__menu { transform: translateX(0); }

  .lp-navlinks { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
  .lp-navlink { padding: 13px 14px; font-size: 15px; font-weight: 600; border-radius: 12px; color: var(--text-primary); }
  .lp-navlink:hover, .lp-navlink:active { background: var(--brand-tint); color: var(--text-brand); }

  .lp-nav__right {
    flex-direction: column; align-items: stretch; gap: 10px;
    margin: 12px 6px 0; padding-top: 16px; border-top: 1px solid var(--border-subtle);
  }
  .lp-nav__right .lp-btn { width: 100%; height: 48px; font-size: 15px; }
  /* language selector expands inline inside the drawer (absolute dropdown would be
     clipped by the drawer's overflow) */
  .lp-nav__right .lang-switcher {
    align-self: stretch; flex-wrap: wrap; height: auto; min-height: 46px;
    justify-content: flex-start; gap: 6px 8px; padding: 11px 14px; margin-bottom: 2px;
    border-radius: 14px;
  }
  .lp-nav__right .lang-caret { margin-left: auto; }
  .lp-nav__right .lang-menu {
    position: static; flex-basis: 100%; width: 100%; min-width: 0;
    margin: 6px 0 0; padding: 8px 0 0; background: transparent;
    border: none; border-top: 1px solid var(--border-subtle); border-radius: 0; box-shadow: none;
  }
  .lp-nav__right .lang-opt { padding: 11px 10px; font-size: 14px; }

  .lp-nav.open .lp-nav__burger .ic-menu { display: none; }
  .lp-nav.open .lp-nav__burger .ic-close { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .lp-nav__menu, .lp-nav__scrim { transition: none; } }
@media (max-width: 600px) {
  .lp-nav__in { gap: 10px; padding: 0 14px; }
  .lp-brand__name { font-size: 15px; }
  .lp-brand img { width: 28px; height: 28px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 80% -10%, var(--bg-tint), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, #f4f0ff, transparent 55%);
  padding: 76px 0 40px;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: #fff; border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(47,168,90,.18); }
h1.headline { font-size: 52px; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 18px; font-weight: 700; }
.headline .grad { background: linear-gradient(120deg, var(--accent), #7a4fe0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--success); }

.hero-media { position: relative; }
.hero-media .macwin { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transition: transform .5s ease; }
.hero-media:hover .macwin { transform: perspective(1600px) rotateY(-5deg) rotateX(1.5deg); }
.hero-badge {
  position: absolute; bottom: -16px; left: -18px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; gap: 12px; align-items: center;
}
.hero-badge b { font-size: 18px; }
.hero-badge .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.hero-badge .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-weak); display: grid; place-items: center; color: var(--accent); }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .macwin { transform: none; }
  h1.headline { font-size: 40px; }
}

/* ---------- hero (offline design) ---------- */
/* hero + stat strip sit on the shared page background (set on <body>) */
.lp-hero-band { position: relative; }
.lp-hero {
  position: relative;
  padding: 64px 0 40px;
}
.lp-hero__grid { display: grid; grid-template-columns: 1.05fr 1.1fr; gap: 56px; align-items: center; }
.lp-reveal { min-width: 0; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-brand);
  background: #F4F2FE; border: 1px solid rgba(108,92,231,.14); padding: 5px 14px; border-radius: 999px;
  margin-bottom: 24px;
}
.lp-eyebrow svg { width: 14px; height: 14px; flex-shrink: 0; }
.lp-hero__title { font-size: 44px; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 20px; font-weight: 800; color: var(--text-primary); }
.lp-hero__title .grad { background: linear-gradient(120deg, #6C5CE7, #38BDF8 60%, #34D399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero__lede { font-size: 18px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 20px; max-width: 560px; }
.lp-hero__ctas { display: flex; gap: 12px; flex-wrap: nowrap; }
@media (max-width: 440px) {
  .lp-hero__ctas { flex-wrap: wrap; }
  .lp-hero__ctas .lp-btn { flex: 1 1 100%; }
}
.lp-hero__sub-ctas { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 10px; }
.lp-hero__link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text-brand); transition: color .14s; }
.lp-hero__link:hover { color: var(--brand-600); text-decoration: none; }
.lp-hero__link svg { width: 16px; height: 16px; }
.lp-hero__note { margin-top: 24px; font-size: 13px; color: var(--muted); }
.lp-btn--lg { height: 50px; padding: 0 24px; font-size: 15px; }

.lp-mock { position: relative; }
.lp-mock__img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-subtle); background: #fff; }
.lp-mock__badge {
  position: absolute; top: -18px; right: -18px; background: #fff; border: 1px solid var(--border-subtle);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 11px 15px; display: flex; gap: 11px; align-items: center;
}
.lp-mock__badge .ic { width: 36px; height: 36px; border-radius: 10px; background: #e3f5ea; display: grid; place-items: center; color: var(--success); }
.lp-mock__badge .ic svg { width: 18px; height: 18px; }
.lp-mock__badge .l { font-size: 12px; color: var(--muted); }
.lp-mock__badge .v { font-size: 17px; font-weight: 700; color: var(--text-primary); }
@media (max-width: 920px) {
  .lp-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero .lp-reveal:last-child { order: -1; }
  .lp-hero__title { font-size: 38px; }
}

/* ---------- stat strip (offline design) ---------- */
.lp-section--tight { padding: 56px 0 44px; }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 24px; }
.lp-stat { padding: 26px 24px; text-align: center; }
.lp-stat__v { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: #3d6ef5; }
.lp-stat__l { margin-top: 10px; font-size: 14px; color: var(--text-secondary); }
@media (max-width: 640px) { .lp-stats { grid-template-columns: 1fr; } }

/* ---------- sections + cards (offline design) ---------- */
.lp-section { padding: 84px 0; }
.lp-head-center { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.lp-h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--text-primary); margin: 0 0 12px; text-wrap: balance; }
#privacy .lp-h2 { font-size: 33px; font-weight: 700; max-width: 520px; margin-left: auto; margin-right: auto; }
.lp-lead { font-size: 17px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.center { text-align: center; }

.lp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-card--hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.lp-card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-default); }

.lp-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.lp-ic svg { width: 22px; height: 22px; }
.lp-ic--lavender { background: color-mix(in srgb, var(--data-lavender) 16%, transparent); color: var(--data-lavender); }
.lp-ic--sky { background: color-mix(in srgb, var(--data-sky) 16%, transparent); color: var(--data-sky); }
.lp-ic--mint { background: color-mix(in srgb, var(--data-mint) 16%, transparent); color: var(--data-mint); }
.lp-ic--amber { background: color-mix(in srgb, var(--data-amber) 16%, transparent); color: #b3830f; }
.lp-ic--rose { background: color-mix(in srgb, var(--data-rose) 16%, transparent); color: var(--data-rose); }
.lp-ic--teal { background: color-mix(in srgb, var(--data-teal) 16%, transparent); color: var(--data-teal); }
.lp-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-feat-grid .lp-card { padding: 18px 20px; }
.lp-feat-grid .lp-ic { width: 40px; height: 40px; margin-bottom: 12px; }
.lp-feat-grid .lp-ic svg { width: 20px; height: 20px; }
.lp-feat-grid .lp-card__d { font-size: 14px; }
@media (max-width: 860px) { .lp-feat-grid { grid-template-columns: 1fr; } }
.lp-card__t { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.lp-card__d { font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.lp-persona__tag { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--text-brand); background: var(--brand-tint); border: 1px solid rgba(108,92,231,.14); padding: 4px 11px; border-radius: 999px; }
.lp-step__num { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-500); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; margin-bottom: 14px; box-shadow: 0 10px 22px -10px var(--brand-500); }
/* how: 3 step cards — narrower side padding */
#how .lp-grid-3 .lp-card { padding-left: 16px; padding-right: 16px; }
.lp-card__d code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--surface-hover); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 1px 6px; }
.lp-card__d a { color: var(--text-brand); font-weight: 600; }
.lp-card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--text-brand); }
.lp-card__link:hover { color: var(--brand-600); text-decoration: none; }
.lp-card__link svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .lp-grid-3 { grid-template-columns: 1fr; } }
.lp-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lp-card--row { display: flex; gap: 16px; align-items: flex-start; }
.lp-card--row .lp-ic { margin-bottom: 0; flex: 0 0 auto; }
/* privacy: 4 row-cards — shorter (less vertical padding) */
#privacy .lp-card--row { padding-top: 16px; padding-bottom: 16px; }
@media (max-width: 760px) { .lp-grid-2 { grid-template-columns: 1fr; } }

/* ---------- device frames ---------- */
.macwin { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: #fff; }
.macwin img { width: 100%; }

.browser { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: #1c1c1c; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: #2a2a2a; border-bottom: 1px solid #000; }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-bar .url {
  flex: 1; margin-left: 8px; background: #3a3a3a; color: #c8c8c8; font-size: 12px;
  padding: 5px 12px; border-radius: 999px; text-align: center; max-width: 360px;
}
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.browser img { width: 100%; display: block; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-brand); margin: 0 0 12px; }
h2.title { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; color: var(--text-primary); }
.section-head p { font-size: 17px; color: var(--text-secondary); margin: 0; }

/* ---------- stat strip ---------- */
.stats { background: var(--ink); color: #fff; padding: 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 40px 24px; text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.01em; }
.stat span { color: #9fb0cc; font-size: 14px; }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(odd) { border-left: none; } }

/* ---------- demo ---------- */
.demo { background: transparent; }
/* segmented control with a role sub-label (offline design) */
.lp-tabs {
  display: inline-flex; gap: 4px; margin-top: 20px;
  background: #F2F4FB; border: 1px solid var(--border-subtle);
  border-radius: 999px; padding: 4px;
}
.lp-tab {
  font: inherit; cursor: pointer; text-align: center;
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 8px 22px; border-radius: 999px; border: 0; background: transparent;
  color: var(--text-secondary); font-size: 14px; font-weight: 700;
  transition: background .16s, color .16s, box-shadow .16s;
}
.lp-tab__role { font-size: 11px; font-weight: 500; color: var(--text-secondary); opacity: .85; }
.lp-tab.active { background: #fff; color: var(--text-primary); box-shadow: var(--shadow-sm); }
.demo-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.demo-tab {
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--ink-soft);
}
.demo-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.demo-stage { max-width: 940px; margin: 0 auto; }
.demo-panel { display: none; }
.demo-panel.active { display: block; }
.demo-panel video { width: 100%; display: block; background: #1c1c1c; }
.demo-shot { width: 100%; display: block; border-radius: 16px; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-lg); }
.demo-cap { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ---------- features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature .ficon { width: 52px; height: 52px; margin-bottom: 18px; }
.feature h3 { font-size: 18px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 880px) { .features-grid { grid-template-columns: 1fr; } }

/* ---------- personas / who it's for ---------- */
.personas { background: var(--bg-subtle); }
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.persona-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; text-align: center;
}
.persona-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.persona-ic { font-size: 40px; line-height: 1; margin-bottom: 16px; }
.persona-card h3 { font-size: 19px; margin: 0 0 10px; }
.persona-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; }
.persona-tag { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--accent-weak); padding: 5px 12px; border-radius: 999px; }
@media (max-width: 880px) { .persona-grid { grid-template-columns: 1fr; } }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { text-align: left; }
.step .num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent-weak); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin: 0 0 8px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- showcase ---------- */
.showcase { background: transparent; }
.shot-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 34px; }
.shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shot-grid.single { grid-template-columns: 1fr; max-width: 920px; margin: 0 auto; }
.shot-card { cursor: zoom-in; }
.shot-card .cap { margin-top: 12px; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.shot-card .cap span { color: var(--muted); font-weight: 400; }
.shot-panel { display: none; }
.shot-panel.active { display: block; }
@media (max-width: 760px) { .shot-grid { grid-template-columns: 1fr; } }

.lp-cap { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; color: #9AA1B4; }
.lp-cap svg { width: 14px; height: 14px; }
/* showcase gallery (offline design) */
.showcase .lp-head-center { margin-bottom: 30px; }
.lp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-shot { position: relative; margin: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); aspect-ratio: 4/3; transition: transform .16s ease, box-shadow .16s ease; }
.lp-shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lp-shot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.lp-shot__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 9px; font-size: 12.5px; font-weight: 800; color: #fff; background: linear-gradient(to top, rgba(8,10,18,.72), transparent); }
.lp-shot__zoom { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 8px; background: rgba(0,0,0,.4); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.lp-shot:hover .lp-shot__zoom { opacity: 1; }
.lp-shot__zoom svg { width: 14px; height: 14px; }
@media (max-width: 880px) { .lp-gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- compare / vs hubstaff ---------- */
.cmp-card {
  max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; overflow-x: auto;
}
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.cmp th, .cmp td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.cmp thead th { font-size: 13px; font-weight: 700; color: var(--ink); background: var(--bg-subtle); white-space: nowrap; }
.cmp tbody td:first-child { color: var(--ink-soft); font-weight: 500; }
.cmp .cmp-us { background: var(--accent-weak); text-align: center; }
.cmp .cmp-them { text-align: center; color: var(--ink-soft); }
.cmp thead .cmp-us { color: var(--accent); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp .yes { color: var(--success); font-weight: 600; white-space: nowrap; }
.cmp .yes::before { content: "✓ "; font-weight: 700; }
.cmp .no { color: var(--muted); }
.cmp .no::before { content: "✕ "; }
.cmp-note { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- compare (offline lp-cmp) ---------- */
.lp-card.lp-cmp { max-width: 780px; margin: 0 auto; padding: 0; overflow: hidden; }
.lp-cmp table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lp-cmp th, .lp-cmp td { padding: 18px 20px; border-bottom: 1px solid var(--border-subtle); text-align: left; }
.lp-cmp tbody tr:last-child td { border-bottom: none; }
.lp-cmp thead th { font-size: 13px; font-weight: 800; color: var(--text-primary); }
.lp-cmp thead .col { text-align: center; }
.lp-cmp td.feat { font-weight: 600; color: var(--text-primary); }
.lp-cmp td.c { text-align: center; }
/* highlighted "BiBoTracking" column: white header, tinted body cells */
.lp-cmp__us-col { background: var(--us-col-tint); }
.lp-cmp thead .col.us { color: var(--text-brand); background: #FFFFFF; font-size: 15px; }
.lp-cmp__val { font-weight: 700; font-size: 14px; }
.lp-cmp__val--pos { color: var(--success); }
.lp-cmp__val--muted { color: var(--muted); }
.lp-yes, .lp-no { display: inline-flex; line-height: 0; }
.lp-yes { color: var(--success); }
.lp-no { color: var(--muted); }
.lp-yes svg, .lp-no svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .lp-cmp th, .lp-cmp td { padding: 11px 12px; } .lp-cmp table { font-size: 13.5px; } }

/* ---------- privacy ---------- */
.privacy { background: transparent; }
.priv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.priv {
  display: flex; gap: 14px; align-items: flex-start; padding: 22px;
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 16px; box-shadow: var(--shadow-sm);
}
.priv .pi { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--brand-tint); color: var(--text-brand); display: grid; place-items: center; }
.priv h3 { margin: 0 0 5px; font-size: 16px; color: var(--text-primary); }
.priv p { margin: 0; color: var(--text-secondary); font-size: 14px; }
.priv svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .priv-grid { grid-template-columns: 1fr; } }

/* ---------- pricing (offline) ---------- */
.lp-price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 760px; margin: 0 auto; }
@media (max-width: 760px) { .lp-price-grid { grid-template-columns: 1fr; } }
.lp-price { padding: 28px; position: relative; display: flex; flex-direction: column; }
.lp-price--focal { background: var(--focal-grad); color: #fff; border-color: var(--focal-border); box-shadow: var(--shadow-xl); }
.lp-price__name { font-size: 15px; font-weight: 800; color: var(--text-primary); }
.lp-price--focal .lp-price__name { color: #fff; }
.lp-price__amt { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 4px; }
.lp-price__num { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.lp-price__num--talk { font-size: 30px; line-height: 1.3; }
.lp-price__per { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.lp-price--focal .lp-price__per { color: rgba(255,255,255,.6); }
.lp-price__d { font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 18px; }
.lp-price--focal .lp-price__d { color: rgba(255,255,255,.7); }
.lp-price__list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 11px; }
.lp-price__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
.lp-price--focal .lp-price__list li { color: rgba(255,255,255,.85); }
.lp-price__list svg { width: 17px; height: 17px; color: var(--positive); flex: none; margin-top: 2px; }
.lp-price--focal .lp-price__list svg { color: var(--data-mint); }
.lp-price__badge { position: absolute; top: 18px; right: 18px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  background: var(--data-mint); color: #06281d; padding: 4px 10px; border-radius: 999px; }
.lp-price__ctas { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.lp-price__ctas .lp-btn { width: 100%; justify-content: center; }
.lp-price--focal .lp-btn--secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.lp-price--focal .lp-btn--secondary:hover { background: rgba(255,255,255,.2); }
.lp-pledge { max-width: 720px; margin: 24px auto 0; text-align: center; font-size: 14px; line-height: 1.55; color: var(--ink-soft);
  background: var(--accent-weak); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px; }
.lp-pledge strong { color: var(--accent); }

/* ---------- open source (offline) ---------- */
.lp-oss__foot { text-align: center; margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lp-oss__foot .lp-btn svg { width: 18px; height: 18px; }
.lp-oss__soon {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted);
  border: 1px dashed var(--border-default); border-radius: 999px; padding: 8px 18px; background: var(--surface-card);
}
.lp-oss__soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); display: inline-block; }

/* ---------- final cta (offline) ---------- */
.lp-finalcta { background: var(--focal-grad); border-radius: 26px; padding: 56px 40px; text-align: center; color: #fff; box-shadow: var(--shadow-xl); }
.lp-finalcta h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 10px; }
.lp-finalcta p { font-size: 16px; color: rgba(255,255,255,.72); margin: 0 auto 26px; max-width: 52ch; line-height: 1.6; }
.lp-finalcta__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lp-finalcta .lp-btn--ghost { color: #fff; }
.lp-finalcta .lp-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.lp-finalcta .lp-btn svg { width: 18px; height: 18px; }

/* ---------- footer (offline) ---------- */
.lp-footer { border-top: 1px solid var(--border-subtle); padding: 48px 0 36px; margin-top: 20px; }
.lp-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .lp-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .lp-footer__grid { grid-template-columns: 1fr; } }
.lp-footer__brand .lp-brand { margin-bottom: 4px; }
.lp-footer__tag { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; max-width: 30ch; margin: 14px 0 0; }
.lp-footer__col h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #9AA1B4; margin: 0 0 12px; }
.lp-footer__col a { display: block; font-size: 13.5px; color: var(--text-secondary); text-decoration: none; padding: 5px 0; }
.lp-footer__col a:hover { color: var(--text-brand); text-decoration: none; }
.lp-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--border-subtle); font-size: 12.5px; color: #9AA1B4; flex-wrap: wrap; }
.lp-footer__social { display: inline-flex; gap: 14px; }
.lp-footer__social a { color: var(--text-muted); display: inline-flex; transition: color .14s; }
.lp-footer__social a:hover { color: var(--text-brand); }
.lp-footer__social svg { width: 18px; height: 18px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(8,12,20,.86); display: none; align-items: center; justify-content: center; padding: 32px; z-index: 80; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 10px; box-shadow: var(--shadow-lg); }

/* ---------- windows install notice (SmartScreen) ---------- */
.winmodal { position: fixed; inset: 0; background: rgba(8,12,20,.6); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 90; backdrop-filter: blur(3px); }
.winmodal.open { display: flex; }
.winmodal-card { position: relative; background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 30px 30px 24px; }
.winmodal-x { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.winmodal-x:hover { background: var(--bg-subtle); color: var(--ink); }
.winmodal-title { margin: 0 0 10px; font-size: 21px; color: var(--ink); }
.winmodal-lede { margin: 0 0 18px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* faithful mock of the Windows SmartScreen dialog */
.ss-dialog { background: #f2f2f2; border: 1px solid #d9d9d9; border-radius: 6px; padding: 20px 22px; box-shadow: var(--shadow-sm); color: #1a1a1a; font-size: 13px; line-height: 1.5; }
.ss-title { font-size: 18px; font-weight: 600; color: #000; margin-bottom: 8px; }
.ss-body { margin: 0 0 12px; color: #303030; }
.ss-meta { margin: 0 0 4px; color: #303030; }
.ss-meta div { margin-bottom: 2px; }
.ss-moreinfo { display: inline-block; margin-bottom: 16px; color: #0066cc; text-decoration: underline; text-underline-offset: 2px; }
.ss-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ss-btn { display: inline-block; min-width: 96px; text-align: center; padding: 6px 14px; background: #e1e1e1; border: 1px solid #adadad; border-radius: 3px; color: #1a1a1a; }
.ss-run { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-weak); font-weight: 600; }

.winmodal-steps { list-style: none; margin: 20px 0 22px; padding: 0; display: grid; gap: 12px; }
.winmodal-steps li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.winmodal-steps .step-badge { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.winmodal-steps strong { color: var(--ink); }
.winmodal-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.winmodal-foot { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- reveal ----------
   Visible by default (no-JS, crawlers, SEO). Only hidden+animated once JS
   adds `.anim` to <html>, so content is never stuck invisible. */
html.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.anim .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- language switcher (i18n) — trigger shows current flag + language name ---- */
.lang-switcher{position:relative;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 11px;cursor:pointer;font-size:13px;font-weight:700;color:var(--text-secondary);border-radius:999px;border:1px solid var(--border-default);background:var(--control-bg);outline:none;transition:background .14s}
.lang-switcher:hover,.lang-switcher:focus-visible{background:var(--surface-hover)}
.lang-globe{width:15px;height:15px;flex-shrink:0}
.lang-label{white-space:nowrap}
.lang-caret{color:var(--text-secondary);transition:transform .15s ease}
.lang-switcher.open .lang-caret,.lang-switcher:focus-within .lang-caret{transform:rotate(180deg)}
.lang-switcher.open .lang-menu,.lang-switcher:focus-within .lang-menu{display:flex}
.lang-menu{display:none;position:absolute;top:44px;right:0;flex-direction:column;min-width:184px;background:var(--surface-card);border:1px solid var(--border-default);border-radius:16px;box-shadow:var(--shadow-lg);padding:6px;z-index:120}
.lang-opt{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;color:var(--text-secondary);text-decoration:none;font-size:13px;font-weight:600;white-space:nowrap}
.lang-opt:hover{background:var(--surface-hover);color:var(--text-primary);text-decoration:none}
.lang-opt .ck{margin-left:auto;width:15px;height:15px;opacity:0}
.lang-opt[aria-current="true"]{color:var(--text-brand);font-weight:700;background:var(--brand-tint)}
.lang-opt[aria-current="true"] .ck{opacity:1}
@media (max-width:560px){.lang-label{display:none}}
