/* ═══════════════════════════════════════════════════════════════════════
   Moneki V3 — Mobile / tablet responsive layer  (loaded LAST)
   Every rule lives inside a media query (except new mobile-only elements that
   are display:none on desktop), so the ≥1160px desktop layout is unchanged.
   Tiers:  ≤1160 recompose fixed frames · ≤768 nav panel · ≤640 phone · ≤400 xs
   Mobile is an intentionally recomposed state — not a shrunk desktop.
   ═══════════════════════════════════════════════════════════════════════ */

/* Stop iOS/Android from auto-inflating text ("font boosting") — it was silently
   enlarging body/footer copy far beyond the CSS px on phones. No effect on desktop. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Mobile-only / desktop-only copy swaps (see hero + CTA) */
.v3-only-m { display: none; }

/* Hamburger — hidden on desktop, revealed ≤768 */
.v3-nav__burger {
  display: none; flex: none; width: 40px; height: 40px; padding: 0;
  border: none; border-radius: 12px; background: var(--surface-main);
  box-shadow: var(--fig-sh-control); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.v3-nav__burger span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--fig-ink); transition: transform .22s ease, opacity .18s ease; }
.v3-nav.is-open .v3-nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.v3-nav.is-open .v3-nav__burger span:nth-child(2) { opacity: 0; }
.v3-nav.is-open .v3-nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile selector prev/next — hidden on desktop */
.v3-selector__nav { display: none; }

