@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/* ============================================================
   دفتر ERP — Premium SaaS Home Page
   ============================================================ */

.hp-page {
  --hp-navy: #182838;
  --hp-navy-light: #243447;
  --hp-teal: #7C9272;
  --hp-emerald: #657A5C;
  --hp-gold: #7C9272;
  --hp-gold-dark: #657A5C;
  --hp-sage: #7C9272;
  --hp-sage-dark: #657A5C;
  --hp-sage-soft: #EEF2EB;
  --hp-bg: #f7f9f7;
  --hp-bg-soft: #eef2eb;
  --hp-surface: #ffffff;
  --hp-text: #182838;
  --hp-muted: #5f6b76;
  --hp-border: #d8e0d6;
  --hp-shadow: 0 4px 24px rgba(24, 40, 56, 0.06);
  --hp-shadow-lg: 0 20px 50px rgba(24, 40, 56, 0.1);
  --hp-radius: 16px;
  --hp-radius-sm: 10px;
  --hp-font: 'Tajawal', 'Cairo', sans-serif;
  --hp-nav-h: 84px;
  font-family: var(--hp-font);
  background: var(--hp-bg);
  color: var(--hp-text);
  line-height: 1.65;
  scroll-behavior: smooth;
}

.hp-page *,
.hp-page *::before,
.hp-page *::after { box-sizing: border-box; }

.hp-container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

/* ── Buttons ── */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--hp-radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hp-btn:hover { transform: translateY(-1px); }

.hp-btn--primary {
  background: linear-gradient(135deg, var(--hp-sage), var(--hp-sage-dark));
  color: #fff;
  border-color: var(--hp-sage);
  box-shadow: 0 4px 16px rgba(124, 146, 114, 0.28);
}

.hp-btn--primary:hover { box-shadow: 0 8px 24px rgba(124, 146, 114, 0.36); }

.hp-btn--outline {
  background: var(--hp-surface);
  border-color: var(--hp-border);
  color: var(--hp-navy);
}

.hp-btn--outline:hover {
  border-color: var(--hp-gold);
  color: var(--hp-gold-dark);
}

.hp-btn--ghost {
  background: transparent;
  color: var(--hp-navy);
  border-color: transparent;
}

.hp-btn--ghost:hover { background: var(--hp-bg-soft); }

.hp-btn--white {
  background: #fff;
  color: var(--hp-navy);
  box-shadow: var(--hp-shadow);
}

.hp-btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hp-btn--sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.hp-btn--lg { padding: 0.8rem 1.75rem; font-size: 0.95rem; }
.hp-btn--block { width: 100%; }

/* ── Navbar ── */
.hp-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--hp-nav-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--hp-border);
  backdrop-filter: blur(12px);
  overflow: visible;
}

.hp-nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--hp-nav-h);
  overflow: visible;
}

.hp-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--hp-navy);
  flex-shrink: 0;
  line-height: 1.1;
  overflow: visible;
  padding-block: 0.2rem;
}

.hp-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.hp-brand-logo {
  height: 40px;
  width: 40px;
  max-width: none;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.hp-brand-caption {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--hp-navy);
  letter-spacing: -0.01em;
}

.hp-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hp-navy);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hp-brand {
    gap: 0.45rem;
  }

  .hp-brand-logo {
    height: 34px;
    width: 34px;
  }

  .hp-brand-caption {
    font-size: 0.64rem;
  }

  .hp-brand-title {
    font-size: 0.95rem;
  }
}

.hp-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-inline: auto;
}

.hp-menu a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hp-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.hp-menu a:hover { color: var(--hp-navy); }

.hp-menu a.is-active {
  color: var(--hp-navy);
  position: relative;
}

.hp-menu a.is-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--hp-teal);
  border-radius: 2px;
}

/* ── Sub-page hero ── */
.hp-sub-hero {
  padding: 3rem 0 2.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124, 146, 114, 0.12), transparent),
    var(--hp-bg-soft);
  border-bottom: 1px solid var(--hp-border);
  text-align: center;
}

.hp-sub-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--hp-navy);
  margin-bottom: 0.75rem;
}

.hp-sub-hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--hp-muted);
  font-size: 1.02rem;
}

.hp-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--hp-muted);
  margin-bottom: 1rem;
}

