/* GuGu AI website: product content first, compact headings, one shared system. */
:root {
  color-scheme: light;
  --page: #f8f9fc;
  --surface: #fff;
  --ink: #202338;
  --ink-2: #41465c;
  --muted: #626a7d;
  --quiet: #687084;
  --blue: #5655da;
  --blue-deep: #4645bf;
  --accent-surface: #eeeefa;
  --line: #e3e6ee;
  --line-strong: #ccd1df;
  --sans: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --section-space: 56px;
  --radius: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--page); }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--page); font: 14px/1.75 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button { border: 0; color: inherit; font: inherit; cursor: pointer; }
button, input, select { font: inherit; }
input, select { color: var(--ink); caret-color: var(--blue); }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .6; }
:where(a, button, input, select, summary):focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
::selection { background: #deddfa; color: var(--ink); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { border: 2px solid var(--page); border-radius: 8px; background: var(--line-strong); }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
svg { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: 28px; line-height: 1.4; }
h2 { font-size: 22px; line-height: 1.5; }
h3 { font-size: 16px; line-height: 1.5; }
p { text-wrap: pretty; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
section[id], article[id], .help-article section[id] { scroll-margin-top: 88px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 16px; padding: 8px 16px; border-radius: 8px; background: var(--ink); color: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Stable navigation; the content starts immediately below it. */
.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--line); background: var(--surface); padding-top: env(safe-area-inset-top); }
.nav-shell { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-2); flex: 0 0 auto; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.wordmark img { width: 28px; height: 28px; }
.wordmark span { color: var(--blue-deep); font-size: 15px; }
.site-nav { display: flex; align-items: center; gap: var(--space-6); color: var(--muted); font-size: 13px; }
.site-nav > a { display: inline-flex; align-items: center; min-height: 44px; }
.site-nav > a:hover, .site-nav > a.is-active { color: var(--blue-deep); }
.site-nav > a.is-active { font-weight: 650; }
.menu-toggle { display: none; }
.nav-cta, .primary-button, .secondary-button, .refresh-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 18px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: normal; text-align: center; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.nav-cta, .primary-button { background: var(--blue); color: #fff; }
.site-nav > .nav-cta { color: #fff; }
.nav-cta:hover, .primary-button:hover { background: var(--blue-deep); }
.site-nav > .nav-cta:hover { color: #fff; }
.secondary-button, .refresh-button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); }
.secondary-button:hover, .refresh-button:hover { border-color: var(--blue); background: var(--accent-surface); }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.text-link { display: inline-flex; align-items: center; min-height: 36px; color: var(--blue-deep); font-size: 13px; font-weight: 550; }
.text-link:hover { text-decoration: underline; }

/* Compact introductions: purpose and useful actions, without a billboard. */
.page-intro { padding-block: var(--space-8); }
.section { padding-block: var(--section-space); }
.section-heading { margin-bottom: var(--space-6); }
.section-heading h2 { margin: 0; }
.section-heading p { margin: var(--space-2) 0 0; color: var(--muted); font-size: 13px; }
.split-heading, .preview-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.preview-heading { margin-bottom: var(--space-4); }
.preview-heading h2 { font-size: 18px; }
.preview-heading p { margin: 0; }

/* Product previews remain available inside the animated homepage stage. */
.product-preview { padding-bottom: var(--space-3); }
.preview-tabs { display: flex; gap: var(--space-2); width: fit-content; max-width: 100%; margin-bottom: var(--space-4); padding: var(--space-1); border-radius: 10px; background: #e9ecf3; }
.preview-tab { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 18px; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; transition: color .2s var(--ease), background .2s var(--ease); }
.preview-tab svg { width: 18px; height: 18px; }
.preview-tab:hover { color: var(--ink); }
.preview-tab[aria-selected="true"] { color: var(--blue-deep); background: var(--surface); }
.preview-frame { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.preview-caption { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 8px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.preview-caption b { color: var(--ink); font-weight: 600; }
.preview-panel img { display: block; width: 100%; }

/* Five modules form a readable list instead of interchangeable cards. */
.module-list { border-top: 1px solid var(--line); }
.module-entry { display: grid; grid-template-columns: 24px 112px minmax(0, 1fr) 80px; align-items: center; column-gap: var(--space-6); padding: var(--space-6) var(--space-3); border-bottom: 1px solid var(--line); border-radius: 0; transition: background .2s var(--ease); }
.module-entry:hover { background: var(--accent-surface); }
.module-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 auto; color: var(--blue-deep); }
.module-entry h3 { margin: 0; font-size: 16px; }
.module-entry p { margin: 0; max-width: 72ch; color: var(--muted); font-size: 13px; line-height: 1.8; }
.entry-action { color: var(--blue-deep); font-size: 12px; text-align: right; }
.workflow-section { padding-block: var(--space-8); border-block: 1px solid var(--line); }
.workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-8); margin: 0; padding: 0; list-style: none; }
.workflow-steps li { display: flex; gap: var(--space-4); align-items: start; }
.workflow-steps li > span { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--blue-deep); background: var(--accent-surface); font-size: 13px; font-variant-numeric: tabular-nums; }
.workflow-steps h3 { margin: 0 0 var(--space-2); }
.workflow-steps p { margin: 0; color: var(--muted); font-size: 13px; }
.guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-8); }
.guide-card { position: relative; padding: var(--space-4) 32px var(--space-4) 0; border-top: 1px solid var(--line-strong); }
.guide-card:hover h3 { color: var(--blue-deep); }
.guide-card h3 { margin: 0 0 var(--space-2); }
.guide-card p { margin: 0; color: var(--muted); font-size: 13px; }
.guide-card > svg { position: absolute; right: 0; top: 18px; width: 18px; height: 18px; color: var(--muted); }
.faq-section { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: var(--space-12); padding-bottom: var(--section-space); }
.faq-section h2 { margin: 0 0 var(--space-2); }
.faq-list details { padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 550; }
.faq-list summary::marker { color: var(--muted); }
.faq-list p { margin: var(--space-3) 0 0; max-width: 72ch; color: var(--muted); font-size: 13px; }
.download-section { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; margin-bottom: var(--section-space); padding: var(--space-8); border-radius: var(--radius); background: #eeeff8; }
.download-section h2 { margin: 0 0 var(--space-2); }
.download-section p { margin: 0 0 var(--space-2); color: var(--muted); font-size: 13px; }
.download-options { display: grid; gap: var(--space-3); }
.download-option { display: flex; align-items: center; gap: var(--space-4); min-height: 76px; padding: var(--space-4); border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); transition: border-color .2s var(--ease); }
.download-option:hover, .download-option.is-recommended { border-color: var(--blue); }
.download-option > svg { width: 22px; height: 22px; color: var(--blue-deep); }
.download-option strong, .download-option small { display: block; }
.download-option strong { font-size: 14px; font-weight: 600; }
.download-option small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.download-recommendation { margin-left: auto; color: var(--blue-deep); font-size: 12px; }
.download-options > p { margin: 0; font-size: 12px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-6); padding: var(--space-6) 0 calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); font-weight: 600; }
.footer-brand img { width: 22px; height: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-links a:hover { color: var(--blue-deep); }
.site-footer p { margin: 0; }

/* Feature explanations: named tools, actual screens and specific capabilities. */
.feature-jump { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: var(--space-4); }
.feature-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-2); border-radius: 6px; color: var(--muted); font-size: 13px; }
.feature-jump a:hover { color: var(--blue-deep); background: var(--accent-surface); }
.feature-story { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.4fr); gap: var(--space-12); align-items: center; padding-block: var(--space-8); border-top: 1px solid var(--line); }
.feature-story-copy h2 { margin: 0 0 var(--space-3); }
.feature-story-copy > p { margin: 0; max-width: 60ch; color: var(--muted); font-size: 14px; }
.feature-benefits { margin: var(--space-4) 0 var(--space-6); padding-left: 18px; color: var(--ink-2); font-size: 13px; }
.feature-benefits li { margin-block: var(--space-2); }
.feature-benefits li::marker { color: var(--muted); }
.feature-story-visual { min-width: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.feature-story-visual > img { display: block; width: 100%; }
.story-mini { background: var(--surface); }
.assistant-demo, .files-demo { padding: var(--space-6); }
.demo-tag { display: block; margin-bottom: var(--space-4); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.demo-user { margin-left: var(--space-8); padding: var(--space-4); border-radius: 10px; background: var(--accent-surface); color: var(--ink-2); font-size: 13px; }
.demo-assistant { display: flex; gap: var(--space-3); margin-top: var(--space-6); color: var(--ink-2); font-size: 13px; }
.demo-assistant > svg { color: var(--blue-deep); }
.demo-assistant p { margin: var(--space-2) 0 0; color: var(--muted); }
.assistant-demo small, .files-demo small { display: block; margin-top: var(--space-4); color: var(--muted); font-size: 12px; }
.demo-file { display: flex; align-items: center; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.demo-file > svg { color: var(--blue-deep); }
.demo-file strong, .demo-file div span { display: block; }
.demo-file strong { font-size: 13px; font-weight: 550; }
.demo-file div span, .file-type { color: var(--muted); font-size: 12px; }
.file-type { margin-left: auto; }
.notice-card { display: flex; align-items: center; gap: var(--space-6); padding-block: var(--space-6); margin-block: var(--space-6) var(--section-space); border-block: 1px solid var(--line); }
.notice-card h2 { margin: 0 0 var(--space-2); font-size: 16px; }
.notice-card p { margin: 0; color: var(--muted); font-size: 13px; }
.notice-card .secondary-button { flex: 0 0 auto; margin-left: auto; }

/* Prices retain all public data and states, with tabular numeric alignment. */
.price-section { padding-bottom: var(--space-8); }
.price-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-6); padding-block: var(--space-4); border-block: 1px solid var(--line); }
.price-status { color: var(--muted); font-size: 13px; }
.price-status.is-live { color: #256643; }
.price-status.is-error { color: #a52c3d; }
#priceUpdated { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.refresh-button { min-height: 40px; padding-inline: var(--space-3); }
.refresh-button[aria-busy="true"] svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.price-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-6); }
.price-card { min-width: 0; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.price-card-head { display: flex; align-items: start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.price-card-title { display: flex; align-items: start; gap: var(--space-3); min-width: 0; }
.price-model-icon { display: inline-flex; padding-top: var(--space-1); color: var(--blue-deep); }
.price-card h2 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.price-card-description { margin: var(--space-1) 0 0; color: var(--muted); font-size: 12px; }
.price-badge { flex: 0 0 auto; padding-top: var(--space-1); color: #256643; font-size: 12px; }
.price-badge.is-coming { color: var(--muted); }
.price-rows { display: grid; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row-label { min-width: 0; }
.price-row-label b { display: block; color: var(--ink-2); font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.price-row-label small { display: block; margin-top: var(--space-1); color: var(--muted); font-size: 12px; }
.price-row-value { flex: 0 0 auto; text-align: right; font-variant-numeric: tabular-nums; }
.price-row-value strong { display: block; font-size: 19px; font-weight: 600; }
.price-row-value strong span { margin-left: var(--space-1); color: var(--muted); font-size: 12px; font-weight: 400; }
.price-row-value small { display: block; color: var(--muted); font-size: 12px; }
.price-card-note { margin: var(--space-4) 0 0; color: var(--muted); font-size: 12px; }
.price-empty, .price-loading { grid-column: 1 / -1; padding: var(--space-12) var(--space-6); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
.price-card .price-empty { padding: var(--space-6) 0; border: 0; border-radius: 0; text-align: left; }
.price-empty strong { display: block; margin-bottom: var(--space-2); color: var(--ink); font-size: 16px; }
.price-footnote { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-8); margin-top: var(--space-6); }
.price-footnote article { padding-top: var(--space-4); border-top: 1px solid var(--line); }
.price-footnote b { display: block; margin-bottom: var(--space-2); font-size: 13px; font-weight: 600; }
.price-footnote p { margin: 0; color: var(--muted); font-size: 12px; }
.cta-section { padding-bottom: var(--section-space); }
.callout { display: grid; grid-template-columns: 1fr auto; column-gap: var(--space-8); align-items: center; padding: var(--space-6); border-radius: var(--radius); background: #eeeff8; }
.callout h2 { margin: 0 0 var(--space-2); font-size: 20px; }
.callout p { grid-column: 1; margin: 0; color: var(--muted); font-size: 13px; }
.callout .page-actions { grid-column: 2; grid-row: 1 / 3; }

/* Help center: static readable documents enhanced with search and navigation. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.help-hero { padding: 32px 0 24px; text-align: left; }
.help-hero h1 { margin: 0 0 8px; font-size: 28px; font-weight: 650; line-height: 1.4; }
.help-hero > p { color: var(--muted); font-size: 13px; }
.help-search { display: flex; align-items: center; gap: 13px; max-width: 720px; margin: 20px 0 0; padding: 8px 18px; min-height: 58px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); text-align: left; }
.help-search:focus-within { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 2px; }
.help-search svg { color: #858ca3; width: 19px; height: 19px; }
.help-search input { min-width: 0; flex: 1; border: 0; background: transparent; font-size: 13px; color: var(--ink); outline: none; }
.help-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.help-search input::placeholder { color: var(--muted); }
.help-search button { min-height: 36px; padding: 5px 8px; border-radius: 6px; background: #f0f0f8; color: var(--muted); font-size: 11px; }
.help-hero .search-hint { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-start; gap: 8px; font-size: 12px; }
.search-hint button { min-height: 36px; background: transparent; color: var(--blue-deep); font-size: 11px; padding: 4px 6px; border-radius: 5px; }
.search-hint button:hover { background: var(--accent-surface); }
.search-hint span { color: var(--muted); margin-left: 12px; }
.help-layout { display: grid; grid-template-columns: 208px minmax(0,1fr) 152px; gap: 32px; align-items: start; padding: 35px 0 85px; border-top: 1px solid var(--line); }
.help-sidebar, .help-toc { position: sticky; top: 88px; max-height: calc(100dvh - 112px); overflow-y: auto; scrollbar-width: thin; }
.sidebar-title { display: block; font-size: 12px; color: var(--muted); margin: 0 0 18px 10px; font-weight: 600; }
.help-nav-group { margin-bottom: 20px; }
.help-nav-group h2 { margin: 0 0 6px; padding-left: 10px; font-size: 11px; font-weight: 650; color: var(--ink-2); }
.help-nav-group a { display: block; min-height: 40px; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.help-nav-group a:hover { background: #eff0f7; color: var(--ink); }
.help-nav-group a[aria-current="page"] { background: var(--accent-surface); color: var(--blue-deep); font-weight: 600; }
.sidebar-note { padding: 18px 10px 5px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.sidebar-note a { display: block; color: var(--blue-deep); margin-top: 6px; }
#help-mobile-nav { display: none; }
.help-content { min-width: 0; }
.help-article { padding-bottom: 32px; margin-bottom: 35px; border-bottom: 1px solid var(--line); }
.help-enhanced .help-article { border-bottom: 0; margin-bottom: 0; }
.help-article h1 { margin: 0 0 17px; font-size: 26px; line-height: 1.4; font-weight: 650; letter-spacing: -.04em; }
.article-intro { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 0 0 30px; }
.article-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); padding-bottom: 22px; margin-bottom: 33px; border-bottom: 1px solid var(--line); }
.help-article h2 { font-size: 19px; margin: 30px 0 14px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.help-article section > p, .help-article ul, .help-article ol { font-size: 14px; color: var(--ink-2); line-height: 1.95; }
.help-article ul, .help-article ol { padding-left: 21px; margin: 14px 0 20px; }
.help-article li { padding-left: 5px; margin: 9px 0; }
.help-article li::marker { color: var(--blue); }
.help-table-scroll { max-width: 100%; overflow-x: auto; margin: 22px 0; border: 1px solid #e0e3ed; border-radius: 10px; background: #fff; scrollbar-width: thin; }
.help-table-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.help-table { width: 100%; min-width: 480px; border-collapse: collapse; text-align: left; font-size: 12px; line-height: 1.8; color: var(--ink-2); }
.help-table caption { padding: 13px 16px; text-align: left; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); }
.help-table th, .help-table td { padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.help-table thead th { background: #f3f4fa; font-weight: 600; color: var(--ink); }
.help-table tbody th { min-width: 110px; font-weight: 550; }
.help-table tbody tr:last-child > * { border-bottom: 0; }
.article-resources { margin: 20px 0; font-size: 12px; line-height: 1.8; }
.article-note { padding: 17px 20px; margin-top: 22px; border: 1px solid #dddcf3; border-radius: 10px; background: #efeffa; color: var(--ink-2); font-size: 12px; line-height: 1.9; }
.article-note b { display: block; color: var(--blue-deep); margin-bottom: 3px; font-size: 11px; }
.article-example { margin: 20px 0; padding: 18px 21px; border: 1px solid #e1e3ec; border-radius: 12px; background: white; }
.article-example figcaption { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.article-example.example-code-block { position: relative; padding: 0; background: #f5f6f9; border-color: #e4e6ed; border-radius: 10px; }
.example-code-block .example-content { margin: 0; padding: 20px 56px 20px 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--ink-2); line-height: 1.9; tab-size: 2; }
.example-content code { font: inherit; }
.example-copy { display: none; position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.help-copy-ready .example-copy { display: inline-flex; align-items: center; justify-content: center; }
.example-copy:hover { background: #e8eaf0; color: var(--ink-2); }
.example-copy:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.example-copy:disabled { cursor: wait; opacity: .65; }
.example-copy-check, .example-copy[data-copy-state="copied"] .example-copy-icon { display: none; }
.example-copy[data-copy-state="copied"] .example-copy-check { display: block; color: var(--blue-deep); }
.example-copy-status[data-copy-error] { position: static; width: auto; height: auto; margin: 0; padding: 14px 56px 0 20px; clip: auto; white-space: normal; overflow: visible; color: var(--ink-2); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.article-example .example-hint { margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--sans); font-size: 11px; line-height: 1.8; }
.help-toc nav a { display: block; padding: 7px 10px; border-left: 1px solid #dde0eb; font-size: 11px; line-height: 1.6; color: var(--muted); }
.help-toc nav a:hover, .help-toc nav a[aria-current="location"] { border-color: var(--blue); color: var(--blue-deep); }
.toc-top { display: inline-block; margin: 22px 0 0 10px; font-size: 11px; color: var(--blue-deep); }
.help-reading-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin: 30px 0; }
.help-reading-nav a { display: flex; flex-direction: column; justify-content: center; min-height: 80px; border: 1px solid #dfe1ee; padding: 14px 17px; border-radius: 12px; color: var(--ink-2); font-size: 12px; background: #ffffffa0; }
.help-reading-nav a:hover { border-color: #aaa8e7; }
.help-reading-nav a span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.help-reading-nav [data-help-next] { grid-column: 2; }
.help-reading-note { border-top: 1px solid var(--line); padding-top: 25px; }
.help-reading-note strong { font-size: 13px; font-weight: 600; }
.help-reading-note p { font-size: 12px; line-height: 1.9; color: var(--muted); }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.results-heading h2 { font-size: 24px; font-weight: 600; margin: 0; }
.results-heading button { min-height: 36px; font-size: 11px; padding: 0 12px; }
.results-count { font-size: 12px; color: var(--muted); margin: 15px 0 25px; }
.result-card { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); }
.result-card:hover h3 { color: var(--blue-deep); }
.result-card > span { font-size: 12px; color: var(--blue-deep); }
.result-card h3 { margin: 9px 0; font-size: 17px; font-weight: 600; }
.result-card p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }
.result-card mark { color: var(--blue-deep); background: #e9e8ff; border-radius: 2px; }
.search-empty { padding: 35px 24px; border: 1px dashed #d1d4e4; border-radius: 12px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.search-empty strong { display: block; color: var(--ink); margin-bottom: 9px; font-weight: 600; }

/* Restore the established glass material; compact page introductions remain. */
body { background: radial-gradient(ellipse 48rem 30rem at 82% 0%, #eaeafd 0%, transparent 75%), var(--page); }
.site-header { padding-top: max(14px, env(safe-area-inset-top)); border: 0; background: transparent; }
.nav-shell { min-height: 64px; padding: 10px 14px 10px 20px; border: 1px solid #ffffffc9; border-radius: 18px; background: #ffffffbd; box-shadow: 0 8px 28px #2528580b; backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); }
.nav-cta, .primary-button, .secondary-button, .refresh-button { border-radius: 12px; }
.primary-button { box-shadow: 0 8px 20px #5655da1c; }
.secondary-button { background: #ffffffb8; }
.feature-story-visual { padding: 8px; border-color: #ffffffd9; background: #eceef6; box-shadow: 0 14px 38px #2528580b; }
.feature-story-visual > img { border-radius: 8px; }
.story-mini { background: #ffffffc9; }
.price-card { border-color: #e0e3ee; background: #ffffffcf; box-shadow: 0 8px 26px #25285806; }
.download-section, .callout { background: linear-gradient(125deg, #fff, #ededfc); box-shadow: 0 12px 32px #25285808; }

/* The homepage keeps its own expressive first viewport and product motion. */
.home-hero { position: relative; padding: 76px 0 64px; text-align: center; }
.home-hero h1 { max-width: 850px; margin: 0 auto 24px; font-size: clamp(44px, 5.4vw, 68px); font-weight: 700; letter-spacing: -.035em; line-height: 1.16; }
.home-hero h1 span { display: block; color: var(--blue); }
.hero-description { max-width: 630px; margin: 0 auto; color: var(--muted); font-size: 16px; line-height: 1.85; }
.hero-description strong { color: var(--ink-2); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 580px; margin: 28px auto 0; }
.hero-download-choice { flex: 1 1 230px; max-width: 268px; }
.hero-download-button { width: 100%; min-height: 58px; gap: 12px; padding: 0 20px; border-radius: 14px; }
.hero-download-button svg { width: 23px; height: 23px; }
.hero-download-title { font-size: 15px; font-weight: 650; }
.hero-download-note { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.hero-download-button.is-recommended { border-color: transparent; color: white; background: var(--blue); box-shadow: 0 12px 28px #5655da24; }
.hero-download-button.is-recommended:hover { background: var(--blue-deep); }
.product-stage { position: relative; isolation: isolate; max-width: 1080px; margin: 56px auto 0; perspective: 1600px; text-align: left; animation: stage-arrive .9s .15s var(--ease) both; }
@keyframes stage-arrive { from { opacity: .65; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
.stage-glow { position: absolute; z-index: -1; inset: 4% 6% -8%; border-radius: 45%; background: linear-gradient(112deg, #80d9ed5c, #827ee969 48%, #c899ec4d); filter: blur(64px); animation: stage-breathe 12s ease-in-out infinite alternate; }
@keyframes stage-breathe { from { transform: translate3d(-12px, 0, 0) scale(.98); } to { transform: translate3d(12px, 16px, 0) scale(1.04); } }
.window { padding: 10px; border: 1px solid #ffffffdf; border-radius: 22px; background: #ffffffad; box-shadow: 0 32px 80px #30345324, inset 0 1px #fff; transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .6s var(--ease); }
.window-media { overflow: hidden; border-radius: 14px; background: #f9faff; }
.hero-preview-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.hero-preview-controls .preview-tabs { margin: 0; background: #eeeef7; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; }
.motion-toggle:hover { color: var(--blue-deep); background: var(--accent-surface); }
.motion-toggle span { display: inline-flex; }
.motion-toggle svg { width: 15px; height: 15px; }
.home-hero .preview-frame { border: 0; border-radius: 0; }
.home-hero .preview-panel:not([hidden]) { animation: preview-arrive .55s var(--ease); }
@keyframes preview-arrive { from { opacity: .7; transform: translate3d(12px, 0, 0); } to { opacity: 1; transform: none; } }
.home-hero .hero-copy { animation: hero-arrive .8s var(--ease) both; }
.home-hero .hero-actions { animation: hero-arrive .8s .1s var(--ease) both; }
@keyframes hero-arrive { from { opacity: .5; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
.home-hero[data-motion-paused="true"] .stage-glow { animation-play-state: paused; }

/* Restore visual rhythm below the homepage instead of a flat text directory. */
.home-main .section { padding-block: 64px; }
.home-main .section-heading h2, .home-main .faq-section h2, .home-main .download-section h2 { font-size: 28px; }
.home-main .module-list { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; border: 0; }
.home-main .module-entry { grid-column: span 2; grid-template-columns: 28px minmax(0,1fr); align-items: start; gap: 12px; min-height: 224px; padding: 24px; border: 1px solid #e1e3ee; border-radius: 16px; background: #ffffffc9; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.home-main .module-entry:nth-child(n+4) { grid-column: span 3; min-height: 208px; }
.home-main .module-entry:hover { border-color: #bcbbee; transform: translateY(-3px); box-shadow: 0 12px 32px #3a3c6910; }
.home-main .module-entry .module-icon { width: 28px; height: 28px; }
.home-main .module-entry h3 { padding-top: 2px; font-size: 18px; }
.home-main .module-entry p { grid-column: 1 / -1; grid-row: 2; }
.home-main .module-entry .entry-action { grid-column: 1 / -1; grid-row: 3; align-self: end; text-align: left; }
.home-main .workflow-section { padding: 32px; border: 0; border-radius: 16px; background: #303454; color: #fff; }
.home-main .workflow-section .text-link, .home-main .workflow-steps p { color: #d7daef; }
.home-main .workflow-steps li > span { color: #e2e1ff; background: #ffffff18; }
.home-main .guide-card { padding: 24px 44px 24px 24px; border: 0; border-radius: 12px; background: #eeeefa; }
.home-main .guide-card > svg { right: 18px; top: 27px; }
.home-main .help-teaser .guide-grid { gap: 16px; }

@media (max-width: 860px) {
  .home-hero { padding-top: 56px; }
  .home-main .module-entry { grid-column: span 3; }
  .home-main .module-entry:last-child { grid-column: span 6; }
}
@media (max-width: 620px) {
  .site-header { padding-top: 10px; }
  .nav-shell { padding: 8px 12px; }
  .home-hero { padding: 40px 0 40px; }
  .home-hero h1 { font-size: clamp(34px, 8.6vw, 44px); line-height: 1.25; margin-bottom: 18px; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .hero-download-choice { flex-basis: 140px; }
  .hero-download-button { min-height: 52px; gap: 8px; padding-inline: 10px; }
  .hero-download-title { font-size: 12px; }
  .hero-download-button svg { width: 18px; height: 18px; }
  .product-stage { margin-top: 36px; }
  .window { padding: 6px; border-radius: 16px; }
  .window-media { border-radius: 10px; }
  .hero-preview-controls { flex-wrap: wrap; gap: 4px; padding: 8px; }
  .hero-preview-controls .preview-tabs { width: 100%; }
  .motion-toggle { margin-left: auto; min-height: 36px; }
  .home-main .section { padding-block: 44px; }
  .home-main .section-heading h2, .home-main .faq-section h2, .home-main .download-section h2 { font-size: 24px; }
  .home-main .module-list { grid-template-columns: 1fr; }
  .home-main .module-entry, .home-main .module-entry:nth-child(n+4), .home-main .module-entry:last-child { grid-column: auto; min-height: 180px; padding: 22px; }
  .home-main .workflow-section { padding: 24px; }
}

/* Structural adaptation keeps the reading order and visible focus intact. */
@media (max-width: 1100px) {
  .help-layout { grid-template-columns: 200px minmax(0,1fr); gap: var(--space-6); }
  .help-toc { display: none; }
  .feature-story { gap: var(--space-8); }
}
@media (max-width: 860px) {
  .wrap { width: calc(100% - 40px); }
  .nav-shell { flex-wrap: wrap; gap: 0; padding-block: var(--space-3); }
  .site-header.has-menu .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; border-radius: 8px; background: var(--accent-surface); color: var(--blue-deep); }
  .site-nav { width: 100%; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding-top: var(--space-3); }
  .site-header.has-menu:not(.menu-open) .site-nav { display: none; }
  .site-nav > a:not(.nav-cta) { padding-inline: var(--space-2); }
  .site-nav .nav-cta { margin-left: auto; }
  .module-entry { grid-template-columns: 24px minmax(0,1fr) 80px; column-gap: var(--space-4); row-gap: var(--space-2); }
  .module-entry p { grid-column: 2; grid-row: 2; }
  .module-entry .entry-action { grid-column: 3; grid-row: 1 / 3; }
  .workflow-steps { gap: var(--space-6); }
  .faq-section { grid-template-columns: 180px minmax(0,1fr); gap: var(--space-8); }
  .feature-story { grid-template-columns: 1fr; gap: var(--space-6); }
  .feature-story-copy > p { max-width: 72ch; }
  .help-layout { grid-template-columns: 172px minmax(0,1fr); gap: var(--space-6); }
  .callout { display: block; }
  .callout .page-actions { margin-top: var(--space-4); }
}
@media (max-width: 620px) {
  :root { --section-space: 40px; }
  .wrap { width: calc(100% - 32px); }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .page-intro { padding-block: var(--space-6); }
  .split-heading { align-items: start; gap: var(--space-3); }
  .split-heading .secondary-button { min-height: 36px; padding-inline: var(--space-3); font-size: 12px; }
  .preview-heading { display: block; }
  .preview-heading p { margin-top: var(--space-1); font-size: 12px; }
  .preview-tabs { width: 100%; gap: var(--space-1); }
  .preview-tab { flex: 1; min-width: 0; gap: 6px; padding-inline: 6px; font-size: 12px; }
  .preview-tab svg { width: 16px; height: 16px; }
  .preview-caption { align-items: start; gap: var(--space-2); padding: var(--space-2) var(--space-3); font-size: 12px; }
  .preview-caption > span { min-width: 0; }
  .preview-caption .text-link { flex: 0 0 auto; font-size: 12px; }
  .module-entry { grid-template-columns: 20px minmax(0,1fr); padding: var(--space-4) 0; }
  .module-icon { width: 20px; height: 20px; }
  .module-entry .entry-action { grid-column: 2; grid-row: 3; text-align: left; }
  .workflow-section { padding-block: var(--space-6); }
  .workflow-steps, .guide-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .guide-card { padding-block: var(--space-4); }
  .faq-section { grid-template-columns: 1fr; gap: var(--space-4); }
  .download-section { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-6); }
  .download-option { flex-wrap: wrap; gap: var(--space-3); }
  .download-recommendation { font-size: 12px; }
  .site-footer { flex-direction: column; align-items: start; gap: var(--space-3); }
  .feature-jump { gap: 4px 8px; }
  .feature-story { padding-block: var(--space-6); }
  .assistant-demo, .files-demo { padding: var(--space-4); }
  .demo-user { margin-left: var(--space-4); }
  .notice-card { flex-wrap: wrap; gap: var(--space-4); }
  .notice-card > div { flex: 1; min-width: 180px; }
  .notice-card .secondary-button { margin-left: 40px; }
  .price-catalog, .price-footnote { grid-template-columns: 1fr; }
  .price-card { padding: var(--space-4); }
  .price-toolbar { gap: var(--space-3); }
  #priceUpdated { margin-left: 0; }
  .refresh-button { margin-left: auto; }
  .price-card-head { gap: var(--space-3); }
  .price-badge { font-size: 11px; }
  .callout { padding: var(--space-6); }
  .help-hero { padding: var(--space-6) 0; }
  .help-hero h1 { font-size: 24px; }
  .help-search { min-height: 52px; gap: var(--space-2); padding: var(--space-2) var(--space-3); }
  .help-search input { font-size: 13px; }
  .search-hint span { display: none; }
  .help-main > .feature-jump { margin-top: 0; margin-bottom: var(--space-4); }
  .help-layout { grid-template-columns: 1fr; gap: var(--space-6); padding-top: var(--space-6); }
  .help-sidebar { position: static; max-height: none; }
  .help-sidebar .sidebar-title, .help-sidebar .sidebar-note { display: none; }
  .help-enhanced #help-nav { display: none; }
  .help-enhanced #help-mobile-nav { display: block; width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; padding: var(--space-2) var(--space-3); background: var(--surface); color: var(--ink-2); font-size: 13px; }
  .help-article h1 { font-size: 23px; }
  .help-article h2 { font-size: 18px; }
  .help-reading-nav { gap: var(--space-3); }
  .help-reading-nav a { padding: var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
