/* ═══════════════════════════════════════════════════════════════════
   LabFlow Marketing Site — styles.css
   Visual language derived from the LabFlow application design system:
   apps/web/src/index.css, apps/web/src/design-system.css,
   docs/ai/UI_DESIGN_SYSTEM.md, and the login/branding experience
   (LoginPage.tsx, BrandingPanel.tsx, BackgroundFX.tsx).
   No application code is imported; tokens and component shapes are
   reproduced here so this standalone site stays visually independent.
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ───────────────────────────────────────────── */
:root {
  /* Brand core — matches apps/web/src/index.css dark theme + login accent */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --accent: #06b6d4;
  --accent-soft: rgba(6, 182, 212, 0.14);

  /* Navy hero surface — matches --bg dark (#05090f) in index.css */
  --navy: #05090f;
  --navy-soft: #0b1220;
  --navy-card: #0c1422;
  --navy-border: rgba(148, 173, 200, 0.16);
  --navy-border-strong: rgba(59, 130, 246, 0.28);
  --navy-text: #f0f6ff;
  --navy-text-muted: #94adc8;

  /* Light content surfaces — matches --bg/--surface light theme */
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-alt: #eef5fb;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Semantic status colors — matches docs/ai/UI_DESIGN_SYSTEM.md */
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.12);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.14);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  --info: #3b82f6;
  --info-soft: rgba(59, 130, 246, 0.12);

  /* Shape */
  --radius-lg: 20px;
  --radius-card: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-card: 0 18px 42px rgba(15, 23, 42, 0.07);
  --shadow-card-dark: 0 18px 38px rgba(0, 0, 0, 0.28);
  --shadow-pop: 0 10px 24px rgba(15, 23, 42, 0.1);

  /* Type — matches apps/web/src/index.css --font-ui stack: Tajawal
     (Arabic body) + Plus Jakarta Sans (display/headings) + Inter (Latin) */
  --font-ar: 'Tajawal', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-en: 'Inter', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Tajawal', 'Inter', 'Segoe UI', system-ui, sans-serif;

  --container: 1180px;
}

/* ── 2. RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ar), var(--font-en), sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--font-en), var(--font-ar), sans-serif; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
main { display: block; }
h1, h2, h3, .section-title, .hero h1, .pilot-panel h2, .card h3 {
  font-family: var(--font-display);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── 3. LAYOUT HELPERS ──────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 72px 0; }
.section-muted { background: var(--surface-muted); }
.section-alt { background: var(--surface-alt); }
@media (max-width: 768px) {
  .section { padding: 48px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.eyebrow svg { width: 14px; height: 14px; }

.section-head {
  max-width: 720px;
  margin: 0 0 40px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.section-desc {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.85;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -60px;
  inset-inline-start: 12px;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* Focus states — matches app: border-color primary + soft ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── 4. BUTTONS — matches ds-btn-primary gradient in design-system.css ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(37, 99, 235, 0.34); }
.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 173, 200, 0.28);
  color: var(--navy-text);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ── 5. HEADER ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 9, 15, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 173, 200, 0.14);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--navy-text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--navy-text); background: rgba(255, 255, 255, 0.06); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 173, 200, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: var(--navy-text);
  font-size: 13px;
  font-weight: 700;
}
.lang-switch svg { width: 16px; height: 16px; }
.signin-link {
  color: var(--navy-text);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
}
.signin-link:hover { color: #fff; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 173, 200, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: var(--navy-text);
}
.menu-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  z-index: 99;
  background: rgba(5, 9, 15, 0.98);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  padding: 20px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-text);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(148, 173, 200, 0.12);
}
.mobile-nav a:hover { background: rgba(255, 255, 255, 0.06); }
.mobile-nav .header-actions { flex-direction: column; align-items: stretch; margin-top: 18px; gap: 10px; }
.mobile-nav .lang-switch, .mobile-nav .signin-link, .mobile-nav .btn { width: 100%; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  /* Scoped to the desktop header bar only — the mobile-nav panel has its
     own separate .header-actions block and must keep Sign In / Request a
     Demo visible when the menu is open. */
  .site-header .header-actions .signin-link,
  .site-header .header-actions .btn-primary { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Hamburger / close icon swap — driven purely by the aria-expanded state
   the mobile-nav toggle already sets, no extra JS class needed. */
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-flex; }

/* Lock background scroll while the mobile menu is open. */
body.nav-open { overflow: hidden; }

/* ── 6. HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 60%, #10203a 100%);
  color: var(--navy-text);
  overflow: hidden;
  padding: 76px 0 90px;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 8%, rgba(6, 182, 212, 0.16), transparent 32%),
    radial-gradient(circle at 12% 92%, rgba(37, 99, 235, 0.16), transparent 34%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #a8d4f5;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--navy-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.32;
  margin-bottom: 20px;
  color: #ffffff;
  text-wrap: balance;
}
.hero-sub {
  font-size: 16.5px;
  color: var(--navy-text-muted);
  line-height: 1.9;
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--navy-text-muted);
}
.hero-note svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* Product preview mockup — realistic dashboard shape, clearly illustrative */
.preview-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy-border-strong);
  background: var(--navy-card);
  box-shadow: var(--shadow-card-dark);
  overflow: hidden;
}
/* Reserved row above the dashboard frame — never overlaps the frame's own
   topbar/title/badges at any viewport width. */
