/* campaignset — marketing page styles */

/* ---------- Sticky header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(2,6,23,0.78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: 3.5rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 8px; background: var(--v); color: #fff; font-size: 0.875rem; font-weight: 700; }
.brand-text { font-size: 0.875rem; }
.nav-links { display: none; gap: 1.5rem; margin-left: 1rem; }
.nav-links a { font-size: 0.875rem; color: var(--ink-4); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink-2); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 0.625rem; }
.stars-pill { font-size: 0.75rem; color: var(--ink-4); padding: 0.25rem 0.625rem; border: 1px solid var(--line); border-radius: 9999px; transition: color 0.15s; white-space: nowrap; }
.stars-pill:hover { color: var(--ink-2); }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 5rem 0 4rem; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 0%, color-mix(in srgb, var(--v) 18%, transparent), transparent); pointer-events: none; }
.hero-inner { position: relative; text-align: center; max-width: 52rem; margin: 0 auto; }
.hero-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.875rem; border-radius: 9999px; background: color-mix(in srgb, var(--v) 10%, transparent); border: 1px solid color-mix(in srgb, var(--v) 30%, transparent); font-size: 0.75rem; color: var(--ink-3); margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.hero-sub { margin-top: 1.25rem; font-size: 1.0625rem; color: var(--ink-4); max-width: 40rem; margin-left: auto; margin-right: auto; }
.hero-ctas { margin-top: 2rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 2rem; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.trust-badge { font-size: 0.8125rem; color: var(--ink-5); display: flex; align-items: center; gap: 0.375rem; }
.trust-badge::before { content: '✓'; color: var(--emerald); }

/* ---------- Inbox mockup ---------- */
.mockup-wrap { margin-top: 3rem; max-width: 64rem; margin-left: auto; margin-right: auto; }
.mockup { background: var(--bg-900); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-mock); }
.mockup-chrome { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.mockup-dots { display: flex; gap: 0.375rem; }
.mockup-dots span { width: 0.75rem; height: 0.75rem; border-radius: 9999px; background: var(--bg-800); }
.mockup-title { font-size: 0.8125rem; color: var(--ink-4); margin-left: 0.5rem; }
.live-pill { margin-left: auto; font-size: 0.625rem; padding: 0.125rem 0.5rem; border-radius: 9999px; background: color-mix(in srgb, var(--emerald) 15%, transparent); color: var(--emerald); font-weight: 600; letter-spacing: 0.05em; }
.inbox-mock { display: grid; grid-template-columns: 280px 1fr; min-height: 420px; }
@media (max-width: 767px) { .inbox-mock { grid-template-columns: 1fr; } }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox-search { padding: 0.625rem; border-bottom: 1px solid var(--line); }
.inbox-search input { width: 100%; height: 2rem; background: var(--bg-900); border: 1px solid var(--line); border-radius: 8px; padding: 0 0.625rem; font-size: 0.75rem; color: var(--ink-3); }
.inbox-conv { display: flex; gap: 0.625rem; padding: 0.75rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); cursor: pointer; }
.inbox-conv:hover { background: var(--bg-800); }
.inbox-conv.active { background: color-mix(in srgb, var(--v) 10%, transparent); }
.inbox-thread { display: flex; flex-direction: column; }
.thread-header { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.thread-messages { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: 0.625rem; background: var(--bg-flat); }
.msg-bubble { max-width: 75%; padding: 0.5rem 0.875rem; border-radius: 14px; font-size: 0.8125rem; }
.msg-in { align-self: flex-start; background: var(--bg-900); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink-2); }
.msg-out { align-self: flex-end; background: var(--v); color: #fff; border-bottom-right-radius: 4px; }
.thread-composer { padding: 0.625rem; border-top: 1px solid var(--line); display: flex; gap: 0.5rem; }
.thread-composer input { flex: 1; height: 2.25rem; background: var(--bg-900); border: 1px solid var(--line); border-radius: 8px; padding: 0 0.75rem; font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 700; }
.section-head p { margin-top: 0.75rem; color: var(--ink-4); font-size: 1rem; }

/* ---------- Features grid ---------- */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: var(--bg-900); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow-card); transition: border-color 0.15s, transform 0.15s; }
.feature-card:hover { border-color: color-mix(in srgb, var(--v) 40%, transparent); transform: translateY(-2px); }
.feature-icon { width: 2.5rem; height: 2.5rem; border-radius: 12px; background: color-mix(in srgb, var(--v) 12%, transparent); display: flex; align-items: center; justify-content: center; color: var(--v); margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.0625rem; margin-bottom: 0.375rem; }
.feature-card p { font-size: 0.875rem; color: var(--ink-4); line-height: 1.6; }

/* ---------- Deep-dive (split layout) ---------- */
.deep-dive { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .deep-dive { grid-template-columns: 1fr 1fr; } }
.bullet-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.bullet-list li { display: flex; gap: 0.625rem; padding: 0.5rem 0; font-size: 0.9375rem; color: var(--ink-3); }
.bullet-list li::before { content: '✓'; color: var(--v); font-weight: 700; flex-shrink: 0; }

