/* Noto Sans Hebrew — imported in <head> via Google Fonts */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink:        #1a1a1a;
  --mid:        #4a4a4a;
  --paper:      #fafaf8;
  --paper-dark: #f0ede8;
  --border:     #1a1a1a;
  --radius:     4px;
  --col-max:    780px;
  --sidebar-w:  240px;
  --gap:        1.5rem;
}

html {
  font-family: 'Noto Sans Hebrew', 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--paper);
  /* subtle paper texture via CSS — no external image required */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(74,74,74,0.04) 28px,
      rgba(74,74,74,0.04) 29px
    );
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; }
a:hover { color: var(--mid); }

/* ===== ANNOUNCE STRIP ===== */
.announce-strip {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.announce-strip small {
  font-size: inherit;
}

/* ===== SITE HEADER ===== */
.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  min-height: 60px;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand:hover { color: var(--mid); }

/* PRIMARY NAV */
.primary-nav {
  flex: 1;
  min-width: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border: 1.5px solid var(--mid);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  transition: none;
  background: transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* HEADER CTA BUTTONS */
.header-ctas {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
}

.cta-signup {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
}
.cta-signup:hover {
  background: var(--mid);
  border-color: var(--mid);
  color: var(--paper);
}

.cta-login {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.cta-login:hover {
  background: var(--ink);
  color: var(--paper);
}

/* NAV TOGGLE (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* ===== SKETCH DECORATION MARKS ===== */
.sketch-mark {
  display: block;
  width: 48px;
  height: 48px;
  opacity: 0.15;
  position: relative;
}

.sketch-mark::before,
.sketch-mark::after {
  content: '';
  position: absolute;
  background: var(--ink);
}

.sketch-mark--star::before {
  width: 2px; height: 40px;
  top: 4px; left: 23px;
  transform: rotate(15deg);
}
.sketch-mark--star::after {
  width: 40px; height: 2px;
  top: 23px; left: 4px;
  transform: rotate(15deg);
}

.sketch-mark--hash::before {
  width: 2px; height: 36px;
  top: 6px; left: 18px;
  transform: rotate(8deg);
}
.sketch-mark--hash::after {
  width: 36px; height: 2px;
  top: 18px; left: 6px;
  transform: rotate(8deg);
}

.sketch-mark--circle::before {
  width: 36px; height: 36px;
  top: 6px; left: 6px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--ink);
  transform: rotate(5deg);
}
.sketch-mark--circle::after { display: none; }

.sketch-mark--vs::before {
  width: 2px; height: 40px;
  top: 4px; left: 23px;
  transform: rotate(20deg);
}
.sketch-mark--vs::after {
  width: 2px; height: 40px;
  top: 4px; left: 23px;
  transform: rotate(-20deg);
}

.sketch-mark--question::before {
  width: 2px; height: 24px;
  top: 4px; left: 23px;
}
.sketch-mark--question::after {
  width: 10px; height: 10px;
  bottom: 4px; left: 19px;
  border-radius: 50%;
}

.sketch-mark--pen::before {
  width: 2px; height: 36px;
  top: 4px; left: 23px;
  transform: rotate(30deg);
}
.sketch-mark--pen::after {
  width: 12px; height: 2px;
  bottom: 10px; left: 18px;
  transform: rotate(30deg);
}

.sketch-mark--lock::before {
  width: 28px; height: 20px;
  bottom: 4px; left: 10px;
  border-radius: 2px;
}
.sketch-mark--lock::after {
  width: 16px; height: 14px;
  top: 4px; left: 16px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--ink);
}

.sketch-mark--data::before {
  width: 6px; height: 30px;
  bottom: 4px; left: 8px;
}
.sketch-mark--data::after {
  width: 6px; height: 20px;
  bottom: 4px; left: 20px;
}

.section-deco {
  display: flex;
  align-items: flex-start;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}

/* ===== MAIN — HOME ===== */
.home-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* HERO */
.hero-section {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  padding: 3rem 0 2rem;
  min-height: 100vh;
  border-bottom: 2px solid var(--border);
}

.hero-figure {
  flex: 1;
  min-width: 0;
}

.hero-copy {
  margin-bottom: 2rem;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  /* slight tilt — raw feel */
  transform: rotate(-0.4deg);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--mid);
  max-width: 520px;
  line-height: 1.65;
}

