/* =============================================================================
   sbc-follow-up-scenes.css

   What this file does:
   Lays out the AI follow-ups page's scenes and draws the pieces they add to the shared scene kit:
   the week strip (five day columns of workflow steps that go planned, active, sent or stopped, a
   footer for labelled time skips and the "stopped" stub), the CRM contact list that gets ticked and
   tagged for a win-back workflow, the win-back text card, and the three still channel plates (a
   workflow text, an email, an AI call).

   Context of where it's used in the repo:
   Linked from templates/ai-follow-ups-LP.html after static/css/sbc-front-desk.css, whose tokens
   (--fd-*) and pieces (phone, banners, thread, bubbles, call screen, chips, stub, pill) these scenes
   reuse. Markup: templates/includes/follow_up_scene_macros.html. Player:
   static/js/sbc-front-desk-scenes.js. Brand rules: SBC-all-services/brand/README.md and motion.md.

   What it calls:
   Nothing.

   What calls it:
   The <link rel="stylesheet"> in ai-follow-ups-LP.html.
   ============================================================================= */

/* The stage: evergreen with the faint dot grid, as on the other pages' hero stages */
.fu-scene--week .fd-fit,
.fu-scene--reactivation .fd-fit{background-color:var(--fd-forest);background-image:radial-gradient(var(--fd-stage-dot) 1px,transparent 1.5px);background-size:18px 18px;border-radius:16px}

/* =============================================================================
   Hero: a lead's week (1120 x 560; tablets 720 x 600; phones 360 x 620)
   ============================================================================= */
/* The figure matches the stage, so the play button sits on the stage's corner */
.fu-hero-stage{max-width:1120px;margin-inline:auto}
.fu-scene--week{--fd-w:1120;--fd-h:520}
.fu-week-cam{left:28px;top:28px;width:812px;height:420px}
.fu-week-phone{left:872px;top:52px;width:210px}
.fu-scene--week .fd-pill-row{top:468px}
/* The phone's call screens sit above the text thread they interrupt */
.fu-week-phone .fd-incoming{z-index:9}
.fu-week-phone .fd-call.is-solid{z-index:10}
/* The finished frame (reduced motion, no JavaScript) ends on the thread: the call screen is gone,
   including its chip, which the shared kit otherwise forces visible in the poster */
html:not(.fd-motion) .fu-scene--week:not(.is-live) .fd-call{display:none}

.fu-week{width:100%;height:100%;display:flex;flex-direction:column;background:var(--fd-white);color:var(--fd-ink);border-radius:14px;overflow:hidden;box-shadow:var(--fd-shadow-device)}
.fu-week-head{display:flex;align-items:center;gap:14px;padding:13px 18px;border-bottom:1px solid var(--fd-line);flex:none}
.fu-lead{display:flex;align-items:center;gap:10px;min-width:0}
.fu-lead b{display:block;font:600 13.5px/1.2 var(--sans)}
.fu-lead div span{display:block;font-size:11.5px;color:var(--fd-muted)}
.fu-workflow-name{margin-left:auto;display:grid;justify-items:end;gap:4px;text-align:right}
.fu-workflow-name b{font:600 12px/1.2 var(--sans);color:var(--fd-soft)}
.fu-flag{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;background:var(--fd-ok-soft);color:var(--fd-ok-ink);font:600 10.5px/1 var(--sans)}
.fu-flag i{width:6px;height:6px;border-radius:50%;background:var(--fd-ok)}

