/* VidBudget design base (UI batch 1, Claude 2026-11-15).
   Site shell and shared components, all under the .vb- prefix: header with dropdown menus, the
   phone drawer, footer columns, buttons, cards, pills, tables, segmented control, tabs, fields,
   alerts, the contact modal and the FAQ accordion. Colours, sizes and spacing come from
   tokens.css. components.css (R1) still styles the account, billing, keys, usage, studio and
   admin pages; nothing here targets bare elements, so those pages keep their layout. */

/* ---------- layout ---------- */
.vb-wrap { width: 100%; max-width: var(--vb-maxw); margin-inline: auto; padding-inline: var(--vb-gutter); }
.vb-main-full { min-height: calc(100vh - 220px); }
.vb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vb-ico { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
html { scroll-padding-top: calc(var(--vb-header-h) + 24px); }
body { background: var(--vb-bg); }

/* ---------- buttons ---------- */
.vb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--vb-line-2);
  border-radius: var(--vb-r); background: var(--vb-surface); color: var(--vb-ink); font: 600 var(--vb-fs-sm)/1.2 var(--vb-font);
  white-space: nowrap; cursor: pointer; text-decoration: none; transition: background var(--vb-motion), border-color var(--vb-motion), color var(--vb-motion); }
.vb-btn:hover { border-color: var(--vb-line-strong); background: var(--vb-bg-2); color: var(--vb-ink); }
.vb-btn-accent { background: var(--vb-accent); border-color: var(--vb-accent); color: var(--vb-on-accent); }
.vb-btn-accent:hover { background: var(--vb-accent-ink); border-color: var(--vb-accent-ink); color: var(--vb-on-accent); }
.vb-btn-ghost { background: transparent; }
.vb-btn-sm { padding: 7px 12px; font-size: var(--vb-fs-xs); }
.vb-btn-lg { padding: 12px 20px; border-radius: 10px; font-size: var(--vb-fs-md); }
.vb-btn-lg .vb-ico { width: 17px; height: 17px; }
.vb-btn-block { width: 100%; }
.vb-btn[disabled], .vb-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.vb-icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: var(--vb-r);
  background: transparent; color: var(--vb-muted); cursor: pointer; flex: none; }
.vb-icon-btn:hover { background: var(--vb-bg-2); color: var(--vb-ink); border: 0; }
.vb-icon-btn svg { width: 18px; height: 18px; }
.vb-link { color: var(--vb-accent); font-weight: 600; }
.vb-link:hover { color: var(--vb-accent-ink); }

/* ---------- pills, tags, status ---------- */
.vb-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--vb-line); border-radius: 999px;
  background: var(--vb-surface); color: var(--vb-ink-2); font-size: var(--vb-fs-xs); font-weight: 600; line-height: 1.6; white-space: nowrap; }
.vb-pill-accent { background: var(--vb-accent-soft); border-color: var(--vb-accent-line); color: var(--vb-accent); }
.vb-pill-ok { background: var(--vb-ok-soft); border-color: transparent; color: var(--vb-ok); }
.vb-pill-warn { background: var(--vb-warn-soft); border-color: var(--vb-warn-line); color: var(--vb-warn); }
.vb-pill-ok::before, .vb-pill-warn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.vb-tag { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid var(--vb-line); border-radius: var(--vb-r-sm);
  background: var(--vb-surface); color: var(--vb-ink-2); font: var(--vb-fs-2xs)/1.6 var(--vb-mono); white-space: nowrap; }
.vb-save { display: inline-block; padding: 1px 7px; border-radius: 4px; background: var(--vb-ok-soft); color: var(--vb-ok);
  font-size: var(--vb-fs-2xs); font-weight: 600; white-space: nowrap; }
/* Lei 2026-11-18: a limited-time price (catalog.PROMOTIONS): the discount, the regular price struck through, the end */
.vb-deal { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; max-width: 100%; margin: 6px 0 2px;
  padding: 3px 10px; border: 1px solid var(--vb-accent-line); border-radius: var(--vb-r-sm); background: var(--vb-accent-soft);
  color: var(--vb-accent-ink); font-size: var(--vb-fs-2xs); line-height: 1.6; }
.vb-deal b { font-weight: 700; }
.vb-deal s, .vb-was { color: var(--vb-muted); font-family: var(--vb-mono); font-weight: 400; }
.vb-deal small { color: var(--vb-ink-2); font-size: inherit; }
.vb-deal-mini { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--vb-accent-soft); color: var(--vb-accent-ink);
  font: 600 var(--vb-fs-2xs)/1.6 var(--vb-mono); font-style: normal; vertical-align: 1px; }
.vb-mh-was { align-self: center; color: var(--vb-muted); font: 500 var(--vb-fs-lg)/1 var(--vb-mono); }
.vb-kbd { font: var(--vb-fs-xs) var(--vb-mono); padding: 1px 6px; border: 1px solid var(--vb-line); border-radius: 5px; background: var(--vb-bg-2); }