/* ---------- How it works ---------- */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { text-align: left; }
.step-num { font-size: 0.875rem; font-weight: 700; color: var(--v); margin-bottom: 0.5rem; }
.step-card h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.875rem; color: var(--ink-4); }

/* ---------- Automations mockup ---------- */
.flow-mock { display: flex; flex-direction: column; gap: 0; }
.flow-block { border: 1px solid; border-radius: 12px; padding: 0.875rem 1rem; background: var(--card); display: flex; gap: 0.625rem; align-items: flex-start; }
.flow-block.trigger { border-color: color-mix(in srgb, var(--v) 40%, transparent); }
.flow-block.action { border-color: color-mix(in srgb, var(--emerald) 40%, transparent); }
.flow-block.wait { border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.flow-block.condition { border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
.flow-icon { width: 2rem; height: 2rem; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.flow-icon.trigger { background: color-mix(in srgb, var(--v) 15%, transparent); color: var(--v); }
.flow-icon.action { background: color-mix(in srgb, var(--emerald) 15%, transparent); color: var(--emerald); }
.flow-icon.wait { background: color-mix(in srgb, var(--amber) 15%, transparent); color: var(--amber); }
.flow-icon.condition { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.flow-label { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.flow-detail { font-size: 0.8125rem; color: var(--ink-2); margin-top: 0.125rem; }
.flow-connector { width: 2px; height: 1.25rem; background: var(--line); margin: 0 auto; }

/* ---------- Pipelines mockup (Kanban) ---------- */
.kanban-mock { display: flex; gap: 0.75rem; overflow-x: auto; padding: 0.5rem; }
.kanban-col { min-width: 180px; flex: 1; }
.kanban-col-head { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; color: var(--ink-4); margin-bottom: 0.5rem; }
.deal-card { background: var(--bg-900); border: 1px solid var(--line); border-radius: 8px; padding: 0.625rem; margin-bottom: 0.5rem; }
.deal-card .deal-title { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.deal-card .deal-value { font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-top: 0.25rem; }

/* ---------- Analytics mockup ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.kpi-card { background: var(--bg-900); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.kpi-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; color: var(--ink-5); }
.kpi-value { font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-top: 0.25rem; }
.kpi-delta { font-size: 0.75rem; color: var(--emerald); margin-top: 0.25rem; }
.chart-mock { background: var(--bg-900); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; height: 180px; position: relative; }

/* ---------- Open source cards ---------- */
.os-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .os-grid { grid-template-columns: repeat(2, 1fr); } }
.os-card { background: var(--bg-900); border: 1px solid var(--line); border-radius: 18px; padding: 1.75rem; position: relative; }
.os-card.recommended { border-color: color-mix(in srgb, var(--v) 40%, transparent); }
.os-badge { position: absolute; top: 1rem; right: 1rem; font-size: 0.625rem; font-weight: 700; padding: 0.125rem 0.5rem; border-radius: 9999px; background: var(--v); color: #fff; letter-spacing: 0.05em; }
.code-block { background: #000; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin: 1rem 0; font-family: 'Geist Mono', monospace; font-size: 0.8125rem; overflow-x: auto; }
.code-block .prompt { color: var(--v); }
.code-block .cmd { color: var(--ink-3); }
.os-pill { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--ink-4); padding: 0.25rem 0.625rem; border: 1px solid var(--line); border-radius: 9999px; }
.os-features { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.os-feature { font-size: 0.75rem; color: var(--ink-4); padding: 0.25rem 0.625rem; border: 1px solid var(--line); border-radius: 6px; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 48rem; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 0.625rem; overflow: hidden; background: var(--bg-900); }
.faq-q { width: 100%; text-align: left; padding: 1rem 1.25rem; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-q .chevron { transition: transform 0.2s; color: var(--ink-5); }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 1.25rem 1rem; font-size: 0.875rem; color: var(--ink-4); line-height: 1.6; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; padding: 5rem 0; text-align: center; overflow: hidden; }
.final-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 50%, color-mix(in srgb, var(--v) 22%, transparent), transparent); }
.final-cta-inner { position: relative; max-width: 40rem; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; background: var(--bg-flat); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-wordmark { font-weight: 600; color: var(--ink-2); margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.875rem; color: var(--ink-5); line-height: 1.6; max-width: 22rem; }
.footer-col h4 { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-5); margin-bottom: 0.75rem; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--ink-4); padding: 0.25rem 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--ink-2); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: 0.75rem; color: var(--ink-5); }
.footer-bottom .legal { margin-top: 0.5rem; max-width: 50rem; line-height: 1.5; }

/* ---------- Avatar helpers (mockups) ---------- */
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; color: #fff; font-size: 0.75rem; font-weight: 500; flex-shrink: 0; }
.av-sm { width: 2rem; height: 2rem; }
.av-md { width: 2.25rem; height: 2.25rem; }
