/* Scene "extract" · Receipt extraction (US hero, Figma Homepage section 14819:52224). All positions in the 798×854 artboard.
   Scoped under [data-scene="extract"], classes prefixed "ex-". */

/* everything sits in one feed, scaled to 0.85 about the centre by the script */
[data-scene="extract"] .ex-feed { position: absolute; inset: 0; }

/* the white surface: the receipt (472 wide at 163, 157), then the Categorization card (480×460 at 159, 197, blue rim),
   then the receipt icon tile (154 at 322, 350). One morphing box; the contents sit on top of it. */
[data-scene="extract"] .ex-surf { position: absolute; left: 163px; top: 157px; width: 472px; height: 538px; background: #fff;
  border: 0 solid #eaf1fe; border-radius: 15.608px; box-shadow: 0 12px 40px rgba(60, 79, 109, .10); transform-origin: 50% 50%; }

/* ---------------------------------------------------------------- 1 · the receipt (14813:50068) */
[data-scene="extract"] .ex-rcpt { position: absolute; left: 138.5px; top: 96px; width: 521px; padding: 31.935px 31.935px 48.12px;
  display: flex; flex-direction: column; gap: 24.06px; font-weight: 500; font-size: 10.025px; line-height: 1.19; letter-spacing: -0.1px; color: #3c4f6d; }
[data-scene="extract"] .ex-rcpt p { white-space: nowrap; }
[data-scene="extract"] .ex-rcpt__head { display: flex; align-items: flex-start; justify-content: space-between; }
[data-scene="extract"] .ex-rcpt__ttl { display: flex; flex-direction: column; align-items: flex-start; gap: 6.986px; }
[data-scene="extract"] .ex-rcpt__tag { padding: 5.589px 5.988px; border-radius: 38.921px; background: #b9f3a3; font-weight: 600; font-size: 10.92px;
  line-height: 9.084px; letter-spacing: .7644px; text-transform: uppercase; color: rgba(0, 0, 0, .68); }
[data-scene="extract"] .ex-rcpt__name { width: 298.938px; font-weight: 600; font-size: 35.927px; line-height: 1.1; letter-spacing: 0; color: #041818;
  white-space: normal !important; }
[data-scene="extract"] .ex-rcpt__logo { width: 41.493px; height: 42.065px; flex: none; }
[data-scene="extract"] .ex-rcpt__meta { display: flex; justify-content: space-between; height: 43.91px; font-weight: 600; }
[data-scene="extract"] .ex-rcpt__col { display: flex; flex-direction: column; gap: 4.01px; }
[data-scene="extract"] .ex-rcpt__col--end { align-items: flex-end; justify-content: space-between; }
[data-scene="extract"] .ex-bar { height: 9.203px; border-radius: 2.301px; background: #cadffe; flex: none; }
[data-scene="extract"] .ex-bar--big { height: 25.276px; border-radius: 6.268px; }
[data-scene="extract"] .ex-rcpt__items { display: flex; flex-direction: column; gap: 34.085px; }
[data-scene="extract"] .ex-rcpt__grp { display: flex; flex-direction: column; gap: 8.02px; }
[data-scene="extract"] .ex-rcpt__grp--wide { gap: 20.05px; }
[data-scene="extract"] .ex-rcpt__row { display: flex; align-items: flex-start; justify-content: space-between; }
[data-scene="extract"] .ex-rcpt__rule { height: 0.8px; background: #c9cfd6; }
[data-scene="extract"] .ex-rcpt__rule--dark { background: #3c4f6d; }
[data-scene="extract"] .ex-rcpt__sec { color: #041818; opacity: .8; }
[data-scene="extract"] .ex-rcpt__sec--dim { opacity: .5; }
[data-scene="extract"] .ex-rcpt__gap { height: 51.15px; }
[data-scene="extract"] .ex-rcpt__tot { font-weight: 600; color: #041818; }
[data-scene="extract"] .ex-rcpt__due { display: flex; flex-direction: column; align-items: flex-end; gap: 10.11px; }

/* the scan: a blue line (wider than the receipt) with a soft band of light trailing above it, inside the receipt */
[data-scene="extract"] .ex-scan { position: absolute; left: 97.5px; top: 0; width: 603px; height: 0; z-index: 3; }
[data-scene="extract"] .ex-scan__band { position: absolute; left: 41px; bottom: 0; width: 521px; height: 80px;
  background: linear-gradient(to bottom, rgba(110, 190, 254, 0), rgba(110, 190, 254, .22)); }
[data-scene="extract"] .ex-scan__line { position: absolute; left: 0; top: -1.5px; width: 100%; height: 3px; border-radius: 2px; background: #1a6ff0;
  box-shadow: 0 0 12px rgba(26, 111, 240, .55); }

/* ---------------------------------------------------------------- the AI chips (Figma "text": sparkle + value), in blue 50,
   a little lighter than Figma's blue 100 (#d8e6fe) */
[data-scene="extract"] .ex-chip { position: absolute; display: flex; align-items: center; gap: 17.245px; padding: 19.708px 29.563px;
  background: #fff; box-shadow: 0 6px 24px rgba(32, 49, 71, .12), 0 1px 3px rgba(32, 49, 71, .06); border-radius: 22.018px; font-size: 32px; line-height: 38.873px; letter-spacing: -0.16px; color: #143230;
  white-space: nowrap; z-index: 4; transform-origin: 50% 50%; will-change: transform, opacity, filter; }
[data-scene="extract"] .ex-chip img { width: 36px; height: 36px; flex: none; }
[data-scene="extract"] .ex-chip--sm { gap: 13.22px; padding: 15.108px 22.663px; border-radius: 16.879px; font-size: 24.531px; line-height: 29.8px; letter-spacing: -0.1227px; }
[data-scene="extract"] .ex-chip--sm img { width: 27.597px; height: 27.597px; }

/* ---------------------------------------------------------------- 2 · the Categorization card (14813:50799), 480×460 at (159, 197) */
[data-scene="extract"] .ex-cat { position: absolute; left: 159px; top: 197px; width: 480px; height: 460px;
  padding: 50.48px 52.78px 49.72px 50.48px; display: flex; flex-direction: column; gap: 30.595px; }
[data-scene="extract"] .ex-cat__title { font-size: 30.595px; line-height: 29.717px; color: #006bdd; white-space: nowrap; }
[data-scene="extract"] .ex-field { display: flex; flex-direction: column; gap: 18.357px; }
[data-scene="extract"] .ex-field__txt { display: flex; flex-direction: column; gap: 11.597px; }
[data-scene="extract"] .ex-field__lab { display: flex; align-items: center; gap: 9.178px; font-size: 19.886px; line-height: 29.717px; color: #9ca3af; white-space: nowrap; }
[data-scene="extract"] .ex-field__ai { width: 19.886px; height: 19.886px; flex: none; }
[data-scene="extract"] .ex-field__val { font-weight: 500; font-size: 26.144px; line-height: 29.717px; color: #000; white-space: nowrap; height: 29.717px; }
[data-scene="extract"] .ex-field__div { height: 0.69px; background: rgba(227, 222, 213, .8); transform-origin: 0 50%; }
[data-scene="extract"] .ex-field:last-child .ex-field__div { display: none; }

/* ---------------------------------------------------------------- 3 · the receipt icon (14813:51133): 154 tile, invoice icon 96.9 */
[data-scene="extract"] .ex-inv { position: absolute; left: 340.88px; top: 369.32px; width: 116.28px; height: 116.28px;   /* ×1.2 about its centre */ z-index: 2; }

/* ---- the agent's task list shared by the US steps (scenes/progress.css in the kit) ---- */
/* The agent's task list shared by steps 2–5 (scenes/progress.js). Laid out in reconcile's coordinates and scaled the
   same way (0.85 about 50% 45%), so the frame is identical in every step. Classes prefixed "pg-". */
.ls-scene .pg-wrap { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.ls-scene .pg { position: absolute; left: 0; top: 0; width: 798px; height: 854px; transform: scale(.85); transform-origin: 50% 45%; }

/* the agent: tile 110 at (60, 65) with the AI star; "Agent is …" beside it */
.ls-scene .pg-tile { position: absolute; left: 60px; top: 65px; width: 110px; height: 110px; border-radius: 23px; background: #fff;
  display: flex; align-items: center; justify-content: center; z-index: 2; }
.ls-scene .pg-tile .ls-spark { width: 72px; height: 72px; }   /* the brand mark as is (never mirrored): it rests as the logo and turns right */
.ls-scene .pg-label { position: absolute; left: 196px; top: 98px; margin: 0; font-weight: 500; font-size: 36px; line-height: 1.22;
  color: #203147; white-space: nowrap; }

/* the line down from the agent (x 115), fading out at the bottom */
.ls-scene .pg-rail { position: absolute; left: 113.5px; top: 175px; width: 3px; height: 600px; border-radius: 2px; transform-origin: 50% 0;
  background: linear-gradient(#6ebefe 0%, #6ebefe 86%, rgba(110, 190, 254, 0) 100%); }

/* a task: its mark on the line (a dot while on it, a check when done; a white disc keeps the line from showing through a
   faded check) and its words in a white box beside it */
.ls-scene .pg-rows { position: absolute; inset: 0; }
.ls-scene .pg-row { position: absolute; inset: 0; }
.ls-scene .pg-disc, .ls-scene .pg-dot, .ls-scene .pg-chk { position: absolute; left: 100px; width: 30px; height: 30px; }
.ls-scene .pg-disc { border-radius: 50%; background: #fff; }
.ls-scene .pg-box { position: absolute; left: 160px; margin: 0; font-weight: 400; font-size: 26px; line-height: 1.2; letter-spacing: -.26px;
  color: #072928; white-space: nowrap; background: #fff; border-radius: 14px; padding: 14px 22px;
  box-shadow: 0 10px 30px rgba(32, 49, 71, .06); transform-origin: 0 50%; }