/* ════════════════════════ ≤1160px — recompose frames ════════════════════ */
@media (max-width: 1160px) {
  html, body { overflow-x: hidden; }
  :root { --v3-gutter-sm: 28px; }        /* bigger overall mobile side margin */

  /* ---- HERO: visual first, then text, then compact tags ---- */
  .v3-hero { padding: 22px 0 40px; }
  .v3-hero__frame { display: flex; flex-direction: column; align-items: center; width: 100%; height: auto; padding: 0 var(--v3-gutter-sm); min-height: 0; }
  .v3-hero .v3-nav { order: 0; position: static; width: 100%; margin: 0 0 8px; }
  .v3-tilewrap { order: 1; position: relative; left: auto; top: auto; align-self: center; transform-origin: center top; margin: 16px 0 4px; }
  .v3-hero__copy { order: 2; position: static; transform: none; width: 100%; max-width: 520px; margin-top: 38px; text-align: center; align-items: center; }
  .v3-hero__group--pos { gap: 11px; }                 /* eyebrow → headline breathing room */
  .v3-hero__group { align-items: center; }
  .v3-hero__body { margin-top: 13px; text-align: center; font-size: 1rem; line-height: 1.7; }
  .v3-hero__group--action { margin-top: 15px; }
  .v3-hero__cta { justify-content: center; }
  .v3-hero__trust.v3-only-m { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: left; margin-top: 14px; }
  .v3-hero__trust.v3-only-m img { margin: 0; flex: none; }   /* dot inline, centred with the text line */
  .v3-valuebar { order: 3; position: static; left: auto; top: auto; width: 100%; max-width: 520px; height: auto; margin-top: 44px; padding: 22px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; border-radius: 22px; }
  .v3-valuebar__item { --vb-h: auto; align-items: center; gap: 12px; }
  .v3-valuebar__icon svg { height: 26px; width: 26px; }
  .v3-valuebar__text { height: auto; justify-content: center; gap: 1px; }
  .v3-valuebar__text span { display: none; }          /* compact: icon + one short phrase */
  .v3-valuebar__text strong { font-size: 13.5px; }
  .v3-valuebar__div { display: none; }

  /* ---- WHY / VIDEO ---- */
  .v3-video { overflow: clip; }
  .v3-video__frame { width: 100%; height: auto; padding: clamp(74px,10vw,104px) var(--v3-gutter-sm) clamp(66px,8vw,88px); display: flex; flex-direction: column; align-items: center; }
  .v3-video__eyebrow { position: static; margin-bottom: 28px; }
  .v3-video__screen { position: relative; left: auto; top: auto; width: 100%; max-width: 640px; height: clamp(190px,46vw,340px); margin: 0 auto 32px; }
  .v3-video__play { left: 50%; top: 50%; transform: translate(-50%,-50%); width: clamp(96px,22vw,150px); height: clamp(96px,22vw,150px); }
  .v3-video__pill { right: 14px; bottom: 14px; }
  .v3-video__cards { position: static; left: auto; top: auto; width: 100%; max-width: 640px; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .v3-video__card { position: static; width: 100%; height: auto; min-height: 74px; }
  .v3-video__card:nth-child(n) { top: auto; }

  /* ---- PRODUCT SHOWCASE ---- */
  .v3-product { overflow: clip; }
  .v3-product__frame { width: 100%; height: auto; padding: clamp(80px,12vw,124px) var(--v3-gutter-sm); }
  .v3 .v3-product__img { display: none; }
  .v3-product__header { position: static; transform: none; left: auto; top: auto; width: 100%; max-width: 560px; margin: 0 auto; }
  .v3-product__title { font-size: clamp(1.8rem,1.2rem+2.4vw,2.4rem); }
  .v3-product__body { width: 100%; font-size: 1rem; line-height: 1.7; }

  /* ---- INSIGHT / FLOW SPINE ---- */
  .v3-insight__inner { width: 100%; padding: clamp(80px,11vw,120px) var(--v3-gutter-sm); }
  .v3-insight__title { width: 100%; font-size: clamp(1.8rem,1.3rem+2.4vw,2.4rem); line-height: 1.14; }
  .v3-insight__body { width: 100%; font-size: 1rem; }
  .v3-insight__tour { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .v3-prompt { width: 100%; max-width: 560px; }
  .v3-chips { flex-wrap: wrap; justify-content: center; }
  .v3-insight__answer { width: 100%; max-width: 560px; }
  .v3-answer__viz { overflow-x: auto; }

  .v3-explorer { width: 100%; flex-direction: column; gap: 20px; margin-top: clamp(38px,6vw,64px); align-items: stretch; }
  .v3 .v3-insight__blob { display: none; }
  /* Selector → single active card + prev/next (no long vertical list) */
  .v3-selector { width: 100%; height: auto; max-height: none; overflow: visible; }
  .v3-selector__list { position: static; transform: none !important; top: auto; gap: 0; }
  .v3-selector__fade { display: none; }
  .v3-selector__item { display: none; }
  .v3-selector__item.is-active { display: flex; }
  .v3-selector__caret { display: none; }
  .v3-selector__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
  .v3-selector__navbtn { flex: none; width: 42px; height: 42px; border: none; border-radius: 999px; background: var(--fig-surface); box-shadow: var(--fig-sh-control); color: var(--fig-ink); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
  .v3-selector__navbtn:active { box-shadow: var(--sh-press); }
  .v3-selector__count { font-weight: 700; font-size: 12.5px; color: var(--fig-muted); letter-spacing: .3px; }

  /* Preview: fluid, content fully contained (no fixed height clipping) */
  .v3-preview { position: relative; z-index: 1; width: 100%; height: auto; padding: 20px 16px 22px; }
  .v3-preview__title { position: static; }
  .v3-preview__desc { position: static; width: auto; margin: 6px 0 12px; }
  .v3-preview__live { position: static; margin: 0 0 14px; }   /* stack under title/desc — no overlap */
  .v3-preview__ui { position: relative; left: auto; top: auto; width: 100%; height: auto; min-height: 240px; }
  .v3-preview__ui .pv { position: relative; inset: auto; }     /* flow so nothing clips */

  /* ---- TRUST & CONTROL ---- */
  .v3-trust { overflow: clip; }
  .v3-trust__frame { width: 100%; height: auto; padding: clamp(74px,10vw,104px) var(--v3-gutter-sm); display: flex; flex-direction: column; }
  .v3-trust__eyebrow, .v3-trust__title, .v3-trust__body, .v3-trust__link { position: static; left: auto; top: auto; width: auto; }
  .v3-trust__title { margin: 12px 0 0; font-size: clamp(1.7rem,1.2rem+2.2vw,2rem); }
  .v3-trust__body { margin: 14px 0 0; font-size: 1rem; }
  .v3-trust__frame > .v3-trust__card { position: static; width: 100%; height: auto; margin-top: 14px; }
  .v3-trust__frame > .v3-trust__card:first-of-type { margin-top: 28px; }
  .v3-trust__link { margin-top: 24px; }

  /* ---- FAQ (content-driven height, no giant gaps) ---- */
  .v3-faq__frame { width: 100%; height: auto; padding: clamp(74px,10vw,104px) var(--v3-gutter-sm); }
  .v3-faq__eyebrow, .v3-faq__title { position: static; left: auto; top: auto; }
  .v3-faq__title { margin: 10px 0 0; font-size: clamp(1.7rem,1.2rem+2.2vw,2.1rem); }
  .v3-faq__list { position: static; left: auto; top: auto; width: 100%; margin-top: 22px; }
  .v3-faq__row { flex-direction: column; gap: 8px; padding: 20px 0; position: relative; }
  .v3-faq__q { flex: 0 0 auto; width: auto; font-size: 1rem; padding-right: 28px; }
  .v3-faq__a { font-size: 14px; }
  .v3-faq__mark { position: absolute; right: 0; top: 20px; }

  /* ---- FINAL CTA ---- */
  .v3-cta__frame { width: 100%; height: auto; padding: clamp(40px,7vw,64px) var(--v3-gutter-sm); }
  .v3-cta__card { position: static; width: 100%; height: auto; border-radius: 28px; }
  .v3-cta__content { position: static; inset: auto; padding: clamp(40px,8vw,60px) clamp(20px,5vw,40px); }
  .v3-cta__title { font-size: clamp(1.65rem,1.2rem+2vw,2.1rem); line-height: 1.22; max-width: 15ch; }
  .v3-cta__body { width: 100%; font-size: 1rem; line-height: 1.65; }

  /* ---- FOOTER ---- */
  .v3-footer__frame { width: 100%; height: auto; margin: 0; padding: clamp(44px,6vw,60px) var(--v3-gutter-sm) 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .v3-footer__brand { position: static; grid-column: 1 / -1; min-width: 0; }
  .v3-footer__tagline { max-width: 100%; overflow-wrap: anywhere; }
  .v3-footer__col { position: static; left: auto !important; min-width: 0; }
  .v3-footer__rule { position: static; grid-column: 1 / -1; margin: 4px 0; }
  .v3-footer__copy { position: static; grid-column: 1 / -1; }
  .v3-footer__legal { position: static; grid-column: 1 / -1; }

  /* ---- SIDE PAGES ---- */
  .v3-phero__stage { display: none; }
  .v3-phero { padding-block: clamp(52px,9vw,96px) clamp(60px,9vw,104px); }
  .v3-psec { padding-block: clamp(72px,10vw,104px); }
  .v3-psec--tight { padding-block: clamp(56px,8vw,88px); }
  .v3-split { grid-template-columns: 1fr; }
}

/* ════════════════════════ ≤768px — nav panel ════════════════════════════ */
@media (max-width: 768px) {
  .v3-only-m { display: block; }
  .v3-only-d { display: none; }
  .v3-nav { flex-wrap: wrap; align-items: center; height: auto; padding: 10px 12px 10px 20px; }
  .v3-nav.is-open { border-radius: 22px; padding-bottom: 16px; }   /* rounded rectangle, not a stretched pill */
  .v3-nav__brand { order: 0; }
  .v3-nav__burger { display: inline-flex; order: 1; margin-left: auto; }
  .v3-nav__links { display: none; order: 2; }
  .v3-nav__cta { display: none; order: 3; }
  .v3-nav.is-open .v3-nav__links { display: flex; flex-basis: 100%; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; margin-top: 14px; }
  .v3-nav.is-open .v3-nav__links a { padding: 11px 8px; font-size: 16px; border-radius: 10px; }
  .v3-nav.is-open .v3-nav__links a:hover { background: var(--surface-main); }
  .v3-nav.is-open .v3-nav__cta { display: flex; flex-basis: 100%; width: 100%; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.07); }
  .v3-nav.is-open .v3-btn--nav { flex: 1 1 auto; text-align: center; }
  .v3-pageheader { overflow: visible; }
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE DESIGN SYSTEM  (≤768) — a distinct editorial scale, NOT scaled-down
   desktop. Its own type ramp + spacing rhythm, applied consistently to every
   section. Desktop (≥1160) never sees any of this.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    /* ── type ramp (mobile) ── */
    --m-h1: 27px;          /* hero primary headline */
    --m-h2: 22px;          /* section headlines */
    --m-h2-cta: 23px;      /* closing CTA headline */
    --m-body: 15px;        /* supporting copy */
    --m-body-sm: 13.5px;   /* dense / meta copy */
    --m-lh-head: 1.32;
    --m-lh-body: 1.68;
    /* ── spacing rhythm (mobile) ── */
    --m-gutter: 24px;         /* one side margin for the whole page */
    --m-eyebrow-gap: 10px;    /* eyebrow → headline : tight */
    --m-head-gap: 14px;       /* headline → body : medium */
    --m-body-cta-gap: 20px;   /* body → CTA : medium */
    --m-sec-y: 58px;          /* section top/bottom padding */
    --v3-gutter-sm: var(--m-gutter);
  }

  /* ---- consistent section padding (one grid, one rhythm) ---- */
  .v3-video__frame,
  .v3-product__frame,
  .v3-insight__inner,
  .v3-trust__frame,
  .v3-faq__frame {
    padding-top: var(--m-sec-y); padding-bottom: var(--m-sec-y);
    padding-left: var(--m-gutter); padding-right: var(--m-gutter);
  }

  /* ---- headline scale + rhythm ----
     text-wrap:pretty (not balance) on mobile: balance shrinks the box to its
     longest line, which forced near-square blocks + orphaned characters. */
  .v3-hero__h1 { font-size: var(--m-h1); line-height: 1.26; letter-spacing: -0.4px; text-wrap: pretty; }
  .v3-product__title,
  .v3-insight__title,
  .v3-trust__title,
  .v3-faq__title {
    font-size: var(--m-h2); line-height: var(--m-lh-head); font-weight: 700;
    letter-spacing: -0.2px; margin-top: var(--m-eyebrow-gap); text-wrap: pretty;
  }
  .v3-cta__title {
    font-size: var(--m-h2-cta); line-height: 1.34; font-weight: 800;
    letter-spacing: -0.2px; margin-top: var(--m-eyebrow-gap); text-wrap: pretty;
    max-width: none;   /* was 15ch (≈165px) — forced the "那件/事，" split */
  }

  /* ---- supporting copy: refined subheading, not a second headline ---- */
  .v3-hero__body,
  .v3-product__body,
  .v3-insight__body,
  .v3-trust__body,
  .v3-cta__body {
    font-size: var(--m-body); line-height: var(--m-lh-body); font-weight: 500;
    margin-top: var(--m-head-gap);
  }
  .v3-faq__a { font-size: var(--m-body-sm); line-height: 1.6; }

  /* ---- HERO: one continuous composition, tighter rhythm ---- */
  .v3-hero { padding: 18px 0 44px; }
  .v3-hero .v3-nav { margin-bottom: 4px; }
  .v3-tilewrap { margin: 14px 0 0; }
  .v3-hero__copy { margin-top: 22px; gap: 0; }       /* visual → eyebrow/title group; kill 44px desktop gap, rhythm via child margins */
  .v3-hero__group--pos { gap: var(--m-eyebrow-gap); }
  .v3-hero__body { margin-top: 12px; max-width: 34ch; }
  .v3-hero__group--action { margin-top: var(--m-body-cta-gap); gap: 12px; }
  .v3-hero__trust.v3-only-m { margin-top: 12px; font-size: var(--m-body-sm); }

  /* ---- staggered floating tiles — gives the hero visual life ---- */
  .v3-tile--fulltile, .v3-tile--icon { animation: m-float 4.6s ease-in-out infinite alternate; will-change: transform; }
  .v3-tile--fulltile:nth-of-type(2n)   { animation-duration: 5.4s; animation-delay: -1.2s; }
  .v3-tile--fulltile:nth-of-type(3n)   { animation-duration: 6.1s; animation-delay: -2.4s; }
  .v3-tile--icon:nth-of-type(2n)       { animation-duration: 5.8s; animation-delay: -0.8s; }
  .v3-tile--icon:nth-of-type(3n)       { animation-duration: 5.1s; animation-delay: -2.0s; }

  /* ---- TRUST cards: lower profile, tighter internal padding ---- */
  .v3-trust__card { padding: 22px 20px; gap: 12px; }
  .v3-trust__ctitle { font-size: 15px; }
  .v3-trust__cbody { font-size: 13px; }

  /* ---- FINAL CTA: polished closing statement, not a poster ---- */
  .v3-cta__frame { padding-left: var(--m-gutter); padding-right: var(--m-gutter); }
  .v3-cta__content { padding: 40px 26px; }
  .v3-cta__body { max-width: 30ch; margin-left: auto; margin-right: auto; }
  .v3-cta__btn { margin-top: var(--m-body-cta-gap); }

  /* ---- FOOTER: compact, structured brand block ---- */
  .v3-footer__frame { padding: 42px var(--m-gutter) 26px; gap: 26px 22px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }  /* minmax(0,..) stops grid track blow-out */
  .v3-footer__brand { gap: 12px; }
  .v3-footer__logo span { font-size: 20px; }
  .v3-footer__tagline { font-size: 13px; line-height: 1.55; max-width: 42ch; }
  .v3-footer__col h4 { font-size: 10.5px; }
  .v3-footer__col a { font-size: 13.5px; }
  .v3-footer__copy { font-size: 12.5px; }
  .v3-footer__legal { flex-direction: row; flex-wrap: wrap; gap: 18px; align-items: center; }  /* horizontal, overrides site.css column */
  .v3-footer__brand, .v3-footer__col { width: 100%; max-width: 100%; }   /* clear desktop intrinsic widths */
  .v3-footer__rule { width: auto; }   /* was fixed 1200px */

  /* ---- INSIGHT selector + prompt: clear desktop fixed widths ---- */
  .v3-selector__list, .v3-selector__item, .v3-selector__fade { width: 100%; }
  .v3-prompt__input { width: auto; right: 16px; }   /* was fixed 588px; span left:60 → right:16 */

  /* ═══ SIDE PAGES (about / how / product / scenarios / trust) ═══
     same editorial scale + rhythm as the homepage, via the shared --m-* tokens. */
  .v3-psec { padding-block: var(--m-sec-y); }
  .v3-psec--tight { padding-block: 44px; }
  .v3-pwrap { padding-inline: var(--m-gutter); }
  .v3-phead { gap: 12px; max-width: 100%; }                 /* eyebrow → heading → lead : compact group */
  .v3-phero { padding-block: 44px 52px; }                   /* was up to 116/148 */
  /* section heading + lead */
  .v3-ph-h { font-size: var(--m-h2); line-height: var(--m-lh-head); font-weight: 700; letter-spacing: -0.2px; text-wrap: pretty; }
  .v3-phero .v3-ph-h { font-size: var(--m-h1); font-weight: 800; letter-spacing: -0.4px; }
  .v3-ph-lead { font-size: var(--m-body); line-height: var(--m-lh-body); }
  /* card titles / bodies */
  .v3-fcard__t, .v3-ba__t, .v3-ba__sp, .v3-step__t, .v3-splitcard__t { font-size: 16px; }
  .v3-fcard__num { font-size: 1.32rem; }
  .v3-step__t { margin-top: 4px; }
  .v3-tl__time { font-size: 1.1rem; }
  .v3-tl__t { font-size: 15px; }
  .v3-acc__q { font-size: 15px; }
  .v3-acc__a p { font-size: 14px; line-height: 1.72; }
  /* closing CTA band */
  .v3-ctaband { padding: 46px 24px; }
  .v3-ctaband__h { font-size: var(--m-h2-cta); line-height: 1.34; font-weight: 800; text-wrap: pretty; }
  .v3-ctaband__p { font-size: var(--m-body); line-height: var(--m-lh-body); }
}
@media (prefers-reduced-motion: reduce) {
  .v3-tile--fulltile, .v3-tile--icon { animation: none !important; }
}
@keyframes m-float {
  from { transform: translateY(-4px); }
  to   { transform: translateY(5px); }
}

/* ════════════════════════ ≤640px — phone ════════════════════════════════ */
@media (max-width: 640px) {
  .v3-video__cards { grid-template-columns: 1fr; }
  .v3-cgrid, .v3-cgrid--3, .v3-cgrid--4 { grid-template-columns: 1fr !important; }
  .v3-preview__ui .pv-stores { grid-template-columns: 1fr 1fr; }
  .v3-cta__btns, .v3-ctaband__btns { flex-direction: column; align-items: stretch; }
  .v3-hero__cta { flex-direction: column; width: 100%; }
  .v3-hero__cta .v3-btn { width: 100%; }
  .v3-chiplist { justify-content: flex-start; }

  /* ---- Preview mock internals: recompose for narrow width ---- */
  /* Cohort: donut above, stats become full-width horizontal rows */
  .v3-preview__ui .pv-cohort { flex-direction: column; align-items: stretch; gap: 16px; }
  .v3-preview__ui .pv-donut { align-self: center; }
  .v3-preview__ui .pv-cstats { flex-direction: column; gap: 8px; }
  .v3-preview__ui .pv-cstat { display: flex; flex-direction: row; align-items: baseline; gap: 8px; }
  .v3-preview__ui .pv-cstat span { white-space: nowrap; }
  /* Report: chart drops below the text; KPI labels stay on one line */
  .v3-preview__ui .pv-doc { flex-direction: column; gap: 14px; }
  .v3-preview__ui .pv-doc__chart { width: 100%; height: 96px; }
  .v3-preview__ui .pv-rep__kpis { gap: 16px; }
  .v3-preview__ui .pv-rep__kpis span { white-space: nowrap; }
  /* Multi-device: stack the desktop + phone mocks */
  .v3-preview__ui .pv-multi { flex-direction: column; gap: 14px; }
  .v3-preview__ui .pv-dev--desk { width: 100%; max-width: 300px; }
  .v3-preview__ui .pv-sync { flex-direction: row; gap: 8px; }

  /* Tighten the tile visual so it stays fully inside the viewport, centred */
  .v3-tilewrap { transform: scale(0.62); height: 318px; }
}

/* ════════════════════════ ≤400px — extra small ══════════════════════════ */
@media (max-width: 400px) {
  :root { --m-h1: 24px; --m-h2: 21px; --m-h2-cta: 22px; --m-gutter: 20px; }
  .v3-valuebar { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .v3-tilewrap { transform: scale(0.54); height: 284px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE HOME  (≤768) — independent mobile-native marketing home (plan B).
   Rendered from sections/mobile-home.html inside main > .v3-home-d sibling.
   Below 768 the desktop home (.v3-home-d) is hidden and this shows instead.
   Orange = a layered "aurora" light + grain, NOT a flat wash. Light only for
   now (site is data-theme=morning); dark is a planned follow-up.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-home-d { display: none; }               /* hide desktop/tablet home on phones */

  .v3-mh {
    --mh-maxw: 462px;
    --mh-gutter: 24px;
    /* Surfaces map to the DS4 "Morning" soft-UI (neumorphic) tokens so the
       mobile home matches the system: grey ground + gradient cards + soft lifts. */
    --mh-bg: var(--app-bg);           --mh-surface: var(--grad-card);   --mh-card: var(--grad-card);
    --mh-card2: var(--grad-shell);    --mh-tile: var(--grad-card-feature);
    --mh-ink: var(--text-primary);    --mh-ink2: var(--text-secondary); --mh-ink3: var(--text-muted);
    --mh-line: rgba(0,0,0,.05);       --mh-line2: transparent;          --mh-good: var(--good);
    --mh-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    position: relative;
    background: var(--mh-bg);
    overflow: hidden;
    padding-bottom: 4px;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  }
  /* refined hero glow — layered multi-radial aurora + grain, masked fade-down */
  /* soft warm ACCENT light — toned down + peaks below the nav so the top stays
     clean and light (white/off-grey base); coral+peach lean, not heavy yellow */
  .v3-mh__glow {
    position: absolute; top: 0; left: 0; right: 0; height: 640px; z-index: 0; pointer-events: none;
    background:
      radial-gradient(78% 42% at 82% 34%, rgba(255,138,110,.28), rgba(255,138,110,0) 70%),
      radial-gradient(82% 44% at 16% 26%, rgba(255,176,92,.22), rgba(255,176,92,0) 72%),
      radial-gradient(120% 46% at 50% 22%, rgba(255,198,140,.15), rgba(255,198,140,0) 76%);
    -webkit-mask-image: linear-gradient(180deg,#000 0%,#000 58%,transparent 100%);
    mask-image: linear-gradient(180deg,#000 0%,#000 58%,transparent 100%);
    animation: v3mh-drift 18s ease-in-out infinite;
  }
  .v3-mh__glow::after {
    content: ""; position: absolute; inset: 0; background: var(--mh-grain); background-size: 140px;
    opacity: .04; mix-blend-mode: overlay;
  }
  @keyframes v3mh-drift { 0%,100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.05) translateY(-6px); } }

  /* every direct child sits above the glow and is centred to the phone column
     (exclude the glow itself, or this would override its position:absolute) */
  .v3-mh > *:not(.v3-mh__glow) { position: relative; z-index: 1; }
  .v3-mh > .v3-nav,
  .v3-mh-hero, .v3-mh-block, .v3-mh-integ, .v3-mh-trust {
    max-width: var(--mh-maxw); margin-left: auto; margin-right: auto;
  }

  /* nav: static top bar within the mobile home (component styles otherwise reused) */
  .v3-mh .v3-nav {
    position: static; width: auto; margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) var(--mh-gutter) 0;
    background: transparent; box-shadow: none;
  }

  /* ── hero — fills the first screen, centred, generous breathing room ── */
  .v3-mh-hero {
    position: relative; min-height: calc(100svh - 80px);
    display: flex; flex-direction: column; justify-content: center;
    padding: 20px var(--mh-gutter) 54px;
  }
  .v3-mh-hero__inner { width: 100%; }
  .v3-mh-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
    color: var(--mh-ink2); margin-bottom: 16px;
  }
  .v3-mh-h1 {
    font-size: 36px; line-height: 1.14; font-weight: 800; letter-spacing: -.035em;
    color: var(--mh-ink); margin: 0 0 14px; word-break: keep-all; text-wrap: balance;
  }
  .v3-mh-sub {
    font-size: 14.5px; line-height: 1.6; color: var(--mh-ink2); margin: 0 0 24px; max-width: 30ch;
  }

  .v3-mh-ask {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    background: var(--grad-shell); border: 0; border-radius: 17px;
    padding: 15px 14px 15px 18px; cursor: pointer; box-shadow: var(--fig-sh-inset);
  }
  .v3-mh-ask__mag { width: 18px; height: 18px; color: var(--mh-ink3); flex: none; }
  .v3-mh-ask__q { flex: 1; font-size: 14.5px; color: var(--mh-ink); }
  .v3-mh-ask__q.is-placeholder { color: var(--mh-ink3); }
  .v3-mh-ask__cur { width: 1.5px; height: 16px; background: #FF9A1D; margin-left: -6px; animation: v3mh-blink 1.1s step-end infinite; }
  @keyframes v3mh-blink { 50% { opacity: 0; } }
  .v3-mh-ask__send {
    width: 40px; height: 40px; border-radius: 13px; background: var(--brand); flex: none;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px -7px rgba(255,120,40,.75);
  }
  .v3-mh-ask__send svg { width: 18px; height: 18px; }

  .v3-mh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
  .v3-mh-chip {
    display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500;
    color: var(--mh-ink2); background: var(--grad-card); border: 0;
    border-radius: 999px; padding: 10px 15px; cursor: pointer; box-shadow: var(--fig-sh-control);
  }
  .v3-mh-chip i { width: 5px; height: 5px; border-radius: 50%; background: #FF9A1D; flex: none; }

  /* ── section scaffolding ── */
  .v3-mh-block { padding: 20px var(--mh-gutter); }
  .v3-mh-block + .v3-mh-block { padding-top: 14px; }
  .v3-mh-label {
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
    color: var(--mh-ink3); margin: 0 0 8px;
  }
  .v3-mh-title {
    font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.22;
    color: var(--mh-ink); margin: 0 0 18px; word-break: keep-all; text-wrap: balance;
  }

  /* ── demo video card ── */
  .v3-mh-video {
    border-radius: 22px; overflow: hidden; background: var(--grad-card);
    border: 0; box-shadow: var(--fig-sh-card);
  }
  .v3-mh-video__bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 15px; border-bottom: 1px solid var(--mh-line);
  }
  .v3-mh-video__badge {
    font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #C6710A;
    background: rgba(255,154,29,.13); border-radius: 6px; padding: 4px 9px;
  }
  .v3-mh-video__badge::before { content: "▶ "; }
  .v3-mh-video__t { font-size: 11px; font-weight: 700; color: var(--mh-ink3); font-variant-numeric: tabular-nums; }
  .v3-mh-video__stage { position: relative; padding: 16px; background: var(--mh-card2); }
  .v3-mh-mini { background: var(--grad-card); border: 0; border-radius: 14px; padding: 13px; box-shadow: var(--fig-sh-card); }
  .v3-mh-mini__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .v3-mh-mini__who { display: flex; align-items: center; gap: 8px; }
  .v3-mh-mini__who b { font-size: 12.5px; font-weight: 700; color: var(--mh-ink); }
  .v3-mh-ava {
    width: 24px; height: 24px; border-radius: 7px; background: var(--brand);
    display: flex; align-items: center; justify-content: center; color: var(--brand-cta-ink); font-weight: 800; font-size: 11px;
  }
  .v3-mh-live { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; color: var(--mh-good); display: flex; align-items: center; gap: 5px; }
  .v3-mh-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--mh-good); animation: v3mh-ping 1.8s ease-out infinite; }
  @keyframes v3mh-ping { 0% { box-shadow: 0 0 0 0 rgba(57,114,70,.5); } 70%,100% { box-shadow: 0 0 0 6px rgba(57,114,70,0); } }
  .v3-mh-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
  .v3-mh-kpi { background: var(--grad-shell); border: 0; border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; box-shadow: var(--fig-sh-inset); }
  .v3-mh-kpi .l { font-size: 9.5px; color: var(--mh-ink3); font-weight: 600; margin-bottom: 4px; }
  .v3-mh-kpi .v { font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--mh-ink); font-variant-numeric: tabular-nums; }
  .v3-mh-kpi .d { font-size: 9px; font-weight: 700; color: var(--mh-good); margin-top: 3px; }
  .v3-mh-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; padding: 0 2px; }
  .v3-mh-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg,#FFC84A,#FF9A1D); opacity: .9; }
  .v3-mh-play {
    position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
    background: var(--brand); border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 30px -8px rgba(255,120,40,.8), 0 0 0 8px rgba(255,255,255,.16);
  }
  .v3-mh-play svg { width: 20px; height: 20px; margin-left: 3px; }
  .v3-mh-video__foot { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; font-size: 12.5px; color: var(--mh-ink2); }

  .v3-mh-cta { width: 100%; margin-top: 14px; justify-content: center; padding: 16px; border-radius: 15px; font-size: 15px; }
  .v3-mh-ghost {
    display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px;
    font-size: 13.5px; font-weight: 600; color: var(--mh-ink2); text-decoration: none;
  }

  /* ── value cards ── */
  .v3-mh-vcards { display: flex; flex-direction: column; gap: 11px; }
  .v3-mh-vc { display: flex; gap: 13px; align-items: flex-start; background: var(--mh-card); border: 1px solid var(--mh-line); border-radius: 16px; padding: 16px; }
  .v3-mh-vc__ic { width: 40px; height: 40px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--mh-tile); border: 1px solid var(--mh-line); }
  .v3-mh-vc__ic svg { width: 20px; height: 20px; color: #FF9A1D; }
  .v3-mh-vc h3 { font-size: 15px; font-weight: 700; color: var(--mh-ink); margin: 0 0 4px; }
  .v3-mh-vc p { font-size: 13px; line-height: 1.55; color: var(--mh-ink2); margin: 0; }

  /* ── integrations — horizontal marquee (small, precise, looping) ── */
  .v3-mh-integ { text-align: center; padding: 30px 0 16px; }
  .v3-mh-integ .v3-mh-label { padding: 0 var(--mh-gutter); }
  .v3-mh-marquee {
    position: relative; margin-top: 14px; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .v3-mh-marquee__track { display: flex; gap: 12px; width: max-content; padding: 8px 12px; animation: v3mh-marquee 28s linear infinite; }
  @keyframes v3mh-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .v3-mh-logo {
    flex: none; width: 52px; height: 52px; border-radius: 15px; background: var(--grad-card);
    box-shadow: var(--fig-sh-control); display: flex; align-items: center; justify-content: center; color: var(--mh-ink2);
  }
  .v3-mh-logo img { width: 24px; height: 24px; object-fit: contain; }
  .v3-mh-logo svg { width: 23px; height: 23px; }
  .v3-mh-logo__g { font-weight: 800; font-size: 19px; color: var(--mh-ink2); }

  /* ── trust strip ── */
  .v3-mh-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 26px var(--mh-gutter) 4px; text-align: center; }
  .v3-mh-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--mh-ink2); }
  .v3-mh-trust i { width: 5px; height: 5px; border-radius: 50%; background: var(--mh-good); flex: none; }

  /* ── closing CTA ── */
  .v3-mh-close {
    margin: 34px var(--mh-gutter) 8px; max-width: var(--mh-maxw);
    margin-left: auto; margin-right: auto; border-radius: 22px; padding: 28px 22px; text-align: center;
    position: relative; overflow: hidden; background: var(--brand); box-shadow: 0 26px 54px -24px rgba(255,120,40,.6);
  }
  .v3-mh-close::after { content: ""; position: absolute; inset: 0; background: var(--mh-grain); background-size: 140px; opacity: .12; mix-blend-mode: overlay; }
  .v3-mh-close > * { position: relative; }
  .v3-mh-close h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: var(--brand-cta-ink); margin: 0 0 8px; }
  .v3-mh-close p { font-size: 13px; color: #5A3B08; margin: 0 0 18px; }
  .v3-mh-close__btn {
    display: inline-flex; align-items: center; gap: 8px; background: var(--brand-cta-ink); color: #FFE9C6;
    font-family: inherit; font-size: 14px; font-weight: 700; padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .v3-mh__glow, .v3-mh-ask__cur, .v3-mh-live i, .v3-mh-marquee__track, .v3-mh-scrollcue { animation: none; }
}

/* MOBILE HOME — hero CTAs, prompt-demo answer, scroll cue, section split (new) */
@media (max-width: 768px) {
  .v3-mh-chip.is-active { color: var(--mh-ink); box-shadow: var(--fig-sh-inset); }

  .v3-mh-answer {
    margin-top: 16px; background: var(--grad-card); border-radius: 16px;
    padding: 15px 16px; box-shadow: var(--fig-sh-card);
  }
  .v3-mh-answer__bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: var(--mh-ink); }
  .v3-mh-answer__text { font-size: 14px; line-height: 1.6; color: var(--mh-ink2); margin: 0 0 12px; }
  .v3-mh-answer__cta { display: flex; }
  .v3-mh-answer__more {
    font-family: inherit; font-size: 13px; font-weight: 700; color: #C6710A;
    background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  }

  .v3-mh-herocta { display: flex; gap: 10px; margin-top: 22px; }
  .v3-mh-herocta .v3-btn { flex: 1; justify-content: center; padding: 14px 14px; font-size: 14.5px; border-radius: 13px; }

  .v3-mh-scrollcue {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
    width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--grad-card); box-shadow: var(--fig-sh-control); color: var(--mh-ink2);
    display: flex; align-items: center; justify-content: center; animation: v3mh-bounce 2s ease-in-out infinite;
  }
  .v3-mh-scrollcue svg { width: 18px; height: 18px; }
  @keyframes v3mh-bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,4px); } }

  .v3-mh-lead { font-size: 14px; line-height: 1.6; color: var(--mh-ink2); margin: -6px 0 18px; max-width: 34ch; }

  /* clear gap between the product/demo section and the selling-points section */
  .v3-mh-divider {
    height: 1px; margin: 22px auto 6px; max-width: var(--mh-maxw);
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.09), transparent);
  }
  .v3-mh-block--why { padding-top: 30px; }
}

