/* ==========================================================================
   refinements.css  ·  Carousel = 原图直嵌 + 真实可点击商店按钮叠加
   Loaded AFTER styles.css.

   The three carousel slides are now the supplied reference artwork itself
   (assets/carousel/*.jpg). Nothing is re-drawn: the banner composition,
   typography, phones and arcs are exactly the supplied images.

   The only thing rebuilt as real DOM is the App Store / Google Play pair —
   positioned to the pixel over the baked-in badges (measured from the source
   bitmaps) so they are genuine, clickable links. A white ring hides the
   baked badge underneath.

   Every rule is scoped under .product-carousel so the child tool pages
   (which use .fixed-product-banner) are never affected.
   ========================================================================== *//* ---- T17 · Try now button: orange -> black (unchanged) ---- */

.use-button{background:#14181f;color:#fff}
.use-button:hover{background:#000;box-shadow:0 8px 18px rgba(20,24,31,.26)}/* the button is now a real link into the sub-page, so it needs anchor resets */

.main-content .tool-card .use-button{text-align:center;line-height:1;text-decoration:none}/* =========================================================================
   1 · FRAME  —  drop the old grey shell, keep outer gutters for the arrows
   ========================================================================= *//* The carousel container is now exactly as wide as the Forex Tool Box below
   (1040px, or 100% of the column on narrow screens), so the two arrows land on
   the same vertical rules as the tool grid — one column edge for the whole
   page. The card itself stays at 5/6 of that width, centred, so the arrows sit
   in the empty gutters instead of on the artwork. */

.product-carousel{
  position:relative!important;z-index:2;
  max-width:min(1040px,100%)!important;
  margin-left:auto!important;margin-right:auto!important;
  margin-top:-22px!important;
  overflow:visible!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
}

.product-carousel .carousel-track{
  position:relative!important;
  /* 1040px × 5/6 = the card; 128px = the two arrow gutters it leaves */
  max-width:min(calc(1040px * 5 / 6),calc(100% - 128px));
  margin:0 auto!important;
  min-height:0!important;
  padding-bottom:0;              /* the dots now live inside the card */
}/* only one slide exists at a time — display-based, so stacked/ghost slides
   can never happen (opacity transitions proved unreliable across breakpoints) */

.product-carousel .product-slide{
  display:none!important;
  position:relative!important;
  padding:0!important;gap:0!important;
  /* the legacy "shared baseline" min-heights (404/600/620px, tuned for the old
     text slides) must go — the card is one image, its height is the aspect
     ratio, and any leftover min-height leaves a hole under the artwork */
  min-height:0!important;height:auto!important;
  background:transparent!important;border:0!important;
  opacity:1!important;visibility:visible!important;transform:none!important;
}
.product-carousel .product-slide.is-active{
  display:block!important;
  animation:pfSlideIn .4s ease both;
}
@keyframes pfSlideIn{
  from{opacity:0;transform:translateX(24px)}
  to{opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce){
  .product-carousel .product-slide.is-active{animation:none}
}/* kill every legacy decorative layer so only the artwork shows */

.product-carousel .product-slide::before,.product-carousel .product-slide::after,.product-carousel .slide-pocket::before,.product-carousel .slide-pocket::after,.product-carousel .slide-fxcopy::before,.product-carousel .slide-fxcopy::after,.product-carousel .slide-charti::before,.product-carousel .slide-charti::after{display:none!important;content:none!important}/* the image card */

.product-carousel .slide-frame{
  position:relative;
  width:100%;
  aspect-ratio:1885/834;
  background:#fff;
  border:1px solid #e9eaee;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 2px 10px rgba(24,28,38,.05);
  container-type:inline-size;      /* lets the badges scale with the card */
}
.product-carousel .slide-shot{
  display:block;width:100%;height:100%;
  object-fit:cover;object-position:center center;
  user-select:none;-webkit-user-drag:none;
}/* =========================================================================
   2 · STORE BUTTONS  —  real pills, colour on hover
   The badges that used to be baked into the artwork have been erased (the
   pixels are repainted with the local background, see assets/carousel), so
   the two download buttons are now genuine DOM controls:
     · at rest    -> white pill, dark label, faint border
     · hover      -> fills with the product colour, label turns white,
                     lifts 1px (the colour *is* the affordance now, no click
                     step needed — the link fires on the very same click)
     · keyboard   -> :focus-visible lights the pill exactly like hover
   All three slides share one pill size so the banners read as a set.
   ========================================================================= */

.product-carousel .slide-cta{
  position:absolute;z-index:3;pointer-events:none;
  display:flex;align-items:center;gap:1.2cqw;width:max-content;
  direction:ltr;                    /* keep Apple → Play order in RTL too */
}
html[dir="rtl"] .product-carousel .store-txt{direction:rtl}

.product-carousel .store-btn{
  --fill:#181f27;
  --fill-img:none;
  position:relative;
  pointer-events:auto;
  flex:1 1 0;
  display:flex;align-items:center;justify-content:center;
  gap:.34em;
  padding:0 .7em 0 .56em;
  border:1px solid #dcdee4;
  border-radius:999px;
  background:#fff;
  color:#171a20;
  text-decoration:none;
  font-family:-apple-system,"SF Pro Text","Segoe UI",Inter,system-ui,sans-serif;
  font-size:11px;                       /* fallback where cqw is unsupported */
  font-size:max(5.5px,1.3cqw);
  line-height:1;
  box-shadow:0 1px 2px rgba(20,24,32,.05);
  transition:color .26s ease,background-color .26s ease,border-color .26s ease,
             box-shadow .26s ease,transform .22s cubic-bezier(.2,.7,.3,1);
  -webkit-tap-highlight-color:transparent;
}/* the coloured wash lives in a pseudo element so a gradient can fade too */

.product-carousel .store-btn::before{
  content:"";position:absolute;inset:-1px;
  border-radius:inherit;
  background:var(--fill);
  background-image:var(--fill-img);
  opacity:0;
  transition:opacity .26s ease;
  pointer-events:none;
}
.product-carousel .store-btn>*{position:relative;z-index:1}/* ---- hover / keyboard focus: the pill fills with the product colour ---
   (hover, not click: the pointer arriving on the button is the trigger, and
   the click still goes straight through to the store link) */

.product-carousel .store-btn:hover,.product-carousel .store-btn:focus-visible{
  color:#fff;
  border-color:transparent;
  background:#fff;                    /* the colour is the pseudo element */
  box-shadow:0 7px 18px rgba(20,24,32,.20);
  transform:translateY(-1px);
}
.product-carousel .store-btn:hover::before,.product-carousel .store-btn:focus-visible::before{opacity:1}

.product-carousel .store-btn:active{
  transform:translateY(0) scale(.972);
  transition-duration:.1s;
}
.product-carousel .store-btn:focus-visible{outline:2px solid #f25b25;outline-offset:3px}/* ---- glyph & label --------------------------------------------------- */

.product-carousel .store-glyph{
  flex:none;display:block;
  width:1.74em;height:1.74em;
  fill:currentColor;
}
.product-carousel .store-glyph path{transition:fill .26s ease}
.product-carousel .store-txt{
  display:flex;flex-direction:column;align-items:flex-start;
  line-height:1.1;white-space:nowrap;
}
.product-carousel .store-txt small{
  font-size:.6em;font-weight:500;letter-spacing:.02em;opacity:.88;
}/* the product name inside the pill is set at a normal weight — at this size
   a 700 face closes up the counters and reads heavier than the badge around it */

.product-carousel .store-txt strong{
  font-size:1.22em;font-weight:500;letter-spacing:-.005em;
}/* Google's triangle keeps its own colours at rest and turns white when lit */

.product-carousel .store-btn:hover .store-glyph path,.product-carousel .store-btn:focus-visible .store-glyph path{fill:currentColor}/* ---- product accents ------------------------------------------------- */

.product-carousel .slide-pocket .store-btn{--fill:#f25b25}
.product-carousel .slide-fxcopy .store-btn{
  --fill:#8f2c86;
  --fill-img:linear-gradient(96deg,#4b2aab 0%,#a32b8e 52%,#f9363e 100%);
}
.product-carousel .slide-charti .store-btn{--fill:#0b6b50}/* ---- geometry: one pill row for all three slides ---------------------
   The two pills share a flex row anchored at the first pill's original
   position, so localised first lines can grow without pushing the Play
   button into the Apple button. Both pills stay the same width, and the
   1.2cqw gap keeps the original spacing. Height is unchanged. ---------- */

.product-carousel .store-btn{height:5.94cqw;min-width:20.4cqw}

.product-carousel .slide-pocket .slide-cta{left:9.76%;top:74.82%}
.product-carousel .slide-fxcopy .slide-cta{left:4.09%;top:75.55%}
.product-carousel .slide-charti .slide-cta{left:5.22%;top:80.05%}

@media(prefers-reduced-motion:reduce){
  .product-carousel .store-btn,.product-carousel .store-btn::before,.product-carousel .store-glyph path{transition:none}
}/* =========================================================================
   2b · REAL TYPE  —  the copy that used to be baked into the artwork
   Every string (product name, slogan, feature list) was painted out of the
   JPEG and is rendered here as live text. Geometry comes 1:1 from the source
   bitmaps: each slide declares its own aspect-ratio so the artwork is never
   cropped, and every number below is "source pixel / source width × 100" —
   i.e. cqw, so the whole composition scales with the card.

   Typeface: Inter, self-hosted (assets/fonts). Its metrics were measured
   against the artwork (cap height and string widths at 100px) and each size
   below is solved from that, which is why the headline lands on exactly the
   same cap height as the original artwork.
   ========================================================================= */

@font-face{
  font-family:"Inter";
  src:url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}

.product-carousel .slide-sprite{position:absolute;width:0;height:0;overflow:hidden}

.product-carousel .slide-type{
  position:absolute;inset:0;z-index:2;pointer-events:none;
  font-family:"Inter",-apple-system,"Segoe UI",Inter,system-ui,sans-serif;
  font-feature-settings:"kern" 1;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

.product-carousel .s-logo{
  position:absolute;display:block;height:auto;
  user-select:none;-webkit-user-drag:none;
}
.product-carousel .s-name{
  position:absolute;margin:0;
  /* one name size across the three slides — each is optically centred on its
     own logo by the per-slide `top` below */
  font-size:1.700cqw;
  font-weight:600;line-height:1;white-space:nowrap;
  letter-spacing:0;
}
.product-carousel .s-hl{
  position:absolute;margin:0;
  font-weight:700;letter-spacing:0;
  white-space:nowrap;
}
.product-carousel .s-hl>span{display:block}

.product-carousel .s-feats{
  position:absolute;margin:0;padding:0;list-style:none;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.55cqw 1cqw;
}
.product-carousel .s-feats li{
  display:flex;align-items:flex-start;
  line-height:1.15;white-space:normal;font-weight:500;
}
.product-carousel .s-tick{flex:none;display:block}/* ---- Pocket Forex -------------------------------------------------- */

.product-carousel .slide-pocket .slide-frame{aspect-ratio:1885/834}
.product-carousel .slide-pocket .s-logo{left:10.03%;top:13.07%;width:3.183%}
.product-carousel .slide-pocket .s-name{left:14.483%;top:14.75%;color:#454e68}
.product-carousel .slide-pocket .s-hl{left:9.814%;top:28.30%;font-size:5.024cqw;line-height:5.520cqw;color:#151c26}
.product-carousel .slide-pocket .s-hl span:last-child{color:#f4760d;letter-spacing:.026em}
.product-carousel .slide-pocket .s-feats{left:9.977%;top:58.2%;width:40.4%}
.product-carousel .slide-pocket .s-feats li{font-size:1.000cqw;color:#5b6579;font-weight:400;gap:.580cqw;letter-spacing:-.012em}
.product-carousel .slide-pocket .s-tick{width:1.260cqw;height:1.260cqw;color:rgba(240,101,28,.72)}/* ---- Pocket FXCopy ------------------------------------------------- */

.product-carousel .slide-fxcopy .slide-frame{aspect-ratio:1882/836}
.product-carousel .slide-fxcopy .s-logo{left:4.357%;top:11.96%;width:3.613%}
.product-carousel .slide-fxcopy .s-name{left:9.299%;top:14.11%;color:#23253d}
.product-carousel .slide-fxcopy .s-hl{left:5.047%;top:25.10%;font-size:5.100cqw;line-height:5.400cqw;color:#fff}
/* one sentence, not a bullet list: it lives in a fixed band inside the
   violet panel (22.7 %–67.7 % of the artwork) and is centred in it, so a
   long Russian or German line never spills onto the pale artwork below */
.product-carousel .slide-fxcopy .s-sub{
  position:absolute;margin:0;
  left:5.047%;top:52.2%;width:45.5%;height:14.6%;
  display:grid;align-content:center;
  font-size:1.460cqw;line-height:1.560;font-weight:400;
  color:rgba(255,255,255,.76);opacity:1;letter-spacing:0;
  white-space:normal;
}
/* ---- Charti -------------------------------------------------------- */

.product-carousel .slide-charti .slide-frame{aspect-ratio:1897/829}
.product-carousel .slide-charti .s-logo{left:5.693%;top:9.41%;width:4.217%}
.product-carousel .slide-charti .s-name{left:11.281%;top:12.29%;color:#003234;letter-spacing:.02em}
.product-carousel .slide-charti .s-hl{left:6.379%;top:26.80%;font-size:5.600cqw;line-height:6.250cqw;color:#fff}
.product-carousel .slide-charti .s-hl .s-lime{color:#86f96a}
.product-carousel .slide-charti .s-feats{left:6.589%;top:58.2%;width:41%}
.product-carousel .slide-charti .s-feats li{font-size:1.080cqw;color:rgba(240,252,248,.75);font-weight:400;gap:1.054cqw}
.product-carousel .slide-charti .s-tick{width:1.580cqw;height:1.580cqw;color:rgba(140,242,92,.75)}/* =========================================================================
   3 · ARROWS  —  in the outer gutters, never on the card
   ========================================================================= */

.product-carousel .carousel-arrow{
  position:absolute;z-index:6;
  top:50%;                       /* the card is the whole track height now */
  transform:translateY(-50%);
  width:48px;height:48px;display:grid;place-items:center;
  border-radius:50%;
  border:1px solid #e6e7ec;background:#fff;
  box-shadow:0 6px 16px rgba(24,28,38,.10);
  cursor:pointer;
  transition:background .16s ease,box-shadow .16s ease,transform .16s ease;
}/* The arrows are pinned to the outer edges of the carousel column, which is the
   same 1040px column the tool grid occupies — their outer edge lines up with
   the left/right edge of the Forex Tool Box. */

.product-carousel .carousel-prev{left:0}
.product-carousel .carousel-next{right:0}
.product-carousel .carousel-arrow:hover{
  background:#fff;box-shadow:0 10px 22px rgba(24,28,38,.16);
  transform:translateY(-50%) scale(1.06);
}
.product-carousel .carousel-arrow::before{
  content:"";display:block;width:9px;height:9px;
  border-right:2px solid #3a3f48;border-bottom:2px solid #3a3f48;
}
.product-carousel .carousel-prev::before{transform:translateX(1px) rotate(135deg)}
.product-carousel .carousel-next::before{transform:translateX(-1px) rotate(-45deg)}/* =========================================================================
   4 · DOTS  —  centred inside the card, just above its bottom edge
   (the artwork leaves that strip empty on all three slides, so the dots sit
   in the banner itself instead of in a separate band underneath it)
   ========================================================================= */

.product-carousel .carousel-dots{
  position:absolute;left:50%;bottom:10px;transform:translateX(-50%);
  z-index:6;display:flex;align-items:center;gap:8px;
}
.product-carousel .carousel-dots button{
  width:7px;height:7px;padding:0;border:0;border-radius:50%;
  background:#cdd0d7;cursor:pointer;
  box-shadow:0 0 0 2px rgba(255,255,255,.55);
  transition:width .2s ease,background .2s ease;
}
.product-carousel .carousel-dots button.is-active{background:#f25b25;width:20px;border-radius:4px}/* =========================================================================
   5 · FOREX TOOL BOX  —  now 1.2× the banner card width, and pulled up
   (866.7px 5/6 card -> 1040px, i.e. exactly 1.2×; it still clamps to the
   available column on narrow screens. padding-top was 62px when a 44px dot
   band sat under the card — with the dots moved inside the banner the whole
   section can ride higher without ever touching it.)
   ========================================================================= */

.main-content .toolbox{
  max-width:min(1040px,100%);
  margin-left:auto;margin-right:auto;
  padding-top:46px;
  /* the sticky header floats 14px down + 64px tall — keep the heading clear
     of it when a sub-page links back to #toolbox */
  scroll-margin-top:104px;
}/* =========================================================================
   6 · RESPONSIVE
   ========================================================================= */

@media(max-width:780px){
  .product-carousel .carousel-track{max-width:100%;padding-bottom:0}
  .main-content .toolbox{max-width:100%;padding-top:34px}
  .product-carousel .slide-frame{border-radius:10px}/* no side gutter left at this width — float the arrows just inside the card */

  .product-carousel .carousel-arrow{
    width:34px;height:34px;
    top:50%;bottom:auto;           /* styles.css pins these to the bottom at this width */
    border:0;
    background:rgba(255,255,255,.9);
    box-shadow:0 4px 14px rgba(20,24,32,.2);
  }
  .product-carousel .carousel-prev{left:10px}
  .product-carousel .carousel-next{right:10px}
  .product-carousel .carousel-arrow::before{width:7px;height:7px}
  .product-carousel .carousel-dots{bottom:8px}
}

@media(max-width:520px){
  .product-carousel .carousel-dots button{width:6px;height:6px}
  .product-carousel .carousel-dots button.is-active{width:16px}
}

/* ==========================================================================
   Localised banners
   The artwork prints the headline, a thin rule at 55.4 % of the card and
   the feature block below it. Every language keeps those anchors — the
   rule therefore always sits above the feature list — and only the type
   sizes change, so no translation can push copy across the rule.
   ========================================================================== */
html:not([lang="en"]) .product-carousel .slide-type{padding:0}

html:not([lang="en"]) .product-carousel .s-hl{
  white-space:normal!important;
  max-width:46%;
  font-size:3.45cqw!important;
  line-height:1.16!important;
}
html:not([lang="en"]) .product-carousel .s-hl span{display:block}

html:not([lang="en"]) .product-carousel .s-sub{
  white-space:normal!important;
  max-width:46%;
  font-size:1.380cqw!important;
  line-height:1.520!important;
}

html:not([lang="en"]) .product-carousel .s-feats{gap:.5cqw 1cqw}
html:not([lang="en"]) .product-carousel .s-feats li{
  font-size:0.960cqw!important;
  line-height:1.2!important;
}

/* Chinese headlines are short enough to carry more weight than the rest */
html:is([lang="zh-CN"],[lang="zh-TW"]) .product-carousel .s-hl{font-size:4.3cqw!important;line-height:1.22!important}

/* Chinese labels run six to ten characters: two columns keep each one on a
   single line, three would break them mid-phrase */
html:is([lang="zh-CN"],[lang="zh-TW"]) .product-carousel .s-feats{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.45cqw .95cqw;
}
html:is([lang="zh-CN"],[lang="zh-TW"]) .product-carousel .s-feats li{
  font-size:1.260cqw!important;
  line-height:1.20!important;
  letter-spacing:0!important;
}

/* FXCopy carries one sentence, not a bullet list — Chinese needs a hair more
   size and leading to keep three balanced lines inside the violet panel */
html:is([lang="zh-CN"],[lang="zh-TW"]) .product-carousel .slide-fxcopy .s-sub{
  font-size:1.540cqw!important;
  line-height:1.560!important;
}
