/* BussinesHub — corporate productivity design system
 * Palette: navy/electric-blue/slate. Inter typeface. Stripe-meets-Linear vibe.
 * No pastel, no rounded-extra-soft. Decisive, clean, B2B.
 */

:root {
  --navy:        #0F172A;
  --navy-soft:   #1E293B;
  --slate:       #475569;
  --slate-light: #64748B;
  --border:      #E2E8F0;
  --border-soft: #F1F5F9;
  --ivory:       #F8FAFC;
  --white:       #FFFFFF;
  --blue:        #2563EB;
  --blue-hover:  #1D4ED8;
  --blue-soft:   #DBEAFE;
  --sky:         #38BDF8;
  --emerald:     #16A34A;
  --emerald-soft:#DCFCE7;
  --amber:       #F59E0B;
  --amber-soft:  #FEF3C7;
  --red:         #DC2626;
  --red-soft:    #FEE2E2;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow:    0 1px 3px rgba(15, 23, 42, .08), 0 4px 12px rgba(15, 23, 42, .04);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  background: var(--ivory);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  line-height: 1.2;
  font-family: var(--font);
}
.btn-primary {
  background: var(--blue); color: var(--white);
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
  background: var(--white); color: var(--navy);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--ivory); border-color: var(--slate-light); }
.btn-ghost {
  background: transparent; color: var(--slate);
}
.btn-ghost:hover { color: var(--navy); background: var(--border-soft); }
.btn-danger {
  background: var(--red); color: var(--white);
}
.btn-danger:hover { background: #B91C1C; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* Knoptekst vastzetten tegen de generieke a:hover-regel.
 * `a:hover { color: var(--blue-hover) }` heeft specificiteit (0,1,1) en wint
 * daarmee van `.btn-primary` (0,1,0). Gevolg: een primaire knop die een <a> is
 * kreeg bij hover donkerblauwe tekst op een donkerblauwe achtergrond — onleesbaar.
 * Deze regels zetten de kleur per variant expliciet, ook in de hover-staat. */
a.btn, a.btn:hover, a.btn:focus, a.btn:active { text-decoration: none; }
.btn-primary, a.btn-primary, a.btn-primary:hover, a.btn-primary:focus,
.btn-primary:hover, .btn-primary:focus { color: var(--white); }
.btn-secondary, a.btn-secondary, a.btn-secondary:hover, a.btn-secondary:focus,
.btn-secondary:hover, .btn-secondary:focus { color: var(--navy); }
.btn-ghost, a.btn-ghost, a.btn-ghost:hover, .btn-ghost:hover { color: var(--slate); }
.btn-ghost:hover, a.btn-ghost:hover { color: var(--navy); }
.btn-danger, a.btn-danger, a.btn-danger:hover, .btn-danger:hover { color: var(--white); }

/* Zichtbare focus voor toetsenbordgebruik — hover alleen is niet genoeg. */
.btn:focus-visible, a.btn:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

/* ─── Forms ─── */
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  background: var(--white);
  color: var(--navy);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 6px;
}
.field { margin-bottom: 16px; }

/* ─── Cards ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 16px; font-weight: 700; margin: 0; color: var(--navy); }

/* ─── Badges/Pills ─── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--border-soft);
  color: var(--slate);
}
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-emerald { background: var(--emerald-soft); color: var(--emerald); }
.badge-amber { background: var(--amber-soft); color: #B45309; }
.badge-red { background: var(--red-soft); color: var(--red); }

/* ─── Landing page ─── */
.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.lp-nav .nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.lp-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: var(--navy);
}
.lp-brand .brand-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 800;
  font-size: 14px;
  letter-spacing: -.5px;
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  color: var(--slate); font-size: 14px; font-weight: 500;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta-group {
  display: inline-flex; align-items: center; gap: 10px;
}
.nav-login-btn i { font-size: 12px; }

.hero {
  padding: 96px 0 64px;
  background: radial-gradient(ellipse at top, rgba(37, 99, 235, .08), transparent 60%);
}
.hero h1 {
  font-size: 52px; line-height: 1.05; font-weight: 800;
  letter-spacing: -1.2px;
  margin: 0 0 20px;
  color: var(--navy);
  max-width: 780px;
}
.hero h1 .accent { color: var(--blue); }
.hero p.lead {
  font-size: 20px; color: var(--slate);
  max-width: 640px;
  margin: 0 0 32px;
  line-height: 1.5;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 24px; margin-top: 28px;
  color: var(--slate-light); font-size: 13px;
}
.hero-meta span i { color: var(--emerald); margin-right: 6px; }

.section { padding: 80px 0; }
.section-title {
  font-size: 36px; font-weight: 800; letter-spacing: -.8px;
  margin: 0 0 16px;
}
.section-lead {
  font-size: 18px; color: var(--slate); max-width: 620px;
  margin: 0 0 48px;
}

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-soft); }
.feature-icon {
  width: 44px; height: 44px;
  background: var(--blue-soft); color: var(--blue);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.feature-card p { margin: 0; color: var(--slate); font-size: 14px; line-height: 1.6; }

.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 20px; right: 24px;
  font-size: 36px; font-weight: 800;
  color: var(--blue-soft);
  letter-spacing: -1px;
  line-height: 1;
}
.step h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.step p { margin: 0; color: var(--slate); font-size: 14px; line-height: 1.5; }

