/* BAB · 21-how-v2.css — "How it works" rebuilt as step cards + a detail card with illustrations. Loads last. */
.bab-how .bh-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);gap:clamp(28px,4.5vw,72px);align-items:start}
/* steps */
.bhv-steps{list-style:none;margin:30px 0 0;padding:0;position:relative;display:grid;gap:8px}
.bhv-steps:before{content:"";position:absolute;left:21px;top:30px;bottom:30px;width:2px;background:linear-gradient(#B8480F,rgba(184,72,15,.25));border-radius:2px}
.bhv-steps li{position:relative}
.bhv-row{all:unset;box-sizing:border-box;position:relative;display:grid;grid-template-columns:44px 52px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;padding:12px 16px 12px 0;border-radius:20px;cursor:pointer;overflow:hidden;
  -webkit-tap-highlight-color:transparent;transition:background .35s ease,box-shadow .35s ease}
.bhv-row:focus-visible{outline:2px solid #14110D;outline-offset:3px}
.bhv-no{justify-self:center;position:relative;z-index:1;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font:800 14px/1 'DM Sans',system-ui,sans-serif;color:#14110D;background:#FDF1E4;border:1.5px solid #F0D3B8;transition:all .35s ease}
.bhv-ic{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#FFF6EC;transition:background .35s ease}
.bhv-ic svg{width:26px;height:26px;fill:none;stroke:#B8480F;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.bhv-tx{display:block;min-width:0}
.bhv-tx b{display:block;font:800 clamp(17px,1.5vw,20px)/1.2 'DM Sans',system-ui,sans-serif;letter-spacing:-.015em;color:#14110D}
.bhv-tx em{display:block;margin-top:3px;font:500 14.5px/1.4 'DM Sans',system-ui,sans-serif;font-style:normal;color:#4A4437}
.bhv-go{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#B8480F;opacity:0;transform:translateX(-6px);transition:all .35s ease}
.bhv-go svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.bhv-bar{position:absolute;left:0;top:0;width:100%;height:2px;background:#B8480F;transform:scaleX(0);transform-origin:left;opacity:0;pointer-events:none;will-change:transform}
.bhv-row.is-active .bhv-bar{opacity:1}
.bhv-row:hover{background:rgba(255,246,236,.7)}
.bhv-row.is-active{background:#FDEBDD;box-shadow:0 14px 34px -22px rgba(184,72,15,.55),inset 0 0 0 1px rgba(184,72,15,.12)}
.bhv-row.is-active .bhv-no{background:#B8480F;border-color:#B8480F;color:#fff}
.bhv-row.is-active .bhv-ic{background:#FFF9F2}
.bhv-row.is-active .bhv-go{opacity:1;transform:none}
/* card */
.bhv-card{position:relative;background:#FFFAF3;border:1px solid rgba(27,20,11,.08);border-radius:32px;padding:clamp(20px,2.4vw,32px);box-shadow:0 50px 90px -50px rgba(120,70,20,.4);display:grid}
.bhv-view{grid-area:1/1;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .5s ease,transform .6s cubic-bezier(.2,.8,.2,1),visibility 0s .5s}
.bhv-view.is-active{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.bhv-card{grid-template-rows:auto auto}
.bhv-foot{grid-area:2/1;margin-top:18px}
.bhv-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.bhv-head h3{margin:0;font:800 clamp(22px,2.3vw,30px)/1.1 'DM Sans',system-ui,sans-serif;letter-spacing:-.03em;color:#14110D}
.bhv-head p{margin:6px 0 0;font:500 15px/1.4 'DM Sans',system-ui,sans-serif;color:#4A4437}
.bhv-pill{flex:none;white-space:nowrap;padding:8px 14px;border-radius:99px;background:#FDEBDD;color:#B8480F;font:800 12px/1 'DM Sans',system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase}
.bhv-art{height:clamp(210px,21vw,290px);margin:10px 0 6px}
.bhv-art svg{display:block;width:100%;height:100%;overflow:visible}
.bhv-list{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:9px}
.bhv-list li{display:grid;grid-template-columns:30px auto minmax(0,1fr);align-items:center;gap:12px;padding:12px 16px;border:1px solid #EEE3D3;border-radius:16px;background:#fff;font:500 14.5px/1.3 'DM Sans',system-ui,sans-serif;color:#4A4437}
.bhv-list b{font-weight:800;color:#14110D;white-space:nowrap}
.bhv-list li>span:last-child{text-align:right;color:#14110D;font-weight:600}
.bhv-li{display:grid;place-items:center}
.bhv-li svg{width:22px;height:22px;fill:none;stroke:#B8480F;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bhv-cta{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:16px 20px;border-radius:16px;background:linear-gradient(180deg,#CF5413,#B8480F);color:#fff;font:800 17px/1 'DM Sans',system-ui,sans-serif;cursor:pointer;box-shadow:0 14px 28px -16px rgba(184,72,15,.8);transition:transform .2s ease,box-shadow .3s ease}
.bhv-cta:hover{transform:translateY(-2px);box-shadow:0 20px 34px -16px rgba(184,72,15,.9)}
.bhv-cta:focus-visible{outline:2px solid #14110D;outline-offset:3px}
.bhv-cta svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.bhv-badges{list-style:none;margin:6px 0 0;border-top:1px solid #EEE3D3;padding:16px 0 0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 14px;font:600 13.5px/1.2 'DM Sans',system-ui,sans-serif;color:#14110D}
.bhv-badges li{display:flex;align-items:center;gap:8px}
.bhv-badges svg{width:20px;height:20px;fill:none;stroke:#B8480F;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion:no-preference){
  .bhv-view.is-active .bhv-float{animation:bhvFloat 4.6s ease-in-out infinite alternate}
  .bhv-view.is-active .bcursor{animation:babCursor 4.2s ease-in-out infinite alternate}
  .bhv-view.is-active .bbox{animation:babBox 3.2s ease-in-out infinite alternate}
  html.bab-js #welcome .bab-how:not(.bab-in) :is(.bhv-row,.bhv-card){opacity:0}
  html.bab-js #welcome .bab-how.bab-in .bhv-row{animation:babFadeUp .9s cubic-bezier(.2,.8,.2,1) backwards}
  html.bab-js #welcome .bab-how.bab-in li:nth-child(1) .bhv-row{animation-delay:.3s}
  html.bab-js #welcome .bab-how.bab-in li:nth-child(2) .bhv-row{animation-delay:.42s}
  html.bab-js #welcome .bab-how.bab-in li:nth-child(3) .bhv-row{animation-delay:.54s}
  html.bab-js #welcome .bab-how.bab-in li:nth-child(4) .bhv-row{animation-delay:.66s}
  html.bab-js #welcome .bab-how.bab-in .bhv-card{animation:babFadeUp 1s cubic-bezier(.2,.8,.2,1) .3s backwards}
}
@keyframes bhvFloat{from{transform:translateY(0)}to{transform:translateY(-7px)}}
@media(max-width:900px){.bab-how .bh-grid{grid-template-columns:1fr}}
@media(max-width:600px){
  .bhv-row{grid-template-columns:36px 44px minmax(0,1fr);gap:10px;padding:10px 12px 10px 0}
  .bhv-steps:before{left:17px}
  .bhv-go{display:none}
  .bhv-ic{width:44px;height:44px;border-radius:14px}.bhv-ic svg{width:22px;height:22px}
  .bhv-no{width:26px;height:26px;font-size:13px}
  .bhv-tx em{font-size:13.5px}
  .bhv-head{flex-direction:column;gap:10px}
  .bhv-list li{grid-template-columns:26px minmax(0,1fr);row-gap:2px;padding:11px 14px}.bhv-list li>span:last-child{grid-column:2;text-align:left}
  .bhv-badges{font-size:12.5px}
  .bhv-art{height:210px}
}

/* ===== v4: light + vivid (keeps dark/light rhythm) ===== */
#welcome .bab-how{color:#1B1420;background:
 radial-gradient(900px 520px at 4% 6%,rgba(255,170,90,.42),transparent 62%),
 radial-gradient(820px 520px at 98% 10%,rgba(255,110,170,.34),transparent 62%),
 radial-gradient(900px 560px at 92% 100%,rgba(70,220,200,.34),transparent 62%),
 radial-gradient(700px 480px at 0% 100%,rgba(150,120,255,.28),transparent 62%),
 linear-gradient(180deg,#FFF6EA,#FFF1F4)!important}
#welcome .bab-how .bm-bg .o1{background:radial-gradient(circle,rgba(255,140,60,.38),rgba(255,140,60,0) 66%)}
#welcome .bab-how .bm-bg .o2{background:radial-gradient(circle,rgba(255,90,160,.32),rgba(255,90,160,0) 66%)}
#welcome .bab-how .bm-bg .o3{background:radial-gradient(circle,rgba(40,210,190,.30),rgba(40,210,190,0) 66%)}
#welcome .bab-how .bm-bg .rg{border-color:rgba(214,90,40,.22)}
#welcome .bab-how .bm-bg .sp{background:#FF9A3C}
#welcome .bab-how .bh-eyebrow{color:#C2410C!important}
#welcome .bab-how .bh-eyebrow:before{background:#F97316!important;box-shadow:0 0 14px rgba(249,115,22,.6)!important}
#welcome .bab-how h2,#welcome .bab-how .bh-l1,#welcome .bab-how .bh-b{color:#1B1420!important;-webkit-text-fill-color:#1B1420!important;text-shadow:none}
#welcome .bab-how .bh-l2{color:transparent!important;-webkit-text-fill-color:transparent!important;background-image:linear-gradient(100deg,#F97316,#EC4899 55%,#8B5CF6)!important;background-color:transparent!important;-webkit-background-clip:text!important;background-clip:text!important;display:block;width:fit-content;padding:0 .08em .08em 0}
#welcome .bab-how .bh-sub{color:#4B4156!important}

.bab-how .bhv-steps li:nth-child(1){--ac:#F97316;--ac2:#FDBA74;--tx:#C2410C}
.bab-how .bhv-steps li:nth-child(2){--ac:#EC4899;--ac2:#F9A8D4;--tx:#BE185D}
.bab-how .bhv-steps li:nth-child(3){--ac:#0EA5A0;--ac2:#5EEAD4;--tx:#0F766E}
.bab-how .bhv-steps li:nth-child(4){--ac:#7C3AED;--ac2:#C4B5FD;--tx:#6D28D9}
.bab-how .bhv-steps:before{background:linear-gradient(#F97316,#EC4899 40%,#0EA5A0 72%,#7C3AED)!important;opacity:.9}
.bab-how .bhv-row{background:rgba(255,255,255,.78)!important;border-radius:18px!important;box-shadow:0 10px 26px -16px rgba(60,20,60,.35),inset 0 0 0 1px color-mix(in srgb,var(--ac) 22%,#fff)!important}
.bab-how .bhv-row:hover{background:#fff!important;box-shadow:0 16px 34px -16px color-mix(in srgb,var(--ac) 55%,transparent),inset 0 0 0 1px color-mix(in srgb,var(--ac) 45%,#fff)!important}
.bab-how .bhv-row.is-active{background:linear-gradient(100deg,#fff,color-mix(in srgb,var(--ac) 16%,#fff))!important;box-shadow:0 20px 44px -18px var(--ac),inset 0 0 0 2px var(--ac)!important}
.bab-how .bhv-tx b{color:#1B1420!important}
.bab-how .bhv-tx em{color:#5B5066!important}
.bab-how .bhv-no{background:#fff!important;border-color:var(--ac)!important;color:var(--tx)!important}
.bab-how .bhv-row.is-active .bhv-no{background:linear-gradient(135deg,var(--ac2),var(--ac))!important;color:#fff!important;border-color:transparent!important;box-shadow:0 6px 16px -4px var(--ac)}
.bab-how .bhv-ic{background:color-mix(in srgb,var(--ac) 14%,#fff)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ac) 35%,#fff)!important}
.bab-how .bhv-ic svg{stroke:var(--tx)!important}
.bab-how .bhv-row.is-active .bhv-ic{background:linear-gradient(135deg,var(--ac2),var(--ac))!important}
.bab-how .bhv-row.is-active .bhv-ic svg{stroke:#fff!important}
.bab-how .bhv-go{background:linear-gradient(135deg,var(--ac2),var(--ac))!important}
.bab-how .bhv-go svg{stroke:#fff!important}
.bab-how .bhv-bar{background:linear-gradient(90deg,var(--ac2),var(--ac))!important;height:3px!important}
.bab-how .bhv-row:focus-visible{outline-color:var(--ac)}

.bab-how .bhv-card{--cc:#F97316;position:relative;border:0!important;background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--cc) 12%,#fff))!important;box-shadow:0 0 0 3px var(--cc),0 0 0 9px color-mix(in srgb,var(--cc) 20%,transparent),0 40px 80px -34px color-mix(in srgb,var(--cc) 70%,#1b1420),0 0 90px -20px var(--cc)!important;transition:box-shadow .6s,background .6s}
.bab-how .bhv-card:has(.bhv-view:nth-child(2).is-active){--cc:#EC4899}
.bab-how .bhv-card:has(.bhv-view:nth-child(3).is-active){--cc:#0EA5A0}
.bab-how .bhv-card:has(.bhv-view:nth-child(4).is-active){--cc:#7C3AED}
.bab-how .bhv-pill{background:var(--cc)!important;color:#fff!important}
.bab-how .bhv-li svg{stroke:var(--cc)!important}
.bab-how .bhv-list li{border-color:color-mix(in srgb,var(--cc) 35%,#fff)!important}

/* ===== v5: single accent (no per-step rainbow) ===== */
.bab-how .bhv-steps li:nth-child(n){--ac:#F26A1B;--ac2:#FFB36B;--tx:#C2410C}
.bab-how .bhv-steps:before{background:linear-gradient(#F26A1B,rgba(242,106,27,.25))!important}
.bab-how .bhv-card,.bab-how .bhv-card:has(.bhv-view:nth-child(n).is-active){--cc:#F26A1B}
#welcome .bab-how{background:
 radial-gradient(900px 520px at 4% 6%,rgba(255,160,70,.46),transparent 62%),
 radial-gradient(820px 520px at 98% 8%,rgba(255,120,80,.30),transparent 62%),
 radial-gradient(900px 560px at 92% 100%,rgba(255,200,110,.45),transparent 62%),
 radial-gradient(700px 480px at 0% 100%,rgba(255,140,100,.26),transparent 62%),
 linear-gradient(180deg,#FFF4E4,#FFEFE2)!important}
#welcome .bab-how .bm-bg .o2{background:radial-gradient(circle,rgba(255,120,70,.30),rgba(255,120,70,0) 66%)}
#welcome .bab-how .bm-bg .o3{background:radial-gradient(circle,rgba(255,190,90,.36),rgba(255,190,90,0) 66%)}
#welcome .bab-how .bh-l2{background-image:linear-gradient(100deg,#F26A1B,#E8860C)!important}
.bab-how .bhv-row.is-active{background:linear-gradient(100deg,#fff,#FFE9D2)!important}
