/* ==========================================================================
   VSL Landing Page — Arabic / RTL
   Self-contained. No framework, no reset library, no JS dependency for layout.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — self-hosted IBM Plex Sans Arabic (Arabic + Latin subsets only)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Plex Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plex-ar-arabic-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011,
                 U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Plex Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plex-ar-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plex-ar-arabic-600.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011,
                 U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Plex Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plex-ar-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/plex-ar-arabic-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011,
                 U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Plex Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/plex-ar-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — near-black, not pure black. Pure #000 reads cheap on OLED. */
  --ink:        #0A0C0F;
  --ink-raised: #101318;
  --ink-deep:   #07080A;

  /* Text */
  --fg:        #ECEEF1;
  --fg-soft:   #B4BAC4;
  --fg-mute:   #767E8C;

  /* Brand accent — used sparingly. Restraint is what reads as premium. */
  --accent:      #DEEF20;
  --accent-dim:  #C3D311;
  --accent-ink:  #0A0C0F;

  /* Hairlines instead of shadows */
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Rhythm — 4px base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;

  --radius: 12px;
  --radius-lg: 18px;

  /* Reading measure. Arabic runs wider per character than Latin. */
  --measure: 34rem;
  --shell: 68rem;

  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: 'Plex Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;              /* Arabic needs more air than Latin */
  letter-spacing: 0;              /* never letter-space Arabic */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, p { margin: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

.u-measure { max-width: var(--measure); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   4. Logo — CSS-drawn so it costs zero requests.
      Swap for the real SVG later: see INSTALL.md step 6.
   -------------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.14em;
  font-size: clamp(2.5rem, 9vw, 3.25rem);
  line-height: 1;
  direction: ltr;
}
.logo__mark {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.logo__dot {
  width: 0.235em;
  height: 0.235em;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 0.06em;
  flex: none;
}
.logo img { height: 1em; width: auto; }

/* --------------------------------------------------------------------------
   5. Masthead — deliberately bare. A VSL page gives no exits.
   -------------------------------------------------------------------------- */
.masthead {
  padding-block: var(--s-6) var(--s-3);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--s-6) var(--s-4);
  text-align: center;
  isolation: isolate;
}

/* A single soft accent bloom behind the video. One light source, not five. */
.hero::before {
  content: '';
  position: absolute;
  inset-block-start: 12%;
  /* physical properties on purpose: centring must not flip with direction */
  left: 50%;
  transform: translateX(-50%);
  width: min(52rem, 100%);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(222, 239, 32, 0.07) 0%, transparent 62%);
  z-index: -1;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(222, 239, 32, 0.28);
  border-radius: 999px;
  background: rgba(222, 239, 32, 0.05);
  line-height: 1.6;
}

/* The ceiling is set by the longest phrase, which must never wrap — the track
   relies on every row being exactly one line tall. At the 2.15rem floor,
   "يحوّل زوارك لعملاء" measures ~250px against 272px of usable width on a
   320px screen, which is the tightest case on any phone in use. Lengthen a
   phrase and that headroom is what gets spent. */
.hero__title {
  margin-block-start: var(--s-6);
  font-size: clamp(2.15rem, 10vw, 5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-inline: auto;
}

/* The static half — lighter and smaller, so the rolling half is the thing the
   eye lands on. */
.hero__lede {
  display: block;
  font-size: 0.56em;
  font-weight: 400;
  color: var(--fg-soft);
  line-height: 1.5;
}

/* --- The rolling half -----------------------------------------------------
   A column of equal-height phrases that steps upward. The window is 1.6 line
   tall so the neighbours peek in above and below, and the mask fades them out
   at the edges — that fade is what sells the motion, and it costs nothing:
   no JS, no per-phrase opacity, one animated transform on one element.
   -------------------------------------------------------------------------- */
.roll {
  --roll-h: 1.28em;

  display: block;
  height: calc(var(--roll-h) * 1.6);
  overflow: hidden;
  /* The current phrase sits centred; 0.3 line of headroom each side. */
  padding-block-start: calc(var(--roll-h) * 0.3);
  box-sizing: content-box;

  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 74%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 74%, transparent 100%);
}

/* The keyframes live here, in a file, rather than being generated into the
   page. Generated CSS inside the HTML cannot be cache-busted: the markup is
   what browsers hold on to, so a stale page keeps a stale animation and no
   version string can reach it. Written out here, a redeploy of this file is
   enough — and the animation name changed with it, so nothing that survives in
   a cache can still be pointed at.

   The offsets are shares of the track's own height. The track is SEVEN rows
   tall — six phrases plus the repeated first one — so a row is 100/7 =
   14.2857%. Change the phrase list in page-vsl.php and these have to be
   rewritten to match; that coupling is the price of keeping them cacheable.

   Travel runs from -85.7143% to 0: the column slides DOWNWARD, so each phrase
   enters from above and leaves through the bottom. */
