/* עיצוב נקי ומינימלי בהשראת ChatGPT: לבן/אפור, טקסט כהה, כפתורים שחורים מעוגלים, סרגל צד */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --side: #f9f9f9;
  --surface: #ffffff;
  --soft: #f4f4f4;
  --hover: #ececec;
  --text: #0d0d0d;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --primary: #0d0d0d;
  --primary-text: #ffffff;
  --green: #10a37f;
  --green-soft: #e7f6f1;
  --red: #d93f3f;
  --red-soft: #fcebeb;
  --amber: #b7791f;
  --amber-soft: #fdf4e3;
  --radius: 16px;
  --shadow: 0 0 0 1px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #212121; --side: #171717; --surface: #2a2a2a; --soft: #2f2f2f; --hover: #3a3a3a;
    --text: #ececec; --muted: #a3a3a3; --line: #3a3a3a;
    --primary: #ececec; --primary-text: #0d0d0d;
    --green-soft: #17352d; --red-soft: #3d2222; --amber-soft: #3b2f17;
    --shadow: 0 0 0 1px rgba(255,255,255,.05), 0 4px 16px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Heebo', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0 0 6px; line-height: 1.25; font-weight: 600; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* כפתורים */
.btn { border: 0; cursor: pointer; font: inherit; font-weight: 500; padding: 10px 18px; border-radius: 999px; background: var(--primary); color: var(--primary-text); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .15s, background .15s; }
.btn:hover { opacity: .85; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--soft); opacity: 1; }
.btn.danger { background: var(--red); color: #fff; }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.btn.block { width: 100%; }

/* לוגו */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--primary); color: var(--primary-text); font-size: 15px; }

/* מעטפת עם סרגל צד */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { background: var(--side); border-inline-end: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .logo { padding: 6px 10px 16px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); cursor: pointer; font-size: 14px; }
.side-link:hover, .side-link.on { background: var(--hover); }
.side-link .i { width: 18px; text-align: center; opacity: .8; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.me .who { min-width: 0; }
.me .who div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.mobile-bar { display: none; }
.main { min-width: 0; }
.content { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.content.wide { max-width: 1100px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 10; }
  .content { padding: 24px 16px 60px; }
}

/* כותרת עמוד */
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 28px; }
.section { margin-top: 36px; }
.section > h2 { margin-bottom: 12px; }

/* כרטיסים */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 12px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .grid.cols-3 { gap: 8px; }
  .stat { padding: 12px; }
  .stat .num { font-size: 20px; }
  .row:has(select) { flex-wrap: wrap; }
  .row select { width: 100%; }
}
.stat { padding: 16px 18px; }
.stat .num { font-size: 26px; font-weight: 600; margin-top: 2px; }

/* טפסים */
label { display: block; font-size: 13px; font-weight: 500; margin: 14px 0 6px; }
input, select { width: 100%; font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); outline: none; }
input:focus, select:focus { border-color: var(--muted); }
.error { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 10px; }

/* תגיות סטטוס */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--soft); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.off { background: var(--red-soft); color: var(--red); }
.pill.wait { background: var(--amber-soft); color: var(--amber); }

/* מתג */
.switch { position: relative; width: 40px; height: 24px; display: inline-block; flex: none; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--hover); cursor: pointer; transition: .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { right: 19px; }

