/* ============================================================
   CHOPPA — base
   טוקנים, ריסט, טיפוגרפיה, פרימיטיבים של פריסה
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- tokens ---------- */
:root {
  /* מונוכרום חם — לא אפור מחשב, אפור נייר */
  --ink:        #0B0B0B;
  --ink-80:     #2E2E2C;
  --ink-55:     #6B6963;
  --ink-35:     #9C9A93;
  --line:       #DEDBD3;
  --line-soft:  #ECE9E2;
  --paper:      #FFFFFF;
  --paper-warm: #F4F2ED;
  --paper-deep: #E9E6DE;

  /* צבע המותג היחיד באתר — הכנפיים של הלוגו */
  --spark:      #E52EA5;
  --spark-deep: #B81079;

  --ff-display: "Frank Ruhl Libre", "Times New Roman", serif;
  --ff-body:    "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease:      cubic-bezier(.22,.61,.24,1);
  --ease-io:   cubic-bezier(.76,0,.24,1);
  --dur:       .5s;

  --gut:  clamp(1.25rem, 4.2vw, 4.5rem);   /* שוליים צדדיים */
  --stack: clamp(4.5rem, 11vw, 11rem);     /* מרווח בין סקשנים */
  --maxw: 1560px;

  --hdr: 74px;
}

@media (max-width: 860px) { :root { --hdr: 62px; } }

/* ---------- page ---------- */
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: clamp(15px, .52vw + 13.4px, 17px);
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* גרעין עדין על כל העמוד — מבטל את השטיחות הדיגיטלית */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

/* ---------- typography ---------- */
.display {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.d-xxl { font-size: clamp(2.7rem, 8.4vw, 7.6rem); line-height: .88; letter-spacing: -.032em; }
.d-xl  { font-size: clamp(2.2rem, 5.4vw, 4.9rem); line-height: .9;  letter-spacing: -.028em; }
.d-l   { font-size: clamp(1.75rem, 3.4vw, 3.1rem); line-height: 1.0; letter-spacing: -.022em; }
.d-m   { font-size: clamp(1.55rem, 2.6vw, 2.3rem);line-height: 1.06;letter-spacing: -.018em; }
.d-s   { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.18;letter-spacing: -.012em; }

/* תוויות לטיניות זעירות — הן שנותנות את הריח העריכותי */
.tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-35);
  direction: ltr;
  unicode-bidi: isolate;
}
.tag--ink { color: var(--ink); }
.num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-35);
  direction: ltr;
  unicode-bidi: isolate;
}
.lede { font-size: clamp(1.02rem, 1.15vw, 1.24rem); line-height: 1.62; color: var(--ink-80); font-weight: 300; }
.muted { color: var(--ink-55); }
.small { font-size: .845rem; line-height: 1.6; }

/* קו הפרדה דק — לא כרטיסייה צפה */
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.section { padding-block: var(--stack); }
.section--tight { padding-block: clamp(3rem, 6vw, 6rem); }

/* גריד 12 עמודות — הבסיס לאסימטריה */
.g12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.2vw, 2.4rem); }
@media (max-width: 900px) { .g12 { grid-template-columns: repeat(6, 1fr); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  padding: 1.05em 2.1em;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .012em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .38s var(--ease), border-color .38s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .42s var(--ease-io);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }

.btn--wide { width: 100%; }
.btn--sm { padding: .8em 1.5em; font-size: .8rem; }

/* קישור־טקסט עם קו שנפתח */
.ulink {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  font-weight: 500;
}
.ulink::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform .4s var(--ease-io);
}
.ulink:hover::after { transform: scaleX(0); transform-origin: right; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .42em .85em .38em;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  white-space: nowrap;
}
.badge--spark { border-color: var(--spark-deep); color: var(--spark-deep); }
.badge--fill { background: var(--ink); color: var(--paper); }

/* מחיר */
.price { font-family: var(--ff-body); font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price s { color: var(--ink-35); font-weight: 300; margin-inline-start: .5em; text-decoration-thickness: 1px; }

/* ---------- reveal on scroll (עדין, לא מוגזם) ---------- */
[data-rise] { opacity: 0; transform: translateY(22px); }
.is-in [data-rise], [data-rise].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  [data-rise] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