.hp-breadcrumb a {
  color: var(--hp-teal);
  text-decoration: none;
  font-weight: 600;
}

/* ── Quick links (home) ── */
.hp-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hp-quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.hp-quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 146, 114, 0.35);
  box-shadow: var(--hp-shadow-lg);
}

.hp-quick-card .ico,
.hp-quick-card svg {
  width: 28px;
  height: 28px;
  color: var(--hp-teal);
}

.hp-quick-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--hp-navy);
}

.hp-quick-card p {
  font-size: 0.85rem;
  color: var(--hp-muted);
  line-height: 1.55;
  flex: 1;
}

.hp-quick-card span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hp-teal);
}

/* ── Contact page ── */
.hp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.hp-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hp-contact-item {
  display: flex;
  gap: 0.85rem;
  padding: 1.15rem;
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
}

.hp-contact-item .ico,
.hp-contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--hp-teal);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.hp-contact-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--hp-navy);
  margin-bottom: 0.2rem;
}

.hp-contact-item p,
.hp-contact-item a {
  font-size: 0.85rem;
  color: var(--hp-muted);
  text-decoration: none;
}

.hp-contact-form {
  padding: 1.75rem;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
}

.hp-contact-form h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--hp-navy);
  margin-bottom: 1.25rem;
}

.hp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hp-field {
  margin-bottom: 1rem;
}

.hp-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hp-navy);
  margin-bottom: 0.4rem;
}

.hp-field input,
.hp-field textarea,
.hp-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--hp-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hp-field input:focus,
.hp-field textarea:focus,
.hp-field select:focus {
  outline: none;
  border-color: var(--hp-teal);
  box-shadow: 0 0 0 3px rgba(124, 146, 114, 0.12);
}

.hp-field textarea { min-height: 120px; resize: vertical; }

.hp-pricing-note {
  text-align: center;
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: var(--hp-radius-sm);
  background: rgba(124, 146, 114, 0.08);
  border: 1px solid rgba(124, 146, 114, 0.2);
  font-size: 0.88rem;
  color: var(--hp-muted);
}

.hp-pricing-note a {
  color: var(--hp-teal);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hp-quick-grid { grid-template-columns: 1fr; }
  .hp-contact-grid { grid-template-columns: 1fr; }
  .hp-form-row { grid-template-columns: 1fr; }
  .hp-menu a.is-active::after { display: none; }
}

.hp-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.hp-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
  color: var(--hp-navy);
  cursor: pointer;
  margin-inline-start: auto;
}

.hp-nav-toggle .ico,
.hp-nav-toggle svg { width: 20px; height: 20px; }

.hp-nav.is-scrolled {
  box-shadow: var(--hp-shadow);
}

/* ── Hero ── */
.hp-hero {
  padding: 3.25rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 55% at 80% 10%, rgba(124, 146, 114, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(24, 40, 56, 0.05), transparent),
    linear-gradient(180deg, #ffffff 0%, var(--hp-bg) 100%);
}

.hp-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.hp-hero-copy {
  text-align: start;
}

.hp-hero-logo {
  width: min(220px, 58vw);
  height: auto;
  display: block;
  margin: 0 0 1.15rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(24, 40, 56, 0.1));
}

.hp-hero .hp-lead {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--hp-muted);
}

.hp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.hp-hero-dash {
  min-width: 0;
}

.hp-dash--hero {
  transform: perspective(1200px) rotateY(2deg);
}

.hp-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hp-teal);
  background: rgba(124, 146, 114, 0.1);
  border: 1px solid rgba(124, 146, 114, 0.2);
  margin-bottom: 1.25rem;
}

.hp-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--hp-navy);
}

.hp-text-gradient {
  background: linear-gradient(135deg, var(--hp-teal), var(--hp-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hp-lead {
  font-size: 1.05rem;
  color: var(--hp-muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hp-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.hp-trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hp-muted);
}

.hp-trust .ico,
.hp-trust svg { width: 16px; height: 16px; color: var(--hp-teal); }

/* ── Dashboard mockups ── */
.hp-dash {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow-lg);
  overflow: hidden;
}

.hp-dash-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--hp-navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.hp-dash-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}

.hp-dash-live {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #86efac;
}

.hp-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.hp-dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding: 1rem;
  background: var(--hp-bg-soft);
  border-bottom: 1px solid var(--hp-border);
}

