/* ==========================================================================
   Blinklist ERP — public pages: landing "/" (body.lp) and sign-in (body.auth)
   Standalone documents: no AdminLTE bundle is loaded, so the reset below is
   safe. Light/dark surfaces are fixed per section; the site-wide ng-theme
   toggle does not apply here.
   ========================================================================== */

/* 1. Tokens =============================================================== */

:root {
  --blue-50:  #eef4ff;
  --blue-100: #dbe7ff;
  --blue-200: #bfd3ff;
  --blue-300: #93b4fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb; /* brand, matches the logo */
  --blue-700: #1d4ed8;
  --blue-800: #1e3a8a;

  --night:   #060b1a;
  --night-2: #0b1430;
  --night-3: #14204a;

  --ink:   #0b1020;   /* headings on light */
  --text:  #3a4256;   /* body on light, 9.6:1 on white */
  --soft:  #5d667b;   /* secondary on light, 5.8:1 on white */
  --hair:  #e5e9f2;
  --paper: #f5f7fc;
  --white: #fff;

  --on-night:      #ffffff;
  --on-night-soft: #b9c4e4; /* 10.4:1 on --night */

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  --f-body:    Geist, ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  --f-mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;

  --container: 1200px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Reset ================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 6px;
}
.is-dark :where(a, button, input, select, summary):focus-visible { outline-color: var(--blue-300); }
::selection { background: var(--blue-100); color: var(--blue-800); }

.skip {
  position: fixed; top: -100px; left: 16px; z-index: 300;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--white); color: var(--ink);
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(6, 11, 26, .25);
}
.skip:focus { top: 12px; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* 3. Buttons ============================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 15px; font-weight: 600;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px -8px rgba(37, 99, 235, .7);
}
.btn-primary:hover { background: var(--blue-700); }

.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--blue-50); }

.btn-ghost-dark { border-color: rgba(255, 255, 255, .22); color: var(--on-night); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }

.btn-ghost { border-color: var(--hair); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--blue-200); background: var(--blue-50); }

.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* 4. Brand mark =========================================================== */

.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 28px; object-fit: contain; }

.select-dark, .select-light {
  height: 38px;
  padding: 0 34px 0 14px;
  border-radius: var(--pill);
  font-size: 13.5px;
  appearance: none;
  -webkit-appearance: none;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  cursor: pointer;
}
.select-dark {
  border: 1px solid rgba(255, 255, 255, .18);
  background-color: rgba(255, 255, 255, .06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23b9c4e4' stroke-width='1.6'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  color: var(--on-night);
}
.select-dark option { color: var(--ink); }
.select-light {
  border: 1px solid var(--hair);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%235d667b' stroke-width='1.6'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
}
[dir="rtl"] .select-dark, [dir="rtl"] .select-light { padding: 0 14px 0 34px; background-position: left 12px center; }

/* ==========================================================================
   LANDING
   ========================================================================== */

/* 5. Floating navigation ================================================== */

.lp-nav {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 100;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.lp-nav .header-inner {
  pointer-events: auto;
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  height: 62px;
  padding-inline: 20px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--pill);
  background: rgba(9, 16, 38, .62);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  color: var(--on-night);
  transition: background .25s, box-shadow .25s;
}
.lp-nav[data-stuck="true"] .header-inner {
  background: rgba(9, 16, 38, .88);
  box-shadow: 0 18px 40px -18px rgba(6, 11, 26, .6);
}
.lp-nav .primary-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.lp-nav .primary-nav a:not(.btn) {
  padding: 8px 14px;
  border-radius: var(--pill);
  color: var(--on-night-soft);
  font-size: 14.5px; font-weight: 500;
  transition: color .2s, background .2s;
}
.lp-nav .primary-nav a:not(.btn):hover { color: var(--on-night); background: rgba(255, 255, 255, .07); }
.lp-nav .nav-cta { display: flex; align-items: center; gap: 6px; margin-inline-start: 8px; }

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  place-items: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--on-night);
  transition: transform .2s, background .2s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 6. Hero ================================================================= */

