/* ============================================================
   CooBase LP — character illustration integration
   ============================================================ */

/* ---------- HERO: people at the base of the dashboard (in front, clearly visible) ---------- */
.hero-visual{padding-bottom:40px;}
.hero-people{position:absolute;left:0;right:0;bottom:0;top:0;pointer-events:none;z-index:4;}
.hero-people img{position:absolute;bottom:-30px;width:clamp(132px,13.5vw,182px);height:auto;filter:drop-shadow(0 18px 26px rgba(24,52,120,.22));}
.hero-people .hp-l{left:-40px;}
.hero-people .hp-r{right:-30px;width:clamp(124px,12.5vw,168px);}
.hero-visual .win{position:relative;z-index:2;}
.hero-visual .float-card{z-index:5;}

/* ---------- HERO intro moment → dashboard transition ---------- */
.hero-visual .win,
.hero-people img,
.hero-visual .float-card{
  transition:opacity .85s ease, transform .85s cubic-bezier(.2,.8,.2,1);
}
.hero-visual.intro-mode .win{opacity:0;transform:translateY(20px) scale(.96);}
.hero-visual.intro-mode .hero-people img{opacity:0;transform:translateY(24px);}
.hero-visual.intro-mode .float-card{opacity:0;transform:translateY(14px) scale(.95);}
/* stagger the solution elements in as the intro leaves */
.hero-visual .float-alert{transition-delay:.15s;}
.hero-visual .float-skill{transition-delay:.28s;}
.hero-visual .hp-l{transition-delay:.1s;}
.hero-visual .hp-r{transition-delay:.2s;}

.hero-intro{
  position:absolute;left:0;right:0;bottom:0;top:0;z-index:8;
  display:flex;align-items:flex-end;justify-content:center;
  background:none;border:none;box-shadow:none;overflow:visible;
  opacity:0;pointer-events:none;
  transition:opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
.hero-visual.intro-mode .hero-intro{opacity:1;transform:none;}
/* when intro leaves: fade + slight zoom */
.hero-intro{transform:scale(1.02);}
.hero-visual.intro-mode .hero-intro{transform:scale(1);}
.hero-intro .hi-art{
  height:138%;width:auto;max-width:none;object-fit:contain;
  filter:drop-shadow(0 26px 40px rgba(24,52,120,.26));
  align-self:flex-end;margin-bottom:-2%;
}
.hero-visual.intro-mode .hi-art{animation:introBreathe 3.6s cubic-bezier(.2,.8,.2,1) 1;}
@keyframes introBreathe{0%{transform:translateY(18px) scale(.97);}100%{transform:none;}}
.hero-intro .hi-cap{
  position:absolute;left:50%;bottom:8px;transform:translateX(-50%);z-index:2;
  display:inline-flex;align-items:center;gap:9px;justify-content:center;white-space:nowrap;
  font-family:"Zen Kaku Gothic New";font-weight:900;font-size:15px;color:var(--ink);
  text-shadow:0 2px 10px rgba(255,255,255,.9),0 1px 2px rgba(255,255,255,1);
}
.hero-intro .hi-cap .hi-dot{width:10px;height:10px;border-radius:50%;background:var(--alert);box-shadow:0 0 0 4px rgba(224,80,107,.18);flex:none;animation:introPulse 1.1s ease-in-out infinite;}
@keyframes introPulse{0%,100%{opacity:1;}50%{opacity:.4;}}
@media(prefers-reduced-motion:reduce){
  .hero-intro{display:none;}
}

/* ---------- PROBLEM cards: character ---------- */
.prob-card{padding-top:28px;}
.prob-figure{
  height:118px;margin:-4px -8px 8px;display:flex;align-items:flex-end;justify-content:center;
  position:relative;
}
.prob-figure::before{
  content:"";position:absolute;left:50%;bottom:6px;transform:translateX(-50%);
  width:130px;height:64px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(37,99,217,.12),transparent);
}
.prob-figure img{height:128px;width:auto;position:relative;filter:drop-shadow(0 10px 16px rgba(24,52,120,.14));}
.prob-card .n{position:absolute;top:20px;left:30px;}

/* ---------- REFRAME: light supportive band with people ---------- */
#reframe.people-band{
  background:linear-gradient(180deg,#eaf3ff 0%, #e3f0ff 100%);
  color:var(--ink);
}
#reframe.people-band::before,#reframe.people-band::after{background:rgba(37,99,217,.07);}
#reframe.people-band .big{color:var(--ink);}
#reframe.people-band .big em{color:var(--brand-deep);}
#reframe.people-band .big em::after{background:#bfe0ff;height:.46em;}
#reframe.people-band .follow{color:var(--ink-2);}
.reframe-stage{display:grid;grid-template-columns:auto 1fr auto;align-items:end;gap:24px;}
.reframe-stage .rp{width:clamp(120px,14vw,200px);height:auto;filter:drop-shadow(0 16px 26px rgba(24,52,120,.16));align-self:flex-end;}
.reframe-stage .rp-l{transform:scaleX(-1);}
.reframe-stage .rtext{padding:8px 0;}

/* ---------- CASE: celebratory character cluster ---------- */
.case-cluster{
  position:relative;background:var(--grad-soft);border-radius:var(--r-lg);
  border:1px solid #dcebff;aspect-ratio:1/1.12;overflow:hidden;
  display:flex;align-items:flex-end;justify-content:center;
}
.case-cluster::before{
  content:"";position:absolute;left:0;right:0;bottom:0;height:46%;
  background:radial-gradient(120% 80% at 50% 100%, rgba(37,99,217,.16), transparent 70%);
}
.case-cluster .cc-people{position:relative;display:flex;align-items:flex-end;justify-content:center;width:100%;padding:0 4px;}
.case-cluster .cc-people img{height:auto;filter:drop-shadow(0 12px 18px rgba(24,52,120,.16));}
.case-cluster .cc-people .ccp1{width:50%;margin-right:-13%;z-index:1;margin-bottom:8px;}
.case-cluster .cc-people .ccp2{width:60%;z-index:3;}
.case-cluster .cc-people .ccp3{width:50%;margin-left:-13%;z-index:2;margin-bottom:8px;}
.case-cluster .cc-badge{
  position:absolute;top:18px;left:18px;z-index:5;display:inline-flex;align-items:center;gap:7px;
  background:#fff;border-radius:999px;padding:8px 14px;font-size:12px;font-weight:700;color:var(--brand-deep);
  box-shadow:var(--shadow);
}
.case-cluster .cc-badge svg{width:15px;height:15px;color:var(--good);}

/* ---------- FINAL CTA: flanking people ---------- */
#final .final-stage{display:grid;grid-template-columns:auto 1fr auto;align-items:end;gap:20px;}
#final .fp{width:clamp(120px,13vw,184px);height:auto;align-self:flex-end;filter:drop-shadow(0 16px 28px rgba(0,0,0,.22));}
#final .fp-l{transform:scaleX(-1);}
#final .ftext{padding-bottom:6px;}

/* ---------- responsive ---------- */
@media(max-width:1020px){
  .reframe-stage{grid-template-columns:1fr;}
  .reframe-stage .rp{display:none;}
  #final .final-stage{grid-template-columns:1fr;}
  #final .fp{display:none;}
  .hero-people{display:none;}
  .hero-intro .hi-art{height:102%;margin-bottom:0;}
  .hero-intro .hi-cap{bottom:4px;font-size:13.5px;}
}
@media(max-width:860px){
  .hero-people{display:none;}
  .case-cluster{aspect-ratio:16/11;max-width:380px;}
}
