/* Public site (spec 2026-10-10 public site): home, /models, /pricing. Hand-written, no build step.
   Quiet Violet palette (accent #9333ea, Inter), light by default, dark with the system setting.
   Every class a public template uses has a rule here (tests/test_templates_csp.py). */

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400; src: url(/static/fonts/inter-vietnamese-400-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400; src: url(/static/fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 500; src: url(/static/fonts/inter-vietnamese-500-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 500; src: url(/static/fonts/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 600; src: url(/static/fonts/inter-vietnamese-600-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 600; src: url(/static/fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 700; src: url(/static/fonts/inter-vietnamese-700-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 700; src: url(/static/fonts/inter-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(/static/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(/static/fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); }

:root {
  --bg: #fbfaff;
  --surface: #ffffff;
  --surface-2: #f6f3fd;
  --border: #e8e3f3;
  --border-strong: #d8d0ea;
  --text: #17131f;
  --muted: #6b6480;
  --accent: #9333ea;
  --accent-strong: #7e22ce;
  --accent-soft: #f3e8ff;
  --accent-ink: #6b21a8;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --code-bg: #15111d;
  --code-text: #ece7f7;
  --code-muted: #9a92ad;
  --shadow: 0 1px 2px rgba(23, 19, 31, .04), 0 8px 24px rgba(76, 29, 149, .06);
  --shadow-lg: 0 24px 60px rgba(76, 29, 149, .16);
  --radius: 14px;
  --radius-sm: 10px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0a13;
    --surface: #15111d;
    --surface-2: #1b1625;
    --border: #2a2338;
    --border-strong: #3a3150;
    --text: #f2eefa;
    --muted: #a59dba;
    --accent: #a855f7;
    --accent-strong: #c084fc;
    --accent-soft: #2a1a40;
    --accent-ink: #d8b4fe;
    --ok: #4ade80;
    --ok-soft: #14301f;
    --code-bg: #0a0810;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
.site {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.site a { color: inherit; text-decoration: none; }
.site h1, .site h2, .site h3, .site p { margin: 0; }
.site code { font-family: var(--mono); font-size: .85em; }
.site ul, .site ol { margin: 0; padding: 0; list-style: none; }
.site button, .site input, .site select { font: inherit; color: inherit; }
.site :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1440px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.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; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 16px; }
.icon { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }
.accent-text { background: linear-gradient(90deg, var(--accent), #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(147, 51, 234, .28); }
.site .btn-primary { color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: #fff; color: #4c1d95; }
.site .btn-light { color: #4c1d95; }
.btn-light:hover { background: #f5f0ff; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.site .btn-outline-light { color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #6d28d9); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 4px 12px rgba(147, 51, 234, .35); }
.brand-name { color: var(--text); }
.site-nav { display: flex; gap: 4px; margin-left: 12px; }
.nav-link { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.site .nav-link-active { color: var(--accent); background: var(--accent-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mobile-menu { position: relative; display: none; }
.mobile-menu summary { list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; display: flex; flex-direction: column; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); }
.mobile-menu-panel a { padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.mobile-menu-panel a:hover { background: var(--surface-2); }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background:
  radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
  radial-gradient(700px 360px at -10% 10%, color-mix(in srgb, #db2777 9%, transparent), transparent 70%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 75%); -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 75%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .02em; margin-bottom: 14px; }
.site .eyebrow { margin-bottom: 14px; }
.hero-title { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 16px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #7c3aed); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; box-shadow: 0 8px 22px rgba(147, 51, 234, .3); }
.site .hero-badge { margin-top: 22px; }
.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 560px; }
.site .lead { margin-top: 20px; }
.check-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 15px; color: var(--muted); }
.site .check-list { margin-top: 22px; }
.check-list li { display: inline-flex; align-items: center; gap: 8px; }
.check-list .icon { color: var(--ok); }
.check-list-col { flex-direction: column; gap: 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row-center { justify-content: center; }

/* ---- code window ---- */
.code-window { background: var(--code-bg); color: var(--code-text); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; scroll-margin-top: 90px; }
.code-bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dots { display: inline-flex; gap: 6px; }
.dot { display: block; width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.code-tabs { display: flex; gap: 4px; }
.code-tab { background: transparent; border: 0; color: var(--code-muted); padding: 5px 10px; border-radius: 7px; font-size: 13px; font-weight: 500; cursor: pointer; }
.code-tab:hover { color: var(--code-text); }
.code-tab[aria-selected="true"] { background: rgba(255, 255, 255, .1); color: #fff; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); color: var(--code-text); padding: 5px 10px; border-radius: 7px; font-size: 13px; cursor: pointer; }
.copy-btn:hover { background: rgba(255, 255, 255, .14); }
.code { margin: 0; padding: 20px 22px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; white-space: pre; color: var(--code-text); }
.site .code code { font-size: inherit; }
.code-foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-family: var(--mono); font-size: 12.5px; color: var(--code-muted); }
.status-ok { color: #4ade80; font-weight: 600; }
.code-foot-note { margin-left: auto; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* ---- stats ---- */
.stats-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 20px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); line-height: 1.2; }
.stat-value-sm { font-size: 20px; padding-top: 6px; }
.stat-label { font-weight: 600; margin-top: 4px; }
.stat-hint { color: var(--muted); font-size: 14px; }

/* ---- sections ---- */
.section { padding: 80px 0; }
.section-tight { padding: 32px 0 64px; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head .muted { margin-top: 8px; }
.section .center.muted { margin-top: 10px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 20px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; }
.site .notice { margin-bottom: 20px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px; letter-spacing: .06em; margin-bottom: 14px; }

/* ---- model cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-grid-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.model-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s; }
.model-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.model-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.family-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.family-claude { background: #fdf2ea; color: #b4531f; border-color: #f6dcc8; }
.family-gpt { background: #e9f8f2; color: #0f7a55; border-color: #c7ebdc; }
.family-gemini { background: #eaf1fe; color: #2456c7; border-color: #cfdcfa; }
.family-kimi { background: #e6f6f8; color: #0e7490; border-color: #c3e7ee; }
.family-grok { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.family-muse { background: #eef0fe; color: #4338ca; border-color: #d5d9fb; }
.family-image { background: #fdeaf5; color: #b0236f; border-color: #f7cfe4; }
.family-other { background: var(--surface-2); color: var(--muted); }
@media (prefers-color-scheme: dark) {
  .family-claude { background: #2c1d12; color: #f5b88a; border-color: #4a3020; }
  .family-gpt { background: #10271e; color: #7fdcb5; border-color: #1d4535; }
  .family-gemini { background: #121e36; color: #9cbcf8; border-color: #22365e; }
  .family-kimi { background: #0f2329; color: #7dd3e0; border-color: #1c3f48; }
  .family-muse { background: #191a3d; color: #a5b4fc; border-color: #2c2f66; }
  .family-image { background: #2d1222; color: #f4a3cf; border-color: #4d2139; }
}
.tag { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.model-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.model-id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.model-id code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.copy-btn-sm { margin-left: 0; background: var(--surface); border: 1px solid var(--border); color: var(--muted); padding: 5px 9px; font-size: 12.5px; }
.copy-btn-sm:hover { background: var(--surface-2); color: var(--accent); }
.copy-btn-sm { position: relative; z-index: 1; }
.model-link { color: inherit; text-decoration: none; }
.model-link::after { content: ""; position: absolute; inset: 0; }
.model-link:hover { color: var(--accent); }
.modality-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.filters .filter-group + .filter-group { margin-top: 20px; }
.toolbar .btn { align-self: center; }
.price-list { margin: 0; display: grid; gap: 6px; padding-top: 4px; border-top: 1px dashed var(--border); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 6px; }
.price-row dt { color: var(--muted); font-size: 14px; }
.price-row dd { margin: 0; font-size: 14px; color: var(--muted); }
.price-row dd strong { font-size: 16px; color: var(--text); font-weight: 700; }
.price-row-sub dd { font-size: 13.5px; }
.model-meta { font-size: 13px; color: var(--muted); }

/* ---- steps & features ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; counter-reset: none; }
.step { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num, .flow-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px; }
.step-title { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.feature .icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.feature-title { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.provider-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.provider-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.provider-head { display: flex; align-items: center; gap: 12px; }
.provider-mark { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); }
.provider-mark .pv-icon { width: 22px; height: 22px; }
.provider-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.provider-name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.provider-vendor { font-size: 13px; }
.provider-examples { font-size: 13.5px; font-weight: 600; color: var(--text); margin-top: auto; }
.tag-soon { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* ---- PAYG & packages ---- */
.payg { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.payg-copy .section-title { margin-bottom: 14px; }
.payg-copy .check-list { margin: 20px 0 26px; }
.payg-box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.payg-box .section-title { margin-bottom: 12px; }
.payg-box .check-list { margin: 20px 0 26px; }
.flow { display: grid; gap: 14px; align-content: center; }
.flow-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.flow-num { margin-bottom: 0; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 32px; }
.package-grid-compact { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.package { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 22px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.package-featured { border: 2px solid var(--accent); box-shadow: 0 18px 44px rgba(147, 51, 234, .2); }
.package-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.package-name { font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.package-pay-label { margin-top: 8px; font-size: 13px; color: var(--muted); }
.package-price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.package-receive { font-weight: 600; }
.package-bonus { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 600; }
.package-desc { font-size: 14px; }
.package .btn { margin-top: auto; white-space: normal; text-align: center; }
.package .package-desc + .btn, .package .package-bonus + .btn, .package .package-receive + .btn { margin-top: 14px; }

/* ---- page heads, catalog ---- */
.page-head { padding: 56px 0 24px; background: radial-gradient(800px 300px at 90% -20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.page-head-center { text-align: center; padding-bottom: 16px; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.page-head-row > div:first-child { max-width: 680px; }
.page-title { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px; }
.site .page-title { margin-bottom: 12px; }
.lead-narrow { max-width: 680px; margin: 0 auto; font-size: 17px; }
.site .lead-narrow { margin: 0 auto; }
.head-stats { display: flex; gap: 12px; }
.head-stat { min-width: 120px; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.catalog { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 84px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.filter-group + .filter-group { margin-top: 18px; }
.filter-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.chip-list { display: flex; flex-direction: column; gap: 6px; }
.chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 12px; border-radius: 9px; border: 1px solid transparent; background: transparent; font-weight: 500; text-align: left; cursor: pointer; }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.chip-count { font-size: 12.5px; color: var(--muted); }
.chip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip-grid .chip { justify-content: flex-start; gap: 7px; padding: 9px 9px; border-color: var(--border); font-size: 14.5px; }
.chip-grid .chip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.chip-all { grid-column: 1 / -1; }
.chip-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-icon { width: 18px; height: 18px; flex: none; }
.pv-openai, .pv-moonshot, .pv-xai { color: var(--text); }
.pv-anthropic { color: #d97757; }
.pv-google { color: #4285f4; }
.pv-meta { color: #0866ff; }
.pv-other { color: var(--muted); }
.family-tag .pv-icon { width: 14px; height: 14px; margin-right: 6px; color: inherit; }
.model-groups { display: flex; flex-direction: column; gap: 36px; }
.model-group { scroll-margin-top: 90px; }
.group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 20px; font-weight: 700; }
.group-head .pv-icon { box-sizing: border-box; width: 30px; height: 30px; padding: 5px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.group-count { font-size: 15px; font-weight: 500; color: var(--muted); }
.catalog-main { min-width: 0; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 11px 0; color: var(--text); }
.site .search input:focus-visible { outline: none; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort-label { font-size: 14px; color: var(--muted); }
.sort select, .field select, .field input { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.result-count { margin: 14px 0; font-size: 14px; }
.site .result-count { margin: 14px 0; }
.empty { padding: 40px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); }

/* ---- model docs (/models/<id>) ---- */
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--accent); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.doc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; font-size: 14px; }
.mod-chip { padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); }
.doc-id { max-width: 520px; margin: 4px 0 6px; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--border); }
.doc-toc a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14px; }
.doc-toc a:hover { color: var(--accent); background: var(--accent-soft); }
.doc { max-width: 960px; padding-bottom: 72px; }
.doc-section { padding-top: 40px; scroll-margin-top: 72px; }
.doc-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; scroll-margin-top: 72px; }
.site .doc-title { margin-bottom: 16px; }
.doc-title-sub { margin-top: 36px; font-size: 22px; }
.site .doc-title-sub { margin-top: 36px; }
.doc-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 26px 0 10px; font-size: 17px; font-weight: 700; }
.site .doc-sub { margin: 26px 0 10px; }
.doc-path { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--muted); word-break: break-all; }
.doc-note { margin: 10px 0; font-size: 15px; }
.site .doc-note { margin: 10px 0; }
.doc-note code, .doc-steps code, .error-row code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); word-break: break-all; }
.doc-link { color: var(--accent); font-weight: 500; }
.site .doc-link { color: var(--accent); }
.doc-link:hover { text-decoration: underline; }
.doc-steps { display: grid; gap: 8px; margin-bottom: 16px; padding-left: 22px; list-style: decimal; }
.site .doc-steps { padding-left: 22px; list-style: decimal; margin-bottom: 16px; }
.doc-example { margin-top: 12px; box-shadow: var(--shadow); }
.code-label { font-size: 13px; font-weight: 600; color: var(--code-text); }
.spec-list { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.spec-row:nth-child(odd) { border-right: 1px solid var(--border); }
.spec-row dt { color: var(--muted); font-size: 14px; }
.spec-row dd { margin: 0; font-weight: 600; text-align: right; }
.error-list { margin: 0; display: grid; gap: 10px; }
.error-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: baseline; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.error-row dd { margin: 0; color: var(--muted); }
.error-row dt code { font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; }
.notice-inline { display: inline-flex; margin-top: 8px; }
@media (max-width: 760px) {
  .spec-list { grid-template-columns: 1fr; }
  .spec-row:nth-child(odd) { border-right: 0; }
  .error-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---- price table ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 12px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.price-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover td { background: var(--surface-2); }
.num-col { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table th.num-col { text-align: right; }
.cell-name { font-weight: 600; }
.cell-id { font-size: 12.5px; color: var(--muted); }

/* ---- estimator ---- */
.estimator { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.estimator .section-title + .muted { margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field-wide { grid-column: 1 / -1; }
.field input, .field select { width: 100%; font-weight: 500; }
.estimate-card { padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.estimate-row, .estimate-total { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-variant-numeric: tabular-nums; }
.estimate-row span { color: var(--muted); }
.estimate-total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 18px; }
.estimate-total strong { color: var(--accent); font-size: 24px; }
.estimate-note { margin-top: 12px; font-size: 13px; }
.site .estimate-note { margin-top: 12px; }

/* ---- FAQ ---- */
.faq-wrap { max-width: 820px; }
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--muted); transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); }
.faq-item code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); word-break: break-all; }

/* ---- CTA & footer ---- */
.cta-band { padding: 56px 32px; border-radius: 24px; text-align: center; color: #fff; background: radial-gradient(600px 240px at 20% 0%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(135deg, #7e22ce, #9333ea 45%, #c026d3); box-shadow: 0 24px 60px rgba(126, 34, 206, .3); }
.cta-band .section-title { color: #fff; max-width: 720px; margin: 0 auto; }
.site .cta-band .section-title { margin: 0 auto; }
.cta-band p { margin-top: 12px; color: rgba(255, 255, 255, .85); }
.site .cta-band p { margin-top: 12px; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-about p { margin-top: 12px; max-width: 360px; font-size: 15px; }
.site .footer-about p { margin-top: 12px; }
.footer-title { font-weight: 700; margin-bottom: 12px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; }

/* ---- responsive ---- */
@media (max-width: 1280px) {
  .card-grid-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hero-grid, .payg, .payg-box, .estimator { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .chip-list { flex-direction: row; flex-wrap: wrap; }
  .chip { width: auto; }
  .chip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-nav, .hide-sm { display: none; }
  .mobile-menu { display: block; }
  .header-row { gap: 12px; }
  .hero { padding: 44px 0 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .section { padding: 56px 0; }
  .card-grid, .card-grid-catalog, .steps, .feature-grid, .provider-grid, .form-grid { grid-template-columns: 1fr; }
  .chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .payg-box { padding: 22px; }
  .cta-band { padding: 40px 20px; }
  .code { font-size: 12.5px; }
  .dots { display: none; }
  .code-bar { gap: 8px; }
  .code-bar .copy-btn span { display: none; }
}