.hp-kpi {
  padding: 0.65rem 0.75rem;
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
}

.hp-kpi small {
  display: block;
  font-size: 0.68rem;
  color: var(--hp-muted);
  margin-bottom: 0.2rem;
}

.hp-kpi strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--hp-navy);
}

.hp-kpi span { font-size: 0.65rem; color: var(--hp-teal); font-weight: 600; }
.hp-kpi--warn strong { color: #a16207; }
.hp-kpi--warn span { color: #a16207; }
.hp-kpi--up span { color: var(--hp-emerald); }

.hp-dash-chart {
  padding: 1rem;
  border-bottom: 1px solid var(--hp-border);
}

.hp-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hp-muted);
  margin-bottom: 0.75rem;
}

.hp-chart-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--hp-emerald);
  font-size: 0.72rem;
}

.hp-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}

.hp-bar {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #94a3b8, #cbd5e1);
}

.hp-bar--active {
  background: linear-gradient(180deg, var(--hp-teal), var(--hp-emerald));
}

.hp-dash-feed { padding: 0.75rem 1rem; }

.hp-feed-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--hp-border);
}

.hp-feed-item:last-child { border-bottom: 0; }
.hp-feed-item span { flex: 1; color: var(--hp-text); font-weight: 600; }
.hp-feed-item em { font-style: normal; color: var(--hp-emerald); font-weight: 700; font-size: 0.72rem; }
.hp-feed-item .ico, .hp-feed-item svg { width: 16px; height: 16px; color: var(--hp-muted); }

/* Full dashboard showcase */
.hp-dash--full {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 420px;
}

.hp-dash-sidebar {
  background: var(--hp-navy);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hp-dash-nav {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.hp-dash-nav.active {
  background: rgba(124, 146, 114, 0.25);
  color: var(--hp-gold);
}

.hp-dash-nav .ico, .hp-dash-nav svg { width: 18px; height: 18px; }

.hp-dash-main { padding: 1rem; background: var(--hp-bg-soft); }

.hp-dash-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.hp-metric {
  padding: 0.75rem;
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
}

.hp-metric small { display: block; font-size: 0.68rem; color: var(--hp-muted); }
.hp-metric strong { display: block; font-size: 1rem; font-weight: 800; color: var(--hp-navy); margin: 0.15rem 0; }
.hp-metric span { font-size: 0.65rem; color: var(--hp-muted); }
.hp-metric--navy { background: var(--hp-navy); border-color: var(--hp-navy); }
.hp-metric--navy small, .hp-metric--navy span { color: #94a3b8; }
.hp-metric--navy strong { color: #fff; }
.hp-metric--green strong { color: var(--hp-emerald); }
.hp-metric--amber strong { color: #4F5F48; }

.hp-dash-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.hp-panel {
  padding: 0.75rem;
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
}

.hp-panel h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hp-navy);
  margin-bottom: 0.6rem;
}

.hp-alerts-mini, .hp-tx-list { list-style: none; padding: 0; margin: 0; }

.hp-alerts-mini li, .hp-tx-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--hp-border);
}

.hp-alerts-mini li:last-child, .hp-tx-list li:last-child { border-bottom: 0; }
.hp-alerts-mini em, .hp-tx-list em { font-style: normal; font-weight: 700; }

.hp-alert--danger em { color: #dc2626; }
.hp-alert--warn em { color: #4F5F48; }
.hp-tx-list em { color: var(--hp-emerald); }

.hp-mini-bars { display: flex; flex-direction: column; gap: 0.5rem; }
.hp-mini-bars > div { display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; }
.hp-mini-bars span { width: 48px; flex-shrink: 0; color: var(--hp-muted); }
.hp-progress { flex: 1; height: 6px; background: var(--hp-bg-soft); border-radius: 999px; overflow: hidden; }
.hp-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--hp-teal), var(--hp-emerald)); border-radius: 999px; }

.hp-table-wrap { overflow-x: auto; border-radius: var(--hp-radius-sm); border: 1px solid var(--hp-border); }

.hp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  background: var(--hp-surface);
}

.hp-table th {
  text-align: right;
  padding: 0.55rem 0.75rem;
  background: var(--hp-bg-soft);
  color: var(--hp-muted);
  font-weight: 700;
}

