:root {
  color-scheme: light;
  --bg: #eaf4ff;
  --bg-soft: #e3f0ff;
  --bg-warm: #dbe6fd;
  --card: rgba(255, 255, 255, 0.78);
  --text: #0f2147;
  --muted: #5e7398;
  --accent: #2f7cf6;
  --accent-strong: #1e63de;
  --border: rgba(255, 255, 255, 0.8);
  --shadow: 0 20px 55px rgba(47, 124, 246, 0.18);
  --shadow-soft: 0 8px 22px rgba(47, 124, 246, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 640px at 85% -12%, rgba(47, 124, 246, 0.18), transparent 58%),
    linear-gradient(180deg, #e3f0ff 0%, #eaf4ff 42%, #f4f9ff 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Hebrew: one clean sans-serif everywhere (matches body / section-sub text) */
html[lang="he"] body {
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[lang="he"] .hero h1,
html[lang="he"] .section h2,
html[lang="he"] .feature h3,
html[lang="he"] .brand,
html[lang="he"] .hero-badge,
html[lang="he"] .hero-lead,
html[lang="he"] .section-sub,
html[lang="he"] .feature p,
html[lang="he"] .site-nav,
html[lang="he"] .model-card,
html[lang="he"] .contact-row,
html[lang="he"] .contact-cta,
html[lang="he"] .team-card,
html[lang="he"] .team-role,
html[lang="he"] .team-bio {
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[lang="he"] .hero h1 {
  font-weight: 700;
}

html[lang="he"] .section h2 {
  font-weight: 700;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
}

.container {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.header-end {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 16px;
}

.site-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      1200px 600px at 80% -10%,
      var(--bg-warm),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding-block: clamp(44px, 7vw, 92px);
  min-height: calc(100dvh - 67px);
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (max-width: 1023px) {
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-lead {
    max-width: min(48ch, 100%);
    margin-inline: auto;
  }

  .hero .store-links {
    justify-content: center;
    direction: ltr;
  }

  .hero-art {
    padding-bottom: 40px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(47, 124, 246, 0.12);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 14px;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.hero-lead {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
  margin: 0 0 30px;
  max-width: min(48ch, 100%);
}

.hero-art {
  display: grid;
  place-items: center;
}

.phone-frame {
  margin: 0;
  width: min(280px, 72%);
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(15, 33, 71, 0.1);
  background: #fff;
  box-shadow: 0 26px 50px rgba(47, 124, 246, 0.28);
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Store badges — matching PNG assets (564×168, same aspect ratio) */
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.store-badge {
  display: block;
  line-height: 0;
  transition: opacity 0.15s ease, translate 0.15s ease;
}

.store-badge:hover {
  opacity: 0.88;
  translate: 0 -2px;
}

.store-badge img {
  display: block;
  height: 54px;
  width: auto;
}

/* Sections */
.section {
  padding-block: clamp(48px, 7vw, 88px);
}

.section-alt {
  background: rgba(219, 230, 253, 0.45);
}

.section h2 {
  font-size: clamp(27px, 3.6vw, 38px);
  margin: 0 0 12px;
  text-align: center;
  font-weight: 800;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 46px;
  max-width: 58ch;
  font-size: 17px;
}

/* Features */
.features {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.feature {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(47, 124, 246, 0.12);
  font-size: 27px;
  margin-bottom: 16px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* Screenshots — real App Store marketing images */
.shots {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots figure {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(230px, 30vw, 300px);
  scroll-snap-align: center;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

/* Team / founder */
.team-card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  max-width: 720px;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-soft);
}

.team-avatar {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(47, 124, 246), 0.14);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.team-avatar-img {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 28px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(47, 124, 246), 0.18);
}

.about-section-title {
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  text-align: center;
}

.about-section-title--center {
  margin-bottom: 28px;
}

.about-copy {
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
  max-width: 54ch;
}

.about-copy:last-child {
  margin-bottom: 0;
}

.about-copy a {
  font-weight: 700;
  text-decoration: none;
}

.about-copy a:hover {
  text-decoration: underline;
}

html[lang="he"] .about-section-title,
html[lang="he"] .about-copy {
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.team-info {
  flex: 1 1 240px;
  min-width: 0;
}

.team-info h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}

.team-role {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 15px;
}

.team-bio {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.team-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.team-links a {
  font-weight: 700;
  text-decoration: none;
}

.team-links a:hover {
  text-decoration: underline;
}

.team-card--page {
  max-width: 760px;
}

.team-card--page h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  text-align: start;
}

.model-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

@media (min-width: 720px) {
  .model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.model-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.model-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.model-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.contact-panel {
  width: min(100%, 560px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.contact-list {
  margin: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px 20px;
  align-items: baseline;
  margin: 0;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-row dd {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-row a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.contact-row a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-block: 14px;
  }
}

.contact-cta-wrap {
  padding: 18px 22px 22px;
}

.contact-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.contact-cta:hover {
  background: var(--accent-strong);
  color: #fff;
}

/* Inner pages */
.page-hero {
  padding-block: clamp(36px, 6vw, 64px) 8px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
}

.page-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.page-kicker a {
  color: var(--muted);
  text-decoration: none;
}

.page-kicker a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.page-lead {
  text-align: center;
  margin: 0 auto;
  max-width: 54ch;
}

.container.narrow {
  width: min(100%, 760px);
}

.legal-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal h2 {
  margin: 36px 0 12px;
  font-size: clamp(20px, 2.8vw, 26px);
  text-align: start;
  font-weight: 800;
}

.legal h3 {
  margin: 22px 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.legal p,
.legal li {
  color: var(--text);
  font-size: 16px;
}

.legal ul {
  margin: 0 0 16px;
  padding-inline-start: 1.25em;
}

.legal li + li {
  margin-top: 8px;
}

.legal-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.legal th,
.legal td {
  padding: 12px 14px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal th {
  background: var(--bg-soft);
  font-weight: 700;
}

.legal tr:last-child td {
  border-bottom: 0;
}

html[lang="he"] .page-hero h1,
html[lang="he"] .legal h2,
html[lang="he"] .legal h3,
html[lang="he"] .page-kicker,
html[lang="he"] .legal-meta,
html[lang="he"] .legal p,
html[lang="he"] .legal li {
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* CTA */
.cta {
  text-align: center;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 60px);
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0 0 12px;
  text-align: center;
  width: 100%;
}

.cta-card .section-sub {
  margin: 0 auto 0;
  text-align: center;
  max-width: 42ch;
}

.cta .store-links {
  justify-content: center;
  align-items: center;
  margin-top: 28px;
  width: 100%;
  direction: ltr;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  color: var(--muted);
  font-size: 14px;
  background: rgba(219, 230, 253, 0.55);
  margin-top: auto;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

@media (min-width: 720px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: start;
  }

  .footer-links {
    justify-content: flex-end;
  }
}

/* Keep footer at bottom on short pages (team / privacy) */
body:has(> header.site-header):has(> footer.site-footer) {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body:has(> header.site-header):has(> footer.site-footer) > main {
  flex: 1 0 auto;
}

/* Deep link card */
.deeplink-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.card {
  width: min(100%, 520px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: start;
}

.card .badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 124, 246), 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

.card h1 {
  margin: 16px 0 12px;
  font-size: 28px;
  line-height: 1.15;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.meta {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(47, 124, 246), 0.08);
}

.code {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(47, 124, 246), 0.16);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.actions .primary,
.actions .secondary {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.card .store-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.card .store-badge img {
  height: 45px;
}

.footer-text {
  margin-top: 18px;
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}
