/* ==========================================================================
   Zarbedar Hamkar (نسخه همکار) — devices + section patterns
   Loaded by the Hamkar pages and the homepage. Builds on zb-core tokens.
   Devices are real 3D CSS objects (no images for the hardware):
     .hk-iphone  — iPhone 16 (393×852pt screen, 7.8mm aluminium body)
     .hk-laptop  — minimal laptop (16:10 lid on a flat deck)
   ========================================================================== */

/* --------------------------------------------------------------------------
   iPhone 16
   -------------------------------------------------------------------------- */
.hk-iphone {
  --pw: 300px;                                  /* body width */
  --ring: calc(var(--pw) * 0.012);              /* aluminium band seen from the front */
  --bez: calc(var(--pw) * 0.031);               /* black glass border */
  --sw: calc(var(--pw) - 2 * (var(--ring) + var(--bez)));
  --sh: calc(var(--sw) * 852 / 393);
  --ph: calc(var(--sh) + 2 * (var(--ring) + var(--bez)));
  --sr: calc(var(--sw) * 0.14);                 /* display corner radius */
  --br: calc(var(--sr) + var(--ring) + var(--bez));
  --depth: calc(var(--pw) * 0.109);             /* 7.8mm / 71.6mm */
  --edge-1: #f4f5f7;
  --edge-2: #c9ccd2;
  --edge-3: #9da2ab;
  --back: #eceef1;
  --rx: 6deg;
  --ry: -18deg;
  --rz: 0deg;
  position: relative;
  width: var(--pw);
  height: var(--ph);
  perspective: calc(var(--pw) * 6);
  flex: none;
}
.hk-iphone--black { --edge-1: #6b6e75; --edge-2: #3a3c42; --edge-3: #1d1e22; --back: #2a2b30; }
.hk-iphone--blue  { --edge-1: #c9cdfa; --edge-2: #8e95e6; --edge-3: #5c63c4; --back: #9aa1ee; }
.hk-iphone__body {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) + var(--tx, 0deg) + var(--sx, 0deg))) rotateY(calc(var(--ry) + var(--ty, 0deg) + var(--sy, 0deg))) rotateZ(var(--rz));
  will-change: transform;
}
/* extruded side — JS stacks thin outlines behind the face */
.hk-iphone__layer {
  position: absolute;
  inset: 0;
  border-radius: var(--br);
  background: linear-gradient(90deg, var(--edge-3), var(--edge-1) 22%, var(--edge-2) 50%, var(--edge-1) 78%, var(--edge-3));
  transform: translateZ(calc(var(--depth) * var(--k, 1) * -1));
  backface-visibility: hidden;
}
.hk-iphone__layer--back { background: var(--back); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
/* side buttons ride on the middle layers so they read as real extrusions */
.hk-iphone__layer--btn::before,
.hk-iphone__layer--btn::after {
  content: "";
  position: absolute;
  width: calc(var(--pw) * 0.012);
  border-radius: 2px;
  background: var(--edge-2);
}
.hk-iphone__layer--btn::before {           /* left: Action + volume up / down */
  right: 100%;
  top: 17%;
  height: 26%;
  background: linear-gradient(180deg,
    var(--edge-2) 0 17%, transparent 17% 36%,
    var(--edge-2) 36% 63%, transparent 63% 73%,
    var(--edge-2) 73% 100%);
}
.hk-iphone__layer--btn::after {            /* right: side button + Camera Control */
  left: 100%;
  top: 27%;
  height: 37%;
  background: linear-gradient(180deg,
    var(--edge-2) 0 27%, transparent 27% 78%,
    var(--edge-3) 78% 100%);
}
.hk-iphone__face {
  position: absolute;
  inset: 0;
  padding: var(--ring);
  border-radius: var(--br);
  background: linear-gradient(145deg, var(--edge-1), var(--edge-2) 45%, var(--edge-1) 70%, var(--edge-3));
  transform: translateZ(0.5px);
  backface-visibility: hidden;
}
.hk-iphone__glass {
  position: relative;
  height: 100%;
  padding: var(--bez);
  border-radius: calc(var(--br) - var(--ring));
  background: #050608;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hk-iphone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: var(--sr);
  background: #fff;
  isolation: isolate;
}
.hk-iphone__status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--sw) * 54 / 393);
  padding-inline: calc(var(--sw) * 0.085);
  background: #fff;
  color: #000;
  direction: ltr;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  font-size: calc(var(--sw) * 0.044);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hk-iphone__status svg { height: calc(var(--sw) * 0.03); width: auto; }
.hk-iphone__icons { display: inline-flex; align-items: center; gap: calc(var(--sw) * 0.014); }
.hk-iphone__island {
  position: absolute;
  top: calc(var(--sw) * 11 / 393);
  left: 50%;
  z-index: 3;
  width: calc(var(--sw) * 125 / 393);
  height: calc(var(--sw) * 37 / 393);
  margin-left: calc(var(--sw) * -62.5 / 393);
  border-radius: 999px;
  background: #000;
}
.hk-iphone__island::after {                /* camera lens glint */
  content: "";
  position: absolute;
  right: 22%;
  top: 50%;
  width: 18%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b3550, #0a0c14 60%);
}
.hk-iphone__view { position: relative; height: calc(100% - var(--sw) * 54 / 393); overflow: hidden; }
.hk-iphone__view img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top;
}
.hk-iphone__view img + img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--zb-ease); }
.hk-iphone__view img.is-on { opacity: 1; }
.hk-iphone__view img.is-off { opacity: 0; }
.hk-iphone__home {                          /* home indicator */
  position: absolute;
  bottom: calc(var(--sw) * 8 / 393);
  left: 50%;
  z-index: 3;
  width: 35%;
  height: calc(var(--sw) * 5 / 393);
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.85);
}
.hk-iphone__glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.06) 100%);
  pointer-events: none;
  transform: translateX(var(--gx, 0%));
}
/* soft contact shadow (gradient, not a blur filter) */
.hk-iphone__shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: calc(var(--pw) * -0.12);
  height: calc(var(--pw) * 0.16);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0));
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Laptop (minimal, 16:10)
   -------------------------------------------------------------------------- */
