/* ==========================================================================
   Hadir · gethadir.com
   Concept: THE NIGHT SHIFT.
   The page is set at the hour the product exists for: after closing.
   Deep Gulf night, a live clock, one unanswered message, and the brightest
   object on the page is a printed receipt. Money is printed, not animated.
   Type: Fraunces (voice) · Schibsted Grotesk (matter) · IBM Plex Mono (money)
   ========================================================================== */

:root {
  /* night */
  --night-0: #060a13;      /* page floor */
  --night-1: #0a1020;      /* raised surfaces */
  --night-2: #101830;      /* cards */
  --line:    #1d2742;      /* hairlines */
  --line-2:  #2a3554;

  /* voice */
  --paper:   #f2eddf;      /* warm text on night */
  --paper-dim: #a9a795;    /* secondary text */
  --paper-faint: #6d6f66;  /* tertiary */

  /* signals */
  --green:   #35d97b;      /* WhatsApp moments + recovered money */
  --green-deep: #0c8a4a;
  --green-ink: #06120b;
  --amber:   #ffb454;      /* sodium lamps, the clock */

  /* the receipt */
  --r-paper: #f7f3e9;
  --r-ink:   #201f1a;
  --r-dim:   #6f6c60;

  --font-display: "Fraunces", "IBM Plex Sans Arabic", serif;
  --font-body: "Schibsted Grotesk", "IBM Plex Sans Arabic", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --w: min(1120px, calc(100vw - 48px));
  --ease: cubic-bezier(.22,.9,.24,1);
}

/* Arabic: Fraunces carries no Arabic. The whole voice moves to Plex Arabic,
   and the display weight does the talking. */
html[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--night-0); }

main, footer { position: relative; z-index: 1; }

