/* site.css — over-b.app, דף נחיתה סטטי. ללא frameworks/bundler. */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@700;800;900&family=Heebo:wght@400;500;700&display=swap');

:root{
  --blue: #1e3a8a;
  --navy: #152a63;
  --green: #21b053;
  --green-dark: #16863f;
  --bg: #fbfaf8;
  --border: #e8e6df;
  --border-2: #d9dfe8;
  --text-1: #334155;
  --text-2: #475569;
  --text-3: #64748b;
  --text-4: #94a3b8;
  --badge-blue-bg: #eef2fb;
  --radius-lg: 18px;
  --radius-md: 12px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'Heebo', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.5;
}

img{ display: block; max-width: 100%; }

h1, h2{ font-family: 'Rubik', 'Heebo', sans-serif; }

a{ color: var(--blue); }
a:hover{ color: var(--green); }

.skip-link{
  position: absolute;
  right: 12px;
  top: -60px;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 1000;
  transition: top .15s ease;
}
.skip-link:focus{ top: 12px; }

/* ---------- כפתורים ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-md);
  padding: 14px 26px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary{
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 24px rgba(33,176,83,.28);
}
.btn-primary:hover{ color: #fff; filter: brightness(1.04); }
.btn-primary svg{ flex-shrink: 0; }

.soon-text{
  color: var(--text-4);
  font-size: 13px;
  font-weight: 500;
}
.store-badges{
  display: flex;
  align-items: center;
  gap: 10px;
}
.store-badges img{ display: block; }
.store-badges .badge-appstore{ height: 40px; }
.store-badges .badge-googleplay{ height: 40px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 20px;
  background: rgba(251,250,248,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand img{ width: 52px; height: 52px; }
.brand-name{
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: 27px;
  font-weight: 900;
  color: var(--navy);
}
.brand-accent{ color: var(--green); }

.main-nav{
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a{
  color: var(--text-2);
  text-decoration: none;
}
.main-nav a:hover{ color: var(--green); }

.header-cta{ display: none; }

.nav-toggle{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 0;
}
.nav-toggle:hover{ background: var(--badge-blue-bg); }

.mobile-nav{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 20px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav[hidden]{ display: none; }
.mobile-nav a{
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 4px;
  border-radius: 8px;
}
.mobile-nav a:hover{ background: var(--badge-blue-bg); color: var(--blue); }
.mobile-nav .btn-primary{ margin-top: 8px; justify-content: center; }

/* ---------- Hero ---------- */
.hero{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 40px 20px 48px;
}

