/* Clubtech branded landing — full-bleed hero device cluster (.hdev- / .hpa-).

   The hero copy sits in the normal content column; below it a full-bleed
   "stage" holds three frozen product screens:

     laptop  → the guest booking map (.ckd, live component, pointer-events off)
     tablet  → the front-of-house door list (.ckdl, same)
     phone   → a purpose-built mobile analytics screen (.hpa, static markup)

   Composition is authored once in a 1400 x 690 design canvas and scaled as a
   whole by --k at a handful of breakpoints, so the cluster never re-flows —
   it just gets smaller, and bleeds off both edges on narrow desktops.

   Every length inside the stage is `design-px * var(--k)`. Screens render
   their content at native resolution into a fixed canvas that is then
   transform-scaled to fit the bezel, so a 1400px-wide booking map really is
   laid out at 1400px and shrunk optically — not squashed into 900px. */

/* ═══ hero shell overrides ═══ */

.hero.hero-full {
  display: block;
  min-height: 0;
  padding-top: 132px;
  padding-bottom: 0;
  overflow: hidden;
}
.hero.hero-full .hero-mark { top: 300px; transform: translateY(-50%); }

.hero-lede {
  position: relative;
  z-index: 3;
  width: min(1186px, 100%);
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
}
.hero.hero-full .hero-lede h1 { max-width: none; margin-inline: auto; font-size: clamp(44px, 5.2vw, 76px); line-height: .96; }
.hero.hero-full .hero-lede .hero-copy { max-width: 640px; margin-inline: auto; }
.hero.hero-full .hero-lede .hero-actions { justify-content: center; }

/* logo cloud, promoted into the hero directly under the CTAs. It was already
   navy-on-navy as a standalone band, so it only needs its spacing retuned. */
.hero.hero-full .hero-logos {
  position: relative;
  z-index: 3;
  gap: 18px;
  padding: 44px 0 0;
  background: none;
}
.hero.hero-full .hero-logos .client-logos-row img { height: 46px; max-width: 120px; opacity: .4; }

/* ═══ the stage ═══ */

.hero-stage {
  --k: 1;
  position: relative;
  z-index: 2;
  width: calc(1400px * var(--k));
  height: calc(690px * var(--k));
  /* `margin:auto` CANNOT centre a box wider than its container — the
     over-constrained case resolves both margins to 0 and the whole cluster
     overflows to the RIGHT. left/translate centres it on the viewport whether
     it fits or bleeds, which is the entire point of a full-bleed stage. */
  left: 50%;
  transform: translateX(-50%);
  margin-top: calc(20px * var(--k));
  /* frozen: nothing in here is clickable, hoverable or focusable */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.hero-stage * { pointer-events: none !important; }

/* a soft glow behind the cluster so it lifts off the navy */
.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(1320px * var(--k));
  height: calc(620px * var(--k));
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(93, 254, 194, .16), rgba(122, 140, 233, .10) 55%, transparent 100%);
  filter: blur(6px);
}

/* ═══ generic device ═══ */

.hdev {
  position: absolute;
  left: calc(var(--x) * var(--k) * 1px);
  top: calc(var(--y) * var(--k) * 1px);
}
.hdev-screen {
  position: relative;
  overflow: hidden;
  width: calc(var(--sw) * var(--k) * 1px);
  height: calc(var(--sh) * var(--k) * 1px);
  background: #0b1020;
}
.hdev-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--nw) * 1px);
  height: calc(var(--nh) * 1px);
  transform: scale(calc(var(--sw) / var(--nw) * var(--k)));
  transform-origin: 0 0;
}
/* demo.js / operator.js wrap their root in a .demo-badge-host on mount, so the
   demo is a GRANDCHILD of the canvas by the time it paints. That wrapper has
   auto height, against which the demo's `height:100%` resolves to auto and the
   whole component collapses. Every link in the chain has to be told to fill. */
.hdev-canvas > *,
.hdev-canvas .demo-badge-host {
  width: 100%;
  height: 100%;
}
/* the demos ship their own drop shadow + radius; inside a bezel we want neither */
.hdev-canvas .ckd,
.hdev-canvas .cko,
.hdev-canvas .ckdl,
.hdev-canvas .cki {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
}
/* "drag to pan" hints and "limited demo" badges belong on the live demos
   further down the page, not on a frozen screenshot */
.hero-stage .ckd-hint,
.hero-stage .ckd-badge,
.hero-stage .cko-badge,
.hero-stage .ckdl-badge,
.hero-stage .cki-badge { display: none !important; }

/* ═══ laptop ═══ */