body {
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

.skip {
  position: absolute; inset-inline-start: -999px; top: 0;
  background: var(--green); color: var(--green-ink);
  padding: 8px 16px; z-index: 99; border-radius: 0 0 8px 0;
}
.skip:focus { inset-inline-start: 0; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  width: 100%; padding: 14px calc((100vw - var(--w)) / 2);
  background: color-mix(in srgb, var(--night-0) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex; align-items: baseline; gap: 9px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 640; font-size: 22px; letter-spacing: -0.01em;
}
.wordmark-ar {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 15px; font-weight: 500; color: var(--green);
  transform: translateY(-1px);
}

.nav-links { display: flex; gap: 22px; margin-inline-start: 12px; }
.nav-links a {
  text-decoration: none; font-size: 14.5px; color: var(--paper-dim);
  transition: color .2s;
}
.nav-links a:hover { color: var(--paper); }

.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  background: none; border: 1px solid var(--line-2); color: var(--paper-dim);
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 7px 11px; border-radius: 999px; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.lang-toggle:hover { color: var(--paper); border-color: var(--paper-faint); }
.lang-toggle .lang-sep { opacity: .4; margin: 0 3px; }
html[lang="en"] .lang-toggle .lang-en,
html[lang="ar"] .lang-toggle .lang-ar { color: var(--green); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border-radius: 10px;
  font-weight: 600; letter-spacing: .01em;
  transition: transform .18s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-s { padding: 9px 16px; font-size: 14px; }
.btn-l { padding: 15px 26px; font-size: 16px; }
.btn-solid { background: var(--green); color: var(--green-ink); }
.btn-solid:hover { background: #4ce68c; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper-faint); }

/* ------------------------------------------------------- the night stage */
/* A fixed sky the whole page scrolls through. JS eases --deep-o (deepest
   night, mid-page) and --dawn-o (first light, at the pilot CTA). The sky
   never scrolls; the night passes around the content. */
.night { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.night .veil { position: absolute; inset: 0; }
.veil-dusk {
  background:
    radial-gradient(1100px 520px at 78% -10%, #16224a 0%, transparent 60%),
    radial-gradient(900px 500px at 12% 8%, #0e1733 0%, transparent 55%),
    linear-gradient(180deg, #0a1226 0%, var(--night-0) 78%);
}
.veil-deep {
  background: linear-gradient(180deg, #030509 0%, #04070e 100%);
  opacity: var(--deep-o, 0);
}
.veil-dawn {
  background:
    linear-gradient(180deg, rgba(20,20,40,0) 46%, rgba(64,42,26,.30) 100%),
    radial-gradient(120% 62% at 50% 110%, rgba(255,170,84,.32) 0%, rgba(255,138,64,.10) 42%, transparent 72%);
  opacity: var(--dawn-o, 0);
}
#nightSky { position: absolute; inset: 0; width: 100%; height: 100%; }

/* the city on the horizon: sodium mist, and a car passing now and then */
.horizonline { position: absolute; left: 0; right: 0; bottom: 0; height: 240px; overflow: hidden; }
.citymist {
  position: absolute; left: -10%; right: -10%; bottom: -130px; height: 270px;
  background: radial-gradient(60% 100% at 50% 100%,
    color-mix(in srgb, var(--amber) 15%, transparent) 0%, transparent 70%);
  filter: blur(6px);
  opacity: calc(.8 + var(--dawn-o, 0) * .5);
}
.beam {
  position: absolute; bottom: 4px; width: 36vw; height: 74px; border-radius: 50%;
  background: radial-gradient(50% 62% at 50% 62%, rgba(255,192,112,.16), transparent 70%);
  filter: blur(26px); opacity: 0;
  transform: translateX(-48vw);
}
.beam-1 { animation: pass 23s linear 7s infinite; }
.beam-2 { animation: pass-back 37s linear 19s infinite; }
@keyframes pass {
  0% { opacity: 0; transform: translateX(-48vw); }
  2% { opacity: .9; }
  11% { opacity: 0; transform: translateX(115vw); }
  100% { opacity: 0; transform: translateX(115vw); }
}
@keyframes pass-back {
  0% { opacity: 0; transform: translateX(115vw); }
  2% { opacity: .6; }
  9% { opacity: 0; transform: translateX(-48vw); }
  100% { opacity: 0; transform: translateX(-48vw); }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; }

.hero-inner {
  position: relative;
  width: var(--w); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px;
  align-items: center;
  padding: 108px 0 96px;
}

.clockline {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13.5px; color: var(--paper-dim);
  letter-spacing: .04em;
}
.clock { color: var(--amber); font-weight: 600; font-size: 15px; }
.clock-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 540;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 22px 0 22px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic; font-weight: 540; color: var(--amber);
}
html[lang="ar"] .hero h1 { font-weight: 700; letter-spacing: 0; line-height: 1.25; font-style: normal; }
html[lang="ar"] .hero h1 em { font-style: normal; }

.hero-sub {
  max-width: 52ch; font-size: 18.5px; color: var(--paper-dim); line-height: 1.65;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--paper-faint); }

/* staged hero reveal */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--d) * 130ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ------------------------------------------------ the unanswered phone */
.phone {
  background: var(--night-2);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  max-width: 400px; justify-self: end; width: 100%;
}
.phone-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: var(--night-1);
}
.phone-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--line-2); color: var(--paper);
  font-size: 13px; font-weight: 700;
}
.phone-title { font-weight: 600; font-size: 15px; }
.phone-status { margin-inline-start: auto; font-size: 12px; color: var(--paper-faint); font-family: var(--font-mono); white-space: nowrap; }

.phone-body { padding: 20px 18px 18px; }
.daychip {
  width: max-content; margin: 0 auto 14px;
  font-size: 11.5px; font-family: var(--font-mono); letter-spacing: .06em;
  color: var(--paper-faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;
}

.bubble {
  position: relative; max-width: 88%;
  padding: 11px 14px 20px;
  border-radius: 14px; font-size: 15px; line-height: 1.5;
}
.bubble-in { background: #1b2440; border-start-start-radius: 4px; }
.bubble-out {
  background: #123c2a; border-start-end-radius: 4px;
  margin-inline-start: auto; margin-top: 12px;
}
.bubble-meta {
  position: absolute; inset-inline-end: 10px; bottom: 5px;
  font-size: 10.5px; color: var(--paper-faint); font-family: var(--font-mono);
}

.bubble-wait {
  display: flex; align-items: center; gap: 7px;
  margin: 14px 2px 0; font-family: var(--font-mono);
  font-size: 12px; color: var(--paper-faint);
}
.bubble-wait .tick { color: #5f7bd9; letter-spacing: -2px; }
.ellipsis span { animation: blink 1.6s infinite; }
.ellipsis span:nth-child(2) { animation-delay: .25s; }
.ellipsis span:nth-child(3) { animation-delay: .5s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.phone-verdict {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  font-size: 14px; color: var(--amber); line-height: 1.5;
}
.phone-caption {
  padding: 13px 18px; border-top: 1px solid var(--line);
  background: var(--night-1); font-size: 13.5px;
}
.phone-caption a { color: var(--green); text-decoration: none; }
.phone-caption a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- strip */
.strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 14px 26px;
  width: var(--w); margin: 0 auto; padding: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--paper-dim); font-size: 14.5px;
}
.strip strong { font-family: var(--font-mono); color: var(--paper); font-size: 17px; font-weight: 600; margin-inline-end: 6px; }
.strip-div { color: var(--paper-faint); }

/* ---------------------------------------------------------------- sections */
.section { width: var(--w); margin: 0 auto; padding: 110px 0 30px; }

.kicker {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--green); margin-bottom: 16px;
}
html[lang="ar"] .kicker { letter-spacing: 0; }

.section h2 {
  font-family: var(--font-display);
  font-weight: 540; font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12; letter-spacing: -0.015em; max-width: 22ch;
  text-wrap: balance;
}
html[lang="ar"] .section h2 { font-weight: 700; letter-spacing: 0; line-height: 1.35; }

.section-sub { max-width: 58ch; margin-top: 18px; color: var(--paper-dim); font-size: 17px; }

/* scroll reveals */
.observe { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.observe.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- calculator */
.calc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  margin-top: 52px; padding: 40px;
  background: var(--night-1); border: 1px solid var(--line); border-radius: 18px;
}
.calc-field { margin-bottom: 30px; }
.calc-field label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 15px; color: var(--paper-dim); margin-bottom: 12px; gap: 12px;
}
.calc-field output { color: var(--paper); font-size: 16px; font-weight: 600; }

input[type="range"] {
  width: 100%; appearance: none; -webkit-appearance: none;
  height: 4px; border-radius: 4px; background: var(--line-2); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--green);
  cursor: grab; transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--green); cursor: grab;
}
.calc-assume { font-size: 13.5px; color: var(--paper-faint); font-family: var(--font-mono); }

.calc-result {
  border-inline-start: 1px dashed var(--line-2);
  padding-inline-start: 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.calc-result-label { font-size: 14px; color: var(--paper-dim); order: 2; }
.calc-number {
  order: 1; font-size: clamp(44px, 5vw, 62px); font-weight: 600;
  color: var(--amber); line-height: 1.05; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.calc-cur { font-size: .45em; font-weight: 500; color: var(--paper-dim); vertical-align: middle; margin-inline-end: 4px; }
.calc-yearly { order: 3; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--paper-dim); }
.calc-yearly strong { color: var(--paper); font-weight: 600; }
.calc-foot { margin-top: 22px; font-size: 14px; color: var(--paper-faint); }

/* ---------------------------------------------------------------- jobs */
.jobs {
  list-style: none; margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden;
}
.job {
  background: var(--night-1); padding: 34px 28px 38px;
  transition: background .25s;
}
.job:hover { background: var(--night-2); }
.job-n { display: block; color: var(--green); font-size: 13px; margin-bottom: 40px; }
.job h3 {
  font-family: var(--font-display); font-weight: 540; font-size: 21px;
  letter-spacing: -0.01em; margin-bottom: 12px;
}
html[lang="ar"] .job h3 { font-weight: 700; }
.job p { font-size: 15px; color: var(--paper-dim); line-height: 1.62; }

/* ---------------------------------------------------------------- receipt */
.receipt-section { padding-bottom: 40px; }
.receipt-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center;
}

.counter-slot {
  margin-top: 40px; padding: 26px 28px;
  border: 1px dashed var(--line-2); border-radius: 14px;
}
.counter-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dim); }
html[lang="ar"] .counter-label { letter-spacing: 0; }
.counter-value { font-size: 40px; color: var(--paper-faint); margin: 8px 0 10px; font-weight: 600; }
.counter-note { font-size: 13.5px; color: var(--paper-faint); }

