/* Pricing page: guide layout (legal.css + guide.css) with a wider plan grid. */
main.pricing { max-width: 1040px; }
.pricing h1 { text-align: center; margin-top: 8px; }
.pricing .lead { text-align: center; font-size: 18px; margin: 0 auto 24px; max-width: 560px; }
.pricing .crumbs { text-align: start; }
.center { text-align: center; }
.num { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
/* המתג והמחירים מתחלפים ב-hidden (pricing.js); display של המחלקה לא גובר עליו */
.pricing [hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.interval { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.interval button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 15px; cursor: pointer;
  background: transparent; color: var(--dim); border: 1px solid var(--border);
}
.interval button[aria-pressed="true"] { background: #91b6ff1f; color: var(--accent); border-color: var(--accent); }

/* הכרטיסים באותו עיצוב כמו חלון המסלולים באפליקציה (Billing.tsx + billing.css, 12.11.2026). שינוי = שני המקומות */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 26px 16px; padding-top: 12px; align-items: stretch; container: plans / inline-size; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 28px 22px 22px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border-soft); transition: box-shadow 0.2s ease;
}
@media (hover: hover) { .plan:hover { box-shadow: 0 10px 28px #00000066; } }
/* כל חלק (ראש, מחיר, כפתור, כותרת, רשימה) באותה שורה בכל הכרטיסים, כדי שהכפתורים יהיו בקו אחד */
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 4px; align-content: start; }
  .plan > .plan-cta { align-self: start; }
}
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 0 0 4px #91b6ff1f; }
@container plans (min-width: 760px) { .plan.featured { transform: scale(1.03); } }

.plan-top { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.plan-top h2 { margin: 0; font-size: 22px; }
.plan-top p { margin: 0; font-size: 15px; color: var(--dim); }
.plan-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 4px; border-radius: 14px; background: #91b6ff1f; color: var(--accent); }

/* תגים על הקו העליון: ההנחה בצד ההתחלה, "הכי משתלם" בצד הנגדי */
.discount-badge { position: absolute; top: 0; inset-inline-start: 16px; transform: translateY(-50%); padding: 3px 12px; border-radius: 999px; background: var(--accent); color: #101c30; font-size: 14px; font-weight: 700; white-space: nowrap; }
.recommended { position: absolute; top: 0; inset-inline-end: 16px; transform: translateY(-50%); padding: 3px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; }

.plan-price { text-align: center; margin: 12px 0 14px; }
/* flex: המחוק תמיד בצד ההתחלה (שני סכומים מבודדים בשורת טקסט מתהפכים) */
.price { margin: 0; display: flex; justify-content: center; align-items: baseline; gap: 8px; color: var(--text); font-size: 36px; font-weight: 700; line-height: 1.2; }
.price .was { font-size: 18px; font-weight: 400; color: var(--dim); }
.plan-price .per { margin: 0; font-size: 15px; color: var(--dim); }
.price-note { margin: 4px 0 0; font-size: 14px; }
/* החיסכון החודשי בשנתי: מודגש בצבע הטקסט. חיסכון אינו רווח - לא ירוק */
.price-note.saving { font-weight: 600; color: var(--text); }
/* הנחת הפתיחה בחודשי: מסגרת בצבע המותג כדי שלא תפוספס. חיסכון אינו רווח - לא ירוק */
.intro-offer {
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 12px 0 0; padding: 10px 12px;
  border-radius: 10px; background: #91b6ff1f; border: 1px solid var(--accent); color: var(--text); line-height: 1.35;
}
.intro-offer strong { font-size: 17px; font-weight: 700; color: var(--accent); text-wrap: balance; }
.intro-offer > span { font-size: 15px; font-weight: 600; }

.plan-cta {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px;
  font-weight: 600; text-decoration: none; color: var(--text); border: 1px solid var(--border);
}
.plan-cta.solid { background: #afcaff; color: #101c30; border-color: #c6daff; }
@media (hover: hover) {
  .plan-cta:hover { border-color: var(--accent); }
  .plan-cta.solid:hover { background: #c6daff; }
}

.plan-includes { margin: 18px 0 8px; font-size: 15px; color: var(--text); }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.plan li { display: flex; align-items: flex-start; gap: 8px; color: var(--text); font-size: 16px; }
.plan li svg { flex: none; margin-top: 3px; color: var(--accent); }
.plan li.off { color: #8d9bb0; }
.plan li.off svg { color: #8d9bb0; }
.plan li.off span:not(.visually-hidden) { text-decoration: line-through; }
/* מצפן ב-Pro: הדמות ליד השורה, 28px כמו באפליקציה */
.plan li.ai { align-items: center; }
.plan li.ai svg { margin-top: 0; }

.pricing > .fine.center { margin-top: 18px; }
