/* עמודי מחירים ויכולות (נבנים על home.css) */
.page-hero { padding: 64px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 10px 0 14px; line-height: 1.1; }
.page-hero .lead { max-width: 720px; margin: 0 auto; }
.page-hero .eyebrow { justify-content: center; }
.brand-promise { max-width: 720px; margin: 16px auto 0; background: var(--accent-soft); border-radius: 14px; padding: 12px 16px; line-height: 1.55; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-top: 28px; }
@media (max-width: 1240px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan.starter { border: 2px solid #e8590c; }
.plan.starter .badge { background: #d9480f; }
.plan.growth { border: 2px solid #7048e8; }
.plan.growth .badge { background: #6741d9; }
.plan.clearing { border: 2px solid #1f9d6b; }
.plan.clearing .badge { background: #1f9d6b; }
.plan { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border: 2px solid var(--primary); box-shadow: 0 18px 40px #2b5ec822; }
.plan .badge { position: absolute; top: -14px; inset-inline-start: 24px; background: var(--primary); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 700; }
.plan h2 { margin: 0; font-size: 24px; }
.plan .for { margin: 0; color: var(--muted); min-height: 44px; }
/* כל הכרטיסים חולקים את אותן שורות: המחיר, הכפתור והרשימה מתחילים באותו גובה גם כשהתיאור באורך אחר */
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 14px; align-content: start; }
  .plan .for { min-height: 0; }
  .plan .price { align-self: end; }
}
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 46px; line-height: 1; }
.price span { color: var(--muted); }
.vat { margin: -8px 0 0; color: var(--muted); font-size: 13px; }
.plan .btn { justify-content: center; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan li { position: relative; padding-inline-start: 26px; line-height: 1.45; }
.plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--primary); font-weight: 700; }
.plan li.head { padding: 0; font-weight: 700; color: var(--muted); font-size: 14px; }
.plan li.head::before { content: none; }

.addon { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--white); border: 1px dashed var(--primary); border-radius: var(--radius); padding: 20px 24px; }
.addon h3 { margin: 0 0 4px; }
.addon p { margin: 0; color: var(--muted); }
.price-notes { margin: 18px 0 0; color: var(--muted); font-size: 14px; text-align: center; }

.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: start; }
.compare thead th { background: var(--accent-soft); }
.compare td.yes { color: var(--primary); font-weight: 700; }
.compare td.no { color: #a6b1c2; }
.compare td.partial { font-size: 13px; color: var(--text-2, #405675); }
.compare-wrap { overflow-x: auto; }

.cap-groups { display: grid; gap: 28px; }
.cap-group h2 { margin: 0 0 6px; font-size: 26px; }
.cap-group > p { margin: 0 0 16px; color: var(--muted); }
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cap { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.cap h3 { margin: 0 0 6px; font-size: 18px; }
.cap p { margin: 0; color: var(--muted); line-height: 1.55; }
.cap .plan-tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.cap-highlight { border: 2px solid var(--primary); box-shadow: 0 12px 30px #2b5ec81f; }
.ai-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: linear-gradient(135deg, #1c3555, #23477f); color: #fff; border-radius: var(--radius); padding: 40px; }
.ai-band h2 { margin: 6px 0 12px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; }
.ai-band .lead { color: #dbe5f5; }
.ai-band .check-list li { color: #fff; }
.ai-eyebrow { color: #9cc0ff; }
.ai-chat { position: relative; background: #e9f2ea; border-radius: 22px; padding: 18px 14px 30px; display: grid; gap: 8px; color: #1c2a1f; }
.ai-chat .msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 15px; line-height: 1.4; box-shadow: 0 1px 1px #0000001a; }
.ai-chat .msg.in { justify-self: start; background: #d4f5c4; }
.ai-chat .msg.out { justify-self: end; background: #fff; }
.ai-chat-note { position: absolute; bottom: 8px; inset-inline-end: 14px; font-size: 12px; color: #5f7363; }
@media (max-width: 900px) { .ai-band { grid-template-columns: 1fr; padding: 26px 18px; } }
.ideas-band { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--white); border: 2px dashed var(--primary); border-radius: var(--radius); padding: 32px; }
.ideas-band h2 { margin: 6px 0 10px; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.ideas-band .lead { max-width: 720px; margin: 0; }
/* חלון "יש לי רעיון": העיצוב ב-idea-form.css, שנטען מ-idea-form.js */
.cta-band { text-align: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px 24px; }
.cta-band h2 { margin: 0 0 10px; }
.cta-band p { margin: 0 0 20px; color: #d6deeb; }

@media (max-width: 900px) {
  .plans, .cap-grid { grid-template-columns: 1fr; }
  .plan .for { min-height: 0; }
}

/* מתג חיוב חודשי / שנתי */
.billing-toggle { display: flex; width: fit-content; margin: 8px auto 0; padding: 4px; gap: 4px; border: 1px solid var(--line, #E3E8F0); border-radius: 999px; background: var(--surface, #fff); }
.billing-toggle button { border: 0; background: transparent; font: inherit; font-weight: 700; padding: 10px 22px; border-radius: 999px; cursor: pointer; color: inherit; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.billing-toggle button.on { background: var(--ink, #14213D); color: #fff; }
.billing-toggle .save { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #DCFCE7; color: #166534; }
.price .was { color: var(--muted); font-size: 18px; margin-inline-start: 4px; }

/* שלוש ההבטחות מתחת לחבילות, בשורה אחת במחשב: המחירים מופיעים מיד מתחת לכותרת */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0 0; }
.promises .brand-promise { margin: 0; max-width: none; text-align: start; }
@media (max-width: 900px) { .promises { grid-template-columns: 1fr; } }


/* ---------- חבילה בגדול (plan-details.js) ---------- */
/* מעבר עכבר: הכרטיס עולה ומתקרב בצורה ברורה, עם צל עמוק יותר (המקלדת מקבלת את אותה תנועה) */
.plans .plan[role="button"] { cursor: pointer; transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease; will-change: transform; }
@media (hover: hover) {
  .plans .plan[role="button"]:hover { transform: translateY(-12px) scale(1.025); box-shadow: 0 30px 60px #1c355533, 0 8px 18px #1c35551a; z-index: 1; }
  .plans .plan[role="button"]:hover .btn { box-shadow: 0 8px 18px #2b5ec833; }
}
.plans .plan[role="button"]:focus-visible { transform: translateY(-12px) scale(1.025); box-shadow: 0 30px 60px #1c355533, 0 8px 18px #1c35551a; z-index: 1; }
.plans .plan[role="button"]:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.plan-sheet { width: min(1180px, calc(100vw - 48px)); max-height: calc(100vh - 32px); border: 2px solid var(--primary); border-radius: var(--radius); padding: 0; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px #0b1a3366; overflow: hidden; }
.plan-sheet[open] { display: flex; flex-direction: column; }
.plan-sheet-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b8c9df transparent; }
.plan-sheet[open] { animation: plan-sheet-in .22s ease-out; }
@keyframes plan-sheet-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.plan-sheet::backdrop { background: #0b1a3399; backdrop-filter: blur(2px); }
.plan-sheet.starter { border-color: #e8590c; } .plan-sheet.growth { border-color: #7048e8; } .plan-sheet.clearing { border-color: #1f9d6b; }
.plan-sheet .badge { display: inline-block; background: var(--primary); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 700; }
.plan-sheet.starter .badge { background: #d9480f; } .plan-sheet.growth .badge { background: #6741d9; } .plan-sheet.clearing .badge { background: #1f9d6b; }
.plan-sheet-close { position: sticky; top: 10px; float: left; margin: 10px 10px -50px 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); z-index: 2; }
.plan-sheet-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; padding: 26px 32px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-soft), var(--white)); }
.plan-sheet-head h2 { margin: 10px 0 6px; font-size: 34px; }
.plan-sheet-head .for { margin: 0; color: var(--muted); font-size: 16px; }
.plan-sheet-side { display: flex; flex-direction: column; gap: 10px; }
.plan-sheet-side .billing-toggle { align-self: flex-start; margin: 0; }
.plan-sheet-side .vat { margin: -4px 0 4px; }
.plan-sheet-actions { display: grid; gap: 10px; }
.plan-sheet-actions .btn { justify-content: center; }
.plan-sheet-note { margin: 0; font-size: 13px; color: var(--muted); }
.plan-sheet-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px 34px; padding: 20px 32px 26px; }
.plan-sheet-group h3 { margin: 0 0 10px; font-size: 17px; }
.plan-sheet-group.inherited h3 { color: var(--muted); font-size: 15px; }
.plan-sheet-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-sheet-group li { position: relative; padding-inline-start: 26px; line-height: 1.5; }
.plan-sheet-group li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--primary); font-weight: 700; }
.plan-sheet-group.inherited h3 + .plan-sheet-inline { margin: 0 0 14px; }
.plan-sheet-inline { color: #3d4f69; font-size: 14px; line-height: 1.6; }
.plan-sheet-group ul { gap: 7px; }
/* צפיפות אוטומטית כשהתוכן גבוה מהמסך (plan-details.js fit) */
.plan-sheet.tight .plan-sheet-top { padding: 18px 28px 12px; gap: 20px; }
.plan-sheet.tight .plan-sheet-head h2 { font-size: 28px; margin: 6px 0 2px; }
.plan-sheet.tight .plan-sheet-head .for { font-size: 14px; }
.plan-sheet.tight .plan-sheet-body { padding: 14px 28px 18px; }
.plan-sheet.tight .plan-sheet-group li { font-size: 14px; line-height: 1.4; }
.plan-sheet.tight .plan-sheet-group ul { gap: 5px; }
.plan-sheet.tight .plan-sheet-inline { font-size: 13px; line-height: 1.5; }
.plan-sheet.tight .plan-sheet-note { display: none; }
.plan-sheet.tighter .plan-sheet-group li { font-size: 13px; }
.plan-sheet.tighter .plan-sheet-inline { font-size: 12px; }
.plan-sheet.tighter .plan-sheet-side .price strong { font-size: 36px; }
.plan-sheet.tighter .plan-sheet-group h3 { font-size: 14px; margin-bottom: 6px; }
.plan-sheet-far { display: none; margin: 0; color: #3d4f69; font-size: 13px; font-weight: 650; }
.plan-sheet.tightest [data-far] { display: none; }
.plan-sheet.tightest .plan-sheet-far { display: block; }
.plan-sheet.tightest .plan-sheet-head .for { display: none; }
@media (max-width: 760px) {
  .plan-sheet { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; border-width: 4px 0 0; }
  .plan-sheet-top, .plan-sheet-body { grid-template-columns: 1fr; padding-inline: 18px; }
  .plan-sheet-head h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .plan-sheet[open] { animation: none; } .plans .plan[role="button"] { transition: none; } .plans .plan[role="button"]:hover, .plans .plan[role="button"]:focus-visible { transform: none; } }

/* "בלי כרטיס אשראי בהרשמה · בלי התחייבות": בשפת העיצוב של האתר (כחול-נייבי, ✓ כחול כמו ב"מה מקבלים") */
.no-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 22px 0 6px; color: #1c3555; font-size: 17px; font-weight: 700; letter-spacing: -.1px; }
.no-card span { display: inline-flex; align-items: center; gap: 9px; }
.no-card b { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #edf3ff; border: 1px solid #dbe6fc; color: #2b5ec8; font-size: 13px; font-weight: 800; }
.cta-row + .no-card { margin: 20px 0 4px; }
.page-hero .no-card { justify-content: center; margin: 20px 0 8px; }
@media (max-width: 560px) { .no-card { font-size: 15px; gap: 8px 18px; } }