/* ---------- cards, alerts ---------- */
.vb-card { background: var(--vb-surface); border: 1px solid var(--vb-line); border-radius: var(--vb-r-lg); padding: var(--vb-s6); box-shadow: var(--vb-shadow-sm); }
.vb-alert { padding: 12px 16px; border: 1px solid var(--vb-line); border-radius: var(--vb-r); background: var(--vb-surface);
  color: var(--vb-ink-2); font-size: var(--vb-fs-sm); line-height: 1.7; }
.vb-alert-warn { background: var(--vb-warn-soft); border-color: var(--vb-warn-line); color: var(--vb-warn); }
.vb-alert-accent { background: var(--vb-accent-soft); border-color: var(--vb-accent-line); color: var(--vb-ink-2); }

/* ---------- tables ---------- */
.vb-tablewrap { overflow-x: auto; border: 1px solid var(--vb-line); border-radius: var(--vb-r-lg); background: var(--vb-surface); }
.vb-table { width: 100%; border-collapse: collapse; font-size: var(--vb-fs-sm); text-align: left; }
.vb-table th, .vb-table td { padding: 13px 16px; border-top: 1px solid var(--vb-line); vertical-align: top; line-height: 1.65; }
.vb-table thead th { border-top: 0; background: var(--vb-bg-2); color: var(--vb-muted); font-size: var(--vb-fs-2xs); font-weight: 600;
  letter-spacing: .04em; white-space: nowrap; }
.vb-table tbody th { color: var(--vb-ink); font-weight: 600; }
.vb-table td { color: var(--vb-ink-2); }
.vb-table code, .vb-code-inline { font: .92em var(--vb-mono); padding: 1px 5px; border: 1px solid var(--vb-line); border-radius: 5px;
  background: var(--vb-bg-2); color: var(--vb-ink); overflow-wrap: anywhere; }

/* ---------- segmented control, tabs ---------- */
.vb-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--vb-bg-2); }
.vb-seg button { padding: 7px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--vb-muted);
  font: 600 var(--vb-fs-sm)/1 var(--vb-font); cursor: pointer; }
.vb-seg button:hover { color: var(--vb-ink); background: transparent; border: 0; }
.vb-seg button[aria-pressed="true"] { background: var(--vb-surface); color: var(--vb-ink); box-shadow: var(--vb-shadow-sm); }
.vb-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--vb-line); margin-bottom: 14px; scrollbar-width: none; }
.vb-tabs::-webkit-scrollbar { display: none; }
.vb-tabs button { flex: none; padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent;
  color: var(--vb-muted); font: 600 var(--vb-fs-sm)/1.2 var(--vb-font); cursor: pointer; }
.vb-tabs button:hover { color: var(--vb-ink); background: transparent; border-color: transparent; }
.vb-tabs button.active { color: var(--vb-accent); border-bottom-color: var(--vb-accent); }

/* ---------- fields ---------- */
.vb-field { display: grid; gap: 6px; font-size: var(--vb-fs-xs); font-weight: 600; color: var(--vb-ink-2); }
.vb-field-hint { font-size: var(--vb-fs-xs); color: var(--vb-muted); font-weight: 400; }

/* ---------- code box ---------- */
.vb-code { border: 1px solid var(--vb-line); border-radius: var(--vb-r-lg); background: var(--vb-code-bg); overflow: hidden; min-width: 0; }
.vb-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px;
  border-bottom: 1px solid var(--vb-line); font: var(--vb-fs-2xs) var(--vb-mono); color: var(--vb-muted); }
.vb-code pre { margin: 0; padding: 16px 18px; max-height: 420px; overflow: auto; font: var(--vb-fs-xs)/1.8 var(--vb-mono); color: var(--vb-ink);
  white-space: pre-wrap; overflow-wrap: anywhere; }
