/* Tradevo Exchange explainer – inline card for product pages. No dependencies. */
.txe{--txe-ink:#0f2f2b;--txe-teal:#1b6b63;--txe-line:#b9d8d0;--txe-muted:#4c6b66;--txe-paper:#fffdf0;--txe-gold:#fbf3c4;--txe-edge:#e6dc8c;
  box-sizing:border-box;display:grid;gap:14px;max-width:560px;padding:16px;border:1px solid var(--txe-edge);border-radius:18px;
  background:linear-gradient(180deg,var(--txe-paper),var(--txe-gold));color:var(--txe-ink);font:inherit;line-height:1.35}
.txe *{box-sizing:border-box}
.txe-eyebrow{margin:0;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--txe-teal)}
.txe-title{margin:0;font-size:19px;line-height:1.2;font-weight:800;text-wrap:balance}
.txe-title span{display:block;margin-top:4px;font-size:15px;font-weight:500;color:var(--txe-muted)}
.txe-title b{color:var(--txe-teal);white-space:nowrap}

/* stage: old device -> amount -> next device */
.txe-stage{display:grid;grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr);align-items:start;perspective:520px;padding:8px 0 0}
.txe-dev{display:grid;justify-items:center;gap:3px;min-width:0;text-align:center;font-size:12px;color:var(--txe-muted)}
.txe-dev b{font-size:15px;color:var(--txe-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.txe-dev s{display:block;font-size:12px;font-weight:500;color:var(--txe-muted)}
.txe-dev em{font-style:normal;color:var(--txe-teal)}
.txe-pad{position:relative;display:grid;place-items:end center;height:84px;padding-bottom:8px}
.txe-pad::after{content:"";position:absolute;left:50%;bottom:0;width:92px;height:10px;margin-left:-46px;border-radius:50%;background:radial-gradient(closest-side,rgba(15,47,43,.22),transparent)}
.txe-shape{position:relative;display:block;width:88px;height:60px;transform-style:preserve-3d;transform:rotateY(-26deg) rotateX(8deg)}
.txe-new .txe-shape{transform:rotateY(26deg) rotateX(8deg);filter:drop-shadow(0 8px 10px rgba(27,107,99,.28))}
.txe-old .txe-shape{filter:saturate(.55) drop-shadow(0 6px 8px rgba(15,47,43,.16))}
.txe-shape::before,.txe-shape::after{content:"";position:absolute}
.txe-laptop::before{inset:0 6px 13px;border:3px solid #20302d;border-radius:6px 6px 2px 2px;background:linear-gradient(135deg,#27405e,#4b82c9 60%,#a9cdf5)}
.txe-laptop::after{left:-3px;right:-3px;bottom:1px;height:12px;border-radius:2px 2px 9px 9px;background:linear-gradient(#d5dedc,#9fb0ad);transform-origin:top;transform:rotateX(52deg)}
.txe-phone{width:40px;height:74px}
.txe-phone::before{inset:0;border:3px solid #20302d;border-radius:10px;background:linear-gradient(160deg,#27455f,#5b9bd5 55%,#bfe0ff)}
.txe-phone::after{top:6px;left:50%;width:12px;height:4px;margin-left:-6px;border-radius:3px;background:#20302d}
.txe-tv{width:100px;height:64px}
.txe-tv::before{inset:0 0 10px;border:3px solid #20302d;border-radius:4px;background:linear-gradient(135deg,#1d2b3f,#3f79c2 60%,#8fd0ee)}
.txe-tv::after{left:50%;bottom:0;width:46px;height:9px;margin-left:-23px;background:#20302d;clip-path:polygon(38% 0,62% 0,100% 100%,0 100%)}
.txe-box{width:54px;height:66px}
.txe-box::before{inset:0;border:3px solid #20302d;border-radius:8px;background:linear-gradient(135deg,#e3eae8,#aebdba)}
.txe-box::after{right:9px;top:9px;width:8px;height:8px;border-radius:50%;background:var(--txe-teal)}
.txe-track{position:relative;height:84px;z-index:2}
.txe-track::before{left:6px;right:10px;top:50%;border-top:2px dashed var(--txe-line);content:"";position:absolute}
.txe-track::after{right:2px;top:50%;margin-top:-5px;border:5px solid transparent;border-left:8px solid var(--txe-teal);content:"";position:absolute}
.txe-chip{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:5px 9px;border-radius:999px;background:var(--txe-teal);color:#fff;
  font-style:normal;font-size:12px;font-weight:800;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums;box-shadow:0 5px 12px rgba(15,47,43,.25)}
.txe.is-play .txe-chip{animation:txe-fly 1.1s cubic-bezier(.3,.7,.2,1) both}
.txe.is-play .txe-old .txe-shape{animation:txe-out 1s ease both}
.txe.is-play .txe-new .txe-shape{animation:txe-in 1.1s cubic-bezier(.2,.7,.2,1) both}
.txe.is-play .txe-new em{animation:txe-pop .5s .8s ease both}
@keyframes txe-fly{0%{transform:translate(-170%,-50%) scale(.6);opacity:0}30%{opacity:1}72%{transform:translate(-50%,-50%) scale(1.1)}100%{transform:translate(-50%,-50%) scale(1)}}
@keyframes txe-out{0%{transform:rotateY(10deg) rotateX(8deg)}100%{transform:rotateY(-26deg) rotateX(8deg)}}
@keyframes txe-in{0%{transform:rotateY(80deg) rotateX(8deg) scale(.78);opacity:.15}100%{transform:rotateY(26deg) rotateX(8deg) scale(1);opacity:1}}
@keyframes txe-pop{0%{transform:scale(.7);opacity:0}100%{transform:scale(1);opacity:1}}
.txe-dev em{display:inline-block}

/* controls */
.txe-ctl{display:grid;gap:6px;font-size:14px}
.txe-ctl-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-weight:700}
.txe-ctl output{font-weight:800;color:var(--txe-teal);font-variant-numeric:tabular-nums;white-space:nowrap}
.txe input[type=range]{width:100%;height:32px;margin:0;accent-color:var(--txe-teal);touch-action:pan-y}
.txe-scale{display:flex;justify-content:space-between;margin-top:-6px;font-size:11px;color:var(--txe-muted)}
.txe-chips{display:flex;flex-wrap:wrap;gap:8px}
.txe-chips button{min-height:42px;padding:6px 13px;border:1.5px solid var(--txe-line);border-radius:999px;background:#fff;color:var(--txe-ink);
  font:inherit;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;cursor:pointer}
.txe-kinds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.txe-kinds button{padding:6px 4px;font-size:13px}
.txe-chips button[aria-pressed=true]{border-color:var(--txe-teal);background:var(--txe-teal);color:#fff}
.txe-chips button:focus-visible,.txe input[type=range]:focus-visible{outline:3px solid rgba(27,107,99,.35);outline-offset:2px}

/* result */
.txe-sum{display:grid;gap:6px;margin:0}
.txe-sum div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:14px}
.txe-sum dt{color:var(--txe-muted)}
.txe-sum dd{margin:0;font-weight:800;text-align:right;font-variant-numeric:tabular-nums}
.txe-sum .txe-hero{display:grid;gap:2px;margin-top:4px;padding:11px 13px;border:1px solid var(--txe-line);border-radius:12px;background:#fff}
.txe-hero dt{font-weight:700;color:var(--txe-ink)}
.txe-sum .txe-hero dd{text-align:left;font-size:23px;line-height:1.15;color:var(--txe-teal)}
.txe-fine{margin:0;font-size:12px;line-height:1.45;color:var(--txe-muted)}
.txe-fine a{color:var(--txe-teal);font-weight:700;white-space:nowrap}
@media (prefers-reduced-motion:reduce){.txe *{animation:none!important}}
