/* Hadir page classes. Engine mechanism stays in scrollcraft.css untouched. */

/* ---------- language toggle: EN default, BM via .lang-ms on body ---------- */
.ms { display: none; }
.en { display: inline; }
body.lang-ms .ms { display: inline; }
body.lang-ms .en { display: none; }

/* ---------- site bar ---------- */
.site-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--sc-3)) var(--sc-gutter);
  pointer-events: none;
}
.site-bar > * { pointer-events: auto; }
.site-bar .mark { display: flex; align-items: center; gap: var(--sc-2); }
/* logo-mono is the black wordmark + pin; inverted it is the white wordmark
   Nick asked for (no sky box). Same treatment in the footer. */
.site-bar .mark img { height: 28px; width: auto; display: block; filter: invert(1); }
.bar-right { display: flex; align-items: center; gap: var(--sc-2); }
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sc-font-text); font-weight: 700; font-size: .85rem;
  line-height: 1; padding: .72em 1.25em; border-radius: 999px;
  border: 1px solid rgba(244, 250, 254, .18);
  background: rgba(11, 20, 53, .55); color: var(--sc-ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  text-decoration: none; cursor: pointer;
  transition: transform 140ms var(--sc-ease-out), background 140ms var(--sc-ease-out), border-color 140ms var(--sc-ease-out);
}
.pill:hover { border-color: rgba(244, 250, 254, .38); }
.pill:active { transform: translateY(1px); }
.pill--accent {
  background: var(--sc-accent); color: var(--sc-accent-ink);
  border-color: transparent; box-shadow: 0 6px 18px -8px rgba(12, 156, 224, .55);
}
.pill--accent:hover { background: #22a9ea; }
.pill--lang { padding-inline: 1em; letter-spacing: .04em; }
.pill--ghost { background: transparent; }
@media (max-width: 700px) { .site-bar .pill--ghost { display: none; } }

/* Hadi (chat-widget.js) paints a navy bubble; on this navy page it gets a
   light face so it reads. The widget's own rules are inline, hence !important. */
.hchat-btn { background: #F4FAFE !important; color: #111E4A !important; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6) !important; }

.foot__links { display: flex; flex-wrap: wrap; gap: var(--sc-3) var(--sc-4); }
.foot__links a { color: var(--sc-ink); text-decoration: none; font-weight: 700; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- hero: the living register ---------- */
/* Pinned stages are opaque: during act handoff two stages overlap, and a
   transparent stage lets the neighbour's light content bleed under this
   act's type. The ground rule, applied literally. */
.hero-stage {
  display: grid; align-content: center; justify-items: center;
  gap: var(--sc-5); padding: calc(var(--sc-7)) var(--sc-gutter) var(--sc-4);
  text-align: center;
  background: #0B1435;
}
@media (max-height: 760px) {
  .hero-copy .sc-display { font-size: clamp(2rem, 3.6vw, 2.6rem); }
}
.hero-copy { max-width: 46rem; display: grid; gap: var(--sc-3); justify-items: center; }
.hero-copy .sc-display {
  text-wrap: balance; letter-spacing: var(--sc-track-tight);
  font-size: clamp(2.5rem, 4.6vw, 3.6rem);
}
.hero-copy .sc-body { max-width: 34rem; color: var(--sc-ink-soft); }
.hero-ctas { display: flex; gap: var(--sc-3); flex-wrap: wrap; justify-content: center; }

.register {
  width: min(620px, calc(100vw - 2 * var(--sc-gutter)));
  min-height: max-content;
  border-radius: 18px;
  background: linear-gradient(180deg, #121C46 0%, #0E1638 100%);
  border: 1px solid rgba(244, 250, 254, .10);
  box-shadow: var(--sc-e3), inset 0 1px 0 rgba(244, 250, 254, .08);
  overflow: hidden;
  text-align: left;
}
.register__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sc-3);
  padding: var(--sc-3) var(--sc-4);
  border-bottom: 1px solid rgba(244, 250, 254, .08);
  font-family: var(--sc-font-text); font-size: .8rem; color: var(--sc-ink-soft);
}
.register__title { font-weight: 700; color: var(--sc-ink); font-size: .85rem; }
.register__clock {
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--sc-accent);
  font-size: .95rem;
}
.register__rows { display: grid; }
.rrow {
  display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center;
  gap: var(--sc-3); padding: var(--sc-1) var(--sc-4); min-height: 46px;
  border-bottom: 1px solid rgba(244, 250, 254, .05);
  opacity: 0; transform: translateY(8px);
  transition: opacity 340ms var(--sc-ease-out), transform 340ms var(--sc-ease-out);
}
.rrow:last-child { border-bottom: 0; }
.rrow.is-in { opacity: 1; transform: none; }
.rrow__ava {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--sc-font-display); font-weight: 800; font-size: .85rem;
  background: rgba(12, 156, 224, .18); color: #7CCDF2;
  border: 1px solid rgba(12, 156, 224, .35);
}
.rrow__who { display: grid; line-height: 1.3; }
.rrow__name { font-weight: 700; font-size: .9rem; color: var(--sc-ink); }
.rrow__site { font-size: .74rem; color: var(--sc-ink-soft); }
.rrow__time { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--sc-ink-soft); }
.rrow__ok {
  display: inline-flex; align-items: center; gap: .35em;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  color: #7BE3B4; background: rgba(30, 178, 116, .14);
  border: 1px solid rgba(30, 178, 116, .35);
  padding: .35em .7em; border-radius: 999px;
  white-space: nowrap;
}
.rrow__ok svg { width: 11px; height: 11px; }
/* the not-yet-landed slot reads as waiting, not broken */
.rrow[aria-hidden="true"] { opacity: 0; }

