@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@300;400;500;700&display=swap');

/* ============================================================
   CSS Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-white: #ffffff;
  --c-light: #f5f5f5;
  --c-dark: #1f1f1f;
  --c-mid: #2e2e2e;
  --c-accent: #3a3a3a;
  --c-border: #e0e0e0;
  --c-text: #1f1f1f;
  --c-text-muted: #666666;
  --c-text-inv: #ffffff;
  --c-overlay: rgba(31,31,31,0.72);

  --shadow-sm: 0 2px 6px rgba(0,0,0,0.10);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.14);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.18);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.24);

  --radius: 4px;
  --header-h: 64px;
  --font-main: 'Noto Sans Hebrew', 'Noto Sans SC', system-ui, -apple-system, sans-serif;

  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

html {
  font-size: 17px;
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--c-light);
  color: var(--c-text);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-dark);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover, a:focus-visible {
  color: var(--c-accent);
  text-decoration: underline;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-dark);
  height: var(--header-h);
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--c-white);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-logo:hover {
  color: var(--c-light);
  text-decoration: none;
}

.brand-text {
  color: var(--c-white);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.logo-mark {
  border-radius: var(--radius);
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex: 1;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: rgba(255,255,255,0.80);
  font-size: 0.88rem;
  font-weight: 400;
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: var(--radius);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: var(--c-white);
  text-decoration: none;
}

/* ============================================================
   Page Wrap / Layout
   ============================================================ */
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.main-content {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Hero — Home
   ============================================================ */
.hero-band {
  position: relative;
  min-height: 70vh;
  background: var(--c-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0 -24px;
  padding: 0 24px;
  margin-bottom: 56px;
}

.hero-slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    var(--c-dark) 0%,
    var(--c-dark) 54%,
    transparent 54%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 560px;
  text-align: right;
  margin-left: auto;
  padding: 80px 48px 80px 24px;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-btn {
  display: inline-block;
  background: var(--c-white);
  color: var(--c-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  min-height: 44px;
}

.cta-btn:hover, .cta-btn:focus-visible {
  background: var(--c-light);
  color: var(--c-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
}

.hero-collage {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 52%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.hero-img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-img-a {
  right: 60px;
  top: 10%;
  width: 58%;
  height: 75%;
  z-index: 2;
  box-shadow: var(--shadow-xl);
  transform: rotate(-1.5deg) translateZ(0);
}

.hero-img-b {
  right: 0;
  bottom: 8%;
  width: 44%;
  height: 56%;
  z-index: 3;
  box-shadow: var(--shadow-lg);
  transform: rotate(2.5deg) translateZ(4px);
  opacity: 0.88;
}

/* ============================================================
   Hero — Ranking / inner pages
   ============================================================ */
.page-hero {
  position: relative;
  background: var(--c-dark);
  overflow: hidden;
  margin: 0 -24px 48px;
  padding: 56px 72px 56px 48px;
}

.page-hero .hero-slash {
  background: linear-gradient(
    108deg,
    transparent 0%,
    transparent 60%,
    rgba(245,245,245,0.06) 60%
  );
}

.page-hero .hero-copy {
  padding: 0;
  text-align: left;
  margin-left: 0;
  max-width: 720px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--c-white);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-meta {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.page-meta time {
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   Eyebrow / Small labels
   ============================================================ */
small.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ============================================================
   Content Prose
   ============================================================ */
.content-prose {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
  transform: translateZ(0);
}

.content-prose h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--c-dark);
  line-height: 1.3;
}

.content-prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--c-dark);
}

.content-prose p {
  margin-bottom: 16px;
  color: var(--c-text);
  line-height: 1.75;
}

.content-prose a {
  color: var(--c-dark);
  border-bottom: 1px solid var(--c-border);
  text-decoration: none;
  transition: border-color var(--transition);
}

.content-prose a:hover {
  border-color: var(--c-dark);
  text-decoration: none;
}

.content-prose ul,
.content-prose ol {
  padding-left: 1.6em;
  margin-bottom: 16px;
}

.content-prose li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.content-prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.content-prose th,
.content-prose td {
  border: 1px solid var(--c-border);
  padding: 10px 14px;
  text-align: left;
}

.content-prose th {
  background: var(--c-light);
  font-weight: 600;
}

.content-prose tr:nth-child(even) td {
  background: rgba(245,245,245,0.6);
}

.content-prose time {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

.content-prose strong {
  font-weight: 600;
}

/* ============================================================
   Cards — general
   ============================================================ */
.cards-block,
.ranking-cards,
.related-block,
.compare-related {
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.cards-block h2,
.ranking-cards h2,
.related-block h2,
.compare-related h2,
.faq-nav-block h2,
.about-links h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--c-dark);
}

.card-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 0;
}

.card-list li {
  position: relative;
}

.card-list li > article {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  z-index: 2;
  transform: translateZ(0);
}

.card-list li > article:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) translateZ(8px);
}

