/* All geometry is in DISPLAY pixels on a 792x1080 stage.
   The source recording is anamorphic (1056x1080, SAR 3:4), so every horizontal
   measurement taken from the video was multiplied by 0.75 to get these values. */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: block;
}

:root {
  --card: #fefefe;
  --ink: #111;
  --muted: #6b6b70;
  --line: #e5e5e5;
  --sans: 'Inter', Arial, sans-serif;
}

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

/* The document is wider than the stage by OVERHANG (600px) on each side, so a
   card sliding in or out is drawn in full instead of being cut at the stage
   edge. Cards travel TRAVEL = 702px from left 103.5 with a width of 585, which
   reaches 598.5px past either edge; 600 covers it. The page places the stage
   over the hero column and simply lets the overhang show. */
html, body {
  width: 1992px;
  height: 1080px;
  overflow: hidden;
  background: transparent;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

#stage {
  position: relative;
  width: 792px;
  height: 1080px;
  margin: 0 auto;
  /* visible, not hidden: the overhang above is the only horizontal bound. */
  overflow: visible;
  isolation: isolate;
}

/* The animation has no backdrop; the landing page supplies the surface. */
#bg { position: absolute; inset: 0; background: transparent; }

/* --- cards ------------------------------------------------------------- */
.card {
  position: absolute;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  overflow: hidden;
  will-change: transform;
}
.card > * { position: absolute; }

.h1 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: #0a0a0a; white-space: nowrap; }
.body { font-size: 21px; font-weight: 400; color: #131313; white-space: pre; }
.sub { font-size: 17px; color: var(--muted); white-space: nowrap; }

/* --- data-source rows --------------------------------------------------- */
.row {
  display: flex; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,.045);
  background: #fdfdfd; border: 1px solid #e2e2e2; border-radius: 16px;
}

/* The right-hand visual of a row, vertically centred. See visuals.js. */
.visual { position: absolute; right: 23.25px; top: 0; bottom: 0; display: flex; align-items: center; }

/* clients: overlapping faces. The ring is the row's own fill, so each face reads
   as cut out of the one beneath it. */