.roll__track {
  display: block;
  animation-name: roll-down;
  animation-duration: 10.8s;          /* 6 phrases x 1.8s */
  animation-timing-function: cubic-bezier(0.72, 0, 0.24, 1);
  animation-iteration-count: infinite;
  will-change: transform;
}

@keyframes roll-down {
  0%,     13.333% { transform: translateY(-85.7143%); }
  16.667%, 30%    { transform: translateY(-71.4286%); }
  33.333%, 46.667% { transform: translateY(-57.1429%); }
  50%,    63.333% { transform: translateY(-42.8571%); }
  66.667%, 80%    { transform: translateY(-28.5714%); }
  83.333%, 96.667% { transform: translateY(-14.2857%); }
  100%            { transform: translateY(0%); }
}

.roll__word {
  display: block;
  height: var(--roll-h);
  line-height: var(--roll-h);
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
}

/* Motion is the whole point here, so the reduced-motion fallback is not a
   frozen animation — it is a single phrase, framed as if it never moved. */
@media (prefers-reduced-motion: reduce) {
  .roll {
    height: var(--roll-h);
    padding-block-start: 0;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .roll__track { animation: none; }
}

.hero__sub {
  margin-block-start: var(--s-6);
  font-size: clamp(1.0625rem, 3.5vw, 1.25rem);
  line-height: 1.9;
  color: var(--fg-soft);
  max-width: 44ch;
  margin-inline: auto;
}
.hero__sub strong { color: var(--fg); font-weight: 600; }

/* --------------------------------------------------------------------------
   7. Video
   -------------------------------------------------------------------------- */
.video {
  margin-block-start: var(--s-8);
  max-width: 56rem;
  margin-inline: auto;
}
.video__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink-raised);
  /* Reserve the box before the player defines itself → zero layout shift */
  aspect-ratio: 16 / 9;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 70px -30px rgba(0, 0, 0, 0.9),
    0 0 90px -50px rgba(222, 239, 32, 0.5);
}
.video__frame wistia-player { display: block; width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   8. CTA slot — hidden until the viewer has watched enough
   -------------------------------------------------------------------------- */
/* The hint sits on top of the (invisible) button block rather than above it,
   so the gate occupies one button's worth of height either way — the reveal
   swaps content in place instead of pushing the letter down. */
.gate {
  position: relative;
  margin-block-start: var(--s-6);
}

.gate__hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  font-size: 0.9375rem;
  color: var(--fg-mute);
  line-height: 1.7;
  text-align: center;
}
/* `display: flex` above would otherwise beat the [hidden] attribute */
.gate__hint[hidden] { display: none; }
.gate__pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.7); }
}

.gate__reveal {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  visibility: hidden;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.gate__reveal.is-live {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   9. Button
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 3.75rem;               /* 60px — well past the 44px touch floor */
  padding: 0.9rem 2.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: inherit;
  font-size: clamp(1.0625rem, 3.6vw, 1.1875rem);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.18s;
  box-shadow: 0 10px 34px -14px rgba(222, 239, 32, 0.75);
}
.btn:hover {
  background: #E7F63F;
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -14px rgba(222, 239, 32, 0.85);
}
.btn:active { transform: translateY(0); }
.btn__icon { width: 1.35em; height: 1.35em; flex: none; }
.btn--block { width: 100%; }

@media (max-width: 30rem) {
  .btn { width: 100%; padding-inline: var(--s-4); }
}

.btn-note {
  margin-block-start: var(--s-4);
  font-size: 0.875rem;
  color: var(--fg-mute);
  line-height: 1.8;
}
.btn-note span { white-space: nowrap; }
.btn-note i {
  font-style: normal;
  color: var(--line-strong);
  margin-inline: 0.5rem;
}

/* --------------------------------------------------------------------------
   9b. Services grid — six equal tiles
       2 columns on phones, 3 from 48rem up. `grid-auto-rows: 1fr` is what
       keeps every tile in a row exactly as tall as its neighbour, however the
       titles wrap. Shared with the "خدمات ثانية" block on service pages.
   -------------------------------------------------------------------------- */
.svc {
  padding-block: var(--s-16) var(--s-12);
  text-align: center;
}

.svc__kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-mute);
}

.svc__title {
  margin-block-start: var(--s-2);
  font-size: clamp(1.5rem, 5.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.45;
}
.svc__title--sm { font-size: clamp(1.25rem, 4.4vw, 1.625rem); }

.svc__grid {
  list-style: none;
  margin: var(--s-8) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(9.75rem, 1fr);
  gap: var(--s-3);
  text-align: start;
}

@media (min-width: 30rem) {
  .svc__grid { gap: var(--s-4); }
}
@media (min-width: 48rem) {
  .svc__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(11.5rem, 1fr);
  }
}

