/* Mogu public site. System fonts only (CSP is self-only). */
:root {
  --paper: #f6f4ee;
  --panel: #fcfbf8;
  --tint: #efece3;
  --ink: #23231f;
  --ink-2: #3d3c35;
  --muted: #6d6a60;
  --line: #dcd8cc;
  --line-strong: #a9a392;
  --accent: #2f6b4f;
  --accent-soft: #e4ece5;
  --warn: #a4553a;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --header: 68px;
  --ease: cubic-bezier(.22, .68, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h3, h4 { font-weight: 600; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: #d9e5dc; }
a:focus-visible, button:focus-visible, summary:focus-visible, .table-wrap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
code { font-family: var(--mono); font-size: .9em; }

.shell { width: min(100%, 1320px); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 60; left: 16px; top: 12px; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 4px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.sep { margin-inline: .6em; color: var(--line-strong); }

/* Scroll reveal (only when JS runs; content is visible without it) */
.js-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--ink); border-radius: 5px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 500; line-height: 1.4; white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.button:hover { background: #3f3e37; border-color: #3f3e37; }
.button:active { transform: translateY(1px); }
.button .arrow { font-family: var(--sans); transition: transform .25s var(--ease); }
.button:hover .arrow { transform: translateX(4px); }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-outline:hover { background: var(--tint); border-color: #8f8977; }
.button-small { min-height: 40px; padding: 8px 16px; font-size: 13px; gap: 8px; }
.button[aria-disabled="true"], .button[aria-disabled="true"]:hover {
  background: transparent; border-color: var(--line); color: var(--muted); cursor: default; transform: none;
}
.text-link { color: var(--accent); border-bottom: 1px solid rgba(47, 107, 79, .35); }
.text-link:hover { border-bottom-color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 244, 238, .86);
  -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark { width: 22px; height: 22px; }
.brand-mark .cap { fill: var(--accent); }
.brand-mark .stem { fill: var(--ink); }
.brand-name { font: 600 21px/1 var(--sans); letter-spacing: -.02em; }
.brand-tagline { font-size: 12px; color: var(--muted); padding-left: 16px; border-left: 1px solid var(--line); line-height: 1.2; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 13.5px; }
.main-nav a { position: relative; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; transition: color .18s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a[data-nav]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a.is-active::after { transform: scaleX(1); }
.main-nav .nav-login { display: none; }
.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; margin-left: 12px; }
.login-link { font-size: 13.5px; min-height: 44px; display: inline-flex; align-items: center; }
[data-mogu-link][aria-disabled="true"]:not(.button) { color: var(--muted); cursor: default; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-bars { position: relative; width: 18px; height: 8px; }
.menu-bars i { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform .2s var(--ease), top .2s var(--ease); }
.menu-bars i:first-child { top: 0; }
.menu-bars i:last-child { top: 6.5px; }
.menu-toggle[aria-expanded="true"] .menu-bars i:first-child { top: 3.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars i:last-child { top: 3.25px; transform: rotate(-45deg); }

/* Hero: centred, typographic */
.hero { padding-block: clamp(64px, 9vw, 128px) clamp(56px, 7vw, 96px); text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .06em; color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 0 0 rgba(47, 107, 79, .4); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 107, 79, .35); } 70%, 100% { box-shadow: 0 0 0 8px rgba(47, 107, 79, 0); } }
.hero h1 { margin-top: 28px; font-size: clamp(48px, 7.4vw, 108px); line-height: 1.12; letter-spacing: -.04em; }
.hero h1 .line { display: block; white-space: nowrap; }
.js-ready .hero h1 .line { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js-ready .hero h1.is-visible .line { opacity: 1; transform: none; }
.js-ready .hero h1.is-visible .line + .line { transition-delay: .12s; }
.hero-sub { margin-top: 30px; font-size: 17px; line-height: 1.9; color: var(--ink-2); }
.hero-sub span { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.hero-foot { margin-top: 20px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-foot b { font-weight: 600; color: var(--ink-2); }
.hero-facts {
  width: 100%; margin-top: clamp(56px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line);
  text-align: left;
}
.hero-facts div { padding: 20px 22px 22px; border-left: 1px solid var(--line); }
.hero-facts div:first-child { border-left: 0; padding-left: 0; }
.hero-facts dt { font-size: 12px; color: var(--muted); letter-spacing: .03em; }
.hero-facts dd { margin-top: 6px; font-size: 15.5px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; }

/* Story: scroll-driven "relay vs direct" */
.story { position: relative; height: 300vh; border-top: 1px solid var(--line); background: var(--panel); }
.story-stage { position: sticky; top: var(--header); height: calc(100vh - var(--header)); min-height: 520px; overflow: hidden; display: flex; align-items: center; }
.story-inner { width: min(100%, 1320px); display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-rows: auto auto; column-gap: clamp(32px, 5vw, 80px); row-gap: 40px; align-items: start; }
.story-steps { grid-column: 1; grid-row: 1; display: flex; gap: 28px; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.story-copies { grid-column: 1; grid-row: 2; }
.story-art { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.story-steps li { position: relative; padding-bottom: 8px; transition: color .3s; }
.story-steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.story[data-scene="relay"] [data-step="relay"], .story[data-scene="direct"] [data-step="direct"], .story[data-scene="clean"] [data-step="clean"] { color: var(--ink); }
.story[data-scene="relay"] [data-step="relay"]::after, .story[data-scene="direct"] [data-step="direct"]::after, .story[data-scene="clean"] [data-step="clean"]::after { transform: scaleX(1); }
.story-copies { position: relative; display: grid; gap: 40px; }
.js-ready .story-copy { grid-area: 1 / 1; align-self: center; }
html:not(.js-ready) .story { height: auto; }
html:not(.js-ready) .story-stage { position: static; height: auto; padding-block: 72px; }
.story-copy h3 { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.28; letter-spacing: -.025em; }
.story-copy > p:not(.eyebrow) { margin-top: 20px; font-size: 15.5px; line-height: 1.95; color: var(--ink-2); max-width: 30em; }
.checks { margin-top: 22px; display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 30em; }
.checks li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.js-ready .story-copy { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); pointer-events: none; }
.story[data-scene="relay"] [data-copy="relay"], .story[data-scene="direct"] [data-copy="direct"], .story[data-scene="clean"] [data-copy="clean"] { opacity: 1; transform: none; pointer-events: auto; }
.js-ready .checks li { opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.story[data-scene="clean"] .checks li { opacity: 1; transform: none; }
.story[data-scene="clean"] .checks li:nth-child(2) { transition-delay: .08s; }
.story[data-scene="clean"] .checks li:nth-child(3) { transition-delay: .16s; }
.story[data-scene="clean"] .checks li:nth-child(4) { transition-delay: .24s; }

.story-art { min-width: 0; }
.route { display: block; width: 100%; height: auto; overflow: visible; }
.route text { font-family: var(--sans); }
.route .node-title { font-size: 17px; font-weight: 600; fill: var(--ink); }
.route .node-sub { font-size: 13px; fill: var(--muted); }
.node rect, .node path, .node circle { fill: var(--panel); stroke: var(--ink); stroke-width: 1.4; }
.node .screen { fill: #e9eee9; stroke: none; }
.node-openai circle { fill: var(--ink); }
.route .node-openai .on-dark { fill: var(--paper); font-size: 15px; letter-spacing: .02em; }
.relay-line { fill: none; stroke: var(--line-strong); stroke-width: 1.4; stroke-dasharray: 5 6; transition: opacity .5s, stroke .5s; }
.relay-box rect { fill: #fff; stroke: var(--line-strong); stroke-width: 1.2; transition: opacity .5s; }
.relay-box text { transition: opacity .5s; }
.relay-strike line { stroke: var(--warn); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 190; stroke-dashoffset: 190; transition: stroke-dashoffset .6s var(--ease); }
.packet { opacity: 0; transition: opacity .4s; }
.packet-relay { fill: var(--line-strong); }
.packet-direct { fill: var(--accent); }
.direct-base { fill: none; stroke: var(--line); stroke-width: 1.2; }
.direct-line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); }
.direct-label { font-size: 13px; fill: var(--accent); opacity: 0; transition: opacity .5s; }
.story[data-scene="relay"] .packet-relay { opacity: 1; }
.story[data-scene="direct"] .relay-line, .story[data-scene="clean"] .relay-line { opacity: .35; }
.story[data-scene="direct"] .relay-box rect, .story[data-scene="direct"] .relay-box text,
.story[data-scene="clean"] .relay-box rect, .story[data-scene="clean"] .relay-box text { opacity: .45; }
.story[data-scene="direct"] .relay-strike line, .story[data-scene="clean"] .relay-strike line { stroke-dashoffset: 0; }
.story[data-scene="direct"] .packet-direct, .story[data-scene="clean"] .packet-direct { opacity: 1; }
.story[data-scene="direct"] .direct-label, .story[data-scene="clean"] .direct-label { opacity: 1; }
html:not(.js-ready) .direct-line { stroke-dashoffset: 0; }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 8%; align-items: end; margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-head-single { grid-template-columns: 1fr; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12.5px; letter-spacing: .06em; color: var(--muted); line-height: 1.6; }
.eyebrow .num { font-variant-numeric: tabular-nums; color: var(--accent); letter-spacing: .04em; }
.hairline { display: inline-block; width: 28px; height: 1px; background: var(--line-strong); }
.section h2, .closing h2 { margin-top: 18px; font-size: clamp(34px, 4vw, 56px); line-height: 1.25; letter-spacing: -.03em; }
.section-sub { color: var(--muted); font-size: 15px; line-height: 1.9; max-width: 32em; padding-bottom: 8px; }

/* 01 Plans: period tabs + tier cards */
.period-tabs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 480px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.period-tabs button { position: relative; height: 54px; border: 0; background: transparent; cursor: pointer; font-size: 15.5px; color: var(--muted); transition: color .2s; }
.period-tabs button:hover { color: var(--ink-2); }
.period-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.tab-ink { position: absolute; left: 0; bottom: -1px; width: calc(100% / 3); height: 2px; background: var(--ink); transform: translateX(var(--tab-x, 200%)); transition: transform .45s var(--ease); }
.panel-title { font: 500 13px/1.6 var(--sans); color: var(--muted); letter-spacing: .04em; margin: 28px 0 14px; }
.js-ready .panel-title { display: none; }
.period-panel + .period-panel { margin-top: 8px; }
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.js-ready .period-panel .tier { animation: tier-in .55s var(--ease) both; }
.js-ready .period-panel .tier:nth-child(2) { animation-delay: .06s; }
.js-ready .period-panel .tier:nth-child(3) { animation-delay: .12s; }
@keyframes tier-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tier {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 28px 26px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.tier:hover { border-color: var(--line-strong); box-shadow: 0 18px 40px -28px rgba(46, 40, 26, .45); transform: translateY(-2px); }
.tier-featured { border-color: var(--ink); }
.tier-featured:hover { border-color: var(--ink); }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tier-head h4 { font-size: 17px; letter-spacing: -.005em; line-height: 1.5; }
.tier-share { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tier-tag { position: absolute; top: -11px; left: 26px; padding: 2px 10px; background: var(--ink); color: var(--paper); font-size: 11.5px; border-radius: 3px; letter-spacing: .03em; }
.tier-multiple { margin-top: 30px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tier-multiple [data-plan-multiple] { font: 400 52px/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.tier-pro { font-size: 13px; color: var(--muted); white-space: nowrap; }
.meter { position: relative; display: block; height: 8px; margin-top: 18px; background: repeating-linear-gradient(90deg, var(--line) 0 calc(10% - 3px), transparent calc(10% - 3px) 10%); border-radius: 1px; overflow: hidden; }
.meter i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--accent) 0 calc(10% - 3px), transparent calc(10% - 3px) 10%); clip-path: inset(0 calc(100% - var(--x, 0) * 10%) 0 0); transition: clip-path 1.1s var(--ease); }
html:not(.js-ready) .meter[data-x="1.25"] i { --x: 1.25; }
html:not(.js-ready) .meter[data-x="2.5"] i { --x: 2.5; }
html:not(.js-ready) .meter[data-x="5"] i { --x: 5; }
.tier-price { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: baseline; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tier-price .price { font: 500 32px/1.15 var(--sans); letter-spacing: -.03em; }
.tier-price .per { margin-left: 4px; font-size: 13px; color: var(--muted); }
.plan-button { margin-top: 20px; width: 100%; }
.tier-scope { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.tier-scope .text-link { margin-left: .6em; }
.plans-note { margin-top: 26px; font-size: 12.5px; color: var(--muted); line-height: 1.85; }

/* 02 Compare */
.br-wide { display: inline; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare-table th, .compare-table td { padding: 18px 20px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); white-space: nowrap; }
.compare-table thead th { padding-block: 14px; font-size: 12px; font-weight: 400; color: var(--muted); }
.compare-table tbody th { font-weight: 500; font-size: 15px; }
.compare-table td { font-size: 15px; }
.compare-table .cny { color: var(--muted); font-size: 13px; margin-left: 2px; }
.compare-table .col-unit { text-align: right; }
.compare-table .col-quota { width: 36%; }
.compare-table tbody:first-of-type tr:last-child > * { border-bottom: 1px solid var(--line-strong); }
.mogu-rows tr { background: var(--tint); }
.mogu-rows tr:last-child > * { border-bottom: 0; }
.mogu-rows .col-unit { font-weight: 600; color: var(--accent); }
.col-quota .bar, .col-quota .mult { vertical-align: middle; }
.bar { position: relative; display: inline-block; width: clamp(140px, 16vw, 230px); height: 7px; margin-right: 16px; }
.bar::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: var(--line); }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #9c9786; border-radius: 1px; transition: width 1.2s var(--ease); }
.mogu-rows .bar i { background: var(--accent); }
.bars-on .bar[data-x="1"] i, html:not(.js-ready) .bar[data-x="1"] i { width: 10%; }
.bars-on .bar[data-x="1.25"] i, html:not(.js-ready) .bar[data-x="1.25"] i { width: 12.5%; }
.bars-on .bar[data-x="2.5"] i, html:not(.js-ready) .bar[data-x="2.5"] i { width: 25%; }
.bars-on .bar[data-x="5"] i, html:not(.js-ready) .bar[data-x="5"] i { width: 50%; }
.bars-on .bar[data-x="10"] i, html:not(.js-ready) .bar[data-x="10"] i { width: 100%; }
.compare-table tbody tr:nth-child(2) .bar i { transition-delay: .08s; }
.compare-table tbody tr:nth-child(3) .bar i { transition-delay: .16s; }
.mult { display: inline-block; min-width: 3.5em; font-weight: 500; }
.notes { margin-top: 22px; display: grid; gap: 6px; max-width: 58em; }
.notes p { font-size: 12.5px; line-height: 1.85; color: var(--muted); }

/* 03 How */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { position: relative; padding-top: 20px; border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; }
.step:nth-child(2) { transition-delay: .06s; }
.step:nth-child(3) { transition-delay: .12s; }
.step:nth-child(4) { transition-delay: .18s; }
.step-num { font-size: 12px; color: var(--accent); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.3; letter-spacing: -.01em; }
.step p { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--ink-2); max-width: 20em; }
.step-link { margin-top: 14px; align-self: flex-start; font-size: 13px; min-height: 28px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
a.step-link[href]:hover { text-decoration: underline; text-underline-offset: 4px; }

.setup {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.setup-main, .setup-steps { padding: clamp(24px, 3vw, 40px); min-width: 0; }
.setup-steps { border-left: 1px solid var(--line); }
.setup-title { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.3; letter-spacing: -.01em; }
.release-state { margin-top: 8px; font-size: 14px; color: var(--muted); }
.preview-version { margin-top: 2px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.artifacts { display: grid; gap: 14px; }
.artifacts:not(:empty) { margin-top: 20px; }
.artifacts li { display: grid; gap: 8px; justify-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.artifacts li:last-child { border-bottom: 0; padding-bottom: 0; }
.artifacts li p { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.artifacts code { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.release-links { margin-top: 14px; display: flex; gap: 18px; font-size: 13px; }
.download-button { margin-top: 20px; }
.req { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.req p { line-height: 1.8; word-break: keep-all; }
.req-label { color: var(--muted); }
.req .sep { margin-inline: .45em; }
.req-no { margin-top: 12px; }
.cmd {
  display: block; margin-top: 10px; padding: 10px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 5px;
  font-size: 12.5px; line-height: 1.6; color: var(--ink); overflow-x: auto; white-space: pre;
}
.setup-flag { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.setup-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--muted); }
.install { margin-top: 14px; counter-reset: step; }
.install li { counter-increment: step; position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.8; min-width: 0; }
.install li::before { content: counter(step); position: absolute; left: 0; top: 15px; width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 11px; line-height: 18px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.install .os { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; }
.checksum { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* 04 Rules */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--line-strong); }
.rule { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 24px; padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.rule dt { font-weight: 600; font-size: 15px; line-height: 1.85; }
.rule dd { font-size: 15px; line-height: 1.85; color: var(--ink-2); max-width: 34em; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 4px; }
.support-link:not([aria-disabled="true"]) { color: var(--accent); border-bottom: 1px solid rgba(47, 107, 79, .35); }
.support-hours { color: var(--muted); font-size: 14px; }

/* 05 FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 8%; align-items: start; }
.faq-head { position: sticky; top: calc(var(--header) + 32px); }
.faq-head h2 { margin-top: 18px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; display: block; list-style: none; cursor: pointer;
  padding: 20px 40px 20px 0; font-size: 16px; font-weight: 500; line-height: 1.6; transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 1.25px; background: var(--ink-2);
  transition: transform .3s var(--ease), opacity .2s;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); opacity: 0; }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { padding: 0 40px 22px 0; font-size: 14.5px; line-height: 1.9; color: var(--ink-2); max-width: 42em; }
.faq-list details[open] p { animation: faq-in .4s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-list details p a { color: var(--accent); border-bottom: 1px solid rgba(47, 107, 79, .35); }

/* Closing + footer */
.closing { border-top: 1px solid var(--line); background: var(--tint); padding-block: clamp(64px, 8vw, 104px); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing h2 { margin-top: 0; font-size: clamp(36px, 4.6vw, 64px); }
.closing .button { min-height: 52px; padding-inline: 26px; font-size: 15px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; padding-block: 26px; font-size: 12.5px; color: var(--muted); }
.footer-brand { display: flex; align-items: baseline; gap: 14px; }
.footer-brand .brand-name { font-size: 17px; color: var(--ink); }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { min-height: 32px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1180px) {
  .main-nav { gap: 20px; }
  .brand-tagline { display: none; }
}

@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .js .main-nav {
    position: absolute; left: 0; right: 0; top: var(--header);
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px var(--gutter) 18px; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgba(46, 40, 26, .35);
  }
  .js .main-nav[data-open="true"] { display: flex; }
  .js .main-nav a { min-height: 50px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
  .js .main-nav a::after { display: none; }
  .js .main-nav a:last-child { border-bottom: 0; }
  .js .main-nav .nav-login { display: inline-flex; }
  .main-nav .nav-login[aria-disabled="true"] { color: var(--muted); }
  .header-actions { margin-left: auto; }
  .header-actions .login-link { display: none; }
  html:not(.js) .main-nav { display: none; }

  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .story-inner { grid-template-columns: 1fr; row-gap: 20px; align-content: center; }
  .story-steps, .story-copies, .story-art { grid-column: 1; grid-row: auto; }
  .story-copy > p:not(.eyebrow) { margin-top: 12px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-sub { padding-bottom: 0; }
  .tier-grid { grid-template-columns: 1fr; gap: 14px; max-width: 560px; }
  .tier { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 22px 22px 20px; }
  .tier-head { grid-column: 1 / -1; }
  .tier-multiple { margin-top: 18px; grid-column: 1 / -1; }
  .meter { grid-column: 1 / -1; }
  .tier-price { grid-column: 1; margin-top: 18px; padding-top: 16px; }
  .plan-button { grid-column: 2; align-self: end; width: auto; min-width: 112px; margin-top: 18px; }
  .tier-price, .plan-button { border-top: 0; }
  .tier-scope { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .rules { grid-template-columns: 1fr; }
  .setup { grid-template-columns: 1fr; }
  .setup-steps { border-left: 0; border-top: 1px solid var(--line); }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
}

@media (max-width: 640px) {
  :root { --header: 60px; }
  body { font-size: 14.5px; }
  .brand-name { font-size: 19px; }
  .header-actions { gap: 8px; }
  .hero { text-align: left; }
  .hero-inner { align-items: flex-start; }
  .hero h1 { font-size: clamp(44px, 13.4vw, 64px); line-height: 1.16; }
  .hero-sub { font-size: 15.5px; }
  .hero-sub span { display: inline; }
  .hero-actions { justify-content: flex-start; width: 100%; }
  .hero-actions .button { flex: 1 1 auto; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div, .hero-facts div:nth-child(3) { border-left: 0; padding: 14px 0; border-top: 1px solid var(--line); }
  .hero-facts div:first-child { border-top: 0; }
  .story { height: 280vh; }
  .story-steps { gap: 18px; }
  .story-copy h3 { font-size: 27px; margin-top: 12px; }
  .story-copy > p:not(.eyebrow) { font-size: 14.5px; line-height: 1.85; }
  .checks { margin-top: 14px; }
  .checks li { padding-block: 9px; font-size: 14px; }
  .checks li::before { top: 15px; }
  .route .node-title { font-size: 24px; }
  .route .node-sub, .direct-label { font-size: 19px; }
  .tier-multiple [data-plan-multiple] { font-size: 44px; }
  .tier-price .price { font-size: 28px; }
  .compare-table th, .compare-table td { padding: 14px 8px; font-size: 14px; line-height: 1.45; }
  .compare-table { min-width: 300px; }
  .compare-table th:first-child { padding-left: 4px; }
  .compare-table td:last-child, .compare-table th:last-child { padding-right: 4px; }
  .mogu-rows th:first-child { padding-left: 10px; }
  .mogu-rows td:last-child { padding-right: 10px; }
  .compare-table thead th { font-size: 11.5px; }
  .compare-table thead .col-unit { white-space: normal; width: 4.5em; }
  .compare-table .cny { display: block; margin-left: -.4em; font-size: 12px; }
  .compare-table .col-quota { width: auto; }
  .compare-table .row-brand { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
  .bar { display: none; }
  .mult { min-width: 0; }
  .br-wide { display: none; }
  .step p { max-width: none; }
  .cmd { white-space: pre-wrap; overflow-wrap: anywhere; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step h3 { font-size: 23px; }
  .rule { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .rule dd { font-size: 14.5px; }
  .faq-list summary { font-size: 15px; padding-block: 18px; }
  .closing-inner { flex-direction: column; align-items: flex-start; }
  .closing .button { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 8px; }
  .footer-nav { order: -1; margin-bottom: 4px; }
}

@media (max-width: 380px) {
  .button-small { padding-inline: 12px; }
  .compare-table th, .compare-table td { padding-inline: 5px; font-size: 13.5px; }
  .compare-table { min-width: 0; }
  .compare-table tbody th, .compare-table td { white-space: normal; }
  .compare-table .col-unit { white-space: nowrap; }
  .tier { padding: 20px 18px 18px; }
  .plan-button { min-width: 96px; }
}

/* Short desktop windows: keep the story stage readable */
@media (min-width: 1021px) and (max-height: 700px) {
  .story-copy h3 { font-size: 32px; }
  .story-copy > p:not(.eyebrow) { margin-top: 12px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .story { height: auto; }
  .story-stage { position: static; height: auto; min-height: 0; padding-block: 72px; }
  .js-ready .story-copy { opacity: 1; transform: none; grid-area: auto; margin-bottom: 36px; }
  .story-copies { display: block; }
  .js-ready .checks li { opacity: 1; transform: none; }
  .direct-line { stroke-dashoffset: 0; }
  .packet { display: none; }
}
.compare-sub { margin-top: 18px; }