/* code colours from showcase.highlight (filter vb_code), for the light code boxes; the API key variable stands out */
.t-s { color: var(--vb-ok); }
.t-c { color: var(--vb-soft); }
.t-k { color: var(--vb-accent); }
.t-f { color: #2e6db4; }
.t-n { color: #9a6418; }
.t-v { padding: 0 2px; border-radius: 3px; background: var(--vb-warn-soft); box-shadow: 0 0 0 1px var(--vb-warn-line); color: var(--vb-warn); }
:root[data-theme="dark"] .t-f { color: #8fc6ff; }
:root[data-theme="dark"] .t-n { color: #f2c27a; }

/* ---------- FAQ accordion ---------- */
.vb-faq { display: grid; gap: 10px; max-width: 880px; }
.vb-qa { border: 1px solid var(--vb-line); border-radius: var(--vb-r-lg); background: var(--vb-surface); transition: border-color var(--vb-motion); }
.vb-qa[open] { border-color: var(--vb-accent-line); }
.vb-qa summary { position: relative; padding: 15px 48px 15px 18px; list-style: none; cursor: pointer; font-weight: 600; font-size: var(--vb-fs-md); line-height: 1.55; }
.vb-qa summary::-webkit-details-marker { display: none; }
.vb-qa summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 12px; height: 12px; margin-top: -6px; color: var(--vb-accent);
  background: linear-gradient(currentColor, currentColor) center/12px 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 12px no-repeat;
  transition: transform .2s; }
.vb-qa[open] summary::after { transform: rotate(45deg); }
.vb-qa > div { padding: 0 18px 16px; color: var(--vb-muted); font-size: var(--vb-fs-base); line-height: 1.85; }
.vb-qa code { font: .92em var(--vb-mono); padding: 1px 5px; border-radius: 5px; background: var(--vb-bg-2); color: var(--vb-ink); }

/* ---------- header ---------- */
.vb-header { position: sticky; top: 0; z-index: 40; background: var(--vb-header-bg); border-bottom: 1px solid var(--vb-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.vb-header-in { display: flex; align-items: center; gap: 22px; height: var(--vb-header-h); width: 100%; max-width: var(--vb-maxw);
  margin-inline: auto; padding-inline: var(--vb-gutter); }
.vb-header-in.is-wide { max-width: 1600px; padding-inline: 32px; }
.vb-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--vb-ink); font-size: 18px; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.vb-brand:hover { color: var(--vb-ink); }
.vb-brand-mark { width: 30px; height: 30px; object-fit: contain; flex: none; }
.vb-nav { display: flex; align-items: center; gap: 2px; }
.vb-nav-link, .vb-nav-trigger { display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; border: 0; border-radius: var(--vb-r);
  background: transparent; color: var(--vb-ink-2); font: 500 var(--vb-fs-base)/1.2 var(--vb-font); white-space: nowrap; cursor: pointer; }
.vb-nav-link:hover, .vb-nav-trigger:hover, .vb-dd.open > .vb-nav-trigger { background: var(--vb-bg-2); color: var(--vb-ink); border: 0; }
.vb-nav-link.active { color: var(--vb-accent); }
.vb-caret { width: 14px; height: 14px; opacity: .6; transition: transform .18s; }
.vb-dd.open > .vb-nav-trigger .vb-caret { transform: rotate(180deg); }
.vb-header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.vb-balance { padding: 6px 10px; border: 1px solid var(--vb-line); border-radius: 999px; color: var(--vb-ink-2); font: var(--vb-fs-xs) var(--vb-mono); white-space: nowrap; }
.vb-balance:hover { border-color: var(--vb-accent-line); color: var(--vb-accent); }
/* API-first pass (Claude 2026-11-15): the API keys and the console are in plain sight for a signed-in customer */
.vb-keylink { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 11px; border: 1px solid var(--vb-line);
  border-radius: var(--vb-r); color: var(--vb-ink-2); font: 600 var(--vb-fs-sm)/1 var(--vb-font); white-space: nowrap;
  transition: border-color var(--vb-motion), background var(--vb-motion), color var(--vb-motion); }
.vb-keylink:hover, .vb-keylink.active { border-color: var(--vb-accent-line); background: var(--vb-accent-soft); color: var(--vb-accent); }
.vb-keylink .vb-ico { width: 16px; height: 16px; }
.vb-header-right .vb-console-btn, .vb-header-right .vb-signup { height: 34px; padding: 0 14px; font-size: var(--vb-fs-sm); }
.vb-avatar { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--vb-accent-line); border-radius: 50%;
  background: var(--vb-accent-soft); color: var(--vb-accent); font-weight: 700; font-size: var(--vb-fs-sm); cursor: pointer; }
.vb-avatar:hover { border-color: var(--vb-accent); background: var(--vb-accent-soft); }
.vb-theme .vb-ic-sun { display: none; }
:root[data-theme="dark"] .vb-theme .vb-ic-moon { display: none; }
:root[data-theme="dark"] .vb-theme .vb-ic-sun { display: block; }
.vb-burger { display: none; }

/* dropdown menus: click everywhere, hover on a desktop pointer */
.vb-dd { position: relative; }
.vb-dd-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; min-width: 240px; padding: 6px; background: var(--vb-surface);
  border: 1px solid var(--vb-line); border-radius: var(--vb-r-lg); box-shadow: var(--vb-shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility 0s .16s; }
.vb-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.vb-dd.open > .vb-dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s, visibility 0s; }
@media (hover: hover) and (min-width: 861px) {
  .vb-nav .vb-dd:hover > .vb-dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s, visibility 0s; }
  .vb-nav .vb-dd:hover > .vb-nav-trigger { background: var(--vb-bg-2); color: var(--vb-ink); }
  .vb-nav .vb-dd:hover > .vb-nav-trigger .vb-caret { transform: rotate(180deg); }
}
.vb-dd-right { left: auto; right: 0; }
.vb-dd-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 10px; border: 0;
  border-radius: var(--vb-r); background: transparent; color: var(--vb-ink); font: 500 var(--vb-fs-sm)/1.4 var(--vb-font); text-align: left; cursor: pointer; }
