/* ==========================================================================
   Shared base for all three themes.
   Themes define the --cx-* tokens (see "Token contract") and their own layout;
   everything here only reads tokens, so extracted content restyles per theme.
   ========================================================================== */

/* MARK: - Token contract (defaults; every theme overrides) */
:root {
  --cx-bg: #fafafa;
  --cx-surface: #ffffff;
  --cx-surface-2: #f4f4f5;
  --cx-fg: #0a0a0a;
  --cx-fg-2: #52525b;
  --cx-muted: #8f8f8f;
  --cx-line: #e8e8e8;
  --cx-line-2: #d9d9d9;
  --cx-accent: #6d4aff;
  --cx-accent-2: #0fb4d9;
  --cx-accent-fg: #ffffff;
  --cx-accent-soft: rgba(109, 74, 255, .08);
  --cx-ok: #16a34a;   --cx-ok-soft: rgba(22, 163, 74, .08);
  --cx-warn: #d97706; --cx-warn-soft: rgba(217, 119, 6, .08);
  --cx-bad: #dc2626;  --cx-bad-soft: rgba(220, 38, 38, .08);
  --cx-code-bg: #f4f4f5;
  --cx-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --cx-font-display: var(--cx-font);
  --cx-font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --cx-radius: 12px;
  --cx-radius-sm: 8px;
  --cx-maxw: 1180px;
  --cx-prose-w: 720px;
  --cx-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.12);
  --cx-header-h: 60px;

  /* MARK: - Legacy bridge: variable names used by inline styles and tool pages */
  --primary-50: var(--cx-surface-2); --primary-100: var(--cx-surface-2); --primary-200: var(--cx-line);
  --primary-300: var(--cx-line-2); --primary-400: var(--cx-muted); --primary-500: var(--cx-fg-2);
  --primary-600: var(--cx-fg-2); --primary-700: var(--cx-fg); --primary-800: var(--cx-fg); --primary-900: var(--cx-fg);
  --primary-color: var(--cx-fg); --primary-light: var(--cx-fg-2); --primary-dark: var(--cx-fg);
  --accent: var(--cx-accent); --accent-color: var(--cx-accent); --accent-light: var(--cx-accent); --accent-dark: var(--cx-accent);
  --text-dark: var(--cx-fg); --text-body: var(--cx-fg); --text-light: var(--cx-fg-2); --text-muted: var(--cx-muted);
  --bg-light: var(--cx-surface-2); --bg-lighter: var(--cx-surface); --bg-dark: var(--cx-fg); --white: var(--cx-surface);
  --border-color: var(--cx-line);
  --success: var(--cx-ok); --success-color: var(--cx-ok); --green: var(--cx-ok); --green-light: var(--cx-ok-soft);
  --warning: var(--cx-warn); --warning-color: var(--cx-warn); --error: var(--cx-bad);
  --gradient: linear-gradient(135deg, var(--cx-accent), var(--cx-accent-2));
  --gradient-subtle: var(--cx-surface-2);
  --gradient-accent: linear-gradient(135deg, var(--cx-accent), var(--cx-accent-2));
  --shadow-xs: var(--cx-shadow); --shadow-sm: var(--cx-shadow); --shadow-md: var(--cx-shadow);
  --shadow-lg: var(--cx-shadow); --shadow-xl: var(--cx-shadow); --shadow-2xl: var(--cx-shadow);
  --max-width: var(--cx-maxw); --sidebar-width: 260px;
  --spacing-xs: 4px; --spacing-sm: 8px; --spacing-md: 16px; --spacing-lg: 24px; --spacing-xl: 32px;
  --spacing-2xl: 48px; --spacing-3xl: 64px; --spacing-4xl: 80px; --spacing-5xl: 128px;
  --font-heading: var(--cx-font-display); --font-body: var(--cx-font);
  --font-size-xs: .75rem; --font-size-sm: .875rem; --font-size-base: 1rem; --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem; --font-size-2xl: 1.5rem; --font-size-3xl: 2rem; --font-size-4xl: 2.5rem; --font-size-5xl: 3.5rem;
  --line-height-tight: 1.1; --line-height-normal: 1.5; --line-height-relaxed: 1.7;
  --letter-spacing-tight: -0.02em; --letter-spacing-normal: 0; --letter-spacing-wide: 0.02em;
  --transition-fast: 200ms; --transition-base: 300ms; --transition-slow: 400ms;
  --ease-in-out: cubic-bezier(.4,0,.2,1); --ease-out: cubic-bezier(0,0,.2,1); --ease-in: cubic-bezier(.4,0,1,1);
}

/* MARK: - Reset & base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--cx-header-h) + 16px); }
body {
  background: var(--cx-bg); color: var(--cx-fg);
  font: 16px/1.6 var(--cx-font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cx-accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--cx-accent); color: var(--cx-accent-fg); }

.cx-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--cx-fg); color: var(--cx-bg); padding: 8px 14px; border-radius: 8px; }
.cx-skip:focus { left: 8px; }
.cx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cx-i { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; flex: none; fill: currentColor; }
.cx-wrap { max-width: var(--cx-maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .cx-wrap { padding: 0 16px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* MARK: - Prose (docs, legal, support, articles) */
.cx-prose { font-size: 16px; line-height: 1.7; color: var(--cx-fg-2); }
.cx-prose > * + * { margin-top: 1em; }
.cx-prose :is(h2, h3, h4) { color: var(--cx-fg); font-family: var(--cx-font-display); letter-spacing: -.015em; line-height: 1.25; scroll-margin-top: calc(var(--cx-header-h) + 24px); }
.cx-prose h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2.4em; padding-top: .2em; }
.cx-prose h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.9em; }
.cx-prose h4 { font-size: 1rem; font-weight: 600; margin-top: 1.4em; }
.cx-prose :is(h2, h3, h4) + * { margin-top: .6em; }
.cx-prose > :first-child, .cx-prose > :first-child > :first-child { margin-top: 0; }
.cx-prose p, .cx-prose li { color: var(--cx-fg-2); }
.cx-prose strong { color: var(--cx-fg); font-weight: 600; }
.cx-prose a:not([class]) , .cx-prose p a, .cx-prose li a, .cx-prose td a { color: var(--cx-accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--cx-accent) 35%, transparent); text-underline-offset: 3px; }
.cx-prose a:not([class]):hover, .cx-prose p a:hover, .cx-prose li a:hover { text-decoration-color: currentColor; }
.cx-prose :is(ul, ol) { padding-left: 1.3em; }
.cx-prose li + li { margin-top: .35em; }
.cx-prose li > :is(ul, ol) { margin-top: .35em; }
.cx-prose ul li::marker { color: var(--cx-muted); }
.cx-prose ol li::marker { color: var(--cx-muted); font-variant-numeric: tabular-nums; }
.cx-prose code { font-family: var(--cx-font-mono); font-size: .86em; background: var(--cx-code-bg); border: 1px solid var(--cx-line); padding: .12em .38em; border-radius: 5px; color: var(--cx-fg); }
.cx-prose pre { background: var(--cx-code-bg); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-sm); padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.cx-prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.cx-prose kbd { font-family: var(--cx-font-mono); font-size: .8em; min-width: 1.7em; display: inline-block; text-align: center; padding: .1em .45em; border: 1px solid var(--cx-line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--cx-surface); color: var(--cx-fg); }
.cx-prose hr { border: 0; border-top: 1px solid var(--cx-line); margin: 2.5em 0; }
.cx-prose blockquote { border-left: 2px solid var(--cx-accent); padding-left: 16px; color: var(--cx-fg); }
.cx-prose :is(img, figure img) { border-radius: var(--cx-radius-sm); border: 1px solid var(--cx-line); }
.cx-prose figure { margin: 1.8em 0; }
.cx-prose figcaption, .cx-prose .screenshot-caption { font-size: 13.5px; color: var(--cx-muted); margin-top: 10px; text-align: center; }
.cx-prose .screenshot { margin: 1.8em 0; }
.cx-prose .screenshot img { width: 100%; box-shadow: var(--cx-shadow); }