.hp-table td { padding: 0.55rem 0.75rem; border-top: 1px solid var(--hp-border); }

.hp-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
}

.hp-badge--ok { background: #d1fae5; color: #065f46; }
.hp-badge--warn { background: #E8F0E4; color: #4F5F48; }
.hp-badge--danger { background: #fee2e2; color: #991b1b; }

/* ── Stats ── */
.hp-stats {
  padding: 2.5rem 0;
  background: var(--hp-navy);
  color: #fff;
}

.hp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.hp-stat-num {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--hp-gold);
  margin-bottom: 0.35rem;
}

.hp-stat-lbl { font-size: 0.88rem; color: #94a3b8; font-weight: 500; }

/* ── Sections ── */
.hp-section { padding: 4.5rem 0; }
.hp-section--soft { background: var(--hp-bg-soft); }
.hp-section--alert { background: linear-gradient(180deg, #fff 0%, #fef2f2 100%); }

.hp-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.hp-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--hp-navy);
  margin-bottom: 0.65rem;
}

.hp-section-head p { color: var(--hp-muted); font-size: 1rem; }

.hp-placeholder-note { font-size: 0.78rem !important; color: #94a3b8 !important; font-style: italic; }

/* ── Features ── */
.hp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hp-fcard {
  padding: 1.5rem;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.hp-fcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--hp-shadow-lg);
  border-color: rgba(124, 146, 114, 0.25);
}

.hp-ficon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 146, 114, 0.12), rgba(124, 146, 114, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-teal);
  margin-bottom: 1rem;
}

.hp-ficon .ico, .hp-ficon svg { width: 24px; height: 24px; }

.hp-fcard h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--hp-navy);
  margin-bottom: 0.5rem;
}

.hp-fcard p { font-size: 0.88rem; color: var(--hp-muted); line-height: 1.6; }

/* ── Split / Multi-warehouse ── */
.hp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hp-split-copy h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--hp-navy);
  margin-bottom: 1rem;
}

.hp-split-copy > p { color: var(--hp-muted); margin-bottom: 1.5rem; }

.hp-checklist { list-style: none; padding: 0; margin: 0; }

.hp-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hp-text);
}

.hp-checklist .ico, .hp-checklist svg { width: 18px; height: 18px; color: var(--hp-emerald); flex-shrink: 0; }

.hp-wh-visual {
  position: relative;
  min-height: 280px;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
}

.hp-wh-hub {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem;
  background: var(--hp-navy);
  color: #fff;
  border-radius: var(--hp-radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 2;
}

.hp-wh-hub .ico, .hp-wh-hub svg { width: 22px; height: 22px; color: var(--hp-gold); }

.hp-wh-node {
  position: absolute;
  padding: 0.65rem 0.85rem;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm);
  box-shadow: var(--hp-shadow);
  font-size: 0.75rem;
  z-index: 2;
}

.hp-wh-node .ico, .hp-wh-node svg { width: 16px; height: 16px; color: var(--hp-teal); display: block; margin-bottom: 0.25rem; }
.hp-wh-node span { display: block; font-weight: 700; color: var(--hp-navy); }
.hp-wh-node em { font-style: normal; font-size: 0.68rem; color: var(--hp-muted); }

.hp-wh-node--1 { bottom: 24px; right: 12%; }
.hp-wh-node--2 { bottom: 48px; left: 50%; transform: translateX(-50%); }
.hp-wh-node--3 { bottom: 24px; left: 12%; }

.hp-wh-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(124, 146, 114, 0.35);
  pointer-events: none;
}

/* ── Alert cards ── */
.hp-alert-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hp-acard {
  padding: 1.35rem;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
}

.hp-acard-head { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.65rem; }

