/* ============ תורו — Features: pinned step-by-step (Option A) ============ */

/* section shell */
.feat-pin-section { position: relative; background: var(--bg-2); }
.fhead { text-align: center; max-width: 740px; margin-inline: auto; padding: clamp(70px,9vh,120px) 24px 0; }
.fhead .eyebrow { margin-inline: auto; }
.fhead h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -.01em; margin-block-end: 14px; text-wrap: balance; }
.fhead p { color: var(--text-mid); font-size: 18px; }

.fpin { position: relative; }
.fstage { position: sticky; inset-block-start: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.fstage__glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(48% 50% at 28% 42%, var(--hero-glow), transparent 70%), radial-gradient(40% 45% at 78% 70%, var(--hero-glow2), transparent 72%); }
.fstage__inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; padding-inline: 44px;
  display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 36px; }

/* vertical numbered rail */
.frail { position: relative; display: flex; flex-direction: column; gap: 0; height: 372px; justify-content: space-between; }
.frail::before { content: ""; position: absolute; inset-inline-start: 50%; inset-block: 14px; width: 2px; transform: translateX(-50%); background: var(--border); }
.frail__fill { position: absolute; inset-inline-start: 50%; inset-block-start: 14px; width: 2px; transform: translateX(-50%); height: 0; background: linear-gradient(var(--accent), var(--accent-deep)); transition: height .45s var(--ease); }
.frail button { position: relative; z-index: 2; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; padding: 0; }
.frail .pip { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; font-family: var(--font-display);
  background: var(--bg-2); border: 1.5px solid var(--border); color: var(--text-mut); transition: all .35s var(--ease); }
.frail button.done .pip { border-color: var(--accent); color: var(--accent); }
.frail button.active .pip { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); border-color: transparent; color: #1c0f04; transform: scale(1.16); box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 20%, transparent); }

/* stacked feature items (copy + demo together) */
.fitems { position: relative; display: grid; align-items: center; min-height: 500px; }
.fitem { grid-area: 1 / 1; display: grid; grid-template-columns: 1.04fr 1fr; gap: 48px; align-items: center; will-change: transform, opacity; }
.fitem__copy .knum { font-family: var(--font-display); font-weight: 900; font-size: 15px; letter-spacing: .12em; color: var(--accent); display: block; margin-block-end: 14px; }
.fitem__copy h3 { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.07; letter-spacing: -.01em; margin-block-end: 15px; text-wrap: balance; }
.fitem__copy p { color: var(--text-mid); font-size: 17px; max-width: 42ch; margin-block-end: 22px; }
.fchecks { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; }
.fchecks li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--text-mid); list-style: none; }
.fchecks li svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

.fhint { position: absolute; inset-block-end: 26px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 8px; color: var(--text-mut); font-size: 12.5px; }
.fhint .mouse { width: 22px; height: 35px; border: 1.5px solid var(--text-mut); border-radius: 12px; position: relative; }
.fhint .mouse::after { content: ""; position: absolute; inset-inline-start: 50%; inset-block-start: 6px; transform: translateX(-50%); width: 3px; height: 6px; border-radius: 2px; background: var(--accent); animation: wheelF 1.6s var(--ease) infinite; }
@keyframes wheelF { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,10px); } }

/* =========== demo card =========== */
.demo { position: relative; border-radius: 22px; border: 1px solid var(--border); background: var(--device-screen); overflow: hidden; box-shadow: var(--shadow); width: 100%; max-width: 384px; justify-self: center; }
.demo__top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-block-end: 1px solid var(--border-soft); background: color-mix(in oklab, var(--surface) 40%, transparent); }
.demo__dots { display: flex; gap: 6px; }
.demo__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.demo__dots i:first-child { background: var(--accent); }
.demo__title { font-size: 12.5px; color: var(--text-mut); font-weight: 600; }
.demo__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }

