/* Reset בסיסי ונגישות */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Heebo, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.65; color: #0f172a; background: radial-gradient(1200px 600px at 50% -10%, #e0f2fe 0%, #ffffff 50%); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
button { font: inherit; cursor: pointer; }

.container { max-width: 1100px; padding: 0 16px; margin: 0 auto; }

/* Header */
.site-header { border-bottom: 1px solid #eee; position: sticky; top: 0; background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(8px); z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-title { font-size: 22px; margin: 0; font-weight: 700; letter-spacing: 0.2px; }
.site-nav .nav-link { padding: 8px 10px; border-radius: 6px; }
.site-nav .nav-link:hover { background: #f3f4f6; }

/* Main */
.site-main { padding: 24px 0 56px; }
.intro { margin: 8px 0 24px; color: #444; }
/* Hero */
.hero { text-align: center; margin: 32px 0 28px; }
.hero-title { font-size: 34px; margin: 0 0 10px; letter-spacing: -0.2px; }
.hero-subtitle { margin: 0; color: #334155; }

/* Gallery */
/* Auth */
.auth-container { display: grid; place-items: center; margin-top: 24px; }
.card { width: 100%; max-width: 440px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 22px; box-shadow: 0 20px 60px rgba(2,6,23,0.06); }
.card-title { margin: 0 0 12px; text-align: center; font-size: 22px; }
.label { display: block; margin: 10px 0 6px; font-weight: 600; }
.input { width: 100%; padding: 12px 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.input:focus { outline: none; border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(147,197,253,0.35); }
.input.code { letter-spacing: 8px; text-align: center; font-weight: 700; }
.btn.wide { width: 100%; margin-top: 14px; }
.form-note { font-size: 12px; color: #666; margin: 8px 0 0; text-align: center; }
.form-message { margin-top: 12px; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.form-message.success { background: #ecfdf5; color: #065f46; border: 1px solid #10b981; }
.form-message.error { background: #fef2f2; color: #991b1b; border: 1px solid #ef4444; }
.hidden { display: none; }
/* Password meter */
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.strength .seg { height: 8px; border-radius: 999px; background: #e5e7eb; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03); }
.strength .seg.active-1 { background: linear-gradient(90deg, #fecaca, #f87171); }
.strength .seg.active-2 { background: linear-gradient(90deg, #fde68a, #f59e0b); }
.strength .seg.active-3 { background: linear-gradient(90deg, #bbf7d0, #10b981); }
.strength .seg.active-4 { background: linear-gradient(90deg, #86efac, #059669); }
.match-label { font-size: 12px; color: #666; margin-top: 6px; min-height: 14px; }
.match-label.ok { color: #065f46; }
.match-label.bad { color: #991b1b; }

/* Footer */
.site-footer { border-top: 1px solid #eee; padding: 16px 0; color: #555; background: #fafafa; }
.site-footer .container { display: flex; align-items: center; justify-content: center; }

/* Consent banner */
.consent-banner { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 50; }
.consent-content { background: #0b1020; color: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); display: grid; gap: 12px; grid-template-columns: 1fr auto; align-items: center; }
.consent-content p { margin: 0; }
.consent-actions { display: flex; gap: 8px; }
.btn { background: #e5e7eb; color: #111; border: none; border-radius: 8px; padding: 8px 14px; }
.btn.primary { background: #2563eb; color: #fff; }
.btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* Policy */
.policy { display: grid; gap: 12px; }
.policy h2 { margin: 16px 0 4px; font-size: 18px; }
.policy ul { margin: 0; padding-inline-start: 20px; }

@media (prefers-color-scheme: dark) {
  body { color: #e5e7eb; background: radial-gradient(1200px 600px at 50% -10%, #0b1020 0%, #020617 60%); }
  .site-header { border-bottom-color: #1f2937; background: rgba(2,6,23,0.85); }
  .card { background: #0b1020; border-color: #1f2937; }
  .site-footer { background: #020617; border-top-color: #1f2937; color: #9ca3af; }
  .site-nav .nav-link:hover { background: #111827; }
}
