/* 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: 'InterFallback';
  src: url('fonts/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: block;
}

:root {
  --card: #fefefe;
  --ink: #111;
  --muted: #6b6b70;
  --line: #e5e5e5;
  --sans: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, 'InterFallback', 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;
}
.chip {
  display: flex; align-items: center; gap: 9px;
  background: #f9f9f9; border: 1px solid #e4e4e4; border-radius: 8px;
  font-size: 16px; color: #6e6e71; height: 30px; padding: 0 13px;
}
.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; }
