/* Homepage presentation. The published theme continues to supply ink, blue and line tokens. */
.home-figma-v3 {
  --home-gutter: clamp(24px, 5.55vw, 80px);
  --home-frame: min(1280px, calc(100% - 2 * var(--home-gutter)));
  --home-space: clamp(40px, 5vw, 72px);
  --home-radius: 8px;
  --mfuu-header-height: 76px;
  --mfuu-banner-height: 508px;
  --mfuu-topic-width: 120px;
  --mfuu-inset: clamp(20px, 3vw, 44px);
}
.home-figma-v3 main .container, .home-figma-v3 .full-footer > .container {
  width: var(--home-frame);
  max-width: none;
}
.home-figma-v3 :is(#products, #home-catalog, #scenarios, #regions, #guide, #support, #faq) {
  scroll-margin-top: calc(var(--mfuu-header-height) + 12px);
}
.home-figma-v3 .section-title h2, .home-figma-v3 .region-intro h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -.025em;
}

/* Default slides use the editorial framing. Managed banners retain their own layout. */
.home-figma-v3.home-illustrated.mfuu-compact .mfuu-campaign:not(:has(.managed-banner)) {
  background: var(--white);
  border-bottom: 0;
}
.home-figma-v3.home-illustrated.mfuu-compact .mfuu-campaign:not(:has(.managed-banner)) .campaign-inner {
  padding-block: 32px 76px;
}
.home-figma-v3 .mfuu-campaign:not(:has(.managed-banner)) .campaign-copy {
  max-width: calc(51% - var(--mfuu-topic-width) - var(--mfuu-inset) + 56px);
}
.home-figma-v3.home-illustrated.mfuu-compact .mfuu-campaign:not(:has(.managed-banner)) .mfuu-art {
  inset: 24px 0 34px 50.5%;
  border-radius: var(--home-radius);
  height: auto;
}
.home-figma-v3.home-illustrated.mfuu-compact .mfuu-campaign:not(:has(.managed-banner)) .mfuu-art img {
  mix-blend-mode: normal;
  object-position: 69% center;
}
.home-figma-v3.home-illustrated.mfuu-compact .mfuu-campaign:not(:has(.managed-banner)) .mfuu-art::after { content: none; }
.home-figma-v3.home-illustrated.mfuu-compact .mfuu-campaign:not(:has(.managed-banner)) .mfuu-subtitle {
  font-weight: 650;
  color: var(--ink);
}
.home-figma-v3.home-illustrated .mfuu-campaign:not(:has(.managed-banner)) .mfuu-secondary {
  color: var(--blue);
  background: transparent;
  border-color: transparent;
}
.home-figma-v3.home-illustrated .mfuu-campaign:not(:has(.managed-banner)) .mfuu-markers { bottom: 42px; }
.home-figma-v3.home-illustrated.mfuu-compact .quick-links {
  margin-top: 0;
  min-height: 78px;
  padding-block: 8px;
  border-inline: 0;
  border-radius: 0;
}
.home-figma-v3.home-illustrated .quick-links .quick-icon { width: 34px; height: 34px; padding: 6px; }

/* Illustrated entry points sit above the existing live recommendation tabs. */
.home-figma-v3 #products { width: var(--home-frame); padding-block: var(--home-space); }
.home-showcase-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.home-showcase-heading .section-title { margin: 0; }
.home-showcase-heading .section-title > p:empty { display: none; }
.home-section-link, .home-showcase-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
}
.home-section-link { min-height: 44px; }
.home-section-link svg, .home-showcase-copy svg, .home-figma-v3 .full-tabs svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.home-showcase { display: grid; grid-template-columns: 1.57fr 1fr 1fr; gap: 12px; }
.home-showcase-card {
  display: flex;
  min-width: 0;
  min-height: 344px;
  flex-direction: column;
  gap: 21px;
  padding: 23px;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius);
  background: var(--white);
}
.home-showcase-feature { background: var(--home-surface); }
.home-showcase-card > img {
  display: block;
  width: 100%;
  height: 162px;
  object-fit: cover;
  border-radius: 5px;
  background: var(--home-art-surface);
}
.home-showcase-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.home-showcase-copy h3 { font-size: clamp(21px, 2vw, 25px); font-weight: 700; line-height: 1.25; }
.home-showcase-feature h3 { font-size: clamp(23px, 2.2vw, 31px); }
.home-showcase-copy p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.home-showcase-copy > span { margin-top: auto; }
.home-showcase-card:focus-visible, .home-section-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (hover: hover) {
  .home-showcase-card:hover { border-color: var(--blue); }
  .home-showcase-card:hover .home-showcase-copy > span, .home-section-link:hover { text-decoration: underline; text-underline-offset: 4px; }
}
.home-figma-v3 #home-catalog { margin-top: clamp(36px, 4vw, 56px); }
.home-figma-v3 .product-panel { grid-template-columns: minmax(0, 1fr); }
.home-figma-v3 .home-product-feature[hidden] { display: none; }