@media (max-width: 400px) {
  .v3-mh-h1 { font-size: 32px; }
  .v3-mh-logos { grid-template-columns: repeat(4,1fr); gap: 8px; }
}

/* MOBILE HOME — why-Moneki list, trust-in-block, CTA eyebrow (real content) */
@media (max-width: 768px) {
  .v3-mh-why { list-style: none; margin: 20px 0 0; padding: 0; }
  .v3-mh-why__item {
    display: grid; grid-template-columns: auto 1fr; column-gap: 13px;
    padding: 14px 0; border-top: 1px solid var(--mh-line);
  }
  .v3-mh-why__item:first-child { border-top: 0; padding-top: 4px; }
  .v3-mh-why__n {
    grid-row: 1 / span 2; align-self: start; margin-top: 1px;
    font-size: 12px; font-weight: 800; color: #C6710A; font-variant-numeric: tabular-nums;
  }
  .v3-mh-why__t { font-size: 15px; font-weight: 700; color: var(--mh-ink); }
  .v3-mh-why__s { font-size: 13px; line-height: 1.5; color: var(--mh-ink2); margin-top: 2px; }

  /* trust strip sits inside a titled block — left-aligned, no extra gutter */
  .v3-mh-block .v3-mh-trust { max-width: none; padding: 2px 0 0; justify-content: flex-start; text-align: left; }

  .v3-mh-close__eyebrow {
    display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
    color: #7A4E12; margin-bottom: 10px; position: relative;
  }
}

