/* Plus One Vision — shared styles for the static pages (about, near-vision-score, privacy, global, shop).
   Tokens match src/styles.css so the static pages and the app read as one site. */

:root {
  --navy: #1a3a5c;
  --navy-deep: #132c47;
  --slate: #33414f;
  --muted: #566372;
  --blue: #22609e;
  --paper: #f5f7f9;
  --tint: #e9f0f7;
  --rule: #d3dbe4;
  --font: 'Noto Sans', 'Noto Sans Hebrew', 'Noto Sans Arabic', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  background: var(--paper);
  color: var(--slate);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
:lang(ar), [lang="ar"], :lang(hi), [lang="hi"] { line-height: 1.75; }

a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ── Header ── */
.site-header {
  height: 52px;
  background: white;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header a { text-decoration: none; display: flex; align-items: center; }
.site-header .brand-name { font-size: 15px; color: var(--muted); font-weight: 500; }

/* ── Content ── */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

:where(main) h1 {
  font-size: 34px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
:where(main) h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-top: 48px;
  margin-bottom: 14px;
}
:where(main) h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 12px;
}
:where(main) p { margin-bottom: 16px; }
:where(main) p:last-child { margin-bottom: 0; }
:where(main) ul { margin: 0 0 16px; padding-inline-start: 22px; }
:where(main) ul li { margin-bottom: 8px; }

.last-updated { font-size: 15px; color: var(--muted); margin-bottom: 32px; }

/* ── Primary action ── */
.cta-wrap { margin-top: 48px; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 28px;
  background: var(--navy);
  color: white;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 8px;
  text-decoration: none;
}
.btn-cta:hover { background: var(--navy-deep); color: white; }

/* Navy call-out panel (near-vision-score) */
.cta-card {
  background: var(--navy);
  border-radius: 8px;
  padding: 28px;
  margin-top: 40px;
}
.cta-card h3 { color: white; font-size: 22px; margin-bottom: 8px; }
.cta-card p { color: rgba(255, 255, 255, 0.88); margin-bottom: 20px; }
.cta-card .btn-cta { background: white; color: var(--navy); }
.cta-card .btn-cta:hover { background: var(--tint); color: var(--navy); }

/* Ruled definition-style list (near-vision-score) */
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--rule); }
.feature-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.feature-list strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 4px; }
.feature-list span { display: block; }

.disclaimer-block {
  margin-top: 40px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.disclaimer-block p { font-size: 16px; color: var(--muted); }

/* Hebrew sub-heading on the languages page */
.lang-subhead { font-size: 20px; }

/* ── Shop by strength ── */
.strength-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  border-top: 1px solid var(--rule);
}
.strength-list li { margin: 0; border-bottom: 1px solid var(--rule); }
.strength-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--navy);
}
.strength-list a:hover { background: var(--tint); }
.strength-list .strength {
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.strength-list .shop-label { font-size: 16px; color: var(--blue); text-decoration: underline; text-underline-offset: 0.15em; }
p.affiliate-disclosure { margin-top: 24px; font-size: 15px; color: var(--muted); }

/* ── Footer ── */
.site-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  border-top: 1px solid var(--rule);
}
.site-footer .disclaimer { font-size: 15px; color: var(--muted); line-height: 1.6; }
.site-footer .disclaimer + .disclaimer { margin-top: 8px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0;
  font-size: 15px;
}
.footer-links a { color: var(--slate); }
.footer-links a:hover { color: var(--blue); }

@media (max-width: 600px) {
  main { padding: 32px 16px 48px; }
  :where(main) h1 { font-size: 28px; }
  :where(main) h2 { font-size: 22px; }
  .strength-list { grid-template-columns: 1fr; }
  .btn-cta { display: flex; justify-content: center; text-align: center; }
  .site-footer { padding-inline: 16px; }
}

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