/* ============================================
   PORTOQALY CRM — STYLE 2 "FLAT EDITORIAL"
   RTL · No Gradients · No Glow · Instant Data
   Pure hover transitions only — zero entrance
   animations, everything visible immediately.
============================================ */

/* ========================================
   VARIABLES & RESET
======================================== */
:root {
  --orange: #e45240;
  --orange-dark: #c93f2e;
  --orange-tint: #fbe9e5;
  --ink: #141414;
  --paper: #faf6ef;
  --cream: #f1ece2;
  --card: #ffffff;
  --gray: #6f6a5c;
  --sand: #e6dfcf;
  --line: 2px solid #141414;
  --line-sm: 1.5px solid #141414;
  --sh-sm: 4px 4px 0 #141414;
  --sh-md: 6px 6px 0 #141414;
  --sh-lg: 9px 9px 0 #141414;
  --sh-orange: 7px 7px 0 #e45240;
  --radius: 14px;
  --ease: ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ========================================
   FORCE ARABIC RTL INSIDE PAGE BUILDER
   Page Builder imports can strip the HTML dir
   attribute, so RTL is also enforced in CSS.
======================================== */
html, body { direction: rtl !important; }

/* Keep text, icons and mixed Arabic/Latin labels ordered RTL. */
body, body * { unicode-bidi: normal; }
body { text-align: right; }

/* Components that are intentionally centered keep their alignment. */
.hero-inner, .hero-cta, .hero-trust, .sec-head,
.chaos-hub-card, .int-hub, .int-card, .flow li,
.donut-txt, .cta, .cta-inner, .plans-guarantee {
  text-align: center;
}

/* Icon + text components: icon stays on the RTL/start side. */
.btn, .brand, .hero-badge, .hero-trust span,
.ds-logo, .ds-nav a, .act-row, .chip, .chaos-card,
.product-tabs, .ptab, .flow li, .flow-card, .int-card,
.plans-guarantee, .footer-bottom {
  direction: rtl;
}

/* These values are data/technical strings and must remain LTR. */
.dc-url, .inv-id, [dir="ltr"] { direction: ltr !important; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; flex-shrink: 0; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input { font-family: inherit; }
section { scroll-margin-top: 100px; }
::selection { background: var(--orange); color: #fff; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding-block: clamp(80px, 9vw, 120px); }

/* ========================================
   SHARED UI
======================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 15px;
  padding: 13px 26px; border-radius: 12px;
  border: var(--line); cursor: pointer; color: var(--ink);
  background: var(--card);
  box-shadow: var(--sh-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, color 0.18s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-md); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 #141414; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost:hover { box-shadow: 5px 5px 0 var(--orange); }
.btn-sm { padding: 9px 18px; font-size: 14px; box-shadow: 3px 3px 0 #141414; }
.btn-lg { padding: 16px 32px; font-size: 16.5px; }
.btn-xl { padding: 19px 42px; font-size: 18px; border-radius: 14px; }
.btn-block { width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--orange); color: #fff;
  border: var(--line);
  display: grid; place-items: center;
  font-weight: 900; font-size: 20px;
}
.brand-mark.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 15px; border-width: 1.5px; }
.brand-mark.lg { width: 54px; height: 54px; border-radius: 13px; font-size: 28px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.2px; }
.brand-name b { color: var(--orange); font-weight: 900; }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.sec-head.right { text-align: start; margin-inline: 0; }
.sec-tag {
  display: inline-block; font-size: 13px; font-weight: 800;
  color: var(--ink); background: var(--card);
  border: var(--line-sm); border-radius: 999px;
  box-shadow: 3px 3px 0 #141414;
  padding: 7px 18px; margin-bottom: 22px; letter-spacing: 0.3px;
}
.dark-tag { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 3px 3px 0 rgba(255,255,255,0.25); }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; line-height: 1.28; letter-spacing: -0.5px; }
.sec-head h2.accent { color: var(--orange); margin-top: 6px; }
.sec-head p { color: var(--gray); font-size: 17px; margin-top: 18px; max-width: 560px; margin-inline: auto; }
.sec-head.right p { margin-inline: 0; }
.dark-word { color: var(--orange); }

/* Editorial band dividers */
.chaos, .product, .workflow, .integrations, .stats, .footer { border-top: 2.5px solid #141414; }

/* ========================================
   NAVIGATION
======================================== */
.site-header { position: sticky; top: 0; z-index: 100; padding: 0; }
.nav-pill {
  position: relative;
  width: 100%; border-radius: 0;
  background: var(--paper);
  border: 0; border-bottom: 2.5px solid #141414;
  box-shadow: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 48px);
}
.nav-links { display: flex; gap: 6px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a {
  font-size: 15px; font-weight: 800; color: var(--ink);
  padding: 8px 18px; border-radius: 10px;
  border: 2px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.nav-links a:hover { background: var(--cream); border-color: #141414; }
.nav-links a.on { background: var(--ink); color: var(--paper); border-color: #141414; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 15px; font-weight: 800; color: var(--ink); transition: color 0.18s; }
.nav-login:hover { color: var(--orange); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger i { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: 0.25s var(--ease); }
.nav-mobile { display: none; }

/* ========================================
   HERO
======================================== */
.hero {
  padding-top: clamp(90px, 12vh, 140px);
  padding-bottom: clamp(80px, 9vw, 120px);
  background: var(--paper);
  position: relative;
}
.hero-inner { text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 800; color: var(--ink);
  background: var(--card); border: var(--line);
  box-shadow: var(--sh-sm);
  padding: 9px 20px; border-radius: 999px; margin-bottom: 32px;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }

.hero-title {
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 900; line-height: 1.24; letter-spacing: -1px;
}
.hero-title span {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 6px;
  text-underline-offset: 12px;
}
.hero-sub {
  color: var(--gray); font-size: clamp(16px, 1.6vw, 19px);
  max-width: 640px; margin: 30px auto 0; line-height: 1.95; font-weight: 500;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-top: 42px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero-trust span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 800; color: var(--ink);
  background: var(--card); border: var(--line-sm); border-radius: 999px;
  padding: 7px 16px;
}
.hero-trust svg { width: 15px; height: 15px; color: var(--orange); }

/* ========================================
   CRM DASHBOARD
======================================== */
.hero-visual { position: relative; margin-top: clamp(56px, 7vw, 90px); }
.dash {
  background: var(--card);
  border: 2.5px solid #141414; border-radius: 20px;
  box-shadow: var(--sh-lg);
  overflow: hidden;
  text-align: start;
  position: relative; z-index: 2;
}

.dash-chrome {
  display: flex; align-items: center; gap: 16px;
  background: var(--cream); border-bottom: 2px solid #141414;
  padding: 13px 20px;
}
.dc-dots { display: flex; gap: 7px; }
.dc-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--sand); border: 1.5px solid #141414; }
.dc-dots i:first-child { background: var(--orange); }
.dc-url {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink); font-weight: 700;
  background: var(--card); border: var(--line-sm);
  padding: 6px 16px; border-radius: 999px;
  direction: ltr;
}
.dc-url svg { width: 13px; height: 13px; }

.dash-body { display: flex; min-height: 560px; }

/* Sidebar */
.dash-side {
  width: 218px; flex-shrink: 0;
  background: var(--cream);
  border-inline-end: 2px solid #141414;
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.ds-logo { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 16px; padding: 2px 10px 18px; }
.ds-nav { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ds-nav a {
  display: flex; align-items: center; gap: 11px;
  font-size: 13.5px; font-weight: 800; color: var(--ink);
  padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid transparent;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  cursor: pointer;
}
.ds-nav a svg { width: 17px; height: 17px; }
.ds-nav a:hover { background: var(--card); border-color: #141414; transform: translateX(-3px); }
.ds-nav a.on { background: var(--ink); color: var(--paper); border-color: #141414; box-shadow: 3px 3px 0 var(--orange); }
.ds-badge { margin-inline-start: auto; font-size: 11px; font-weight: 800; background: var(--orange); color: #fff; border: 1.5px solid #141414; border-radius: 999px; padding: 2px 8px; }
.ds-badge.soft { background: var(--card); color: var(--ink); }
.ds-user { display: flex; align-items: center; gap: 10px; background: var(--card); border: var(--line-sm); border-radius: 12px; padding: 10px 12px; }
.ds-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; border: 1.5px solid #141414; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.ds-user b { font-size: 13px; display: block; line-height: 1.4; }
.ds-user small { font-size: 11px; color: var(--gray); font-weight: 700; }

/* Main */
.dash-main { flex: 1; padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; background: var(--card); }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-title b { font-size: 20px; font-weight: 900; display: block; }
.dash-title small { color: var(--gray); font-size: 13px; font-weight: 600; }
.dash-tools { display: flex; align-items: center; gap: 12px; }
.dash-search {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--paper); border: var(--line-sm);
  color: var(--gray); font-size: 12.5px; font-weight: 600;
  padding: 9px 16px; border-radius: 11px; min-width: 210px;
}
.dash-search svg { width: 14px; height: 14px; }
.dash-bell { position: relative; width: 38px; height: 38px; border: var(--line-sm); border-radius: 11px; display: grid; place-items: center; background: var(--card); }
.dash-bell svg { width: 17px; height: 17px; color: var(--ink); }
.ping { position: absolute; top: 7px; inset-inline-end: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); border: 2px solid var(--card); }
.dash-avatar { width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--paper); border: var(--line-sm); display: grid; place-items: center; font-weight: 800; }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dstat {
  background: var(--card); border: var(--line-sm); border-radius: 13px;
  padding: 16px 18px; position: relative;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.dstat:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-sm); }
.dstat label { font-size: 12px; color: var(--gray); font-weight: 800; display: block; }
.dstat b { font-size: 21px; font-weight: 900; display: block; margin-top: 4px; }
.dstat em { font-style: normal; font-size: 12px; color: var(--gray); font-weight: 800; }
.trend { position: absolute; top: 14px; inset-inline-end: 14px; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--cream); border: 1.5px solid #141414; color: var(--ink); }
.trend.up { background: var(--orange-tint); border-color: var(--orange); color: var(--orange-dark); }

.dash-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; flex: 1; }
.dash-card { background: var(--card); border: var(--line-sm); border-radius: 13px; padding: 18px 20px; }
.dc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dc-head b { font-size: 14.5px; font-weight: 900; }
.dc-head span { font-size: 11.5px; color: var(--ink); font-weight: 800; background: var(--cream); border: 1.5px solid #141414; padding: 4px 10px; border-radius: 999px; }

/* Chart bars — fully visible instantly */
.bars { display: flex; align-items: flex-end; gap: 9px; height: 168px; }
.bars i {
  flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px;
  background: var(--sand); border: 1.5px solid #141414;
  transition: background 0.18s;
}
.bars i:hover { background: var(--orange-tint); }
.bars i.hl { background: var(--orange); }
.bars i.hl:hover { background: var(--orange-dark); }
.bars-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 10.5px; color: var(--gray); font-weight: 800; }

/* Activity */
.act-list { display: flex; flex-direction: column; }
.act-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1.5px solid var(--cream); }
.act-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.act-ic { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid #141414; display: grid; place-items: center; flex-shrink: 0; }
.act-ic svg { width: 16px; height: 16px; }
.c-orange { background: var(--orange-tint); color: var(--orange-dark); }
.c-dark { background: var(--cream); color: var(--ink); }
.c-gray { background: var(--card); color: var(--gray); }
.c-green { background: #e2efe2; color: #2e7d4f; }
.act-list b { font-size: 13px; font-weight: 800; display: block; line-height: 1.45; }
.act-list small { font-size: 11.5px; color: var(--gray); font-weight: 600; }
.act-list time { margin-inline-start: auto; font-size: 11px; color: var(--ink); font-weight: 800; white-space: nowrap; background: var(--cream); border: 1.5px solid #141414; border-radius: 999px; padding: 2px 9px; }

/* Pipeline */
.pipe-card { padding: 16px 20px; }
.pipe-track { display: flex; gap: 6px; height: 40px; }
.pipe-track i {
  width: var(--w); border-radius: 9px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-width: 0; border: 1.5px solid #141414;
}
.pipe-track .p1 { background: var(--orange); color: #fff; }
.pipe-track .p2 { background: var(--ink); color: var(--paper); }
.pipe-track .p3 { background: var(--gray); color: #fff; }
.pipe-track .p4 { background: var(--sand); color: var(--ink); }
.pipe-track em { font-style: normal; font-size: 11px; font-weight: 800; white-space: nowrap; padding-inline: 8px; }

/* ========================================
   FLOATING CHIPS — static, visible instantly
======================================== */
.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: var(--line); border-radius: 13px;
  box-shadow: var(--sh-sm);
  padding: 12px 16px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.chip:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-md); }
.chip-ic { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid #141414; display: grid; place-items: center; flex-shrink: 0; }
.chip-ic svg { width: 17px; height: 17px; }
.chip b { font-size: 13.5px; font-weight: 900; display: block; line-height: 1.4; }
.chip small { font-size: 11.5px; color: var(--gray); font-weight: 700; }
.chip-1 { top: -26px; right: 4%; }
.chip-2 { top: 22%; left: -30px; }
.chip-3 { bottom: 18%; right: -26px; }
.chip-4 { bottom: -24px; left: 10%; }

/* ========================================
   CHAOS TO ORGANIZATION
======================================== */
.chaos { background: var(--cream); border-bottom: 2.5px solid #141414; }
.chaos-stage { position: relative; min-height: 620px; max-width: 1080px; margin: 30px auto 0; }
.chaos-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

/* Connector lines are real HTML elements instead of SVG lines.
   This survives Page Builder/HTML sanitization and keeps the animation. */
.chaos-line {
  position: absolute;
  left: 50%;
  top: 52%;
  height: 2px;
  width: 0;
  transform-origin: 0 50%;
  opacity: 0.35;
  pointer-events: none;
  border: 0;
  background: repeating-linear-gradient(
    to right,
    #141414 0,
    #141414 6px,
    transparent 6px,
    transparent 13px
  );
  animation: chaosLineMove 3s linear infinite;
}

.chaos-line-1 { width: 42%; transform: rotate(-33deg); }
.chaos-line-2 { width: 45%; transform: rotate(209deg); }
.chaos-line-3 { width: 39%; transform: rotate(10deg); }
.chaos-line-4 { width: 39%; transform: rotate(166deg); }
.chaos-line-5 { width: 26%; transform: rotate(118deg); }
.chaos-line-6 { width: 28%; transform: rotate(60deg); }

@keyframes chaosLineMove {
  from { background-position: 0 0; }
  to { background-position: -48px 0; }
}

.chaos-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: var(--line); border-radius: 13px;
  box-shadow: var(--sh-sm);
  padding: 14px 18px; width: max-content; max-width: 300px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.chaos-card:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-md); }
.cc-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--cream); border: 1.5px solid #141414; color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.cc-ic svg { width: 18px; height: 18px; }
.chaos-card b { font-size: 14px; font-weight: 900; display: block; }
.chaos-card small { font-size: 12px; color: var(--gray); font-weight: 700; }

.chaos-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; }
.hub-ring { display: none; }
.chaos-hub-card {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  border: 2.5px solid #141414;
  border-radius: 18px; padding: 30px 44px;
  box-shadow: var(--sh-orange);
  text-align: center;
}
.chaos-hub-card .brand-mark { background: var(--orange); border-color: var(--paper); }
.chaos-hub-card b { font-size: 19px; font-weight: 900; }
.chaos-hub-card small { color: #c9c4b6; font-size: 13px; font-weight: 600; }

.chaos-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 70px; }
.chaos-points > div {
  background: var(--card); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--sh-sm);
  padding: 26px 28px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.chaos-points > div:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-md); }
.chaos-points b { font-size: 16.5px; font-weight: 900; display: block; margin-bottom: 6px; }
.chaos-points b::before { content: ""; display: block; width: 30px; height: 4px; background: var(--orange); border: 1.5px solid #141414; margin-bottom: 14px; }
.chaos-points p { font-size: 14px; color: var(--gray); font-weight: 600; }

/* ========================================
   PRODUCT EXPERIENCE — CSS TABS
======================================== */
.product { background: var(--card); overflow: hidden; }
.ptab-radio { position: absolute; opacity: 0; pointer-events: none; }

.product-grid {
  display: grid; grid-template-columns: 400px 1fr; gap: 40px;
  align-items: start; margin-top: 20px;
}
.product-tabs { display: flex; flex-direction: column; gap: 12px; }
.ptab-btn {
  display: flex; gap: 16px; align-items: flex-start;
  border: var(--line); border-radius: var(--radius);
  background: var(--card); padding: 20px 22px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
}
.ptab-btn:hover { transform: translate(-3px, -3px); box-shadow: var(--sh-sm); }
.ptab-ic {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--cream); color: var(--ink); border: var(--line-sm);
  display: grid; place-items: center;
  transition: background 0.18s, color 0.18s;
}
.ptab-ic svg { width: 20px; height: 20px; }
.ptab-txt small { display: block; font-size: 12px; font-weight: 900; color: var(--gray); letter-spacing: 1px; }
.ptab-txt b { display: block; font-size: 17px; font-weight: 900; margin: 2px 0 0; }
.ptab-desc {
  display: block; font-size: 13.5px; color: var(--gray); font-weight: 600; line-height: 1.75;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.25s var(--ease), opacity 0.25s var(--ease), margin 0.2s;
}

/* Active tab */
#ptab1:checked ~ .product-grid .ptab-btn[for="ptab1"],
#ptab2:checked ~ .product-grid .ptab-btn[for="ptab2"],
#ptab3:checked ~ .product-grid .ptab-btn[for="ptab3"],
#ptab4:checked ~ .product-grid .ptab-btn[for="ptab4"],
#ptab5:checked ~ .product-grid .ptab-btn[for="ptab5"] {
  box-shadow: var(--sh-orange);
  background: var(--card);
  transform: translate(-3px, -3px);
}
#ptab1:checked ~ .product-grid .ptab-btn[for="ptab1"] .ptab-ic,
#ptab2:checked ~ .product-grid .ptab-btn[for="ptab2"] .ptab-ic,
#ptab3:checked ~ .product-grid .ptab-btn[for="ptab3"] .ptab-ic,
#ptab4:checked ~ .product-grid .ptab-btn[for="ptab4"] .ptab-ic,
#ptab5:checked ~ .product-grid .ptab-btn[for="ptab5"] .ptab-ic {
  background: var(--orange); color: #fff;
}
#ptab1:checked ~ .product-grid .ptab-btn[for="ptab1"] .ptab-txt small,
#ptab2:checked ~ .product-grid .ptab-btn[for="ptab2"] .ptab-txt small,
#ptab3:checked ~ .product-grid .ptab-btn[for="ptab3"] .ptab-txt small,
#ptab4:checked ~ .product-grid .ptab-btn[for="ptab4"] .ptab-txt small,
#ptab5:checked ~ .product-grid .ptab-btn[for="ptab5"] .ptab-txt small { color: var(--orange); }
#ptab1:checked ~ .product-grid .ptab-btn[for="ptab1"] .ptab-desc,
#ptab2:checked ~ .product-grid .ptab-btn[for="ptab2"] .ptab-desc,
#ptab3:checked ~ .product-grid .ptab-btn[for="ptab3"] .ptab-desc,
#ptab4:checked ~ .product-grid .ptab-btn[for="ptab4"] .ptab-desc,
#ptab5:checked ~ .product-grid .ptab-btn[for="ptab5"] .ptab-desc {
  max-height: 90px; opacity: 1; margin-top: 8px;
}

/* Visual panels */
.product-visual { position: relative; min-height: 500px; }
.ppanel {
  position: absolute; inset: 0;
  background: var(--card); border: 2.5px solid #141414; border-radius: 18px;
  box-shadow: var(--sh-md);
  padding: 26px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0s linear 0.25s;
  display: flex; flex-direction: column; gap: 18px; overflow: hidden;
}
#ptab1:checked ~ .product-grid .pp-1,
#ptab2:checked ~ .product-grid .pp-2,
#ptab3:checked ~ .product-grid .pp-3,
#ptab4:checked ~ .product-grid .pp-4,
#ptab5:checked ~ .product-grid .pp-5 {
  opacity: 1; visibility: visible;
  transition: opacity 0.22s var(--ease), visibility 0s;
}