/* ═══ MOBILE — subpage hero: unify with the home orange-glow gradient (≤768; content/structure unchanged; desktop uses the .v3-phero__stage image which is hidden here) ═══ */
@media (max-width: 768px) {
  .v3-phero { isolation: isolate; padding-block: 34px 46px; }
  .v3-phero::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 460px; z-index: 0; pointer-events: none;
    background:
      radial-gradient(78% 46% at 82% 40%, rgba(255,138,110,.26), rgba(255,138,110,0) 70%),
      radial-gradient(82% 48% at 16% 30%, rgba(255,176,92,.20), rgba(255,176,92,0) 72%),
      radial-gradient(120% 48% at 50% 24%, rgba(255,198,140,.14), rgba(255,198,140,0) 76%);
    -webkit-mask-image: linear-gradient(180deg,#000 0%,#000 56%,transparent 100%);
    mask-image: linear-gradient(180deg,#000 0%,#000 56%,transparent 100%);
  }
  .v3-phero::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 460px; z-index: 0; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27140%27 height=%27140%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.85%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix type=%27saturate%27 values=%270%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E"); background-size: 140px; opacity: .04; mix-blend-mode: overlay;
    -webkit-mask-image: linear-gradient(180deg,#000 0%,#000 56%,transparent 100%);
    mask-image: linear-gradient(180deg,#000 0%,#000 56%,transparent 100%);
  }
  .v3-phero .v3-phead { position: relative; z-index: 2; }
}

/* MOBILE — subpage hero product splash */
@media (max-width: 768px) {
  .v3-phero { padding-block: 34px 40px; }
  .v3-phero__shot { position: relative; z-index: 2; margin: 26px auto 0; width: 100%; max-width: 480px; padding: 0 var(--m-gutter, 24px); }
  .v3-phero__shot img { width: 100%; height: auto; display: block; filter: drop-shadow(0 22px 38px rgba(120,70,0,.16)); }
}