/* Tables */
.cx-prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cx-prose :is(th, td) { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--cx-line); vertical-align: top; }
.cx-prose th { color: var(--cx-fg); font-weight: 600; font-size: 13px; background: var(--cx-surface-2); }
.cx-prose .cx-table-scroll { overflow-x: auto; border: 1px solid var(--cx-line); border-radius: var(--cx-radius-sm); }
.cx-prose .cx-table-scroll table { margin: 0; }
.cx-prose .cx-table-scroll tr:last-child td { border-bottom: 0; }

/* Callouts & boxes (docs .callout-*, legal/support .info-box etc.) */
.cx-prose :is(.callout, .info-box, .warning-box, .success-box, .note-box, .gatekeeper-tip, .highlight, .highlight-warning, .guarantee-box, .privacy-badge) {
  border: 1px solid var(--cx-line); border-left: 3px solid var(--cx-accent); background: var(--cx-accent-soft);
  border-radius: var(--cx-radius-sm); padding: 14px 18px; color: var(--cx-fg-2); margin: 1.4em 0;
}
.cx-prose :is(.callout-tip, .success-box, .guarantee-box, .privacy-badge) { border-left-color: var(--cx-ok); background: var(--cx-ok-soft); }
.cx-prose :is(.callout-warning, .warning-box, .highlight-warning) { border-left-color: var(--cx-warn); background: var(--cx-warn-soft); }
.cx-prose .callout-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--cx-fg); margin-bottom: 4px; font-size: 15px; }
.cx-prose .callout-tip .callout-title .cx-i { color: var(--cx-ok); }
.cx-prose .callout-warning .callout-title .cx-i { color: var(--cx-warn); }
.cx-prose .callout-note .callout-title .cx-i { color: var(--cx-accent); }
.cx-prose :is(.callout, .info-box, .warning-box, .success-box, .note-box) > * + * { margin-top: .5em; }
.cx-prose :is(.callout-content, .info-box, .warning-box) :is(ul, ol) { margin-top: .4em; }

/* Numbered steps: docs .steps/.step-item and legal .step/.step-number */
.cx-prose .steps { counter-reset: cxstep; display: grid; gap: 0; margin: 1.4em 0; }
.cx-prose .step-item { counter-increment: cxstep; position: relative; padding: 0 0 22px 48px; }
.cx-prose .step-item::before { content: counter(cxstep); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--cx-font-mono); color: var(--cx-fg); background: var(--cx-surface); border: 1px solid var(--cx-line-2); }
.cx-prose .step-item:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; border-left: 1px solid var(--cx-line); }
.cx-prose .step-content > * + * { margin-top: .4em; }
.cx-prose .step-content h4 { margin-top: 2px; }
.cx-prose .step { display: grid; grid-template-columns: 28px 1fr; gap: 16px; margin: 1em 0; }
.cx-prose .step-number { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--cx-font-mono); color: var(--cx-fg); border: 1px solid var(--cx-line-2); background: var(--cx-surface); }
.cx-prose .steps-list { display: grid; gap: 4px; }

/* Card grids: docs quick links / feature cards / tabsight .card / support requirements */
.cx-prose :is(.quick-links, .feature-cards, .requirement-grid, .cards, .card-grid) { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 1.4em 0; }
.cx-prose :is(.quick-link, .feature-card, .requirement-item, .card, .setting-item, .issue-section, .method-card, .related-product-card, .faq-item, .contact-box, .contact-section, .system-requirements) {
  display: block; border: 1px solid var(--cx-line); border-radius: var(--cx-radius); background: var(--cx-surface); padding: 18px; color: var(--cx-fg-2); text-decoration: none;
}
.cx-prose :is(.quick-link, .card) { transition: border-color .2s, transform .2s, box-shadow .2s; }
.cx-prose :is(.quick-link, .card):hover { border-color: var(--cx-line-2); transform: translateY(-1px); box-shadow: var(--cx-shadow); }
.cx-prose .quick-link { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--cx-fg); padding: 14px 16px; }
.cx-prose :is(.quick-link-icon, .feature-card-icon, .card-icon) { font-size: 20px; line-height: 1; color: var(--cx-accent); }
.cx-prose .feature-card-icon, .cx-prose .card-icon { margin-bottom: 10px; font-size: 22px; }
.cx-prose .feature-card h4, .cx-prose .card-title { margin: 0 0 4px; color: var(--cx-fg); font-weight: 600; font-size: 15px; }
.cx-prose .feature-card p, .cx-prose .card-description { font-size: 14px; line-height: 1.55; margin: 0; }
.cx-prose .requirement-item strong { display: block; font-size: 13px; color: var(--cx-muted); font-weight: 500; margin-bottom: 4px; }
.cx-prose .requirement-item p { color: var(--cx-fg); margin: 0; font-size: 14.5px; }
.cx-prose :is(.setting-item, .issue-section, .method-card, .faq-item, .system-requirements) { margin: 1em 0; padding: 20px 22px; }
.cx-prose :is(.setting-item, .issue-section, .method-card, .faq-item) > :first-child { margin-top: 0; }
.cx-prose :is(.setting-item, .issue-section, .method-card, .faq-item) > * + * { margin-top: .6em; }
.cx-prose :is(.issue-section, .method-card) h2 { font-size: 1.2rem; margin-top: 0; }
.cx-prose .faq-item h3 { font-size: 1.05rem; margin-top: 0; }
.cx-prose :is(.contact-box, .contact-section) { background: var(--cx-surface-2); margin: 2em 0; padding: 24px; }
.cx-prose :is(.contact-box, .contact-section) a { color: var(--cx-accent) !important; }
.cx-prose :is(.contact-box, .contact-section) h2 { margin-top: .2em; }
.cx-prose .check-item { display: flex; gap: 10px; margin: .5em 0; }
.cx-prose .check-item::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--cx-ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.cx-prose .checklist { list-style: none; padding-left: 0; }

