/* עיצוב משותף לדפי השיווק (about, compare). לא תלוי ב-style.css של האפליקציה. */
/* hidden תמיד מוסתר, גם כשכלל אחר קובע display (למשל שורות הטבלה בנייד). */
[hidden] { display: none !important; }
:root {
  --bg: #f6f8fc; --surface: #fff; --text: #0f172a; --muted: #475569; --border: #e2e8f0;
  --brand: #1d4ed8; --brand-2: #0ea5e9; --brand-soft: #e0ecff; --ok: #15803d; --warn: #b45309; --no: #64748b;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120; --surface: #131c2e; --text: #e2e8f0; --muted: #94a3b8; --border: #253047;
    --brand: #60a5fa; --brand-2: #38bdf8; --brand-soft: #172554; --ok: #4ade80; --warn: #fbbf24; --no: #94a3b8;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* כותרת עליונה */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 18px; margin-inline-start: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

.btn { display: inline-block; padding: 12px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn.primary { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0b1120; } }
.btn.ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn.small { padding: 7px 14px; font-size: .95rem; }

/* פתיח */
.hero { padding: 56px 0 40px; background: radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; margin: 0 0 16px; }
.hero h1 span { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 24px; }
.hero .eyebrow { margin: 0 0 8px; font-weight: 700; color: var(--brand); letter-spacing: .02em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 14px; color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

/* מסגרת טלפון לצילומי מסך */
.phone { width: 100%; max-width: 300px; margin: 0 auto; border-radius: 34px; padding: 10px; background: #0f172a; box-shadow: var(--shadow), 0 0 0 1px #334155 inset; }
.phone img { border-radius: 26px; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; width: 100%; }
.phones { display: flex; gap: 16px; justify-content: center; }
.phones .phone { max-width: 250px; }
.phones .phone:nth-child(2) { transform: translateY(28px); }
@media (max-width: 820px) { .phones .phone:nth-child(2) { display: none; } }

section { padding: 56px 0; }
section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 10px; line-height: 1.25; }
section .sub { color: var(--muted); margin: 0 0 28px; font-size: 1.1rem; }
.center { text-align: center; }

/* פסי תכונות: טקסט וצילום מסך לסירוגין */
.feature { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: center; padding: 36px 0; border-top: 1px solid var(--border); }
.feature:nth-of-type(even) { grid-template-columns: 320px 1fr; }
.feature:nth-of-type(even) .shot { order: -1; }
.feature h3 { font-size: 1.55rem; margin: 0 0 10px; }
.feature .kicker { font-weight: 700; color: var(--brand); font-size: .95rem; }
.feature ul { padding-inline-start: 20px; margin: 12px 0 0; }
.feature li { margin: 6px 0; }
@media (max-width: 820px) {
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 20px; }
  .feature:nth-of-type(even) .shot { order: 0; }
  .feature .phone { max-width: 260px; }
}

/* רשת כרטיסים */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.tile .ic { font-size: 1.7rem; line-height: 1; }
.tile h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.tile p { margin: 0; color: var(--muted); font-size: .97rem; }
a.tile { display: block; color: inherit; text-decoration: none; }
a.tile:hover, a.tile:focus-visible { border-color: var(--brand); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); vertical-align: middle; }
.tag.soon { background: color-mix(in srgb, var(--warn) 18%, transparent); color: color-mix(in srgb, var(--warn) 75%, var(--text, #0f172a)); }

/* מחירים */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--brand); box-shadow: var(--shadow); }
/* כל הכרטיס לחיץ: הכפתור שבתחתית נמתח על כל הכרטיס. */
.plan { position: relative; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.plan .btn::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
.plan h3 { margin: 0; font-size: 1.25rem; }
.plan .price { font-size: 2.4rem; font-weight: 800; margin: 8px 0 0; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { padding-inline-start: 20px; margin: 14px 0 20px; flex: 1; }
.plan li { margin: 5px 0; }
.addon { margin-top: 16px; background: var(--surface); border: 1px dashed var(--border); border-radius: 16px; padding: 16px 20px; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* שאלות */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }

/* טבלת השוואה */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
table.cmp { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .95rem; }
table.cmp th, table.cmp td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
table.cmp thead th { position: sticky; top: 0; background: var(--surface); font-size: 1rem; }
table.cmp th[scope=row] { font-weight: 700; width: 17%; background: color-mix(in srgb, var(--brand-soft) 35%, var(--surface)); }
table.cmp td.us { background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: 0; }
/* בפלאפון הטבלה לא נגללת הצידה: כל שורה הופכת לכרטיס, ושם המערכת כתוב ליד כל ערך. */
@media (max-width: 760px) {
  .table-wrap { overflow: visible; border: 0; background: none; }
  table.cmp, table.cmp tbody, table.cmp tr, table.cmp th, table.cmp td { display: block; width: auto; min-width: 0; }
  table.cmp thead { display: none; }
  table.cmp tr { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 12px; overflow: hidden; }
  table.cmp th[scope=row] { width: auto; font-size: 1.05rem; }
  table.cmp td { padding: 10px 14px; }
  table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: 1px solid var(--border); }
  table.cmp tr td:last-child { border-bottom: 0; }
  table.cmp td::before { display: block; font-weight: 700; font-size: .85rem; color: var(--muted); margin-bottom: 2px; }
  table.cmp td:nth-child(2)::before { content: "RIShyON"; color: var(--brand); }
  table.cmp td:nth-child(3)::before { content: "עדי מובייל"; }
  table.cmp td:nth-child(4)::before { content: "Dio"; }
  table.cmp td:nth-child(5)::before { content: "DriveLog"; }
}
.y { color: var(--ok); font-weight: 700; }
.n { color: var(--no); }
.s { color: var(--warn); font-weight: 700; }

.cta-band { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 22px; padding: 36px 28px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); margin: 0 0 20px; }
.cta-band .btn.primary { background: #fff; color: #1d4ed8; }

footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
footer a { color: var(--muted); }

/* הוספה למסך הבית באייפון */
.hidden { display: none !important; }
.ios-box { background: var(--surface); border: 2px solid var(--brand); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.ios-head { display: flex; gap: 16px; align-items: center; }
.ios-head img { border-radius: 16px; flex: none; box-shadow: 0 4px 14px rgba(15, 23, 42, .18); }
.ios-head h2 { margin: 0 0 4px; font-size: 1.5rem; }
.ios-head p { margin: 0; color: var(--muted); }
.ios-steps { counter-reset: s; list-style: none; padding: 0; margin: 22px 0 10px; display: grid; gap: 12px; }
.ios-steps li { counter-increment: s; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.ios-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; flex: none; margin-inline-end: 6px; }
.ios-share { width: 24px; height: 24px; fill: none; stroke: #0a84ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ios-note { color: var(--muted); font-size: .93rem; margin: 6px 0 16px; }
.ios-chip { display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; text-decoration: none; }
#iphone.is-ios .ios-box { border-width: 3px; }
@media (prefers-color-scheme: dark) { .ios-steps li::before { color: #0b1120; } }
@media (max-width: 640px) { .ios-box { padding: 18px; } .ios-head img { width: 52px; height: 52px; } .ios-head h2 { font-size: 1.25rem; } .ios-open { width: 100%; text-align: center; } }

/* שורת אמון מתחת לפתיחה */
.trust { padding: 0 0 8px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.trust-list b { font-size: 1.02rem; }
.trust-list span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
@media (max-width: 820px) { .trust-list { grid-template-columns: 1fr 1fr; } }

/* מעבר ממערכת אחרת */
.steps { counter-reset: st; list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: st; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 6px; }
.steps b { font-size: 1.1rem; }
.steps span { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* כפתור הרשמה קבוע בתחתית, רק בטלפון */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta { display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20;
    background: var(--brand); color: #fff; font-weight: 800; text-decoration: none; padding: 14px; border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .3); }
  .sticky-cta small { font-weight: 500; opacity: .85; }
  footer { padding-bottom: 90px; }
}
@media (max-width: 640px) and (prefers-color-scheme: dark) { .sticky-cta { color: #0b1120; } }
@media (max-width: 820px) { .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; } .steps li::before { grid-row: span 2; margin: 0; } }
.plan .yearly { margin: 2px 0 0; color: var(--ok); font-size: .95rem; }
/* מדריכים: טקסט ארוך, בשורה שנוחה לקריאה */
.article { max-width: 760px; }
.article h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 32px 0 8px; }
.article h2:first-child { margin-top: 0; }
.article p, .article li { color: var(--text); }
.article ul, .article ol { padding-inline-start: 22px; }
.article li { margin: 4px 0; }
.article a { color: var(--brand); }
.article .muted.small { color: var(--muted); font-size: .9rem; margin-top: 24px; }
a.tile { color: inherit; text-decoration: none; }
a.tile:hover { border-color: var(--brand); }