.vb-dd-item:hover { background: var(--vb-bg-2); color: var(--vb-ink); border: 0; }
.vb-dd-item small { color: var(--vb-muted); font-size: var(--vb-fs-xs); white-space: nowrap; }
.vb-dd-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vb-dd-l > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-dd-ic { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: var(--vb-r); background: var(--vb-bg-2); color: var(--vb-ink-2); }
.vb-dd-ic svg { width: 16px; height: 16px; }
.vb-dd-menu hr { border: 0; border-top: 1px solid var(--vb-line); margin: 5px 8px; }
.vb-dd-head { padding: 8px 10px 6px; color: var(--vb-muted); font-size: var(--vb-fs-xs); line-height: 1.5; overflow-wrap: anywhere; }
.vb-dd-head b { display: block; color: var(--vb-ink); font-size: var(--vb-fs-sm); }
/* the models menu: one row per model */
.vb-dd-models { width: 430px; }
.vb-dd-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--vb-r); color: var(--vb-ink); }
.vb-dd-row:hover { background: var(--vb-bg-2); color: var(--vb-ink); }
.vb-dd-row b { display: block; font-size: var(--vb-fs-base); font-weight: 600; }
.vb-dd-row small { display: block; color: var(--vb-muted); font-size: var(--vb-fs-xs); line-height: 1.45; }
.vb-dd-row .vb-dd-price { font: 600 var(--vb-fs-xs) var(--vb-mono); color: var(--vb-ink-2); white-space: nowrap; }
.vb-dd-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 10px 10px 4px; border-top: 1px solid var(--vb-line); }
.vb-dd-foot a { color: var(--vb-accent); font-size: var(--vb-fs-sm); font-weight: 600; }
.vb-dd-docs { width: 300px; }
.vb-dd-contact { width: 320px; }
.vb-dd-account { width: 240px; }
.vb-dd-lang { width: 168px; }
.vb-dd-lang .vb-dd-item.active { color: var(--vb-ink); font-weight: 600; }

/* model glyph: VidBudget's own model mark (version number in a tinted tile) */
.vb-glyph { position: relative; width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: var(--vb-r-lg);
  border: 1px solid var(--vb-accent-line); background: var(--vb-accent-soft); color: var(--vb-accent); font: 700 var(--vb-fs-sm)/1 var(--vb-mono); letter-spacing: -.03em; }
.vb-glyph i { position: absolute; right: -5px; top: -6px; padding: 1px 4px; border-radius: 5px; background: var(--vb-accent); color: var(--vb-on-accent);
  font: 600 9px/1.4 var(--vb-font); font-style: normal; letter-spacing: 0; }

/* ---------- phone drawer (built from the header by shell.js) ---------- */
html.vb-lock { overflow: hidden; }
.vb-drawer { position: fixed; inset: 0; z-index: 80; }
.vb-drawer[hidden] { display: none; }
.vb-dr-scrim { position: absolute; inset: 0; background: var(--vb-scrim); opacity: 0; transition: opacity .22s ease; }
.vb-dr-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); display: flex; flex-direction: column; background: var(--vb-bg);
  border-left: 1px solid var(--vb-line); box-shadow: -24px 0 60px rgba(0, 0, 0, .18); transform: translateX(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.vb-drawer.open .vb-dr-scrim { opacity: 1; }
.vb-drawer.open .vb-dr-panel { transform: none; }
.vb-dr-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--vb-header-h);
  padding: env(safe-area-inset-top, 0px) 10px 0 18px; border-bottom: 1px solid var(--vb-line); }
.vb-dr-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 10px 16px; }
.vb-dr-link, .vb-dr-sec > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 12px;
  border-radius: var(--vb-r-lg); color: var(--vb-ink); font-size: var(--vb-fs-lg); font-weight: 600; list-style: none; cursor: pointer; }
.vb-dr-sec > summary::-webkit-details-marker { display: none; }
.vb-dr-sec > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 3px 0; border-right: 2px solid var(--vb-muted);
  border-bottom: 2px solid var(--vb-muted); transform: rotate(45deg); transition: transform .2s ease; }
.vb-dr-sec[open] > summary::after { margin-bottom: -3px; transform: rotate(-135deg); }
.vb-dr-link:hover, .vb-dr-sec > summary:hover { background: var(--vb-bg-2); color: var(--vb-ink); }
.vb-dr-link.active { color: var(--vb-accent); }
.vb-dr-sub { display: flex; flex-direction: column; gap: 2px; padding: 2px 2px 10px 8px; }
.vb-dr-sub .vb-dd-models, .vb-dr-sub.vb-dd-models, .vb-dr-sub.vb-dd-docs, .vb-dr-sub.vb-dd-contact { width: auto; }
.vb-dr-sub .vb-dd-foot { padding-inline: 10px; }
.vb-dr-theme { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-top: 6px; padding: 0 12px;
  border-top: 1px solid var(--vb-line); color: var(--vb-ink-2); font-size: var(--vb-fs-md); }
.vb-dr-foot { flex: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--vb-line); }
.vb-dr-foot .vb-btn { flex: 1 1 auto; }
.vb-dr-foot .vb-btn .vb-ico { width: 16px; height: 16px; }