.svc__cell { display: flex; }

/* --- The tile itself --- */
.tile {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-raised);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              transform 0.25s var(--ease);
}

@media (min-width: 30rem) {
  .tile { padding: var(--s-6); }
}

a.tile:hover {
  border-color: rgba(222, 239, 32, 0.42);
  background: #12161C;
  transform: translateY(-3px);
}

.tile__num {
  position: absolute;
  inset-block-start: var(--s-4);
  inset-inline-end: var(--s-4);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-mute);
  opacity: 0.6;
  line-height: 1;
}

.tile__icon {
  width: 1.625rem;
  height: 1.625rem;
  color: var(--fg);
  transition: color 0.25s var(--ease);
}
a.tile:hover .tile__icon { color: var(--accent); }

.tile__body { align-self: start; }

.tile__title {
  display: block;
  font-size: clamp(0.9375rem, 3.4vw, 1.0625rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.55;
}

.tile__tag {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-block-start: 0.35em;
  font-size: 0.8125rem;
  color: var(--fg-mute);
  line-height: 1.7;
}

.tile__arrow {
  width: 1.125rem;
  height: 1.125rem;
  justify-self: end;          /* inline-end — the reading exit in RTL */
  color: var(--fg-mute);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
/* Physical translate: "forward" in RTL is leftwards, and the chevron already
   points that way, so this must not flip with direction. */
a.tile:hover .tile__arrow {
  color: var(--accent);
  transform: translateX(-4px);
}

/* --- Not published yet --- */
.tile--soon {
  border-style: dashed;
  background: transparent;
  cursor: default;
}
.tile--soon .tile__icon { color: var(--fg-mute); opacity: 0.5; }
.tile--soon .tile__title { color: var(--fg-mute); font-weight: 600; }

/* --------------------------------------------------------------------------
   10. The letter — the typographic centrepiece
   -------------------------------------------------------------------------- */
.letter {
  position: relative;
  background: var(--ink-deep);
  border-block-start: 1px solid var(--line);
  padding-block: var(--s-12);
  margin-block-start: var(--s-6);
}

.letter__body {
  max-width: var(--measure);
  margin-inline: auto;
  font-size: clamp(1.125rem, 4.2vw, 1.3125rem);
  line-height: 2.05;
  color: var(--fg-soft);
}

/* Each beat of the letter is its own block with deliberate breathing room. */
.letter__body > * + * { margin-block-start: 1.65em; }

.letter__open {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.7;
}
.letter__open small {
  display: block;
  font-size: 0.72em;
  font-weight: 400;
  color: var(--accent);
  margin-block-start: 0.35em;
  letter-spacing: 0;
}

/* Short declarative lines — the rhythm of the original copy is the point,
   so each line gets its own row rather than being reflowed into a paragraph. */
.beat { line-height: 1.75; }
.beat b {
  display: block;
  font-weight: 700;
  color: var(--fg);
  font-size: 1.12em;
}
.beat--tight > * + * { margin-block-start: 0.15em; }

/* The four questions — set apart with a hairline on the reading edge */
.questions {
  border-inline-start: 2px solid var(--accent);
  padding-inline-start: 1.15rem;
  margin-inline-start: 0.15rem;
  list-style: none;
  padding-block: 0.2rem;
}
.questions li {
  color: var(--fg);
  font-weight: 600;
  line-height: 1.85;
}
.questions li + li { margin-block-start: 0.5em; }

/* The advice-noise block — muted, slightly compressed, feels like chatter */
.noise {
  color: var(--fg-mute);
  font-size: 0.95em;
  line-height: 1.95;
}
.noise span { display: block; }

/* The turn — the pivot line of the whole letter */
.turn {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.6;
  padding-block: 0.6em;
}

.letter__close { color: var(--fg); }
.letter__close b { color: var(--fg); }

/* Thin divider used between letter movements */
.rule {
  width: 2.5rem;
  height: 1px;
  background: var(--line-strong);
  border: 0;
  margin-inline: 0;
  margin-block: 2.4em !important;
}

/* --------------------------------------------------------------------------
   11. Closing CTA
   -------------------------------------------------------------------------- */
.close {
  padding-block: var(--s-16);
  text-align: center;
  border-block-start: 1px solid var(--line);
}
.close__title {
  font-size: clamp(1.5rem, 5.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.45;
  max-width: 18ch;
  margin-inline: auto;
  text-wrap: balance;
}
.close__sub {
  margin-block-start: var(--s-4);
  color: var(--fg-soft);
  max-width: 38ch;
  margin-inline: auto;
  font-size: 1.0625rem;
}
.close__cta { margin-block-start: var(--s-8); }

/* --------------------------------------------------------------------------
   11b. المجالات — vertical feature cards
        Wide cards, not tiles: the headline number is the reason to click, and
        a number needs room. Stacks to one column below 44rem.
   -------------------------------------------------------------------------- */
.fields {
  padding-block: var(--s-16);
  text-align: center;
  border-block-start: 1px solid var(--line);
  background: var(--ink-deep);
}

.fields__lead {
  margin-block-start: var(--s-4);
  color: var(--fg-soft);
  max-width: 40ch;
  margin-inline: auto;
  font-size: 1.0625rem;
}

.fields__list {
  list-style: none;
  margin: var(--s-8) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
  text-align: start;
}

.field {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-raised);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              transform 0.25s var(--ease);
}
.field:hover {
  border-color: rgba(222, 239, 32, 0.42);
  background: #12161C;
  transform: translateY(-3px);
}

@media (min-width: 44rem) {
  .field {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--s-8);
    padding: var(--s-8);
  }
}

.field__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-mute);
  opacity: 0.7;
}

