/* /app/ marketing home — atmospheric, product-proof, responsive */
.hm-frame { width: 100%; max-width: 100%; overflow-x: clip; }
.hm-frame .wx-top { min-width: 0; gap: 2px; }
.hm-frame .wx-top-tools { gap: 8px; flex: none; min-width: 0; }
.hm-frame .wx-top-tools .wx-btn { text-decoration: none; white-space: nowrap; }
/* Phone shell forces 40px top-bar buttons; keep the home CTA compact next to the logo. */
.hm-frame .wx-top-tools .wx-btn,
.hm-frame .wx-top .wx-btn-sm {
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
  font-size: var(--fs-sm);
  box-sizing: border-box;
}
.hm-frame .wx-top-id { flex: 1 1 auto; min-width: 0; }
.hm-frame .wx-top-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-app { min-width: 0; width: 100%; }
.hm-app .wx-side { display: none !important; }
.hm-app .wx-bar { display: none !important; }
.hm-app .wx-main { max-width: none; width: 100%; min-width: 0; }
.hm-app .wx-content { padding: 0; overflow-x: hidden; max-width: 100%; }

.hm { position: relative; max-width: 1200px; width: 100%; margin: 0 auto; padding: 28px 32px 72px; display: grid; gap: 88px; box-sizing: border-box; min-width: 0; }
.hm-atmos {
  pointer-events: none; position: absolute; left: 0; right: 0; top: -24px; height: min(70vh, 640px); z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 15% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(ellipse 60% 45% at 90% 0%, color-mix(in srgb, var(--ok) 12%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-sunk) 70%, transparent), transparent 70%);
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.hm > *:not(.hm-atmos) { position: relative; z-index: 1; min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; }

.hm-eyebrow { font-size: var(--fs-xs); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hm-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.hm-head h3, .hm-hero h2, .hm-cta h3 { font-weight: 750; letter-spacing: -.03em; line-height: 1.12; }
.hm-head h3 { font-size: clamp(1.55em, 2.6vw, 2.15em); margin: 0 0 12px; }
.hm-head p, .hm-lede { color: var(--ink-muted); font-size: var(--fs-md); margin-top: 0; max-width: 40rem; line-height: 1.55; }
.hm-head p { margin-left: auto; margin-right: auto; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hm-actions .wx-btn { min-height: 44px; padding-left: 18px; padding-right: 18px; }
.hm-note, .hm-fine { color: var(--ink-faint); font-size: var(--fs-sm); margin-top: 16px; text-align: center; }
.hm-sec { display: grid; gap: 0; }

/* hero — centered composition (classic / with tour) */
.hm-hero { text-align: center; padding: 40px 0 8px; display: grid; justify-items: stretch; gap: 0; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.hm-hero > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
.hm-hero .hm-eyebrow, .hm-hero h2, .hm-hero .hm-lede, .hm-hero .hm-actions, .hm-hero .hm-trust { width: 100%; }
.hm-hero h2 { font-size: clamp(2.35em, 4.5vw, 3.55em); max-width: 15em; margin: 0 auto 18px; overflow-wrap: anywhere; text-wrap: balance; letter-spacing: -.035em; line-height: 1.05; }
.hm-hero .hm-lede { margin: 0 auto; max-width: 38em; overflow-wrap: anywhere; font-size: var(--fs-md); }
.hm-hero .hm-actions { justify-content: center; }
.hm-trust { list-style: none; margin: 20px 0 44px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; color: var(--ink-muted); font-size: var(--fs-sm); max-width: 100%; }
.hm-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hm-trust .wx-ico { color: var(--ok); }

/* product tour */
.hm-show { width: 100%; max-width: 920px; margin-inline: auto; text-align: left; min-width: 0; }
.hm-show-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 auto 14px; width: max-content; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-sunk); box-sizing: border-box; }
.hm-show-tabs::-webkit-scrollbar { display: none; }
.hm-show-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-faint); font: inherit; font-size: var(--fs-sm); font-weight: 550; cursor: pointer; overflow: hidden; }
.hm-show-tab:hover { color: var(--ink); }
.hm-show-tab.is-on { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.hm-show-tab.is-on .wx-ico { color: var(--accent); }
.hm-show-prog { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; }
.hm-show.is-cycling .hm-show-tab.is-on .hm-show-prog { opacity: .55; animation: hmprog 7s linear forwards; }
@keyframes hmprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hm-show.is-cycling .hm-show-tab.is-on .hm-show-prog { animation: none; opacity: 0; }
}