/* ─── Pricing ─── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
  transform: scale(1.02);
}
.price-card .price-badge {
  position: absolute; top: -12px; right: 24px;
  background: var(--blue); color: var(--white);
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.price-card h3 { margin: 0 0 8px; font-size: 18px; }
.price-card .price-amount {
  font-size: 40px; font-weight: 800; letter-spacing: -1px;
  margin: 12px 0 4px;
}
.price-card .price-amount .currency { font-size: 22px; vertical-align: top; font-weight: 700; }
.price-card .price-amount .period { font-size: 14px; color: var(--slate); font-weight: 500; }
.price-card .price-desc { color: var(--slate); font-size: 14px; margin-bottom: 24px; }
.price-card ul {
  list-style: none; padding: 0; margin: 0 0 28px;
  flex-grow: 1;
}
.price-card ul li {
  padding: 8px 0;
  font-size: 14px; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.price-card ul li::before {
  content: '✓';
  color: var(--emerald); font-weight: 800;
  width: 18px; height: 18px;
  background: var(--emerald-soft);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* ─── FAQ ─── */
.faq-list { max-width: 760px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--slate); }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body { padding: 0 24px 18px; color: var(--slate); font-size: 14px; line-height: 1.6; }

/* ─── Footer ─── */
.lp-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .7);
  padding: 64px 0 32px;
  margin-top: 64px;
}
.lp-footer h5 { color: var(--white); font-size: 14px; font-weight: 700; margin: 0 0 16px; }
.lp-footer a { color: rgba(255, 255, 255, .7); font-size: 14px; }
.lp-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand-mark {
  background: linear-gradient(135deg, var(--sky) 0%, var(--blue) 100%);
}
.footer-brand p { font-size: 14px; line-height: 1.5; margin: 12px 0 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}

@media (max-width: 720px) {
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 36px; }
  .hero p.lead { font-size: 17px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .lp-nav .nav-wrap { gap: 10px; }
  .lp-nav .btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
  .nav-cta-group { gap: 6px; }
  .nav-login-btn { padding: 8px 10px; font-size: 13px; }
  .nav-login-btn i { display: none; }
  .nav-invite-link { display: none; }
  .auth-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 4px; }
  .auth-tab { flex: 0 0 auto; font-size: 13px; padding: 8px 12px; white-space: nowrap; }
}

@media (max-width: 440px) {
  /* heel smal: kort het hoofd-CTA-label in zodat beide knoppen netjes naast elkaar passen */
  #lpCtaStart::after { content: 'Start trial'; }
  #lpCtaStart { font-size: 0; }
  #lpCtaStart::after { font-size: 13px; }
}


/* === Scanner / Inventory upgrade — v7 ============================== */
.scan-dir {
  display: inline-flex;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
}
.scan-dir-btn {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.scan-dir-btn.active { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }
.scan-mode-hint { color: var(--slate-light); margin-bottom: 16px; }

.scan-modes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.scan-mode {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: all .15s;
}
.scan-mode:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-1px); }
.scan-mode strong { font-size: 15px; color: var(--navy); }
.scan-mode small { font-size: 12px; color: var(--slate-light); }
.scan-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 4px;
}
.scan-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: var(--white);
  border: 0;
  margin-bottom: 12px;
}
.scan-hero strong { color: var(--white); font-size: 16px; }
.scan-hero small { color: rgba(255,255,255,.75); }
.scan-hero .scan-hero-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,.15); color: #fff;
  display: flex; align-items: center; justify-content: center; border-radius: 10px;
  font-size: 20px;
}
.scan-hero .scan-hero-badge {
  position: absolute; top: -8px; right: 12px;
  background: var(--amber); color: var(--navy);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.scan-hero { position: relative; }
.scan-hero .scan-hero-arrow { color: rgba(255,255,255,.85); }
.scan-hero:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.snelscan-list {
  display: flex; flex-direction: column; gap: 4px;
}
.snelscan-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}

.empty.mini { padding: 16px; font-size: 14px; }

/* Inventory upgrade */
.inv-thumb {
  width: 40px; height: 40px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border);
}
.inv-thumb-ph {
  width: 40px; height: 40px;
  background: var(--ivory); border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-light); font-size: 18px;
}
.inv-preview { max-width: 200px; max-height: 200px; border-radius: 8px; }
.small-muted { color: var(--slate-light); font-size: 12px; margin-top: 2px; }
.qty { font-weight: 600; }
.qty-low { font-weight: 700; color: var(--red); }
.mono-tag {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 12px;
  background: var(--ivory);
  padding: 2px 6px;
  border-radius: 4px;
}
.alert-warn {
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
}
.alert-warn i { color: var(--amber); margin-right: 6px; }
.search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.search-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

/* Camera modal */
.cam-modal-card { max-width: 560px; width: 92vw; }
.cam-stage {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
#camVideo { width: 100%; height: 100%; object-fit: cover; }
.cam-reticle {
  position: absolute; top: 50%; left: 50%;
  width: 75%; height: 35%;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(56,189,248,.85);
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.35);
  pointer-events: none;
}
.cam-hint {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.65); color: #fff; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; white-space: nowrap; max-width: 90%;
}
.cam-actions {
  display: flex; gap: 8px; justify-content: space-between; margin-top: 14px;
}
.link-btn {
  background: none; border: 0; color: var(--sky);
  text-decoration: underline; cursor: pointer; padding: 0; font: inherit;
}

.badge-amber { background: var(--amber-soft); color: #92400E; }
