/* ═══════════════════════════════════════════════════════════════════════════
   Public product showcase ("מה X מקבל?") — compressed reconstruction of a REAL Autil portal.
   One frame, per-portal accent through CSS variables on .ps-frame / .ps-scope:
     --ps-accent  --ps-accent-deep  --ps-accent-soft  --ps-accent-border  --ps-bg (url of the portal login background)
   The portal's own login background art is faded behind the sections (.ps-bgwash). Every class is prefixed ps-.
   Mobile-first, no horizontal page overflow, visible focus, reduced-motion safe.
   ═══════════════════════════════════════════════════════════════════════════ */

.ps-scope { --ps-accent: #c2410c; --ps-accent-deep: #9a3412; --ps-accent-soft: rgba(194, 65, 12, 0.1); --ps-accent-border: rgba(194, 65, 12, 0.35); position: relative; isolation: isolate; }
.ps-scope--therapist { --ps-accent: #c2410c; --ps-accent-deep: #9a3412; --ps-accent-soft: rgba(194, 65, 12, 0.1); --ps-accent-border: rgba(194, 65, 12, 0.35); --ps-bg: url('/images/portal-bg/therapist.webp'); }
.ps-scope--clinic { --ps-accent: #0e7490; --ps-accent-deep: #094f62; --ps-accent-soft: rgba(14, 116, 144, 0.1); --ps-accent-border: rgba(14, 116, 144, 0.35); --ps-bg: url('/images/portal-bg/clinic.webp'); }
.ps-scope--events { --ps-accent: #12883e; --ps-accent-deep: #0d642e; --ps-accent-soft: rgba(18, 136, 62, 0.1); --ps-accent-border: rgba(18, 136, 62, 0.35); --ps-bg: url('/images/portal-bg/events.webp'); }
.ps-scope--municipality { --ps-accent: #f5b400; --ps-accent-deep: #b87e00; --ps-accent-soft: rgba(245, 180, 0, 0.14); --ps-accent-border: rgba(245, 180, 0, 0.4); --ps-bg: url('/images/portal-bg/municipality.webp'); }

/* The portal's login art, faded + masked so it adds depth, never noise. Put <div class="ps-bgwash" aria-hidden> in a section. */
.ps-bgwash { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--ps-bg) center / cover no-repeat; opacity: 0.1; -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 85%); mask-image: radial-gradient(120% 90% at 50% 20%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 85%); }
.ps-bgwash--soft { opacity: 0.07; }
.ps-bgwash--strong { opacity: 0.16; }

.ps-frame { background: #f7f8fc; border: 1px solid #e4e5ee; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 64px rgba(36, 26, 56, 0.16); direction: rtl; text-align: right; color: #111827; min-width: 0; }
.ps-frame__chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eceef5; border-bottom: 1px solid #e4e5ee; }
.ps-frame__chrome span { width: 10px; height: 10px; border-radius: 50%; background: #cfd2de; }
.ps-frame__chrome em { margin-inline-start: 12px; padding: 3px 14px; border-radius: 100px; background: #fff; color: #6b7280; font-size: 12px; font-style: normal; direction: ltr; }
.ps-frame__body { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 560px; position: relative; }
.ps-frame__body::before { content: ""; position: absolute; inset: 0; background: var(--ps-bg) center / cover no-repeat; opacity: 0.06; pointer-events: none; }
.ps-main { position: relative; min-width: 0; padding: clamp(14px, 3vw, 26px); }
.ps-main:focus-visible, .ps-nav__item:focus-visible { outline: 3px solid rgba(107, 74, 158, 0.6); outline-offset: 2px; }

.ps-nav { position: relative; display: flex; flex-direction: column; background: #fff; border-inline-end: 1px solid #e4e5ee; }
.ps-nav__brand { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px; border-bottom: 1px solid #f0f0f8; }
.ps-nav__logo { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(90deg, var(--ps-accent-deep), var(--ps-accent)); display: flex; align-items: center; justify-content: center; }
.ps-nav__brand b { display: block; font-size: 13px; }
.ps-nav__brand small { display: block; font-size: 10px; color: #6b7280; }
.ps-nav__list { flex: 1; padding: 8px 0; }
.ps-nav__item { position: relative; display: flex; align-items: center; gap: 12px; width: calc(100% - 20px); min-height: 40px; margin: 1px 10px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: #4b5563; font: inherit; font-size: 14px; text-align: right; cursor: pointer; }
.ps-nav__item svg { opacity: 0.65; flex: none; }
.ps-nav__item:hover { background: #f5f5fb; }
.ps-nav__item[aria-selected="true"] { background: var(--ps-accent-soft); color: var(--ps-accent-deep); font-weight: 700; box-shadow: inset 0 0 0 1px var(--ps-accent-border); }
.ps-nav__item[aria-selected="true"] svg { opacity: 1; }
.ps-nav__item[aria-selected="true"]::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 0; width: 3px; border-radius: 0 2px 2px 0; background: var(--ps-accent); }
.ps-nav__badge { margin-inline-start: auto; min-width: 18px; padding: 0 6px; border-radius: 100px; background: var(--ps-accent); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; text-align: center; }
.ps-nav__who { display: flex; align-items: center; gap: 10px; margin: 12px; padding: 10px; border-radius: 10px; background: #f3f4f9; border: 1px solid #f0f0f8; }
.ps-nav__avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; background: linear-gradient(90deg, var(--ps-accent-deep), var(--ps-accent)); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ps-nav__who b { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.ps-nav__who small { display: block; font-size: 11px; color: #6b7280; }

.ps-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ps-head__title { margin: 0; font-size: 18px; font-weight: 800; }
.ps-head__sub { margin: 2px 0 0; font-size: 12px; color: #6b7280; }
.ps-hero { padding: 20px; margin-bottom: 16px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--ps-accent-deep) 0%, var(--ps-accent) 100%); }
.ps-hero h3 { margin: 0; font-size: 19px; font-weight: 900; }
.ps-hero p { margin: 4px 0 12px; font-size: 13.5px; opacity: 0.9; }
.ps-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-hero__chips span { padding: 4px 12px; border-radius: 100px; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); font-size: 12px; font-weight: 700; }
.ps-kpis { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ps-kpi { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid #e4e5ee; border-radius: 16px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); }
.ps-kpi__icon { width: 32px; height: 32px; border-radius: 12px; background: var(--ps-accent-soft); color: var(--ps-accent-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.ps-kpi strong { font-size: 24px; font-weight: 900; line-height: 1.1; }
.ps-kpi strong small { font-size: 13px; font-weight: 600; color: #6b7280; margin-inline-start: 2px; }
.ps-kpi__label { font-size: 13px; font-weight: 600; }
.ps-kpi__hint { font-size: 11.5px; color: #6b7280; }
.ps-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 14px; background: #fff; border: 1px solid #e4e5ee; border-radius: 16px; }
.ps-quick__label { font-size: 13px; font-weight: 800; color: #6b7280; margin-inline-end: 4px; }
.ps-quick__btn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 12px; border: 1px solid #e4e5ee; font-size: 13px; font-weight: 700; color: #111827; }
.ps-quick__btn.is-primary { background: var(--ps-accent-soft); border-color: var(--ps-accent-border); color: var(--ps-accent-deep); }
.ps-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ps-card { background: #fff; border: 1px solid #e4e5ee; border-radius: 20px; padding: 16px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); margin-bottom: 12px; min-width: 0; }
.ps-card__title { margin: 0; font-size: 14px; font-weight: 800; }
.ps-card__sub { margin: 2px 0 10px; font-size: 12px; color: #6b7280; }
.ps-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ps-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #f3f4f9; border: 1px solid #e4e5ee; font-size: 13px; min-width: 0; }
.ps-row__lead { flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--ps-accent-soft); color: var(--ps-accent-deep); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.ps-row__text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.ps-row__text b { font-size: 13px; font-weight: 700; }
.ps-row__text small { font-size: 11.5px; color: #6b7280; }
.ps-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; border: 1px solid transparent; flex: none; }
.ps-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ps-badge--green { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.25); color: #047857; }
.ps-badge--blue { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.25); color: #1d4ed8; }
.ps-badge--yellow { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.3); color: #92400e; }
.ps-badge--gray { background: rgba(107, 114, 128, 0.14); border-color: rgba(107, 114, 128, 0.22); color: #4b5563; }
.ps-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-pill { padding: 3px 12px; border-radius: 100px; border: 1px solid #e4e5ee; font-size: 12px; font-weight: 600; background: #fff; }
.ps-bar { height: 6px; border-radius: 4px; background: #e4e5ee; overflow: hidden; }
.ps-bar i { display: block; height: 100%; background: var(--ps-accent); }

@media (max-width: 900px) {
  .ps-frame__body { grid-template-columns: minmax(0, 1fr); }
  .ps-nav { flex-direction: row; border-inline-end: 0; border-bottom: 1px solid #e4e5ee; overflow-x: auto; }
  .ps-nav__brand, .ps-nav__who { display: none; }
  .ps-nav__list { display: flex; gap: 4px; padding: 6px; }
  .ps-nav__item { width: auto; margin: 0; white-space: nowrap; }
  .ps-nav__item[aria-selected="true"]::before { display: none; }
  .ps-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .ps-frame * { transition: none !important; } }