.card-list li > article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.card-list li > article h3 a {
  color: var(--c-dark);
  text-decoration: none;
}

.card-list li > article h3 a:hover {
  text-decoration: underline;
}

.card-list li > article p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.card-list li > article time {
  font-size: 0.8rem;
  color: var(--c-text-muted);
}

/* ============================================================
   Ranking Cards
   ============================================================ */
.rank-list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.rank-card {
  position: relative;
}

.rank-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--c-dark);
  color: var(--c-white);
  padding: 3px 10px;
  border-radius: var(--radius);
  margin-bottom: 4px;
}

.rank-card-1 .rank-num {
  background: #1f1f1f;
}
.rank-card-2 .rank-num {
  background: #3a3a3a;
}
.rank-card-3 .rank-num {
  background: #555;
}

.card-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 4px;
}

.card-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-dark);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 6px 14px;
  margin-top: 4px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  min-height: 40px;
  line-height: 28px;
}

.card-link:hover, .card-link:focus-visible {
  background: var(--c-dark);
  color: var(--c-white);
  text-decoration: none;
  border-color: var(--c-dark);
}

/* ============================================================
   Review Layout
   ============================================================ */
.review-header {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  background: var(--c-dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 3;
}

.review-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.review-header-copy {
  padding: 36px 36px 36px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.review-header-copy h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.25;
}

.review-desc {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

.review-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.review-meta time {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--c-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--c-dark);
}

/* ============================================================
   Compare Layout
   ============================================================ */
.compare-header {
  background: var(--c-dark);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.compare-header::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 280px;
  height: 280px;
  border: 48px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.compare-header small.eyebrow {
  color: rgba(255,255,255,0.5);
}

.compare-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--c-white);
  font-weight: 700;
  margin-bottom: 12px;
}

.compare-sub {
  color: rgba(255,255,255,0.72);
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.compare-header time {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   FAQ Layout
   ============================================================ */
.faq-header {
  background: var(--c-dark);
  padding: 48px;
  border-radius: var(--radius);
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 3;
}

.faq-header small.eyebrow {
  color: rgba(255,255,255,0.5);
}

.faq-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--c-white);
  font-weight: 700;
  margin-bottom: 12px;
}