/* Badges & tags */
.cx-prose :is(.badge-pro, .method-badge, .article-tag) { display: inline-block; font: 600 11px/1 var(--cx-font-mono); letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--cx-accent-soft); color: var(--cx-accent); vertical-align: middle; }
.cx-prose .method-badge.advanced { background: var(--cx-bad-soft); color: var(--cx-bad); }
.cx-prose .method-badge.intermediate { background: var(--cx-warn-soft); color: var(--cx-warn); }
.cx-prose .method-badge.beginner { background: var(--cx-ok-soft); color: var(--cx-ok); }
.cx-prose .article-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-prose .article-footer { border-top: 1px solid var(--cx-line); margin-top: 3em; padding-top: 1.5em; display: grid; gap: 1.2em; }
.cx-prose .related-products h3 { margin-top: 0; }
.cx-prose .related-product-link, .cx-prose .related-link { display: inline-flex; align-items: center; gap: 6px; color: var(--cx-accent); font-weight: 500; margin-top: .5em; }
.cx-prose :is(.article-cta, .cta-secondary, .chrome-store-btn, .action-btn, .submit-btn) {
  display: inline-flex; align-items: center; gap: 8px; background: var(--cx-fg); color: var(--cx-bg); border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 500; font-size: 15px; cursor: pointer; text-decoration: none;
}
.cx-prose .article-cta { display: block; border-radius: var(--cx-radius); padding: 24px; background: var(--cx-surface-2); color: var(--cx-fg-2); border: 1px solid var(--cx-line); }
.cx-prose .article-cta a { color: var(--cx-accent); }

/* Support forms (Formspree scripts carried over from the current pages) */
.cx-prose .support-form { border: 1px solid var(--cx-line); border-radius: var(--cx-radius); background: var(--cx-surface); padding: 24px; margin: 1.6em 0 2.4em; }
.cx-prose .support-form h2 { margin-top: 0; font-size: 1.2rem; }
.cx-prose .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .cx-prose .form-row { grid-template-columns: 1fr; } }
.cx-prose .form-group { display: grid; gap: 6px; margin-top: 14px; align-content: start; }
.cx-prose .form-group label { font-size: 13.5px; font-weight: 500; color: var(--cx-fg); }
.cx-prose .form-group small { font-size: 12.5px; color: var(--cx-muted); }
.cx-prose :is(input[type=email], input[type=text], select, textarea) { width: 100%; border: 1px solid var(--cx-line-2); background: var(--cx-bg); border-radius: var(--cx-radius-sm); padding: 10px 12px; font-size: 15px; color: var(--cx-fg); }
.cx-prose textarea { min-height: 130px; resize: vertical; }
.cx-prose :is(input, select, textarea):focus { outline: none; border-color: var(--cx-accent); box-shadow: 0 0 0 3px var(--cx-accent-soft); }
.cx-prose .submit-btn { margin-top: 18px; background: var(--cx-accent); color: var(--cx-accent-fg); }
.cx-prose .form-message { margin-top: 12px; font-size: 14px; }
.cx-prose .form-message.success { color: var(--cx-ok); }
.cx-prose .form-message.error { color: var(--cx-bad); }

/* Legacy wrappers that should not add layout of their own inside prose */
.cx-prose :is(.container, .article-wrapper, .article-container, .article-body, .article-content, .docs-content) { max-width: none; padding: 0; margin-left: 0; margin-right: 0; }
.cx-prose :is(.container, .article-wrapper, .article-body, .article-content) > * + * { margin-top: 1em; }
.cx-prose section + section { margin-top: 2.4em; }