.pv-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pv-head > b { font-size: 18px; font-weight: 900; margin-inline-end: auto; }
.pv-search {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: var(--line-sm); border-radius: 999px;
  font-size: 12px; color: var(--gray); font-weight: 700; padding: 8px 16px;
}
.pv-search svg { width: 13px; height: 13px; }
.pv-add {
  background: var(--orange); color: #fff; border: var(--line-sm);
  font-size: 12.5px; font-weight: 900; padding: 8px 16px; border-radius: 999px;
  box-shadow: 3px 3px 0 #141414;
}
.pv-note { font-size: 12.5px; color: var(--ink); font-weight: 800; background: var(--cream); border: var(--line-sm); padding: 7px 16px; border-radius: 999px; }

.pv-table { display: flex; flex-direction: column; border: var(--line-sm); border-radius: 12px; overflow: hidden; }
.pv-row {
  display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr; align-items: center;
  gap: 10px; padding: 13px 18px; font-size: 13.5px; font-weight: 600;
  border-bottom: 1.5px solid var(--cream); transition: background 0.15s;
}
.pv-row:last-child { border-bottom: 0; }
.pv-row:not(.head):hover { background: var(--paper); }
.pv-row.head { background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 800; border-color: #141414; }
.pv-c { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid #141414;
  display: inline-grid; place-items: center; font-style: normal;
  font-size: 12.5px; font-weight: 900; color: #fff;
}
.av.a1 { background: var(--orange); }
.av.a2 { background: var(--ink); }
.av.a3 { background: var(--gray); }
.av.a4 { background: #b3ab97; }
.tag { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; border: 1.5px solid #141414; }
.t-active { background: #e2efe2; color: #2e7d4f; }
.t-follow { background: var(--orange-tint); color: var(--orange-dark); }
.t-risk { background: var(--cream); color: var(--gray); }
.inv-id { font-weight: 900; font-size: 13px; direction: ltr; text-align: start; }

/* Kanban */
.pv-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; flex: 1; min-height: 0; }
.kan-col { background: var(--cream); border: var(--line-sm); border-radius: 13px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.kan-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; }
.kan-head b { margin-inline-start: auto; font-size: 11.5px; background: var(--card); border: var(--line-sm); border-radius: 999px; padding: 2px 9px; color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #141414; display: inline-block; }
.d-gray { background: var(--gray); }
.d-orange { background: var(--orange); }
.d-dark { background: var(--ink); }
.d-green { background: #2e8b57; }
.kan-card {
  background: var(--card); border: var(--line-sm); border-radius: 11px;
  padding: 13px 14px; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.kan-card:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-sm); }
.kan-card.hot { box-shadow: 3px 3px 0 var(--orange); }
.kan-card.won { box-shadow: 3px 3px 0 #2e8b57; }
.kan-card b { font-size: 13.5px; font-weight: 900; display: block; }
.kan-card > small { color: var(--gray); font-size: 12px; font-weight: 700; }
.kan-meta { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.kan-meta .av { width: 24px; height: 24px; font-size: 11px; }
.kan-meta span { font-size: 11px; color: var(--gray); font-weight: 800; }

/* Projects */
.pv-projects { display: flex; flex-direction: column; gap: 14px; }
.proj { border: var(--line-sm); border-radius: 13px; padding: 18px 20px; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.proj:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-sm); }
.proj-top { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; }
.proj-top b { font-weight: 900; }
.proj-top span { font-weight: 900; color: var(--orange); font-size: 14px; }
.prog { height: 10px; background: var(--cream); border: var(--line-sm); border-radius: 999px; margin: 12px 0; overflow: hidden; }
.prog i { display: block; height: 100%; width: var(--p); background: var(--orange); border-inline-end: 1.5px solid #141414; }
.proj-meta { display: flex; align-items: center; justify-content: space-between; }
.proj-meta small { color: var(--gray); font-size: 12px; font-weight: 800; }
.avs { display: flex; }
.avs .av { width: 26px; height: 26px; font-size: 11px; border: 2px solid var(--card); margin-inline-start: -8px; }
.avs .av:first-child { margin-inline-start: 0; }

/* Invoices */
.pv-inv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pv-inv-stats > div { background: var(--paper); border: var(--line-sm); border-radius: 12px; padding: 16px 18px; position: relative; }
.pv-inv-stats label { font-size: 12px; color: var(--gray); font-weight: 800; display: block; }
.pv-inv-stats b { font-size: 20px; font-weight: 900; }
.pv-inv-stats .dot { position: absolute; top: 16px; inset-inline-end: 16px; }

/* Reports */
.pv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pv-kpis > div { border: var(--line-sm); border-radius: 12px; padding: 14px 18px; background: var(--card); }
.pv-kpis label { font-size: 12px; color: var(--gray); font-weight: 800; display: block; }
.pv-kpis b { font-size: 21px; font-weight: 900; }
.pv-kpis .c-primary { color: var(--orange); }
.pv-chart-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; flex: 1; align-items: end; min-height: 0; }
.bars.tall { height: 100%; min-height: 190px; }
.donut-wrap { position: relative; display: grid; place-items: center; }
.donut { width: 132px; height: 132px; }
.donut-arc { stroke-dashoffset: 96.5; }
.donut-txt { position: absolute; text-align: center; }
.donut-txt b { font-size: 22px; font-weight: 900; display: block; }
.donut-txt small { font-size: 11px; color: var(--gray); font-weight: 800; }

/* ========================================
   AI EXPERIENCE
======================================== */
.ai { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.ai-watermark {
  position: absolute; inset-inline-end: -2%; top: 40px;
  font-size: clamp(180px, 26vw, 380px); font-weight: 900; line-height: 1;
  color: rgba(250, 246, 239, 0.04);
  pointer-events: none; user-select: none; font-family: 'Tajawal', sans-serif;
}
.ai-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; position: relative; z-index: 2; }
.ai-copy h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 900; line-height: 1.25; letter-spacing: -0.5px; }
.ai-copy > p { color: #b3ae9f; font-size: 16.5px; margin-top: 22px; line-height: 1.9; max-width: 480px; font-weight: 500; }
.ai-feats { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.ai-feats li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: #e8e4d8; }
.ai-feats li i {
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--orange); border: 1.5px solid var(--paper);
  position: relative; flex-shrink: 0;
}
.ai-feats li i::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 6px; height: 10px; border: solid #fff;
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px);
}

.ai-card {
  background: #1d1d1a; border: 2px solid #3c3c34;
  border-radius: 18px; overflow: hidden;
}
.ai-card-head {
  display: flex; align-items: center; gap: 11px;
  padding: 17px 22px; border-bottom: 2px solid #3c3c34;
  font-weight: 900; font-size: 15px;
}
.ai-spark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--orange); color: #fff;
  border: 1.5px solid var(--paper);
  display: grid; place-items: center;
}
.ai-spark svg { width: 17px; height: 17px; }
.ai-status { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #a19c8d; font-weight: 700; }
.ai-status i { width: 8px; height: 8px; border-radius: 50%; background: #4caf7d; }
.ai-body { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 18px; }
.ai-msg.user {
  align-self: flex-start;
  background: var(--orange); color: #fff;
  font-size: 14.5px; font-weight: 800; line-height: 1.7;
  padding: 13px 20px; border-radius: 16px 16px 4px 16px;
  border: 2px solid var(--paper);
  max-width: 88%;
}
.ai-msg.bot { display: flex; gap: 12px; align-items: flex-start; }
.ai-avatar {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: var(--ink); border: 1.5px solid #3c3c34;
  color: var(--orange); display: grid; place-items: center; margin-top: 2px;
}
.ai-avatar svg { width: 15px; height: 15px; }
.ai-bubble {
  background: #262622; border: 2px solid #3c3c34;
  border-radius: 16px 4px 16px 16px; padding: 16px 18px;
  flex: 1; min-width: 0;
}
.ai-processing { font-size: 13px; color: #a19c8d; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tdots { display: inline-flex; gap: 4px; }
.tdots i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

.ai-result { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ai-stat {
  display: grid; grid-template-columns: 46px 1fr; align-items: center; column-gap: 13px;
  background: #1d1d1a; border: 2px solid #3c3c34;
  border-radius: 12px; padding: 12px 15px;
}
.ai-stat b { font-size: 24px; font-weight: 900; color: var(--orange); grid-row: span 2; }
.ai-stat span { font-size: 13px; font-weight: 800; color: #e8e4d8; }
.ai-bar { display: block; height: 5px; width: 100%; background: #3c3c34; border-radius: 999px; margin-top: 7px; position: relative; overflow: hidden; }
.ai-bar::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--orange); border-radius: 999px; }
.ai-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ai-act {
  font-size: 12px; font-weight: 800; color: #d9d4c5;
  border: 1.5px solid #4a4a41; border-radius: 999px;
  padding: 7px 15px; cursor: pointer; transition: all 0.18s;
}
.ai-act:hover { border-color: var(--orange); color: var(--orange); }

/* ========================================
   WORKFLOW
======================================== */
.workflow { background: var(--paper); }
.flow {
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  margin-top: 30px;
}
.flow::before {
  content: ""; position: absolute; top: 26px;
  right: 8.33%; left: 8.33%; height: 2.5px;
  background: #141414;
}
.flow-dot { display: none; }
.flow li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.flow-node {
  position: relative; z-index: 2;
  width: 54px; height: 54px; border-radius: 15px;
  background: var(--card); border: var(--line); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: var(--sh-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, color 0.18s;
}
.flow-node .ring { display: none; }
.flow-node svg { width: 21px; height: 21px; }
.flow li:hover .flow-node { background: var(--orange); color: #fff; transform: translate(-2px, -2px); box-shadow: var(--sh-md); }
.flow-node.hl-node { background: var(--orange); border-color: #141414; color: #fff; box-shadow: var(--sh-md); }
.flow-card b { font-size: 15.5px; font-weight: 900; display: block; }
.flow-card small { font-size: 12.5px; color: var(--gray); font-weight: 600; display: block; margin-top: 5px; line-height: 1.7; }

/* ========================================
   INTEGRATIONS
======================================== */
.integrations { background: var(--cream); }
.int-stage { position: relative; height: 620px; max-width: 1000px; margin: 20px auto 0; }
.int-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.int-line {
  position: absolute; left: 50%; top: 50%;
  height: 2px; width: 39.015%;
  transform-origin: left center;
  background: repeating-linear-gradient(to right, #141414 0 6px, transparent 6px 13px);
  opacity: 0.35;
  animation: intLineDash 2.6s linear infinite;
}
.int-line.l1 { transform: rotate(-34.896deg); }
.int-line.l2 { width: 38%; transform: rotate(0deg); animation-duration: 2s; }
.int-line.l3 { transform: rotate(34.896deg); }
.int-line.l4 { transform: rotate(145.104deg); }
.int-line.l5 { width: 38%; transform: rotate(180deg); animation-duration: 2s; }
.int-line.l6 { transform: rotate(-145.104deg); }
@keyframes intLineDash {
  from { background-position: 0 0; }
  to { background-position: 19px 0; }
}
.pkt { display: none; }

.int-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--card); border: 2.5px solid #141414; border-radius: 20px;
  box-shadow: var(--sh-orange);
  padding: 32px 38px; text-align: center;
}
.int-hub b { font-size: 17px; font-weight: 900; white-space: nowrap; }

.int-card {
  position: absolute; z-index: 3; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--card); border: var(--line); border-radius: 14px;
  box-shadow: var(--sh-sm); padding: 18px 22px; text-align: center;
  min-width: 158px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.int-card:hover { transform: translate(-50%, calc(-50% - 4px)); box-shadow: var(--sh-md); }
.int-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--orange-tint); border: var(--line-sm); color: var(--orange-dark); display: grid; place-items: center; margin-bottom: 4px; }
.int-ic svg { width: 20px; height: 20px; }
.int-card b { font-size: 14.5px; font-weight: 900; }
.int-card small { font-size: 12px; color: var(--gray); font-weight: 700; }

/* ========================================
   STATISTICS
======================================== */
.stats { background: var(--card); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 5vw, 70px); }
.stat { border-top: 3px solid var(--ink); padding-top: 30px; position: relative; }
.stat:first-child { border-color: var(--orange); }
.stat b {
  display: block; font-size: clamp(64px, 8vw, 118px);
  font-weight: 900; line-height: 1; letter-spacing: -3px;
}
.stat b i { font-style: normal; color: var(--orange); }
.stat span { display: block; font-size: 18px; font-weight: 900; margin-top: 14px; }
.stat p { color: var(--gray); font-size: 14.5px; font-weight: 600; margin-top: 8px; max-width: 300px; }

/* ========================================
   PRICING
======================================== */
.pricing { background: var(--cream); border-bottom: 2.5px solid #141414; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative;
  background: var(--card); border: var(--line); border-radius: 20px;
  box-shadow: var(--sh-sm);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.plan:hover { transform: translate(-3px, -3px); box-shadow: var(--sh-lg); }
.plan h3 { font-size: 22px; font-weight: 900; }
.plan-desc { color: var(--gray); font-size: 14px; font-weight: 600; margin-top: 8px; min-height: 46px; }
.plan-price { display: flex; align-items: baseline; gap: 10px; padding: 22px 0; border-bottom: 2px solid var(--ink); margin-bottom: 24px; flex-wrap: wrap; }
.plan-price b { font-size: 46px; font-weight: 900; letter-spacing: -1.5px; }
.plan-price span { font-size: 13px; color: var(--gray); font-weight: 800; }
.plan-feats { display: flex; flex-direction: column; gap: 13px; margin-bottom: 32px; flex: 1; }
.plan-feats li { position: relative; font-size: 14.5px; font-weight: 600; color: var(--ink); padding-inline-start: 32px; }
.plan-feats li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 2px;
  width: 19px; height: 19px; border-radius: 6px;
  background: var(--card); border: 1.5px solid #141414;
}
.plan-feats li::after {
  content: ""; position: absolute; inset-inline-start: 5px; top: 8px;
  width: 5px; height: 8px;
  border: solid var(--ink); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.plan.featured { border-width: 2.5px; border-color: var(--orange); box-shadow: var(--sh-orange); }
.plan.featured:hover { box-shadow: 10px 10px 0 var(--orange); }
.plan-badge {
  position: absolute; top: -16px; inset-inline-start: 32px;
  background: var(--orange); color: #fff;
  font-size: 12.5px; font-weight: 900;
  padding: 7px 18px; border-radius: 999px;
  border: var(--line-sm);
  box-shadow: 3px 3px 0 #141414;
}
.plan.featured .plan-feats li::before { background: var(--orange); }
.plan.featured .plan-feats li::after { border-color: #fff; }

/* ========================================
   PRICING SUB-PAGE (pricing.html)
======================================== */
.page-hero { padding-top: clamp(100px, 14vh, 150px); padding-bottom: 24px; }
.page-hero .hero-title { font-size: clamp(34px, 5vw, 58px); }
.page-hero .hero-sub { max-width: 560px; }
.pricing { padding-top: clamp(56px, 7vw, 96px); }
.plans-guarantee { display: flex; justify-content: center; align-items: center; gap: 38px; flex-wrap: wrap; margin-top: 48px; }
.plans-guarantee span {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 800; color: var(--ink);
  background: var(--card); border: var(--line-sm); border-radius: 999px;
  padding: 8px 18px;
}
.plans-guarantee svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; }

/* ========================================
   FINAL CTA
======================================== */
.cta { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; text-align: center; }
.cta-watermark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: clamp(320px, 44vw, 640px); font-weight: 900; line-height: 0.8;
  color: rgba(250, 246, 239, 0.03); pointer-events: none; user-select: none;
}
.cta-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(38px, 6vw, 72px); font-weight: 900; line-height: 1.25; letter-spacing: -1px; max-width: 800px; }
.cta p { color: #b3ae9f; font-size: clamp(16px, 1.8vw, 19px); font-weight: 500; margin-top: 22px; max-width: 520px; }
.cta .btn { margin-top: 44px; border-color: var(--paper); box-shadow: 7px 7px 0 var(--paper); }
.cta .btn:hover { box-shadow: 9px 9px 0 var(--paper); }
.cta small { margin-top: 26px; color: #8f8a7b; font-size: 13px; font-weight: 600; }

/* ========================================
   FOOTER
======================================== */
.footer { background: var(--paper); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 54px; }
.footer-brand p { color: var(--gray); font-size: 14px; font-weight: 600; margin-top: 16px; max-width: 320px; line-height: 1.85; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col b { font-size: 15px; font-weight: 900; margin-bottom: 6px; }
.footer-col a { font-size: 14px; color: var(--gray); font-weight: 700; transition: color 0.15s, transform 0.15s; width: fit-content; }
.footer-col a:hover { color: var(--orange); transform: translateX(-4px); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 2px solid var(--ink); padding-block: 24px;
  font-size: 13px; color: var(--gray); font-weight: 600;
}
.footer-made { font-weight: 800; color: var(--ink); }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-tabs { flex-direction: row; flex-wrap: wrap; }
  .ptab-btn { flex: 1 1 calc(50% - 10px); }
  .product-visual { min-height: 540px; }
  .dash-side { display: none; }
  .ai-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-login { display: none; }
  .nav-mobile {
    position: absolute; top: calc(100% + 10px); left: 12px; right: 12px;
    background: var(--card); border: var(--line); border-radius: 16px;
    box-shadow: var(--sh-md);
    flex-direction: column; padding: 14px; gap: 6px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.2s var(--ease);
  }
  .nav-mobile a { padding: 13px 16px; border-radius: 10px; font-weight: 800; font-size: 15px; border: 1.5px solid transparent; }
  .nav-mobile a:hover { background: var(--cream); border-color: #141414; }
  .nav-mobile-actions { display: flex; gap: 10px; padding-top: 12px; margin-top: 8px; border-top: 2px solid var(--ink); }
  .nav-mobile-actions .btn { flex: 1; justify-content: center; }
  .nav-toggle:checked ~ .nav-mobile { display: flex; opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-toggle:checked ~ .nav-actions .burger i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-actions .burger i:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-actions .burger i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .flow { grid-template-columns: 1fr; gap: 26px; max-width: 440px; margin-inline: auto; }
  .flow::before { top: 5%; bottom: 5%; height: auto; width: 2.5px; right: 26px; left: auto; }
  .flow li { flex-direction: row; text-align: start; gap: 18px; }
  .flow-node { flex-shrink: 0; }

  .int-stage { height: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 10px; }
  .int-lines { display: none; }
  .int-hub { position: static; transform: none; margin-bottom: 10px; }
  .int-card { position: static; transform: none; width: min(340px, 100%); flex-direction: row; text-align: start; min-width: 0; padding: 15px 18px; }
  .int-card:hover { transform: translate(-2px, -2px); }
  .int-ic { margin-bottom: 0; margin-inline-end: 6px; }
  .int-card b { font-size: 15px; }
  .int-card small { display: block; }

  .stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan.featured { order: -1; }
}

@media (max-width: 760px) {
  .chaos-stage { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 10px; }
  .chaos-lines { display: none; }
  .chaos-card { position: static; width: min(340px, 100%); max-width: none; }
  .chaos-hub { position: static; transform: none; order: -1; margin-bottom: 8px; }
  .chaos-hub-card { width: min(340px, 100%); padding: 26px 30px; }
  .chaos-points { grid-template-columns: 1fr; margin-top: 50px; }

  .dash-body { min-height: 0; }
  .dash-main { padding: 18px 16px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-search { display: none; }
  .pipe-track em { font-size: 9.5px; }
  .hero-cta .btn { width: 100%; }

  .chip { padding: 9px 12px; border-radius: 12px; gap: 8px; }
  .chip-ic { width: 30px; height: 30px; }
  .chip b { font-size: 12px; }
  .chip small { font-size: 10.5px; }
  .chip-1 { top: -16px; right: 2%; }
  .chip-2 { top: 18%; left: 2%; }
  .chip-3 { bottom: 14%; right: 2%; }
  .chip-4 { display: none; }

  .ptab-btn { flex: 1 1 100%; }
  .ptab-btn:hover { transform: none; }
  .product-visual { min-height: 660px; }
  .ppanel { padding: 18px; }
  .pv-kanban { grid-template-columns: 1fr; overflow-y: auto; }
  .kan-col { min-height: 0; }
  .pv-row { grid-template-columns: 1.3fr 0.9fr 0.9fr; }
  .pv-row span:nth-child(2) { display: none; }
  .pv-chart-wrap { grid-template-columns: 1fr; }
  .pv-inv-stats, .pv-kpis { grid-template-columns: 1fr 1fr; }
  .bars.tall { min-height: 140px; }
  .hero { padding-top: 90px; }
  .hero-trust { gap: 12px; }
}

@media (max-width: 640px) {
  .plans-guarantee { flex-direction: column; gap: 14px; align-items: center; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 16px; }
  .nav-actions .btn { padding: 9px 14px; font-size: 13px; }
  .nav-actions .btn svg { display: none; }
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dstat b { font-size: 18px; }
  .cta-watermark { font-size: 300px; }
}


/* ========================================
   FIX: DEFAULT PRODUCT PANEL + SVG VISIBILITY
======================================== */
.product-visual { isolation: isolate; }
.product-visual .ppanel { z-index: 0; }
#ptab1:checked ~ .product-grid .pp-1,
#ptab2:checked ~ .product-grid .pp-2,
#ptab3:checked ~ .product-grid .pp-3,
#ptab4:checked ~ .product-grid .pp-4,
#ptab5:checked ~ .product-grid .pp-5 { z-index: 2; }

/* Safe fallback: if the browser/builder loses the checked state, show panel 1. */
.product-visual .pp-1 { opacity: 1; visibility: visible; z-index: 1; }
#ptab2:checked ~ .product-grid .product-visual .pp-1,
#ptab3:checked ~ .product-grid .product-visual .pp-1,
#ptab4:checked ~ .product-grid .product-visual .pp-1,
#ptab5:checked ~ .product-grid .product-visual .pp-1 { opacity: 0; visibility: hidden; z-index: 0; }

/* Protect inline SVG icons from accidental hiding/clipping by external CSS. */
.ptab-ic svg, .flow-node svg, .int-ic svg, .cc-ic svg, .chip-ic svg, .act-ic svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
  color: currentColor !important;
}
.ptab-ic, .flow-node, .int-ic, .cc-ic, .chip-ic, .act-ic {
  line-height: 0;
  overflow: visible;
}
@media (max-width: 900px) {
  .int-ic { flex: 0 0 42px; }
  .flow-node { flex: 0 0 54px; }
}


/* Guaranteed icon fallback: CSS text glyphs, independent of SVG rendering */
.ptab-ic, .flow-node, .int-ic, .cc-ic, .chip-ic, .act-ic {
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  overflow: visible !important;
  position: relative;
}
.ptab-ic::before, .flow-node::before, .int-ic::before, .cc-ic::before,
.chip-ic::before, .act-ic::before {
  content: attr(data-icon) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: currentColor !important;
  font-family: Arial, "Segoe UI Symbol", sans-serif !important;
  font-weight: 900 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  transform: translateZ(0);
}
.act-ic::before { font-size: 16px !important; }
.chip-ic::before { font-size: 17px !important; }
.cc-ic::before { font-size: 19px !important; }
.ptab-ic::before { font-size: 21px !important; }
.int-ic::before { font-size: 22px !important; }
.flow-node::before { font-size: 22px !important; }
.flow-node.hl-node::before { color: #fff !important; }

/* Keep decorative SVGs untouched; icon wrappers no longer depend on SVG support. */

/* ========================================
   SHARED SUB-PAGE COMPONENTS
   (features / solutions / integrations / ai / about / contact)
======================================== */

/* Guaranteed icon box — reusable everywhere, same fallback technique as the rest of the site */
.gic {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--cream); border: 1.5px solid #141414;
  display: grid; place-items: center; flex-shrink: 0; color: var(--ink);
  position: relative; line-height: 0;
}
.gic.orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.gic.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gic.lg { width: 56px; height: 56px; border-radius: 14px; }
.gic::before {
  content: attr(data-icon) !important;
  font-family: Arial, "Segoe UI Symbol", sans-serif !important;
  font-weight: 900 !important; font-size: 20px !important; line-height: 1 !important;
  display: block !important; visibility: visible !important; opacity: 1 !important;
  color: currentColor !important;
}
.gic.lg::before { font-size: 24px !important; }

/* Generic bordered content card w/ icon (reused across grids) */
.info-card {
  background: var(--card); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--sh-sm); padding: 28px 26px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.info-card:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-md); }
.info-card .gic { margin-bottom: 18px; }
.info-card b, .info-card h3 { font-size: 17px; font-weight: 900; display: block; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--gray); font-weight: 600; line-height: 1.8; }
.info-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.info-card ul li { font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.info-card ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.info-card.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.info-card.featured p { color: #b3ae9f; }
.info-card.featured ul li { color: var(--paper); }
.info-card.featured .gic { background: var(--orange); color: #fff; border-color: var(--paper); }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Split section (copy + visual) — about / ai / solutions pages */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-copy h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; line-height: 1.3; letter-spacing: -0.5px; }
.split-copy p { color: var(--gray); font-size: 15.5px; font-weight: 600; line-height: 1.9; margin-top: 18px; }
.split-copy ul { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.split-copy ul li { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14.5px; }
.split-copy ul li i { width: 22px; height: 22px; border-radius: 6px; background: var(--orange); border: 1.5px solid #141414; flex-shrink: 0; display: grid; place-items: center; font-style: normal; }
.split-copy ul li i::before { content: "✓"; color: #fff; font-size: 12px; font-weight: 900; }

/* Stat pill row (about page) */
.pill-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.pill-row span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; background: var(--card); border: var(--line-sm); border-radius: 999px; padding: 8px 16px; }

/* Timeline (about page) */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-inline-start: 30px; border-inline-start: 2.5px solid #141414; }
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -37px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); border: 2.5px solid #141414; }
.tl-item b { font-size: 13px; font-weight: 900; color: var(--orange); display: block; margin-bottom: 6px; }
.tl-item h4 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.tl-item p { font-size: 14px; color: var(--gray); font-weight: 600; }

/* FAQ accordion (native details/summary, no JS needed) */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card); border: var(--line-sm); border-radius: 14px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  font-weight: 900; font-size: 15.5px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; font-weight: 900; color: var(--orange); flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; font-size: 14px; color: var(--gray); font-weight: 600; line-height: 1.85; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-form { background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--sh-lg); padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field label { font-size: 13.5px; font-weight: 800; }
.form-field input, .form-field textarea, .form-field select {
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink);
  background: var(--paper); border: var(--line-sm); border-radius: 10px;
  padding: 12px 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { box-shadow: 3px 3px 0 var(--orange); }
.form-field textarea { resize: vertical; min-height: 110px; }

/* Simple centered link under a section head, pointing to a deeper page */
.sec-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 14.5px; color: var(--orange); margin-top: 18px; }
.sec-more svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
