/*
 * TestVibe — bridge between the homepage design system and the sub-page styles (16 nov 2026)
 * ---------------------------------------------------------------------------------------------
 * Loaded after design-tokens.css, components.css and site.css by every sub-page (scripts/lib/chrome.mjs).
 *   1 Albert Sans everywhere, monospace without Google Fonts
 *   2 Page background = homepage background (header/footer/content match in both themes)
 *   3 Header and footer: undo the site.css defaults that leak into them (link color, hover underline,
 *     the bare `footer` rule)
 *   4 Heading scale of the homepage on the sub-pages:
 *       H1 of a page = H2 of the homepage (--tv-fs-h2, 41–69px)
 *       section titles of long pages (articles) = H2 ÷ 1.618, sub-titles and legal sections = H2 ÷ 1.618²
 *   5 Section labels (eyebrows) = homepage eyebrow (#ba3efe, 16px)
 */

/* ============ 1 Fonts ============ */
:root {
  --font-display: 'Albert Sans', 'Segoe UI', sans-serif;
  --font-ui: 'Albert Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
body { letter-spacing: 0; }

/* ============ 1b Page grid = top bar grid (16 nov 2026) ============
   content box 1200px with the top bar's side padding (--tv-gutter, 20–32px), so text starts under the logo
   and ends under "Start free". html:root: tokens.css is loaded after this file */
html:root { --shell-max: 1200px; --shell-pad: var(--tv-gutter); }

/* ============ 2 Background ============ */
:root, [data-theme="dark"] { --app-bg: var(--tv-bg); }

/* ============ 3 Header and footer over site.css ============ */
.tv-topbar a, .tv-mobile-menu a, .tv-footer a,
.tv-topbar a:hover, .tv-mobile-menu a:hover, .tv-footer a:hover { text-decoration: none; }
.tv-nav a, .tv-mobile-menu a { color: inherit; }
/* hover: eyebrow purple + underline; current page: same purple, no underline (as in components.css; repeated here
   because the line above and site.css would win otherwise) */
.tv-nav a:hover, .tv-mobile-menu a:hover { color: var(--tv-eyebrow); text-decoration: underline; }
.tv-nav a[aria-current="page"], .tv-mobile-menu a[aria-current="page"] { color: var(--tv-eyebrow); font-weight: 500; text-decoration: none; }
.tv-footer { position: relative; z-index: 2; border-top: 0; }
.tv-footer img { max-width: none; }

/* ============ 4 Heading scale ============ */
.page-title, .sec-h2, body .pricing-hero h1 {   /* body: wins over pricing.css, loaded later */
  font-family: var(--tv-font);
  font-size: var(--tv-fs-h2);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.02em;
  color: var(--tv-fg);
}
.sec-h2.minor { font-size: calc(var(--tv-fs-h2) / 1.618); line-height: 1.1; }
/* section titles inside a page's prose (e.g. About) — low specificity so page components can override */
.page :where(h2:not([class])) { font-family: var(--tv-font); font-size: calc(var(--tv-fs-h2) / 1.618); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; color: var(--tv-fg); }
body .article h2 { font-size: calc(var(--tv-fs-h2) / 1.618); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
body .article h3 { font-size: max(19px, calc(var(--tv-fs-h2) / 2.618)); font-weight: 600; line-height: 1.25; }
.doc-section h2 { font-size: max(19px, calc(var(--tv-fs-h2) / 2.618)); font-weight: 600; letter-spacing: -0.01em; }

/* article titles are long: half a golden step below the page H1 (H2 ÷ √1.618, 32–54px), so the
   article's own section titles (H2 ÷ 1.618) stay one step below */
body .article-title { font-family: var(--tv-font); font-size: calc(var(--tv-fs-h2) / 1.272); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; color: var(--tv-fg); }
body .post-card h3 { font-weight: 600; letter-spacing: -0.01em; }

/* ============ 4a Text and spacing of the homepage (16 nov 2026) ============
   Homepage values: eyebrow → title 22px; title → lead 24–30px; lead 18–21px / 1.5; card and FAQ text
   17px / 1.55–1.6; sections clamp(48px, 7vw, 84px) on top and clamp(72px, 9vw, 112px) at the bottom. */
/* first element of every page (eyebrow, or whatever comes first) starts where it does on Pricing:
   56px under the top bar, 52px on phones (pricing.css .pricing-hero). `body`: beats blog.css and the
   pages' own <style> blocks, which load later */
:root { --tv-page-top: 56px; }
@media (max-width: 640px) { :root { --tv-page-top: 52px; } }
.page { padding-top: var(--tv-page-top); padding-bottom: clamp(72px, 9vw, 112px); }
body .blog-hero, body .video-hero, body .article-head { padding-top: var(--tv-page-top); }
.page > :first-child, .page-head > :first-child, .sec-head > :first-child, .article-head > :first-child { margin-top: 0; }
body .article-head > .crumb { vertical-align: top; }   /* inline-block: without this the line box adds 4px above it */
.page-head, .sec-head { margin-bottom: clamp(40px, 5vw, 56px); }
/* eyebrow → title */
.page-kicker + .page-title, .eyebrow + .page-title, .sec-head .eyebrow + .sec-h2, .pricing-hero .eyebrow + h1 { margin-top: 22px; }
/* title → lead */
/* body text: 17px / 1.6 like the homepage cards and FAQ */
.page :where(p, li) { font-size: 17px; line-height: 1.6; }
/* lead = homepage .tv-lead (the text under "Describe a flow. Generate a test."); after the generic rule so it wins */
.lede, .sec-sub { margin-top: 24px; max-width: 620px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; font-weight: 400; color: var(--tv-muted); text-wrap: pretty; }
.doc-section p, .doc-section li { font-size: 17px; line-height: 1.6; color: var(--tv-muted); }
.doc-section p { margin-bottom: 14px; }
/* articles: reading text a step larger, a little more air than the cards.
   `body` prefix: blog.css loads after this file and would win otherwise */
body .article { font-size: 18px; line-height: 1.65; }
body .article > * + * { margin-top: 1.1em; }
body .article h2 { margin-top: clamp(44px, 5vw, 60px); }
body .article h3 { margin-top: clamp(32px, 4vw, 40px); }
body .article h2 + *, body .article h3 + * { margin-top: 14px; }
body .post-card p { font-size: 16px; line-height: 1.55; }

/* ============ 4b Primary buttons = homepage primary (purple, white text) in both themes ============ */
.btn.btn-primary { background: var(--tv-primary); color: #fff; border-color: transparent; }
.btn.btn-primary:hover { background: var(--tv-primary-hover); color: #fff; }
/* Introduction deck: "Download PDF" (page <style> loads later, hence `body`) */
body .deck-btn-primary { background: var(--tv-primary); border-color: var(--tv-primary); color: #fff; }
body .deck-btn-primary:hover { background: var(--tv-primary-hover); border-color: var(--tv-primary-hover); color: #fff; }

/* ============ 5 Section labels ============ */
/* + "Free to start" above the closing call to action (Videos, Blog, articles), "Cloud or on-prem" (Pricing),
   "Start here" (Videos), the category above an article title. Not the category tags on the Blog cards. */
.page-kicker, .sec-head .eyebrow, .page > .eyebrow, body .pricing-hero .eyebrow, body .cta-band .eyebrow, body .article-cta .eyebrow,
body .enterprise-plan .enterprise-eyebrow, body .featured-copy .eyebrow, body .article-head .eyebrow {
  font-family: var(--tv-font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: capitalize;
  color: var(--tv-eyebrow);
}

/* ============ 6 Blog index: filters, search, post cards (16 nov 2026) ============
   `body`: the page's own <style> (scripts/build-blog.mjs) loads after this file */
body .filter-pill { font-size: 15px; padding: 8px 20px; border-color: var(--tv-border); color: var(--tv-fg); }
body .filter-pill:hover { border-color: var(--tv-fg); color: var(--tv-fg); }
body .filter-pill[aria-pressed="true"] { background: var(--tv-primary); border-color: var(--tv-primary); color: #fff; }   /* = "Start free" in the top bar */
body .filter-pill[aria-pressed="true"]:hover { background: var(--tv-primary-hover); border-color: var(--tv-primary-hover); }
body .blog-search input { font-size: 15px; padding: 8px 20px 8px 38px; border-color: var(--tv-border); color: var(--tv-fg); }
body .blog-search input::placeholder { color: var(--tv-muted); }
body .blog-search input:hover { border-color: var(--tv-fg); }
body .blog-search input:focus { border-color: var(--tv-primary); }
body .blog-search svg { left: 15px; width: 15px; height: 15px; color: var(--tv-muted); }
/* dark theme: a little more contrast for the controls and the post cards */
[data-theme="dark"] body .filter-pill:not([aria-pressed="true"]),
[data-theme="dark"] body .blog-search input { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }
[data-theme="dark"] body .post-card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
[data-theme="dark"] body .post-card:hover { border-color: rgba(255, 255, 255, 0.32); }

/* ============ 7 Closing call to action of Blog and Videos = homepage "A little more confidence. Start with Free."
   (#get-access): centred H2 with the wave fill, homepage lead, purple "Start free →" + outline button ============ */
.tv-cta { display: flex; flex-direction: column; align-items: center; text-align: center; }   /* spacing: the pages' own .cta-band rules, as before */
.tv-cta::before, .tv-cta::after { display: none; }
.tv-cta .eyebrow { margin-bottom: 22px; }
.tv-cta .tv-h2 {
  margin: 0 0 calc(30px - .16em); padding-bottom: .16em; max-width: 22ch;   /* 22ch: same line break as before */
  color: transparent; background: url("/assets/wave-label-full.svg") center / 100% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
[data-theme="dark"] .tv-cta .tv-h2 { background-image: url("/assets/wave-label-full-dark.svg"); }
.tv-cta .tv-body-lg { margin: 0 0 30px; max-width: 600px; }
.tv-cta__actions { display: flex; gap: 16px 20px; align-items: center; justify-content: center; flex-wrap: wrap; }
.tv-cta .tv-btn { text-decoration: none; }
.tv-cta .tv-btn--outline { padding: 0 28px; }