.hm-window { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 100%; box-sizing: border-box; }
.hm-show-pane { display: flex; flex-direction: column; min-height: 420px; flex: 1; min-width: 0; }
.hm-show-pane[hidden] { display: none !important; }
.hm-win-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-sunk); font-size: var(--fs-sm); color: var(--ink-muted); min-height: 44px; min-width: 0; flex-wrap: wrap; }
.hm-win-body { flex: 1; padding: 8px 0 0; display: grid; align-content: start; min-width: 0; overflow-x: auto; }
.hm-win-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-sunk); font-size: var(--fs-sm); color: var(--ink-muted); }

.hm-chip { display: inline-flex; align-items: center; gap: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-sm); color: var(--ink-muted); }
.hm-chip b { color: var(--ink); font-weight: 650; }
.hm-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); }
.hm-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.hm-req { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.hm-req.is-on { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.hm-req code { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-sm); }
.hm-req small, .hm-t { color: var(--ink-faint); font-size: var(--fs-xs); white-space: nowrap; }
.hm-m { font-size: var(--fs-xs); font-weight: 750; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.hm-m.is-get { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.hm-m.is-any { background: var(--surface-sunk); color: var(--ink-muted); }
.hm-code { margin: 0; padding: 12px 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-muted); background: var(--surface-sunk); text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; box-sizing: border-box; }
.hm-code-dark { background: #0f141f; color: #c8d0dc; }
[data-theme="dark"] .hm-code-dark { background: #0a0e16; }
.hm-code .k { color: var(--ink); }
.hm-code-dark .k { color: #e8eef7; }
.hm-code .s, .hm-code-dark .s { color: var(--ok); }
.hm-code .n, .hm-code-dark .n { color: var(--accent); }
.hm-code .c { color: var(--ink-faint); }
.hm-log { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.hm-badge { font-size: var(--fs-xs); font-weight: 750; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; }
.hm-badge.is-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.hm-badge.is-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }

.hm-mon { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.hm-mon > span:nth-child(2) { display: grid; flex: 1; min-width: 0; text-align: left; }
.hm-mon b { font-size: var(--fs-sm); }
.hm-mon small { color: var(--ink-faint); font-size: var(--fs-xs); }
.hm-sdot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.hm-sdot.is-down { background: var(--danger); }
.hm-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 18px; }
.hm-bars i { width: 3px; height: 14px; border-radius: 1px; background: var(--ok); opacity: .85; }
.hm-bars i:nth-child(3n) { height: 10px; }
.hm-bars i:nth-child(5n) { height: 16px; }
.hm-bars i.d { background: var(--danger); height: 8px; }
.hm-ms { font-variant-numeric: tabular-nums; font-size: var(--fs-xs); color: var(--ink-muted); min-width: 3.5rem; text-align: right; }
.hm-ms.is-down { color: var(--danger); font-weight: 650; }
.hm-alert { display: flex; gap: 10px; align-items: flex-start; margin: 12px 14px 14px; padding: 10px 12px; border-radius: var(--r); background: color-mix(in srgb, var(--danger) 10%, transparent); text-align: left; }
.hm-alert .wx-ico { color: var(--danger); flex: none; margin-top: 2px; }
.hm-alert span:last-child { display: grid; gap: 2px; }
.hm-alert small { color: var(--ink-muted); font-size: var(--fs-xs); }

.hm-mail { padding: 14px 16px 18px; text-align: left; display: grid; gap: 10px; }
.hm-mail-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-md); letter-spacing: -.01em; }
.hm-mail-meta { color: var(--ink-faint); font-size: var(--fs-xs); }
.hm-mail-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.hm-mail-row > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.hm-mail-row b { font-size: var(--fs-sm); }
.hm-mail-row small { color: var(--ink-faint); font-size: var(--fs-xs); }
.hm-av { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-sunk); font-weight: 700; font-size: var(--fs-sm); flex: none; }
.hm-codechip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .06em; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 4px 8px; border-radius: 6px; font-size: var(--fs-sm); }

.hm-linkcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.hm-linkcard small { display: block; color: var(--ink-faint); font-size: var(--fs-xs); margin-top: 4px; max-width: 28rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-linkcard strong { font-size: var(--fs-lg); letter-spacing: -.02em; }
.hm-linkcard strong small { display: inline; margin: 0 0 0 4px; font-size: var(--fs-xs); color: var(--ink-faint); font-weight: 600; }
.hm-clicks { display: flex; align-items: flex-end; gap: 4px; height: 56px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.hm-clicks i { flex: 1; height: var(--h, 40%); border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.hm-qrrow { display: flex; gap: 14px; align-items: center; padding: 14px 16px; text-align: left; }
svg.hm-qr { width: 99px; height: 99px; flex: none; color: var(--ink); display: block; }
.hm-qrrow > div:last-child { display: grid; gap: 4px; min-width: 0; }
.hm-qrrow small { color: var(--ink-muted); font-size: var(--fs-sm); }
.hm-qr-path {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}
.hm-qr-path b { color: var(--ink); font-weight: 650; }
.hm-qr-path .hm-arr { display: inline-block; margin: 0 0.45em; color: var(--ink-faint); }

.hm-cron { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; flex-wrap: wrap; }
.hm-cron .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-xs); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 4px 6px; border-radius: 4px; flex: none; }
.hm-cron > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.hm-cron small { color: var(--ink-faint); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hm-mock { margin: 10px 12px 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-align: left; }
.hm-mock-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--surface-sunk); border-bottom: 1px solid var(--line); }
.hm-mock-rule { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.hm-mock-rule:first-of-type { border-top: 0; }
.hm-mock-rule code { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-sm); }
.hm-mock-rule.is-pass { color: var(--ink-faint); }

/* tools grid — one card per tool, live-site order */
.hm-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 0; }
.hm-tool {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico name" "ico desc" "ico meta" "go go";
  column-gap: 16px; row-gap: 4px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink); text-decoration: none; text-align: left; min-width: 0;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hm-tool:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.hm-tool-ico { grid-area: ico; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--tool, var(--accent)); }
