/* Shared by web/index.html and web/he/index.html (both generated by web-src/build.mjs) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0f172a;
  --surface:  #1e293b;
  --border:   #334155;
  --text:     #f1f5f9;
  --muted:    #94a3b8;
  --faint:    #475569;
  --accent:   #38bdf8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.inner { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
nav {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-inner img { width: 32px; height: 32px; border-radius: 7px; }
.nav-wordmark { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 80px 24px 72px;
  max-width: 960px;
  margin: 0 auto;
}
.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  margin-bottom: 28px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}
.hero-tagline {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 40px;
}
.hero-desc.lead { margin-bottom: 16px; }
.btn-row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
/* Official store badges — shown at equal height per Apple/Google badge guidelines */
.store-badge { display: inline-block; line-height: 0; transition: opacity 0.15s; }
.store-badge:hover { opacity: 0.85; }
.store-badge img { height: 48px; width: auto; }

/* ── Divider ── */
hr { border: none; border-top: 1px solid var(--border); }

/* ── Section ── */
section { padding: 72px 24px; max-width: 960px; margin: 0 auto; }
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
section h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 48px;
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  padding: 22px 20px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.feature-card p { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(56,189,248,0.12);
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.step p  { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ── Score demo ── */
.score-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.score-box .col { flex: 1; min-width: 200px; }
.score-box p { font-size: 16px; color: var(--muted); line-height: 1.75; }
.score-box strong { color: var(--text); }

.verdict-pills { display: flex; flex-direction: column; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pill.safe     { background: rgba(34,197,94,0.1);  color: #4ade80; }
.pill.low      { background: rgba(132,204,22,0.1); color: #a3e635; }
.pill.moderate { background: rgba(234,179,8,0.1);  color: #facc15; }
.pill.high     { background: rgba(239,68,68,0.1);  color: #f87171; }
.pill-dot.safe     { background: #4ade80; }
.pill-dot.low      { background: #a3e635; }
.pill-dot.moderate { background: #facc15; }
.pill-dot.high     { background: #f87171; }

/* ── Privacy ── */
.privacy-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.privacy-point {
  display: flex; gap: 12px; align-items: flex-start;
}
.privacy-point .check {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
  font-weight: 700;
}
.privacy-point p { font-size: 15px; color: var(--muted); }
.privacy-point strong { color: var(--text); display: block; margin-bottom: 2px; }

/* ── CTA section ── */
.cta-section { text-align: center; }
.cta-section .section-desc { margin: 12px auto 40px; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.footer-brand { font-weight: 700; color: var(--text); font-size: 15px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-copy  { color: var(--faint); font-size: 13px; }

/* ── Language switch ── */
.lang-switch { margin-inline-start: auto; font-size: 14px; font-weight: 600; }

/* ── RTL (Hebrew) — Heebo keeps weights consistent (OS fallbacks render bold Hebrew very heavy);
   negative tracking and uppercase styling are Latin-only ── */
[dir="rtl"] body { font-family: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
[dir="rtl"] .hero h1,
[dir="rtl"] section h2,
[dir="rtl"] .nav-wordmark,
[dir="rtl"] .hero-tagline,
[dir="rtl"] .section-label { letter-spacing: normal; }
/* Hebrew has no uppercase, so small spaced labels read smaller than body text — size them up */
[dir="rtl"] .section-label { font-size: 16px; }
[dir="rtl"] .hero-tagline  { font-size: 1.05rem; }

@media (max-width: 600px) {
  .hero { padding: 60px 20px 56px; }
  section { padding: 56px 20px; }
  .score-box { padding: 24px 20px; }
}