.field__title {
  display: block;
  margin-block-start: var(--s-2);
  font-size: clamp(1.25rem, 4.6vw, 1.75rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.5;
}

.field__tag {
  display: block;
  margin-block-start: var(--s-2);
  font-size: 1rem;
  color: var(--fg-soft);
  line-height: 1.8;
}

.field__go {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-block-start: var(--s-4);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
}
.field__go svg { width: 1.05rem; height: 1.05rem; flex: none; transition: transform 0.25s var(--ease); }
/* Physical translate: the chevron already points the RTL "forward" way. */
.field:hover .field__go svg { transform: translateX(-4px); }

/* The number block. Latin-digit-free, so it stays in the page direction. */
.field__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-6) var(--s-8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}
.field__stat-label { font-size: 0.75rem; color: var(--fg-mute); }
.field__stat-jump {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--s-2);
  margin-block-start: var(--s-1);
}
.field__stat-jump svg {
  width: 1rem; height: 1rem;
  align-self: center;
  color: var(--fg-mute);
  flex: none;
}
.field__stat-before {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--fg-mute);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.field__stat-after {
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.field__stat-unit { font-size: 0.8125rem; color: var(--fg-soft); }
.field__stat-note {
  margin-block-start: var(--s-2);
  font-size: 0.6875rem;
  color: var(--fg-mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.foot {
  border-block-start: 1px solid var(--line);
  padding-block: var(--s-8);
  text-align: center;
  color: var(--fg-mute);
  font-size: 0.8125rem;
}
.foot .logo { font-size: 1.25rem; opacity: 0.75; }
.foot__copy { margin-block-start: var(--s-4); }

/* Footer promo — the one place every page routes to an industry page. Loud
   enough to be seen in a footer, quiet enough not to fight the page's CTA. */
.promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-2) var(--s-3);
  max-width: 44rem;
  margin: 0 auto var(--s-8);
  padding: var(--s-4) var(--s-6);
  border: 1px solid rgba(222, 239, 32, 0.3);
  border-radius: var(--radius);
  background: rgba(222, 239, 32, 0.05);
  text-align: center;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.promo:hover {
  border-color: rgba(222, 239, 32, 0.55);
  background: rgba(222, 239, 32, 0.09);
}

.promo__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  line-height: 1.7;
  flex: none;
}
.promo__text {
  font-size: clamp(0.9375rem, 3.6vw, 1.0625rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.6;
}
.promo__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  flex: none;
}
.promo__cta svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease); }
.promo:hover .promo__cta svg { transform: translateX(-4px); }

/* --------------------------------------------------------------------------
   13. Sticky mobile CTA — appears with the gate, mobile only
   -------------------------------------------------------------------------- */
.sticky {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 50;
  padding: 0.7rem var(--s-4) calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 12, 15, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block-start: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}
.sticky.is-live { transform: none; }
.sticky .btn { min-height: 3.25rem; font-size: 1.0625rem; }

@media (min-width: 56rem) {
  .sticky { display: none; }
}
body.has-sticky { padding-block-end: 5.5rem; }
@media (min-width: 56rem) {
  body.has-sticky { padding-block-end: 0; }
}

/* --------------------------------------------------------------------------
   14. Scroll reveals
   -------------------------------------------------------------------------- */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.rv.is-in { opacity: 1; transform: none; }

/* No JS? Everything must still be visible. */
.no-js .rv { opacity: 1; transform: none; }
.no-js .gate__reveal { opacity: 1; transform: none; visibility: visible; }
.no-js .gate__hint { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rv { opacity: 1; transform: none; }
}