.hp-acard-tag {
  align-self: flex-start;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.hp-acard-tag--danger { background: #fee2e2; color: #991b1b; }
.hp-acard-tag--warn { background: #E8F0E4; color: #4F5F48; }
.hp-acard-tag--info { background: #dbeafe; color: #1e40af; }

.hp-acard strong { font-size: 0.92rem; color: var(--hp-navy); }
.hp-acard p { font-size: 0.85rem; color: var(--hp-muted); margin-bottom: 0.75rem; }
.hp-acard-action { font-size: 0.78rem; font-weight: 700; color: var(--hp-teal); }

/* ── Analytics ── */
.hp-analytics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hp-analytic {
  padding: 1.25rem;
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.hp-analytic:hover {
  border-color: var(--hp-teal);
  transform: translateY(-2px);
}

.hp-analytic .ico, .hp-analytic svg { width: 28px; height: 28px; color: var(--hp-teal); margin-bottom: 0.65rem; }
.hp-analytic h4 { font-size: 0.9rem; font-weight: 800; color: var(--hp-navy); margin-bottom: 0.25rem; }
.hp-analytic p { font-size: 0.78rem; color: var(--hp-muted); }

/* ── Steps ── */
.hp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.hp-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--hp-teal), var(--hp-gold));
  opacity: 0.3;
  z-index: 0;
}

.hp-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.25rem 0.75rem;
}

.hp-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--hp-navy);
  color: var(--hp-gold);
  font-size: 1.1rem;
  font-weight: 800;
}

.hp-step h4 { font-size: 0.95rem; font-weight: 800; color: var(--hp-navy); margin-bottom: 0.35rem; }
.hp-step p { font-size: 0.82rem; color: var(--hp-muted); }

/* ── Roles ── */
.hp-roles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.hp-role {
  padding: 1.25rem 1rem;
  text-align: center;
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
}

.hp-role .ico, .hp-role svg { width: 28px; height: 28px; color: var(--hp-gold); margin-bottom: 0.65rem; }
.hp-role h4 { font-size: 0.88rem; font-weight: 800; color: var(--hp-navy); margin-bottom: 0.35rem; }
.hp-role p { font-size: 0.75rem; color: var(--hp-muted); line-height: 1.5; }

/* ── Benefits ── */
.hp-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hp-benefit {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--hp-navy);
}

.hp-benefit .ico, .hp-benefit svg { width: 20px; height: 20px; color: var(--hp-teal); flex-shrink: 0; }

/* ── Testimonials ── */
.hp-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hp-testimonial {
  padding: 1.5rem;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
}

.hp-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 0.85rem;
}

.hp-stars::before {
  content: "★★★★★";
  letter-spacing: 2px;
  color: var(--hp-gold);
  font-size: 0.9rem;
}

.hp-testimonial p {
  font-size: 0.92rem;
  color: var(--hp-text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.hp-testimonial footer strong { display: block; font-size: 0.88rem; color: var(--hp-navy); }
.hp-testimonial footer span { font-size: 0.78rem; color: var(--hp-muted); }

/* ── Pricing ── */
.hp-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.hp-pricing--4 {
  grid-template-columns: repeat(4, 1fr);
}

.hp-plan {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
  display: flex;
  flex-direction: column;
}

.hp-plan h3 { font-size: 1.25rem; font-weight: 800; color: var(--hp-navy); margin-bottom: 0.25rem; }
.hp-plan-price {
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.hp-plan-price-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--hp-navy);
  font-variant-numeric: tabular-nums;
}
.hp-plan-price-unit {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hp-muted);
}
.hp-plan-desc { font-size: 0.85rem; color: var(--hp-muted); margin-bottom: 1.25rem; }

.hp-plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.hp-plan li {
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--hp-text);
  border-bottom: 1px solid var(--hp-border);
}

.hp-plan li::before { content: "✓ "; color: var(--hp-emerald); font-weight: 800; }

.hp-plan--featured {
  border-color: var(--hp-gold);
  box-shadow: 0 12px 40px rgba(124, 146, 114, 0.2);
  transform: scale(1.03);
}

.hp-plan--trial {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, var(--hp-surface) 40%);
}

.hp-plan-badge--trial {
  background: var(--hp-emerald);
  color: #fff;
}

.hp-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: var(--hp-sage);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

/* ── FAQ ── */
.hp-faq-wrap { max-width: 760px; }

.hp-faq { display: flex; flex-direction: column; gap: 0.65rem; }

.hp-faq-item {
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
  overflow: hidden;
}

.hp-faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: var(--hp-navy);
  cursor: pointer;
  list-style: none;
}

.hp-faq-item summary::-webkit-details-marker { display: none; }

.hp-faq-item summary::after {
  content: "+";
  float: left;
  font-size: 1.25rem;
  color: var(--hp-muted);
}