/* ---------- footer ---------- */
.vb-footer { margin-top: var(--vb-s9); border-top: 1px solid var(--vb-line); padding: 44px 0 56px; background: var(--vb-bg); }
.vb-footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px 48px; }
.vb-footer-brand { max-width: 300px; }
.vb-footer-brand p { margin: 12px 0 0; color: var(--vb-muted); font-size: var(--vb-fs-sm); line-height: 1.75; }
.vb-footer-brand .vb-mail { display: inline-block; margin-top: 10px; color: var(--vb-ink-2); font: var(--vb-fs-xs) var(--vb-mono); }
.vb-footer-brand .vb-footer-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 14px; font-size: var(--vb-fs-xs); }
.vb-footer-langs a { color: var(--vb-muted); }
.vb-footer-langs a:hover { color: var(--vb-ink); }
.vb-footer-langs b { color: var(--vb-ink-2); font-weight: 600; }
.vb-footer-cols { display: flex; flex-wrap: wrap; gap: 28px 52px; }
.vb-footer-col { display: flex; flex-direction: column; gap: 2px; min-width: 112px; }
.vb-footer-col .vb-footer-h { margin: 0 0 10px; color: var(--vb-soft); font-size: var(--vb-fs-2xs); font-weight: 600; letter-spacing: .12em; }
.vb-footer-col a, .vb-footer-col button { padding: 4px 0; border: 0; background: none; color: var(--vb-muted); font: var(--vb-fs-sm)/1.6 var(--vb-font);
  text-align: left; cursor: pointer; border-radius: 0; }
.vb-footer-col a:hover, .vb-footer-col button:hover { color: var(--vb-ink); background: none; border: 0; }

/* ---------- modal (contact) ---------- */
dialog.vb-modal { width: min(440px, calc(100vw - 32px)); max-width: none; padding: 28px; border: 1px solid var(--vb-line); border-radius: var(--vb-r-xl);
  background: var(--vb-surface); color: var(--vb-ink); box-shadow: var(--vb-shadow); }
dialog.vb-modal::backdrop { background: var(--vb-scrim); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.vb-modal-x { position: absolute; top: 14px; right: 14px; }
.vb-modal h2 { margin: 0 0 6px; font-size: var(--vb-fs-xl); letter-spacing: -.02em; text-align: center; }
.vb-modal-sub { margin: 0 0 18px; color: var(--vb-muted); font-size: var(--vb-fs-sm); line-height: 1.7; text-align: center; }
.vb-contact { list-style: none; margin: 0; padding: 0; border: 1px solid var(--vb-line); border-radius: var(--vb-r-lg); overflow: hidden; }
.vb-contact li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; }
.vb-contact li + li { border-top: 1px solid var(--vb-line); }
.vb-contact-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--vb-accent-soft); color: var(--vb-accent); }
.vb-contact-ic svg { width: 18px; height: 18px; }
.vb-contact b { display: block; font-size: var(--vb-fs-base); }
.vb-contact small { display: block; color: var(--vb-muted); font: var(--vb-fs-xs) var(--vb-mono); overflow-wrap: anywhere; }
.vb-modal-note { margin: 14px 0 0; color: var(--vb-muted); font-size: var(--vb-fs-xs); line-height: 1.7; }
.vb-modal-foot { display: flex; justify-content: center; gap: 22px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--vb-line); font-size: var(--vb-fs-sm); }
.vb-modal-foot a { color: var(--vb-accent); font-weight: 600; }

