:root {
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f5f6fb;
  --text: #111827;
  --text-muted: #4b5563;
  --border: #e5e7eb;
  --focus: #fbbf24;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(17, 24, 39, 0.08);
  --max-w: 1120px;
}

body.high-contrast {
  --brand: #0000ff;
  --brand-dark: #00008b;
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --text: #000000;
  --text-muted: #000000;
  --border: #000000;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Assistant", "Rubik", "Segoe UI", "Arial Hebrew", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--brand-dark);
  text-underline-offset: 3px;
}
a:hover { color: var(--brand); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  right: 8px;
  top: -40px;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 1000;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 8px; color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.nav-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  border-bottom-color: var(--brand);
  color: var(--brand-dark);
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 1.3rem;
  cursor: pointer;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.mobile-nav a { text-decoration: none; color: var(--text); font-weight: 600; display: block; padding: 8px; }

.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
}
.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 28px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 20px; color: var(--text-muted); font-size: 0.95rem; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.1s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand-dark); border-color: var(--brand); }
.btn-secondary:hover { background: #eef2ff; color: var(--brand-dark); }
.btn-sm { padding: 8px 16px; font-size: 0.95rem; }

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: #1a1a2e;
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.1s, background 0.15s;
}
.btn-play:hover { background: #2d2d4e; color: #fff; transform: translateY(-1px); }
.btn-play .play-icon { font-size: 1.5rem; line-height: 1; }
.btn-play .play-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn-play .play-sub { font-size: 0.72rem; font-weight: 400; opacity: 0.8; }
.btn-play .play-store { font-size: 1rem; font-weight: 700; }

.cta-section { text-align: center; }
.cta-box {
  background: linear-gradient(135deg, #eef2ff 0%, #fef3c7 100%);
  border-radius: 20px;
  padding: 48px 24px;
  max-width: 760px;
  margin-inline: auto;
}
.cta-box h2 { margin-top: 0; }
.cta-center { justify-content: center; }
.cta-meta { margin-top: 20px; color: var(--text-muted); font-size: 0.95rem; }
.quick-login {
  padding: 24px 0 12px;
}
.quick-login-inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.quick-login-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
}
.quick-login-inner p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.phone-mock {
  background: #1f2937;
  border-radius: 36px;
  padding: 14px;
  max-width: 320px;
  margin-inline: auto;
  box-shadow: var(--shadow);
}
.phone-screen {
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chip {
  background: #eef2ff;
  color: var(--brand-dark);
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: start;
}
.chip.accent { background: #fef3c7; color: #92400e; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-alt);
  padding: 10px 12px;
  border-radius: 10px;
}
.row strong { color: var(--brand-dark); }
.row.done { opacity: 0.6; text-decoration: line-through; }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 32px;
  text-align: center;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-icon { font-size: 2rem; margin-bottom: 8px; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--text-muted); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.step-num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 12px;
}
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; color: var(--text-muted); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin-inline: auto;
}
.plan {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.plan h3 { margin: 0 0 8px; }
.plan .price { font-size: 1.1rem; color: var(--text-muted); margin: 0 0 14px; }
.plan .price span { font-size: 2rem; font-weight: 800; color: var(--text); }
.plan ul { list-style: "✓  "; padding-inline-start: 20px; margin: 0 0 20px; }
.plan ul li { margin-bottom: 6px; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.pricing-grid.single { grid-template-columns: 1fr; max-width: 520px; }
.plan .price-sub { margin: -10px 0 16px; color: var(--text-muted); font-size: 0.95rem; }
.plan-note { margin: 12px 0 0; font-size: 0.9rem; color: var(--text-muted); text-align: center; }
.badge {
  position: absolute;
  top: -12px;
  inset-inline-end: 20px;
  background: var(--accent);
  color: #111;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand);
  margin-inline-start: 12px;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--text-muted); }

.contact-form {
  max-width: 560px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}
.field input:focus, .field textarea:focus {
  border-color: var(--brand);
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #b91c1c;
}
.form-note { min-height: 1.5em; margin: 0; font-weight: 600; }
.form-note.success { color: #065f46; }
.form-note.error { color: #b91c1c; }

.site-footer {
  background: #111827;
  color: #e5e7eb;
  padding: 40px 0 28px;
  margin-top: 60px;
}
.site-footer a { color: #c7d2fe; }
.site-footer a:hover { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}
.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer .logo { color: #fff; }
.copyright { grid-column: 1 / -1; margin: 16px 0 0; font-size: 0.9rem; color: #9ca3af; }
.link-btn {
  background: transparent;
  border: 0;
  color: #c7d2fe;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover {
  color: #fff;
}

.cookie-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 60;
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
  max-width: 760px;
  margin-inline: auto;
}
.cookie-banner p {
  margin: 0;
}
.cookie-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.a11y-toolbar {
  position: fixed;
  inset-inline-start: 16px;
  bottom: 16px;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 999px;
  padding: 6px;
  display: flex;
  gap: 4px;
  box-shadow: var(--shadow);
  z-index: 40;
}
.a11y-toolbar button {
  background: transparent;
  border: 0;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
  color: var(--brand-dark);
  min-width: 40px;
}
.a11y-toolbar button:hover { background: #eef2ff; }
.a11y-toolbar button[aria-pressed="true"] { background: var(--brand); color: #fff; }

.legal { padding: 40px 0 60px; max-width: 820px; }
.legal h1 { font-size: 2rem; margin-bottom: 6px; }
.legal h2 { margin-top: 32px; font-size: 1.3rem; }
.legal .updated { color: var(--text-muted); margin-bottom: 24px; }
.legal ul { padding-inline-start: 20px; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.95rem;
}
.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: start;
  vertical-align: top;
}
.legal th {
  background: var(--bg-alt);
}
.legal .contact-block { list-style: none; padding: 0; }
.legal .back { margin-top: 40px; }

@media (max-width: 820px) {
  .nav-list { display: none; }
  .menu-toggle { display: inline-block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .footer-inner { grid-template-columns: 1fr; }
}