.hm-tool-ico .wx-ico { width: 20px; height: 20px; }
.hm-tool-name { grid-area: name; font-weight: 650; font-size: 1em; letter-spacing: -.01em; }
.hm-tool-desc { grid-area: desc; color: var(--ink-muted); font-size: var(--fs-sm); line-height: 1.5; }
.hm-tool-meta { grid-area: meta; font-size: var(--fs-xs); font-weight: 650; color: var(--ok); }
.hm-tool-go { grid-area: go; margin-top: 10px; font-size: var(--fs-sm); font-weight: 650; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.hm-tool:hover .hm-tool-go .wx-ico { transform: translateX(2px); }
.hm-tool-go .wx-ico { transition: transform var(--dur) var(--ease); }
@media (prefers-reduced-motion: reduce) { .hm-tool:hover { transform: none; } .hm-tool:hover .hm-tool-go .wx-ico { transform: none; } }

/* why */
.hm-why { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; margin-top: 0; align-items: start; }
.hm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.hm-cmp { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.hm-cmp th, .hm-cmp td { padding: 12px 14px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.hm-cmp thead th { border-top: 0; background: var(--surface-sunk); font-size: var(--fs-xs); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); position: sticky; top: 0; }
.hm-cmp tbody th { font-weight: 600; }
.hm-us { color: var(--ok); font-weight: 650; }
.hm-them { display: block; color: var(--ink-faint); font-size: var(--fs-xs); }
.hm-cmp-cards { display: none; gap: 10px; }
.hm-cmp-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: left; }
.hm-cmp-card h4 { font-size: var(--fs-sm); font-weight: 650; margin-bottom: 6px; }
.hm-them-line { color: var(--ink-muted); font-size: var(--fs-sm); margin-top: 4px; }
.hm-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hm-points > li { display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.hm-points > li > span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-sunk); color: var(--accent); flex: none; }
.hm-points strong { font-weight: 650; }
.hm-points p { color: var(--ink-muted); font-size: var(--fs-sm); margin-top: 2px; }

/* pricing */
.hm-sec-band { padding: 40px 32px; border-radius: calc(var(--r-lg) + 6px); background:
  linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, var(--surface-sunk)), var(--surface-sunk)); }