.hk-laptop {
  --lw: 760px;
  --lid-r: calc(var(--lw) * 0.026);
  --frame: calc(var(--lw) * 0.006);
  --bz: calc(var(--lw) * 0.018);
  --open: 0deg;             /* extra lid lean */
  --rx: 14deg;
  --ry: 0deg;
  position: relative;
  width: var(--lw);
  max-width: 100%;
  aspect-ratio: 16 / 11.4;
  perspective: calc(var(--lw) * 2.6);
  perspective-origin: 50% 20%;
}
.hk-laptop__rig {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) + var(--tx, 0deg) + var(--sx, 0deg))) rotateY(calc(var(--ry) + var(--ty, 0deg) + var(--sy, 0deg)));
  will-change: transform;
}
.hk-laptop__lid {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 0;
  aspect-ratio: 16 / 10.4;
  padding: var(--frame);
  border-radius: var(--lid-r);
  background: linear-gradient(160deg, #e9ebef, #c4c8cf 55%, #dfe2e7);
  transform-origin: 50% 100%;
  transform: rotateX(var(--open));
  transform-style: preserve-3d;
}
.hk-laptop__lid::after {                    /* lid thickness */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #b9bdc5;
  transform: translateZ(-4px);
}
.hk-laptop__bezel {
  position: relative;
  height: 100%;
  padding: var(--bz);
  border-radius: calc(var(--lid-r) - var(--frame));
  background: #07080b;
  transform: translateZ(0.5px);
}
.hk-laptop__notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 11%;
  height: calc(var(--bz) * 1.15);
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #07080b;
  z-index: 3;
}
.hk-laptop__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--lid-r) * 0.35);
  background: #f6f7fb;
}
.hk-laptop__screen img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top right;
  transition: opacity 0.7s var(--zb-ease), transform 1.2s var(--zb-ease-out);
}
.hk-laptop__screen img:not(.is-on) { opacity: 0; transform: scale(1.02); }
.hk-laptop__screen img:only-child { opacity: 1; transform: none; }
.hk-laptop__glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
}
.hk-laptop__base {
  position: absolute;
  left: 0;
  right: 0;
  top: 78.4%;
  height: 3.4%;
  border-radius: 3px 3px 18px 18px / 3px 3px 12px 12px;
  background: linear-gradient(180deg, #e6e8ec 0%, #c7cbd2 55%, #a9aeb7 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
.hk-laptop__base::before {                  /* opening scoop */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 14%;
  height: 45%;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #a6abb4, #c9cdd3);
}
.hk-laptop__shadow {
  position: absolute;
  left: -3%;
  right: -3%;
  top: 77%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 23, 42, 0.26), rgba(15, 23, 42, 0));
  pointer-events: none;
}

/* Flat window frame for in-page screenshots */
.hk-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--zb-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--zb-shadow-card);
}
.hk-window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--zb-line);
  background: #fbfbfd;
  direction: ltr;
}
.hk-window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e5ea; }
.hk-window__bar span {
  flex: 1;
  max-width: 280px;
  margin-inline: auto;
  padding: 4px 12px;
  border-radius: 8px;
  background: #f0f1f5;
  color: var(--zb-muted-2);
  font-size: 11.5px;
  text-align: center;
}
.hk-window img { display: block; width: 100%; height: auto; }

body.hk-page { background: #fff; overflow-x: clip; }
.hk, .hk *, .hk *::before, .hk *::after,
[class^="hk-"], [class^="hk-"] *, [class^="hk-"]::before, [class^="hk-"]::after { box-sizing: border-box; }

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */
.hk { position: relative; }
.hk-sec { position: relative; padding-block: var(--zb-section-y); }
.hk-sec--paper { background: var(--zb-paper); }
.hk-sec--night { background: var(--zb-night); color: #fff; }
.hk-sec--night .zb-h2 { color: #fff; }
.hk-sec--night .zb-lead { color: rgba(226, 230, 245, 0.68); }
.hk-head { margin-bottom: clamp(36px, 5vw, 64px); }
.hk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(70, 66, 252, 0.08);
  color: var(--zb-indigo);
  font-size: 12.5px;
  font-weight: 700;
}
.hk-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(70, 66, 252, 0.12), rgba(85, 216, 255, 0.12));
  color: var(--zb-indigo);
  transition: transform 0.6s var(--zb-ease-spring), background-color 0.4s, color 0.4s;
}
.hk-ico svg { width: 23px; height: 23px; }
.hk-sec--night .hk-ico { background: rgba(255, 255, 255, 0.06); color: #c9c6ff; }
.hk-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--zb-indigo);
  font-weight: 700;
  text-decoration: none;
}
.hk-link svg { width: 18px; height: 18px; transition: transform 0.45s var(--zb-ease-out); }
.hk-link:hover svg { transform: translateX(-5px); }
.hk-sec--night .hk-link { color: var(--zb-gold); }
.hk-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   HERO — copy + laptop + iPhone composition
   -------------------------------------------------------------------------- */