.faq-header p {
  color: rgba(255,255,255,0.7);
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.faq-header time {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.faq-nav-block {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 36px 48px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.faq-link-btn {
  display: inline-flex;
  align-items: center;
  background: var(--c-light);
  color: var(--c-dark);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  min-height: 44px;
}

.faq-link-btn:hover, .faq-link-btn:focus-visible {
  background: var(--c-dark);
  color: var(--c-white);
  border-color: var(--c-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ============================================================
   About Layout
   ============================================================ */
.about-header {
  background: var(--c-dark);
  padding: 48px;
  border-radius: var(--radius);
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 3;
}

.about-header small.eyebrow {
  color: rgba(255,255,255,0.5);
}

.about-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--c-white);
  font-weight: 700;
  margin-bottom: 12px;
}

.about-header time {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.about-links {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 36px 48px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}

.about-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.about-link-card {
  display: inline-flex;
  align-items: center;
  background: var(--c-light);
  color: var(--c-dark);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  min-height: 44px;
}

.about-link-card:hover, .about-link-card:focus-visible {
  background: var(--c-dark);
  color: var(--c-white);
  border-color: var(--c-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) translateZ(4px);
  text-decoration: none;
}

/* ============================================================
   Privacy Layout
   ============================================================ */
.privacy-header {
  background: var(--c-dark);
  padding: 48px;
  border-radius: var(--radius);
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 3;
}

.privacy-header small.eyebrow {
  color: rgba(255,255,255,0.5);
}

.privacy-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--c-white);
  font-weight: 700;
  margin-bottom: 12px;
}

.privacy-header time {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.privacy-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}

.privacy-footer-links a {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  text-decoration: underline;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.privacy-footer-links a:hover {
  color: var(--c-dark);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--c-dark);
  color: rgba(255,255,255,0.75);
  margin-top: 64px;
  position: relative;
  z-index: 10;
}

.footer-cols {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-col {
  display: block;
}

.footer-col dt {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.footer-col dd {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.footer-col dd a {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  transition: color var(--transition);
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
}

.footer-col dd a:hover, .footer-col dd a:focus-visible {
  color: var(--c-white);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.10);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ============================================================
   Scroll Reveal Animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cta-btn,
  .card-list li > article,
  .about-link-card,
  .faq-link-btn {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (max-width: 900px) {
  .hero-band {
    min-height: 60vh;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 40px;
  }

  .hero-copy {
    padding: 60px 24px 40px;
    text-align: left;
    margin-left: 0;
    max-width: 100%;
  }

  .hero-slash {
    background: linear-gradient(
      160deg,
      var(--c-dark) 0%,
      var(--c-dark) 62%,
      transparent 62%
    );
  }

  .hero-collage {
    position: relative;
    width: 100%;
    height: 220px;
  }

  .hero-img-a {
    right: 20px;
    top: 10px;
    width: 55%;
    height: 90%;
  }

  .hero-img-b {
    right: 0;
    bottom: 0;
    width: 40%;
    height: 70%;
  }

  .review-header {
    grid-template-columns: 1fr;
  }

  .review-header-copy {
    padding: 24px 24px 24px 24px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .content-prose {
    padding: 28px 24px;
  }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 600px) {
  :root {
    --header-h: 56px;
  }

  html {
    font-size: 16px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .nav-link {
    font-size: 0.78rem;
    padding: 8px 8px;
    min-height: 40px;
  }

  .page-wrap {
    padding: 0 16px 48px;
  }

  .hero-band {
    margin: 0 -16px;
    min-height: auto;
    padding-top: 0;
  }

  .hero-copy {
    padding: 44px 16px 32px;
  }

  .hero-h1 {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 0.92rem;
  }

  .hero-collage {
    height: 180px;
  }

  .content-prose {
    padding: 20px 16px;
  }

  .card-list {
    grid-template-columns: 1fr;
  }

  .review-hero-img {
    height: 200px;
  }

  .compare-header,
  .faq-header,
  .about-header,
  .privacy-header {
    padding: 28px 16px;
  }

  .page-hero {
    margin: 0 -16px 36px;
    padding: 40px 16px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    padding: 36px 16px 24px;
    gap: 24px;
  }

  .footer-bottom {
    padding: 16px 16px 20px;
  }

  .faq-nav-block,
  .about-links {
    padding: 24px 16px;
  }

  .about-link-grid,
  .faq-links {
    flex-direction: column;
  }

  .about-link-card,
  .faq-link-btn {
    width: 100%;
    justify-content: center;
  }

  .privacy-footer-links {
    flex-direction: column;
    gap: 8px;
  }
}