.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 0;
  background: var(--night);
  color: var(--on-night-soft);
  text-align: center;
  isolation: isolate;
}
.lp-hero::before { /* glow */
  content: "";
  position: absolute; z-index: -1;
  inset: -20% -10% auto;
  height: 900px;
  background:
    radial-gradient(40% 45% at 50% 30%, rgba(37, 99, 235, .55), transparent 70%),
    radial-gradient(25% 30% at 20% 10%, rgba(96, 165, 250, .25), transparent 70%),
    radial-gradient(25% 30% at 82% 18%, rgba(59, 130, 246, .3), transparent 70%);
  filter: blur(10px);
}
.lp-hero::after { /* grid */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 25%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 25%, #000 30%, transparent 80%);
}

.lp-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .04);
  color: var(--on-night-soft);
  font-size: 13.5px;
}
.lp-tag b {
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--blue-600);
  color: var(--white);
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em;
}

.lp-hero h1 {
  margin: 28px auto 0;
  max-width: 14ch;
  color: var(--on-night);
  font-size: clamp(44px, 7.6vw, 100px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -0.04em;
}
.lp-hero h1 .grad {
  background: linear-gradient(100deg, var(--blue-300) 0%, var(--blue-500) 45%, #c7d8ff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lp-hero-sub {
  max-width: 58ch;
  margin: 26px auto 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}
.lp-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.lp-hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  margin-top: 28px;
  color: #8e9bc2;
  font-size: 13.5px;
}
.lp-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.lp-hero-meta svg { color: var(--blue-400); }

/* 6a. Hero film ---------------------------------------------------------- */
/* Desktop: footage on the left, caption in a side column, so the film reads
   wide and short. Below 900px it falls back to the stacked player. */

.lp-hero { padding-bottom: 96px; }
.hero-film {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: calc(var(--r-lg) + 10px);
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 40px 140px -30px rgba(37, 99, 235, .6);
  text-align: start;
}
.hero-film .player { display: grid; grid-template-columns: minmax(0, 1fr) 330px; box-shadow: none; }
.hero-film .player-stage { aspect-ratio: 16 / 10; }
.hero-film .player-caption {
  display: flex; flex-direction: column;
  padding: 30px 26px;
  border-inline-start: 1px solid rgba(255, 255, 255, .08);
}
.hero-film .player-headline { font-size: 28px; margin-top: 12px; }
.hero-film .player-text { margin-top: 10px; }
.hero-film .player-controls { margin-top: auto; padding-top: 24px; flex-wrap: wrap; }
.hero-film .player-scene-label { display: none; }
.hero-film-note { max-width: 70ch; margin: 18px auto 72px; color: #7f8cb5; font-size: 12.5px; }

/* 6b. Dashboard illustration -------------------------------------------- */

.mock {
  position: relative;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .05);
  text-align: start;
}
.mock-win {
  overflow: hidden;
  border-radius: 13px;
  background: var(--white);
  color: var(--text);
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6dbe7; }
.mock-url {
  margin-inline: auto;
  padding: 3px 14px;
  border-radius: var(--pill);
  background: var(--white);
  border: 1px solid var(--hair);
  color: var(--soft);
  font-family: var(--f-mono); font-size: 11px;
}
.mock-body { display: grid; grid-template-columns: 170px 1fr; }
.mock-side { padding: 18px 14px; border-inline-end: 1px solid var(--hair); background: #fbfcfe; }
.mock-side .m-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: 14px; }
.mock-side .m-logo span { width: 22px; height: 22px; border-radius: 7px; background: var(--blue-600); }
.mock-side li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin-bottom: 2px;
  border-radius: 8px;
  color: var(--soft); font-size: 13px;
}
.mock-side li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: #e3e8f2; }
.mock-side li.on { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.mock-side li.on::before { background: var(--blue-600); }

.mock-main { padding: 22px; background: var(--white); }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mock-head strong { font-family: var(--f-display); color: var(--ink); font-size: 18px; letter-spacing: -.02em; }
.mock-head em { font-style: normal; color: var(--soft); font-size: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mock-kpi { padding: 14px; border: 1px solid var(--hair); border-radius: 12px; }
.mock-kpi small { display: block; color: var(--soft); font-size: 11.5px; }
.mock-kpi b { display: block; margin-top: 4px; color: var(--ink); font-family: var(--f-display); font-size: 22px; letter-spacing: -.03em; }
.mock-kpi .up { color: #15803d; font-size: 11px; font-weight: 600; }
.mock-kpi.hl { background: var(--blue-600); border-color: var(--blue-600); }
.mock-kpi.hl small, .mock-kpi.hl .up { color: var(--blue-100); }
.mock-kpi.hl b { color: var(--white); }

.mock-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 12px; }
.mock-card { padding: 16px; border: 1px solid var(--hair); border-radius: 12px; }
.mock-card > small { color: var(--soft); font-size: 12px; font-weight: 600; }
.mock-bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 14px; }
.mock-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(to top, var(--blue-200), var(--blue-100));
}
.mock-bars i.on { background: linear-gradient(to top, var(--blue-700), var(--blue-500)); }
.mock-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--hair);
  font-size: 12.5px; color: var(--text);
}
.mock-list li:last-child { border-bottom: 0; }
.mock-list .chip { padding: 2px 8px; border-radius: var(--pill); font-size: 10.5px; font-weight: 600; background: #dcfce7; color: #166534; }
.mock-list .chip.wait { background: var(--blue-50); color: var(--blue-700); }

/* 7. Marquee ============================================================== */

.lp-strip { padding: 34px 0; border-bottom: 1px solid var(--hair); overflow: hidden; }
.lp-strip p { text-align: center; color: var(--soft); margin-bottom: 20px; }
.marquee {
  display: flex;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee ul { display: flex; flex: none; gap: 14px; padding-inline-end: 14px; animation: marquee 38s linear infinite; }
.marquee li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--hair);
  border-radius: var(--pill);
  color: var(--ink);
  font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  white-space: nowrap;
}
.marquee li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-600); }
@keyframes marquee { to { transform: translateX(-100%); } }
[dir="rtl"] .marquee ul { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(100%); } }