/* ---------- toasts follow the theme ---------- */
#toasts .toast { box-shadow: var(--vb-shadow); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .vb-header-in { gap: 14px; }
  .vb-nav-link, .vb-nav-trigger { padding: 8px 8px; }
  /* the key link keeps its icon; its words stay for screen readers */
  .vb-keylink { width: 34px; padding: 0; }
  .vb-keylink span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1100px) {
  .vb-nav { display: none; }
  .vb-burger { display: inline-grid; }
  .vb-header-right .vb-nav-link { display: none; }
}
@media (max-width: 700px) {
  .vb-header-in, .vb-header-in.is-wide { padding-inline: 14px; gap: 10px; }
  .vb-brand { font-size: 17px; gap: 8px; }
  .vb-brand-mark { width: 28px; height: 28px; }
  .vb-header-right { gap: 4px; }
  .vb-header-right .vb-theme, .vb-header-right .vb-lang { display: none; }
  .vb-balance { padding: 5px 8px; font-size: var(--vb-fs-2xs); }
  .vb-header-right > .vb-btn { padding: 7px 10px; }
  .vb-header-right .vb-console-btn, .vb-header-right .vb-signup { height: 32px; padding: 0 11px; font-size: var(--vb-fs-xs); }
  .vb-keylink { width: 32px; height: 32px; }
  .vb-footer { padding: 32px 0 40px; }
  .vb-footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; width: 100%; }
  .vb-footer-col { min-width: 0; }
  dialog.vb-modal { padding: 24px 18px; }
}
@media (max-width: 480px) {
  .vb-header-right .vb-signup { display: none; }
  /* the balance moves into the drawer's foot; the key link and the console button stay */
  .vb-header-right .vb-balance { display: none; }
}
@media (max-width: 380px) {
  .vb-brand span { font-size: 16px; }
  .vb-balance { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vb-dd-menu, .vb-dr-scrim, .vb-dr-panel, .vb-qa summary::after, .vb-caret { transition: none; }
}

/* =====================================================================================================
   Design pass (Claude 2026-11-15): shared pieces for real clips and the film motif. A clip is a lazy
   poster with a muted video on top that fades in once it plays (static/js/media.js). Models without a
   clip of their own get the drawn film frame. Dark "screen" colours are fixed: a screen is dark in
   both themes.
   ===================================================================================================== */
:root { --vb-screen: #0e0d10; --vb-screen-2: #19171c; --vb-screen-ink: #f1ede6; --vb-screen-muted: #a7a197; --vb-screen-line: rgba(255, 255, 255, .12);
  --vb-rec: #e5484d; --vb-ease: cubic-bezier(.2, .8, .2, 1); }

/* pressed state for every button */
.vb-btn:active, .vb-icon-btn:active, .vb-linkbtn:active { transform: translateY(1px); }
.vb-btn { transition: background var(--vb-motion), border-color var(--vb-motion), color var(--vb-motion), transform 80ms; }
.vb-linkbtn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--vb-accent); font: inherit; font-weight: 600; cursor: pointer; }
.vb-linkbtn:hover { color: var(--vb-accent-ink); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.vb-linkbtn .vb-ico { width: 14px; height: 14px; }

/* headings for the new sections */
.vb-h2 { margin: 0 0 26px; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.2; letter-spacing: -.035em; }
.vb-h2-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 26px; }
.vb-h2-row .vb-h2 { margin: 0; }
.vb-h2-note { display: inline-flex; align-items: center; gap: 6px; color: var(--vb-muted); font-size: var(--vb-fs-sm); }
.vb-h2-note .vb-ico { width: 16px; height: 16px; }
.vb-fine { margin: 14px 0 0; color: var(--vb-soft); font-size: var(--vb-fs-xs); line-height: 1.7; }
.vb-empty { padding: 48px 0; color: var(--vb-muted); text-align: center; }
.vb-mono-badge { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--vb-line); border-radius: 999px; background: var(--vb-bg-2);
  color: var(--vb-ink-2); font: 600 var(--vb-fs-xs)/1.4 var(--vb-mono); }

/* clips: every host is a positioned box with an aspect ratio (the "screen") */
.vb-clip-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.vb-clip-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; pointer-events: none; background: transparent; }
.is-playing > .vb-clip-video, .is-playing .vb-clip-video, .is-live .vb-clip-video { opacity: 1; }

/* the drawn film frame (no clip of its own yet) */
.vb-frame { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; overflow: hidden; color: var(--vb-screen-ink);
  background: radial-gradient(120% 90% at 50% 40%, #232027 0%, var(--vb-screen) 70%); }
.vb-frame::after { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.vb-frame-holes { position: absolute; left: 0; right: 0; top: 7px; height: 7px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .14) 0 11px, transparent 11px 24px) 6px 0 / 24px 7px repeat-x; }
.vb-frame-holes-b { top: auto; bottom: 7px; }
.vb-frame-c { position: absolute; width: 20px; height: 20px; border: 0 solid rgba(255, 255, 255, .55); }
.vb-frame-c.tl { left: 18px; top: 22px; border-left-width: 2px; border-top-width: 2px; }
.vb-frame-c.tr { right: 18px; top: 22px; border-right-width: 2px; border-top-width: 2px; }
.vb-frame-c.bl { left: 18px; bottom: 22px; border-left-width: 2px; border-bottom-width: 2px; }
.vb-frame-c.br { right: 18px; bottom: 22px; border-right-width: 2px; border-bottom-width: 2px; }
.vb-frame-big { position: relative; z-index: 1; font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: .04em; line-height: 1; }
.vb-frame-sub { position: relative; z-index: 1; color: var(--vb-screen-muted); font: 600 var(--vb-fs-xs)/1.4 var(--vb-mono); letter-spacing: .06em; }
.vb-frame-tl { position: absolute; left: 44px; right: 44px; bottom: 36px; height: 2px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.vb-frame-tl i { position: absolute; top: 0; bottom: 0; left: 0; width: 22%; background: rgba(255, 255, 255, .6); animation: vb-scan 3.2s var(--vb-ease) infinite; }
@keyframes vb-scan { from { transform: translateX(-100%); } to { transform: translateX(460%); } }

/* model cards (home page, /models): dark cover, price badge on the cover, hover plays */
.vb-mcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.vb-mc { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--vb-line); border-radius: var(--vb-r-xl); background: var(--vb-surface); color: var(--vb-ink);
  box-shadow: var(--vb-shadow-sm); transition: transform .25s var(--vb-ease), box-shadow .25s, border-color .25s; }
.vb-mc:hover { color: var(--vb-ink); transform: translateY(-3px); border-color: var(--vb-line-2); box-shadow: var(--vb-shadow); }
/* API-first pass: the card is an article -- its main part links to the model page, the foot to the API docs and the try-it area */
.vb-mc-main { display: flex; flex: 1; flex-direction: column; color: inherit; }
.vb-mc-main:hover { color: inherit; }
.vb-mc-main:focus-visible { outline: 2px solid var(--vb-accent); outline-offset: -2px; border-radius: var(--vb-r-xl) var(--vb-r-xl) 0 0; }
.vb-mc-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--vb-line); }
.vb-mc-foot a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 10px; color: var(--vb-ink-2); font-size: var(--vb-fs-sm);
  font-weight: 600; transition: background var(--vb-motion), color var(--vb-motion); }
