/* ============================================================================
   site.css — האתר השיווקי (אפיון 046)
   ----------------------------------------------------------------------------
   צורך את tokens.css בלבד; אין כאן הגדרת `--x:` (design_check --tokens).
   הגדלים גדולים מסקאלת האפליקציה בכוונה: זה דף קריאה, לא לוח עבודה.
   שתי ערכות: הצילומים מגיעים בזוגות (th-dark / th-light) כי צילום של
   ערכה כהה על דף בהיר נראה כמו חור בדף.
   ============================================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.site {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font-text); font-size: var(--fs-m-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.site img { max-width: 100%; height: auto; display: block; }
.site a { color: var(--link); }
.site h1, .site h2, .site h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
.site h2 { font-size: var(--fs-m-h2); font-weight: 600; }
.site h3 { font-size: var(--fs-m-lead); font-weight: 600; }
.site p { margin: 0; }
.shell { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.shell.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: var(--r-ctl); z-index: 20; }
.skip:focus { top: 12px; }
.site :focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: var(--r-tag); }

/* ערכת צבעים: הצילום של הערכה השנייה מוסתר */
:root[data-theme="dark"] .th-light, :root[data-theme="light"] .th-dark { display: none; }
:root:not([data-theme]) .th-light { display: none; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px; border-radius: var(--r-ctl);
  font: inherit; font-size: var(--fs-m-ui); font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform var(--motion), box-shadow var(--motion);
}
.site a.btn.pri, .btn.pri { background: var(--pri); color: var(--on-pri); box-shadow: var(--sh-pri); }
.site a.btn.ghost, .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-3); }
.btn:hover { transform: translateY(-1px); }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: var(--fs-m-input); }
.btn[hidden] { display: none; }
.btn.is-off { opacity: .55; cursor: not-allowed; }
.btn.is-off:hover { transform: none; }

/* ---------- סרגל עליון ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--bar-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: var(--fs-m-lead); letter-spacing: .04em; }
.site a.brand { color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-inline-start: 12px; }
.site .nav a { color: var(--ink-2); text-decoration: none; font-size: var(--fs-m-ui); }
.site .nav a:hover { color: var(--ink); }
.top-act { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.theme-btn { width: var(--tap); height: var(--tap); border-radius: var(--r-ctl); border: 1px solid var(--line-3);
  background: transparent; color: var(--ink-2); font-size: var(--fs-m-lead); cursor: pointer; }
@media (max-width: 960px) { .nav { display: none; } }
@media (max-width: 520px) {
  .top-act .btn.pri { display: none; }
  .top-in { gap: 12px; }
}

/* ---------- כותרת ---------- */
.hero { padding-block: 64px 72px; background: var(--grad-soft); border-bottom: 1px solid var(--line-2); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.kicker { color: var(--ink-2); font-size: var(--fs-m-small); font-weight: 600; letter-spacing: .06em; margin-bottom: 12px; }
.hero h1 { font-size: var(--fs-m-display); font-weight: 600; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--link); }
.lead { font-size: var(--fs-m-lead); color: var(--ink-2); margin-top: 20px; max-width: 54ch; }
.lead b { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-proof { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hero-proof li { border-inline-start: 3px solid var(--violet); padding-inline-start: 12px; }
.hero-proof b { display: block; font-size: var(--fs-m-body); }
.hero-proof small { display: block; color: var(--ink-2); font-size: var(--fs-m-small); }
.hero-fig { margin: 0; }
.hero-fig img { border-radius: var(--r-frame); box-shadow: var(--sh-float); }
.hero-fig figcaption { color: var(--ink-2); font-size: var(--fs-m-small); margin-top: 10px; }
@media (max-width: 900px) {
  .hero { padding-block: 36px 48px; }
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) { .hero-proof { grid-template-columns: 1fr; } .hero-cta .btn { width: 100%; } }

/* ---------- אזורים ---------- */
.case, .how, .adv, .cmp, .pros, .plans, .demo, .faq { padding-block: 80px; }
.case, .cmp, .plans, .faq { background: var(--page); }
.how, .adv, .pros, .demo { background: var(--surface); }
.sec-lead { color: var(--ink-2); font-size: var(--fs-m-lead); margin-top: 12px; max-width: 62ch; }
@media (max-width: 600px) { .case, .how, .adv, .cmp, .pros, .plans, .demo, .faq { padding-block: 52px; } }

/* ---------- סיפור מקרה ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 32px;
  background: var(--line-3); border: 1px solid var(--line-3); border-radius: var(--r-frame); overflow: hidden; }
.stat { background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--font-num); font-size: var(--fs-m-stat); font-weight: 600; }
.stat span { font-weight: 600; }
.stat small { color: var(--ink-2); font-size: var(--fs-m-small); }
.stat.gain b { color: var(--mint-deep); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; border-bottom: 1px solid var(--line-3); }
.tabs button { font: inherit; font-size: var(--fs-m-ui); background: transparent; border: 0; color: var(--ink-2);
  padding: 10px 14px; min-height: var(--tap); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--violet); font-weight: 600; }
.tab-panel { padding-top: 20px; }
.tab-panel > p { color: var(--ink-2); max-width: 70ch; margin-bottom: 18px; }
.shot { border-radius: var(--r-frame); overflow: hidden; border: 1px solid var(--line-3); box-shadow: var(--sh-surface); }

/* ---------- צעדים ---------- */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { background: var(--page); border-radius: var(--r-frame); padding: 24px; border: 1px solid var(--line-2); }
.steps .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--pri); color: var(--on-pri); font-weight: 600; margin-bottom: 14px; }
.steps p { color: var(--ink-2); margin-top: 8px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- כרטיסים ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.card { background: var(--page); border: 1px solid var(--line-2); border-radius: var(--r-frame); padding: 24px; }
.adv .card h3, .pros .card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- השוואה ---------- */
.tbl-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line-3); border-radius: var(--r-frame); background: var(--surface); }
.cmp-t { border-collapse: collapse; width: 100%; min-width: 620px; font-size: var(--fs-m-ui); }
.cmp-t th, .cmp-t td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.cmp-t thead th { font-size: var(--fs-m-small); color: var(--ink-2); font-weight: 600; }
.cmp-t thead th small { display: block; font-weight: 400; }
.cmp-t tbody th { font-weight: 600; }
.cmp-t td { color: var(--ink-2); }
.cmp-t .us { background: var(--pri-soft-2); color: var(--ink); font-weight: 600; }
:root[data-theme="dark"] .cmp-t .us { background: var(--sunken); }
.cmp-t thead .us { color: var(--ink); }
.cmp-t tbody tr:last-child > * { border-bottom: 0; }
.note { color: var(--ink-2); margin-top: 18px; font-size: var(--fs-m-ui); max-width: 70ch; }