/* the paper itself: the brightest thing on the page, on purpose */
.receipt { justify-self: center; perspective: 850px; }
.receipt-paper {
  width: min(360px, 88vw);
  background: var(--r-paper); color: var(--r-ink);
  padding: 34px 30px 26px;
  transform: rotate(-1.6deg) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) scale(var(--ts, 1));
  box-shadow: 0 40px 90px -25px rgba(0,0,0,.85), 0 6px 18px rgba(0,0,0,.4);
  /* perforated edges */
  -webkit-mask:
    radial-gradient(circle 6px, transparent 96%, #000) top left / 21px 12px repeat-x,
    radial-gradient(circle 6px, transparent 96%, #000) bottom left / 21px 12px repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - 20px) no-repeat;
  mask:
    radial-gradient(circle 6px, transparent 96%, #000) top left / 21px 12px repeat-x,
    radial-gradient(circle 6px, transparent 96%, #000) bottom left / 21px 12px repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - 20px) no-repeat;
  transition: transform .22s var(--ease);
}

.r-brand {
  font-family: var(--font-mono); font-weight: 600; font-size: 19px;
  letter-spacing: .3em; text-align: center;
}
.r-brand .r-ar { font-family: "IBM Plex Sans Arabic"; font-size: 15px; letter-spacing: 0; color: var(--green-deep); }
.r-sub, .r-date { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--r-dim); margin-top: 7px; }
html[lang="ar"] .r-sub, html[lang="ar"] .r-date { letter-spacing: .02em; }

.r-rule { border-top: 1.5px dashed #c9c3b2; margin: 18px 0; }

.r-lines div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 13px; padding: 4.5px 0;
}
.r-lines dt { color: #45443c; flex-shrink: 1; }
.r-lines div::before { content: none; }
.r-lines dd { font-weight: 600; }

.r-total p:first-child { font-size: 11.5px; letter-spacing: .1em; color: var(--r-dim); }
html[lang="ar"] .r-total p:first-child { letter-spacing: .02em; }
.r-total-n { font-size: 34px; font-weight: 600; color: var(--green-deep); margin-top: 4px; }

.r-foot { text-align: center; font-size: 12px; color: var(--r-dim); font-style: italic; }
.r-barcode { text-align: center; font-size: 20px; letter-spacing: 1px; margin-top: 12px; color: #35342d; opacity: .85; }

.receipt-caption { text-align: center; margin-top: 20px; font-size: 13px; color: var(--paper-faint); }

/* ---------------------------------------------------------------- honest */
.honest-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; margin-top: 56px; align-items: start; }

.chat {
  background: var(--night-1); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 22px;
}
.chat .bubble-in { background: #1b2440; }
.chat-note { margin-top: 18px; font-size: 13.5px; color: var(--paper-faint); font-family: var(--font-mono); }

.trust { list-style: none; display: grid; gap: 8px; }
.trust li { padding: 22px 0; border-top: 1px solid var(--line); }
.trust li:last-child { border-bottom: 1px solid var(--line); }
.trust h3 { font-family: var(--font-display); font-weight: 540; font-size: 19px; margin-bottom: 8px; letter-spacing: -0.01em; }
html[lang="ar"] .trust h3 { font-weight: 700; }
.trust p { font-size: 15px; color: var(--paper-dim); max-width: 52ch; }

/* ---------------------------------------------------------------- engines: the journey */
/* Six steps down a receipt-tape spine. Each step: the pain, staged as a
   WhatsApp moment, then the line Hadir prints on the receipt. */
.journey-wrap {
  display: grid; grid-template-columns: 1fr 380px; gap: 72px;
  align-items: start; margin-top: 64px;
}

.journey { list-style: none; position: relative; }
.journey::before {
  content: ""; position: absolute; top: 20px; bottom: 20px;
  inset-inline-start: 19px;
  border-inline-start: 2px dashed var(--line-2);
}

.j-step {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  gap: 22px; align-items: start;
  padding: 46px 0;
  padding-inline-start: 82px;
}
.j-copy { max-width: 56ch; }
.j-scene { max-width: 500px; }

.j-node {
  position: absolute; inset-inline-start: 0; top: 46px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--night-0); border: 1px solid var(--line-2);
  color: var(--paper-faint); font-size: 12.5px; font-weight: 500;
  transition: border-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease);
}
.j-step.in .j-node {
  border-color: var(--green); color: var(--green);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 10%, transparent);
}
.j-big.in .j-node {
  border-color: var(--amber); color: var(--amber);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 12%, transparent);
}