.vb-mc-foot a + a { border-left: 1px solid var(--vb-line); }
.vb-mc-foot a:hover { background: var(--vb-accent-soft); color: var(--vb-accent); }
.vb-mc-foot .vb-ico { width: 15px; height: 15px; }
.vb-mc-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--vb-screen); }
.vb-mc-cover .vb-clip-poster { transition: transform .6s var(--vb-ease); }
.vb-mc:hover .vb-mc-cover .vb-clip-poster { transform: scale(1.03); }
.vb-mc-off { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 4px 9px; border-radius: 6px; background: rgba(10, 9, 12, .78); color: #f2d49b; font-size: var(--vb-fs-xs); font-weight: 600; }
.vb-mc-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 12px; }
.vb-mc-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vb-mc-name h3 { margin: 0; font-size: var(--vb-fs-lg); letter-spacing: -.01em; }
.vb-mc-tag { padding: 2px 9px; border: 1px solid var(--vb-line); border-radius: 999px; color: var(--vb-ink-2); font: var(--vb-fs-xs)/1.7 var(--vb-mono); white-space: nowrap; }
.vb-mc-none { margin: 0 0 6px; color: var(--vb-muted); font-size: var(--vb-fs-sm); }
.vb-mc[hidden] { display: none; }
/* prices as bars: ours against the official reference, length proportional to price */
.vb-legend { display: inline-flex; align-items: center; gap: 6px 8px; color: var(--vb-muted); font-size: var(--vb-fs-xs); }
.vb-legend i { width: 18px; height: 8px; margin-left: 8px; border-radius: 2px; }
.vb-legend i.ours, .vb-bar.ours { background: var(--vb-accent); }
.vb-legend i.off, .vb-bar.off { background: repeating-linear-gradient(135deg, var(--vb-line-strong) 0 3px, var(--vb-line) 3px 6px); }
.vb-bar-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 62px; align-items: center; gap: 12px; padding: 7px 0; }
.vb-bar-row + .vb-bar-row { border-top: 1px dashed var(--vb-line); }
.vb-bar-res { color: var(--vb-ink-2); font: 600 var(--vb-fs-xs) var(--vb-mono); }
.vb-bar-track { display: grid; gap: 4px; padding-right: 78px; }
.vb-bar { position: relative; display: block; height: 12px; width: var(--w); min-width: 3px; border-radius: 2px; transition: width 1s var(--vb-ease); }
.vb-bar em { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); color: var(--vb-ink); font: 600 var(--vb-fs-xs)/1 var(--vb-mono); font-style: normal; white-space: nowrap; }
.vb-bar.off em { color: var(--vb-muted); font-weight: 500; }
.vb-js .vb-reveal:not(.is-in) .vb-bar { width: 0; }
.vb-bar-save { color: var(--vb-ok); font-size: var(--vb-fs-xs); text-align: right; white-space: nowrap; }
.vb-bar-save b { font: 700 var(--vb-fs-md) var(--vb-mono); }
.vb-bar-save i { color: var(--vb-soft); font-style: normal; }
.vb-btn-ic { padding: 6px 8px; }
.vb-btn-ic .vb-ico { width: 15px; height: 15px; }
/* /models */
.vb-models-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 26px; }
.vb-models-head h1 { margin: 0; font-size: var(--vb-fs-3xl); letter-spacing: -.035em; }
.vb-filter { margin-bottom: 0; }
.vb-mcards-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.vb-models-fine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 18px; }
.vb-models-fine .vb-legend i:first-child { margin-left: 0; }

/* sliding underline (tabs) and sliding pill (segmented switch), placed by media.js */
.vb-tabs.has-ink, .vb-seg.has-ink { position: relative; }
.vb-ink { position: absolute; left: 0; pointer-events: none; transition: transform .28s var(--vb-ease), width .28s var(--vb-ease), opacity .2s; }
.vb-tabs.has-ink > .vb-ink { bottom: -1px; height: 2px; border-radius: 2px; background: var(--vb-accent); }
.vb-tabs.has-ink > button.active { border-bottom-color: transparent; }
.vb-seg.has-ink > .vb-ink { top: 3px; bottom: 3px; z-index: 0; border-radius: 8px; background: var(--vb-surface); box-shadow: var(--vb-shadow-sm); }
.vb-seg.has-ink > button { position: relative; z-index: 1; }
.vb-seg.has-ink > button[aria-pressed="true"] { background: transparent; box-shadow: none; }