/* 8. Section heads ======================================================== */

.lp-sec { padding: 120px 0; }
.lp-sec--paper { background: var(--paper); }
.sec-label { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-600); }
.sec-label::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.sec-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { margin-top: 16px; font-size: clamp(34px, 4.6vw, 60px); }
.sec-head p { color: var(--soft); font-size: 17px; max-width: 44ch; justify-self: end; }

/* 9. Bento ================================================================ */

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  background: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(11, 20, 48, .25); }
.tile-4 { grid-column: span 4; }
.tile-3 { grid-column: span 3; }
.tile-2 { grid-column: span 2; }
.tile-6 { grid-column: span 6; }
.tile .mono { color: var(--blue-600); }
.tile h3 { margin-top: 10px; font-size: 26px; letter-spacing: -.03em; }
.tile p { margin-top: 8px; color: var(--soft); font-size: 15px; max-width: 40ch; }
.tile-vis { margin-top: auto; padding-top: 28px; }

.tile-split { flex-direction: row; gap: 28px; align-items: stretch; }
.tile-split > div:first-child { flex: 1; display: flex; flex-direction: column; }
.receipt {
  flex: none;
  width: 230px;
  padding: 18px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--hair);
  font-family: var(--f-mono); font-size: 12px; color: var(--text);
  transform: rotate(2deg);
}
.receipt hr { border: 0; border-top: 1px dashed #c9d0de; margin: 10px 0; }
.receipt div { display: flex; justify-content: space-between; padding: 3px 0; }
.receipt .tot { color: var(--ink); font-weight: 600; font-size: 13px; }
.receipt .paid { margin-top: 12px; padding: 7px; border-radius: 8px; background: var(--blue-600); color: var(--white); text-align: center; letter-spacing: .1em; }

.stock li { display: grid; grid-template-columns: 90px 1fr 34px; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.stock span { height: 8px; border-radius: var(--pill); background: var(--blue-50); overflow: hidden; }
.stock span i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--blue-600); }
.stock span i.low { background: #f59e0b; }
.stock b { font-family: var(--f-mono); font-size: 12px; font-weight: 500; text-align: end; color: var(--ink); }

.ledger li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.ledger li:last-child { border: 0; }
.ledger b { font-family: var(--f-mono); font-weight: 500; }
.ledger .in { color: #15803d; }
.ledger .out { color: #b42318; }

.faces { display: flex; align-items: center; }
.faces span {
  width: 40px; height: 40px;
  margin-inline-end: -10px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--c);
  display: grid; place-items: center;
  color: var(--white); font-size: 13px; font-weight: 600;
}
.faces em { margin-inline-start: 22px; font-style: normal; color: var(--soft); font-size: 13.5px; }
.faces em b { display: block; color: var(--ink); font-family: var(--f-display); font-size: 26px; letter-spacing: -.03em; }

.chat p {
  max-width: 85%;
  margin-top: 8px;
  padding: 9px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--paper);
  color: var(--text);
  font-size: 13.5px;
}
.chat p.me { margin-inline-start: auto; border-radius: 16px 16px 4px 16px; background: var(--blue-600); color: var(--white); }

.tile-dark { background: var(--night-2); border-color: var(--night-2); color: var(--on-night-soft); }
.tile-dark h3 { color: var(--on-night); }
.tile-dark p { color: var(--on-night-soft); }
.tile-dark .mono { color: var(--blue-300); }
.tile-dark::after {
  content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .5), transparent);
  pointer-events: none;
}
.more { display: flex; flex-wrap: wrap; gap: 10px; }
.more li {
  position: relative; z-index: 1;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .05);
  color: var(--on-night);
  font-size: 14px;
}
.tile-dark-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.tile-dark-row > div:first-child { flex: 0 1 380px; }