.hp-faq-item[open] summary::after { content: "−"; }

.hp-faq-item p {
  padding: 0 1.15rem 1rem;
  font-size: 0.88rem;
  color: var(--hp-muted);
  line-height: 1.65;
}

/* ── CTA ── */
.hp-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--hp-navy) 0%, var(--hp-navy-light) 50%, #7C9272 100%);
  color: #fff;
}

.hp-cta-inner { text-align: center; }

.hp-cta-logo {
  width: min(160px, 46vw);
  height: auto;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  display: block;
  filter: brightness(0) invert(1);
}

.hp-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.hp-cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.hp-cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ── Footer ── */
.hp-footer {
  background: var(--hp-navy);
  color: #94a3b8;
  padding-top: 3.5rem;
}

.hp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.hp-footer-logo {
  width: min(140px, 42vw);
  height: auto;
  margin-bottom: 0.85rem;
  object-fit: contain;
  display: block;
}

.hp-footer-brand p { font-size: 0.85rem; line-height: 1.65; max-width: 280px; }

.hp-footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.hp-footer-col a {
  display: block;
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.hp-footer-col a:hover { color: var(--hp-gold); }

.hp-social { display: flex; gap: 0.5rem; margin-top: 0.65rem; }

.hp-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0;
}

.hp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.78rem;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hp-btn:hover { transform: none; }
  .hp-fcard:hover { transform: none; }
}

/* ── Legal pages ── */
.hp-legal{max-width:850px;line-height:1.9;color:var(--hp-text)}.hp-legal--terms{padding-top:.25rem}.hp-legal-intro{font-size:1.08rem}.hp-legal h2{margin:2.2rem 0 .75rem;padding-bottom:.55rem;border-bottom:1px solid var(--hp-border);font-size:1.25rem;color:var(--hp-navy)}.hp-legal p{margin:.65rem 0}.hp-legal ul{margin:.55rem 0 1rem;padding-right:1.4rem}.hp-legal li{margin:.38rem 0}.hp-legal a{color:var(--hp-teal);font-weight:700;overflow-wrap:anywhere}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hp-hero-grid,
  .hp-split { grid-template-columns: 1fr; }
  .hp-hero-dash { order: -1; }
  .hp-dash--hero { transform: none; }
  .hp-hero-copy { text-align: center; }
  .hp-hero-logo { margin-inline: auto; }
  .hp-hero-cta { justify-content: center; }
  .hp-trust { justify-content: center; }
  .hp-features { grid-template-columns: repeat(2, 1fr); }
  .hp-dash-row { grid-template-columns: repeat(2, 1fr); }
  .hp-dash-split { grid-template-columns: 1fr; }
  .hp-analytics { grid-template-columns: repeat(2, 1fr); }
  .hp-roles { grid-template-columns: repeat(3, 1fr); }
  .hp-steps { grid-template-columns: repeat(2, 1fr); }
  .hp-steps::before { display: none; }
  .hp-footer-grid { grid-template-columns: 1fr 1fr; }
  .hp-pricing--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hp-menu {
    position: fixed;
    top: var(--hp-nav-h);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--hp-surface);
    border-bottom: 1px solid var(--hp-border);
    box-shadow: var(--hp-shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .hp-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hp-menu a { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--hp-border); }

  .hp-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .hp-nav-actions .hp-btn--ghost { display: none; }

  .hp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-alert-cards,
  .hp-testimonials,
  .hp-pricing { grid-template-columns: 1fr; }
  .hp-plan--featured { transform: none; }
  .hp-benefits { grid-template-columns: repeat(2, 1fr); }
  .hp-dash--full { grid-template-columns: 1fr; }
  .hp-dash-sidebar { flex-direction: row; padding: 0.5rem; }
  .hp-dash-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .hp-features,
  .hp-analytics,
  .hp-roles,
  .hp-steps,
  .hp-benefits { grid-template-columns: 1fr; }
  .hp-footer-grid { grid-template-columns: 1fr; }
  .hp-hero-cta { flex-direction: column; }
  .hp-hero-cta .hp-btn { width: 100%; }
  .hp-legal h2{font-size:1.08rem;margin-top:1.65rem}.hp-legal{line-height:1.8}.hp-legal ul{padding-right:1.15rem}
}
