/* Local preview only (motion-preview branch): 60/30/10 palette tighten + micro-interactions.
   Brand --green / --orange are unchanged. Neutrals are tinted ~4% toward the accent hue.
   Accent is reserved for primary WhatsApp CTAs, focus/selection, and the H1 .orange highlight. */

/* --- A. Tokens and warm neutrals --- */
:root{
  --paper:#f4f0ea;      /* #f4f5f1 + 4% #ff7b45 */
  --muted:#b8c0b3;      /* #b5c3b8 + 4% */
  --line:#3e5244;       /* #365044 + 4% */
  --surface:#fffaf8;    /* #ffffff + 4% */
  --hairline:#e0e0d6;   /* #dfe4dc + 4% */
  --ink-soft:#40443d;   /* #38423d + 4% */
  --on-dark:#c9cec4;    /* #c7d1c9 + 4% */
}

.hm-cards-light li,
.hm-notes a,
.pd-faq details,
.faq-item,
.svc-table,
.hm-sec.hm-dark .sv-six li{
  background:var(--surface);
  border-color:var(--hairline);
}
.svc-table td,
.sv-sec .sv-block,
.pd-faq-wrap{border-color:var(--hairline)}
.hm-lede p,
.hm-p,
.hm-cards-light p,
.hm-notes p,
.sv-block p,
.sv-block .sv-points,
.pd-faq details p,
.svc-result{color:var(--ink-soft)}
.hm-lede-d,
.hm-dark .hm-cards p,
.hm-example>p,
.hm-example li span,
.hm-demos p{color:var(--on-dark)}
.hm-cards-light p{color:var(--ink-soft)}
/* Light cards inside a dark section: beat .hm-dark .hm-cards p (--on-dark) */
.hm-dark .hm-cards-light p,
.hm-sec.hm-dark .sv-six p{color:var(--ink-soft)}
.hm-notes time,
.svc-note,
.svc-region,
.sv-block .sv-price{color:#5a6152}

/* --- B. Quiet decorative accent; keep CTAs and the H1 highlight --- */
.eyebrow i{background:#8a837c}
.hm-hero .hm-fde{border-left-color:var(--line)}
.hm-n{background:#1a3a30;color:var(--paper)}
.hm-demos .hm-n{background:none;color:var(--on-dark)}
.hm-proof{border-left-color:var(--line)}
.hm-proof li b{color:var(--paper)}
.hm-link,
.hm-more a,
.hm-go,
.svc-table a,
.svc-more a,
.sv-block .hm-link,
.sv-block .sv-price strong,
.hm-svc .hm-price,
.hm-svc a:hover h3{color:#1e4a3e}
.hm-dark .hm-link,
.hm-dark .hm-more a,
.hm-dark .hm-go{color:var(--paper)}
.hm-founder img{border-color:var(--line)}
.hm-role{color:var(--muted)}
.hm-area>.eyebrow{color:var(--muted)}
.hm-side-tag{color:var(--paper);border-color:var(--line)}
.hm-side-list strong{color:var(--paper)}
.hm-side-ico{color:var(--paper)}
.hm-example li svg,
.hm-mg-proof li svg{color:var(--muted)}
.sv-six .sv-ico{background:#ece6dc;color:var(--green)}
.fn-g strong{color:var(--muted)}
.pd-kicker,
.wb-tag{color:#5a6152}
.paper .wb-tag{color:#5a6152}
.hm-six-l{color:var(--muted)}
.pd-faq summary::after,
.faq-item summary:after{color:#6a6e66}
.button.ghost:hover{background:transparent;border-color:var(--paper);color:var(--paper)}
.hm-stepsnav a:hover{border-color:var(--muted);color:inherit}
.hm-demos a:hover,
.hm-notes a:hover,
.pd-faq details:hover{border-color:#c8c4ba}
header nav a:hover{color:var(--paper)}
header.menu-open nav a[aria-current]{color:var(--paper)}
.svc-combo .wb-tag{color:var(--paper)}

/* --- C. Motion: CTA press, card lift, FAQ expand. Transform/opacity/height only. --- */
.button,
.header-contact.hc-wa{
  transition:transform 180ms cubic-bezier(.34,1.56,.64,1),background .2s,border-color .2s,color .2s;
}
.button:hover,
.header-contact.hc-wa:hover{transform:translateY(-2px)}
.button:active,
.header-contact.hc-wa:active{transform:scale(.95)}

.hm-cards li,
.hm-notes a,
.hm-demos a,
.hm-side{
  transition:transform 350ms cubic-bezier(.16,1,.3,1),box-shadow 350ms cubic-bezier(.16,1,.3,1),border-color 350ms cubic-bezier(.16,1,.3,1);
}
.hm-cards li:hover,
.hm-notes a:hover,
.hm-demos a:hover,
.hm-side:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(19,45,37,.16);
}
.hm-cards li:hover,
.hm-side:hover{box-shadow:0 12px 28px rgba(0,0,0,.28)}
.hm-cards-light li:hover,
.hm-notes a:hover{box-shadow:0 12px 28px rgba(19,45,37,.16)}

html{interpolate-size:allow-keywords}
.pd-faq details::details-content,
.faq-item::details-content{
  transition:height 350ms cubic-bezier(.16,1,.3,1),content-visibility 350ms allow-discrete,opacity 350ms cubic-bezier(.16,1,.3,1);
  height:0;
  opacity:0;
  overflow:clip;
}
.pd-faq details[open]::details-content,
.faq-item[open]::details-content{height:auto;opacity:1}

@media (prefers-reduced-motion:reduce){
  .button,
  .header-contact.hc-wa,
  .hm-cards li,
  .hm-notes a,
  .hm-demos a,
  .hm-side,
  .pd-faq details::details-content,
  .faq-item::details-content{transition:none}
  .button:hover,
  .button:active,
  .header-contact.hc-wa:hover,
  .header-contact.hc-wa:active,
  .hm-cards li:hover,
  .hm-notes a:hover,
  .hm-demos a:hover,
  .hm-side:hover{transform:none;box-shadow:none}
}

/* --- D. Hero outside/inside parts (preview: hero-mobile-preview) --- */
.hm-hero h1 .orange{white-space:nowrap}
.hm-hero .hm-parts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 16px;
}
.hm-hero .hm-part{
  display:inline-flex;
  align-items:baseline;
  gap:6px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 12px;
  font-size:13.5px;
  line-height:1.3;
  color:var(--paper);
}
.hm-hero .hm-part b{
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:700;
}

/* Breathing space between the hero CTAs and the 3D image */
.hm-hero .hm-3d{margin-top:32px}
@media (max-width:760px){
  .hm-hero .hm-3d{margin-top:28px}
}

/* Six-employee chips: flex/gap lived only under unused .hm-flow, so #six pills
   were inline, had no gap, and long labels like "Customer Service AI" wrapped
   inside a broken outline. */
.hm-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.hm-chip{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
}
.hm-hero .hm-part{white-space:nowrap}

/* --- E. Mobile hit areas: lang switcher, quote links, footer --- */
@media (max-width:760px){
  header.header .header-actions .lang-switch{
    gap:2px;
    font-size:12px;
  }
  /* Drop the '|' gutters on small screens so EN / 中文 / BM + Menu stay on one row.
     Visual width stays close to the previous 390px size; 44×44 ::after is the tap target.
     This also relaxes the 389px shrink (11px / 3px padding) in mobile-nav.css. */
  header.header .header-actions .lang-switch > span{display:none}
  /* 375 and 360 cannot fit logo + langs + Menu with the default 20px padding and 10px gaps. */
  @media (max-width:389px){
    header.header{padding:0 16px;gap:0 4px}
  }
  header.header .header-actions .lang-switch a{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:10px 5px;
    font-size:12px;
    box-sizing:border-box;
  }
  header.header .header-actions .lang-switch a::after{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:44px;
    height:44px;
    transform:translate(-50%,-50%);
  }
  .hm-svc .hm-price a,
  .fn-g a,
  footer .legal a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
    padding:10px 0;
    box-sizing:border-box;
  }
  .fn-g{gap:10px 18px}
  footer .legal a{margin-right:6px}
}