.biz { display: flex; align-items: center; gap: 11px; }
.biz .av { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(145deg, var(--accent-soft), var(--accent-deep)); display: grid; place-items: center; color: #1a0f04; font-weight: 800; }
.biz b { font-size: 15px; } .biz small { display: block; color: var(--text-mut); font-size: 12px; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--border); background: color-mix(in oklab, var(--surface) 55%, transparent); }
.row.on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 14%, transparent); }
.row .nm { font-weight: 700; font-size: 14px; } .row .du { font-size: 11.5px; color: var(--text-mut); }
.row .pr { font-weight: 800; color: var(--accent); }
.row .lk { color: var(--accent); font-weight: 700; font-size: 13px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cell { text-align: center; padding: 11px 0; border-radius: 11px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--border); color: var(--text-mid); }
.cell.on { background: var(--accent); border-color: var(--accent); color: #1c0f04; }

.msg { max-width: 84%; padding: 11px 13px; border-radius: 15px; font-size: 13px; line-height: 1.45; font-weight: 500; }
.msg.out { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #1c0f04; border-end-end-radius: 5px; }
.msg.in { align-self: flex-start; background: color-mix(in oklab, var(--surface) 70%, transparent); border: 1px solid var(--border); border-end-start-radius: 5px; color: var(--text-mid); }
.msg b { display: block; }
.chans { display: flex; gap: 8px; }
.chans span { flex: 1; text-align: center; padding: 10px 0; border-radius: 11px; font-weight: 700; font-size: 12.5px; border: 1px solid var(--border); }
.chans .wa { background: color-mix(in oklab, oklch(0.72 0.16 150) 18%, transparent); border-color: color-mix(in oklab, oklch(0.72 0.16 150) 50%, transparent); }

.member { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 13px; border: 1px solid var(--border); background: color-mix(in oklab, var(--surface) 55%, transparent); }
.member .av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #1c0f04; }
.member b { font-size: 13.5px; } .member small { display: block; color: var(--text-mut); font-size: 11px; }
.member .hrs { margin-inline-start: auto; font-size: 11px; color: var(--text-mid); font-weight: 600; }

.note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: oklch(0.80 0.13 150); font-weight: 600; }
.note svg { width: 16px; height: 16px; }

.miniphone { width: 200px; margin-inline: auto; border-radius: 30px; border: 8px solid var(--device-frame); background: var(--device-screen); overflow: hidden; box-shadow: var(--shadow); }

.shield { display: grid; place-items: center; gap: 10px; padding: 8px 0 4px; }
.shield .ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: color-mix(in oklab, var(--accent) 14%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.shield .ring svg { width: 36px; height: 36px; }
.shield b { font-size: 14px; }
.logline { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-mid); padding: 9px 12px; border-radius: 11px; border: 1px solid var(--border); }
.logline svg { width: 15px; height: 15px; color: oklch(0.80 0.13 150); }

/* entrance stagger inside the ACTIVE demo */
.demo .demo__body > * { opacity: 0; transform: translateY(14px); }
.demo.live .demo__body > * { animation: demoIn .55s var(--ease-out) forwards; }
.demo.live .demo__body > *:nth-child(1) { animation-delay: .05s; }
.demo.live .demo__body > *:nth-child(2) { animation-delay: .13s; }
.demo.live .demo__body > *:nth-child(3) { animation-delay: .21s; }
.demo.live .demo__body > *:nth-child(4) { animation-delay: .29s; }
.demo.live .demo__body > *:nth-child(5) { animation-delay: .37s; }
.demo.live .demo__body > *:nth-child(6) { animation-delay: .45s; }
@keyframes demoIn { to { opacity: 1; transform: none; } }

/* =========== mobile: keep sticky, single-column, hide demo =========== */
@media (max-width: 980px) {
  .fhead { padding-block-start: 80px; }
  /* keep fpin height and fstage sticky — same as desktop */
  .fstage__inner {
    grid-template-columns: 1fr;
    padding-inline: 28px;
    max-width: 560px;
    text-align: center;
  }
  /* fitem: single column, copy takes full width */
  .fitem { grid-template-columns: 1fr; }
  .demo { display: none; }
  .frail { display: none; }
  .fhint { display: none; }
  .fitem__copy { text-align: center; }
  .fitem__copy h3 { font-size: clamp(24px, 7vw, 38px); }
  .fitem__copy p { margin-inline: auto; font-size: 16px; }
  .fchecks { max-width: 320px; margin-inline: auto; }
  .fchecks li { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .demo { max-width: 340px; }
  .fitem { padding-block: 34px; }
}