/* The tabs, panel state, and destinations are still driven by the homepage scripts. */
.home-figma-v3 .full-scenarios { padding-block: var(--home-space); background: var(--home-surface); }
.home-scenarios-layout {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1fr);
  grid-template-areas: "heading art" "tabs art" "panel art" "more art";
  align-items: start;
  gap: 12px clamp(28px, 5.5vw, 80px);
}
.home-scenarios-layout > .section-title { grid-area: heading; margin: 0 0 12px; }
.home-figma-v3 .full-tabs { grid-area: tabs; display: grid; border-bottom: 0; }
.home-figma-v3 .full-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 10px 0;
  min-height: 64px;
  border: 0;
  border-top: 1px solid var(--home-border);
  text-align: left;
  white-space: normal;
  line-height: 1.45;
}
.home-figma-v3 .full-tabs [aria-selected=true] { background: transparent; color: var(--blue); font-weight: 650; }
.home-figma-v3 .full-tabs small { display: block; color: var(--muted); margin-top: 3px; font-size: 13px; font-weight: 400; }
.home-figma-v3 .full-tabs svg { color: var(--blue); }
.home-figma-v3 .full-scene-panel { grid-area: panel; min-height: 0; background: none; border: 0; }
.home-figma-v3 .full-scene-copy { width: auto; padding: 15px 0 0; border-top: 1px solid var(--home-border); }
.home-figma-v3 .full-scene-copy h3 { font-size: 21px; margin: 0 0 7px; }
.home-figma-v3 .full-scene-copy .full-label { display: none; }
.home-figma-v3 .full-scene-copy ul { margin-block: 10px 14px; }
.home-figma-v3 .full-scene-art {
  grid-area: art;
  position: sticky;
  top: calc(var(--mfuu-header-height) + 16px);
  inset-inline: auto;
  bottom: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 612 / 349;
  overflow: hidden;
  border-radius: var(--home-radius);
}
.home-figma-v3 .full-scene-art img { position: absolute; object-position: 72% center; mix-blend-mode: normal; }
.home-figma-v3 .full-scene-art::after { content: none; }
.home-figma-v3 .full-scene-more { grid-area: more; text-align: left; margin-top: 6px; }

.home-figma-v3 .full-regions { background: var(--white); }
.home-figma-v3 .region-layout {
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  grid-template-areas: "intro map" "detail map";
  grid-template-rows: 1fr 1fr;
  align-items: end;
  gap: 18px clamp(24px, 5vw, 72px);
  padding-block: var(--home-space);
}
.home-figma-v3 .region-intro { grid-area: intro; }
.home-figma-v3 .region-intro h2 { margin: 0 0 16px; }
.home-figma-v3 .full-region-tabs { margin-top: 24px; }
.home-figma-v3 .region-map-panel {
  grid-area: map;
  align-self: center;
  display: grid;
  align-items: center;
  min-height: 0;
  aspect-ratio: 2 / 1;
  background: var(--home-surface);
  border-radius: var(--home-radius);
  overflow: hidden;
}
.home-figma-v3 .region-world-map { width: 96%; margin-inline: auto; padding: 0; }
.home-figma-v3 .region-guidance {
  grid-area: detail;
  align-self: start;
  position: static;
  padding: 0;
  background: transparent;
  border: 0;
}
.home-figma-v3 #region-caption { display: none; }
.home-figma-v3 #region-title { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.home-figma-v3 .region-map-dot.selected { background: var(--blue); color: var(--white); }
.home-figma-v3 .region-map-dot.selected::before { background: var(--white); }

