/* ==========================================================================
   Base - reset, typography, buttons, utilities
   ========================================================================== */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { width: 100%; max-width: 100%; overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  width: 100%;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,picture,video,svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Display headings (English, uppercase, chunky - noom "Night" role) */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
  text-transform: uppercase;
  color: var(--ink);
}
.display--red { color: var(--red); }
.display--sm { font-size: var(--fs-h2); }

h1,h2,h3 { font-weight: 700; line-height: var(--lh-snug); color: var(--ink); }

/* -- Layout -- */
.container { width: min(100% - 2*var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }

/* -- Section header (EN display title + HE sub) - noom signature -- */
.sec-head { text-align: center; margin-bottom: var(--s7); }
.sec-head__title { font-size: var(--fs-display); }
.sec-head__sub { margin-top: var(--s3); color: var(--muted); font-size: var(--fs-lead); font-weight: 500; }
.sec-head--start { text-align: start; }

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}

/* -- Buttons -- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 13px 26px; border-radius: var(--pill);
  font-weight: 600; font-size: .98rem; line-height: 1;
  border: 1.5px solid transparent; transition: all var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #000; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--outline-red { border-color: var(--red); color: var(--red); background: transparent; }
.btn--outline-red:hover { background: var(--red); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }

/* -- Pills / tags -- */
.tag {
  display: inline-block; padding: 6px 13px; border-radius: var(--pill);
  background: var(--white); color: var(--ink); font-size: var(--fs-small); font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.tag--red { background: var(--red); color: #fff; }
.tag--yellow { background: var(--yellow); color: var(--ink); }

/* -- Utilities -- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 60ch; }
.round { border-radius: var(--radius); }
.round-lg { border-radius: var(--radius-lg); }

/* placeholder / atmosphere marker */
.ph { position: relative; background: linear-gradient(135deg, var(--panel), var(--panel-2)); overflow: hidden; }
.ph::after {
  content: attr(data-ph);
  position: absolute; inset-block-end: 10px; inset-inline-end: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
  background: rgba(31,31,31,.62); color: #fff; padding: 3px 8px; border-radius: 4px;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;transition:none} html{scroll-behavior:auto} }