/* Composition, in the 1400 x 690 design canvas:
     · the laptop is dead-centre: 1076 wide, x = (1400 - 1076) / 2 = 162
     · phone and tablet leave the same 70px outer margin on their own side
     · both tuck IN OVER the laptop lid (which spans 237..1163) rather than
       standing beside it — phone by 111px, tablet by 331px. The tablet
       necessarily bites deeper: it is 220px wider than the phone, and with
       the laptop pinned to centre you can equalise the outer margins or the
       overlaps, not both. Equal margins is what reads as even.
     · all three stand on one baseline at y = 625                            */
.hdev-laptop { --x: 162; --y: 12; z-index: 2; width: calc(1076px * var(--k)); }
.hdev-laptop .hdev-lid {
  position: relative;
  width: max-content;
  margin: 0 auto;
  padding: calc(13px * var(--k)) calc(13px * var(--k)) calc(22px * var(--k));
  background: linear-gradient(160deg, #2c3346, #12161f 60%);
  border: calc(1px * var(--k)) solid rgba(255, 255, 255, .16);
  border-radius: calc(18px * var(--k)) calc(18px * var(--k)) calc(6px * var(--k)) calc(6px * var(--k));
  box-shadow: 0 calc(48px * var(--k)) calc(110px * var(--k)) rgba(0, 0, 0, .55);
}
.hdev-laptop .hdev-screen { border-radius: calc(6px * var(--k)); }
.hdev-laptop .hdev-cam {
  position: absolute;
  left: 50%;
  top: calc(5px * var(--k));
  width: calc(6px * var(--k));
  height: calc(6px * var(--k));
  margin-left: calc(-3px * var(--k));
  border-radius: 50%;
  background: #454d61;
}
.hdev-laptop .hdev-base {
  position: relative;
  width: 100%;
  height: calc(15px * var(--k));
  background: linear-gradient(#c3c9d6, #7d8598 55%, #3d4353);
  border-radius: 0 0 calc(10px * var(--k)) calc(10px * var(--k));
  box-shadow: 0 calc(22px * var(--k)) calc(38px * var(--k)) rgba(0, 0, 0, .45);
}
.hdev-laptop .hdev-base::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(132px * var(--k));
  height: calc(6px * var(--k));
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .28);
  border-radius: 0 0 calc(6px * var(--k)) calc(6px * var(--k));
}

/* the still that stands in for the live map once the viewport is too narrow
   for the demo's own desktop breakpoints */
.hdev-still { display: none; width: 100%; height: 100%; object-fit: cover; }

/* ═══ tablet ═══ */