/* 10. Day section ========================================================= */

.day { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.day-copy h2 { margin-top: 16px; font-size: clamp(34px, 4.2vw, 54px); }
.day-copy > p { margin-top: 20px; color: var(--soft); font-size: 17px; }
.timeline { margin-top: 40px; border-inline-start: 1px solid var(--hair); }
.timeline li {
  position: relative;
  display: grid; grid-template-columns: 84px 1fr; gap: 12px;
  padding: 10px 0 10px 24px;
  font-size: 15px; color: var(--ink);
}
[dir="rtl"] .timeline li { padding: 10px 24px 10px 0; }
.timeline li::before {
  content: ""; position: absolute; top: 18px; inset-inline-start: -5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue-600);
}
.timeline time { color: var(--soft); font-family: var(--f-mono); font-size: 13px; padding-top: 1px; }
.day-media {
  position: sticky; top: 100px;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(37, 99, 235, .55), transparent 70%),
    var(--night);
}
.day-media .mock-kpis { grid-template-columns: repeat(2, 1fr); }
.day-media .mock-row { grid-template-columns: 1fr; }
.day-media .mock-bars { height: 110px; }

/* 11. Scene player ======================================================== */
/* Two stacked <video> elements crossfade (js/scene-player.js). The caption
   sits on its own solid panel, never on top of moving footage. */

.player {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--night-2);
  box-shadow: 0 40px 80px -40px rgba(11, 20, 48, .55);
}
.player-stage { position: relative; aspect-ratio: 3 / 2; background: var(--night-2); overflow: hidden; }
.player-stage > img, .player-stage > video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
.player-stage > video { opacity: 0; transition: opacity .7s ease-in-out; }
.player[data-state="playing"] .player-stage > video.is-active,
.player[data-state="paused"]  .player-stage > video.is-active { opacity: 1; }

.player-topbar { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; pointer-events: none; }
.player-count {
  padding: 5px 12px;
  border-radius: var(--pill);
  background: rgba(6, 11, 26, .66);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--on-night);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.player-bigplay {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  background: rgba(6, 11, 26, .28);
  color: var(--white);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.player[data-state="paused"] .player-bigplay,
.player[data-state="idle"]   .player-bigplay { opacity: 1; pointer-events: auto; }
.player-bigplay span {
  display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
  padding-inline-start: 5px;
  background: var(--blue-600);
  box-shadow: 0 0 0 10px rgba(37, 99, 235, .25);
  font-size: 22px;
}
.player-progress { position: absolute; inset: auto 0 0; z-index: 2; height: 3px; background: rgba(255, 255, 255, .2); }
.player-progress i { display: block; width: 0; height: 100%; background: var(--blue-400); }

.player-caption { padding: 24px 26px 22px; color: var(--on-night); }
.player-time { color: var(--blue-300); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; }
.player-headline { margin-top: 8px; font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.03em; line-height: 1.15; }
.player-text { margin-top: 6px; color: var(--on-night-soft); font-size: 14.5px; max-width: 54ch; }
.player-controls { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.player-btn {
  display: inline-grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .08);
  color: var(--on-night);
  font-size: 13px; font-weight: 600;
  transition: background .2s;
}
.player-btn:hover { background: rgba(255, 255, 255, .16); }
.player-toggle { padding: 0 18px; background: var(--white); color: var(--ink); }
.player-toggle:hover { background: var(--blue-100); }
.player-scene-label { margin-inline-start: auto; color: var(--on-night-soft); font-size: 13px; }
.player-dots { display: flex; gap: 6px; margin-top: 16px; }
.player-dots li { flex: 1; }
.player-dots button {
  width: 100%; height: 22px;
  position: relative;
  color: transparent; font-size: 0;
}
.player-dots button::after {
  content: ""; position: absolute; inset: 9px 0;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .2);
  transition: background .2s;
}
.player-dots button:hover::after { background: rgba(255, 255, 255, .45); }
.player-dots button[aria-pressed="true"]::after { background: var(--blue-400); }
.player-error {
  display: none;
  margin-top: 14px; padding: 10px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .07);
  color: var(--on-night-soft); font-size: 13px;
}
.player[data-state="error"] .player-error { display: block; }

