/* ─── פונט (Rubik, מתארח מקומית) ─── */
@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url("fonts/rubik-400.ttf") format("truetype"); }
@font-face { font-family: "Rubik"; font-weight: 500; font-display: swap; src: url("fonts/rubik-500.ttf") format("truetype"); }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url("fonts/rubik-700.ttf") format("truetype"); }

/* ─── צבעים ─── */
:root {
  --bg: #fdfcff;
  --surface: #f8f6fc;
  --text: #2a2438;
  --muted: #6e6884;
  --primary: #7a62c4;
  --on-primary: #ffffff;
  --border: #ece8f5;
}
:root { color-scheme: light; }
/* מצב כהה: לפי בחירת המשתמש (data-theme, נקבע ב-theme.js), ובלי JS לפי הגדרת המכשיר */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16121f;
  --surface: #1e1a29;
  --text: #efebf7;
  --muted: #b1a9c6;
  --primary: #b8a4ea;
  --on-primary: #1c1430;
  --border: #302a40;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #16121f;
    --surface: #1e1a29;
    --text: #efebf7;
    --muted: #b1a9c6;
    --primary: #b8a4ea;
    --on-primary: #1c1430;
    --border: #302a40;
  }
}

/* ─── בסיס ─── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-image: radial-gradient(ellipse 50% 100% at 0% 0%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 70%);
  background-size: 100% 560px; background-repeat: no-repeat;
}
html[dir="rtl"] body {
  background-image: radial-gradient(ellipse 50% 100% at 100% 0%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 70%);
}
a { color: var(--primary); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* ─── כותרת עליונה ─── */
header.site {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.head-end { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
nav a { margin-inline-start: 20px; color: var(--muted); text-decoration: none; }
nav a:first-child { margin-inline-start: 0; }
nav a:hover { color: var(--primary); }

/* בורר שפה: עב | EN */
.lang {
  display: inline-flex; align-items: center; font-size: 14px;
  border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
}
.lang a, .lang b {
  padding: 3px 12px; text-decoration: none; font-weight: 500; line-height: 1.6;
}
.lang b { background: var(--primary); color: var(--on-primary); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--primary); }

/* ─── תוכן ─── */
.hero {
  padding: 72px 0 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 50px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.015em;
  font-weight: 700; max-width: 620px; text-wrap: balance;
}
.hero p { color: var(--muted); font-size: 19px; line-height: 1.7; max-width: 560px; margin: 0; }
section { padding: 40px 0; }
section p, .doc p { max-width: 68ch; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: 27px; line-height: 1.25; margin: 0 0 20px; font-weight: 500; letter-spacing: -0.01em; }
h2[id] { scroll-margin-top: 84px; }

/* ויזואל בהירו: אריחי לוגו מונחים בזווית */
.hero-art { position: relative; width: 250px; height: 210px; }
.hero-art .logo {
  position: absolute; width: 96px; height: 96px; padding: 6px; border-radius: 26px;
  background: #fff; display: inline-flex;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 28%, transparent), 0 2px 6px rgba(0, 0, 0, .12);
}
.hero-art .logo img { width: 100%; height: 100%; border-radius: 20px; object-fit: contain; display: block; }
.hero-art .l1 { inset-inline-start: 0;   top: 8px;   transform: rotate(-8deg); }
.hero-art .l2 { inset-inline-end: 0;     top: 0;     transform: rotate(7deg); width: 108px; height: 108px; }
.hero-art .l3 { inset-inline-start: 62px; bottom: 0; transform: rotate(-2deg); }
.hero-art .l3.kd img { transform: scale(1.3); }
.hero-art .l3 { overflow: hidden; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-art { order: -1; width: 100%; max-width: 250px; }
}
h2::after {
  content: ""; display: block; width: 32px; height: 3px; margin-top: 10px;
  border-radius: 2px; background: color-mix(in srgb, var(--primary) 55%, transparent);
}
h3 { margin: 0 0 6px; font-weight: 500; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 10%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
.card { display: flex; flex-direction: column; align-items: flex-start; }
.card p { margin: 0 0 14px; color: var(--muted); }
.card .btn { margin-top: auto; }
h3.group {
  font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: .02em;
  margin: 28px 0 12px;
}
h3.group:first-of-type { margin-top: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  background: var(--primary); color: var(--on-primary);
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn.off {
  background: transparent; color: var(--muted); border: 1px dashed var(--border);
  cursor: default;
}
.btn.off:hover { filter: none; }
.tag {
  display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-weight: 400;
}

/* ─── מסמכים משפטיים ─── */
.doc { padding: 40px 16px 64px; }
.doc h1 { font-size: 32px; font-weight: 700; }
.doc h2 { font-size: 21px; margin-top: 32px; }
.doc h2::after { display: none; }
.doc .meta { color: var(--muted); font-size: 15px; }

/* מדיניות פרטיות דו-לשונית של אפליקציות (עברית/אנגלית בתוך העמוד) */
.policy .lang-switch { display: flex; gap: 10px; margin-bottom: 28px; }
.policy .lang-btn {
  font: inherit; font-size: 14px; font-weight: 500; padding: 5px 18px; cursor: pointer;
  border: 1px solid var(--primary); border-radius: 999px; background: transparent; color: var(--primary);
}
.policy .lang-btn.active { background: var(--primary); color: var(--on-primary); }
.policy .section { display: none; padding: 0; }
.policy .section.active { display: block; }
.policy .he { direction: rtl; text-align: right; }
.policy .en { direction: ltr; text-align: left; }
.policy h1 { padding-bottom: 12px; margin: 0 0 8px; border-bottom: 1px solid var(--border); }
.policy h3 { margin-top: 20px; }
.policy ul, .policy ol { padding-inline-start: 22px; margin: 0 0 12px; }
.policy .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.policy .contact {
  background: var(--surface); border: 1px solid var(--border);
  padding: 4px 16px; border-radius: 12px; margin-top: 16px;
}
.policy .note {
  background: color-mix(in srgb, #f2b84b 14%, var(--surface));
  border-inline-start: 4px solid #e0a030; padding: 10px 16px; border-radius: 8px; margin: 16px 0;
}

/* ─── תחתית ─── */
footer.site {
  border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 15px;
}
footer.site .foot-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--primary); }

/* ─── צבעי האפליקציות (נלקחו מערכות הצבעים באנדרואיד סטודיו) ─── */
.card {
  --g1: #3F2A95; --g2: #5B3FE4;      /* גרדיאנט הרקע */
  --glow: #8C75F0; --glow2: transparent; /* כתמי צבע דקורטיביים */
  --btn: #ffffff; --btn-ink: #3F2A95;    /* כפתור */
  --tag: #FFCB45;                        /* תגית "בקרוב" */
  position: relative; overflow: hidden; border: 0; color: #fff;
  background:
    radial-gradient(circle at 100% 0%, var(--glow) 0, transparent 55%),
    radial-gradient(circle at 0% 100%, var(--glow2) 0, transparent 50%),
    linear-gradient(135deg, var(--g1), var(--g2));
}
html[dir="rtl"] .card {
  background:
    radial-gradient(circle at 0% 0%, var(--glow) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, var(--glow2) 0, transparent 50%),
    linear-gradient(225deg, var(--g1), var(--g2));
}
.card h3 { color: #fff; font-weight: 700; }
.card p { color: rgba(255, 255, 255, .9); }
.card:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--g2) 45%, transparent); }
.card .btn { background: var(--btn); color: var(--btn-ink); }
.card .btn.off { background: rgba(255, 255, 255, .12); color: #fff; border: 1px dashed rgba(255, 255, 255, .55); }
.card .tag { background: var(--tag); color: #2a1a00; font-weight: 500; }

/* CourierInfo — גווני סגול */
.app-ci { --g1: #2D1B69; --g2: #5B3FE4; --glow: rgba(140, 117, 240, .75); --glow2: rgba(214, 200, 251, .25); --btn: #F4EFFF; --btn-ink: #3F2A95; }
/* CourierFinance — כחול, עם ירוק הכנסות */
.app-cf { --g1: #1D4ED8; --g2: #2563EB; --glow: rgba(96, 165, 250, .7); --glow2: rgba(22, 163, 74, .45); --btn: #DBEAFE; --btn-ink: #1D4ED8; }
/* Alertly — טורקיז עמוק (כמו מצב הכהה שלה) וענבר */
.app-al { --g1: #06302B; --g2: #00796B; --glow: rgba(255, 160, 0, .5); --glow2: rgba(77, 182, 172, .35); --btn: #FFA000; --btn-ink: #1a1000; --tag: #FFA000; }
/* K Delivery — סגול, צהוב וקורל */
.app-kd { --g1: #3A1670; --g2: #6B2BC9; --glow: rgba(255, 203, 69, .6); --glow2: rgba(255, 107, 91, .55); --btn: #FFCB45; --btn-ink: #1B1430; --tag: #FF6B5B; }
.app-kd .tag { color: #fff; }
/* Piki — מנטה בהיר וכתום, כמו הממשק הבהיר של האפליקציה */
.app-piki {
  --btn: #0C8574; --btn-ink: #fff; --tag: #FF9640;
  color: #0F2E29;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 150, 64, .35) 0, transparent 50%),
    linear-gradient(135deg, #D8F1EB, #E9FAF6);
}
html[dir="rtl"] .app-piki {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 150, 64, .35) 0, transparent 50%),
    linear-gradient(225deg, #D8F1EB, #E9FAF6);
}
.app-piki h3 { color: #0C8574; }
.app-piki p { color: #4a6b65; }
.app-piki .btn.off { background: rgba(12, 133, 116, .08); color: #0C8574; border-color: rgba(12, 133, 116, .5); }
.app-piki:hover { box-shadow: 0 10px 26px rgba(255, 150, 64, .25); }

/* לוגואים בכרטיסים: מסגרת לבנה אחידה, הלוגו יושב בתוכה */
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.card-head h3 { margin: 0; }
.card .logo {
  flex: none; width: 60px; height: 60px; padding: 5px; border-radius: 18px;
  background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
  display: inline-flex;
}
.card .logo img { width: 100%; height: 100%; border-radius: 13px; object-fit: contain; display: block; }
.app-kd .logo { overflow: hidden; }
.app-kd .logo img { transform: scale(1.3); }

/* Piki במצב כהה: מנטה כהה כמו הממשק הכהה של האפליקציה */
:root[data-theme="dark"] .app-piki {
  --btn: #38D3BA; --btn-ink: #04231E; --tag: #FFB067;
  color: #E7F5F1;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 176, 103, .28) 0, transparent 50%),
    linear-gradient(135deg, #12302B, #152623);
}
:root[data-theme="dark"][dir="rtl"] .app-piki, html[dir="rtl"][data-theme="dark"] .app-piki {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 176, 103, .28) 0, transparent 50%),
    linear-gradient(225deg, #12302B, #152623);
}
:root[data-theme="dark"] .app-piki h3 { color: #38D3BA; }
:root[data-theme="dark"] .app-piki p { color: #9BB6B0; }
:root[data-theme="dark"] .app-piki .btn.off { background: rgba(56, 211, 186, .1); color: #8FEBDB; border-color: rgba(56, 211, 186, .5); }
:root[data-theme="dark"] .card .logo, :root[data-theme="dark"] .hero-art .logo { box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }

/* כפתור החלפת מצב בהיר/כהה */
.theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted);
}
.theme:hover { color: var(--primary); border-color: var(--primary); }
.theme svg { width: 18px; height: 18px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }

/* תוכן עניינים במסמכים */
.toc {
  margin: 20px 0 8px; padding: 14px 18px; border: 1px solid var(--border);
  border-radius: 14px; background: var(--surface); font-size: 15px;
}
.toc strong { display: block; margin-bottom: 6px; font-weight: 500; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* צילומי מסך בכרטיסים (מופיעים רק כשיש קבצים ב-assets/screens/<אפליקציה>/) */
.shots {
  display: flex; gap: 10px; overflow-x: auto; width: 100%; margin: 4px 0 16px; padding-bottom: 6px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.shots img {
  flex: none; height: 200px; width: auto; scroll-snap-align: start;
  border-radius: 16px; border: 3px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .15);
}

/* עמוד 404 */
.nf { text-align: center; padding: 72px 0 96px; }
.nf .code { font-size: clamp(72px, 18vw, 140px); font-weight: 700; line-height: 1; color: var(--primary); letter-spacing: -.02em; }
.nf p { margin: 8px auto; max-width: 40ch; color: var(--muted); }
.nf .btn { margin: 20px 6px 0; }

/* ─── דף מוצר ─── */
.product-hero { padding: 28px; margin-bottom: 8px; }
.product-hero:hover { transform: none; box-shadow: none; }
.product-hero .card-head { gap: 16px; }
.product-hero .card-head .logo { width: 72px; height: 72px; }
.product-hero h1 { margin: 0; color: #fff; font-size: 32px; }
.product-hero p { max-width: 56ch; font-size: 17px; line-height: 1.7; }
.product-hero .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.product-hero .btn.alt { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.feats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 12px 0 8px; }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.feat h3 { margin: 0 0 6px; font-size: 17px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.doc .steps { padding-inline-start: 22px; }
.doc .steps li { margin-bottom: 8px; max-width: 68ch; }
.card .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.card .btns .btn { margin-top: 0; }
.card .btn.alt { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .5); }

/* כפתורים: אותו גובה ורוחב מתאים, מיושרים גם כשעוברים לשורה חדשה */
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btns .btn { flex: 1 1 auto; justify-content: center; text-align: center; border: 1px solid transparent; box-sizing: border-box; min-height: 40px; }
.card .btns .btn.alt, .product-hero .btns .btn.alt { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); }
.product-hero .btns .btn { flex: 0 1 auto; min-width: 180px; }
.card .btns { align-self: stretch; width: 100%; }
.product-hero .card-head h1 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .product-hero { padding: 22px; }
  .product-hero h1 { font-size: 26px; }
  .product-hero .card-head { gap: 12px; }
  .product-hero .card-head .logo { width: 60px; height: 60px; flex: none; }
}

/* כניסה לפורטל בתפריט העליון */
.portal-link {
  font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--primary); color: var(--primary); text-decoration: none; white-space: nowrap;
}
.portal-link:hover { background: var(--primary); color: var(--on-primary); }

/* תפריט המבורגר */
.head-end .menu { order: 3; position: relative; }
.menu summary {
  list-style: none; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; cursor: pointer; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { color: var(--primary); border-color: var(--primary); }
.menu summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.menu summary svg { width: 18px; height: 18px; }
.menu nav {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 20;
  min-width: 230px; padding: 8px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
.menu nav a, .menu nav a:first-child {
  margin: 0; padding: 11px 14px; border-radius: 10px; color: var(--text); font-size: 16px;
  border: 0; display: block; white-space: nowrap;
}
.menu nav a:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.menu nav .portal-link {
  margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px;
  color: var(--primary); font-weight: 500; padding-top: 13px;
}
.menu nav .portal-link:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }

/* סרגל עליון: תפריט בצד ההתחלה (ימין בעברית, שמאל באנגלית), לוגו במרכז, שפה ומצב כהה בצד הנגדי */
header.site .wrap { position: relative; flex-wrap: nowrap; min-height: 64px; gap: 10px; }
.head-end { display: contents; }
.head-end .menu { order: -1; }
.head-end .lang { margin-inline-start: auto; }
header.site .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.menu nav { inset-inline-end: auto; inset-inline-start: 0; }
@media (max-width: 400px) { header.site .brand { font-size: 17px; } }
@media (max-width: 350px) { header.site .brand { font-size: 15px; } .lang a, .lang b { padding: 3px 9px; } }
@media (max-width: 480px) {
  header.site .wrap { gap: 6px; }
  .lang { font-size: 13px; }
  .lang a, .lang b { padding: 2px 9px; }
}
@media (max-width: 350px) { header.site .brand { font-size: 14px; } .lang a, .lang b { padding: 2px 7px; } .theme, .menu summary { width: 30px; height: 30px; } }

/* אייקונים ליכולות בדפי מוצר (צבע לפי האפליקציה) */
.feat::before { content: ""; display: block; width: 28px; height: 28px; margin-bottom: 10px; background: var(--g2); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
:root[data-theme="dark"] .feat::before { background: color-mix(in srgb, var(--g2, var(--primary)) 55%, #fff); }
.feat[data-i="grid"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z'/%3E%3C/svg%3E"); }
.feat[data-i="backup"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M4 16v4h16v-4'/%3E%3C/svg%3E"); }
.feat[data-i="filter"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18l-7 8v6l-4 2v-8L3 5z'/%3E%3C/svg%3E"); }
.feat[data-i="pin"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6 7-11a7 7 0 0 0-14 0c0 5 7 11 7 11zM12 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3C/svg%3E"); }
.feat[data-i="clock"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v5l3 2M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z'/%3E%3C/svg%3E"); }
.feat[data-i="package"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5v8l9 5 9-5V8zM3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.feat[data-i="chart"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18M7 15l4-4 3 3 5-6'/%3E%3C/svg%3E"); }
.feat[data-i="wallet"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h15a3 3 0 0 1 3 3v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7zm0 0V6a2 2 0 0 1 2-2h11M16 14h2'/%3E%3C/svg%3E"); }
.feat[data-i="ticket"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9a2 2 0 0 0 0 6v3h18v-3a2 2 0 0 1 0-6V6H3v3zM13 6v12'/%3E%3C/svg%3E"); }
.feat[data-i="bolt"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.feat[data-i="check"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.feat[data-i="tag"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8L3 12zM7.5 8.5h.01'/%3E%3C/svg%3E"); }
.feat[data-i="bell"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10 21a2 2 0 0 0 4 0'/%3E%3C/svg%3E"); }
.feat[data-i="sound"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4zM17 8a5 5 0 0 1 0 8'/%3E%3C/svg%3E"); }
.feat[data-i="building"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5l8-3 8 3v16M9 21v-4h6v4M8 9h2M14 9h2M8 13h2M14 13h2'/%3E%3C/svg%3E"); }
.feat[data-i="car"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h14M3 13l2-6h14l2 6v4H3v-4zM7 17v2M17 17v2M7 13h.01M17 13h.01'/%3E%3C/svg%3E"); }
.feat[data-i="list"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }

/* ─── פוטר בעמודות ─── */
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 24px; margin-bottom: 24px; }
.foot-col h4 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--text); }
.foot-col a, .foot-col p { display: block; margin: 0 0 7px; font-size: 15px; }
.foot-col p { color: var(--muted); max-width: 30ch; }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 16px; color: var(--muted); font-size: 14px; }

/* ─── צילומי מסך: מופיעים רק כשיש קבצים ב-assets/screens/<אפליקציה>/ ─── */
.gallery[hidden], .shots:empty, .phones:empty { display: none; }
.phones { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.phone { flex: none; width: 190px; scroll-snap-align: start; padding: 7px; border-radius: 28px; background: #121214; border: 2px solid #2c2c30; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.phone img { display: block; width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 21px; background: #222; }

/* ─── Piki: צבע עמוק יותר, מסגרת ברורה ─── */
.app-piki {
  border: 1px solid rgba(12, 133, 116, .38);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 150, 64, .38) 0, transparent 50%),
    linear-gradient(135deg, #BCE7DD, #D9F4ED);
}
html[dir="rtl"] .app-piki {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 150, 64, .38) 0, transparent 50%),
    linear-gradient(225deg, #BCE7DD, #D9F4ED);
}
.app-piki h3 { color: #08665A; }
.app-piki p { color: #34554F; }
:root[data-theme="dark"] .app-piki { border-color: rgba(56, 211, 186, .35); }

/* ─── צל לסרגל בגלילה ─── */
html.scrolled header.site { box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }
:root[data-theme="dark"].scrolled header.site { box-shadow: 0 4px 18px rgba(0, 0, 0, .5); }

/* ─── focus ברור למקלדת ─── */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px;
}
.btn:focus-visible, .portal-link:focus-visible { border-radius: 999px; }
.card a:focus-visible, .card .btn:focus-visible { outline-color: #fff; }
footer.site a { text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .foot-col:first-child { grid-column: 1 / -1; }
  .foot-col a { overflow-wrap: anywhere; }
}
@media (max-width: 560px) { .foot-col:last-child { grid-column: 1 / -1; } .foot-col:last-child a { overflow-wrap: normal; } }

/* ─── שאלות נפוצות ─── */
.faq { margin: 8px 0 8px; max-width: 720px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 500; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 24px; height: 24px; line-height: 22px; text-align: center; border-radius: 999px; border: 1px solid var(--border); color: var(--primary); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--muted); }
.feat::before { background: var(--g2, var(--primary)); }

/* ─── "עוד אפליקציות" ─── */
.more { margin-top: 8px; }
.card.mini { flex-direction: row; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.card.mini .mini-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card.mini b { font-size: 17px; }
.card.mini .mini-text span { font-size: 14px; opacity: .92; }
a.card.mini:hover { transform: translateY(-2px); }
.card.mini.app-piki { color: #0F2E29; }
.card.mini.app-piki b { color: #08665A; }
.card.mini.app-piki .mini-text span { color: #34554F; }
:root[data-theme="dark"] .card.mini.app-piki { color: #E7F5F1; }
:root[data-theme="dark"] .card.mini.app-piki b { color: #38D3BA; }
:root[data-theme="dark"] .card.mini.app-piki .mini-text span { color: #9BB6B0; }
.app-piki.product-hero h1 { color: #08665A; }
:root[data-theme="dark"] .app-piki.product-hero h1 { color: #38D3BA; }
.app-piki.product-hero p { color: #34554F; }
:root[data-theme="dark"] .app-piki.product-hero p { color: #9BB6B0; }

/* ─── תקציר במסמכים משפטיים ─── */
.summary { background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--primary); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.summary strong { display: block; margin-bottom: 4px; }
.summary p { margin: 0; color: var(--muted); }

/* עוגנים לא מוסתרים מתחת לסרגל הדביק */
html { scroll-padding-top: 84px; }

/* ─── מעבר רך בין דפים (בדפדפנים שתומכים) ─── */
@view-transition { navigation: auto; }
header.site { view-transition-name: site-header; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
:root[data-theme="dark"] .feat::before { background: color-mix(in srgb, var(--g2, var(--primary)) 55%, #fff); }
.btn img.gp { height: 18px; width: auto; display: block; flex: none; }

/* ─── תפריט נגישות ─── */
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.skip-link:focus { top: 8px; }
.a11y-btn { position: fixed; inset-inline-start: 14px; bottom: 14px; z-index: 50; width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--surface); background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.a11y-panel { position: fixed; inset-inline-start: 14px; bottom: 72px; z-index: 50; width: min(280px, calc(100vw - 28px)); padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 4px; }
.a11y-x { border: 0; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 6px; }
.a11y-row { display: flex; gap: 8px; }
.a11y-row button { flex: 1; }
.a11y-panel button[data-a] { font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; text-align: start; }
.a11y-panel button[data-a]:hover { border-color: var(--primary); }
.a11y-panel button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.a11y-panel .a11y-reset { color: var(--muted); }
.a11y-panel a { font-size: 14px; padding: 4px 2px; }

html.a11y-size-1 main, html.a11y-size-1 footer.site { zoom: 1.12; }
html.a11y-size-2 main, html.a11y-size-2 footer.site { zoom: 1.25; }
html.a11y-size-3 main, html.a11y-size-3 footer.site { zoom: 1.4; }
html.a11y-links a { text-decoration: underline !important; font-weight: 600; }
html.a11y-font body, html.a11y-font body * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .01em; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-contrast { --bg: #000; --text: #fff; --muted: #f0f0f0; --surface: #0b0b0b; --border: #fff; --primary: #ffd400; --on-primary: #000; }
html.a11y-contrast body { background: #000; color: #fff; }
html.a11y-contrast .card, html.a11y-contrast .feat, html.a11y-contrast .faq details, html.a11y-contrast .summary { background: #000 !important; border: 2px solid #fff !important; color: #fff !important; }
html.a11y-contrast .card h3, html.a11y-contrast .card p, html.a11y-contrast .card b, html.a11y-contrast .card span, html.a11y-contrast .product-hero h1 { color: #fff !important; }
html.a11y-contrast a { color: #ffd400; }
html.a11y-contrast .btn { background: #ffd400 !important; color: #000 !important; border-color: #ffd400 !important; }
html.a11y-contrast .btn.off, html.a11y-contrast .btn.alt { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html.a11y-contrast header.site, html.a11y-contrast footer.site { background: #000; }

/* ─── כפתור שיתוף ─── */
button.btn { font: inherit; cursor: pointer; }

/* ─── אודות: תמונה (מופיעה רק כשיש קובץ ב-assets/about/) ─── */
.maker { display: flex; align-items: center; gap: 20px; margin: 8px 0 12px; max-width: 68ch; }
.maker p { margin: 0; }
.maker-photo { flex: none; width: 168px; height: 168px; border-radius: 24px; overflow: hidden; border: 3px solid var(--border); box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.maker-photo[hidden] { display: none; }
.maker-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 480px) { .maker { flex-direction: column; align-items: flex-start; } }

/* ─── תצוגת בדיקה של צילומי מסך (?shots=demo) ─── */
.ph { aspect-ratio: 9 / 19.5; border-radius: 21px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #8a8aa0; background: repeating-linear-gradient(45deg, #2a2a34, #2a2a34 12px, #24242c 12px, #24242c 24px); }
.shots .ph { height: 200px; width: 92px; flex: none; aspect-ratio: auto; border-radius: 16px; border: 3px solid rgba(255, 255, 255, .35); font-size: 20px; }
.maker-photo.demo { display: flex; align-items: center; justify-content: center; background: #2a2a34; color: #8a8aa0; font-size: 30px; }
.btn[hidden] { display: none; }

/* לוגו בכותרת: גרסה לבהיר וגרסה לכהה, PNG עם שקיפות */
.lockup { display: block; width: 64px; height: auto; }
.lockup-dark { display: none; }
:root[data-theme="dark"] .lockup-light { display: none; }
:root[data-theme="dark"] .lockup-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .lockup-light { display: none; }
  :root:not([data-theme]) .lockup-dark { display: block; }
}