.j-tag {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 12px;
}
html[lang="ar"] .j-tag { letter-spacing: 0; }
.j-step h3 {
  font-family: var(--font-display); font-weight: 540; font-size: 26px;
  letter-spacing: -0.012em; margin-bottom: 12px; text-wrap: balance;
}
html[lang="ar"] .j-step h3 { font-weight: 700; letter-spacing: 0; }
.j-p { font-size: 15px; color: var(--paper-dim); line-height: 1.62; max-width: 46ch; }

/* the climax line under the sleeping giant */
.j-mult {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px dashed var(--line-2);
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(23px, 2.4vw, 32px); line-height: 1.35; color: var(--amber);
  max-width: 26ch; text-wrap: balance;
}
html[lang="ar"] .j-mult { font-style: normal; }

/* the sticky receipt: the month prints itself as the engines pass */
.journey-receipt {
  position: sticky; top: 96px;
  perspective: 850px;
  display: flex; flex-direction: column; align-items: center;
}
.jr-paper { width: min(340px, 88vw); }
.jr-row {
  max-height: 0; opacity: 0; overflow: hidden;
  padding-block: 0 !important; transform: translateY(-3px);
  transition: max-height .4s var(--ease), padding .4s var(--ease),
              opacity .45s var(--ease) .12s, transform .45s var(--ease) .12s;
}
.jr-row.printed { max-height: 46px; opacity: 1; transform: none; padding-block: 4.5px !important; }
.jr-tail {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .7s var(--ease), opacity .55s var(--ease) .15s;
}
.jr-tail.printed { max-height: 300px; opacity: 1; }