/* MARK: - Page header for prose pages */
.cx-pagehead { padding: 72px 0 36px; }
.cx-pagehead .cx-eyebrow { font: 500 12px/1 var(--cx-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cx-muted); margin-bottom: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.cx-pagehead h1 { font-family: var(--cx-font-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -.03em; max-width: 820px; }
.cx-pagehead p { margin-top: 16px; color: var(--cx-fg-2); font-size: 18px; max-width: 640px; }
.cx-pagehead .cx-updated { margin-top: 12px; font-size: 14px; color: var(--cx-muted); }

/* MARK: - Docs layout */
.cx-docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 40px 0 96px; align-items: start; }
.cx-docs-side { position: sticky; top: calc(var(--cx-header-h) + 24px); max-height: calc(100vh - var(--cx-header-h) - 48px); overflow-y: auto; font-size: 14px; padding-right: 8px; }
.cx-docs-side h6 { font: 500 11.5px/1 var(--cx-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cx-muted); margin: 24px 0 8px; }
.cx-docs-side h6:first-of-type { margin-top: 0; }
.cx-docs-side a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 6px; color: var(--cx-fg-2); }
.cx-docs-side a:hover { color: var(--cx-fg); background: var(--cx-surface-2); }
.cx-docs-side a[aria-current] { color: var(--cx-fg); background: var(--cx-surface-2); font-weight: 500; }
.cx-docs-side .cx-docs-product { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--cx-fg); margin: 0 0 20px -10px; }
.cx-docs-main { max-width: var(--cx-prose-w); min-width: 0; }
.cx-docs-main .cx-crumbs { font-size: 13.5px; color: var(--cx-muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cx-docs-main .cx-crumbs a:hover { color: var(--cx-fg); }
.cx-docs-main h1 { font-family: var(--cx-font-display); font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.cx-docs-main .cx-sub { color: var(--cx-fg-2); font-size: 18px; margin: 12px 0 36px; }
.cx-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 64px; }
.cx-pager a { border: 1px solid var(--cx-line); border-radius: var(--cx-radius); padding: 14px 16px; display: grid; gap: 2px; transition: border-color .2s; }
.cx-pager a:hover { border-color: var(--cx-line-2); }
.cx-pager small { font-size: 12.5px; color: var(--cx-muted); }
.cx-pager b { font-weight: 500; color: var(--cx-fg); }
.cx-pager .next { text-align: right; grid-column: 2; }
.cx-docs-toggle { display: none; }
@media (max-width: 900px) {
  .cx-docs { grid-template-columns: 1fr; gap: 0; padding-top: 16px; }
  .cx-docs-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 1px solid var(--cx-line); background: var(--cx-surface); border-radius: var(--cx-radius-sm); padding: 10px 14px; font-size: 14px; font-weight: 500; cursor: pointer; margin-bottom: 20px; }
  .cx-docs-side { position: static; max-height: none; display: none; border: 1px solid var(--cx-line); border-radius: var(--cx-radius); padding: 16px 18px; margin-bottom: 28px; background: var(--cx-surface); }
  .cx-docs-side.is-open { display: block; }
  .cx-docs-side a { margin-left: 0; }
}

/* MARK: - Article layout */
.cx-article { max-width: var(--cx-prose-w); margin: 0 auto; padding: 64px 0 96px; }
.cx-article .cx-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--cx-muted); margin-top: 18px; }
.cx-article h1 { font-family: var(--cx-font-display); font-size: clamp(32px, 4.6vw, 50px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
.cx-article .cx-back { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--cx-muted); margin-bottom: 28px; }
.cx-article .cx-back:hover { color: var(--cx-fg); }
.cx-article .cx-prose { margin-top: 44px; font-size: 17px; }

/* MARK: - Legacy tool pages: their own CSS is scoped to .cx-legacy */
.cx-legacy { color: var(--cx-fg); }
.cx-legacy .container { max-width: var(--cx-maxw); margin: 0 auto; padding: 0 24px; }
.cx-legacy :is(h1, h2, h3) { font-family: var(--cx-font-display); letter-spacing: -.02em; }
.cx-legacy .btn, .cx-legacy .btn-primary, .cx-legacy .tool-btn { cursor: pointer; }

/* MARK: - Newsletter (footer) */
.cx-news { display: flex; gap: 8px; margin-top: 12px; max-width: 360px; }
.cx-news input { flex: 1; min-width: 0; border: 1px solid var(--cx-line-2); background: var(--cx-surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.cx-news button { border: 0; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; background: var(--cx-fg); color: var(--cx-bg); cursor: pointer; white-space: nowrap; }
.cx-news-msg { font-size: 13px; margin-top: 8px; min-height: 1em; color: var(--cx-muted); }
.cx-news-msg.ok { color: var(--cx-ok); }
.cx-news-msg.err { color: var(--cx-bad); }

/* MARK: - FAQ (details/summary, works without JS) */
.cx-faq details { border-bottom: 1px solid var(--cx-line); }
.cx-faq details:first-child { border-top: 1px solid var(--cx-line); }
.cx-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 500; color: var(--cx-fg); }
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq-i { color: var(--cx-muted); transition: transform .2s; font-size: 18px; }
.cx-faq details[open] .cx-faq-i { transform: rotate(45deg); }
.cx-faq-a { padding: 0 0 20px; color: var(--cx-fg-2); max-width: 70ch; line-height: 1.65; }
.cx-faq-a a { color: var(--cx-accent); text-decoration: underline; text-underline-offset: 3px; }

/* MARK: - App tiles */
.cx-tile { width: 40px; height: 40px; border-radius: 22.5%; object-fit: cover; flex: none; }
.cx-mono-tile { display: grid; place-items: center; background: var(--tile); color: #fff; font-weight: 600; font-size: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -8px 16px rgba(0,0,0,.12); }

/* MARK: - Refinements */
.cx-prose .system-requirements { border: 0; padding: 0; background: none; }
.cx-prose :is(input[type=email], input[type=text], select) { height: 42px; padding-top: 0; padding-bottom: 0; }

.cx-prose .guarantee-box .icon { display: none; }

/* ==========================================================================
   Grid — light, hairline frame with + marks, Geist. Vercel/Retool lineage.
   ========================================================================== */

/* MARK: - Tokens */
:root {
  --cx-bg: #fafafa;
  --cx-surface: #ffffff;
  --cx-surface-2: #f3f3f3;
  --cx-fg: #0a0a0a;
  --cx-fg-2: #4d4d4d;
  --cx-muted: #8f8f8f;
  --cx-line: #ebebeb;
  --cx-line-2: #dcdcdc;
  --cx-accent: #6d4aff;
  --cx-accent-2: #0fb4d9;
  --cx-accent-soft: rgba(109, 74, 255, .07);
  --cx-code-bg: #f3f3f3;
  --cx-font: "Geist", system-ui, -apple-system, sans-serif;
  --cx-font-display: "Geist", system-ui, -apple-system, sans-serif;
  --cx-font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --cx-radius: 12px;
  --cx-radius-sm: 8px;
  --cx-maxw: 1180px;
  --cx-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -16px rgba(0,0,0,.18);
  --cx-header-h: 60px;
  --g-pad: 40px;
}
@media (max-width: 900px) { :root { --g-pad: 24px; } }
@media (max-width: 640px) { :root { --g-pad: 16px; } }

body.g { font-size: 15.5px; }
.g-mono { font: 500 12px/1.2 var(--cx-font-mono); letter-spacing: .02em; text-transform: uppercase; color: var(--cx-muted); }
.g-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--cx-line-2); display: inline-block; }
.g-link { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--cx-fg); }
.g-link .cx-i { transition: transform .2s; }
.g-link:hover .cx-i { transform: translateX(3px); }

