/* ---------------------------------------------------------------------------
   ototo.benbasha.com — web identity. Mirrors src/theme/tokens.ts:
   deep blue + Israeli-plate yellow, clean slate, Heebo display + Assistant body.
--------------------------------------------------------------------------- */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --accent: #1e3a8a;          /* deep blue */
  --accent-dark: #15296a;
  --accent-soft: #eff6ff;
  --plate-yellow: #f5d547;
  --plate-deep: #c9a93a;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --overdue: #dc2626;
  --overdue-soft: #fee2e2;
  --text: #0f172a;
  --text-2: #64748b;
  --border: #e2e8f0;
  --divider: #f1f5f9;
  --radius: 16px;
  --radius-card: 22px;
  --shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, 0.14);
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 1px 1px, rgba(30, 58, 138, 0.035) 1px, transparent 0);
  background-size: 22px 22px;
}
h1, h2, h3, .display { font-family: "Heebo", system-ui, sans-serif; color: var(--text); margin: 0; letter-spacing: -0.4px; }
a { color: var(--accent); text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
img { display: block; max-width: 100%; }

/* shared inline-svg icon base */
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }

.section-title { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; margin: 0 0 10px; font-weight: 800; }
.section-sub { color: var(--text-2); font-size: 18px; max-width: 38em; margin: 0 0 36px; }