.hk-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(120px, 15vh, 168px) clamp(56px, 8vh, 96px);
  background:
    radial-gradient(55% 60% at 12% 18%, rgba(85, 216, 255, 0.18), transparent 62%),
    radial-gradient(60% 70% at 90% 90%, rgba(70, 66, 252, 0.14), transparent 62%),
    linear-gradient(180deg, #f6f7ff 0%, #eef1ff 100%);
}
.hk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(70, 66, 252, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 66, 252, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000, transparent 75%);
}
.hk-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: clamp(100px, 16vh, 170px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 92%);
}
.hk-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hk-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hk-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 16px;
  border: 1px solid rgba(70, 66, 252, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--zb-ink-2);
  font-size: 13.5px;
  font-weight: 600;
}
.hk-hero__badge b {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--zb-indigo);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.hk-hero__title {
  margin: 0 !important;
  color: var(--zb-ink);
  font-size: clamp(38px, 4.6vw, 70px) !important;
  font-weight: 900 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.03em;
}
.hk-hero__title .hk-hl { color: var(--zb-indigo); }
.hk-hero__lead { max-width: 560px; margin: 0; color: var(--zb-muted); font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.95; }
.hk-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hk-hero__chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--zb-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--zb-ink-2);
  font-size: 13px;
  font-weight: 600;
}
.hk-hero__chips svg { width: 15px; height: 15px; color: var(--zb-indigo); }
.hk-hero__stage {
  position: relative;
  min-height: clamp(380px, 46vw, 600px);
  display: grid;
  place-items: center;
}
.hk-hero__stage .hk-laptop { --lw: min(640px, 43vw); --rx: 8deg; --ry: -22deg; margin-inline-start: auto; }
.hk-hero__stage .hk-iphone {
  --pw: clamp(150px, 13vw, 210px);
  --ry: 22deg;
  --rx: 4deg;
  position: absolute;
  left: 2%;
  bottom: 4%;
  z-index: 3;
}
.hk-float {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  color: var(--zb-ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  animation: hkFloat 6s ease-in-out infinite;
}
.hk-float small { display: block; color: var(--zb-muted); font-size: 11.5px; font-weight: 500; }
.hk-float .hk-ico { width: 36px; height: 36px; border-radius: 11px; }
.hk-float .hk-ico svg { width: 18px; height: 18px; }
.hk-float--a { top: 6%; right: 2%; }
.hk-float--b { bottom: 14%; right: -2%; animation-delay: -3s; }
.hk-float--gold .hk-ico { background: linear-gradient(150deg, #fff8e8, #ffefcc); color: var(--zb-gold-deep); }
@keyframes hkFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 991.98px) {
  .hk-hero__inner { grid-template-columns: 1fr; }
  .hk-hero__copy { align-items: center; text-align: center; }
  .hk-hero__chips, .hk-actions { justify-content: center; }
  .hk-hero__stage { min-height: 0; padding-bottom: 40px; }
  .hk-hero__stage .hk-laptop { --lw: min(640px, 88vw); margin-inline: auto; transform: none; }
  .hk-hero__stage .hk-iphone { --pw: clamp(110px, 24vw, 170px); left: 0; bottom: 0; }
  .hk-float--a { right: 0; top: -4%; }
  .hk-float--b { display: none; }
}

/* --------------------------------------------------------------------------
   DUO — two panels on one data set (segmented switch)
   -------------------------------------------------------------------------- */
.hk-switch {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 5px;
  border: 1px solid var(--zb-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--zb-shadow-soft);
}
.hk-switch__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  right: 5px;
  width: calc((100% - 10px) / var(--n, 2));
  border-radius: 999px;
  background: var(--zb-ink);
  transform: translateX(calc(var(--i, 0) * -100%));
  transition: transform 0.6s var(--zb-ease-out);
}
.hk-switch button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 0;
  background: none;
  color: var(--zb-muted);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.4s;
}
.hk-switch button svg { width: 18px; height: 18px; }
.hk-switch button[aria-selected="true"] { color: #fff; }
.hk-sec--night .hk-switch { background: rgba(255, 255, 255, 0.05); border-color: var(--zb-night-line); box-shadow: none; }
.hk-sec--night .hk-switch__thumb { background: #fff; }
.hk-sec--night .hk-switch button { color: rgba(226, 230, 245, 0.7); }
.hk-sec--night .hk-switch button[aria-selected="true"] { color: var(--zb-ink); }

.hk-duo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(32px, 4vw, 52px);
}
.hk-duo__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 40vw, 540px);
}
.hk-duo__stage > * { grid-area: 1 / 1; transition: opacity 0.6s var(--zb-ease), transform 0.9s var(--zb-ease-out); }
.hk-duo__stage .hk-laptop { --lw: min(640px, 46vw); }
.hk-duo__stage .hk-iphone { --pw: clamp(200px, 19vw, 270px); }
.hk-duo [data-pane]:not(.is-on) { opacity: 0; transform: translateY(26px) scale(0.96); pointer-events: none; }
.hk-duo__panes { display: grid; }
.hk-duo__panes > [data-pane] { grid-area: 1 / 1; }
.hk-duo__title { margin: 0 0 10px !important; color: var(--zb-ink); font-size: clamp(22px, 2vw, 30px) !important; font-weight: 800 !important; }
.hk-duo__text { margin: 0 0 22px; color: var(--zb-muted); line-height: 1.9; }
.hk-checks { display: flex; flex-direction: column; gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; }
.hk-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--zb-line);
  border-radius: 18px;
  background: #fff;
  color: var(--zb-ink-2);
  font-size: 15px;
  line-height: 1.75;
  transition: transform 0.5s var(--zb-ease-out), border-color 0.4s, box-shadow 0.5s;
}
.hk-checks li:hover { transform: translateX(-4px); border-color: rgba(70, 66, 252, 0.25); box-shadow: var(--zb-shadow-soft); }
.hk-checks li b { display: block; color: var(--zb-ink); font-weight: 800; }
.hk-checks li > svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--zb-indigo); }
@media (max-width: 991.98px) {
  .hk-duo__grid { grid-template-columns: 1fr; }
  .hk-duo__stage { min-height: 0; padding-block: 12px 20px; }
  .hk-duo__stage .hk-laptop { --lw: min(560px, 88vw); }
}

/* --------------------------------------------------------------------------
   FLOW — the life of one trade (sticky stage + progress rail)
   -------------------------------------------------------------------------- */
.hk-flow__wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.hk-flow__steps { position: relative; padding-right: 34px; }
.hk-flow__rail {
  position: absolute;
  top: 18px;
  bottom: 18px;
  right: 11px;
  width: 2px;
  border-radius: 2px;
  background: var(--zb-line-2);
}
.hk-flow__rail i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--zb-gold), var(--zb-indigo));
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}
.hk-flow__step {
  position: relative;
  min-height: 54vh;
  padding-block: 10px 40px;
  opacity: 0.35;
  transition: opacity 0.5s var(--zb-ease);
}
.hk-flow__step:last-child { min-height: 0; }
.hk-flow__step.is-on { opacity: 1; }
.hk-flow__dot {
  position: absolute;
  top: 16px;
  right: -34px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--zb-line-2);
  transition: border-color 0.4s, background-color 0.4s, transform 0.5s var(--zb-ease-spring);
}
.hk-flow__dot::after {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--zb-line-2);
  -webkit-mask: var(--zb-x-mask) center / contain no-repeat;
  mask: var(--zb-x-mask) center / contain no-repeat;
  transition: background-color 0.4s;
}
.hk-flow__step.is-on .hk-flow__dot { border-color: var(--zb-indigo); background: var(--zb-indigo); transform: scale(1.15); }
.hk-flow__step.is-on .hk-flow__dot::after { background: #fff; }
.hk-flow__n { color: var(--zb-gold-deep); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.hk-flow__title { margin: 6px 0 10px !important; color: var(--zb-ink); font-size: clamp(22px, 2.1vw, 32px) !important; font-weight: 800 !important; line-height: 1.3 !important; }
.hk-flow__text { max-width: 460px; margin: 0; color: var(--zb-muted); font-size: var(--zb-body); line-height: 1.95; }
.hk-flow__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hk-flow__chips span { padding: 5px 11px; border-radius: 999px; background: var(--zb-paper); color: var(--zb-ink-2); font-size: 12.5px; font-weight: 600; }
.hk-flow__stage {
  position: sticky;
  top: max(96px, calc(50vh - 260px));
  display: grid;
  place-items: center;
  min-height: 420px;
}
.hk-flow__stage .hk-laptop { --lw: min(680px, 48vw); --rx: 8deg; }
.hk-flow__label {
  position: absolute;
  bottom: 2%;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--zb-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transform: translateX(-50%);
  white-space: nowrap;
}
.hk-flow__label b { color: var(--zb-gold); }
@media (max-width: 991.98px) {
  .hk-flow__wrap { grid-template-columns: 1fr; }
  .hk-flow__stage { position: relative; top: 0; order: -1; min-height: 0; }
  .hk-flow__stage .hk-laptop { --lw: min(560px, 90vw); }
  .hk-flow__step { min-height: 0; opacity: 1; padding-bottom: 28px; }
  .hk-flow__label { display: none; }
}

/* --------------------------------------------------------------------------
   CAPS — 15 capabilities as a numbered periodic grid
   -------------------------------------------------------------------------- */
.hk-caps__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hk-cap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--zb-line);
  border-radius: 24px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.6s var(--zb-ease-out), box-shadow 0.6s var(--zb-ease-out), border-color 0.4s;
}
.hk-cap:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--zb-shadow-hover); }
.hk-cap:hover .hk-ico { transform: rotate(-8deg) scale(1.08); background: var(--zb-indigo); color: #fff; }
.hk-cap__n {
  position: absolute;
  top: 16px;
  left: 18px;
  color: var(--zb-muted-2);
  font-family: var(--zb-font-display);
  font-size: 13px;
  font-weight: 800;
  transition: color 0.4s;
}
.hk-cap:hover .hk-cap__n { color: var(--zb-gold-deep); }
.hk-cap__title { margin: 4px 0 0 !important; color: var(--zb-ink); font-size: 16px !important; font-weight: 800 !important; line-height: 1.55 !important; }
.hk-cap__desc { margin: 0; color: var(--zb-muted); font-size: 13.5px; line-height: 1.8; }
.hk-cap::after {
  content: "";
  position: absolute;
  inset-inline: 20px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--zb-gold), var(--zb-indigo));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--zb-ease-out);
}
.hk-cap:hover::after { transform: scaleX(1); }
.hk-caps__foot { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 1199.98px) { .hk-caps__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .hk-caps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hk-cap { min-height: 0; padding: 16px; border-radius: 20px; }
  .hk-cap__desc { display: none; }
  .hk-cap .hk-ico { width: 40px; height: 40px; border-radius: 12px; }
}