/* MARK: - Buttons */
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; border: 1px solid transparent; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s; }
.g-btn .cx-i { font-size: 17px; }
.g-btn-dark { background: var(--cx-fg); color: #fff; }
.g-btn-dark:hover { background: #2a2a2a; }
.g-btn-light { background: var(--cx-surface); color: var(--cx-fg); border-color: var(--cx-line-2); }
.g-btn-light:hover { border-color: #bdbdbd; }
.g-btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.g-btn-sm .cx-i { font-size: 15px; margin-top: -2px; }

/* MARK: - Frame, rows and + marks */
.g-frame { max-width: var(--cx-maxw); margin: 0 auto; border-left: 1px solid var(--cx-line); border-right: 1px solid var(--cx-line); }
.g-row { position: relative; border-bottom: 1px solid var(--cx-line); }
.g-plus { position: absolute; width: 13px; height: 13px; z-index: 2; pointer-events: none; }
.g-plus::before, .g-plus::after { content: ""; position: absolute; background: #b9b9b9; }
.g-plus::before { left: 6px; top: 0; width: 1px; height: 13px; }
.g-plus::after { top: 6px; left: 0; width: 13px; height: 1px; }
.g-plus-bl { left: -7px; bottom: -7px; }
.g-plus-br { right: -7px; bottom: -7px; }
@media (max-width: 1220px) { .g-plus { display: none; } .g-frame { border-left: 0; border-right: 0; } }

/* MARK: - Header */
.g-header { position: sticky; top: 0; z-index: 50; background: rgba(250,250,250,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--cx-line); }
.g-header-in { max-width: var(--cx-maxw); margin: 0 auto; height: var(--cx-header-h); display: flex; align-items: center; gap: 32px; padding: 0 20px; border-left: 1px solid var(--cx-line); border-right: 1px solid var(--cx-line); }
@media (max-width: 1220px) { .g-header-in { border: 0; } }
.g-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; color: var(--cx-fg); }
.g-logo img { width: 22px; height: 22px; border-radius: 6px; }
.g-nav { display: flex; gap: 4px; font-size: 14px; }
.g-nav a { color: var(--cx-fg-2); padding: 6px 10px; border-radius: 999px; transition: color .15s, background .15s; }
.g-nav a:hover { color: var(--cx-fg); background: rgba(0,0,0,.04); }
.g-nav a[aria-current] { color: var(--cx-fg); }
.g-header-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.g-menu { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--cx-line-2); background: var(--cx-surface); cursor: pointer; place-items: center; font-size: 18px; }
.g-menu .cx-i + .cx-i, .cx-menu-open .g-menu .cx-i:first-child { display: none; }
.cx-menu-open .g-menu .cx-i + .cx-i { display: block; }
.g-mnav { display: none; }
@media (max-width: 860px) {
  .g-nav { display: none; }
  .g-menu { display: grid; }
  .g-header-r .g-btn { display: none; }
  .g-mnav { display: grid; position: fixed; inset: var(--cx-header-h) 0 auto; background: var(--cx-bg); border-bottom: 1px solid var(--cx-line); padding: 8px 16px 20px; gap: 2px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; }
  .g-mnav a { padding: 12px 4px; border-bottom: 1px solid var(--cx-line); font-size: 17px; }
  .g-mnav .g-btn { margin-top: 14px; border: 0; }
  .cx-menu-open .g-mnav { transform: none; opacity: 1; visibility: visible; }
}

/* Product sub-navigation */
.g-sub { border-bottom: 1px solid var(--cx-line); background: var(--cx-bg); position: sticky; top: var(--cx-header-h); z-index: 40; }
.g-sub-in { max-width: var(--cx-maxw); margin: 0 auto; display: flex; align-items: center; gap: 24px; height: 48px; padding: 0 20px; border-left: 1px solid var(--cx-line); border-right: 1px solid var(--cx-line); overflow-x: auto; scrollbar-width: none; }
.g-sub-in::-webkit-scrollbar { display: none; }
@media (max-width: 1220px) { .g-sub-in { border: 0; } }
.g-sub-name { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.g-sub-tile { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
.g-sub nav { display: flex; gap: 2px; font-size: 13.5px; }
.g-sub nav a { padding: 5px 10px; border-radius: 999px; color: var(--cx-fg-2); white-space: nowrap; }
.g-sub nav a:hover { color: var(--cx-fg); background: rgba(0,0,0,.04); }
.g-sub nav a[aria-current] { color: var(--cx-fg); background: rgba(0,0,0,.06); }
.has-sub { --cx-header-h: 108px; }
.has-sub .g-header { --cx-header-h: 60px; }
.has-sub .g-sub { top: 60px; }

/* MARK: - Typography blocks */
.g-eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.g-eyebrow .cx-tile { width: 28px; height: 28px; font-size: 13px; border-radius: 7px; }
.g h1 { font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
.g-lead { margin-top: 22px; font-size: 19px; line-height: 1.5; color: var(--cx-fg-2); max-width: 560px; }
.g-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.g-fine { margin-top: 18px; font-size: 13.5px; color: var(--cx-muted); max-width: 640px; }
.g-sect-h h2, .g-morehead h2, .g-end h2 { font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.035em; line-height: 1.08; color: var(--cx-fg); }
.g-sect-h h2 span, .g-morehead h2 span, .g-end h2 span { color: var(--cx-muted); }
.g-sect-h .g-mono { display: block; margin-bottom: 14px; }
.g-sect-h p { margin-top: 14px; color: var(--cx-fg-2); font-size: 16.5px; max-width: 460px; }

/* MARK: - Home: hero */
.g-hero { display: grid; grid-template-columns: 1.35fr .65fr; }
.g-hero-t { padding: 96px var(--g-pad) 64px; }
.g-hero h1 { font-size: clamp(46px, 6.6vw, 84px); }
.g-hero-side { border-left: 1px solid var(--cx-line); padding: 64px 32px; display: flex; flex-direction: column; justify-content: flex-end; }
.g-hero-side .g-mono { margin-bottom: 10px; }
.g-hero-side a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--cx-line); color: var(--cx-fg-2); font-size: 15px; transition: color .15s, padding .2s; }
.g-hero-side a:hover { color: var(--cx-fg); padding-left: 4px; }
@media (max-width: 900px) {
  .g-hero { grid-template-columns: 1fr; }
  .g-hero-t { padding: 64px var(--g-pad) 40px; }
  .g-hero-side { border-left: 0; border-top: 1px solid var(--cx-line); padding: 24px var(--g-pad) 32px; }
}

/* Tour of the real app */
.g-show { padding: 56px var(--g-pad) 0; overflow: hidden; }
.g-tour-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.g-tour-head h2 { font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.035em; line-height: 1.08; margin-top: 14px; }
.g-tour-head h2 span { color: var(--cx-muted); }
.g-tabs { display: none; gap: 4px; padding: 4px; border: 1px solid var(--cx-line-2); border-radius: 999px; background: var(--cx-surface); }
.cx-js .g-tabs { display: inline-flex; }
.g-tabs button { border: 0; background: none; font: 500 14px var(--cx-font); color: var(--cx-fg-2); padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.g-tabs button:hover { color: var(--cx-fg); }
.g-tabs button[aria-selected="true"] { background: var(--cx-fg); color: #fff; }
.g-stage { margin-top: 32px; }
.g-slide[hidden] { display: none; }
.g-slide.is-on { animation: g-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes g-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.g-shotwrap { position: relative; border: 1px solid var(--cx-line); border-bottom: 0; border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: 0 -24px 60px -36px rgba(0,0,0,.35); background: #fff; }
.g-shotwrap img { width: 100%; display: block; }
.g-hot { position: absolute; border: 2px solid var(--cx-accent); border-radius: 10px; box-shadow: 0 0 0 4000px rgba(10,10,10,.14), 0 0 0 6px rgba(109,74,255,.18); pointer-events: none; opacity: 0; transition: opacity .6s .35s; }
.g-slide.is-on .g-hot, .g-slide:not([hidden]) .g-hot { opacity: 1; }
.g-slide figcaption { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 4px 28px; border-top: 1px solid var(--cx-line); }
.g-slide figcaption b { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.g-slide figcaption span { color: var(--cx-fg-2); font-size: 15px; max-width: 640px; }
.g-shotin { position: relative; }
@media (max-width: 760px) {
  .g-shotwrap { aspect-ratio: 4 / 3; border-radius: 12px; border-bottom: 1px solid var(--cx-line); }
  .g-shotin { position: absolute; left: 0; top: 0; width: var(--z); transform: translate(var(--tx), var(--ty)); }
  .g-show { padding-top: 40px; }
  .g-tabs { width: 100%; justify-content: space-between; }
  .g-tabs button { flex: 1; padding: 7px 8px; }
  .g-slide figcaption { grid-template-columns: 1fr; gap: 6px; }
  .g-hot { border-width: 1.5px; border-radius: 6px; }
}
@media (prefers-reduced-motion: reduce) { .g-slide.is-on { animation: none; } }

/* Pillars */
.g-pillars { display: grid; grid-template-columns: repeat(4, 1fr); }
.g-pillar { padding: 32px 26px 36px; border-right: 1px solid var(--cx-line); }
.g-pillar:last-child { border-right: 0; }
.g-pillar-i { display: block; font-size: 22px; margin: 28px 0 14px; color: var(--cx-fg); }
.g-pillar h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.g-pillar p { font-size: 14.5px; color: var(--cx-fg-2); line-height: 1.55; }
@media (max-width: 900px) { .g-pillars { grid-template-columns: 1fr 1fr; } .g-pillar:nth-child(2) { border-right: 0; } .g-pillar:nth-child(-n+2) { border-bottom: 1px solid var(--cx-line); } }
@media (max-width: 560px) { .g-pillars { grid-template-columns: 1fr; } .g-pillar { border-right: 0; border-bottom: 1px solid var(--cx-line); } .g-pillar:last-child { border-bottom: 0; } }

/* Details grid */
.g-details-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.g-detail { display: flex; gap: 16px; padding: 28px 26px; border-right: 1px solid var(--cx-line); border-bottom: 1px solid var(--cx-line); }
.g-detail:nth-child(3n) { border-right: 0; }
.g-detail:nth-last-child(-n+3) { border-bottom: 0; }
.g-detail-i { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--cx-line); display: grid; place-items: center; font-size: 18px; flex: none; background: var(--cx-surface); }
.g-detail h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.g-detail p { font-size: 14px; color: var(--cx-fg-2); line-height: 1.55; }
@media (max-width: 900px) { .g-details-grid { grid-template-columns: 1fr 1fr; } .g-detail:nth-child(n) { border-right: 1px solid var(--cx-line); border-bottom: 1px solid var(--cx-line); } .g-detail:nth-child(2n) { border-right: 0; } .g-detail:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 560px) { .g-details-grid { grid-template-columns: 1fr; } .g-detail:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--cx-line); } .g-detail:last-child { border-bottom: 0; } }

/* Extensions */
.g-ext { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.g-ext-t { padding: 64px var(--g-pad); }
.g-ext-t h2 { font-weight: 600; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; line-height: 1.1; margin-top: 14px; }
.g-ext-t p { margin-top: 14px; color: var(--cx-fg-2); max-width: 460px; }
.g-ext-shot { align-self: stretch; border-left: 1px solid var(--cx-line); background: var(--cx-surface-2); display: grid; place-items: center; padding: 40px; }
.g-ext-shot img { border-radius: 12px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.28); border: 1px solid var(--cx-line); width: 302px; }
@media (max-width: 900px) { .g-ext { grid-template-columns: 1fr; } .g-ext-shot { border-left: 0; border-top: 1px solid var(--cx-line); padding: 24px; } }

/* FAQ row */
.g-faqrow { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; padding: 72px var(--g-pad); }
@media (max-width: 900px) { .g-faqrow { grid-template-columns: 1fr; gap: 28px; } }

/* More from Corixa gallery */
.g-morehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 72px var(--g-pad) 32px; }
@media (max-width: 640px) { .g-morehead { flex-direction: column; align-items: flex-start; } }
.g-galrow2 { padding: 0 0 56px; overflow: hidden; }
.g-gal { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.g-track { display: flex; gap: 16px; width: max-content; animation: g-marquee 60s linear infinite; padding: 4px 0 8px; }
.g-track-dup { display: contents; }
.g-gal:hover .g-track, .g-gal:focus-within .g-track { animation-play-state: paused; }
@keyframes g-marquee { to { transform: translateX(calc(-50% - 8px)); } }
.g-tile { width: 360px; border: 1px solid var(--cx-line-2); border-radius: 14px; background: var(--cx-surface); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.g-tile:hover { transform: translateY(-3px); box-shadow: var(--cx-shadow); }
.g-tile-img { display: block; height: 210px; background: var(--cx-surface-2); border-bottom: 1px solid var(--cx-line); overflow: hidden; }
.g-tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.g-tile-c { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.g-tile-c .cx-tile { width: 32px; height: 32px; font-size: 14px; }
.g-tile-c b { display: block; font-weight: 600; font-size: 14.5px; }
.g-tile-c small { color: var(--cx-muted); font-size: 13px; }
.g-tile-meta { white-space: nowrap; margin-left: auto; font: 500 11px var(--cx-font-mono); color: var(--cx-muted); text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .g-gal { overflow-x: auto; mask-image: none; -webkit-mask-image: none; } .g-track-dup { display: none; } }

/* Closing CTA */
.g-end { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 72px var(--g-pad); border-bottom: 0; }
.g-end .g-ctas { margin-top: 0; }
@media (max-width: 760px) { .g-end { flex-direction: column; align-items: flex-start; } }

/* MARK: - Product pages */
.g-phero-t { padding: 88px var(--g-pad) 56px; max-width: 900px; }
.g-phero h1 { font-size: clamp(38px, 5.4vw, 68px); }
.g-phero-prose .g-phero-t { padding-bottom: 40px; }
.g-phero-prose h1 { font-size: clamp(34px, 4.6vw, 56px); }
.g-shot { padding: 0 28px 0; overflow: hidden; }
.g-shot figure { margin: 0 auto; }
.g-shot img { width: 100%; border: 1px solid var(--cx-line); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -24px 60px -36px rgba(0,0,0,.35); }
.g-shot figcaption { display: none; }
.cx-p-tabsight .g-shot, .cx-p-votnin .g-shot { background: var(--cx-surface-2); padding-top: 40px; }
.cx-p-tabsight .g-shot img, .cx-p-votnin .g-shot img { width: auto; max-height: 560px; margin: 0 auto; border-radius: 14px 14px 0 0; }
.cx-p-votnin .g-shots { grid-template-columns: repeat(3, 1fr); }
.cx-p-votnin .g-shots figure img { max-height: 620px; width: auto; margin: 0 auto; border: 0; background: none; }
@media (max-width: 760px) { .cx-p-votnin .g-shots { grid-template-columns: 1fr; } }
.g-hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g-hl-c { padding: 30px 26px 34px; border-right: 1px solid var(--cx-line); border-bottom: 1px solid var(--cx-line); margin: 0 -1px -1px 0; }
.g-hl-i { display: block; font-size: 22px; margin: 22px 0 12px; }
.g-hl-c h3, .g-hl-c h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.g-hl-c p { font-size: 14.5px; color: var(--cx-fg-2); line-height: 1.55; }
.g-hl { overflow: hidden; }
.g-tool { transition: background .2s; }
.g-tool:hover { background: var(--cx-surface); }
.g-tool .g-link { margin-top: 18px; }
.g-sect { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; padding: 64px var(--g-pad); }
@media (max-width: 900px) { .g-sect { grid-template-columns: 1fr; gap: 24px; padding: 48px var(--g-pad); } }
.g-sect-b > * + * { margin-top: 20px; }
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.g-card { border: 1px solid var(--cx-line); border-radius: var(--cx-radius); background: var(--cx-surface); padding: 20px; }
.g-card-i { font-size: 20px; display: block; margin-bottom: 12px; }
.g-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.g-card p { font-size: 14px; color: var(--cx-fg-2); line-height: 1.55; }
.g-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.g-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--cx-fg-2); font-size: 15px; }
.g-list li .cx-i { color: var(--cx-fg); margin-top: 4px; font-size: 15px; }
.g-galrow { padding: 64px var(--g-pad); }
.g-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.g-shots figure img { width: 100%; border: 1px solid var(--cx-line); border-radius: 12px; background: var(--cx-surface-2); }
.g-shots figcaption { margin-top: 12px; font-size: 14px; color: var(--cx-fg-2); }
.g-shots figcaption b { display: block; color: var(--cx-fg); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 760px) { .g-shots { grid-template-columns: 1fr; } }
.g-pricerow, .g-notes { padding: 56px var(--g-pad); }
.g-pricerow .g-sect-h { margin-bottom: 32px; }
.g-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.g-tier { border: 1px solid var(--cx-line); border-radius: 16px; background: var(--cx-surface); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.g-tier.is-hl { border-color: var(--cx-fg); box-shadow: var(--cx-shadow); }
.g-price { font-size: 36px; font-weight: 600; letter-spacing: -.04em; }
.g-price small { font-size: 14px; color: var(--cx-muted); font-weight: 400; letter-spacing: 0; }
.g-tier-b { color: var(--cx-fg-2); font-size: 14.5px; }
.g-tier .g-list { flex: 1; align-content: start; }
.g-tier .g-btn { align-self: flex-start; }

/* All apps */
.g-feat { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; transition: background .2s; }
.g-feat:hover { background: var(--cx-surface); }
.g-feat-t { padding: 48px var(--g-pad); display: flex; flex-direction: column; gap: 10px; }
.g-feat-t b { font-size: 32px; letter-spacing: -.035em; font-weight: 600; }
.g-feat-t > span { color: var(--cx-fg-2); font-size: 17px; max-width: 420px; }
.g-feat-t em { font-style: normal; margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.g-feat-img { border-left: 1px solid var(--cx-line); overflow: hidden; padding: 32px 0 0 32px; background: var(--cx-surface-2); }
.g-feat-img img { border-radius: 12px 0 0 0; border: 1px solid var(--cx-line); border-right: 0; border-bottom: 0; width: 100%; }
@media (max-width: 860px) { .g-feat { grid-template-columns: 1fr; } .g-feat-img { border-left: 0; border-top: 1px solid var(--cx-line); } }
.g-apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.g-app { display: flex; flex-direction: column; border-right: 1px solid var(--cx-line); border-bottom: 1px solid var(--cx-line); transition: background .2s; }
.g-app:nth-child(3n) { border-right: 0; }
.g-app:nth-last-child(-n+3) { border-bottom: 0; }
.g-app:hover { background: var(--cx-surface); }
.g-app-img { height: 200px; overflow: hidden; background: var(--cx-surface-2); border-bottom: 1px solid var(--cx-line); padding: 20px 20px 0; }
.g-app-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 8px 8px 0 0; }
.g-app-c { display: flex; gap: 12px; padding: 18px 20px 6px; align-items: flex-start; }
.g-app-c .cx-tile { width: 34px; height: 34px; font-size: 15px; }
.g-app-c b { display: block; font-weight: 600; }
.g-app-c small { display: block; color: var(--cx-fg-2); font-size: 14px; line-height: 1.5; margin-top: 2px; }
.g-app-m { display: flex; flex-direction: column; gap: 4px; padding: 10px 20px 20px 66px; margin-top: auto; }
@media (max-width: 900px) { .g-apps-grid { grid-template-columns: 1fr 1fr; } .g-app:nth-child(n) { border-right: 1px solid var(--cx-line); border-bottom: 1px solid var(--cx-line); } .g-app:nth-child(2n) { border-right: 0; } }
@media (max-width: 600px) { .g-apps-grid { grid-template-columns: 1fr; } .g-app:nth-child(n) { border-right: 0; } }

/* Blog */
.g-post-list { list-style: none; padding: 0; }
.g-post-list li + li { border-top: 1px solid var(--cx-line); }
.g-post-list a { display: grid; grid-template-columns: 140px 1fr 180px; gap: 32px; padding: 28px var(--g-pad); transition: background .2s; }
.g-post-list a:hover { background: var(--cx-surface); }
.g-post-t b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.g-post-t small { display: block; margin-top: 8px; color: var(--cx-fg-2); font-size: 15px; line-height: 1.55; }
.g-post-d { padding-top: 4px; }
.g-post-c { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; padding-top: 4px; }
@media (max-width: 760px) { .g-post-list a { grid-template-columns: 1fr; gap: 10px; } .g-post-c { flex-direction: row; align-items: center; } }

/* Docs / articles / prose inside the frame */
.g-docrow { padding: 0 var(--g-pad); }
.g-doc-tile { width: 24px; height: 24px; font-size: 12px; border-radius: 6px; }
.g-artrow { padding: 0 var(--g-pad); }
.g-artrow .g-eyebrow { margin-bottom: 18px; }
.g-proserow { padding: 48px var(--g-pad) 96px; }
.g-prose { max-width: var(--cx-prose-w); }
.g-toolrow { padding: 0 0 48px; }

/* Legacy tool pages: tone the old hero down to the grid's look */
.cx-legacy .hero { background: none !important; padding: 72px var(--g-pad) 32px !important; text-align: left; min-height: 0 !important; }
.cx-legacy .hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.cx-legacy .hero-content { max-width: 760px; margin: 0; text-align: left; }
.cx-legacy .hero-content p { margin-left: 0 !important; color: var(--cx-fg-2); }

/* MARK: - Footer */
.g-footer { border-top: 1px solid var(--cx-line); margin-top: 0; }
.g-foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 56px var(--g-pad); border-bottom: 1px solid var(--cx-line); }
.g-foot h2 { margin-bottom: 14px; line-height: 1; }
.g-foot > div > a:not(.g-logo) { display: block; padding: 4px 0; font-size: 14px; color: var(--cx-fg-2); }
.g-foot > div > a:hover { color: var(--cx-fg); }
.g-foot-brand p { margin-top: 14px; color: var(--cx-fg-2); font-size: 14px; max-width: 320px; }
.g-foot-brand .cx-news { margin-top: 20px; }
.g-foot-bottom { display: flex; justify-content: space-between; padding: 20px var(--g-pad) 28px; }
@media (max-width: 860px) { .g-foot { grid-template-columns: 1fr 1fr; } .g-foot-brand { grid-column: 1 / -1; } }

/* MARK: - Reveal */
.cx-js .cx-reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.cx-js .cx-reveal.is-in { opacity: 1; transform: none; }
.g-pillar.cx-reveal:nth-child(2) { transition-delay: .06s; } .g-pillar.cx-reveal:nth-child(3) { transition-delay: .12s; } .g-pillar.cx-reveal:nth-child(4) { transition-delay: .18s; }
.cx-legacy .hero h1 { color: var(--cx-fg) !important; background: none !important; -webkit-text-fill-color: currentColor !important; }

.g-cmp { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; padding: 56px var(--g-pad); }
@media (max-width: 900px) { .g-cmp { grid-template-columns: 1fr; gap: 24px; } }

/* MARK: - TabSight page (keeps the structure of its current page) */
.ts h2 { font-weight: 600; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.03em; line-height: 1.12; }
.ts .ts-sub { color: var(--cx-fg-2); font-size: 16.5px; margin-top: 10px; max-width: 560px; }
.ts .ts-center { text-align: center; margin-left: auto; margin-right: auto; }
.ts-hero { display: grid; grid-template-columns: 1.2fr .8fr; }
.ts-hero-t { padding: 88px var(--g-pad) 64px; }
.ts-hero h1 { font-size: clamp(38px, 5vw, 62px); }
.ts-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.ts-apart { margin-top: 56px; }
.ts-point { margin-top: 12px; padding: 16px 18px; border: 1px solid var(--cx-line); border-left: 3px solid var(--ts); border-radius: var(--cx-radius-sm); background: var(--cx-surface); }
.ts-apart .ts-sub + .ts-point { margin-top: 22px; }
.ts-point h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ts-point p { font-size: 14px; color: var(--cx-fg-2); line-height: 1.55; }
.ts-dock { border-left: 1px solid var(--cx-line); background: var(--cx-surface-2); padding: 48px 32px; display: flex; justify-content: center; align-items: flex-start; }
.ts-dock img { position: sticky; top: calc(var(--cx-header-h) + 24px); width: 100%; max-width: 300px; max-height: calc(100vh - var(--cx-header-h) - 48px); object-fit: contain; object-position: top; border-radius: 14px; border: 1px solid var(--cx-line); box-shadow: 0 30px 60px -28px rgba(0,0,0,.35); background: #fff; }
.ts-config { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; }
.ts-settings { align-self: stretch; display: grid; place-items: center; padding: 48px 32px; background: var(--cx-surface-2); border-right: 1px solid var(--cx-line); scroll-margin-top: calc(var(--cx-header-h) + 16px); }
.ts-settings img { max-height: 560px; width: auto; } /* the screenshot carries its own card and shadow */
.ts-config-t { padding: 64px var(--g-pad); }
.ts-list { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 18px; }
.ts-list li { display: flex; gap: 14px; }
.ts-list-i { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--cx-line); background: var(--cx-surface); font-size: 17px; color: var(--ts); }
.ts-list b { display: block; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.ts-list li > span:last-child { color: var(--cx-fg-2); font-size: 14.5px; line-height: 1.55; }
.ts-for { padding: 64px var(--g-pad); }
.ts-for-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; text-align: center; }
.ts-for-i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--cx-line); background: var(--cx-surface); font-size: 22px; color: var(--ts); margin-bottom: 14px; }
.ts-for-grid h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.ts-for-grid p { color: var(--cx-fg-2); font-size: 14.5px; max-width: 300px; margin: 0 auto; }
.ts-pricing { padding: 64px var(--g-pad); }
.ts-tiers { max-width: 680px; margin: 36px auto 0; }
.g-tier { position: relative; }
.g-tier-flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--cx-fg); color: #fff; font: 500 11.5px/1 var(--cx-font-mono); letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.ts-download { padding: 72px var(--g-pad); display: grid; justify-items: center; gap: 28px; text-align: center; }
.ts-dl { width: min(460px, 100%); border: 1px solid var(--cx-line-2); border-radius: 16px; background: var(--cx-surface); padding: 32px 28px; display: grid; justify-items: center; gap: 12px; box-shadow: var(--cx-shadow); }
.ts-dl h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.ts-dl p { color: var(--cx-fg-2); }
.ts-dl .g-fine { margin-top: 4px; }
.ts-dl-note { font-size: 14px; color: var(--cx-fg-2); }
.ts-dl-note a { color: var(--cx-accent); }
@media (max-width: 900px) {
  .ts-hero, .ts-config { grid-template-columns: 1fr; }
  .ts-hero-t { padding: 56px var(--g-pad) 40px; }
  .ts-dock { border-left: 0; border-top: 1px solid var(--cx-line); padding: 32px var(--g-pad); }
  .ts-dock img { position: static; max-height: 520px; width: auto; }
  .ts-settings { border-right: 0; border-bottom: 1px solid var(--cx-line); padding: 32px var(--g-pad); }
  .ts-settings img { max-height: 420px; }
  .ts-config-t { padding: 40px var(--g-pad); }
  .ts-for-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) { .ts-duo { grid-template-columns: 1fr; } }