.hm-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 0; }
.hm-pack { position: relative; display: grid; gap: 6px; align-content: start; padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-align: left; }
.hm-pack.is-mid { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hm-pack-tag { position: absolute; top: 10px; right: 10px; font-size: var(--fs-xs); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--on-accent, #fff); background: var(--accent); padding: 3px 8px; border-radius: 999px; }
.hm-pack h3 { font-size: var(--fs-sm); font-weight: 700; }
.hm-pack-price { display: flex; align-items: baseline; gap: 6px; }
.hm-pack-price strong { font-size: var(--fs-lg); letter-spacing: -.02em; }
.hm-pack-price span { color: var(--ink-faint); font-size: var(--fs-xs); }
.hm-pack-cr { color: var(--ink-muted); font-size: var(--fs-sm); margin-bottom: 8px; }
.hm-pack-cr em { font-style: normal; color: var(--ok); font-weight: 650; }
.hm-pack .wx-btn { width: 100%; justify-content: center; }

/* faq + cta + foot */
.hm-faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.hm-faq-grid .hm-head { max-width: none; margin: 0; text-align: left; }
.hm-faq-grid .hm-head p { margin-left: 0; }
.hm-faq { border-top: 1px solid var(--line); padding: 14px 0; text-align: left; }
.hm-faq:first-child { border-top: 0; padding-top: 0; }
.hm-faq summary { cursor: pointer; font-weight: 650; list-style: none; min-height: 44px; display: flex; align-items: center; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq p { color: var(--ink-muted); font-size: var(--fs-sm); margin-top: 8px; line-height: 1.5; }
.hm-cta { text-align: center; padding: 56px 32px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.hm-cta h3 { font-size: clamp(1.45em, 2.5vw, 1.85em); }
.hm-cta .hm-actions { justify-content: center; }
.hm-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; padding-top: 8px; border-top: 1px solid var(--line); }
.hm-foot a { color: var(--ink-faint); font-size: var(--fs-sm); text-decoration: none; }
.hm-foot a:hover { color: var(--ink); }

@media (max-width: 1100px) {
  .hm { padding-left: 24px; padding-right: 24px; gap: 72px; }
  .hm-hero h2 { font-size: clamp(2.1em, 4vw, 3em); }
}
@media (max-width: 900px) {
  .hm { gap: 56px; padding-top: 16px; }
  .hm-head { margin-bottom: 28px; }
  .hm-why, .hm-faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .hm-tools { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hm-packs { grid-template-columns: 1fr 1fr; }
  .hm-show-pane { min-height: 360px; }
  .hm-sec-band { padding: 28px 20px; }
  .hm-mon { flex-wrap: wrap; }
  .hm-bars { order: 3; width: 100%; margin-top: 4px; }
  .hm-ms { margin-left: auto; }
}
@media (max-width: 760px) {
  .hm { padding: 8px 16px max(40px, env(safe-area-inset-bottom)); gap: 40px; }
  .hm-eyebrow { color: var(--ink-faint); }
  .hm-head { max-width: none; margin: 0 0 18px; text-align: left; }
  .hm-head h3 { font-size: var(--fs-lg); }
  .hm-head p { margin-left: 0; font-size: var(--fs-sm); }
  .hm-hero { padding-top: 8px; }
  .hm-hero h2 { font-size: clamp(1.4em, 6.5vw, 1.75em); max-width: 100%; margin-bottom: 10px; padding: 0; letter-spacing: -.025em; line-height: 1.12; }
  .hm-lede { font-size: var(--fs-sm); }
  .hm-actions { width: 100%; margin-top: 18px; gap: 10px; }
  .hm-actions .wx-btn { flex: 1 1 calc(50% - 6px); justify-content: center; min-width: 0; }
  .hm-trust { gap: 8px 12px; margin: 16px 0 24px; font-size: var(--fs-xs); }
  .hm-show { max-width: 100%; width: 100%; }
  .hm-show-tabs { width: 100%; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  .hm-show-tab { padding: 0 12px; font-size: var(--fs-xs); gap: 0; min-height: 40px; }
  .hm-show-tab span { display: none; }
  .hm-show-tab .wx-ico { width: 18px; height: 18px; }
  .hm-show-tab[aria-selected="true"] span,
  .hm-show-tab.is-on span { display: inline; max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 6px; }
  .hm-show-pane { min-height: 0; }
  .hm-window { min-height: 0; border-radius: 12px; box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent); }
  .hm-win-bar { font-size: var(--fs-xs); padding: 10px 12px; }
  .hm-win-foot { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
  .hm-win-foot > span { order: 2; }
  .hm-win-foot .wx-btn { width: 100%; justify-content: center; order: 1; }
  .hm-req { gap: 8px; padding: 9px 12px; font-size: var(--fs-xs); }
  .hm-req code { overflow: hidden; text-overflow: ellipsis; }
  .hm-code { font-size: var(--fs-xs); padding: 10px 12px; }
  .hm-log { flex-wrap: wrap; gap: 6px 10px; }
  .hm-linkcard { flex-direction: column; align-items: flex-start; }
  .hm-qrrow { flex-wrap: nowrap; gap: 12px; padding: 12px; }
  .hm-cron .hm-badge { width: 100%; text-align: left; margin-top: 2px; }
  .hm-frame .wx-top-tools { max-width: none; }
  .hm-tools { grid-template-columns: 1fr; gap: 10px; }
  .hm-tool { padding: 14px; grid-template-areas: "ico name" "ico desc" "ico meta" "go go"; column-gap: 12px; }
  .hm-tool-go { margin-top: 6px; }
  .hm-packs { grid-template-columns: 1fr; }
  .hm-pack { padding: 18px 16px; }
  .hm-sec-band { padding: 18px 14px; border-radius: 14px; }
  .hm-table-wrap[data-desktop] { display: none; }
  .hm-cmp-cards[data-mobile] { display: grid; }
  .hm-note, .hm-fine { text-align: left; }
  .hm-cta { padding: 28px 16px; }
  .hm-foot { gap: 10px 14px; padding-bottom: 8px; }
  .hm-frame .wx-top { padding-right: 8px; }
  .hm-frame .hm-cta-secondary { display: none; }
  .hm-frame .wx-top-name { font-size: var(--fs-sm); }
  .hm-frame #wxGearBtn { display: none; }
}
@media (max-width: 420px) {
  .hm { padding-left: 14px; padding-right: 14px; gap: 32px; }
  .hm-actions .wx-btn { flex: 1 1 100%; }
}
@media (min-width: 761px) {
  .hm-cmp-cards[data-mobile] { display: none; }
}

/* ================= a47: quiet home ================= */
/* No gradient wash, no tinted badges or chips: plain text status, neutral surfaces, one accent. */
.hm-atmos { display: none !important; }
.hm-eyebrow { color: var(--ink-faint); }
.hm-trust .wx-ico { color: var(--ink-faint); }
.hm-badge { text-transform: none; letter-spacing: 0; font-weight: 600; padding: 0; border-radius: 0; background: none !important; color: var(--ink-muted) !important; }
.hm-badge.is-warn { color: var(--warn) !important; }
.hm-m, .hm-m.is-get, .hm-m.is-any { background: none !important; padding: 0; color: var(--ink-muted) !important; font-family: var(--font-mono); }
.hm-codechip, .hm-cron .mono { background: none !important; padding: 0; }
.hm-alert { background: none !important; border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line)); }
.hm-req.is-on { background: none; box-shadow: inset 2px 0 0 var(--accent); }
.hm-clicks i { background: var(--accent); }
.hm-live { color: var(--ink-muted); letter-spacing: 0; text-transform: none; font-weight: 600; }
.hm-live i { box-shadow: none; }
.hm-pack, .hm-pack.is-mid { background: var(--surface) !important; }
@media (min-width: 1024px) { .hm-frame .wx-top-id { flex: none; } .hm-frame .wx-top-fill { flex: 1; } }
/* Landscape phones (e.g. 844×390): text left, the live demo right, both on the first screen. */
@media (orientation: landscape) and (max-height: 500px) {
  .hm { padding-top: 12px; }
  .hm-hero { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 24px; align-items: start; text-align: left; }
  .hm-hero > .hm-eyebrow, .hm-hero > .hm-trust { display: none; }
  .hm-hero > h2 { grid-column: 1; font-size: 1.7em; margin: 4px 0 8px; max-width: none; }
  .hm-hero > .hm-lede { grid-column: 1; margin: 0; font-size: var(--fs-sm); }
  .hm-hero > .hm-actions { grid-column: 1; justify-content: flex-start; margin-top: 14px; }
  .hm-hero > .hm-show { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
  .hm-show-tabs { margin: 0 0 8px; width: 100%; }
  .hm-show-pane { min-height: 0; }
}