.preview-caption {
  margin-bottom: 10px;
}
.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--navy-border);
  background: rgba(255, 255, 255, 0.02);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(148, 173, 200, 0.32); }
.preview-title { font-size: 12.5px; font-weight: 700; color: var(--navy-text-muted); }
.preview-body { padding: 16px; }
.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.preview-kpi {
  border: 1px solid var(--navy-border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.preview-kpi .k-val { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; }
.preview-kpi .k-label { font-size: 11px; color: var(--navy-text-muted); margin-top: 3px; }
.preview-table {
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--navy-border);
  font-size: 12.5px;
}
.preview-row:last-child { border-bottom: none; }
.preview-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.preview-code { font-family: 'Courier New', monospace; direction: ltr; unicode-bidi: isolate; font-size: 11.5px; color: var(--navy-text-muted); }
.preview-name { color: var(--navy-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pv-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pv-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pv-badge-info { color: #7ab8f5; background: rgba(59, 130, 246, 0.16); }
.pv-badge-warning { color: #f6c368; background: rgba(245, 158, 11, 0.16); }
.pv-badge-success { color: #6fe3a4; background: rgba(34, 197, 94, 0.16); }
.pv-badge-active::before { animation: pv-pulse 1.8s ease-in-out infinite; }
@keyframes pv-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-badge-active::before { animation: none; }
}

@media (max-width: 560px) {
  .preview-kpis { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .preview-kpi { padding: 8px; }
  .preview-kpi .k-val { font-size: 16px; }
  .preview-row { flex-wrap: wrap; }
}

/* ── 7. TRUST STRIP ─────────────────────────────────────────────── */
.trust-strip {
  background: var(--navy-soft);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  padding: 22px 0;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-text-muted);
}
.trust-list svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* ── 8. CARD GRIDS ──────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
}

/* Capabilities grid (10 cards): a deliberate column count instead of
   auto-fit, so the final row never strands 1–2 narrow, over-stretched
   cards. At >=1024px the grid is 4 columns and the last two cards each
   span 2 columns, filling the final row completely and on purpose. */
#capabilities .card-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1024px) {
  #capabilities .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  #capabilities .card-grid > :nth-last-child(-n+2) {
    grid-column: span 2;
  }
}
@media (max-width: 620px) {
  #capabilities .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--border-strong); }
.card-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 14px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 16.5px; font-weight: 800; color: var(--text); margin-bottom: 8px; line-height: 1.5; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

.card-icon.tone-warning { background: var(--warning-soft); color: #b45309; }
.card-icon.tone-danger { background: var(--danger-soft); color: #b91c1c; }
.card-icon.tone-info { background: var(--info-soft); color: #1d4ed8; }

/* ── 9. WORKFLOW ────────────────────────────────────────────────── */
.workflow {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.workflow-step {
  flex: 1 0 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 14px;
  position: relative;
}
.workflow-step .num {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
}
.workflow-step .label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}
.workflow-arrow {
  align-self: center;
  color: var(--border-strong);
  flex: 0 0 auto;
  padding-top: 34px;
}
.workflow-arrow svg { width: 20px; height: 20px; }
html[dir="rtl"] .workflow-arrow svg { transform: scaleX(-1); }

/* All 8 steps must fit without horizontal scrolling at desktop widths.
   The base rule above (`flex: 1 0 150px`, `overflow-x: auto`) is a
   mobile-safe fallback that becomes a real bug at >=901px: 8 steps at a
   150px hard minimum, plus arrows, exceed the container width and push
   the final step out of view behind a scrollbar. At >=901px the steps
   are allowed to shrink and share the row exactly; overflow is disabled
   so nothing can hide off-screen, and long labels wrap in place instead
   of forcing extra width. */
@media (min-width: 901px) {
  .workflow {
    overflow-x: visible;
  }

  .workflow-step {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 8px;
  }

  .workflow-step .label {
    overflow-wrap: break-word;
  }

  .workflow-arrow {
    flex: 0 0 20px;
  }
}

@media (max-width: 900px) {
  .workflow { flex-direction: column; overflow-x: visible; }
  .workflow-step { flex-direction: row; text-align: start; gap: 14px; padding: 12px 6px; }
  .workflow-step .num { margin-bottom: 0; flex-shrink: 0; }
  .workflow-arrow { transform: rotate(90deg); padding: 0; align-self: center; margin-inline-start: 17px; }
  html[dir="rtl"] .workflow-arrow svg { transform: none; }
}

/* ── 10. ROLES ──────────────────────────────────────────────────── */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.role-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.role-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.role-chip span:last-child { font-size: 14px; font-weight: 700; color: var(--text); }

/* ── 11. TRUST / WHY SECTION ────────────────────────────────────── */
.trust-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .trust-block { grid-template-columns: 1fr; } }
.trust-points { display: grid; gap: 14px; }
.trust-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.trust-point svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.trust-point span { font-size: 14px; color: var(--text); font-weight: 600; line-height: 1.7; }

/* ── 12. EQUIPMENT DUE-DATE EXAMPLE ─────────────────────────────── */
.equip-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.equip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.equip-row:last-child { border-bottom: none; }
.equip-name { font-weight: 700; font-size: 14px; color: var(--text); }
.equip-meta { font-size: 12.5px; color: var(--text-soft); direction: ltr; unicode-bidi: isolate; display: inline-block; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { color: #15803d; background: var(--success-soft); }
.status-due { color: #b45309; background: var(--warning-soft); }
.status-overdue { color: #b91c1c; background: var(--danger-soft); }

/* ── 13. PILOT SECTION ──────────────────────────────────────────── */
.pilot-panel {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, #0d1c33 100%);
  color: var(--navy-text);
  border-radius: 24px;
  padding: 48px;
  overflow: hidden;
}
.pilot-panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.18), transparent 40%);
  pointer-events: none;
}
.pilot-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .pilot-grid { grid-template-columns: 1fr; } .pilot-panel { padding: 32px 22px; } }
.pilot-panel h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 14px; line-height: 1.4; }
.pilot-panel > .pilot-grid > div > p { color: var(--navy-text-muted); font-size: 15px; line-height: 1.85; margin-bottom: 20px; }
.pilot-list { display: grid; gap: 10px; }
.pilot-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--navy-text);
  border: 1px solid var(--navy-border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.pilot-list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }

/* ── 14. DEMO FORM ──────────────────────────────────────────────── */
.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
@media (max-width: 640px) { .form-panel { padding: 22px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 700; color: var(--text); }
.form-field .req { color: var(--danger); margin-inline-start: 2px; }
.form-field input,
.form-field select,
.form-field textarea {
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { min-height: 104px; padding: 12px 14px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.field-error {
  font-size: 12.5px;
  color: #b91c1c;
  font-weight: 600;
  min-height: 16px;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  grid-column: 1 / -1;
}
.form-check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--primary); }
.form-check label { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; font-weight: 500; }
.form-check a { color: var(--primary); font-weight: 700; }
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.form-status {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  min-height: 20px;
}
.form-status.is-success { color: #15803d; }
.form-status.is-error { color: #b91c1c; }
.form-note {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}
.clipboard-btn { display: none; }
.clipboard-btn.is-visible { display: inline-flex; }

/* ── 15. WHATSAPP ───────────────────────────────────────────────── */
.js-whatsapp { display: none; }
.js-whatsapp.is-ready { display: inline-flex; }
.whatsapp-float {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #1fb855;
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(31, 184, 85, 0.35);
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float.js-whatsapp.is-ready { display: flex; }

/* ── 16. FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--navy-text-muted);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--navy-border);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.footer-brand img { height: 28px; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.85; max-width: 340px; color: var(--navy-text-muted); }
.footer-col h4 { font-size: 13px; font-weight: 800; color: var(--navy-text); margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col span {
  font-size: 13.5px;
  color: var(--navy-text-muted);
}
.footer-col a:hover { color: #fff; }
.footer-col a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: 12.5px;
}
.footer-bottom .country { display: flex; align-items: center; gap: 6px; }

/* ── 17. PRIVACY PAGE ───────────────────────────────────────────── */
.legal-page { padding: 56px 0 80px; }
.legal-page .legal-updated { font-size: 13px; color: var(--text-soft); margin-bottom: 28px; }
.legal-page h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; margin-bottom: 10px; }
.legal-page h2 { font-size: 18px; font-weight: 800; margin: 30px 0 10px; color: var(--text); }
.legal-page p { font-size: 14.5px; color: var(--text-muted); line-height: 1.9; margin-bottom: 10px; }
.legal-page ul { margin: 10px 0 14px; display: grid; gap: 8px; }
.legal-page li {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
  padding-inline-start: 22px;
  position: relative;
}
html[dir="rtl"] .legal-page li { padding-inline-start: 22px; padding-inline-end: 0; }
.legal-page li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.legal-notice {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: var(--warning-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13.5px;
  color: #7c4a05;
  margin-bottom: 28px;
  font-weight: 600;
  line-height: 1.8;
}
.back-home { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
html[dir="rtl"] .back-home svg { transform: scaleX(-1); }

/* ── 18. CONTENT VISIBILITY ──────────────────────────────────────
   All content is visible by default and must never depend on
   JavaScript to appear. `.fade-in` is kept only as a marker class
   for elements that previously animated in; it applies no hiding
   behavior. */
.fade-in {
  opacity: 1;
  transform: none;
}

/* ── 19. NOSCRIPT ───────────────────────────────────────────────── */
.noscript-banner {
  background: var(--warning-soft);
  color: #7c4a05;
  text-align: center;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
}

/* ── 20. RESPONSIVE TYPE SCALE GUARDS ────────────────────────────── */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .btn { padding: 0 16px; }
  .pilot-panel { padding: 24px 16px; }
}