.hero-content{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-eyebrow{
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
  margin: 0;
}

.hero h1{
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  color: var(--navy);
}
.hero h1 br{ display: none; }

.hero-lede{
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
  max-width: 520px;
}

.hero-license{
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
}

.hero-download{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-soon{
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.hero-updates{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
}
.hero-updates-btn{
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: transparent;
  border: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
.hero-updates-btn:hover{ color: var(--green); }

.hero-stats{
  display: flex;
  gap: 28px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stat{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat-num{
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--blue);
}
.hero-stat-num.accent{ color: var(--green); }
.hero-stat-label{
  font-size: 13px;
  color: var(--text-2);
}

.hero-phone-wrap{
  position: relative;
  flex-shrink: 0;
  margin-top: 8px;
}

.phone-frame{
  width: 266px;
  border-radius: 30px;
  background: var(--navy);
  padding: 8px;
  box-shadow: 0 24px 48px rgba(21,42,99,.25);
}

.app-carousel{
  position: relative;
  width: 250px;
  height: 485px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--navy);
}
.app-carousel img.shot{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: inherit;
  opacity: 0;
  animation: appShotFade 16s ease-in-out infinite;
}
.app-carousel img.shot.first{ animation-name: appShotFadeFirst; }

@keyframes appShotFade{
  0%{ opacity: 0; }
  5%{ opacity: 1; }
  25%{ opacity: 1; }
  31.25%{ opacity: 0; }
  100%{ opacity: 0; }
}
@keyframes appShotFadeFirst{
  0%{ opacity: 1; }
  25%{ opacity: 1; }
  31.25%{ opacity: 0; }
  93.75%{ opacity: 0; }
  100%{ opacity: 1; }
}


/* ---------- דיאלוג עדכוני השקה ---------- */
.updates-dialog{
  position: relative;
  border: none;
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  max-width: 380px;
  width: calc(100vw - 40px);
  box-shadow: 0 24px 64px rgba(21,42,99,.35);
  color: var(--navy);
  background: #fff;
}
.updates-dialog::backdrop{
  background: rgba(21,42,99,.45);
}
.updates-dialog h2{
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--navy);
}
.updates-dialog-lede{
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 18px;
}
.updates-close{
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.updates-close:hover{ background: var(--badge-blue-bg); color: var(--navy); }
.updates-form{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.updates-label{
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-1);
}
.updates-input{
  font-family: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
}
.updates-input:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.updates-submit{
  justify-content: center;
  margin-top: 6px;
}
.updates-submit:disabled{ opacity: .6; cursor: not-allowed; }
.updates-status{
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}
.updates-status:not(:empty){ margin-top: 14px; }
.updates-status-ok{ color: var(--green-dark); font-weight: 700; }
.updates-status-error{ color: #b3261e; }
.updates-status-error a{ color: #b3261e; }

/* ---------- About ---------- */
.about{
  background: var(--badge-blue-bg);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-text{
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about h2{
  font-size: 26px;
  font-weight: 900;
  margin: 0;
}
.about-text p{
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-1);
}
.about-text p.note{
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
}

.fit-card{
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(30,58,138,.10);
}
.fit-card-title{
  font-weight: 700;
  font-size: 16px;
  color: var(--blue);
}
.fit-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--text-1);
}
.fit-list li{
  display: flex;
  align-items: center;
  gap: 10px;
}
.fit-list svg{ flex-shrink: 0; }

/* ---------- Features ---------- */
.features{
  padding: 48px 20px;
}
.features h2{
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 8px;
}
.features-lede{
  font-size: 16px;
  color: var(--text-2);
  margin: 0 0 28px;
}
.features-grid{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-icon{
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--badge-blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-body{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feature-body h3{
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  color: var(--navy);
}
.feature-body p{
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}

/* ---------- Download (dark) ---------- */
.download-dark{
  background: var(--navy);
  color: #fff;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.download-main{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.download-dark h2{
  font-size: 26px;
  font-weight: 900;
  margin: 0;
  color: #fff;
}
.download-dark > .download-main > p{
  font-size: 15px;
  line-height: 1.7;
  color: #c7d2ea;
  margin: 0;
  max-width: 520px;
}
.download-cta-row{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.download-meta{
  font-size: 13px;
  color: var(--text-4);
}
.download-note{
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-4);
  margin: 0;
  max-width: 520px;
}

.contact-card{
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-card-title{ font-weight: 700; font-size: 16px; }
.contact-card p{
  font-size: 14px;
  line-height: 1.7;
  color: #c7d2ea;
  margin: 0;
}
.contact-email{
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: #fff;
}
.contact-email:hover{ background: rgba(255,255,255,.16); color: #fff; }
.contact-email span{ font-size: 14px; font-weight: 500; direction: ltr; }

/* ---------- Footer ---------- */
.site-footer{
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13.5px;
}
.footer-nav a{
  color: var(--text-2);
  text-decoration: none;
}
.footer-nav a:hover{ color: var(--green); }
.footer-copy{
  font-size: 13.5px;
  color: var(--text-3);
}

/* ============================================================
   מתחת ל-1024px — הפרדה ברורה בין סקשנים במסכי מובייל/טאבלט
   ============================================================ */
@media (max-width: 1023px){
  .about{ border-top: 1px solid var(--border-2); }
  .features{ border-top: 1px solid var(--border); }
  .download-dark{ border-top: 1px solid rgba(255,255,255,.14); }
}

/* ============================================================
   מסך 640px ומעלה — הגדלת רווחים/גופנים, עדיין עמודה אחת
   ============================================================ */
@media (min-width: 640px){
  .hero{ padding: 56px 32px 64px; }
  .hero h1{ font-size: 42px; }
  .hero-lede{ font-size: 17px; }
  .about, .features, .download-dark{ padding-left: 32px; padding-right: 32px; }
  .features-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .footer-nav{ font-size: 14px; }
}

/* ============================================================
   מסך 1024px ומעלה — פריסת דסקטופ, שורה אחת בהיירו/הורדה
   ============================================================ */
@media (min-width: 1024px){
  .site-header{ padding: 12px 80px; }
  .main-nav{ display: flex; }
  .header-cta{
    display: inline-flex;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
  }
  .header-cta:hover{ color: #fff; filter: brightness(1.04); }
  .nav-toggle{ display: none; }
  .mobile-nav{ display: none !important; }

  .hero{
    flex-direction: row;
    align-items: center;
    text-align: right;
    gap: 64px;
    padding: 72px 80px 88px;
  }
  .hero-content{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .hero-eyebrow{ font-size: 21px; }
  .hero h1{ font-size: 58px; }
  .hero h1 br{ display: initial; }
  .hero-lede{ font-size: 19px; }
  .hero-license{ font-size: 14px; }
  .hero-download{ flex-direction: row; align-items: center; gap: 16px; }
  .hero-soon{ align-items: flex-start; }
  .hero-updates{ justify-content: flex-start; }
  .hero-stats{ justify-content: flex-start; gap: 40px; }
  .hero-stat-num{ font-size: 28px; }
  .hero-stat-label{ font-size: 14px; }

  .hero-phone-wrap{ padding: 24px 10px 0 40px; }
  .phone-frame{ width: 332px; border-radius: 36px; padding: 10px; box-shadow: 0 32px 64px rgba(21,42,99,.25); }
  .app-carousel{ width: 312px; height: 606px; border-radius: 28px; }

  .about{
    flex-direction: row;
    gap: 64px;
    align-items: flex-start;
    padding: 64px 80px;
  }
  .about-text{ flex: 1; }
  .about h2{ font-size: 34px; }
  .about-text p{ font-size: 17px; }
  .about-text p.note{ font-size: 14px; }
  .fit-card{ width: 340px; flex-shrink: 0; padding: 28px; }

  .features{ padding: 72px 80px; }
  .features h2{ font-size: 34px; }
  .features-lede{ font-size: 17px; margin-bottom: 40px; }
  .features-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
  .feature-card{ flex-direction: column; padding: 28px; }
  .feature-icon{ width: 48px; height: 48px; }
  .feature-body h3{ font-size: 18px; }
  .feature-body p{ font-size: 15px; }

  .download-dark{ flex-direction: row; align-items: center; gap: 64px; padding: 72px 80px; }
  .download-main{ flex: 1; }
  .download-dark h2{ font-size: 34px; }
  .download-dark > .download-main > p{ font-size: 17px; }
  .contact-card{ width: 320px; flex-shrink: 0; }

  .site-footer{ flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 80px; }
}

/* ---------- נגישות: פוקוס נראה ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible{
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .app-carousel img.shot{ animation: none !important; opacity: 0; }
  .app-carousel img.shot.first{ opacity: 1; }
}

/* ============================================================
   רכיב נגישות
   ============================================================ */
.a11y-toggle{
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 9999;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 0 14px 14px 0;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30,58,138,.35);
}
.a11y-toggle:hover{ background: var(--navy); }

.a11y-panel{
  position: fixed;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  z-index: 9999;
  width: min(300px, calc(100vw - 80px));
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(21,42,99,.28);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.a11y-panel[hidden]{ display: none; }

.a11y-panel h2{
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.a11y-btn{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  background: var(--badge-blue-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  text-align: right;
}
.a11y-btn:hover{ filter: brightness(0.97); }
.a11y-btn[aria-pressed="true"]{
  background: var(--blue);
  color: #fff;
}

.a11y-reset{
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  cursor: pointer;
}
.a11y-reset:hover{ background: var(--badge-blue-bg); }

.a11y-panel a.a11y-statement{
  font-size: 13px;
  text-align: center;
  margin-top: 4px;
}

/* --- מצבי נגישות גלובליים --- */
html.a11y-text-1{ font-size: 112%; }
html.a11y-text-2{ font-size: 128%; }

html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after{
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
html.a11y-no-motion .app-carousel img.shot{ opacity: 0; }
html.a11y-no-motion .app-carousel img.shot.first{ opacity: 1; }

html.a11y-underline-links a{ text-decoration: underline !important; }

html.a11y-contrast{
  --bg: #ffffff;
  --navy: #000000;
  --blue: #001a75;
  --green: #0a6b2a;
  --green-dark: #0a6b2a;
  --text-1: #000000;
  --text-2: #1a1a1a;
  --text-3: #262626;
  --text-4: #333333;
  --border: #000000;
  --border-2: #000000;
  --badge-blue-bg: #dbe4ff;
}
html.a11y-contrast body{ background: #ffffff; }
html.a11y-contrast .download-dark,
html.a11y-contrast .contact-card,
html.a11y-contrast .site-header{
  background: #000000;
  color: #ffffff;
}
html.a11y-contrast .download-dark > .download-main > p,
html.a11y-contrast .download-note,
html.a11y-contrast .contact-card p,
html.a11y-contrast .download-meta{ color: #ffffff; }
html.a11y-contrast .main-nav a,
html.a11y-contrast .brand-name{ color: #ffffff; }
html.a11y-contrast .soon-text{ color: #ffffff; }
