/* Shared Apple-style layer for every page (values from netanel-design "כמו Apple" and measured apple.com/il):
   white / #F5F5F7 / black, ink #1D1D1F, blue #0071E3 pills, a thin translucent 44px bar, a small grey footer,
   plus the Vercel Web Interface Guidelines fixes that apply site-wide (vercel.com/design/guidelines).
   Load order: /base.css, then this file, then the page stylesheet. */

:root {
  --ground: #FFFFFF;
  --tile-gray: #F5F5F7;
  --tile-dark: #000000;
  --screen: #FFFFFF;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --faint: #86868B;
  --accent: #0066CC;
  --accent-hover: #0077ED;
  --accent-ink: #FFFFFF;
  --btn: #0071E3;
  --btn-hover: #0077ED;
  --accent-soft: rgba(0, 113, 227, .08);
  --accent-line: rgba(0, 113, 227, .28);
  --glass: #F5F5F7;
  --glass-strong: #F5F5F7;
  --glass-solid: #F5F5F7;
  --edge: rgba(0, 0, 0, .08);
  --edge-strong: rgba(0, 0, 0, .16);
  --edge-hi: transparent;
  --hover: rgba(0, 0, 0, .04);
  --shadow: rgba(29, 29, 31, .10);
  --soft-shadow: 0 2px 4px rgba(29, 29, 31, .04), 0 18px 44px rgba(29, 29, 31, .10);
  --apple-ease: cubic-bezier(0.4, 0, 0.6, 1);
}
:root[data-theme="dark"] {
  --ground: #000000;
  --tile-gray: #161617;
  --tile-dark: #000000;
  --screen: #1C1C1E;
  --ink: #F5F5F7;
  --muted: #A1A1A6;
  --faint: #86868B;
  --accent: #2997FF;
  --accent-hover: #47A6FF;
  --accent-soft: rgba(41, 151, 255, .12);
  --accent-line: rgba(41, 151, 255, .35);
  --glass: #161617;
  --glass-strong: #161617;
  --glass-solid: #161617;
  --edge: rgba(255, 255, 255, .1);
  --edge-strong: rgba(255, 255, 255, .2);
  --hover: rgba(255, 255, 255, .06);
  --shadow: rgba(0, 0, 0, .6);
  --soft-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}

body { font-size: 17px; line-height: 1.47; }
body::before { display: none; }
.glass { background: var(--tile-gray); border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
h1, h2, h3 { letter-spacing: -.01em; font-weight: 600; }
.container { width: min(1024px, 100% - 2.5rem); }

/* Global nav: thin translucent bar, small links */
.site-header { top: 0; margin-top: 0; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
[data-theme="dark"] .site-header { background: rgba(22, 22, 23, .8); }
.header-inner { min-height: 44px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.logo { font-size: 1rem; }
.primary-nav { gap: 1.4rem; }
.primary-nav a { padding: .3rem 0; font-size: .82rem; font-weight: 400; color: var(--ink); opacity: .8; background: none; }
.primary-nav a:hover { opacity: 1; background: none; }
.lang-switcher button { min-height: 30px; padding: .3rem .55rem; font-size: .78rem; border-color: transparent; }
.lang-switcher button[aria-pressed="true"] { background: var(--tile-gray); color: var(--ink); border-color: transparent; }
.theme-toggle { width: 32px; height: 32px; border-color: transparent; }
.theme-toggle svg { width: 17px; height: 17px; }

/* Product and legal pages also use --surface for reading panels */
:root { --surface: #FFFFFF; }
:root[data-theme="dark"] { --surface: #1C1C1E; }

/* Buttons: blue pill for the main action, outline pill for the second */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px;
  border-radius: 980px; font-size: 17px; font-weight: 400; text-decoration: none; line-height: 1.18;
  transition: background-color .32s var(--apple-ease), color .32s var(--apple-ease), border-color .32s var(--apple-ease);
}
.pill-fill { background: var(--btn); color: #fff; border: 1px solid var(--btn); }
.pill-line { color: var(--accent); border: 1px solid var(--accent); background: transparent; }
.pill-line:hover { background: var(--accent); color: #fff; }
.pill:active { transform: scale(.98); }
.btn-primary { background: var(--btn); color: #fff; box-shadow: none; }
.btn-primary:hover { background: #0062C4; }
[data-theme="dark"] .btn-primary:hover { background: #0A84FF; }
.btn-secondary, .btn-glass { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-secondary:hover, .btn-glass:hover { background: var(--accent); color: #fff; }
.btn[aria-disabled="true"].btn-primary:hover { background: var(--btn); }

/* Footer: small grey text, like Apple's */
.site-footer { margin-top: 0; background: var(--tile-gray); font-size: .78rem; color: var(--muted); padding-block: 1.6rem 2rem; }
.footer-inner { border-top: 0; padding-top: 0; }
.footer-nav a { color: var(--muted); font-weight: 400; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--edge); padding-top: 1rem; }

/* ── Vercel Web Interface Guidelines, site-wide ── */
/* Sticky header never covers an anchored section or a focused element */
html { scroll-padding-top: 64px; }
/* No double-tap zoom on controls; tap highlight follows the design */
a, button, [role="switch"], [role="tab"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* Hover raises contrast rather than lowering it */
.pill-fill:hover { background: #0062C4; border-color: #0062C4; }
[data-theme="dark"] .pill-fill:hover { background: #0A84FF; border-color: #0A84FF; }
/* Desktop hit targets of at least 24px */
.footer-nav a, .primary-nav a { display: inline-flex; align-items: center; min-height: 24px; }
/* Safe areas on notched phones */
.a11y-fab { bottom: calc(22px + env(safe-area-inset-bottom)); }
.a11y-panel { bottom: calc(86px + env(safe-area-inset-bottom)); }

/* Touch screens: every control is at least 44px */
@media (pointer: coarse) {
  .primary-nav a, .footer-nav a { min-height: 44px; }
  .lang-switcher button { min-height: 44px; min-width: 44px; }
  .theme-toggle { width: 44px; height: 44px; }
  .logo { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 900px) { html { scroll-padding-top: 124px; } }
@media (max-width: 760px) {
  .primary-nav { gap: .2rem; }
  .primary-nav a { padding: .35rem .6rem; }
}