/* ---------- the app, drawn: hero phone and close phone ---------- */
.app {
  display: grid; grid-template-rows: auto auto 1fr auto;
  text-align: left; color: #10203A;
  font-family: var(--sc-font-text);
}
.phone--hero { width: clamp(17rem, 26vw, 21rem); height: min(540px, 60svh); }
.phone--mini { width: clamp(15rem, 22vw, 17rem); height: min(400px, 46svh); grid-template-rows: auto auto 1fr; }
.app__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid #E2EBF1; background: #fff;
}
.app__brand { display: grid; gap: 1px; }
.phone.app .app__brand img { height: 16px; width: auto; display: block; } /* beats .phone img */
.app__brand span { font-size: .62rem; font-weight: 700; color: #5B6B78; }
.app__ava {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #D6EEFB; color: #0284C7; font-size: .68rem; font-weight: 800;
}
.app__title { padding: 12px 14px 8px; background: #F4FAFE; }
.app__eyebrow { margin: 0; font-size: .66rem; font-weight: 700; color: #0284C7; }
.app__titlerow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.app__title h2 { margin: 2px 0 0; font: 800 1rem var(--sc-font-display); color: #10203A; letter-spacing: 0; }
.app__clock { font-size: .8rem; font-weight: 800; color: #0284C7; }
.app__rows { display: grid; gap: 6px; padding: 6px 12px 10px; background: #F4FAFE; overflow: hidden; align-content: start; }
.arow {
  display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 9px;
  padding: 7px 10px; min-height: 46px; border-radius: 12px;
  background: #fff; border: 1px solid #E2EBF1;
  box-shadow: 0 6px 16px -14px rgba(17, 30, 74, .35);
}
.arow__ava {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #D6EEFB; color: #0284C7; font: 800 .7rem var(--sc-font-display);
}
.arow__who { display: grid; line-height: 1.2; min-width: 0; }
.arow__name { font-size: .78rem; font-weight: 700; color: #10203A; }
.arow__site { font-size: .62rem; color: #5B6B78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow__time { font-size: .7rem; color: #5B6B78; }
.arow__ok {
  display: inline-flex; align-items: center; gap: .3em;
  font-size: .6rem; font-weight: 700; letter-spacing: .02em;
  color: #15803D; background: #F2FBF5; border: 1px solid #BFE7CE;
  padding: .3em .6em; border-radius: 999px; white-space: nowrap;
}
.arow__ok svg { width: 10px; height: 10px; }
.app__tabs {
  display: flex; justify-content: space-around; padding: 6px 6px 10px;
  border-top: 1px solid #E2EBF1; background: #fff;
}
.app__tab {
  display: grid; justify-items: center; gap: 2px; padding: 4px 12px; border-radius: 12px;
  font-size: .58rem; font-weight: 700; color: #5B6B78;
}
.app__tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app__tab.is-on { color: #0284C7; background: #D6EEFB; }

/* ---------- trust strip ---------- */
.trust { padding-block: var(--sc-6) !important; }
.trust .sc-wrap { display: grid; gap: var(--sc-4); justify-items: center; text-align: center; }
.trust__label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sc-ink-soft); font-weight: 700; }
.trust__names { display: flex; flex-wrap: wrap; gap: var(--sc-3) var(--sc-7); justify-content: center; }
.trust__names span {
  font-family: var(--sc-font-display); font-weight: 800; font-size: 1.05rem;
  color: rgba(244, 250, 254, .55); letter-spacing: .01em; white-space: nowrap;
}

/* ---------- the old way: pinned argument ---------- */
.argument {
  display: grid; place-items: center; text-align: center;
  padding: 0 var(--sc-gutter);
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(12, 156, 224, .07), transparent 70%),
    #0D1027;
}
.argument > p {
  grid-area: 1 / 1;
  max-width: 24ch; margin: 0;
  font-family: var(--sc-font-display); font-weight: 800;
  font-size: var(--sc-t-xl); line-height: 1.12; letter-spacing: var(--sc-track-tight);
  text-wrap: balance;
}
.argument .turn { color: var(--sc-accent); }

/* ---------- the turn: scrubbed check-in inside a phone ---------- */
.flow-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: clamp(2rem, 6vw, 6rem); padding: var(--sc-6) var(--sc-gutter);
  max-width: 72rem; margin-inline: auto; background: #0B1435;
}
.flow-copy { display: grid; gap: var(--sc-4); max-width: 34rem; }
.flow-copy .sc-body { color: var(--sc-ink-soft); }
.steps { list-style: none; margin: var(--sc-2) 0 0; padding: 0; display: grid; gap: var(--sc-2); counter-reset: step; }
.steps li {
  display: flex; align-items: center; gap: var(--sc-3);
  font-weight: 700; color: var(--sc-ink);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 800 .8rem var(--sc-font-display);
  background: rgba(12, 156, 224, .18); color: #7CCDF2; border: 1px solid rgba(12, 156, 224, .4);
}
/* the phone holds the clip: poster and video fill the frame, not the stage */
.phone--flow {
  position: relative; width: clamp(15rem, 24vw, 19.5rem); aspect-ratio: 720 / 1558;
  height: auto; background: #F4FAFE;
}
.phone--flow .sc-stage__poster,
.phone--flow video[data-sc-scrub] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .flow-stage { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--sc-4); padding-block: var(--sc-5); }
  .flow-copy { gap: var(--sc-3); }
  .flow-copy .sc-body { display: none; } /* the phone and the four steps carry it on a phone */
  .steps { grid-template-columns: 1fr 1fr; gap: var(--sc-2) var(--sc-3); text-align: left; }
  .steps li { font-size: .8rem; }
  .phone--flow { width: min(17rem, 68vw); max-height: 56svh; }
}

/* ---------- product rail ---------- */
.rail {
  display: flex; align-items: center; gap: clamp(3rem, 5vw, 4.5rem);
  padding-inline: var(--sc-gutter); height: 100svh;
  background: #0C1638;
}
.rail__lead { flex: 0 0 auto; max-width: 28rem; display: grid; gap: var(--sc-3); }
.rail__lead .sc-body { color: var(--sc-ink-soft); }
.rail__note { flex: 0 0 auto; max-width: 22rem; display: grid; gap: var(--sc-3); padding-inline-end: clamp(4rem, 8vw, 7rem); }
.rail__note h3 { font-family: var(--sc-font-display); font-weight: 800; font-size: var(--sc-t-lg); line-height: 1.1; margin: 0; }
.rail__note p { color: var(--sc-ink-soft); margin: 0; }
.langs { display: flex; flex-wrap: wrap; gap: var(--sc-2); }
.langs span {
  font-size: .78rem; font-weight: 700; color: var(--sc-ink);
  border: 1px solid rgba(244, 250, 254, .18); border-radius: 999px;
  padding: .4em .85em; background: rgba(244, 250, 254, .04);
}
.shot { flex: 0 0 auto; display: grid; gap: var(--sc-3); justify-items: center; }
.shot figure { margin: 0; }
.phone {
  width: clamp(16rem, 24vw, 19rem); border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(244, 250, 254, .14);
  background: #FFFFFF;
  box-shadow: var(--sc-e2), inset 0 1px 0 rgba(244, 250, 254, .25);
}
.phone img { display: block; width: 100%; height: auto; }
/* frame stack: real screenshots of one screen in successive states */
.frames { position: relative; }
.frames img + img { position: absolute; inset: 0; opacity: 0; }
.frames img.is-on { opacity: 1; }
.shot figcaption {
  font-family: var(--sc-font-text); font-weight: 700; font-size: .92rem;
  color: var(--sc-ink); text-align: center;
}
/* staggered settle off the act's own progress; first item exempt */
@media (prefers-reduced-motion: no-preference) {
  [data-sc-act="pan"] .rail > * {
    opacity: calc(0.55 + 0.45 * clamp(0, (var(--sc-p, 1) - (var(--i, 0) * 0.10)) * 7, 1));
  }
  [data-sc-act="pan"] .rail > .rail__lead { opacity: 1; }
}

/* ---------- insights (dashboard reveal) ---------- */
.insights-stage {
  display: grid; align-content: center; gap: var(--sc-4);
  padding: var(--sc-5) var(--sc-gutter);
  max-width: none; margin-inline: 0;
  max-height: 100svh; box-sizing: border-box;
  background: #0A122E;
}
.insights-stage > * { width: min(72rem, 100%); margin-inline: auto; }
.insights-copy { display: grid; gap: var(--sc-3); max-width: 42rem; }
.insights-copy .sc-body { color: var(--sc-ink-soft); }
.board { margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(244, 250, 254, .12);
  box-shadow: var(--sc-e3), inset 0 1px 0 rgba(244, 250, 254, .2);
  height: min(52svh, 34rem);
}
.board img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.board-note { font-size: .78rem; color: var(--sc-ink-soft); }

/* ---------- the office side: scrubbed dashboard take ---------- */
.office-stage {
  display: grid; grid-template-rows: auto auto auto; align-content: center; justify-items: center;
  gap: var(--sc-3); padding: calc(var(--sc-7) + 28px) var(--sc-gutter) var(--sc-4);
  background: #0A122E; max-height: 100svh; box-sizing: border-box;
}
.office-copy { display: grid; gap: var(--sc-3); justify-items: center; text-align: center; width: min(72rem, 100%); }
.office-copy .sc-display { max-width: 24ch; text-wrap: balance; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.steps--row { grid-template-columns: repeat(4, auto); gap: var(--sc-2) var(--sc-5); margin: 0; }
.steps--row li { font-size: .9rem; }
.film {
  position: relative; width: min(72rem, 100%); aspect-ratio: 1728 / 1080;
  max-height: 56svh; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(244, 250, 254, .12);
  box-shadow: var(--sc-e3), inset 0 1px 0 rgba(244, 250, 254, .2);
  background: #F4FAFE;
}
.film .sc-stage__poster, .film video[data-sc-scrub] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.film-note { margin: 0; font-size: .78rem; color: var(--sc-ink-soft); }
@media (max-width: 860px) {
  .office-stage { gap: var(--sc-3); }
  .steps--row { grid-template-columns: 1fr 1fr; gap: var(--sc-2) var(--sc-3); text-align: left; }
  .steps--row li { font-size: .8rem; }
  .film { max-height: 40svh; border-radius: 10px; }
}

/* ---------- pricing ---------- */
.pricing .sc-wrap { display: grid; gap: var(--sc-6); }
.pricing__head { display: grid; gap: var(--sc-3); max-width: 46rem; }
.pricing__head .sc-body { color: var(--sc-ink-soft); }
.bill-toggle {
  display: inline-flex; border-radius: 999px; padding: 4px;
  border: 1px solid rgba(244, 250, 254, .16); background: rgba(244, 250, 254, .04);
  width: max-content;
}
.bill-toggle button {
  font: 700 .85rem var(--sc-font-text); color: var(--sc-ink-soft);
  background: none; border: 0; border-radius: 999px; padding: .6em 1.2em; cursor: pointer;
  transition: background 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out);
}
.bill-toggle button[aria-pressed="true"] { background: var(--sc-accent); color: var(--sc-accent-ink); }
.tiers { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: var(--sc-4); align-items: stretch; }
.tier {
  display: grid; align-content: start; gap: var(--sc-3);
  border-radius: 16px; padding: var(--sc-5);
  background: #101940; border: 1px solid rgba(244, 250, 254, .10);
  box-shadow: var(--sc-e1);
}
.tier--penuh {
  background: linear-gradient(180deg, #14204F 0%, #101940 100%);
  border-color: rgba(12, 156, 224, .5);
  box-shadow: var(--sc-e2), 0 0 0 1px rgba(12, 156, 224, .18);
  position: relative;
}
.tier__flag {
  position: absolute; top: calc(-1 * var(--sc-2)); left: var(--sc-5);
  font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  border-radius: 999px; padding: .35em .9em;
}
.tier h3 { margin: 0; font-family: var(--sc-font-display); font-weight: 800; font-size: 1.15rem; }
.tier h3 small { display: block; font: 700 .74rem var(--sc-font-text); color: var(--sc-ink-soft); letter-spacing: .05em; text-transform: uppercase; margin-top: .3em; }
.tier__price { font-family: var(--sc-font-display); font-weight: 900; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tier__price small { font: 700 .8rem var(--sc-font-text); color: var(--sc-ink-soft); }
.tier__floor { font-size: .78rem; color: var(--sc-ink-soft); }
.tier ul { margin: var(--sc-2) 0 0; padding: 0; list-style: none; display: grid; gap: .55em; }
.tier li { font-size: .86rem; line-height: 1.45; padding-left: 1.35em; position: relative; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: .7em; height: .7em;
  border-radius: 50%; background: rgba(12, 156, 224, .22);
  box-shadow: inset 0 0 0 1px rgba(12, 156, 224, .55);
}
.tier li.soon { color: var(--sc-ink-soft); }
.tier li.soon::before { background: transparent; box-shadow: inset 0 0 0 1px rgba(244, 250, 254, .3); }
.tier li.soon em { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: #E9C464; }
.pricing__fine { font-size: .78rem; color: var(--sc-ink-soft); max-width: 52rem; }

/* ---------- close ---------- */
.close {
  display: grid; grid-template-rows: 1fr auto; height: 100svh;
  padding: 0 var(--sc-gutter);
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(12, 156, 224, .10), transparent 70%),
    #0B1435;
}
.close__inner {
  display: grid; align-content: center; justify-items: center; gap: var(--sc-5);
  text-align: center;
}
.close__inner .sc-display { max-width: 20ch; text-wrap: balance; }
.phone--mini .arow { min-height: 40px; padding-block: 5px; }
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sc-4);
  /* bottom clearance keeps the footer above Hadi's fixed bubble (22px + 52px) */
  padding: var(--sc-4) 0 96px; flex-wrap: wrap;
  border-top: 1px solid rgba(244, 250, 254, .08);
  font-size: .78rem; color: var(--sc-ink-soft);
}
.foot img { height: 22px; width: auto; display: block; opacity: .9; filter: invert(1); }
.foot a { color: var(--sc-ink-soft); }
.foot a:hover { color: var(--sc-ink); }

/* ---------- phones ---------- */
@media (max-width: 700px) {
  .hero-copy .sc-display { font-size: var(--sc-t-2xl); }
  .argument > p { font-size: var(--sc-t-lg); }
  .tiers { grid-template-columns: 1fr; }
  .tier--penuh { order: -1; }
  .site-bar .pill--accent { display: none; } /* close CTA carries the intent on phones */
  .register__head { flex-wrap: wrap; }
}