.home-figma-v3 .home-support-layout {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 2.4fr);
  gap: 24px;
}
.home-figma-v3 .home-support-layout .section-title { margin: 0; }
.home-figma-v3 .home-support-layout .section-title h2 { margin-bottom: 7px; }
.home-figma-v3 .guide-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; border: 0; background: none; }
.home-figma-v3 .guide-grid > a {
  align-items: flex-start;
  min-height: 80px;
  padding: 14px 0;
  gap: 6px;
  border: 0;
  border-top: 1px solid var(--home-border);
  background: none;
}
.home-figma-v3 .guide-grid strong, .home-figma-v3 .guide-grid small { display: block; }
.home-figma-v3 .guide-grid strong { color: var(--ink); font-size: 16px; }
.home-figma-v3 .guide-grid small { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.home-figma-v3 .guide-grid .guide-arrow { width: 17px; height: 17px; margin: 3px 0 0 auto; }
.home-figma-v3 .full-footer-layout { column-gap: clamp(20px,4vw,60px); }

@media (min-width: 701px) and (max-width: 1060px) {
  .home-figma-v3 {
    --mfuu-topic-width: 92px;
    --mfuu-inset: 18px;
    --mfuu-banner-height: 440px;
  }
  .home-figma-v3.home-illustrated.mfuu-compact .mfuu-campaign:not(:has(.managed-banner)) h1,
  .home-figma-v3.home-illustrated.mfuu-compact .mfuu-campaign:not(:has(.managed-banner)) h2 { font-size: clamp(30px,4.5vw,44px); }
  .home-figma-v3 .home-showcase-card { padding: 15px; }
  .home-figma-v3 .home-showcase-card > img { height: 143px; }
}
@media (max-width: 900px) {
  .home-figma-v3 .guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .home-figma-v3 {
    --home-gutter: clamp(16px, 6.15vw, 24px);
    --mfuu-header-height: 66px;
    --mfuu-banner-height: 550px;
  }
  .home-figma-v3.home-illustrated.mfuu-compact .mfuu-campaign:not(:has(.managed-banner)) .campaign-inner {
    min-height: var(--mfuu-banner-height);
    padding: 27px 0 295px;
  }
  .home-figma-v3 .mfuu-campaign:not(:has(.managed-banner)) .campaign-copy { max-width: none; }
  .home-figma-v3.home-illustrated.mfuu-compact .mfuu-campaign:not(:has(.managed-banner)) .mfuu-art {
    inset: auto 0 86px;
    height: auto;
    aspect-ratio: 342 / 187;
    max-height: 195px;
  }
  .home-figma-v3.home-illustrated.mfuu-compact .mfuu-campaign:not(:has(.managed-banner)) .carousel-pips {
    top: auto;
    bottom: 39px;
    width: 100%;
    flex-direction: row;
    gap: 0;
    border-right: 0;
    border-top: 1px solid var(--home-border);
  }
  .home-figma-v3.home-illustrated.mfuu-compact .mfuu-campaign:not(:has(.managed-banner)) .carousel-pips button {
    flex: 1;
    min-width: 0;
    padding: 8px 4px;
    text-align: center;
    font-size: clamp(11px, 3.2vw, 13px);
  }
  .home-figma-v3.home-illustrated.mfuu-compact .mfuu-campaign:not(:has(.managed-banner)) .carousel-pips [aria-pressed=true]::after {
    top: -1px;
    left: 20%;
    right: auto;
    width: 60%;
    height: 2px;
    transform: none;
  }
  .home-figma-v3.home-illustrated .mfuu-campaign:not(:has(.managed-banner)) .mfuu-markers { bottom: -4px; left: -9px; }
  .home-figma-v3.home-illustrated.mfuu-compact .quick-links { width: var(--home-frame); }
  .home-figma-v3.home-illustrated.mfuu-compact .quick-links > a { padding: 6px 4px; gap: 4px; }
  .home-figma-v3.home-illustrated .quick-links .quick-icon { width: 25px; height: 25px; padding: 2px; }
  .home-showcase { grid-template-columns: 1fr; }
  .home-showcase-heading { gap: 2px 10px; margin-bottom: 15px; }
  .home-showcase-heading .section-title h2 { font-size: clamp(23px, 7vw, 29px); }
  .home-showcase-heading .home-section-link { font-size: 13px; }
  .home-showcase-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(82px, 26vw, 102px);
    min-height: 130px;
    align-items: center;
    gap: 10px;
    padding: 14px;
  }
  .home-showcase-card > img { grid-column: 2; grid-row: 1; height: 95px; }
  .home-showcase-copy { grid-column: 1; grid-row: 1; gap: 5px; }
  .home-showcase-copy h3 { font-size: 19px; }
  .home-showcase-copy p { font-size: 13px; margin-bottom: 4px; }
  .home-showcase-copy > span { font-size: 13px; }
  .home-showcase-feature { display: flex; align-items: stretch; gap: 15px; min-height: 276px; }
  .home-showcase-feature > img { width: 100%; height: 142px; }
  .home-showcase-feature h3 { font-size: 24px; }
  .home-scenarios-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: "heading" "art" "tabs" "panel" "more"; }
  .home-figma-v3 .full-scene-art { position: relative; top: 0; aspect-ratio: 342 / 130; }
  .home-figma-v3 .full-tabs button { min-height: 68px; }
  .home-figma-v3 .region-layout {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto;
    grid-template-areas: "heading" "description" "map" "tabs" "detail";
    align-items: start;
    gap: 12px;
  }
  .home-figma-v3 .region-intro { grid-area: auto; display: contents; }
  .home-figma-v3 .region-intro h2 { grid-area: heading; margin: 0; }
  .home-figma-v3 .region-intro > p { grid-area: description; margin: 0; }
  .home-figma-v3 .full-region-tabs { grid-area: tabs; margin-top: 0; }
  .home-figma-v3 .region-map-dot[data-map=cn] { left: 67%; top: 21%; }
  .home-figma-v3 .region-map-dot[data-map=hk] { left: 70%; top: 46%; }
  .home-figma-v3 .region-map-dot[data-map=us] { left: 15%; top: 29%; }
  .home-figma-v3 .home-support-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .home-figma-v3 .home-support-layout .section-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
  .home-figma-v3 .home-support-layout .section-title h2 { margin: 0; }
  .home-figma-v3 .guide-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .home-figma-v3 .guide-grid > a { min-height: 63px; }
}
