/* ============================================================================
   "Authority" layer — the type scale, text-contrast and surface treatment
   modelled on brandpush.co's system, adapted to our Hebrew RTL type.

   Why it is its own file and scoped, not folded into styles.css: this is a
   prototype of a new visual language. It applies to the About page (.apage)
   and the chat widget (.cq) only. If it earns its keep there, the tokens move
   into styles.css and the rest of the site follows — until then nothing else
   on the site shifts by a pixel.

   The three moves that carry the "authoritative" feel:
     1. TEXT CONTRAST. Headings near-black, body a genuine grey, meta greyer
        still. Most sites run body text at near-heading darkness, which makes a
        page shout evenly; stepping the greys down lets headings actually land.
     2. BODY WEIGHT 500, not 400. Slightly heavier body text at a slightly
        larger size reads as considered rather than thin.
     3. WIDE, FAINT SHADOWS. A 70px-blur shadow at 7% opacity separates a card
        from the page without any visible edge.
   ========================================================================== */

:root{
  /* Text ramp — the heart of the system. */
  --auth-ink:#1D1D1D;         /* headings */
  --auth-body:#737373;        /* paragraphs */
  --auth-secondary:#6B7280;   /* subheads, lede */
  --auth-muted:#9CA3AF;       /* meta, captions, source labels */

  --auth-line:#E5E7EB;
  --auth-line-soft:#ECEFF3;
  --auth-band:#F5F7FA;        /* section background */
  --auth-surface:#FFFFFF;
  --auth-chip:#F3F4F6;

  /* Radius scale, 4 → 24 plus a pill. Cards take 16, controls 8. */
  --auth-r-sm:.25rem;
  --auth-r-md:.375rem;
  --auth-r-lg:.5rem;
  --auth-r-xl:.75rem;
  --auth-r-2xl:1rem;
  --auth-r-3xl:1.5rem;
  --auth-r-pill:9999px;

  /* Five elevations, from a hairline lift to the wide hero diffusion. Nothing
     casts a shadow that is not one of these. */
  --auth-shadow-hair:0 1px 2px rgba(15,23,42,.04);
  --auth-shadow-card:0 4px 12px rgba(15,23,42,.08);
  --auth-shadow-mid:0 12px 30px rgba(0,0,0,.06);
  --auth-shadow-lift:0 18px 50px rgba(0,0,0,.07);
  --auth-shadow-wide:0 25px 70px rgba(0,0,0,.07);

  /* Type scale. Two fluid steps — h1 (display) and h2 (section) — then a
     fixed ramp. `section` runs bigger than `display` at the top end on
     purpose: their section headings are the largest type on the page. */
  --auth-display:clamp(1.875rem, 3.5vw, 2.8125rem);   /* 30 → 45px */
  --auth-section:clamp(1.875rem, 2.8vw, 3.125rem);    /* 30 → 50px */
  --auth-3xl:1.875rem;
  --auth-2xl:1.5rem;
  --auth-xl:1.25rem;
  --auth-lg:1.125rem;
  --auth-md:1.0625rem;   /* body */
  --auth-base:1rem;
  --auth-sm:.875rem;
  --auth-xs:.75rem;

  --auth-w-regular:400;
  --auth-w-medium:500;
  --auth-w-semibold:600;
  --auth-w-bold:700;

  --auth-lead-tight:1.15;
  --auth-lead-snug:1.35;
  --auth-lead-normal:1.5;
  --auth-lead-relaxed:1.65;

  /* Headings pull in; all-caps labels push apart. */
  --auth-track-tight:-.02em;
  --auth-track-caps:.04em;

  --auth-ease:cubic-bezier(.23,1,.32,1);
  --auth-section-py:clamp(2.5rem, 6vw, 5rem);
  --auth-section-py-tight:clamp(2rem, 4vw, 3rem);
}

/* ---------- Page-level typography ---------- */

.apage{
  font-size:var(--auth-md);
  font-weight:var(--auth-w-medium);
  line-height:var(--auth-lead-normal);
  color:var(--auth-body);
}
.apage h1,.apage h2,.apage h3,.apage h4{
  color:var(--auth-ink);
  font-weight:var(--auth-w-bold);
  line-height:var(--auth-lead-snug);
  letter-spacing:var(--auth-track-tight);
  margin:0 0 .5rem;
}
.apage h1{font-size:var(--auth-display);line-height:var(--auth-lead-tight)}
/* Section headings are the biggest type on the page — that scale jump is what
   gives each band its own beginning. */
.apage h2{font-size:var(--auth-section);line-height:var(--auth-lead-tight)}
.apage h3{font-size:var(--auth-lg)}
.apage p{color:var(--auth-body);margin:0 0 1rem}
.apage .lede{
  font-size:var(--auth-xl);font-weight:var(--auth-w-medium);
  color:var(--auth-secondary);line-height:var(--auth-lead-snug);
}
.apage strong,.apage b{color:var(--auth-ink)}
/* Scoped to prose links only: a blanket `.apage a` outranks .btn--light and
   would repaint the buttons inside the dark CTA block. */
.apage p a,.apage li a{color:var(--auth-ink);text-decoration:underline}