/* the paper nudges each time the print head fires */
.jr-paper.chunk { animation: chunk .38s var(--ease); }
@keyframes chunk {
  30% { transform: rotate(-1.6deg) translateY(2.5px); }
}

/* the staged moment */
.j-scene {
  background: var(--night-1); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px 20px 18px;
}
.j-cap {
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper-faint); margin-bottom: 14px;
}
html[lang="ar"] .j-cap { letter-spacing: 0; }
.j-scene .bubble {
  padding: 10px 14px; font-size: 14.5px; margin-top: 10px; max-width: 92%;
}
.j-div {
  width: max-content; margin: 14px auto 4px;
  font-size: 11px; font-family: var(--font-mono); letter-spacing: .06em;
  color: var(--paper-faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;
}
html[lang="ar"] .j-div { letter-spacing: 0; }
.j-review {
  margin-top: 12px; padding: 12px 14px;
  background: var(--r-paper); color: var(--r-ink);
  border-radius: 12px; font-size: 13.5px; line-height: 1.5;
}
.j-review .j-stars { color: #d98a2b; letter-spacing: 3px; font-size: 13px; display: block; margin-bottom: 4px; }
.j-print {
  margin-top: 16px; padding-top: 13px;
  border-top: 1.5px dashed var(--line-2);
  font-size: 12px; color: var(--green); letter-spacing: .02em; line-height: 1.5;
}

/* the moment plays out in sequence once the step is in view */
.j-scene > :is(.bubble, .j-div, .j-review, .j-print) {
  opacity: 0; transform: translateY(10px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.j-step.in .j-scene > :is(.bubble, .j-div, .j-review, .j-print) { opacity: 1; transform: none; }
.j-step.in .j-scene > :nth-child(2) { transition-delay: .25s; }
.j-step.in .j-scene > :nth-child(3) { transition-delay: .65s; }
.j-step.in .j-scene > :nth-child(4) { transition-delay: 1.05s; }
.j-step.in .j-scene > :nth-child(5) { transition-delay: 1.45s; }
.j-step.in .j-scene > :nth-child(6) { transition-delay: 1.85s; }

.engine-foot {
  margin-top: 26px; font-size: 14.5px; color: var(--paper-faint); max-width: 62ch;
}

/* the receipt-tape ticker */
.tape-wrap { margin-top: 48px; }
.tape-label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--paper-faint); margin-bottom: 12px;
}
html[lang="ar"] .tape-label { letter-spacing: 0; }
.tape {
  overflow: hidden; border-block: 1px dashed var(--line-2);
  padding: 12px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tape-track {
  display: flex; gap: 44px; width: max-content;
  animation: tape 46s linear infinite;
}
.tape:hover .tape-track { animation-play-state: paused; }
.tape-track span {
  font-family: var(--font-mono); font-size: 13px; color: var(--paper-dim);
  white-space: nowrap;
}
.tape-track span b { color: var(--green); font-weight: 500; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .tape-track { animation-name: tape-rtl; }
@keyframes tape-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* the annual number: the loudest thing on the page, on purpose */
.calc-per {
  order: 3; font-family: var(--font-display); font-style: italic;
  font-size: 20px; color: var(--amber); margin-top: 2px;
}
html[lang="ar"] .calc-per { font-style: normal; }
.calc-monthly {
  order: 4; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px; color: var(--paper-dim);
}
.calc-monthly strong { color: var(--paper); font-weight: 600; }
.calc-result .calc-number {
  font-size: clamp(54px, 6.2vw, 96px);
  letter-spacing: -0.02em;
  transition: text-shadow .5s var(--ease);
}
/* the number burns while you drag the sliders */
.calc-number.burn {
  text-shadow: 0 0 44px rgba(255, 180, 84, .5), 0 0 14px rgba(255, 180, 84, .22);
}

/* receipt tabs + stage */
.receipt-tabs {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 22px;
}
.receipt-tab {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em;
  background: none; border: 1px solid var(--line-2); color: var(--paper-dim);
  border-radius: 999px; padding: 8px 18px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.receipt-tab:hover { color: var(--paper); }
.receipt-tab.is-active {
  color: var(--green-ink); background: var(--green); border-color: var(--green);
  font-weight: 600;
}
.receipt-stage { position: relative; }
.receipt-paper.is-hidden { display: none; }
/* On tab switch the paper FEEDS OUT of a printer slot: the stage clips,
   a slot bar sits at its mouth, and the paper slides down out of it,
   straightening from 0deg to its resting tilt as it settles. */
.receipt-stage.printing { overflow: hidden; }
.receipt-stage.printing::before {
  content: ""; position: absolute; z-index: 2;
  left: 3%; right: 3%; top: -3px; height: 8px; border-radius: 4px;
  background: #05070d;
  box-shadow: 0 1px 0 rgba(242, 237, 223, .08), 0 6px 18px rgba(0, 0, 0, .65);
}
.receipt-stage.printing .receipt-paper {
  animation: paper-in 1.1s cubic-bezier(.26, .05, .2, 1);
}
@keyframes paper-in {
  from { transform: rotate(0deg) translateY(-103%); }
  70% { transform: rotate(-.5deg) translateY(-7%); }
  to { transform: rotate(-1.6deg) translateY(0); }
}

/* the total catches the light, once, when it lands */
.r-total-n.shine {
  background: linear-gradient(100deg, var(--green-deep) 42%, #23c96e 50%, var(--green-deep) 58%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 1.3s ease .2s 1 both;
}
@keyframes shine { from { background-position: 130% 0; } to { background-position: -40% 0; } }

/* footer investor line */
.footer-invest {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  color: var(--paper-dim); font-size: 14px; max-width: 38ch; line-height: 1.6;
}

/* film grain: barely there, but the surface stops feeling digital */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay;
}

/* ---------------------------------------------------------------- faq */
.faq { margin-top: 48px; max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-weight: 600; font-size: 17px;
  transition: color .2s;
}
.faq summary:hover { color: var(--green); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 20px;
  color: var(--paper-faint); transition: transform .3s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--green); }
.faq details p {
  padding: 0 4px 24px; color: var(--paper-dim); font-size: 15.5px; max-width: 66ch;
}

/* ---------------------------------------------------------------- pilot */
/* the pilot CTA sits at first light: the green of recovered money against
   the first amber of the morning */
.pilot {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 50% 115%, color-mix(in srgb, var(--green) 9%, transparent) 0%, transparent 70%),
    radial-gradient(1100px 300px at 50% 122%, rgba(255, 160, 70, .13) 0%, transparent 72%),
    linear-gradient(180deg, var(--night-1) 0%, #131126 100%);
}
.pilot-inner {
  width: var(--w); margin: 0 auto; padding: 110px 0 120px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.pilot-inner .clockline { flex-wrap: wrap; justify-content: center; row-gap: 2px; text-align: center; }
.pilot h2 {
  font-family: var(--font-display); font-weight: 540;
  font-size: clamp(38px, 6vw, 80px); letter-spacing: -0.02em;
  line-height: 1.06; margin-top: 24px; text-wrap: balance;
}
.pilot h2 em { font-style: italic; color: var(--green); }
html[lang="ar"] .pilot h2 { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
html[lang="ar"] .pilot h2 em { font-style: normal; }
.pilot-sub { max-width: 56ch; margin-top: 22px; color: var(--paper-dim); font-size: 17.5px; }
.pilot .hero-ctas { justify-content: center; margin-top: 34px; }
.pilot-note { margin-top: 18px; font-size: 14px; color: var(--paper-faint); }

/* ---------------------------------------------------------------- footer */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0b0a16 0%, #12101a 100%);
}
.footer-inner {
  width: var(--w); margin: 0 auto; padding: 64px 0 36px;
  display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap;
}
.footer .wordmark { font-size: 26px; }
.footer-meaning { margin-top: 12px; color: var(--paper-faint); font-size: 14px; max-width: 34ch; }

.footer-cols { display: flex; gap: 72px; }
.footer-h { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-faint); margin-bottom: 14px; }
html[lang="ar"] .footer-h { letter-spacing: 0; }
.footer-cols a { display: block; text-decoration: none; color: var(--paper-dim); font-size: 14.5px; padding: 4px 0; }
.footer-cols a:hover { color: var(--paper); }
.footer-line { color: var(--paper-faint); font-size: 14px; padding: 4px 0; }

.footer-legal {
  width: var(--w); margin: 0 auto; padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--paper-faint); font-size: 13px; max-width: none;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding-top: 72px; }
  .phone { justify-self: start; }
  .calc { grid-template-columns: 1fr; gap: 34px; }
  .calc-result { border-inline-start: none; border-top: 1px dashed var(--line-2); padding-inline-start: 0; padding-top: 34px; }
  .jobs { grid-template-columns: 1fr 1fr; }
  .journey-wrap { grid-template-columns: 1fr; gap: 40px; }
  .journey-receipt { position: static; margin: 0 auto; }
  .j-step { padding-inline-start: 68px; gap: 20px; }
  .j-scene { max-width: 480px; }
  .receipt-grid { grid-template-columns: 1fr; gap: 56px; }
  .receipt { justify-self: start; }
  .honest-grid { grid-template-columns: 1fr; gap: 48px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .jobs { grid-template-columns: 1fr; }
  .journey::before { inset-inline-start: 15px; }
  .j-step { padding-inline-start: 50px; padding-block: 36px; }
  .j-node { width: 32px; height: 32px; font-size: 11px; top: 40px; }
  .j-step h3 { font-size: 22px; }
  .section { padding-top: 84px; }
  .btn-l { width: 100%; }
  .nav { gap: 12px; }
  .nav .btn-ghost { display: none; }
}

/* ---------------------------------------------------------------- motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .observe { opacity: 1; transform: none; animation: none; transition: none; }
  .j-scene > :is(.bubble, .j-div, .j-review, .j-print) { opacity: 1; transform: none; transition: none; }
  .j-node { transition: none; }
  .jr-row, .jr-tail { transition: none; }
  .jr-paper.chunk, .r-total-n.shine { animation: none; }
  .receipt-stage.printing { overflow: visible; }
  .receipt-stage.printing::before { content: none; }
  .r-total-n.shine { color: var(--green-deep); background: none; }
  .beam-1, .beam-2 { animation: none; }
  .veil-deep, .veil-dawn, .calc-number, .receipt-paper { transition: none; }
  .clock-dot, .ellipsis span, .tape-track, .receipt-paper { animation: none; }
}
