/* ActionKey — AI asset access / shared marketing and documentation system */
:root {
  --paper: #f7f8fc;
  --surface: #ffffff;
  --ink: #14203d;
  --muted: #64718a;
  --blue: #315efb;
  --blue-soft: #edf1ff;
  --line: #dfe5ef;
  --navy: #111e3a;
  --lime: #d8ed86;
  --green: #23966a;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { color: inherit; }
button:disabled { cursor: default; }
::selection { background: #d5dfff; color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
section[id], .doc-section[id], .doc-integration[id], .doc-content h3[id], details[id], #main { scroll-margin-top: 106px; }
.container, .nav-inner, .footer-inner { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.text-blue { color: var(--blue); }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); line-height: 1.6; margin-bottom: 22px; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--green); }
h1 { font-size: clamp(38px, 4.5vw, 62px); line-height: 1.24; letter-spacing: -0.045em; font-weight: 760; }
h2 { font-size: clamp(34px, 3.7vw, 48px); line-height: 1.25; letter-spacing: -0.035em; font-weight: 740; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; line-height: 1.5; font-weight: 650; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn span[aria-hidden] { font-size: 19px; font-weight: 400; line-height: 1; }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: #244be1; }
.btn-outline { border-color: #cbd4e6; color: var(--ink); background: transparent; }
.btn-outline:hover { background: white; border-color: var(--blue); }
.btn-light { color: var(--ink); background: white; }
.btn-light:hover { background: var(--blue-soft); }
.btn-dark { color: white; background: var(--navy); }
.btn-dark:hover { background: #25375c; }
.btn-small { min-height: 42px; padding: 10px 17px; font-size: 12px; gap: 14px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 110; padding: 10px 18px; border-radius: 8px; background: var(--blue); color: white; }
.skip-link:focus { top: 14px; }
/* Navigation */
.site-nav { position: sticky; top: 0; z-index: 50; min-height: 76px; background: rgba(247,248,252,.93); backdrop-filter: blur(20px); border-bottom: 1px solid transparent; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.nav-brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 36px; border-radius: 10px; background: var(--blue); color: white; font-size: 22px; font-weight: 750; line-height: 1; }
.logo-mark svg, .bridge-mark svg { display: block; width: 28px; height: 28px; }
.brand-name { display: flex; flex-direction: column; font-size: 19px; font-weight: 750; letter-spacing: -.035em; line-height: 1.15; white-space: nowrap; }
.brand-english, .brand-en { color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: .1em; line-height: 1.3; margin-top: 5px; }
.nav-menu { list-style: none; padding: 0; display: flex; align-items: center; justify-content: flex-end; gap: 28px; margin-left: auto; }
.nav-menu a:not(.btn) { font-size: 12px; font-weight: 550; color: #526079; }
.nav-menu a:not(.btn):hover, .nav-menu a:not(.btn)[aria-current] { color: var(--blue); }
.site-nav .btn-small { flex-shrink: 0; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 11px 9px; background: transparent; border: 1px solid var(--line); border-radius: 8px; }
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform 160ms; }
/* Hero / permission diagram */
.hero { padding-top: 56px; padding-bottom: 0; }
.hero-layout { display: grid; grid-template-columns: 1.13fr 1fr; gap: 60px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-description { color: var(--muted); font-size: 16px; line-height: 1.95; margin-top: 26px; max-width: 545px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-account { color: var(--muted); font-size: 12px; margin-top: 24px; }
.hero-price { display: flex; align-items: center; gap: 18px; margin-top: 22px; font-size: 12px; color: var(--muted); }
.hero-price strong { color: var(--ink); font-family: var(--sans); font-size: 24px; letter-spacing: -.03em; white-space: nowrap; }
.hero-price strong > span { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.hero-price-note { color: var(--muted); font-size: 10px; margin-top: 8px; }
.price-divider { width: 1px; height: 20px; background: #cdd5e4; }
.access-console { background: var(--navy); color: #edf2ff; border-radius: 22px; border: 1px solid #243554; box-shadow: 0 22px 50px rgba(24,43,85,.16); overflow: hidden; }
.console-topline { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 10px; font-family: var(--mono); letter-spacing: .06em; color: #9aaacf; }
.console-topline > span:first-child { display: flex; align-items: center; gap: 8px; }
.console-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.console-tag { font-family: var(--sans); font-size: 10px; letter-spacing: 0; color: #c9d3e9; padding: 3px 7px; border: 1px solid #354465; border-radius: 4px; }
.console-body { padding: 22px 24px 20px; }
.console-label { color: #99a9c7; font-size: 10px; letter-spacing: .05em; margin-bottom: 11px; }
.assistant-switcher { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.assistant-switcher button { background: #1b2946; border: 1px solid #334261; border-radius: 10px; color: #dce6fb; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; padding: 8px 3px; min-height: 58px; font-size: 11px; transition: background 160ms, border-color 160ms; }
.assistant-switcher button[aria-pressed="true"] { border-color: #829fff; background: #283d73; color: white; }
.assistant-symbol { font-size: 23px; line-height: 1; height: 24px; }
.claude-symbol { color: #cb7755; }
.codex-symbol { font-family: var(--mono); font-size: 17px; font-weight: 700; }
.gemini-symbol { color: #7691f2; }
.grok-symbol { font-weight: 700; font-size: 27px; }
.access-console .codex-symbol, .access-console .grok-symbol { color: #e3eafe; }
.connection-lines { width: 100%; height: 40px; display: block; }
.connection-lines path { stroke: #435274; stroke-width: 1; }
.access-console[data-assistant="claude"] [data-branch="claude"], .access-console[data-assistant="codex"] [data-branch="codex"], .access-console[data-assistant="gemini"] [data-branch="gemini"], .access-console[data-assistant="grok"] [data-branch="grok"] { stroke: #99b0ff; stroke-width: 1.5; }
.permission-bridge { display: flex; align-items: center; gap: 11px; width: calc(100% - 70px); margin: 0 auto; padding: 11px 14px; border: 1px solid #536dba; border-radius: 12px; background: #233664; }
.bridge-mark { display: grid; place-items: center; width: 32px; height: 34px; border-radius: 9px; background: var(--blue); color: white; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.permission-bridge strong { font-size: 12px; font-weight: 650; }
.permission-bridge div > span { display: block; color: #b3c3ee; font-size: 9px; }
.bridge-badge { margin-left: auto; padding: 3px 6px; border: 1px solid #6480c9; border-radius: 4px; font-size: 8px; color: #e0e8ff; white-space: nowrap; }
.vertical-connection { height: 27px; display: flex; align-items: center; justify-content: center; position: relative; }
.vertical-connection span { position: absolute; width: 1px; height: 22px; background: #7893cf; }
.vertical-connection b { position: relative; top: 5px; font-size: 14px; color: #b7c8f2; font-weight: 400; }
.asset-destination { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border: 1px solid #35496a; border-radius: 12px; background: #1c2d4d; }
.facebook-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #2b6ded; font-family: Arial, sans-serif; color: white; font-size: 32px; font-weight: 700; line-height: 1; padding-top: 4px; }
.asset-destination strong { font-size: 12px; font-weight: 650; }
.asset-destination div > span { display: block; color: #a6b6d6; font-size: 9px; }
.asset-status { margin-left: auto; color: var(--lime); font-size: 19px; }
.asset-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 9px 0 18px; }
.asset-labels span { text-align: center; padding: 4px 2px; border: 1px solid #2d3d5e; border-radius: 5px; color: #a8b9dc; font-size: 9px; }
.console-command { border-top: 1px solid #314261; padding-top: 15px; }
.console-command > div { font-family: var(--mono); font-size: 9px; color: #8ea4c8; }
.command-speaker { color: var(--lime); }
.console-command p { font-size: 11px; line-height: 1.9; margin: 7px 0 8px; color: #e0e9fc; }
.command-result { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; color: #bfd690; }
.command-result i { font-style: normal; }
.console-bottom { padding: 11px 24px; border-top: 1px solid rgba(255,255,255,.09); font-size: 9px; color: #9aaac6; }
.compatibility-strip { display: flex; align-items: center; gap: 40px; margin-top: 56px; padding: 28px 0 30px; border-top: 1px solid var(--line); }
.compatibility-strip > span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.compatibility-names { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 24px; font-size: 23px; font-weight: 650; letter-spacing: -.04em; }
.compatibility-names .custom-system { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
/* Three workflows: static scenes become user-controlled animations. */
.chatgpt-demo-section { background: #edf1fa; border-top: 1px solid var(--line); }
.workflow-mode-tabs { display: none; scroll-margin-top: 106px; }
.modes-ready .workflow-mode-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.workflow-mode-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; text-align: left; background: #f7f9fd; padding: 18px 22px; border: 1px solid #d3ddef; border-radius: 12px; color: var(--muted); }
.workflow-mode-tabs button > small { font: 9px var(--mono); }
.workflow-mode-tabs button > strong { font-size: 19px; line-height: 1.5; color: var(--ink); }
.workflow-mode-tabs button > span { font-size: 12px; }
.workflow-mode-tabs button:hover { border-color: #a6bafa; }
.workflow-mode-tabs button[aria-selected="true"] { background: white; border-color: var(--blue); box-shadow: inset 0 3px var(--blue); }
.workflow-mode-tabs button[aria-selected="true"] > strong { color: var(--blue); }
.demo-mode-intro { min-height: 50px; font-size: 13px; line-height: 1.9; color: #526481; margin: 0 0 20px; }
.demo-mode-intro strong { color: var(--ink); }
[data-workflow-mode-panel="system"] .demo-chat-symbol { background: var(--blue-soft); color: var(--blue); font: 13px var(--mono); }
[data-workflow-showcase]:not(.modes-ready) .workflow-demo-mode + .workflow-demo-mode { border-top: 1px solid #ccd7ed; margin-top: 40px; padding-top: 30px; }
.chatgpt-demo-frame { overflow: hidden; border: 1px solid #d3ddef; border-radius: 20px; background: white; box-shadow: 0 16px 42px #14203d08; }
.chatgpt-demo-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.demo-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; }
.demo-chat-symbol { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #e9f4ef; color: #31886c; font-size: 23px; }
.demo-tabs { display: none; padding: 12px 24px; background: #f7f9fd; border-bottom: 1px solid var(--line); }
.demo-ready .demo-tabs { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 9px; }
.demo-tabs button { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); text-align: left; min-height: 46px; }
.demo-tabs button > span { font: 10px var(--mono); }
.demo-tabs strong { font-size: 12px; font-weight: 600; white-space: nowrap; }
.demo-tabs button:hover { background: #edf1ff; }
.demo-tabs button[aria-selected="true"] { background: white; border-color: #b9c9fe; color: var(--blue); box-shadow: 0 4px 10px #315efb0a; }
.demo-route { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 13px; padding: 15px 24px; color: var(--muted); font-size: 10px; border-bottom: 1px dashed var(--line); }
.demo-route i { font-style: normal; color: #8f9ab0; }
.demo-route strong { color: var(--ink); font-size: 11px; }
.demo-route .demo-route-key { position: relative; padding: 4px 9px; background: var(--blue-soft); border-radius: 5px; color: var(--blue); }
.demo-route-pulse { position: absolute; inset: 0; border: 1px solid #9ab0ff; border-radius: inherit; }
[data-demo-playing="true"] .demo-route-pulse { animation: demo-access-pulse 1.6s ease-out infinite; }
.demo-scene { display: grid; grid-template-columns: 1.2fr 1fr; gap: 42px; min-height: 340px; padding: 24px 28px; align-items: start; }
.demo-ready .demo-scene:not([hidden]) { animation: demo-scene-enter 280ms ease-out both; }
[data-workflow-demo]:not(.demo-ready) .demo-scene + .demo-scene { border-top: 1px solid var(--line); }
.demo-conversation { min-width: 0; }
.demo-scene-label { font-size: 10px; letter-spacing: .04em; color: var(--muted); margin-bottom: 20px; }
.demo-message { padding: 17px 20px; border-radius: 11px; margin-bottom: 16px; }
.demo-message > span { display: block; color: var(--muted); font-size: 10px; font-weight: 650; margin-bottom: 7px; }
.demo-message p { font-size: 14px; line-height: 1.9; color: #3d4c68; }
.demo-user-message { background: #edf1ff; margin-left: 42px; border: 1px solid #e1e7fd; }
.demo-ai-message { background: #f7f9fc; border: 1px solid var(--line); margin-right: 16px; }
.demo-ai-message > span { color: #31886c; }
.demo-system-card { background: #f7f9fc; border: 1px solid var(--line); border-radius: 6px; }
.demo-system-card > span { color: var(--blue); }
.demo-local-call { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 0 0; font-size: 10px; color: #3c7462; }
.demo-local-call > span:first-child { font-size: 13px; }
.demo-call-tag { background: #edf7f1; border: 1px solid #c8e6d8; padding: 2px 6px; border-radius: 4px; font-size: 9px; }
.demo-local-pending { color: #7d683a; }
.demo-guide-link { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; margin-top: 6px; }
.demo-proof { min-width: 0; border: 1px solid #273b60; background: var(--navy); color: #dce6fa; padding: 18px 22px; border-radius: 13px; }
.demo-proof-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #9cafd2; font-size: 9px; margin-bottom: 17px; }
.demo-proof-status { color: var(--lime); background: #24394a; padding: 3px 7px; border-radius: 4px; font: 8px var(--mono); letter-spacing: .04em; }
.demo-status-pending { color: #ead19a; background: #3a3548; }
.demo-proof h3 { font-size: 18px; font-weight: 600; line-height: 1.5; color: #f2f5ff; margin-bottom: 20px; }
.demo-settings { margin: 0; }
.demo-settings > div { padding: 8px 0; border-top: 1px solid #2d3d5c; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; }
.demo-settings dt { color: #98acce; flex-shrink: 0; }
.demo-settings dd { margin: 0; text-align: right; color: #e0e8f9; overflow-wrap: anywhere; }
.demo-settings small { display: block; font-size: 9px; color: #98acce; font-weight: 400; margin-top: 4px; }
.demo-masked-key { font-size: 14px; letter-spacing: .15em; }
.demo-endpoint { font-family: var(--mono); }
.demo-proof-note { padding-top: 15px; border-top: 1px solid #2d3d5c; font-size: 9px; line-height: 1.9; color: #9cafd0; }
.demo-settings .demo-current-budget { font-size: 19px; font-weight: 600; line-height: 1.3; }
.demo-budget-preview { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.demo-budget-preview div > span { color: #98acce; font-size: 9px; }
.demo-budget-preview strong { display: block; font-size: 42px; line-height: 1.3; font-weight: 600; letter-spacing: -.04em; }
.demo-budget-preview > span { color: #788bab; font-size: 25px; }
.demo-budget-preview div:last-child strong { color: var(--lime); }
.demo-approval-sample { display: flex; align-items: center; gap: 9px; padding: 12px 0 19px; }
.demo-approval-sample span, .demo-approval-sample strong { display: block; padding: 8px 13px; border-radius: 6px; border: 1px solid #3c527a; font-size: 10px; font-weight: 500; }
.demo-approval-sample strong { color: var(--navy); background: var(--lime); border-color: transparent; }
.demo-verified-budget { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 0 0 22px; }
.demo-verified-budget > span { color: var(--lime); font-size: 21px; }
.demo-verified-budget strong { font-size: 40px; color: var(--lime); line-height: 1.3; font-weight: 600; letter-spacing: -.04em; }
.demo-verified-budget small { color: #98acce; font-size: 9px; }
.demo-toolbar { display: none; padding: 13px 24px; border-bottom: 1px solid var(--line); align-items: center; gap: 22px; }
.demo-ready .demo-toolbar { display: flex; }
.demo-play-button { display: flex; align-items: center; gap: 9px; color: white; background: var(--blue); border: 0; border-radius: 8px; min-height: 42px; padding: 10px 15px; font-size: 11px; font-weight: 600; }
.demo-play-button:hover { background: #244be1; }
.demo-play-symbol { font-size: 10px; }
.demo-status { font-size: 10px; color: var(--muted); }
.demo-step-controls { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.demo-step-controls button { width: 37px; height: 37px; background: #f4f6fb; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; font-size: 17px; }
.demo-step-controls button:hover:not(:disabled) { background: var(--blue-soft); border-color: #b9c9fe; }
.demo-step-controls button:disabled { color: #afb8cb; background: #fafbfd; }
.demo-progress { height: 3px; background: #e4eaff; }
.demo-progress::before { content: ''; display: block; width: var(--demo-progress,16.6667%); height: 100%; background: var(--blue); transition: width 300ms ease; }
[data-workflow-demo]:not(.demo-ready) .demo-progress { display: none; }
.demo-reduced-motion .demo-scene, .demo-reduced-motion .demo-route-pulse { animation: none !important; }
.demo-reduced-motion .demo-progress::before { transition: none; }
@keyframes demo-scene-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes demo-access-pulse { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.17); } }
@media (max-width: 980px) {
  .demo-ready .demo-tabs { display: flex; overflow-x: auto; gap: 7px; padding: 12px 18px; scrollbar-width: thin; }
  .demo-tabs button { flex-shrink: 0; min-width: 116px; padding: 11px 12px; }
}
@media (max-width: 780px) {
  .demo-scene { grid-template-columns: minmax(0,1fr); gap: 24px; padding: 24px; min-height: 0; }
  .demo-user-message { margin-left: 30px; }
  .demo-ai-message { margin-right: 10px; }
  .demo-message p { font-size: 13px; }
  .demo-proof { padding: 21px 23px; }
  .demo-toolbar { flex-wrap: wrap; gap: 13px; padding: 16px 24px; }
  .demo-status { order: 3; width: 100%; }
  .demo-route { padding: 15px 18px; gap: 9px; font-size: 9px; }
  .demo-route strong { font-size: 10px; }
}
@media (max-width: 520px) {
  .workflow-mode-tabs { scroll-margin-top: 90px; }
  .modes-ready .workflow-mode-tabs { gap: 7px; margin-bottom: 18px; }
  .workflow-mode-tabs button { padding: 12px 10px; gap: 6px; }
  .workflow-mode-tabs button > small { font-size: 8px; }
  .workflow-mode-tabs button > strong { font-size: 13px; }
  .workflow-mode-tabs button > span { font-size: 10px; line-height: 1.6; }
  .demo-mode-intro { min-height: 0; font-size: 12px; }
  .chatgpt-demo-topline { padding: 16px 18px; gap: 9px; }
  .demo-title { font-size: 11px; gap: 7px; }
  .chatgpt-demo-topline .sample-tag { font-size: 8px; padding: 3px 5px; }
  .demo-chat-symbol { width: 24px; height: 24px; font-size: 20px; }
  .demo-scene { padding: 20px 18px; }
  .demo-message { padding: 14px 16px; }
  .demo-message p { font-size: 12px; }
  .demo-user-message { margin-left: 16px; }
  .demo-ai-message { margin-right: 0; }
  .demo-proof { padding: 19px 18px; }
  .demo-proof h3 { font-size: 16px; }
  .demo-settings > div { font-size: 10px; gap: 12px; }
  .demo-proof-note { font-size: 9px; }
  .demo-toolbar { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-ready .demo-scene:not([hidden]), [data-demo-playing="true"] .demo-route-pulse { animation: none; }
  .demo-progress::before { transition: none; }
}
/* Capabilities / action preview */
.capabilities-section { background: white; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 42px; }
.section-heading .eyebrow { margin-bottom: 18px; }
.section-heading > p { color: var(--muted); font-size: 14px; line-height: 1.9; padding-bottom: 5px; max-width: 410px; }
.workflow-demo { display: grid; grid-template-columns: 290px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 14px 40px rgba(26,47,91,.04); }
.workflow-controls { background: #f0f3fa; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.workflow-controls button { display: flex; align-items: center; text-align: left; gap: 13px; width: 100%; padding: 18px 14px; border: 1px solid transparent; border-radius: 12px; background: transparent; min-height: 90px; color: #738099; }
.workflow-controls button:hover { background: rgba(255,255,255,.6); }
.workflow-controls button[aria-selected="true"] { background: white; border-color: #dbe2f2; box-shadow: 0 4px 14px rgba(24,48,97,.05); color: var(--blue); }
.action-index { font-size: 11px; font-family: var(--mono); align-self: flex-start; padding-top: 5px; }
.workflow-controls strong { display: block; font-size: 15px; font-weight: 650; color: var(--ink); }
.workflow-controls small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.action-arrow { margin-left: auto; font-size: 17px; }
.workflow-output { padding: 28px 34px 24px; background: white; min-height: 427px; min-width: 0; }
html:not(.js) .workflow-demo { grid-template-columns: 1fr; }
html:not(.js) .workflow-controls,
html:not(.js) [data-copy-code],
html:not(.js) [data-copy-text],
html:not(.js) .menu-toggle,
html:not(.js) .docs-toc-toggle { display: none; }
html:not(.js) .workflow-output [role="tabpanel"] + [role="tabpanel"] { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 28px; }
.output-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.output-label { display: inline-flex; gap: 8px; align-items: center; font-size: 10px; font-weight: 600; color: var(--muted); }
.sample-tag { font-size: 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 3px 7px; white-space: nowrap; }
.instruction { margin-top: 20px; margin-bottom: 22px; }
.instruction > span { display: block; font-size: 9px; color: var(--muted); margin-bottom: 7px; }
.instruction p { font-size: 16px; font-weight: 550; line-height: 1.8; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 19px; border-top: 1px solid var(--line); }
.result-heading strong { font-size: 12px; font-weight: 650; }
.result-heading > span { color: var(--muted); font-size: 10px; }
.budget-change { display: flex; align-items: center; gap: 36px; padding: 18px 0; }
.budget-change > div > span { color: var(--muted); font-size: 9px; }
.budget-change strong { display: block; font-size: 67px; line-height: 1.25; letter-spacing: -.045em; font-weight: 650; color: #8691a6; }
.budget-change strong small { font-size: 26px; font-weight: 500; margin-right: 4px; }
.budget-change strong > span { font-size: 22px; color: #a0a9bc; }
.budget-change .budget-after strong, .budget-change .budget-after strong > span { color: var(--blue); }
.budget-arrow { font-size: 33px; color: #b0b9ca; }
.execution-note { display: flex; align-items: flex-start; gap: 8px; color: #3c7462; font-size: 10px; border-top: 1px dashed #d8e1db; padding-top: 14px; }
.execution-note > span { color: var(--green); font-weight: 700; }
.table-wrap, .table-scroll { overflow-x: auto; width: 100%; }
.demo-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 16px 0; text-align: left; white-space: nowrap; }
.demo-table th { color: var(--muted); font-size: 10px; font-weight: 500; padding: 10px 12px; background: #f7f9fc; }
.demo-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); }
.demo-table td:first-child { font-weight: 600; }
.table-status { display: inline-block; height: 5px; width: 5px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: middle; }
.creation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 21px 0; }
.creation-grid > div { border-left: 2px solid #dfe7ff; padding-left: 12px; }
.creation-grid span { display: block; font-size: 9px; color: var(--muted); margin-bottom: 4px; }
.creation-grid strong { font-size: 12px; font-weight: 550; }
.state-change { display: flex; align-items: center; gap: 22px; margin: 36px 0; }
.state-change > span, .state-change > strong { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.state-change > span { color: #93a0b5; }
.state-change > strong { padding: 11px 20px; background: #eef2ff; border-radius: 10px; color: var(--blue); font-weight: 650; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: #55ae8b; }
.state-dot.paused { background: var(--blue); }
.section-footnote { color: var(--muted); font-size: 11px; margin-top: 20px; line-height: 1.8; }
.section-footnote a { color: var(--blue); }
/* Integrations / developer entry */
.anchor-alias { position: absolute; top: 0; scroll-margin-top: 106px; }
.usage-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.usage-path-card { display: flex; flex-direction: column; min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.usage-number { font-size: 11px; font-weight: 650; color: var(--blue); margin-bottom: 24px; }
.usage-path-card h3 { font-size: 30px; line-height: 1.4; letter-spacing: -.03em; }
.usage-path-card > p:not(.usage-chain) { font-size: 14px; color: var(--muted); line-height: 1.9; margin: 18px 0; }
.usage-example { padding: 15px 16px; border-radius: 9px; background: #f3f5fa; font-size: 12px; color: #43516a; line-height: 1.85; margin-bottom: 18px; }
.usage-chain { font-size: 10px; color: var(--muted); line-height: 1.9; margin-bottom: 26px; }
.usage-path-card .text-link { margin-top: auto; font-size: 12px; }
.usage-sub-link { display: block; color: var(--muted); font-size: 10px; line-height: 1.8; margin-top: 12px; }
a.usage-sub-link:hover { color: var(--blue); }
.connection-clients { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; border-bottom: 1px solid var(--line); padding: 26px 0; font-size: 12px; }
.connection-clients > span { color: var(--muted); font-size: 11px; margin-right: 12px; }
.connection-clients a { color: var(--blue); }
@media (max-width: 768px) {
  .usage-path-grid { grid-template-columns: 1fr; }
  .usage-path-card h3 br { display: none; }
  .usage-chain { margin-bottom: 18px; }
}
.integrations-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.integration-item { display: flex; flex-direction: column; align-items: flex-start; padding: 32px 28px; border-right: 1px solid var(--line); }
.integration-item:first-child { padding-left: 0; }
.integration-item:last-child { padding-right: 0; border-right: 0; }
.integration-symbol { font-size: 39px; height: 48px; line-height: 1.1; margin-bottom: 18px; display: inline-flex; align-items: center; }
.integration-symbol.codex-symbol { font-size: 28px; color: var(--ink); }
.integration-symbol.grok-symbol { font-size: 44px; }
.integration-item h3 { font-size: 23px; font-weight: 650; letter-spacing: -.03em; }
.integration-type { font-size: 9px; line-height: 1.7; color: var(--muted); margin-top: 4px; }
.integration-item p { font-size: 14px; color: var(--muted); margin: 20px 0 24px; line-height: 1.9; }
.integration-item a { font-size: 11px; font-weight: 650; color: var(--blue); margin-top: auto; }
.integration-item a > span { margin-left: 6px; }
.developer-banner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: center; margin-top: 40px; padding: 42px; background: var(--navy); color: white; border-radius: 20px; }
.developer-banner .eyebrow { font-family: var(--mono); color: #a2b4da; font-size: 9px; margin-bottom: 13px; }
.developer-banner h3 { font-size: 27px; line-height: 1.4; letter-spacing: -.03em; font-weight: 650; }
.developer-copy p { font-size: 14px; color: #b1bfda; line-height: 1.95; margin-top: 16px; max-width: 580px; }
.developer-tags { display: flex; gap: 18px; margin-top: 24px; color: #cad4ec; font-size: 9px; }
.developer-tags span:not(:last-child) { border-right: 1px solid #485675; padding-right: 18px; }
.developer-entry { display: flex; flex-direction: column; align-items: flex-end; gap: 25px; }
.code-symbol { font-size: 46px; font-family: var(--mono); color: #526dba; letter-spacing: -.1em; }
/* Getting started */
.onboarding-section { background: white; border-top: 1px solid var(--line); }
.onboarding-steps { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 44px; margin-top: 48px; }
.onboarding-steps li { border-top: 1px solid #cdd7ee; padding-top: 24px; }
.step-number { display: block; color: var(--blue); font-size: 44px; font-weight: 550; line-height: 1.3; letter-spacing: -.05em; margin-bottom: 22px; }
.onboarding-steps h3 { font-size: 18px; font-weight: 650; margin-bottom: 12px; }
.onboarding-steps p { font-size: 13px; color: var(--muted); line-height: 1.95; }
.step-caption { display: inline-block; font-size: 10px; color: var(--muted); margin-top: 22px; }
a.step-caption { color: var(--blue); }
/* Flat monthly price */
.pricing-section { background: var(--navy); color: white; }
.pricing-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 96px; align-items: center; }
.pricing-copy .eyebrow { color: #94a9d2; }
.pricing-copy h2 { font-size: 46px; }
.pricing-copy h2 > span { color: var(--lime); }
.pricing-copy > p { font-size: 13px; color: #b5c1d9; line-height: 1.95; margin-top: 24px; }
.pricing-includes { list-style: none; padding: 0; margin-top: 28px; }
.pricing-includes li { font-size: 12px; margin-top: 13px; color: #e1e8f7; display: flex; align-items: center; gap: 11px; }
.pricing-includes li > span { color: var(--lime); }
.price-plan { background: var(--lime); color: var(--ink); border-radius: 20px; padding: 32px; }
.plan-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #4b5c2d; font-size: 10px; font-weight: 650; }
.unlimited-badge { font-family: var(--mono); font-size: 8px; padding: 4px 6px; border: 1px solid #a9bf64; border-radius: 4px; letter-spacing: .03em; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-top: 25px; white-space: nowrap; }
.plan-price .currency { font-size: 28px; font-weight: 550; }
.plan-price strong { font-size: clamp(56px,6vw,82px); font-weight: 620; letter-spacing: -.06em; line-height: 1.2; }
.billing-period { font-size: 14px; padding-left: 5px; }
.price-plan > p { font-size: 11px; color: #4d5b36; margin-top: 14px; }
.price-plan .btn { width: 100%; margin-top: 27px; justify-content: space-between; }
.price-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid #b9cf78; font-size: 10px; color: #4b5a35; line-height: 1.9; }
/* FAQ / contact */
.faq-section { background: white; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 90px; }
.faq-intro p { color: var(--muted); font-size: 13px; line-height: 1.9; margin-top: 25px; }
.text-link { display: inline-flex; align-items: center; gap: 20px; font-size: 12px; font-weight: 600; color: var(--blue); margin-top: 25px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { padding: 22px 30px 22px 0; cursor: pointer; position: relative; list-style: none; font-size: 14px; font-weight: 600; line-height: 1.7; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 2px; top: 21px; font-size: 20px; font-weight: 400; color: var(--blue); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { color: var(--muted); padding: 0 22px 22px 0; font-size: 12px; line-height: 1.95; }
.contact-section { border-top: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 100px; align-items: center; }
.contact-layout h2 { font-size: 49px; }
.contact-layout > div > p { font-size: 14px; color: var(--muted); margin-top: 26px; line-height: 1.9; }
.contact-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.contact-label { font-size: 11px; color: var(--muted); }
.wechat-number { display: block; font-size: 66px; font-weight: 650; line-height: 1.5; letter-spacing: -.05em; }
.contact-card .btn { width: 100%; justify-content: space-between; }
.copy-feedback { color: var(--muted); font-size: 11px; min-height: 1.8em; margin-top: 14px; }
.contact-plan { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.consultation-template { margin-top: 26px; padding: 21px 23px 10px; border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 10px 10px 0; }
.consultation-label { color: var(--muted); font-size: 10px; margin-bottom: 9px; }
#consultation-message { color: #43516a; font-size: 12px; line-height: 2; margin-bottom: 17px; }
.consultation-template .btn { background: white; }
.consultation-template .copy-feedback { font-size: 10px; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-inner .logo-mark { width: 27px; height: 29px; font-size: 18px; border-radius: 8px; }
.footer-inner .brand-name { font-size: 16px; }
.footer-inner > p { color: var(--muted); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; color: #56647d; font-size: 10px; }
.footer-links a:hover { color: var(--blue); }
.footer-inner > small, .footer-copyright { color: var(--muted); font-size: 9px; }
.site-toast { position: fixed; z-index: 100; bottom: 28px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 40px); border-radius: 10px; background: var(--navy); box-shadow: 0 6px 24px #14203d25; color: white; padding: 12px 18px; font-size: 12px; text-align: center; }
.site-toast:empty { opacity: 0; pointer-events: none; }
/* Documentation center */
.docs-shell { width: min(1200px, calc(100% - 96px)); margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 72px; padding: 46px 0 90px; align-items: start; }
.docs-sidebar { position: sticky; top: 106px; max-height: calc(100vh - 135px); overflow-y: auto; padding-bottom: 10px; }
.docs-sidebar-group { margin-bottom: 28px; }
.docs-nav-label { display: block; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .05em; margin-bottom: 12px; }
a.docs-nav-label:hover { color: var(--blue); }
.docs-nav, .docs-toc { list-style: none; padding: 0; margin: 0; }
.docs-nav a, .docs-toc a { display: block; font-size: 12px; color: #5c6b84; padding: 9px 12px; border-radius: 7px; margin-bottom: 3px; }
.docs-nav a:hover, .docs-toc a:hover { color: var(--blue); background: white; }
.docs-nav a[aria-current="page"] { background: #e8eeff; color: var(--blue); font-weight: 650; }
.docs-toc a { font-size: 11px; padding-block: 7px; }
.docs-toc-toggle { display: none; }
.docs-sidebar-note { padding: 16px 12px; margin-top: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.9; }
.docs-sidebar-note strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 5px; }
.docs-sidebar-note a { color: var(--blue); }
.docs-article { min-width: 0; max-width: 820px; }
.doc-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--muted); margin-bottom: 30px; }
.doc-breadcrumb a:hover { color: var(--blue); }
.doc-header { border-bottom: 1px solid var(--line); padding-bottom: 35px; margin-bottom: 34px; }
.doc-header .eyebrow { color: var(--blue); margin-bottom: 17px; }
.doc-header h1 { font-size: clamp(32px,3.5vw,46px); line-height: 1.3; letter-spacing: -.035em; }
.doc-header > p { margin-top: 20px; font-size: 15px; color: var(--muted); line-height: 1.95; max-width: 740px; }
.doc-content { font-size: 14px; color: #43516a; line-height: 1.95; }
.doc-content .doc-section { margin-top: 44px; }
.doc-content .doc-section:first-child { margin-top: 0; }
.doc-content h2 { color: var(--ink); font-size: 25px; line-height: 1.4; letter-spacing: -.025em; margin-bottom: 18px; }
.doc-content h3 { color: var(--ink); font-size: 18px; font-weight: 650; margin: 25px 0 12px; }
.doc-content p { margin-bottom: 16px; }
.doc-content strong { color: var(--ink); font-weight: 650; }
.doc-content ul, .doc-content ol { padding-left: 23px; margin: 15px 0 20px; }
.doc-content li { margin-bottom: 7px; }
.doc-content a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.doc-content code:not(pre code) { font-family: var(--mono); font-size: .88em; background: #e9edf6; color: #334980; border-radius: 4px; padding: 2px 5px; overflow-wrap: anywhere; }
.doc-callout { padding: 18px 20px; margin: 20px 0; background: var(--blue-soft); border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; color: #485d88; font-size: 13px; }
.doc-callout strong:first-child { display: block; margin-bottom: 5px; font-weight: 650; color: var(--ink); }
.doc-callout p:last-child { margin-bottom: 0; }
.doc-callout.tip { background: #edf7f1; border-left-color: #57a582; color: #426e59; }
.doc-callout.warning { background: #faf4e7; border-left-color: #cda04b; color: #77623b; }
.code-block { background: var(--navy); color: #dce7ff; border-radius: 12px; border: 1px solid #293954; margin: 20px 0 24px; overflow: hidden; }
.code-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #a4b5d5; font-size: 10px; font-family: var(--mono); line-height: 1.7; padding: 12px 17px; border-bottom: 1px solid #2b3d5c; }
.code-body { padding: 20px; overflow-x: auto; }
.code-body pre, .code-body code { margin: 0; font-family: var(--mono); font-size: 11px; line-height: 1.95; color: inherit; background: none; padding: 0; white-space: pre; }
.code-body .key { color: #94b4ff; }
.code-body .str { color: #d7eba8; }
.code-body .num { color: #e6c484; }
.code-body .comment { color: #9fadc8; }
.code-body .br { color: #b9c9e5; }
.copy-code { font-size: 10px; font-family: var(--sans); color: #e4ecfd; background: #253655; border: 1px solid #46597b; border-radius: 5px; padding: 5px 9px; min-height: 30px; white-space: nowrap; }
.copy-code:hover { background: #344e79; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 18px 0 24px; text-align: left; }
.doc-table th { color: var(--ink); background: #eef2f9; font-size: 11px; font-weight: 650; }
.doc-table th, .doc-table td { padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table td { color: #53617a; }
#token-routes .doc-table td:nth-child(2) code,
#relay-token .doc-table td:nth-child(2) code,
#relay-token .doc-table td:nth-child(3) code { white-space: nowrap; overflow-wrap: normal; }
.doc-integration-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 16px; margin: 24px 0; }
.doc-integration { min-width: 0; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.doc-integration h3 { margin-top: 0; }
.doc-integration p { font-size: 12px; }
.doc-integration p:last-child { margin-bottom: 0; }
.doc-content details { border: 1px solid var(--line); border-radius: 8px; padding: 15px 18px; margin: 18px 0; background: white; }
.doc-content details summary { color: var(--ink); font-weight: 650; font-size: 13px; cursor: pointer; }
.doc-content details[open] summary { margin-bottom: 15px; }
.doc-next-links { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 45px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.doc-next-link { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 20px; font-size: 14px; font-weight: 600; }
.doc-next-link span, .doc-next-link small { color: var(--muted); font-size: 10px; font-weight: 400; }
.doc-next-link:hover { border-color: var(--blue); color: var(--blue); }
/* Start with the customer's goal, then show the relevant setup guide. */
.doc-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.doc-path-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: white; min-width: 0; }
.doc-path-card .eyebrow { margin-bottom: 14px; }
.doc-path-card h2 { font-size: 21px; line-height: 1.45; margin-bottom: 14px; }
.doc-path-card > p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.doc-path-card .path-example { padding: 12px; background: #f3f5fa; border-radius: 8px; font-size: 11px; line-height: 1.85; }
.doc-path-card .btn { margin-top: auto; font-size: 12px; padding-inline: 14px; gap: 12px; }
.doc-path-demo { color: var(--blue); font-size: 11px; margin-top: 15px; }
.doc-path-demo:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc-path-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.doc-path-links a { padding: 5px 9px; border-radius: 5px; background: var(--blue-soft); color: var(--blue); font-size: 11px; }
.doc-path-links a:hover { background: #dce5ff; }
.doc-workflow-entry { margin-top: 24px; padding: 25px 26px; border: 1px solid #cad8b0; border-radius: 14px; background: #eff5e7; }
.doc-workflow-entry h2 { font-size: 21px; margin-bottom: 10px; }
.doc-workflow-entry p { font-size: 13px; color: #54614e; margin-bottom: 14px; }
.doc-workflow-entry a { font-size: 12px; color: #315522; text-decoration: underline; text-underline-offset: 4px; }
/* Responsive */
@media (max-width: 1120px) {
  .doc-path-grid { grid-template-columns: 1fr; }
  .usage-path-card { padding: 24px; }
  .usage-path-card h3 { font-size: 27px; }
  .hero-layout { gap: 35px; }
  h1 { font-size: 50px; }
  .nav-inner { gap: 20px; }
  .nav-menu { gap: 20px; }
  .permission-bridge { width: calc(100% - 36px); }
  .pricing-layout, .faq-layout, .contact-layout { gap: 54px; }
  .integration-item { padding-inline: 20px; }
  .docs-shell { gap: 42px; }
}
@media (max-width: 960px) {
  .container, .nav-inner, .footer-inner, .docs-shell { width: calc(100% - 64px); }
  .nav-menu { gap: 16px; }
  .nav-menu a { font-size: 11px; }
  .hero-layout { gap: 28px; }
  h1 { font-size: 42px; }
  .hero-description { font-size: 14px; }
  .hero-description .desktop-break { display: none; }
  .hero-actions { gap: 9px; }
  .hero-actions .btn { padding: 12px 16px; gap: 12px; font-size: 12px; }
  .hero-price { gap: 12px; font-size: 10px; }
  .console-body { padding-inline: 18px; }
  .bridge-badge { display: none; }
  .section-heading { gap: 30px; }
  .section-heading > p { font-size: 12px; }
  .workflow-demo { grid-template-columns: 255px minmax(0,1fr); }
  .workflow-controls { padding: 12px; }
  .workflow-controls button { padding-inline: 10px; gap: 10px; }
  .workflow-output { padding-inline: 25px; }
  .budget-change { gap: 20px; }
  .budget-change strong { font-size: 54px; }
  .integrations-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .integration-item, .integration-item:first-child, .integration-item:last-child { padding: 28px; }
  .integration-item:nth-child(2) { border-right: 0; }
  .integration-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .integration-item:nth-child(3) { border-right: 1px solid var(--line); }
  .developer-banner { padding: 32px; gap: 30px; grid-template-columns: 1.6fr 1fr; }
  .developer-banner h3 { font-size: 24px; }
  .developer-entry .btn { font-size: 12px; padding: 12px 16px; gap: 10px; }
  .onboarding-steps { gap: 28px; }
  .pricing-layout { gap: 42px; }
  .price-plan { padding: 26px; }
  .pricing-copy h2 { font-size: 39px; }
  .plan-price strong { font-size: 61px; }
  .contact-layout h2 { font-size: 43px; }
  .docs-shell { grid-template-columns: 185px minmax(0,1fr); gap: 32px; }
}
@media (max-width: 780px) {
  .section { padding: 72px 0; }
  .site-nav, .nav-inner { min-height: 68px; }
  .nav-inner { gap: 13px; }
  .site-nav .btn-small { margin-left: auto; font-size: 11px; min-height: 42px; }
  .menu-toggle { display: block; order: 4; flex-shrink: 0; }
  .nav-menu { position: absolute; top: 68px; left: 0; right: 0; margin: 0; padding: 18px 32px 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(31,52,98,.08); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-menu a { display: block; font-size: 14px; padding: 12px 4px; }
  .js .site-nav:not([data-menu-open="true"]) .nav-menu { display: none; }
  html:not(.js) .site-nav { position: static; }
  html:not(.js) .nav-inner { flex-wrap: wrap; padding-block: 14px; }
  html:not(.js) .nav-menu { position: static; order: 5; width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 0; padding: 10px 0 0; box-shadow: none; }
  .site-nav[data-menu-open="true"] .menu-toggle span:first-child { transform: translateY(3.2px) rotate(45deg); }
  .site-nav[data-menu-open="true"] .menu-toggle span:last-child { transform: translateY(-3.2px) rotate(-45deg); }
  section[id], .doc-section[id], .doc-integration[id], .doc-content h3[id], details[id], #main { scroll-margin-top: 90px; }
  .hero { padding-top: 45px; padding-bottom: 0; }
  .hero-layout { grid-template-columns: 1fr; gap: 38px; }
  h1 { font-size: clamp(38px,6.8vw,55px); }
  .hero-copy { max-width: 620px; }
  .hero-description { font-size: 15px; max-width: 600px; }
  .hero-actions .btn { font-size: 13px; padding-inline: 22px; gap: 18px; }
  .hero-price { font-size: 12px; gap: 18px; }
  .access-console { width: 100%; max-width: 580px; }
  .console-body { padding: 24px; }
  .assistant-switcher button { font-size: 12px; padding: 11px 3px; }
  .permission-bridge { width: calc(100% - 70px); }
  .permission-bridge strong, .asset-destination strong { font-size: 14px; }
  .bridge-badge { display: block; }
  .asset-labels span { font-size: 10px; }
  .console-command p { font-size: 12px; }
  .compatibility-strip { gap: 22px; flex-direction: column; align-items: flex-start; margin-top: 40px; padding: 24px 0; }
  .compatibility-names { flex-wrap: wrap; flex: auto; width: 100%; gap: 20px 32px; justify-content: flex-start; font-size: 21px; }
  .compatibility-names .custom-system { font-size: 12px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading > p { margin-top: 22px; font-size: 14px; max-width: 580px; }
  h2 { font-size: 40px; }
  .workflow-demo { grid-template-columns: 1fr; }
  .workflow-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 13px; }
  .workflow-controls button { min-height: 81px; padding: 13px; gap: 10px; }
  .workflow-controls strong { font-size: 14px; }
  .workflow-controls small { font-size: 10px; }
  .workflow-output { min-height: 393px; padding: 24px 28px; }
  .budget-change { gap: 35px; padding: 22px 0; }
  .budget-change strong { font-size: 67px; }
  .integration-item, .integration-item:first-child, .integration-item:last-child { padding: 25px; }
  .integration-item p { font-size: 13px; }
  .integration-type { font-size: 10px; }
  .developer-banner { grid-template-columns: 1fr; gap: 25px; }
  .developer-entry { flex-direction: row; justify-content: space-between; align-items: center; }
  .onboarding-steps { gap: 22px; }
  .onboarding-steps h3 { font-size: 16px; }
  .onboarding-steps p { font-size: 12px; }
  .pricing-layout { grid-template-columns: 1fr; gap: 36px; }
  .price-plan { max-width: 540px; padding: 32px; }
  .plan-price strong { font-size: 78px; }
  .pricing-copy h2 { font-size: 42px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro p { margin-top: 18px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-card { width: 100%; max-width: 540px; }
  .footer-inner { gap: 22px; }
  .footer-inner > p { display: none; }
  .docs-shell { grid-template-columns: 1fr; padding-top: 28px; gap: 32px; }
  .docs-sidebar { position: static; max-height: none; overflow: visible; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .docs-sidebar-group { margin-bottom: 12px; }
  .docs-sidebar .docs-nav { display: flex; flex-wrap: wrap; gap: 5px; }
  .docs-sidebar .docs-nav a { padding: 8px 12px; margin: 0; }
  .docs-sidebar .docs-toc { display: flex; flex-wrap: wrap; gap: 0 8px; }
  .docs-sidebar .docs-toc a { padding: 6px 9px; }
  .docs-toc-group > .docs-nav-label { display: none; }
  html:not(.js) .docs-toc-group > .docs-nav-label { display: block; }
  .docs-toc-toggle { display: inline-flex; align-items: center; gap: 14px; border: 0; background: transparent; color: var(--muted); padding: 4px 9px; font-size: 11px; }
  .js .docs-toc-group:not([data-toc-open="true"]) .docs-toc { display: none; }
  .docs-sidebar-note { display: none; }
  .doc-breadcrumb { margin-bottom: 23px; }
  .doc-header h1 { font-size: 38px; }
}
@media (max-width: 480px) {
  .usage-path-grid { grid-template-columns: 1fr; }
  .usage-path-card { padding: 25px; }
  .usage-path-card h3 { font-size: 28px; }
  .usage-number { margin-bottom: 17px; }
  .container, .nav-inner, .footer-inner, .docs-shell { width: calc(100% - 40px); }
  .section { padding: 60px 0; }
  .hero { padding-top: 35px; padding-bottom: 0; }
  h1 { font-size: clamp(30px,8.2vw,39px); letter-spacing: -.045em; }
  .eyebrow { font-size: 10px; letter-spacing: .07em; margin-bottom: 17px; }
  .hero-description { font-size: 13px; margin-top: 23px; }
  .hero-actions { margin-top: 25px; }
  .hero-actions .btn { padding: 12px 16px; gap: 14px; font-size: 12px; min-height: 49px; }
  .hero-account { font-size: 10px; margin-top: 19px; line-height: 1.8; }
  .hero-price { font-size: 11px; gap: 12px; margin-top: 17px; }
  .hero-price strong { font-size: 22px; }
  .hero-price strong > span { font-size: 10px; }
  .brand-name { font-size: 17px; }
  .nav-inner { gap: 10px; }
  .nav-brand { gap: 8px; }
  .logo-mark { width: 30px; height: 32px; font-size: 20px; border-radius: 8px; }
  .site-nav .btn-small { padding: 10px 11px; gap: 8px; font-size: 10px; }
  .menu-toggle { width: 36px; min-width: 36px; padding-inline: 7px; }
  .nav-menu { padding-inline: 20px; }
  .hero-layout { gap: 30px; }
  .access-console { border-radius: 16px; }
  .console-topline { padding: 13px 17px; font-size: 9px; }
  .console-body { padding: 18px; }
  .assistant-switcher { gap: 5px; }
  .assistant-switcher button { font-size: 10px; padding: 8px 2px; }
  .permission-bridge { width: calc(100% - 28px); padding: 10px 11px; gap: 9px; }
  .permission-bridge strong, .asset-destination strong { font-size: 12px; }
  .bridge-badge { display: none; }
  .permission-bridge div > span { font-size: 8px; }
  .console-bottom { font-size: 8px; padding: 11px 17px; }
  .console-command p { font-size: 11px; }
  .compatibility-strip { margin-top: 30px; gap: 16px; }
  .compatibility-strip > span { font-size: 10px; }
  .compatibility-names { font-size: 18px; gap: 12px 22px; }
  .compatibility-names .custom-system { font-size: 11px; }
  h2, .pricing-copy h2 { font-size: 33px; }
  .section-heading > p { font-size: 12px; margin-top: 18px; }
  .workflow-controls { padding: 10px; gap: 6px; }
  .workflow-controls button { padding: 10px; gap: 7px; min-height: 76px; }
  .action-index { font-size: 9px; padding-top: 4px; }
  .workflow-controls strong { font-size: 12px; }
  .workflow-controls small { font-size: 8px; }
  .action-arrow { display: none; }
  .workflow-output { padding: 20px 18px; min-height: 397px; }
  .output-label { font-size: 9px; gap: 6px; }
  .sample-tag { font-size: 8px; padding: 3px 5px; }
  .instruction p { font-size: 13px; }
  .result-heading > span { font-size: 9px; }
  .budget-change { gap: 18px; padding-block: 24px; }
  .budget-change strong { font-size: 46px; }
  .budget-change strong small { font-size: 19px; margin-right: 2px; }
  .budget-change strong > span { font-size: 16px; }
  .budget-arrow { font-size: 25px; }
  .execution-note, .section-footnote { font-size: 9px; }
  .demo-table { font-size: 10px; }
  .demo-table th, .demo-table td { padding-inline: 8px; }
  .creation-grid { gap: 15px 12px; }
  .creation-grid strong { font-size: 10px; }
  .state-change { gap: 14px; }
  .state-change > span, .state-change > strong { font-size: 14px; }
  .state-change > strong { padding-inline: 14px; }
  .integration-item, .integration-item:first-child, .integration-item:last-child { padding: 22px 16px; }
  .integration-item h3 { font-size: 20px; }
  .integration-type { font-size: 8px; }
  .integration-item p { font-size: 12px; margin-block: 15px 20px; }
  .integration-item a { font-size: 10px; }
  .integration-symbol { font-size: 34px; margin-bottom: 12px; height: 38px; }
  .integration-symbol.codex-symbol { font-size: 24px; }
  .developer-banner { padding: 25px; margin-top: 28px; }
  .developer-banner h3 { font-size: 24px; }
  .developer-copy p { font-size: 13px; }
  .developer-tags { font-size: 8px; gap: 10px; }
  .developer-tags span:not(:last-child) { padding-right: 10px; }
  .code-symbol { font-size: 35px; }
  .developer-entry .btn { font-size: 11px; padding: 11px 13px; gap: 10px; }
  .onboarding-steps { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .onboarding-steps li { padding-top: 21px; }
  .step-number { font-size: 36px; margin-bottom: 14px; }
  .onboarding-steps p { font-size: 13px; }
  .step-caption { font-size: 10px; margin-top: 14px; }
  .pricing-copy > p { font-size: 12px; }
  .price-plan { padding: 25px; border-radius: 16px; }
  .plan-price strong { font-size: 62px; }
  .plan-price .currency { font-size: 23px; }
  .unlimited-badge { font-size: 7px; }
  .faq-list summary { font-size: 13px; padding-block: 19px; }
  .faq-list summary::after { top: 18px; }
  .faq-list p { font-size: 11px; }
  .contact-layout h2 { font-size: 34px; }
  .contact-layout > div > p { font-size: 13px; margin-top: 20px; }
  .contact-card { padding: 25px; }
  .wechat-number { font-size: 59px; }
  .footer-links { font-size: 10px; gap: 18px; }
  .footer-inner { gap: 19px; }
  .footer-inner .nav-brand { width: 100%; }
  .doc-header h1 { font-size: 30px; }
  .doc-header > p { font-size: 13px; }
  .doc-content { font-size: 13px; }
  .doc-content h2 { font-size: 22px; }
  .doc-content h3 { font-size: 17px; }
  .doc-callout { padding: 16px; font-size: 12px; }
  .doc-integration-list { grid-template-columns: minmax(0,1fr); }
  .doc-path-grid { grid-template-columns: minmax(0,1fr); }
  .doc-path-card { padding: 21px; }
  .doc-path-card h2 { font-size: 21px; }
  .doc-workflow-entry { padding: 21px; }
  .consultation-template { padding-inline: 17px; }
  .doc-next-links { grid-template-columns: 1fr; }
  .code-body { padding: 17px; }
  .code-body pre, .code-body code { font-size: 10px; }
  .doc-table th, .doc-table td { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Public referral onboarding. */
.referral-page{max-width:900px;padding-block:55px 85px}.referral-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 38px}.referral-steps li{padding:20px 0;}.referral-steps p{font-size:13px;margin-top:8px}@media(max-width:600px){.referral-steps{grid-template-columns:1fr;gap:0}.referral-page{padding-top:32px}.referral-steps li{padding-block:12px}}
