/* ============================================================================
   TABADAL — "spiced" homepage layer (scroll-cinematic). STAGED on index.spiced.html.
   Adds: a pinned ScrollTrigger "exchange" showpiece + maximal micro (underline
   draw-on, hub flip). Pairs on top of ds-tokens.css + ds-home.css.
   Default (no-JS / reduced-motion) state = the RESOLVED exchange, fully visible.
   ============================================================================ */

/* Underline draw-on: drive the ::after width via a GSAP-animatable custom prop */
.hero h1 .u::after, .xtitle .u::after { right:auto; width:var(--uw, 100%); }

/* Maximal micro: the swap hub flips on hover (hero) */
@media (hover:hover) and (pointer:fine){
  .swapbtwn{ transition:transform 420ms cubic-bezier(0.23,1,0.32,1); }
  .swapbtwn:hover{ transform:rotate(180deg); }
}

/* ---- The exchange: pinned scroll showpiece -------------------------------- */
.xstage{ position:relative; }
.xpin{ min-height:100vh; display:flex; align-items:center; background:var(--bg-sunken);
       border-top:1px solid var(--border); border-bottom:1px solid var(--border); overflow:hidden; }
.xpin-inner{ text-align:center; padding:72px 32px; width:100%; max-width:1000px; margin:0 auto; }
.xhead{ display:inline-block; }
.xtitle{ font-family:var(--font-display); font-size:clamp(28px,5vw,52px); font-weight:700;
         letter-spacing:-.025em; line-height:1.06; margin:14px 0 0; color:var(--fg1); }
.xtitle .u{ position:relative; white-space:nowrap; }
.xtitle .u::after{ content:""; position:absolute; left:0; bottom:.06em; height:.26em;
         background:var(--clay-300); z-index:-1; border-radius:3px; }
.xstage-grid{ display:flex; align-items:center; justify-content:center; gap:28px; margin:52px 0 0; }
.xcard{ background:var(--surface); border:1px solid var(--border); border-radius:18px;
        box-shadow:var(--shadow-md); padding:22px; width:min(280px,38vw); text-align:left; }
.xcard .thumb{ width:52px; height:52px; border-radius:12px; display:grid; place-items:center; color:#fff; margin-bottom:14px; }
.xcard .nm{ font-weight:700; font-size:17px; color:var(--fg1); }
.xcard .of{ font-size:13.5px; color:var(--fg3); margin-top:3px; }
.xcard .tc{ font-family:var(--font-mono); font-weight:700; color:var(--brand); font-size:18px; margin-top:14px; font-variant-numeric:tabular-nums; }
.xhub{ width:62px; height:62px; flex:none; border-radius:999px; background:var(--brand); color:var(--fg-on-teal);
       display:grid; place-items:center; box-shadow:var(--shadow-md); }
.xinvoices{ display:flex; gap:14px; justify-content:center; margin:30px 0 0; flex-wrap:wrap; }
.xinv{ display:inline-flex; align-items:center; gap:8px; font-size:13.5px; font-weight:600; color:var(--teal-800);
       background:var(--teal-50); border:1px solid var(--teal-100); border-radius:999px; padding:9px 16px; }
.xinv .lic{ color:var(--brand); }
.xresolve{ margin:24px 0 0; font-size:clamp(16px,2vw,19px); color:var(--fg2); }
.xresolve b{ color:var(--fg1); }
.xscrollhint{ margin-top:30px; font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--fg3); }
@media(max-width:600px){
  .xstage-grid{ gap:10px; }
  .xcard{ width:40vw; padding:14px; }
  .xcard .thumb{ width:42px; height:42px; }
  .xcard .nm{ font-size:14px; } .xcard .of{ font-size:12px; } .xcard .tc{ font-size:15px; margin-top:10px; }
  .xhub{ width:44px; height:44px; }
  .xpin-inner{ padding:52px 16px; }
  .xinvoices{ flex-direction:column; align-items:center; }
}