/* לשוניות */
.tabs { display: flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 999px; }
.tabs button { flex: 1; border: 0; background: transparent; font: inherit; font-size: 14px; padding: 7px 12px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.tabs button.on { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: var(--shadow); }

/* שורות הגדרות */
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row select { width: auto; }

/* צעדים ממוספרים */
.steps { counter-reset: s; display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 10px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-weight: 600; font-size: 12px; margin-top: 1px; }

/* חיבור וואטסאפ */
.connect { display: grid; place-items: center; text-align: center; padding: 28px 16px; min-height: 280px; }
.connect img { width: 240px; height: 240px; border-radius: 12px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.pair-code { font-size: 34px; font-weight: 700; letter-spacing: 4px; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--text); animation: spin 1s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* תמלולים כבועות צ'אט */
.chat { display: grid; gap: 14px; }
.msg { display: grid; gap: 4px; }
.msg .meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; }
.msg .bubble-text { background: var(--soft); padding: 10px 14px; border-radius: 18px; border-start-start-radius: 6px; max-width: 90%; width: fit-content; white-space: pre-wrap; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* הודעת מצב */
.banner { padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; background: var(--soft); }
.banner.warn { background: var(--amber-soft); }

/* טבלה */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: right; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
tr:hover td { background: var(--side); }
.acts { display: flex; gap: 6px; }

/* מודאל */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: none; place-items: center; padding: 16px; z-index: 50; }
.modal.open { display: grid; }
.modal .card { width: 100%; max-width: 400px; padding: 28px; box-shadow: var(--shadow); }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--primary); color: var(--primary-text); padding: 9px 18px; border-radius: 999px; font-size: 14px; transition: .25s; z-index: 60; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* דף נחיתה */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; position: sticky; top: 0; background: var(--bg); z-index: 10; }
.topbar .nav { display: flex; gap: 8px; }
.hero { max-width: 760px; margin: 0 auto; padding: 80px 20px 40px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5.5vw, 48px); font-weight: 600; letter-spacing: -.5px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 560px; margin: 14px auto 28px; }
.demo { max-width: 560px; margin: 44px auto 0; text-align: right; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.demo .voice { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 18px; padding: 10px 14px; width: 70%; }
.demo .wave { flex: 1; height: 20px; background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 6px); opacity: .45; border-radius: 3px; }
.demo .reply { background: var(--soft); border-radius: 18px; padding: 10px 14px; width: 85%; margin-right: auto; }
.demo .reply .q { font-size: 12px; color: var(--muted); border-inline-start: 3px solid var(--green); padding-inline-start: 8px; margin-bottom: 6px; }
.features { max-width: 960px; margin: 0 auto; padding: 48px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.features .ico { font-size: 22px; margin-bottom: 6px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
.pricing { max-width: 420px; margin: 0 auto; padding: 20px 20px 80px; text-align: center; }
.price { font-size: 44px; font-weight: 700; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; border-top: 1px solid var(--line); }

/* אייקונים */
.ico { display: inline-block; vertical-align: middle; flex: none; }
.side-link .i { display: grid; place-items: center; opacity: .75; }
.tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }

/* כרטיס חיבור וואטסאפ: מידע מימין, חזותי משמאל */
.link-card { display: grid; grid-template-columns: 1.35fr 1fr; padding: 0; overflow: hidden; min-height: 320px; }
.link-info { padding: 28px; }
.link-info .tabs { width: fit-content; margin-bottom: 22px; }
.link-info h3 { font-size: 20px; margin-bottom: 2px; }
.link-info .steps { margin-top: 18px; font-size: 14px; }
.link-visual { background: var(--side); border-inline-start: 1px solid var(--line); display: grid; place-items: center; padding: 28px; text-align: center; }
.qr-img { width: 240px; height: 240px; border-radius: 16px; background: #fff; padding: 10px; box-shadow: var(--shadow); }
.qr-ghost { width: 200px; height: 200px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--line); }
.qr-ghost .ico { color: var(--muted); opacity: .25; }
.code-boxes { display: flex; gap: 6px; align-items: center; justify-content: center; }
.code-boxes span { width: 38px; height: 48px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: 22px; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.code-boxes span.dash { width: auto; border: 0; background: none; box-shadow: none; color: var(--muted); font-weight: 400; }
.code-boxes.ghost span:not(.dash) { opacity: .6; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; text-align: left; border-radius: 999px; padding: 10px 16px; }
.link-card.done { display: block; min-height: 0; }
.linked { display: flex; align-items: center; gap: 14px; padding: 20px 24px; }
.ok-badge { width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
@media (max-width: 720px) {
  .link-card { grid-template-columns: 1fr; }
  .link-visual { border-inline-start: 0; border-top: 1px solid var(--line); order: -1; }
  .link-info { padding: 22px 18px; }
  .code-boxes span { width: 30px; height: 40px; font-size: 18px; }
  .qr-ghost { width: 140px; height: 140px; }
}

/* מנוי ותשלום */
.bill-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pay-list { margin-top: 18px; border-top: 1px solid var(--line); }
.pay-row { display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.pay-row:last-child { border-bottom: 0; }
@media (max-width: 560px) { .pay-row { grid-template-columns: 1fr auto; } .pay-row span:nth-child(2) { display: none; } }
.pay-demo { max-width: 420px; margin: 60px auto; padding: 0 16px; }