.hero-media {
  width: 100%;
  margin-top: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-placeholder {
  height: 320px;
  background: var(--paper-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* dot-grid texture */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--mid) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.18;
}

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

.hero-aside {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 72px;
}

/* HOME CONTENT */
.content-section {
  display: flex;
  gap: var(--gap);
  padding: 2.5rem 0;
  border-bottom: 1.5px solid rgba(26,26,26,0.15);
}

.content-figure {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.body-copy {
  flex: 1;
  min-width: 0;
}

/* HOME CHILDREN */
.home-children {
  padding: 2.5rem 0;
}

.home-children h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.child-list {
  list-style: none;
  counter-reset: child-counter;
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.child-list li {
  counter-increment: child-counter;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 0.85rem 3rem;
  position: relative;
  transition: none;
}

.child-list li::before {
  content: counter(child-counter, decimal-leading-zero);
  position: absolute;
  left: 0.9rem;
  top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mid);
  letter-spacing: 0.05em;
}

.child-list li a {
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  color: var(--ink);
  display: block;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.child-list li a:hover { text-decoration: underline; }

.child-list li small {
  display: block;
  font-size: 0.82rem;
  color: var(--mid);
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* ===== INNER PAGES (shared) ===== */
.inner-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.page-section {
  border-top: 2px solid var(--border);
  padding-top: 1.5rem;
}

.page-content-wrap {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.content-primary {
  flex: 1;
  min-width: 0;
}

.content-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ===== ASIDE BOX ===== */
.aside-box {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--paper-dark);
  /* slight imperfection */
  transform: rotate(0.3deg);
}

.aside-box h2 {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.aside-box .subtitle {
  font-size: 0.78rem;
  color: var(--mid);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.aside-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(26,26,26,0.12);
}
.aside-link:last-child { border-bottom: none; }
.aside-link:hover { text-decoration: underline; }

/* ===== TYPOGRAPHY — inner ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--mid);
  padding-bottom: 1px;
}

.content-primary h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  transform: rotate(-0.2deg);
}

.byline {
  font-size: 0.82rem;
  color: var(--mid);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.lead-desc {
  font-size: 1.05rem;
  color: var(--mid);
  margin-bottom: 1.75rem;
  line-height: 1.65;
  border-left: 3px solid var(--ink);
  padding-left: 0.85rem;
}

.stage-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  color: var(--mid);
}

.stage-awareness  { border-color: #888; color: #555; }
.stage-consideration { border-color: #4a4a4a; color: var(--ink); }
.stage-decision { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* subtitle after h2 */
.subtitle {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.5;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

/* ===== BODY COPY TYPOGRAPHY ===== */
.body-copy h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.body-copy h2 + .subtitle,
.body-copy h2 + p.subtitle {
  font-size: 0.92rem;
  color: var(--mid);
  margin-bottom: 0.85rem;
}

.body-copy h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.35rem;
}

.body-copy p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.body-copy ul,
.body-copy ol {
  margin: 0.75rem 0 1rem 1.25rem;
  line-height: 1.7;
}

.body-copy li { margin-bottom: 0.4rem; }

.body-copy a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.body-copy a:hover { color: var(--mid); }

.body-copy table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

.body-copy th,
.body-copy td {
  border: 1.5px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.body-copy th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.body-copy tr:nth-child(even) td {
  background: var(--paper-dark);
}

.body-copy blockquote {
  border-left: 3px solid var(--ink);
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  background: var(--paper-dark);
  font-style: italic;
  color: var(--mid);
}

/* ===== RANK TOC ===== */
.rank-toc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-toc li {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(26,26,26,0.12);
}

.rank-toc li:last-child { border-bottom: none; }

.rank-toc a {
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.rank-toc a:hover { text-decoration: underline; }

.rank-toc small {
  font-size: 0.72rem;
  color: var(--mid);
}

/* ===== FAQ BODY ===== */
.faq-body details {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-body summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  list-style: none;
}

.faq-body summary::-webkit-details-marker { display: none; }

.faq-body details[open] summary {
  border-bottom: 1.5px solid var(--border);
  background: var(--paper-dark);
}

.faq-body details p {
  padding: 0.85rem 1rem;
  margin: 0;
}

/* ===== ABOUT — AUTHOR SECTION ===== */
.author-section {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  margin: 1.5rem 0 2rem;
  background: var(--paper-dark);
  transform: rotate(-0.25deg);
}

.author-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  margin-top: 0;
}

.author-section .subtitle {
  font-size: 0.82rem;
  color: var(--mid);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.author-section p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
}

/* ===== REVIEW HERO ===== */
.review-hero-figure {
  margin-bottom: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.review-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 2px solid var(--border);
  background: var(--paper-dark);
  padding: 2.5rem 1rem 1.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col p {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.footer-col a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
}
.footer-col a:hover { text-decoration: underline; }

.footer-brand {
  font-weight: 700;
  font-size: 1rem !important;
  margin-bottom: 0.5rem !important;
}

.footer-heading {
  font-weight: 700;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.6rem !important;
  border-bottom: 1.5px solid rgba(26,26,26,0.2);
  padding-bottom: 0.35rem;
}

.footer-col small {
  font-size: 0.78rem;
  color: var(--mid);
  line-height: 1.5;
  display: block;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(26,26,26,0.18);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.footer-bottom p { margin: 0; }

.footer-bottom small {
  font-size: 0.78rem;
  color: var(--mid);
}

.rg-notice {
  font-size: 0.78rem;
  color: var(--mid);
  display: block;
  text-align: center;
}

/* ===== SCROLL REVEAL ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .stagger > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .stagger.visible > * { opacity: 1; transform: none; }
  .stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
  .stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
  .stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
  .stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
  .stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
  .stagger.visible > *:nth-child(n+6) { transition-delay: 0.38s; }
}

/* ===== RESPONSIVE ===== */

/* Medium */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-aside {
    width: 200px;
  }

  .content-sidebar {
    width: 200px;
  }
}

/* Tablet / phablet */
@media (max-width: 768px) {
  /* Hide desktop nav links, show toggle */
  .nav-toggle {
    display: flex;
    order: 2;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--border);
    padding: 1rem;
    z-index: 200;
  }

  .primary-nav.open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.4rem;
  }

  .nav-links a {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
  }

  .header-inner {
    position: relative;
  }

  .brand { order: 1; }
  .nav-toggle { order: 2; }
  .header-ctas { order: 3; margin-left: auto; }

  /* Hero stacks */
  .hero-section {
    flex-direction: column;
    min-height: auto;
    padding: 1.75rem 0 1.5rem;
  }

  .hero-aside { width: 100%; position: static; }

  .hero-h1 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
  }

  /* Content wrap stacks */
  .page-content-wrap {
    flex-direction: column;
  }

  .content-sidebar {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aside-box {
    flex: 1 1 220px;
    transform: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .content-section {
    flex-direction: column;
  }
}

/* Mobile */
@media (max-width: 480px) {
  html { font-size: 16px; }

  .announce-strip { font-size: 0.72rem; }

  .header-inner { min-height: 56px; padding: 0 0.75rem; }

  .cta { padding: 0.35rem 0.65rem; font-size: 0.76rem; }

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

  .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }

  .content-sidebar { flex-direction: column; }

  .home-children h2 { font-size: 1.15rem; }

  .child-list li { padding-left: 2.75rem; }
}

/* No horizontal scroll at 375px */
@media (max-width: 375px) {
  .cta { padding: 0.3rem 0.5rem; font-size: 0.73rem; }
  .brand { font-size: 0.9rem; }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}