/* a little Israeli-plate brand mark */
.plate-tag { display: inline-flex; align-items: center; justify-content: center; background: var(--plate-yellow); border: 1.5px solid var(--plate-deep); border-radius: 5px; padding: 3px 4px; }
.plate-tag .il { background: var(--accent); color: #fff; font-family: "Heebo", sans-serif; font-weight: 800; font-size: 10px; letter-spacing: 1px; padding: 1px 4px; border-radius: 3px; line-height: 1.4; }
.plate-tag.big { padding: 6px 9px; border-radius: 9px; box-shadow: var(--shadow); }
.plate-tag.big .il { font-size: 17px; padding: 3px 8px; }

/* ------------------------------- header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Heebo", sans-serif; font-weight: 800; font-size: 20px; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow); }
.site-header nav { margin-inline-start: auto; display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
.site-header nav a { color: var(--text-2); }
.site-header nav a:hover { color: var(--text); }

/* ------------------------------ store badge ------------------------------ */
.store-badge { display: inline-flex; position: relative; }
.store-badge img { height: 54px; width: auto; display: block; }
.store-badge.soon { pointer-events: none; filter: grayscale(0.12); }
.store-badge.soon::after {
  content: 'בקרוב'; position: absolute; top: -9px; inset-inline-end: -10px;
  background: var(--plate-yellow); color: var(--text);
  border: 1px solid var(--plate-deep); border-radius: 999px;
  font-family: "Heebo", sans-serif; font-weight: 800; font-size: 11px;
  padding: 1px 9px; box-shadow: var(--shadow);
}

/* -------------------------------- hero ----------------------------------- */
.hero { padding: 64px 0 30px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-family: "Heebo", sans-serif; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 6px 16px 6px 8px; border-radius: 999px; font-size: 14px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; margin: 18px 0 16px; font-weight: 900; }
.hero h1 .mark { position: relative; white-space: nowrap; }
.hero h1 .mark::after { content: ''; position: absolute; inset-inline: -3px; bottom: 8px; height: 15px; background: var(--plate-yellow); border-radius: 3px; z-index: -1; transform: rotate(-1deg); }
.hero p.sub { font-size: 19px; color: var(--text-2); margin: 0 0 24px; max-width: 31em; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--text-2); margin: 14px 0 0; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chip { font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; box-shadow: var(--shadow); }
.chip b { color: var(--accent); }

/* --------------------- hero phone mockup + toast ------------------------- */
.hero-shot { position: relative; justify-self: center; }
.toast {
  position: absolute; top: -16px; inset-inline-start: -22px; z-index: 3;
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 11px 14px; box-shadow: var(--shadow-lg); max-width: 250px;
}
.toast-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; flex: none; }
.toast-ic .i { width: 19px; height: 19px; stroke: #fff; }
.toast-tx { font-size: 13px; line-height: 1.35; color: var(--text); }
.toast-tx b { display: block; font-family: "Heebo", sans-serif; font-weight: 800; font-size: 12px; color: var(--accent); }

.phone { width: 300px; max-width: 84vw; }
.phone .device { background: #0b1220; border-radius: 42px; padding: 12px; box-shadow: var(--shadow-lg); }
.phone .screen { background: var(--bg); border-radius: 32px; overflow: hidden; padding: 16px 14px 22px; }
.phone .notch { width: 120px; height: 22px; background: #0b1220; border-radius: 0 0 16px 16px; margin: -16px auto 12px; }
.app-title { font-family: "Heebo", sans-serif; font-weight: 900; font-size: 22px; text-align: right; margin: 2px 2px 14px; }
.app-title span { color: var(--accent); }
.car-card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 16px; position: relative; overflow: hidden; }
.car-card .strip { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 6px; background: var(--warning); }
.car-card .row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.car-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.car-ic .i { width: 22px; height: 22px; }
.car-name { font-family: "Heebo", sans-serif; font-weight: 800; font-size: 16px; }
.plate { display: inline-flex; direction: ltr; border-radius: 6px; overflow: hidden; border: 1px solid var(--plate-deep); font-family: "Heebo", sans-serif; font-weight: 700; font-size: 13px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.plate .il { background: var(--accent); color: #fff; padding: 4px 5px; font-size: 9px; line-height: 1.6; letter-spacing: 1px; }
.plate .num { background: var(--plate-yellow); color: var(--text); padding: 4px 9px; letter-spacing: 1px; }
.deadline { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--divider); }
.deadline .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.deadline .ico .i { width: 18px; height: 18px; }
.deadline .lbl { flex: 1; }
.deadline .lbl b { font-family: "Heebo", sans-serif; display: block; font-size: 14px; }
.deadline .lbl small { color: var(--text-2); direction: ltr; display: inline-block; }
.pill { font-family: "Heebo", sans-serif; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: #15803d; }
.pill.warn { background: var(--warning-soft); color: #b45309; }
.pill.over { background: var(--overdue-soft); color: var(--overdue); }
.pill.unset { background: var(--divider); color: var(--text-2); }

/* ------------------------------- stats ----------------------------------- */
.stats { background: var(--accent); color: #fff; margin-top: 26px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 28px 10px; }
.stat + .stat { border-inline-start: 1px solid rgba(255, 255, 255, 0.16); }
.stat strong { display: block; font-family: "Heebo", sans-serif; font-weight: 900; font-size: clamp(28px, 4vw, 42px); color: var(--plate-yellow); line-height: 1.05; }
.stat span { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }

/* ------------------------------ features --------------------------------- */
.features-sec { padding: 70px 0 56px; }
.features-sec .section-title, .features-sec .section-sub { text-align: center; }
.features-sec .section-sub { margin-inline: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-4px); border-color: #c9d6ef; box-shadow: var(--shadow-lg); }
.feature .f-ic { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature .f-ic .i { width: 25px; height: 25px; }
.feature h3 { font-size: 19px; margin: 0 0 7px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* ----------------------------- how it works ------------------------------ */
.how { padding: 14px 0 56px; }
.how .section-title, .how .section-sub { text-align: center; }
.how .section-sub { margin-inline: auto; }
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.step-n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: #fff; font-family: "Heebo", sans-serif; font-weight: 900; font-size: 20px; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* ------------------------------- gallery --------------------------------- */
.gallery { padding: 8px 0 56px; }
.shots {
  display: flex; gap: 18px; overflow-x: auto; padding: 30px 22px 16px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.shots img {
  width: 244px; height: auto; flex: 0 0 auto; scroll-snap-align: center;
  border-radius: 30px; border: 6px solid #0b1220; background: #0b1220; box-shadow: var(--shadow-lg);
}

/* ------------------------------ languages -------------------------------- */
.languages { padding: 8px 0 56px; text-align: center; }
.lang-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 28px; }
.lang-chips span { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 9px 20px; font-weight: 600; font-size: 16px; box-shadow: var(--shadow); }

/* ------------------------------- pricing --------------------------------- */
.pricing { padding: 8px 0 64px; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 22px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 30px 28px 32px; box-shadow: var(--shadow); }
.plan.premium { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan-tag { position: absolute; top: 22px; inset-inline-end: 24px; background: var(--plate-yellow); color: var(--text); font-family: "Heebo", sans-serif; font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--plate-deep); }
.plan h3 { font-size: 22px; }
.plan .price { font-family: "Heebo", sans-serif; font-weight: 900; font-size: 38px; color: var(--accent); margin: 6px 0 2px; }
.plan .price small { font-family: "Assistant", sans-serif; font-weight: 600; font-size: 14px; color: var(--text-2); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { display: flex; align-items: flex-start; gap: 11px; padding: 10px 0; border-top: 1px solid var(--divider); font-size: 15.5px; }
.plan li:first-child { border-top: 0; }
.plan li::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ------------------------------ final cta -------------------------------- */
.final-cta { text-align: center; padding: 26px 0 84px; }
.final-cta .plate-tag.big { margin-bottom: 22px; }
.final-cta h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; margin-bottom: 8px; }
.final-cta p { color: var(--text-2); font-size: 18px; margin: 0 0 26px; }
.final-cta .store-badge { justify-content: center; }

/* ------------------------------ legal pages ------------------------------ */
.legal { max-width: 760px; margin: 0 auto; padding: 44px 22px 70px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 21px; margin-top: 32px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.legal .updated { color: var(--text-2); font-size: 14px; }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 44px 0; }
.legal a { word-break: break-word; text-decoration: underline; text-decoration-color: var(--plate-deep); }
.legal .callout { background: var(--accent-soft); border: 1px solid #dbe7ff; border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; }
.lang-switch { display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; margin: 4px 0 24px; font-weight: 700; font-size: 15px; }
.lang-switch a { padding: 7px 20px; color: var(--text); text-decoration: none; }
.lang-switch a + a { border-inline-start: 1.5px solid var(--border); }
.lang-switch a.active { background: var(--accent); color: #fff; }

/* -------------------------------- footer --------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.site-footer .wrap { display: grid; gap: 12px; padding: 32px 22px 40px; color: var(--text-2); font-size: 14px; }
.site-footer .brand { font-size: 17px; }
.site-footer .brand img { width: 28px; height: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; }
.site-footer .disclaimer { margin: 4px 0 0; max-width: 60em; line-height: 1.6; }

/* ------------------------------ responsive ------------------------------- */
@media (max-width: 820px) {
  .hero { padding: 40px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .kicker { margin: 0 auto; }
  .hero p.sub { margin-inline: auto; }
  .cta-row, .chips { justify-content: center; }
  .toast { inset-inline-start: auto; inset-inline-end: 0; top: -12px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .price-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature { transition: none; }
}