/* --------------------------------------------------------------------------
   SPOTLIGHT — annotated price-management screen (dark)
   -------------------------------------------------------------------------- */
.hk-spot__frame {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  perspective: 1800px;
}
.hk-spot__screen {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.03);
  transform-origin: 50% 0%;
  will-change: transform;
}
.hk-spot__screen img { display: block; width: 100%; height: auto; }
.hk-pin {
  position: absolute;
  z-index: 2;
  width: 0;
  height: 0;
}
.hk-pin__dot {
  position: absolute;
  left: -15px;
  top: -15px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--zb-indigo);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 0 6px rgba(70, 66, 252, 0.22), 0 10px 24px rgba(70, 66, 252, 0.4);
  cursor: pointer;
}
.hk-pin__dot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(70, 66, 252, 0.5);
  animation: hkPing 2.4s var(--zb-ease-out) infinite;
}
@keyframes hkPing { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.hk-pin__tip {
  position: absolute;
  top: 22px;
  left: 50%;
  width: max-content;
  max-width: 230px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--zb-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  text-align: right;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, 6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.45s var(--zb-ease-out), visibility 0s 0.3s;
  pointer-events: none;
}
.hk-pin.is-on .hk-pin__tip,
.hk-pin:hover .hk-pin__tip,
.hk-pin__dot:focus-visible + .hk-pin__tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.hk-pin.is-on .hk-pin__dot { background: var(--zb-gold); color: #2a1a00; box-shadow: 0 0 0 6px rgba(240, 180, 60, 0.25), 0 10px 24px rgba(240, 180, 60, 0.4); }
.hk-spot__legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 1120px;
  margin: clamp(24px, 3vw, 40px) auto 0;
  padding: 0;
  list-style: none;
  counter-reset: pin;
}
.hk-spot__legend li {
  counter-increment: pin;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--zb-night-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(226, 230, 245, 0.78);
  font-size: 13.5px;
  line-height: 1.75;
  cursor: default;
  transition: border-color 0.4s, background-color 0.4s;
}
.hk-spot__legend li::before {
  content: counter(pin, persian);
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(70, 66, 252, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.hk-spot__legend li.is-on { border-color: rgba(240, 180, 60, 0.45); background: rgba(240, 180, 60, 0.06); color: #fff; }
.hk-spot__legend li.is-on::before { background: var(--zb-gold); color: #2a1a00; }
@media (max-width: 991.98px) {
  .hk-spot__legend { grid-template-columns: 1fr 1fr; }
  .hk-pin__tip { display: none; }
  .hk-pin__dot { left: -11px; top: -11px; width: 22px; height: 22px; font-size: 10px; }
}

/* --------------------------------------------------------------------------
   DOCS — delivery evidence cards that fan out on scroll
   -------------------------------------------------------------------------- */
.hk-docs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hk-docs__fan {
  position: relative;
  height: clamp(360px, 36vw, 470px);
}
.hk-doc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(270px, 62vw);
  margin: -170px 0 0 calc(min(270px, 62vw) / -2);
  padding: 20px;
  border: 1px solid var(--zb-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  transform: rotate(var(--r, 0deg)) translate(var(--x, 0), var(--y, 0));
  transform-origin: 50% 120%;
  will-change: transform;
}
.hk-doc__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hk-doc__head b { color: var(--zb-ink); font-size: 15px; font-weight: 800; }
.hk-doc__rows { display: flex; flex-direction: column; gap: 10px; }
.hk-doc__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--zb-muted); font-size: 12.5px; }
.hk-doc__bar { flex: 1; max-width: 55%; height: 8px; border-radius: 6px; background: linear-gradient(90deg, #eef0f6, #e3e6ef); }
.hk-doc__sign { display: flex; gap: 10px; margin-top: 18px; }
.hk-doc__sign span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(22, 163, 106, 0.08);
  color: #10804f;
  font-size: 12px;
  font-weight: 700;
}
.hk-doc__sign svg { width: 14px; height: 14px; }
.hk-doc__img {
  height: 92px;
  margin-bottom: 14px;
  border-radius: 14px;
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(240, 180, 60, 0.55), transparent 70%),
    linear-gradient(180deg, #fff7e6, #ffe9bf);
  display: grid;
  place-items: center;
  color: var(--zb-gold-deep);
}
.hk-doc__img svg { width: 40px; height: 40px; }
.hk-docs__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.hk-docs__list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--zb-paper); color: var(--zb-ink-2); font-size: 14px; font-weight: 600; }
.hk-docs__list svg { flex: none; width: 20px; height: 20px; color: var(--zb-indigo); }
@media (max-width: 991.98px) {
  .hk-docs__grid { grid-template-columns: 1fr; }
  .hk-docs__fan { order: -1; height: 400px; }
}
@media (max-width: 575.98px) { .hk-docs__list { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   AUDIENCE — six business types (bento with a hero tile)
   -------------------------------------------------------------------------- */
.hk-aud__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(170px, auto);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hk-aud {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--zb-line);
  border-radius: 26px;
  background: #fff;
  transition: transform 0.6s var(--zb-ease-out), box-shadow 0.6s var(--zb-ease-out);
}
.hk-aud:hover { transform: translateY(-6px); box-shadow: var(--zb-shadow-hover); }
.hk-aud .hk-ico { margin-bottom: auto; }
.hk-aud__title { margin: 14px 0 0 !important; color: var(--zb-ink); font-size: 18px !important; font-weight: 800 !important; }
.hk-aud__text { margin: 0; color: var(--zb-muted); font-size: 14px; line-height: 1.85; }
.hk-aud--hero {
  grid-column: span 2;
  grid-row: span 2;
  padding: clamp(24px, 3vw, 36px);
  border: 0;
  color: #fff;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(85, 216, 255, 0.35), transparent 60%),
    linear-gradient(160deg, #4f4bff, var(--zb-indigo) 40%, #1f1aa8);
}
.hk-aud--hero .hk-aud__title { color: #fff; font-size: clamp(24px, 2.4vw, 34px) !important; line-height: 1.3 !important; }
.hk-aud--hero .hk-aud__text { color: rgba(255, 255, 255, 0.82); font-size: 15.5px; max-width: 440px; }
.hk-aud--hero .hk-ico { background: rgba(255, 255, 255, 0.16); color: #fff; }
.hk-aud--hero::before {
  content: "";
  position: absolute;
  top: -12%;
  left: -10%;
  width: 62%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.08);
  -webkit-mask: var(--zb-x-mask) center / contain no-repeat;
  mask: var(--zb-x-mask) center / contain no-repeat;
  transition: transform 1.2s var(--zb-ease-out);
}
.hk-aud--hero:hover::before { transform: rotate(45deg); }
@media (max-width: 991.98px) { .hk-aud__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .hk-aud__grid { grid-template-columns: 1fr; }
  .hk-aud--hero { grid-column: auto; grid-row: auto; min-height: 260px; }
}

/* --------------------------------------------------------------------------
   GUARD — team control & account security (dark console)
   -------------------------------------------------------------------------- */
.hk-guard__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.hk-guard__head { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 18px; }
.hk-console {
  overflow: hidden;
  border: 1px solid var(--zb-night-line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.hk-console__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--zb-night-line);
  color: rgba(226, 230, 245, 0.55);
  font-size: 12.5px;
  direction: ltr;
}
.hk-console__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.hk-console__bar span { margin-left: auto; direction: rtl; }
.hk-console__list { margin: 0; padding: 6px; list-style: none; }
.hk-console__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 18px;
  transition: background-color 0.4s;
}
.hk-console__item + .hk-console__item { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.hk-console__item:hover { background: rgba(255, 255, 255, 0.04); }
.hk-console__item b { display: block; color: #fff; font-size: 15.5px; font-weight: 700; }
.hk-console__item small { display: block; margin-top: 2px; color: rgba(226, 230, 245, 0.6); font-size: 13.5px; line-height: 1.75; }
.hk-console__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 130, 0.12);
  color: #5ee0a5;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.hk-console__state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(94, 224, 165, 0.18); }
@media (max-width: 991.98px) {
  .hk-guard__grid { grid-template-columns: 1fr; }
  .hk-guard__head { position: static; }
}
@media (max-width: 575.98px) { .hk-console__state { display: none; } .hk-console__item { grid-template-columns: auto 1fr; } }

/* --------------------------------------------------------------------------
   NOTE — features that depend on configuration (honest strip)
   -------------------------------------------------------------------------- */
.hk-note {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px dashed rgba(70, 66, 252, 0.28);
  border-radius: 30px;
  background: linear-gradient(180deg, #fafbff, #f4f5ff);
}
.hk-note__title { margin: 0 0 10px !important; color: var(--zb-ink); font-size: clamp(20px, 1.8vw, 26px) !important; font-weight: 800 !important; }
.hk-note__text { margin: 0; color: var(--zb-muted); line-height: 1.9; }
.hk-note__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hk-note__list li { padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--zb-line); color: var(--zb-muted); font-size: 13.5px; line-height: 1.8; }
.hk-note__list b { display: block; color: var(--zb-ink); font-size: 14.5px; }
@media (max-width: 991.98px) { .hk-note { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .hk-note__list { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   CTA (Hamkar flavour of the shared dark card)
   -------------------------------------------------------------------------- */
.hk-cta__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  overflow: hidden;
  padding: clamp(36px, 5.5vw, 76px);
  border-radius: clamp(28px, 3.6vw, 48px);
  color: #fff;
  background:
    radial-gradient(50% 80% at 0% 100%, rgba(85, 216, 255, 0.18), transparent 60%),
    radial-gradient(60% 90% at 100% 0%, rgba(70, 66, 252, 0.5), transparent 60%),
    var(--zb-night);
  isolation: isolate;
}
.hk-cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000, transparent 75%);
}
.hk-cta__copy { display: flex; flex-direction: column; gap: 18px; }
.hk-cta__copy .zb-h2 { color: #fff; }
.hk-cta__copy .zb-lead { color: rgba(226, 230, 245, 0.72); }
.hk-cta__visual { display: grid; place-items: center; min-height: 320px; }
.hk-cta__visual .hk-iphone { --pw: clamp(170px, 15vw, 230px); --ry: -24deg; --rx: 8deg; --rz: -4deg; }
@media (max-width: 991.98px) {
  .hk-cta__card { grid-template-columns: 1fr; text-align: center; }
  .hk-cta__copy { align-items: center; }
  .hk-cta__visual { min-height: 0; padding-top: 10px; }
}

/* --------------------------------------------------------------------------
   Edition switch (shared pages: security, FAQ) + homepage products chooser
   -------------------------------------------------------------------------- */
.hk-edition { position: sticky; top: 86px; z-index: 30; display: flex; justify-content: center; padding-block: 8px; pointer-events: none; transition: top 0.6s var(--zb-ease-out); }
.hk-edition__in { display: flex; justify-content: center; }
.hk-edition .hk-switch { pointer-events: auto; }
html.zb-header-hidden .hk-edition { top: 14px; }
/* overlay variant: floats over the hero without pushing it down */
.hk-edition--overlay { height: 0; padding: 0; }
.hk-edition--overlay .hk-edition__in { position: absolute; top: 0; left: 0; right: 0; }
.hk-edition--faq { margin-bottom: clamp(18px, 2.4vw, 32px); }
.pg-theme-dark .hk-switch, .hk-hero--dark .hk-switch { background: rgba(12, 16, 34, 0.86); border-color: var(--zb-night-line); box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35); }
.pg-theme-dark .hk-switch__thumb { background: #fff; }
.pg-theme-dark .hk-switch button { color: rgba(226, 230, 245, 0.7); }
.pg-theme-dark .hk-switch button[aria-selected="true"] { color: var(--zb-ink); }
.pg-theme-dark .sec__hero, .pg-theme-dark .hk-hero { padding-top: calc(clamp(120px, 15vh, 160px) + 48px); }
.hk-faq-more { margin-top: 24px; }
.hk-edition-pane[hidden] { display: none !important; }
.hk-edition-pane { animation: hkPaneIn 0.7s var(--zb-ease-out); }
@keyframes hkPaneIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Products chooser (homepage) — two editions, the hovered one widens */
.hk-pick__row { display: flex; gap: 14px; min-height: clamp(460px, 44vw, 560px); }
.hk-pick {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
  border-radius: 34px;
  color: inherit;
  text-decoration: none;
  transition: flex-grow 0.9s var(--zb-ease-out), box-shadow 0.6s var(--zb-ease-out);
  isolation: isolate;
}
.hk-pick__row:hover .hk-pick:hover, .hk-pick:focus-visible { flex-grow: 1.45; }
.hk-pick--home { background: radial-gradient(70% 60% at 0% 100%, rgba(240, 180, 60, 0.28), transparent 60%), linear-gradient(170deg, #fffaf0, #fff1d6); }
.hk-pick--hamkar { color: #fff; background: radial-gradient(70% 60% at 100% 0%, rgba(85, 216, 255, 0.35), transparent 60%), linear-gradient(170deg, #4f4bff, var(--zb-indigo) 45%, #1d18a0); }
.hk-pick__kicker { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: var(--zb-gold-deep); font-size: 12.5px; font-weight: 700; }
.hk-pick--hamkar .hk-pick__kicker { background: rgba(255, 255, 255, 0.16); color: #fff; }
.hk-pick__title { margin: 0 !important; font-size: clamp(26px, 2.6vw, 40px) !important; font-weight: 900 !important; line-height: 1.2 !important; color: inherit; }
.hk-pick__text { max-width: 420px; margin: 0; font-size: 15.5px; line-height: 1.9; opacity: 0.8; }
.hk-pick__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hk-pick__list li { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.65); font-size: 12.5px; font-weight: 600; }
.hk-pick--hamkar .hk-pick__list li { background: rgba(255, 255, 255, 0.12); }
.hk-pick__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-weight: 800;
}
.hk-pick__go i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--zb-ink);
  color: #fff;
  transition: transform 0.6s var(--zb-ease-spring);
}
.hk-pick--hamkar .hk-pick__go i { background: #fff; color: var(--zb-indigo); }
.hk-pick__go svg { width: 20px; height: 20px; }
.hk-pick:hover .hk-pick__go i { transform: translateX(-6px) rotate(-8deg); }
.hk-pick__media {
  position: absolute;
  bottom: -6%;
  left: -4%;
  z-index: -1;
  pointer-events: none;
  transition: transform 0.9s var(--zb-ease-out);
}
.hk-pick:hover .hk-pick__media { transform: translateY(-10px); }
.hk-pick--home .hk-pick__media { width: min(46%, 300px); }
.hk-pick--home .hk-pick__media img { display: block; width: 100%; height: auto; }
.hk-pick--hamkar .hk-pick__media { left: -10%; bottom: -10%; }
.hk-pick--hamkar .hk-laptop { --lw: min(470px, 34vw); --rx: 10deg; --ry: 14deg; }
@media (max-width: 991.98px) {
  .hk-pick__row { flex-direction: column; min-height: 0; }
  .hk-pick { min-height: 440px; }
  .hk-pick__row:hover .hk-pick:hover { flex-grow: 1; }
  .hk-pick--hamkar .hk-laptop { --lw: min(420px, 80vw); }
}

/* --------------------------------------------------------------------------
   TOUR — homepage product tour (tabs drive the laptop screen)
   -------------------------------------------------------------------------- */
.hk-tour__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 clamp(24px, 3vw, 40px); padding: 0; list-style: none; }
.hk-tour__tab {
  position: relative;
  overflow: hidden;
  padding: 10px 18px;
  border: 1px solid var(--zb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--zb-muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.4s, border-color 0.4s;
}
.hk-tour__tab::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--zb-gold), var(--zb-indigo));
  transform: scaleX(var(--p, 0));
  transform-origin: right;
}
.hk-tour__tab[aria-selected="true"] { color: var(--zb-ink); border-color: rgba(70, 66, 252, 0.3); }
.hk-tour__stage { position: relative; display: grid; place-items: center; }
.hk-tour__stage .hk-laptop { --lw: min(980px, 88vw); --rx: 18deg; }
.hk-tour__stage .hk-iphone { --pw: clamp(120px, 14vw, 220px); --ry: 20deg; position: absolute; left: 4%; bottom: 2%; }
.hk-tour__caption { max-width: 640px; margin: clamp(18px, 2.4vw, 28px) auto 0; color: var(--zb-muted); text-align: center; line-height: 1.9; min-height: 3.8em; }
@media (max-width: 767.98px) { .hk-tour__stage .hk-iphone { display: none; } }

/* --------------------------------------------------------------------------
   FEATURES page — sticky index + capability chapters
   -------------------------------------------------------------------------- */
.hk-feat__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hk-index {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--zb-line);
  border-radius: 24px;
  background: #fff;
  scrollbar-width: none;
}
.hk-index::-webkit-scrollbar { display: none; }
.hk-index__title { padding: 8px 10px 10px; color: var(--zb-muted-2); font-size: 12.5px; font-weight: 700; }
.hk-index ol { margin: 0; padding: 0; list-style: none; }
.hk-index a {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--zb-muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.3s, background-color 0.3s;
}
.hk-index a span { flex: none; min-width: 20px; color: var(--zb-muted-2); font-weight: 800; }
.hk-index a:hover { color: var(--zb-ink); background: var(--zb-paper); }
.hk-index a.is-on { color: var(--zb-indigo); background: rgba(70, 66, 252, 0.07); }
.hk-index a.is-on span { color: var(--zb-gold-deep); }
.hk-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--zb-line);
  scroll-margin-top: 90px;
}
.hk-chapter:first-child { padding-top: 0; }
.hk-chapter:last-child { border-bottom: 0; }
.hk-chapter__n { color: var(--zb-gold-deep); font-family: var(--zb-font-display); font-size: 14px; font-weight: 800; }
.hk-chapter__title { margin: 8px 0 12px !important; color: var(--zb-ink); font-size: clamp(24px, 2.3vw, 34px) !important; font-weight: 800 !important; line-height: 1.3 !important; }
.hk-chapter__intro { margin: 0 0 22px; color: var(--zb-muted); line-height: 1.95; }
.hk-sub { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hk-sub li { padding: 14px 0; border-top: 1px solid var(--zb-line); }
.hk-sub h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px !important; color: var(--zb-ink); font-size: 16px !important; font-weight: 800 !important; }
.hk-sub h3::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--zb-indigo);
  -webkit-mask: var(--zb-x-mask) center / contain no-repeat;
  mask: var(--zb-x-mask) center / contain no-repeat;
}
.hk-sub p { margin: 0; color: var(--zb-muted); font-size: 14.5px; line-height: 1.9; }
.hk-chapter__media { position: sticky; top: 120px; }
.hk-chapter__media .hk-window { transform: perspective(1600px) rotateY(-5deg) rotateX(3deg); transition: transform 0.9s var(--zb-ease-out); }
.hk-chapter__media .hk-window:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.hk-chapter__media--phone { display: grid; place-items: center; }
.hk-chapter__media--phone .hk-iphone { --pw: clamp(210px, 20vw, 270px); }
.hk-chapter__note { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #fff9ec; color: #8a5a12; font-size: 13.5px; line-height: 1.85; }
@media (max-width: 1099.98px) {
  .hk-feat__layout { grid-template-columns: 1fr; }
  .hk-index { position: relative; top: 0; max-height: none; }
  .hk-index ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 991.98px) {
  .hk-chapter { grid-template-columns: 1fr; }
  .hk-chapter__media { position: relative; top: 0; order: -1; }
  .hk-chapter__media .hk-window { transform: none; }
}

/* Mini UIs drawn in CSS for chapters without a fitting screen */
.hk-mini {
  padding: 18px;
  border: 1px solid var(--zb-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--zb-shadow-card);
}
.hk-mini__title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--zb-ink); font-size: 14.5px; font-weight: 800; }
.hk-mini__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--zb-paper);
  color: var(--zb-ink-2);
  font-size: 13.5px;
  font-weight: 600;
}
.hk-mini__row + .hk-mini__row { margin-top: 8px; }
.hk-mini__row small { display: block; color: var(--zb-muted); font-size: 12px; font-weight: 500; }
.hk-mini__row .hk-ico { width: 36px; height: 36px; border-radius: 11px; }
.hk-mini__row .hk-ico svg { width: 18px; height: 18px; }
.hk-mini__pill { margin-inline-start: auto; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.hk-mini__pill--warn { background: rgba(240, 180, 60, 0.16); color: var(--zb-gold-deep); }
.hk-mini__pill--bad { background: rgba(239, 68, 68, 0.1); color: #c43c3c; }
.hk-mini__pill--ok { background: rgba(34, 197, 130, 0.12); color: #10804f; }
.hk-mini__pill--info { background: rgba(70, 66, 252, 0.1); color: var(--zb-indigo); }
.hk-mini__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hk-mini__btns span { padding: 8px 14px; border: 1px solid var(--zb-line); border-radius: 12px; background: #fff; color: var(--zb-ink-2); font-size: 12.5px; font-weight: 700; }
.hk-mini__btns span:first-child { background: var(--zb-indigo); border-color: var(--zb-indigo); color: #fff; }

/* --------------------------------------------------------------------------
   PORTAL page — fanned phones + sticky phone story
   -------------------------------------------------------------------------- */
.hk-fan {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: clamp(420px, 46vw, 640px);
  margin-top: clamp(28px, 4vw, 56px);
}
.hk-fan__slot { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); }
.hk-fan .hk-iphone { --pw: clamp(170px, 17vw, 260px); }
.hk-fan__slot:nth-child(1) { transform: translateX(-112%) translateY(4%); z-index: 1; }
.hk-fan__slot:nth-child(1) .hk-iphone { --ry: 26deg; --rz: 4deg; }
.hk-fan__slot:nth-child(2) { bottom: 8%; z-index: 2; }
.hk-fan__slot:nth-child(2) .hk-iphone { --ry: 0deg; --rx: 4deg; }
.hk-fan__slot:nth-child(3) { transform: translateX(12%) translateY(4%); z-index: 1; }
.hk-fan__slot:nth-child(3) .hk-iphone { --ry: -26deg; --rz: -4deg; }
@media (max-width: 575.98px) {
  .hk-fan { height: 420px; }
  .hk-fan .hk-iphone { --pw: 150px; }
  .hk-fan__slot:nth-child(1) { transform: translateX(-108%) translateY(6%); }
  .hk-fan__slot:nth-child(3) { transform: translateX(8%) translateY(6%); }
}
.hk-story__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.hk-story__phone {
  position: sticky;
  top: max(96px, calc(50vh - 330px));
  display: grid;
  place-items: center;
  min-height: 600px;
}
.hk-story__phone .hk-iphone { --pw: clamp(240px, 22vw, 300px); }
.hk-story__item { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0.32; transition: opacity 0.5s; }
.hk-story__item:last-child { min-height: 60vh; }
.hk-story__item.is-on { opacity: 1; }
.hk-story__title { margin: 0 !important; color: var(--zb-ink); font-size: clamp(24px, 2.4vw, 36px) !important; font-weight: 800 !important; line-height: 1.3 !important; }
.hk-story__text { margin: 0; color: var(--zb-muted); font-size: var(--zb-body); line-height: 1.95; max-width: 480px; }
.hk-story__pts { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.hk-story__pts li { display: flex; align-items: flex-start; gap: 10px; color: var(--zb-ink-2); font-size: 15px; line-height: 1.75; }
.hk-story__pts svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--zb-indigo); }
.hk-story__inline { display: none; }
@media (max-width: 991.98px) {
  .hk-story__wrap { grid-template-columns: 1fr; }
  .hk-story__phone { display: none; }
  .hk-story__item { min-height: 0; opacity: 1; padding-block: 28px; }
  .hk-story__inline { display: grid; place-items: center; padding: 10px 0 18px; }
  .hk-story__inline .hk-iphone { --pw: min(240px, 62vw); --ry: -10deg; }
}

/* Steps row (portal ordering) */
.hk-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.hk-steps li {
  counter-increment: st;
  position: relative;
  padding: 24px 20px 22px;
  border: 1px solid var(--zb-line);
  border-radius: 24px;
  background: #fff;
}
.hk-steps li::before {
  content: counter(st, persian);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--zb-indigo);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--zb-glow-indigo);
}
.hk-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  left: -12px;
  width: 12px;
  height: 2px;
  background: var(--zb-line-2);
}
.hk-steps b { display: block; margin-bottom: 6px; color: var(--zb-ink); font-size: 16px; font-weight: 800; }
.hk-steps p { margin: 0; color: var(--zb-muted); font-size: 14px; line-height: 1.85; }
@media (max-width: 991.98px) { .hk-steps { grid-template-columns: 1fr 1fr; } .hk-steps li::after { display: none; } }
@media (max-width: 575.98px) { .hk-steps { grid-template-columns: 1fr; } }