/* Five day columns; the day being played gets a quiet wash and an evergreen rule */
.fu-days{flex:1;min-height:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.fu-day{display:flex;flex-direction:column;gap:8px;padding:10px 10px 12px;border-right:1px dashed var(--fd-line-strong);transition:background-color .35s ease}
.fu-day:last-child{border-right:0}
.fu-day.is-active{background:rgba(31,61,51,.045)}
.fu-day-head{display:flex;align-items:baseline;justify-content:space-between;gap:6px;padding:2px 2px 8px;border-bottom:2px solid var(--fd-line);transition:border-color .35s ease}
.fu-day-head b{font:600 13px/1 var(--sans)}
.fu-day-head span{font:500 10.5px/1 var(--mono,monospace);color:var(--fd-muted)}
.fu-day.is-active .fu-day-head{border-bottom-color:var(--fd-forest)}

/* A step card: planned (dashed), active (outlined), sent (evergreen), a result (green), stopped (grey) */
.fu-step{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:1px 8px;align-items:center;padding:8px 9px;border-radius:8px;border:1.5px dashed var(--fd-line-strong);background:var(--fd-white);color:var(--fd-muted);font:400 10.5px/1.3 var(--sans);transition:background-color .25s ease,border-color .25s ease,color .25s ease,box-shadow .25s ease,opacity .25s ease}
.fu-step-icon{grid-row:span 3;align-self:start;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--fd-sand);color:var(--fd-forest)}
.fu-step-icon svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fu-step b{font:600 11.5px/1.25 var(--sans);color:var(--fd-ink)}
.fu-step time{font:500 10.5px/1.2 var(--mono,monospace);font-variant-numeric:tabular-nums}
.fu-step-note{font-size:10.5px;line-height:1.3}
.fu-step-stop{display:none}
.fu-step.is-active{border-style:solid;border-color:var(--fd-forest);color:var(--fd-soft);box-shadow:0 0 0 4px rgba(31,61,51,.10)}
.fu-step.is-done{border:1.5px solid var(--fd-forest);background:var(--fd-forest);color:rgba(247,244,238,.74)}
.fu-step.is-done b{color:var(--fd-ivory)}
.fu-step.is-done .fu-step-icon{background:rgba(247,244,238,.14);color:var(--fd-ivory)}
.fu-step.is-trigger{border:1.5px solid var(--fd-line);background:var(--fd-linen);color:var(--fd-soft)}
.fu-step.is-trigger .fu-step-icon{background:var(--fd-white)}
.fu-step.is-result{border:1.5px solid transparent;background:var(--fd-ok-soft);color:var(--fd-ok-ink)}
.fu-step.is-result b{color:var(--fd-ok-ink)}
.fu-step.is-result .fu-step-icon{background:var(--fd-white);color:var(--fd-ok-ink)}
.fu-step.is-stopped{background:var(--fd-sand);border-color:var(--fd-line-strong);color:#9A958B;box-shadow:none}
.fu-step.is-stopped b{color:#9A958B;text-decoration:line-through;text-decoration-thickness:1.5px}
.fu-step.is-stopped .fu-step-icon{background:var(--fd-line);color:#9A958B}
.fu-step.is-stopped .fu-step-note{display:none}
.fu-step.is-stopped .fu-step-stop{display:block;font:600 10.5px/1.3 var(--sans);color:var(--fd-soft)}

/* The footer: one labelled time skip at a time, then the "stopped" stub */
.fu-week-foot{position:relative;flex:none;height:68px;border-top:1px solid var(--fd-line);background:var(--fd-screen)}
.fu-skip{position:absolute;left:18px;right:18px;top:13px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px 10px;align-items:center;font:600 12.5px/1.25 var(--sans);color:var(--fd-soft)}
.fu-skip svg{width:15px;height:15px;fill:none;stroke:var(--fd-forest);stroke-width:1.7;stroke-linecap:round}
.fu-skip time{font:500 11px/1 var(--mono,monospace);color:var(--fd-muted);font-variant-numeric:tabular-nums}
.fu-skip .fd-wait-bar{grid-column:1 / -1;height:4px}
.fu-stopped{position:absolute;left:18px;top:9px;filter:drop-shadow(0 8px 14px rgba(34,34,34,.14))}
.fu-stopped .fd-stub{background:var(--fd-linen)}

/* =============================================================================
   Database reactivation: the CRM list and a win-back text (560 x 520; phones 360 x 620)
   ============================================================================= */
.fu-reactivation-stage{max-width:560px;margin-inline:auto}
.fu-scene--reactivation{--fd-w:560;--fd-h:520}
.fu-contacts-cam{left:24px;top:28px;width:318px;height:428px}
.fu-winback-cam{left:358px;top:64px;width:178px}
.fu-scene--reactivation .fd-pill-row{top:470px}

.fu-contacts{width:100%;height:100%;display:flex;flex-direction:column;background:var(--fd-white);color:var(--fd-ink);border-radius:12px;overflow:hidden;box-shadow:var(--fd-shadow-device)}
.fu-contacts-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--fd-line);flex:none}
.fu-contacts-head b{font:600 14px/1.2 var(--sans)}
.fu-selected{font-size:11.5px;color:var(--fd-muted);font-variant-numeric:tabular-nums}
.fu-add-tag{margin-left:auto;display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--fd-line-strong);border-radius:8px;font:600 11.5px/1 var(--sans);color:var(--fd-ink);background:var(--fd-white)}
.fu-add-tag svg{width:11px;height:11px;fill:none;stroke:var(--fd-forest);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fu-contact-list{list-style:none;margin:0;padding:0 14px;display:grid;flex:1;align-content:start}
.fu-contact-row{display:grid;grid-template-columns:16px 28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px dashed var(--fd-line-strong)}
.fu-contact-row:last-child{border-bottom:0}
.fu-check{width:16px;height:16px;border-radius:4px;border:1.5px solid var(--fd-line-strong);display:grid;place-items:center;color:transparent;transition:background-color .18s ease,border-color .18s ease}
.fu-check svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.fu-contact-row.is-checked .fu-check{background:var(--fd-forest);border-color:var(--fd-forest);color:var(--fd-ivory)}
.fu-contact-name{min-width:0}
.fu-contact-name b{display:block;font:600 12.5px/1.2 var(--sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fu-contact-name span{display:block;font-size:11px;color:var(--fd-muted);white-space:nowrap}
.fu-contact-end{display:grid;justify-items:end;gap:4px}
.fu-tag{display:inline-block;padding:3px 8px;border-radius:999px;background:var(--fd-sand);border:1px solid var(--fd-line-strong);font:600 10px/1.2 var(--sans);color:var(--fd-soft)}
.fu-contact-end .fd-result{font-size:10.5px;padding:3px 8px 3px 6px}
.fu-contact-end .fd-chip-icon,.fu-contact-end .fd-chip-icon svg{width:12px;height:12px}
.fu-replied{background:var(--fd-forest);color:var(--fd-ivory);padding:3px 9px}
/* The texted chip and the replied chip share one spot */
.fu-contact-end{grid-template-areas:"tag" "status"}
.fu-contact-end .fu-tag{grid-area:tag}
.fu-contact-end .fd-result{grid-area:status}

.fu-winback-cam .fd-column-label{margin-bottom:8px}
.fu-winback-thread{background:var(--fd-screen);color:var(--fd-screen-ink);border-radius:14px;overflow:hidden;box-shadow:var(--fd-shadow-device)}
.fu-winback-thread .fd-thread-head{padding:10px 11px}
.fu-winback-body{display:flex;flex-direction:column;gap:6px;padding:9px 9px 12px}
.fu-winback-body .fd-bubble{font-size:11.5px;max-width:94%}
.fu-winback-body .fd-note{align-self:flex-start;margin:4px 0 0;line-height:1.3}

/* =============================================================================
   Channel plates: still pieces on an evergreen plate (text, email, AI call)
   ============================================================================= */
.fu-plate{position:relative;height:250px;padding:20px;border-radius:16px;display:grid;place-items:center;overflow:hidden;background-color:var(--fd-forest);background-image:radial-gradient(var(--fd-stage-dot) 1px,transparent 1.5px);background-size:16px 16px;font-family:var(--sans);line-height:1.4}
.fu-plate *{box-sizing:border-box}
.fu-plate-thread{width:min(270px,100%);background:var(--fd-screen);color:var(--fd-screen-ink);border-radius:14px;overflow:hidden;box-shadow:var(--fd-shadow-device)}
.fu-plate-thread-body{display:flex;flex-direction:column;gap:6px;padding:10px 10px 12px}
.fu-plate-thread .fd-bubble{font-size:11.5px}
.fu-plate-mail{width:min(280px,100%);box-shadow:var(--fd-shadow-device)}
.fu-plate-mail .fd-mail-title{font-size:13px}
.fu-plate-mail p{font-size:12px}
.fu-plate-call{width:min(250px,100%);display:grid;gap:10px;padding:16px;border-radius:18px;background:linear-gradient(180deg,var(--fd-call-1),var(--fd-call-2));color:var(--fd-call-ink);box-shadow:var(--fd-shadow-device);border:1px solid rgba(247,244,238,.12)}
.fu-plate-call-top{display:flex;align-items:center;gap:10px}
.fu-plate-call-top .fd-avatar{width:36px;height:36px;font-size:12px}
.fu-plate-call-top b{display:block;font:600 13px/1.2 var(--sans)}
.fu-plate-call-top div span{display:block;font-size:11px;color:var(--fd-call-muted);font-variant-numeric:tabular-nums}
.fu-plate-call .fd-cap{font-size:12px}
.fu-plate-call .fd-call-chip{justify-self:start}

/* =============================================================================
   Tablets: the strip narrows to five slim columns beside the phone
   ============================================================================= */
@media (max-width:1023px){
  .fu-hero-stage{max-width:720px}
  .fu-scene--week{--fd-w:720;--fd-h:550}
  .fu-week-cam{left:20px;top:64px;width:460px;height:418px}
  .fu-week-phone{left:496px;top:64px;width:204px}
  .fu-scene--week .fd-pill-row{top:500px}
  .fu-workflow-name b{display:none}
  .fu-week-head{padding:11px 12px}
  .fu-day{padding:8px 5px 10px;gap:6px}
  .fu-day-head{flex-direction:column;gap:3px;align-items:flex-start}
  .fu-step{grid-template-columns:minmax(0,1fr);padding:6px 6px;gap:3px}
  .fu-step-icon{grid-row:auto;width:20px;height:20px}
  .fu-step-icon svg{width:10px;height:10px}
  .fu-step b{font-size:10.5px}
  .fu-step time{font-size:9.5px}
  .fu-step-note{display:none}
  .fu-step.is-stopped .fu-step-stop{font-size:9.5px}
  .fu-skip{left:12px;right:12px;font-size:11.5px}
  .fu-stopped{left:12px;right:12px}
  .fu-stopped .fd-stub{padding:9px 12px}
  .fu-stopped .fd-stub b{font-size:12px}
  .fu-stopped .fd-stub span{font-size:11px}
}

/* =============================================================================
   Phones: the week becomes a rail of days down the left, the phone on the right;
   both start below the play button's strip
   ============================================================================= */
@media (max-width:640px){
  .fu-scene--week{--fd-w:360;--fd-h:650}
  .fu-week-cam{left:10px;top:56px;width:132px;height:528px}
  .fu-week-phone{left:150px;top:56px;width:200px}
  .fu-scene--week .fd-pill-row{top:598px}
  .fu-week-head{display:none}
  /* Phones: the figure keeps to the stage's width (no bleed), so the play button stays on the stage */
  .fu-hero-stage,.fu-reactivation-stage{margin-inline:auto;width:100%;max-width:360px}
  .fu-days{flex:none;grid-template-columns:minmax(0,1fr);grid-auto-rows:min-content;align-content:start}
  .fu-day{flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px;padding:7px 7px 8px;border-right:0;border-bottom:1px dashed var(--fd-line-strong)}
  .fu-day-head{flex-direction:row;width:100%;padding:0 0 4px;border-bottom-width:1.5px;align-items:baseline}
  .fu-day-head b{font-size:11.5px}
  .fu-day-head span{font-size:9.5px}
  .fu-step{grid-template-columns:18px auto;align-items:center;padding:4px 6px 4px 4px;gap:0 5px;border-radius:999px}
  .fu-step-icon{grid-row:auto;width:18px;height:18px}
  .fu-step-icon svg{width:9px;height:9px}
  .fu-step b,.fu-step-note,.fu-step.is-stopped .fu-step-stop{display:none}
  .fu-step time{font-size:9.5px}
  .fu-step.is-stopped time{text-decoration:line-through}
  .fu-week-foot{height:auto;flex:1;min-height:92px}
  .fu-skip{left:9px;right:9px;top:12px;grid-template-columns:auto minmax(0,1fr);font-size:11px;gap:7px 7px}
  .fu-skip time{display:none}
  .fu-stopped{left:7px;right:7px;top:10px}
  .fu-stopped .fd-stub{grid-template-columns:minmax(0,1fr);padding:9px 12px;--fd-notch:6px}
  .fu-stopped .fd-stub time{grid-row:auto;border-right:0;padding:0;place-items:start;font-size:10.5px}
  .fu-stopped .fd-stub b{font-size:11.5px}
  .fu-stopped .fd-stub span{display:none}

  .fu-scene--reactivation{--fd-w:360;--fd-h:696}
  .fu-contacts-cam{left:12px;top:56px;width:336px;height:404px}
  .fu-contact-row{padding:7px 0}
  .fu-winback-cam{left:12px;top:472px;width:336px}
  .fu-winback-cam .fd-column-label{display:none}
  .fu-winback-thread .fd-thread-head{display:none}
  .fu-scene--reactivation .fd-pill-row{top:648px}
}