.hdev-tablet { --x: 832; --y: 245; z-index: 3; width: max-content; }
.hdev-tablet .hdev-body {
  padding: calc(14px * var(--k));
  background: linear-gradient(150deg, #333a4d, #151a25 65%);
  border: calc(1px * var(--k)) solid rgba(255, 255, 255, .18);
  border-radius: calc(22px * var(--k));
  box-shadow: 0 calc(34px * var(--k)) calc(70px * var(--k)) rgba(0, 0, 0, .5);
}
.hdev-tablet .hdev-screen { border-radius: calc(10px * var(--k)); }

/* ═══ phone ═══ */

.hdev-phone { --x: 70; --y: 44; z-index: 4; width: max-content; }
.hdev-phone .hdev-body {
  position: relative;
  padding: calc(9px * var(--k));
  background: linear-gradient(150deg, #39415a, #10141d 65%);
  border: calc(1px * var(--k)) solid rgba(255, 255, 255, .2);
  border-radius: calc(38px * var(--k));
  box-shadow: 0 calc(34px * var(--k)) calc(66px * var(--k)) rgba(0, 0, 0, .5);
}
.hdev-phone .hdev-screen { border-radius: calc(30px * var(--k)); }
.hdev-phone .hdev-notch {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: calc(15px * var(--k));
  width: calc(84px * var(--k));
  height: calc(20px * var(--k));
  transform: translateX(-50%);
  background: #0b0e15;
  border-radius: calc(12px * var(--k));
}

/* ═══ responsive: scale the whole composition, never re-flow it ═══ */

@media (max-width: 1440px) { .hero-stage { --k: .92; } }
@media (max-width: 1280px) { .hero-stage { --k: .82; } }
@media (max-width: 1120px) { .hero-stage { --k: .70; } }

/* Below 900px the demo components hit their own mobile breakpoints, which
   would rewrite the laptop/tablet layouts. Drop to laptop-still + phone;
   the pair is re-centred in a narrower canvas (silhouette 36..1204). */
@media (max-width: 899px) {
  .hero-stage { --k: .62; width: calc(1240px * var(--k)); height: calc(660px * var(--k)); }
  .hdev-tablet { display: none; }
  .hdev-laptop { --x: 128; }
  .hdev-phone { --x: 36; }
  .hdev-laptop .hdev-live { display: none; }
  .hdev-laptop .hdev-still { display: block; }
}
@media (max-width: 720px) {
  .hero.hero-full { padding-top: 108px; }
  .hero-stage { --k: .48; }
}
@media (max-width: 520px) {
  .hero-stage { --k: .36; }
}

/* ═══════════════════════════════════════════════════════════════════════
   .hpa — mobile analytics screen (static, authored at 390 x 844)
   Same design language as the guest/operator demos: Albert Sans, white
   cards on #f6f6f4, #1c1c1c type, indigo bars, mint deltas.
   ═══════════════════════════════════════════════════════════════════════ */

.hpa {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f6f6f4;
  font-family: "Albert Sans", system-ui, sans-serif;
  letter-spacing: 0;
  color: #1c1c1c;
  font-size: 14px;
  line-height: 1.35;
}
.hpa * { box-sizing: border-box; }

.hpa-status {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px 4px;
  font-size: 14px;
  font-weight: 700;
}
.hpa-status .hpa-sig { display: inline-flex; gap: 4px; align-items: flex-end; }
.hpa-status .hpa-sig i { display: block; width: 3px; background: #1c1c1c; border-radius: 1px; }
.hpa-status .hpa-sig i:nth-child(1) { height: 5px; }
.hpa-status .hpa-sig i:nth-child(2) { height: 8px; }
.hpa-status .hpa-sig i:nth-child(3) { height: 11px; }
.hpa-status .hpa-sig i:nth-child(4) { height: 14px; }
.hpa-status .hpa-batt { width: 26px; height: 13px; border: 1.6px solid #1c1c1c; border-radius: 4px; position: relative; }
.hpa-status .hpa-batt::before { content: ""; position: absolute; inset: 2px; right: 7px; background: #1c1c1c; border-radius: 1px; }
.hpa-status .hpa-batt::after { content: ""; position: absolute; right: -4px; top: 4px; width: 2px; height: 5px; background: #1c1c1c; border-radius: 0 2px 2px 0; }

.hpa-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 12px;
  background: #f6f6f4;
}
.hpa-head .hpa-logo { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid #ececec; display: grid; place-items: center; flex: none; }
.hpa-head .hpa-logo img { width: 20px; height: 20px; object-fit: contain; }
.hpa-head .hpa-who { flex: 1; min-width: 0; }
.hpa-head .hpa-who small { display: block; font-size: 11.5px; font-weight: 600; color: #6e6e6e; }
.hpa-head .hpa-who strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.hpa-head .hpa-pill { flex: none; height: 32px; padding: 0 13px; border-radius: 999px; background: #1c1c1c; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

.hpa-body { flex: 1; min-height: 0; padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }

.hpa-card { background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.hpa-cardhead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.hpa-cardhead strong { font-size: 14.5px; font-weight: 800; }
.hpa-cardhead span { font-size: 11.5px; font-weight: 600; color: #9b9b9b; }

.hpa-gbv small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9b9b9b; }
.hpa-gbv b { display: block; margin: 4px 0 6px; font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hpa-delta { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e6fbf1; color: #0f7a53; }
.hpa-spark { display: block; width: 100%; height: 72px; margin-top: 12px; overflow: visible; }

.hpa-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hpa-kpi { background: #fff; border-radius: 16px; padding: 12px 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.hpa-kpi small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #9b9b9b; }
.hpa-kpi b { display: block; margin-top: 3px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.hpa-kpi i { font-style: normal; font-size: 11px; font-weight: 700; color: #0f7a53; }
.hpa-kpi i.flat { color: #9b9b9b; }

.hpa-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.hpa-bars li { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 10px; }
.hpa-bars span { font-size: 12.5px; font-weight: 700; color: #4a4a4a; }
.hpa-bars .hpa-track { height: 9px; border-radius: 999px; background: #ececed; overflow: hidden; }
.hpa-bars .hpa-track i { display: block; height: 100%; border-radius: 999px; background: #415ee2; }
.hpa-bars li:nth-child(2) .hpa-track i { background: #6178e8; }
.hpa-bars li:nth-child(3) .hpa-track i { background: #8b9bef; }
.hpa-bars li:nth-child(4) .hpa-track i { background: #b6c0f5; }
.hpa-bars b { font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }

.hpa-hours { display: flex; align-items: flex-end; gap: 5px; height: 58px; }
.hpa-hours i { flex: 1; border-radius: 4px 4px 0 0; background: #d9dcf9; }
.hpa-hours i.on { background: #415ee2; }
.hpa-hourlabels { display: flex; justify-content: space-between; margin-top: 7px; font-size: 10.5px; font-weight: 600; color: #9b9b9b; }

.hpa-tabs {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 8px 22px;
  background: #fff;
  border-top: 1px solid #ececec;
  margin-top: 12px;
}
.hpa-tabs span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: #9b9b9b; }
.hpa-tabs span.on { color: #1c1c1c; }
.hpa-tabs svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.hpa-home { width: 128px; height: 5px; border-radius: 999px; background: #1c1c1c; margin: 0 auto; opacity: .85; }