/* ---------- אנשי מקצוע ---------- */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.card.big ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

/* ---------- חבילות ---------- */
.cards.three .plan { display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.plan .for { color: var(--ink-2); }
.plan ul { margin: 6px 0 12px; padding-inline-start: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plan.hl { border: 2px solid var(--violet); }

/* ---------- טופס ---------- */
.demo-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.demo-txt p { color: var(--ink-2); margin-top: 14px; }
.demo-txt .fine { font-size: var(--fs-m-small); }
.demo-txt .direct a { font-weight: 600; }
.demo-form { background: var(--page); border: 1px solid var(--line-3); border-radius: var(--r-frame); padding: 28px;
  display: flex; flex-direction: column; gap: 16px; }
.demo-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.demo-form legend { font-weight: 600; margin-bottom: 4px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld label { font-size: var(--fs-m-small); font-weight: 600; }
.fld label small { color: var(--ink-2); font-weight: 400; }
.demo-form input, .demo-form select {
  font: inherit; font-size: var(--fs-m-input); min-height: var(--tap); padding: 0 12px; border-radius: var(--r-ctl);
  border: 1px solid var(--line-3); background: var(--field); color: var(--ink); width: 100%;
}
.demo-form input[aria-invalid="true"] { border-color: var(--red-text); }
.err { color: var(--red-text); font-size: var(--fs-m-small); min-height: 0; }
.err:empty { display: none; }
.send { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
@media (max-width: 860px) { .demo-in { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } .send .btn { width: 100%; } .demo-form { padding: 20px; } }

/* `hidden` חייב לגבור על display:flex של השדות — אחרת אחרי שליחה הטופס נשאר והאישור מתחתיו */
.demo-form [hidden] { display: none; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.demo-form .privacy { color: var(--ink-2); font-size: var(--fs-m-small); }
.done { background: var(--ok-soft); color: var(--ok); border-radius: var(--r-ctl); padding: 14px 16px; }
.demo-form[aria-busy="true"] .send .btn { opacity: .6; pointer-events: none; }

/* ---------- שאלות ---------- */
.faq details { border-bottom: 1px solid var(--line-3); padding-block: 16px; }
.faq details:first-of-type { margin-top: 28px; border-top: 1px solid var(--line-3); }
.faq summary { cursor: pointer; font-weight: 600; font-size: var(--fs-m-lead); min-height: var(--tap); display: flex; align-items: center; }
.faq details p { color: var(--ink-2); margin-top: 8px; max-width: 70ch; }

/* ---------- תחתית ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--line-3); padding-block: 36px; }
.foot-in { display: flex; flex-direction: column; gap: 10px; }
.foot .brand.sm { flex-direction: column; align-items: flex-start; gap: 2px; font-size: var(--fs-m-body); }
.foot .brand.sm small { color: var(--ink-2); font-weight: 400; letter-spacing: 0; font-size: var(--fs-m-small); }
.foot .fine { color: var(--ink-2); font-size: var(--fs-m-small); max-width: 80ch; }