/* Feature tiles (portal extras) */
.hk-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hk-tile { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--zb-line); border-radius: 26px; background: #fff; transition: transform 0.6s var(--zb-ease-out), box-shadow 0.6s var(--zb-ease-out); }
.hk-tile:hover { transform: translateY(-6px); box-shadow: var(--zb-shadow-hover); }
.hk-tile:hover .hk-ico { transform: rotate(-8deg) scale(1.08); background: var(--zb-indigo); color: #fff; }
.hk-tile b { color: var(--zb-ink); font-size: 17px; font-weight: 800; }
.hk-tile p { margin: 0; color: var(--zb-muted); font-size: 14.5px; line-height: 1.9; }
@media (max-width: 991.98px) { .hk-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .hk-tiles { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Reduced motion & weak devices
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hk-float, .hk-pin__dot::before { animation: none !important; }
  .hk-iphone__body, .hk-laptop__rig, .hk-pick, .hk-duo__stage > * { transition: none !important; }
}
.hk-sec.zb-offscreen *, .hk-hero.zb-offscreen * { animation-play-state: paused !important; }

/* Buttons on Hamkar pages (same recipe as the homepage) */
.hk .saaslyn-3-btn.btn-v3 {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 54px;
  padding: 6px 6px 6px 26px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.hk .saaslyn-3-btn.btn-v3 .btn-v3__icon { width: 42px; height: 42px; border-radius: 13px; }
.hk .zh-btn-primary.btn-v3 {
  background: var(--zb-indigo);
  color: #fff;
  box-shadow: 0 16px 36px rgba(70, 66, 252, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.hk .zh-btn-light.btn-v3 {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--zb-line-2);
  color: var(--zb-ink);
}

/* Centred hero (features / portal) */
.hk-hero__copy--center { align-items: center; max-width: 920px; margin-inline: auto; text-align: center; }
.hk-hero__copy--center .hk-hero__lead { max-width: 720px; }
.hk-hero__copy--center .hk-actions, .hk-hero__copy--center .hk-hero__chips { justify-content: center; }
.hk-hero--center .hk-hero__title { font-size: clamp(34px, 4.2vw, 64px) !important; }
.hk-hero__wide { display: grid; place-items: center; margin-top: clamp(28px, 4vw, 56px); }
.hk-hero__wide .hk-laptop { --lw: min(940px, 92vw); --rx: 12deg; }
.hk-story__item .hk-tag { align-self: flex-start; }

/* Homepage: trade path line */
.hk-line { position: relative; }
.hk-line__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hk-line__track { position: absolute; top: 24px; right: 24px; left: 24px; height: 2px; border-radius: 2px; background: var(--zb-line-2); }
.hk-line__track i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(270deg, var(--zb-gold), var(--zb-indigo)); transform: scaleX(var(--p, 1)); transform-origin: right; }
.hk-line__step { position: relative; display: flex; flex-direction: column; gap: 6px; }
.hk-line__step .hk-ico { position: relative; background: #fff; border: 1px solid var(--zb-line); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); }
.hk-line__step.is-on .hk-ico { background: var(--zb-indigo); border-color: var(--zb-indigo); color: #fff; transform: scale(1.06); }
.hk-line__step b { margin-top: 12px; color: var(--zb-ink); font-size: 18px; font-weight: 800; }
.hk-line__step span { color: var(--zb-muted); font-size: 14px; line-height: 1.85; }
.hk-line__foot { margin-top: clamp(24px, 3vw, 40px); }
@media (max-width: 991.98px) {
  .hk-line__list { grid-template-columns: 1fr 1fr 1fr; row-gap: 28px; }
  .hk-line__track { display: none; }
}
@media (max-width: 575.98px) { .hk-line__list { grid-template-columns: 1fr 1fr; } }

/* Homepage: FAQ edition panes */
.hk-faq__switch { align-self: flex-start; margin-top: 4px; }
.zh-faq__panes > [data-pane]:not(.is-on) { display: none; }
.zh-faq__panes > [data-pane].is-on { animation: hkPaneIn 0.6s var(--zb-ease-out); }
.zh-faq__more { margin-top: 22px; }
.hk-tour__actions { justify-content: center; margin-top: clamp(20px, 2.6vw, 32px); }
.hk-pick-sec { padding-top: calc(var(--zb-section-y) * 0.9); }
.hk-pick__title, .hk-pick__text, .hk-pick__list { max-width: min(64%, 460px); position: relative; }
@media (max-width: 575.98px) {
  .hk-pick { min-height: 520px; }
  .hk-pick__title, .hk-pick__text, .hk-pick__list { max-width: 100%; }
  .hk-pick--home .hk-pick__media { width: 44%; }
}

/* Dark hero (Hamkar pane of the security page) */
.hk-hero--dark {
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(70, 66, 252, 0.4), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(85, 216, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #0b1030 0%, #060914 100%);
}
.hk-hero--dark::before { background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); }
.hk-hero--dark::after { background: linear-gradient(to bottom, rgba(6, 9, 20, 0), var(--zb-night) 92%); }
.hk-hero--dark .hk-hero__title { color: #fff; }
.hk-hero--dark .hk-hero__lead { color: rgba(226, 230, 245, 0.7); }
.hk-hero--dark .hk-hero__badge { background: rgba(240, 180, 60, 0.1); border-color: rgba(240, 180, 60, 0.3); color: var(--zb-gold-soft); }
.hk-hero--dark .hk-hero__badge b { background: var(--zb-gold); color: #241600; }
.hk-hero--dark .hk-hero__stage .hk-laptop { --lw: min(620px, 44vw); }
@media (max-width: 991.98px) { .hk-hero--dark .hk-hero__stage .hk-laptop { --lw: min(560px, 88vw); } }