/* scroll-in: rise once (only when a script is there to reveal it) */
.vb-js .vb-reveal { transition: opacity .6s var(--vb-ease), transform .6s var(--vb-ease); }
.vb-js .vb-reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }

/* toasts slide in and out */
#toasts .toast { animation: vb-toast-in .26s var(--vb-ease); }
#toasts .toast.is-out { animation: vb-toast-out .22s ease forwards; }
@keyframes vb-toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes vb-toast-out { to { opacity: 0; transform: translateY(6px); } }

/* header: sign-in stays visible on phones next to the solid sign-up button */
@media (max-width: 860px) {
  .vb-header-right .vb-nav-link.vb-signin { display: inline-flex; padding: 8px 6px; }
}
@media (max-width: 700px) {
  .vb-mcards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .vb-bar-row { grid-template-columns: 42px minmax(0, 1fr) 52px; gap: 8px; }
  .vb-bar-track { padding-right: 66px; }
  .vb-bar em { left: calc(100% + 6px); font-size: var(--vb-fs-2xs); }
  .vb-bar-save b { font-size: var(--vb-fs-base); }
}
@media (prefers-reduced-motion: reduce) {
  .vb-js .vb-reveal:not(.is-in) { opacity: 1; transform: none; }
  .vb-js .vb-reveal:not(.is-in) .vb-bar { width: var(--w); }
  .vb-frame-tl i, #toasts .toast, #toasts .toast.is-out { animation: none; }
  .vb-mc, .vb-mc-cover .vb-clip-poster, .vb-ink, .vb-clip-video, .vb-bar { transition: none; }
}

.vb-dd-models { width: 340px; }
.vb-dd-models .vb-dd-row { grid-template-columns: 30px minmax(0, 1fr); }
.vb-catalog { grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); }
.catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.catalog-entry { display: flex; flex-direction: column; height: 100%; color: inherit; }
.catalog-entry:hover { color: inherit; }
.catalog-image { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--vb-bg-2); }
.catalog-image img, .catalog-image video { width: 100%; height: 100%; object-fit: cover; }
.catalog-details { padding: 22px; display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.catalog-details h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; margin: 10px 0; }
.catalog-details p { margin: 0 0 24px; font-size: 1rem; color: var(--vb-ink-2); }
.catalog-details small { color: var(--vb-muted); font: .875rem var(--vb-mono); }
.catalog-go { margin-top: auto; color: var(--vb-accent); font-weight: 600; }
.catalog-entry:not(:has(.catalog-image)) { border-top: 4px solid var(--vb-accent); background: linear-gradient(155deg, var(--vb-accent-soft), var(--vb-surface) 65%); }
.rate-sheet { margin: 0 0 28px; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--vb-line); border-radius: var(--vb-r-xl); background: var(--vb-surface); }
.rate-sheet h2 { margin: 0; font-size: 1.6rem; line-height: 1.25; }
.rate-sheet header p, .rate-sheet ul { color: var(--vb-muted); }
.rate-sheet header p { margin: 5px 0 18px; }
.rate-sheet .table td { font-size: 1rem; }
.rate-sheet .table th, .rate-sheet ul { font-size: .9375rem; }
.rate-sheet .table th { white-space: normal; }
.rate-sheet .table tbody th { color: var(--vb-ink); background: transparent; }
.rate-sheet ul { padding-left: 1.2em; margin-bottom: 0; }
@media (max-width: 700px) {
  .rate-sheet .table td, .rate-sheet .table th { padding: 10px 6px; }
}
/* /pricing additions (Claude 2026-11-18): the answer under the heading, the calculator. */
.vb-pricing-head { display: block; }
.vb-pricing-lede { max-width: 860px; margin: 12px 0 0; font-size: var(--vb-fs-lg); line-height: 1.65; color: var(--vb-ink); }
.vb-calc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.vb-calc-form label { display: grid; gap: 6px; font-size: .9375rem; color: var(--vb-muted); }
.vb-calc-form select, .vb-calc-form input { width: 100%; font-size: 1rem; }
.vb-calc-out { margin: 18px 0 0; font-size: 1rem; color: var(--vb-muted); }
.vb-calc-out b { margin-right: 10px; font-size: 1.6rem; color: var(--vb-ink); }
.vb-pricing-faq .vb-faq { max-width: none; }

/* 2026-11-20: the recommendation for models VidBudget does not sell (templates/partials/more_models.html) */
.vb-more-models { margin: 22px 0 0; padding: 14px 16px; border: 1px dashed var(--vb-line); border-radius: var(--vb-r); color: var(--vb-muted); font-size: 15px; line-height: 1.65; }
.vb-more-models p { margin: 0; }
.vb-more-models b { color: var(--vb-ink); }