.avatars { position: relative; width: 200px; height: 40px; }
.avatar {
  position: absolute; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: #fdfdfd; display: flex; align-items: center; justify-content: center;
}
.avatar img { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
/* a hairline on the photo edge, so a white-backdrop portrait doesn't dissolve into the row */
.avatar::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.avatar.more {
  width: 50px; border-radius: 999px; background: #f0f0f2; border: 2px solid #fdfdfd;
  font-size: 13px; font-weight: 500; color: #6b6b70; line-height: 16px;
}
.avatar.more::after { display: none; }

/* bookings: a rising line and its delta */
.trend { position: relative; width: 144px; height: 40px; }
.trend svg { display: block; }
.delta {
  position: absolute; left: 100px; top: 12px; width: 44px; text-align: right;
  font-size: 14px; font-weight: 700; letter-spacing: -.01em; line-height: 16px; color: #1f7a3d; white-space: nowrap;
}

/* payments: card networks, a wallet and Stripe, each in a small badge */
.methods { display: flex; align-items: center; gap: 6px; }
.method {
  flex-shrink: 0; height: 30px; display: flex; align-items: center; justify-content: center; gap: 2px;
  background: #fff; border: 1px solid #e4e4e4; border-radius: 8px;
}
.method svg { display: block; }
.paylabel {
  font: 600 14px/16px var(--sans);
  letter-spacing: -.01em; color: #000;
}

/* marketing: the channels a studio reaches people through */
.channels { display: flex; gap: 6px; }
.tile {
  flex-shrink: 0; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e4e4e4; border-radius: 10px;
}
.tile svg { display: block; }

/* --- automation story (flow.js) ----------------------------------------- */
.dot { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #22b84d; }

/* the rule: a "when" step and a "then" step, joined by a dotted link */
.step {
  background: #fdfdfd; border: 1px solid #e2e2e2; border-radius: 16px; box-shadow: 0 2px 5px rgba(0,0,0,.045);
}
.stile {
  position: absolute; left: 16px; top: 15px; width: 52px; height: 52px; border: 1px solid #e5e5e5; border-radius: 12px;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.stile svg { display: block; }
.slabel { position: absolute; left: 84px; top: 14px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8f; line-height: 18px; }
.stext { position: absolute; left: 84px; top: 36px; font-size: 21px; font-weight: 500; color: #171717; line-height: 26px; white-space: nowrap; }
.link { width: 2px; background-image: linear-gradient(#c8c8cd 3px, transparent 3px); background-size: 2px 6px; }
.note { display: flex; align-items: center; gap: 10px; font-size: 17px; color: #6b6b70; white-space: nowrap; }

/* the client list */
.live {
  display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px; border-radius: 999px;
  background: #e8f6ec; color: #1f7a3d; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.client {
  display: flex; align-items: center; background: #fdfdfd; border: 1px solid #e2e2e2; border-radius: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,.045);
}
.cface { flex-shrink: 0; width: 48px; height: 48px; margin-left: 14px; border-radius: 50%; object-fit: cover; }
.ctext { margin-left: 16px; }
.cname { font-size: 21px; font-weight: 500; letter-spacing: .01em; color: #171717; line-height: 26px; white-space: nowrap; }
.cwrap { position: relative; height: 20px; margin-top: 3px; }
.clast { position: absolute; left: 0; top: 0; font-size: 16px; color: #6b6b70; line-height: 20px; white-space: nowrap; }
.spill {
  position: absolute; right: 18px; top: 19px; height: 34px; padding: 0 14px; border-radius: 999px;
  display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.spill svg { display: block; }
.spill.on { background: #e8f6ec; color: #1f7a3d; }
.spill.off { background: #efeff1; color: #55555a; }
.spill.q { background: #08080a; color: #fff; }
.addbtn {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  background: #fcfcfc; border: 1px solid #e4e4e4; border-radius: 13px;
  font-size: 21px; font-weight: 500; color: #000;
}

/* --- procedures --------------------------------------------------------- */
.proc { display: flex; align-items: center; }
.itile {
  width: 59px; height: 60px; border: 1px solid #e5e5e5; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.plabel { font-size: 22px; color: #171717; margin-left: 19px; letter-spacing: -.019em; white-space: nowrap; }
.track { position: absolute; right: 0; width: 54px; height: 31px; border-radius: 16px; background: #bfbfbf; }
.knob { position: absolute; top: 3.5px; left: 4.5px; width: 23px; height: 24px; border-radius: 12px; background: #fff; }

/* --- chat --------------------------------------------------------------- */
.bubble {
  background: #f4f4f4; border-radius: 24px; font-size: 21px; color: #0d0d0d;
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
}
.composer {
  border: 1.5px solid #f2f2f2; border-radius: 999px; background: #fdfdfd;
  display: flex; align-items: center;
}
.ph { font-size: 21px; color: #9d9d9e; white-space: pre; }
.sendbtn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 48px; height: 50px; border-radius: 999px; background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
}
.agent { display: flex; align-items: center; gap: 10px; font-size: 19px; color: #777778; }
.okcard { border: 1.5px solid #f3f3f3; border-radius: 27px; background: #fdfdfd; }

/* --- status pill -------------------------------------------------------- */
.pill {
  position: absolute; background: #08080a; border-radius: 999px;
  display: flex; align-items: center; overflow: hidden; white-space: nowrap;
}
.pilltext {
  font-size: 24px; font-weight: 600;
  /* shimmer: a dim band sweeps the glyphs left to right while the agent works.
     The gradient is clipped to the text and slid by paintPill(), so it stays a
     pure function of t like everything else. */
  background-image: linear-gradient(90deg, #fff 0 44%, rgba(255,255,255,.45) 50%, #fff 56% 100%);
  background-size: 233% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.badge { width: 72px; height: 72px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#connector { position: absolute; width: 2px; background-image: linear-gradient(rgba(255,255,255,.85) 3px, transparent 3px); background-size: 2px 6px; }

/* --- picker ------------------------------------------------------------- */
.picker { border: 1px solid #f5f5f5; border-radius: 24px; background: #fff; }
.daychip, .timechip {
  position: absolute; border: 1px solid #e5e5e5; border-radius: 14px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.daynum { font-size: 26px; font-weight: 600; color: #111; }
.dayname { font-size: 20px; color: #585858; margin-top: 4px; }
.timechip { font-size: 22px; font-weight: 500; color: #111; }

/* --- integrations ------------------------------------------------------- */
.ltile {
  position: absolute; width: 72px; height: 72px; border: 1px solid #e7e7e7; border-radius: 10px;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.ltile svg { display: block; }

/* --- cursor ------------------------------------------------------------- */
#cursor { position: absolute; left: -5px; top: -5px; z-index: 50; transform-origin: 0 0; will-change: transform; }