/* 12. Stats band ========================================================== */

.lp-stats {
  position: relative; overflow: hidden;
  background: var(--blue-600);
  color: var(--white);
}
.lp-stats::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 0% 0%, rgba(255, 255, 255, .18), transparent 60%),
              radial-gradient(50% 120% at 100% 100%, rgba(30, 58, 138, .6), transparent 60%);
}
.lp-stats ul { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.lp-stats li { padding: 64px 28px; border-inline-start: 1px solid rgba(255, 255, 255, .2); }
.lp-stats li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.lp-stats b { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 5vw, 68px); letter-spacing: -.05em; line-height: 1; }
.lp-stats span { display: block; margin-top: 12px; color: var(--blue-100); font-size: 15px; }

/* 13. FAQ ================================================================= */

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 72px; }
.faq h2 { margin-top: 16px; font-size: clamp(34px, 4.2vw, 54px); }
.faq-intro p { margin-top: 18px; color: var(--soft); }
.faq-intro a { color: var(--blue-600); font-weight: 600; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-child { border-top: 1px solid var(--hair); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0;
  cursor: pointer; list-style: none;
  color: var(--ink);
  font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper);
  color: var(--blue-600); font-family: var(--f-body); font-size: 20px; font-weight: 400;
  transition: transform .25s var(--ease), background .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue-50); }
.faq details p { padding: 0 54px 24px 0; color: var(--soft); }

/* 14. Closing CTA ========================================================= */

.lp-final { padding: 0 0 24px; }
.final {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 110px 32px;
  border-radius: var(--r-xl);
  background: var(--night);
  color: var(--on-night-soft);
  text-align: center;
}
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 70% at 50% 110%, rgba(37, 99, 235, .75), transparent 70%),
              radial-gradient(30% 40% at 50% 0%, rgba(96, 165, 250, .18), transparent 70%);
}
.final h2 { max-width: 16ch; margin-inline: auto; color: var(--on-night); font-size: clamp(36px, 6vw, 76px); letter-spacing: -.04em; }
.final p { max-width: 48ch; margin: 22px auto 0; font-size: 17px; }
.final .lp-hero-cta { margin-top: 34px; }

/* 15. Footer ============================================================== */

.lp-footer { padding: 72px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-grid > div > p { margin-top: 14px; max-width: 32ch; color: var(--soft); font-size: 14.5px; }
.foot-grid h4 { margin-bottom: 14px; color: var(--ink); font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.foot-grid ul li { margin-bottom: 10px; }
.foot-grid ul a { color: var(--soft); font-size: 14.5px; }
.foot-grid ul a:hover { color: var(--blue-600); }
.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--hair);
  color: var(--soft); font-size: 13.5px;
}

/* ==========================================================================
   SIGN IN
   ========================================================================== */

/* 16. Stage =============================================================== */

body.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--night);
  color: var(--on-night-soft);
  isolation: isolate;
}
body.auth::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(45% 55% at 50% 45%, rgba(37, 99, 235, .45), transparent 70%),
    radial-gradient(30% 40% at 10% 90%, rgba(96, 165, 250, .18), transparent 70%),
    radial-gradient(30% 40% at 90% 10%, rgba(59, 130, 246, .22), transparent 70%);
}
body.auth::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 85%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 85%);
}

.auth-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px;
  color: var(--on-night);
}
.auth-top nav { display: flex; align-items: center; gap: 10px; }
.auth-top nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--pill);
  color: var(--on-night-soft); font-size: 14px;
}
.auth-top nav a:hover { color: var(--on-night); background: rgba(255, 255, 255, .07); }

.auth-stage {
  position: relative;
  display: grid; place-items: center;
  padding-block: 24px 48px;
}

