/* AI Search Visibility hub page styles — the same page-local block used by the AI Rank product
   page (public/ai-rank-api.html), extracted into a stylesheet so the hub matches it exactly.
   If the shared product-page styling changes, update this file with the same block. */
* { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; }
    a { color: var(--text-primary); text-decoration: none; }
    .accent { color: var(--accent); }

    .lp-hero { padding: 3rem 2rem 5rem; text-align: center; background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%); }
    .lp-hero h1 { font-size: 3.25rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.15; }
    .lp-hero .subtitle { color: var(--text-secondary); font-size: 1.25rem; max-width: 650px; margin: 0 auto 2.5rem; line-height: 1.7; }
    .lp-hero .hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
    .lp-hero .hero-badges { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
    .lp-hero .hero-badge { background: var(--accent-dim); color: var(--accent); padding: 0.4rem 1rem; border-radius: 9999px; font-size: 0.85rem; font-weight: 600; }
    .hero-brand-logo { height: 56px; width: auto; margin-bottom: 1rem; display: block; margin-left: auto; margin-right: auto; }
    .hero-brand-logos { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
    .lp-hero .hero-note { margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; max-width: 620px; margin-left: auto; margin-right: auto; line-height: 1.6; }

    .lp-section { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }
    .lp-section.alt-bg { background: var(--bg-secondary); max-width: 100%; }
    .lp-section.alt-bg .lp-inner { max-width: 1200px; margin: 0 auto; }
    .section-label { text-transform: uppercase; font-size: 0.8rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 0.75rem; }
    .section-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; }
    .section-desc { color: var(--text-secondary); font-size: 1.1rem; max-width: 640px; margin-bottom: 3rem; line-height: 1.7; }
    .section-center { text-align: center; }
    .section-center .section-desc { margin-left: auto; margin-right: auto; }

    .endpoint-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 820px; margin: 0 auto; }
    .endpoint-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: all 0.3s; display: flex; flex-direction: column; }
    .endpoint-card:hover { border-color: var(--accent); transform: translateY(-3px); }
    .endpoint-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; }
    .endpoint-card ul { list-style: none; margin-bottom: 1.25rem; flex: 1 1 auto; }
    .endpoint-card.featured { border-color: var(--accent); }
    .endpoint-card .ep-link { display: inline-flex; align-items: center; justify-content: center; margin-top: auto; color: var(--accent); font-weight: 600; font-size: 0.9rem; min-height: 44px; padding: 0.55rem 1.25rem; border: 2px solid var(--accent); border-radius: 9999px; text-decoration: none; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; align-self: stretch; }
    .endpoint-card .ep-link:hover { background: var(--accent-dim); color: var(--accent); text-decoration: none; }

    /* Data fields + prose cards. DEFINED HERE ON PURPOSE: .data-grid / .data-card conflict
       between pages (2-column here, auto-fit elsewhere) so /css/product-page.css deliberately
       leaves them out. Without this block these sections render as an unstyled stack. */
    .data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .data-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
    .data-card h4 { font-weight: 600; margin-bottom: 0.75rem; font-size: 1rem; }
    .data-card ul { list-style: none; }
    .data-card ul li { color: var(--text-secondary); font-size: 0.875rem; padding: 0.3rem 0; font-family: 'Monaco', 'Menlo', monospace; }
    .data-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }
    .data-card p + p { margin-top: 0.75rem; }
    .data-card code { font-family: 'Monaco', 'Menlo', monospace; font-size: 0.85em; }

    .lp-prose { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.75; max-width: 840px; }
    .lp-prose + .lp-prose { margin-top: 1rem; }
    .table-note { color: var(--text-muted); font-size: 0.85rem; line-height: 1.65; max-width: 840px; margin-top: 0.75rem; }
    .lp-callout { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 1.25rem 1.5rem; margin-top: 1.5rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.75; max-width: 840px; }

    /* Engine cards — the four supported engine labels */
    .engine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    .engine-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: all 0.25s ease; position: relative; overflow: hidden; display: flex; flex-direction: column; }
    .engine-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
    .engine-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
    .engine-card--chatgpt::before { background: #10A37F; }
    .engine-card--claude::before { background: #D97757; }
    .engine-card--gemini::before { background: #4285F4; }
    .engine-card--perplexity::before { background: #20808D; }
    .engine-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
    .engine-card--chatgpt .engine-card-icon { background: rgba(16, 163, 127, 0.1); color: #10A37F; }
    .engine-card--claude .engine-card-icon { background: rgba(217, 119, 87, 0.1); color: #D97757; }
    .engine-card--gemini .engine-card-icon { background: rgba(66, 133, 244, 0.1); color: #4285F4; }
    .engine-card--perplexity .engine-card-icon { background: rgba(32, 128, 141, 0.1); color: #20808D; }
    .engine-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
    .engine-model { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; font-family: 'Monaco', 'Menlo', monospace; }
    .engine-features { list-style: none; margin-bottom: 1.5rem; }
    .engine-features li { color: var(--text-secondary); font-size: 0.875rem; padding: 0.3rem 0 0.3rem 1.25rem; position: relative; }
    .engine-features li::before { content: ''; position: absolute; left: 0; top: 0.65rem; width: 6px; height: 6px; border-radius: 50%; }
    .engine-card--chatgpt .engine-features li::before { background: #10A37F; }
    .engine-card--claude .engine-features li::before { background: #D97757; }
    .engine-card--gemini .engine-features li::before { background: #4285F4; }
    .engine-card--perplexity .engine-features li::before { background: #20808D; }
    .engine-cta { display: block; text-align: center; margin-top: auto; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; border: 1px solid var(--border); color: var(--text-primary); }
    .engine-cta:hover { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }

    /* Visibility score shares */
    .score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    .score-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem 1.5rem; text-align: center; }
    .score-value { font-size: 2.25rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
    .score-name { font-weight: 700; margin-top: 0.35rem; }
    .score-note { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.35rem; line-height: 1.5; }

    .code-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin: 2rem 0; }
    .code-header { background: var(--bg-secondary); padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
    .code-header .lang { font-size: 0.8rem; font-weight: 600; color: var(--accent); text-transform: uppercase; }
    .code-body { padding: 1.5rem; overflow-x: auto; }
    .code-body pre { font-family: 'Monaco', 'Menlo', monospace; font-size: 0.85rem; line-height: 1.7; color: var(--text-secondary); white-space: pre; margin: 0; }

    .faq-list { max-width: 800px; margin: 0 auto; }
    .faq-item { border-bottom: 1px solid var(--border); }
    .faq-question { width: 100%; background: none; border: none; color: var(--text-primary); font-size: 1.1rem; font-weight: 600; padding: 1.5rem 0; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
    .faq-question:hover { color: var(--accent); }
    .faq-question .faq-toggle { font-size: 1.5rem; color: var(--accent); transition: transform 0.3s; flex-shrink: 0; margin-left: 1rem; }
    .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    .faq-answer-inner { padding: 0 0 1.5rem; color: var(--text-secondary); line-height: 1.8; }
    .faq-item.open .faq-answer { max-height: 900px; }
    .faq-item.open .faq-toggle { transform: rotate(45deg); }

    .cta-section { text-align: center; padding: 5rem 2rem; background: var(--bg-secondary); }
    .cta-section h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
    .cta-section p { color: var(--text-secondary); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; }
    .internal-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
    .internal-links a { color: var(--text-secondary); font-size: 0.9rem; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
    .internal-links a:hover { color: var(--accent); border-color: var(--accent); }

    .footer { padding: 4rem 2rem; border-top: 1px solid var(--border); }
    .footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; }
    .footer-brand { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
    .footer-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
    .footer-email { color: var(--accent); font-size: 0.9rem; }
    .footer-title { font-weight: 600; margin-bottom: 1.5rem; }
    .footer-links { list-style: none; }
    .footer-links li { margin-bottom: 0.75rem; }
    .footer-links a { color: var(--text-secondary); font-size: 0.9rem; transition: color 0.2s; }
    .footer-links a:hover { color: var(--accent); }
    .footer-bottom { max-width: 1200px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 1024px) {
      .engine-grid { grid-template-columns: repeat(2, 1fr); }
      .score-grid { grid-template-columns: repeat(2, 1fr); }
      .data-grid { grid-template-columns: 1fr; }
    }

@media (max-width: 768px) {
      .lp-hero h1 { font-size: 2.25rem; }
      .endpoint-grid, .engine-grid, .score-grid { grid-template-columns: 1fr; }
      .footer-container { grid-template-columns: 1fr; text-align: center; }
      .footer-brand { justify-content: center; }
    }


/* ── Hub-only QA fixes (19 Nov 2026) ─────────────────────────────────────────
   Fixed-fill vendor logos read at ~1.07:1 on the dark card ground (Anthropic) and
   1.75:1 (OpenAI), so give those two marks a white chip in dark mode. Gemini and
   Perplexity are already light-filled and are left untouched. */
[data-theme="dark"] .hero-brand-logos img[data-brand="anthropic"],
[data-theme="dark"] .hero-brand-logos img[data-brand="openai"],
[data-theme="dark"] .data-card img[data-brand="anthropic"],
[data-theme="dark"] .data-card img[data-brand="openai"] {
  background: #fff;
  border-radius: 6px;
  padding: 2px;
  box-sizing: content-box;
}

/* Plain-English rule lists in a data card should not inherit the code-list face. */
.data-card.data-card--prose ul li {
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Phone rhythm: keep the badge row on one line at tablet widths and stop long
   section titles from ending on a single orphan word on a phone. */
@media (max-width: 768px) {
  .lp-hero .hero-badges { gap: 0.75rem; }
}
@media (max-width: 560px) {
  .lp-section .section-title { font-size: 1.75rem; }
  .cta-section h2 { font-size: 1.9rem; }
}