/* Eyebrow: a pill, not naked small-caps. */
.apage .eyebrow{
  display:inline-block;margin-bottom:1rem;
  padding:.35rem .8rem;border-radius:var(--auth-r-pill);
  background:var(--auth-chip);color:var(--auth-secondary);
  font-size:var(--auth-xs);font-weight:var(--auth-w-semibold);
  letter-spacing:var(--auth-track-caps);text-transform:uppercase;
}

/* Section rhythm and bands. */
.apage .section{padding-block:var(--auth-section-py)}
.apage .section--soft{background:var(--auth-band)}
.apage .section__head{margin-bottom:2.5rem}

/* Cards and surfaces inherit one recipe. */
.apage .acard{
  background:var(--auth-surface);
  border:1px solid var(--auth-line);
  border-radius:var(--auth-r-2xl);
  box-shadow:var(--auth-shadow-card);
  padding:1.75rem;
}

/* ---------- Stat row ---------- */

.astats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:var(--auth-line);
  border:1px solid var(--auth-line);
  border-radius:var(--auth-r-2xl);
  overflow:hidden;margin-top:2rem;
}
@media(max-width:720px){.astats{grid-template-columns:1fr 1fr}}
.astat{background:var(--auth-surface);padding:1.25rem 1rem;text-align:center}
.astat b{
  display:block;font-family:var(--num);font-weight:var(--auth-w-bold);
  font-size:var(--auth-2xl);color:var(--auth-ink);
  letter-spacing:var(--auth-track-tight);line-height:1.2;
}
.astat span{display:block;margin-top:.35rem;font-size:var(--auth-sm);color:var(--auth-muted)}

/* ---------- Numbered steps (their "1-2-3-4" pattern) ---------- */

.asteps{list-style:none;margin:0;padding:0;display:grid;gap:1.25rem}
.astep{display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:start}
.astep__n{
  width:2.25rem;height:2.25rem;border-radius:var(--auth-r-pill);
  display:grid;place-items:center;flex:none;
  background:var(--auth-ink);color:#fff;
  font-family:var(--num);font-weight:var(--auth-w-bold);font-size:var(--auth-sm);
}
.astep__n--now{background:var(--blue)}
.astep h3{margin:.25rem 0 .35rem}
.astep p{margin:0;line-height:var(--auth-lead-relaxed)}

/* ---------- Two-column comparison ---------- */

.apage .twoarm__card{
  border-color:var(--auth-line);border-radius:var(--auth-r-2xl);
  box-shadow:var(--auth-shadow-card);padding:1.75rem;
}
.apage .twoarm__card--accent{background:var(--auth-surface);box-shadow:var(--auth-shadow-lift)}
.apage .twoarm__tag{
  background:var(--auth-chip);color:var(--auth-secondary);
  font-size:var(--auth-xs);font-weight:var(--auth-w-semibold);
  letter-spacing:var(--auth-track-caps);text-transform:uppercase;
}
.apage .twoarm__card p{color:var(--auth-body);line-height:var(--auth-lead-relaxed)}
.apage .phl li{color:var(--auth-body)}

/* ---------- Logo strips ---------- */

.apage .logo-card,.apage .plogo{
  border-color:var(--auth-line);border-radius:var(--auth-r-xl);
  box-shadow:var(--auth-shadow-hair);background:var(--auth-surface);
}
.apage .partners{border-bottom:0}
.apage .partners__title{color:var(--auth-muted);font-size:var(--auth-sm)}

/* ---------- NVIDIA Inception plate ---------- */

.apage .incept{
  border-color:var(--auth-line);border-radius:var(--auth-r-2xl);
  box-shadow:var(--auth-shadow-wide);
}
.apage .incept__note{color:var(--auth-muted)}
.apage .incept__text{color:var(--auth-body);line-height:var(--auth-lead-relaxed)}

/* ---------- Buttons ---------- */

.apage .btn{
  border-radius:var(--auth-r-lg);
  min-height:3rem;display:inline-flex;align-items:center;justify-content:center;
  font-size:var(--auth-sm);font-weight:var(--auth-w-bold);
  letter-spacing:var(--auth-track-caps);line-height:1.2;
}
.apage .btn--primary{box-shadow:var(--auth-shadow-card)}

/* ---------- Timeline ----------
   .tline itself lives in styles.css and is shared; these overrides pull it
   onto the authority ramp without touching the global rules. */

.apage .tline{border-inline-start-color:var(--auth-line)}
.apage .tline__item::before{background:var(--auth-line);border-color:var(--auth-surface)}
.apage .tline__year{
  font-family:var(--num);font-weight:var(--auth-w-semibold);
  font-size:var(--auth-lg);color:var(--blue);
  letter-spacing:var(--auth-track-tight);
}
.apage .tline__item h3{font-size:var(--auth-lg)}
.apage .tline__item p{color:var(--auth-body);line-height:var(--auth-lead-relaxed)}

/* ---------- NVIDIA lockup ---------- */

.apage .incept__badge{
  font-size:var(--auth-xs);font-weight:var(--auth-w-bold);
  letter-spacing:var(--auth-track-caps);
}