/* 16b. Floating activity cards (decorative) ----------------------------- */

.float {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  width: 250px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-md);
  background: rgba(16, 26, 60, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
  color: var(--on-night);
  font-size: 13.5px; line-height: 1.35;
  animation: bob 7s ease-in-out infinite;
}
.float small { display: block; color: var(--on-night-soft); font-size: 12px; }
.float .ic {
  flex: none;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--blue-600); color: var(--white);
}
.float .ic.green { background: #16a34a; }
.float .ic.amber { background: #d97706; }
.f1 { top: 12%;  inset-inline-start: 2%; }
.f2 { bottom: 16%; inset-inline-start: 6%; animation-delay: -2s; }
.f3 { top: 18%;  inset-inline-end: 3%; animation-delay: -4s; }
.f4 { bottom: 12%; inset-inline-end: 1%; animation-delay: -5.5s; flex-direction: column; align-items: stretch; }
.f4 .spark { display: flex; align-items: flex-end; gap: 5px; height: 44px; margin-top: 10px; }
.f4 .spark i { flex: 1; height: var(--h); border-radius: 3px; background: var(--blue-500); opacity: .55; }
.f4 .spark i:last-child { opacity: 1; background: var(--blue-300); }
.f4 b { color: #4ade80; font-weight: 600; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* 16c. Card -------------------------------------------------------------- */

.auth-card {
  position: relative; z-index: 1;
  width: min(468px, 100%);
  padding: 44px 40px 36px;
  border-radius: var(--r-xl);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 100px -30px rgba(0, 0, 0, .7), 0 0 120px -20px rgba(37, 99, 235, .45);
}
.auth-mark {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 22px;
  border-radius: 18px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.auth-mark img { width: 32px; height: 26px; object-fit: contain; }
.auth-card h1 { text-align: center; font-size: 34px; letter-spacing: -.04em; }
.auth-sub { margin-top: 8px; text-align: center; color: var(--soft); font-size: 15px; }

.auth-alert {
  margin-top: 22px; padding: 12px 14px;
  border-radius: var(--r-sm);
  background: #fef3f2; color: #912018;
  font-size: 14px;
}
.auth-alert.is-ok { background: var(--blue-50); color: var(--blue-800); }

.auth-form { margin-top: 28px; }
.fld { margin-bottom: 16px; }
.fld label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 600; }
.fld-input { position: relative; }
.fld-input > svg {
  position: absolute; top: 50%; inset-inline-start: 16px;
  transform: translateY(-50%);
  color: #8a93a8;
  pointer-events: none;
}
.fld input[type="text"], .fld input[type="password"] {
  width: 100%; height: 52px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
[dir="rtl"] .fld input[type="text"], [dir="rtl"] .fld input[type="password"] { padding: 0 46px 0 16px; }
.fld input::placeholder { color: #8a93a8; }
.fld input:hover { border-color: #cdd4e2; }
.fld input:focus { outline: none; border-color: var(--blue-600); background: var(--white); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.fld input:focus + svg, .fld-input:focus-within > svg { color: var(--blue-600); }
.fld.has-error input { border-color: #d92d20; background: #fffbfa; }
.fld-err { display: block; margin-top: 7px; color: #b42318; font-size: 13px; }
.fld-err strong { font-weight: 500; }

.fld-input .eye {
  position: absolute; top: 50%; inset-inline-end: 8px;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  color: #6b7489;
}
.fld-input .eye:hover { background: var(--blue-50); color: var(--blue-600); }
.eye .eye-off, .eye[aria-pressed="true"] .eye-on { display: none; }
.eye[aria-pressed="true"] .eye-off { display: block; }
.fld input#password { padding-inline-end: 52px; }

.sessions { margin-top: 10px; border: 1px solid var(--hair); border-radius: var(--r-sm); overflow: hidden; }
.sessions div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; font-size: 12.5px; }
.sessions div + div { border-top: 1px solid var(--hair); }
.sessions span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--soft); }
.sessions a { flex: none; color: #b42318; font-weight: 600; }

.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 20px; font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: var(--text); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue-600); }
.auth-row a { color: var(--blue-600); font-weight: 600; }
.auth-row a:hover { text-decoration: underline; text-underline-offset: 3px; }

.captcha { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }

.auth-alt { margin-top: 24px; text-align: center; color: var(--soft); font-size: 14.5px; }
.auth-alt a { color: var(--blue-600); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-alt + .auth-alt { margin-top: 6px; }

.demo { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--hair); }
.demo summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; color: var(--ink); font-weight: 600; font-size: 14px; }
.demo summary::-webkit-details-marker { display: none; }
.demo summary small { color: var(--soft); font-weight: 400; }
.demo h4 { margin: 14px 0 8px; color: var(--soft); font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.demo-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-login {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--hair);
  border-radius: var(--pill);
  color: var(--ink); font-size: 13px; font-weight: 500;
  transition: border-color .2s, background .2s;
}
.demo-login::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.demo-login:hover { border-color: var(--blue-200); background: var(--blue-50); }

.auth-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #8e9bc2; font-size: 13.5px;
}
.auth-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.auth-foot a:hover { color: var(--on-night); }

/* 17. Responsive ========================================================== */

@media (max-width: 1240px) {
  .float { display: none; }
}

@media (max-width: 1080px) {
  .lp-nav .primary-nav a.hide-md { display: none; }
  .tile-4, .tile-3 { grid-column: span 6; }
  .tile-2 { grid-column: span 3; }
  .day { grid-template-columns: 1fr; gap: 48px; }
  .day-media { position: static; }
  .lp-stats ul { grid-template-columns: repeat(2, 1fr); }
  .lp-stats li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .lp-stats li { padding: 44px 28px; }
  .lp-stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .2); }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .lp-nav { padding-inline: 12px; inset-block-start: 10px; }
  .nav-toggle { display: grid; }
  .lp-nav .primary-nav {
    display: none;
    position: absolute; top: calc(100% + 8px); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--r-lg);
    background: rgba(9, 16, 38, .97);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7);
  }
  .lp-nav .primary-nav.is-open { display: flex; }
  .lp-nav .primary-nav a.hide-md { display: block; }
  .lp-nav .primary-nav a:not(.btn) { padding: 12px 14px; }
  .lp-nav .nav-cta { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .lp-nav .nav-cta .btn { flex: 1; }

  .lp-hero { padding: 88px 0 64px; }
  .hero-film-note { margin-bottom: 48px; }
  .hero-film { padding: 6px; border-radius: calc(var(--r-lg) + 6px); }
  .hero-film .player { display: block; }
  .hero-film .player-stage { aspect-ratio: 3 / 2; }
  .hero-film .player-caption { border: 0; padding: 20px; }
  .hero-film .player-headline { font-size: 22px; }
  .day-media { padding: 14px; border-radius: var(--r-lg); }
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-side { display: none; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
  .mock-row { grid-template-columns: 1fr; }
  .mock-row .mock-card:last-child { display: none; }

  .lp-sec { padding: 80px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .sec-head p { justify-self: start; }
  .tile-split { flex-direction: column; }
  .receipt { width: 100%; max-width: 280px; transform: none; }
  .tile-dark-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .final { padding: 72px 24px; }
}

@media (max-width: 620px) {
  .tile-2 { grid-column: span 6; }
  .tile { padding: 24px; }
  .lp-hero-cta .btn { width: 100%; }
  .lp-stats ul { grid-template-columns: 1fr; }
  .lp-stats li, .lp-stats li:nth-child(3) { padding: 32px 0; border-inline-start: 0; }
  .lp-stats li + li { border-top: 1px solid rgba(255, 255, 255, .2); }
  .faq details p { padding-inline-end: 0; }
  .timeline li { grid-template-columns: 72px 1fr; }
  .player-scene-label { display: none; }
  .player-caption { padding: 20px; }

  .auth-top .back { display: none; }
  .auth-top nav { gap: 2px; }
  .auth-top .select-dark { max-width: 128px; }
  .auth-stage { place-items: start center; }
  .auth-card { padding: 32px 20px 28px; border-radius: var(--r-lg); }
  .auth-card h1 { font-size: 28px; }
  .auth-stage { padding-block: 8px 32px; }
}

/* 18. Motion & print ====================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .marquee { flex-wrap: wrap; justify-content: center; mask-image: none; -webkit-mask-image: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
  .marquee ul[aria-hidden] { display: none; }
}
@media (forced-colors: active) {
  .btn, .player-btn, .nav-toggle { border: 1px solid ButtonBorder; }
}
@media print {
  .lp-nav, .player, .float, .skip { display: none !important; }
  body, body.auth { background: #fff; color: #000; }
}
