/* ChatStir marketing site: "Clean and light". Blue is for actions only. */
:root {
    --accent: #0066FF;
    --accent-hover: #0052CC;
    --accent-soft: #EBF2FF;
    --ink: #0F172A;
    --text: #334155;
    --muted: #5B6578;          /* 5.9:1 on white */
    --line: #E2E8F0;
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --ok: #0F7B4F;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); overflow-wrap: anywhere; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.hint { font-size: .9rem; color: var(--muted); }

/* Buttons: 44px minimum tap target */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 10px; font: 600 .95rem/1.2 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--accent); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .button-row { justify-content: center; }
.mt-24 { margin-top: 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo span { color: var(--accent); }
.nav-toggle { display: none; min-width: 44px; min-height: 44px; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a, .menu-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font: 500 .95rem var(--font); background: none; border: 0; cursor: pointer; }
.nav-links a:hover, .menu-button:hover { color: var(--accent); }
.menu-button::after { content: ''; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.has-menu { position: relative; }
.menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.menu a { display: flex; width: 100%; border-radius: 8px; }
.menu a:hover { background: var(--bg-alt); }
/* Without script, hover or focus opens the menu; with script, only the button's .open state does. */
html:not(.js) .has-menu:hover .menu, html:not(.js) .has-menu:focus-within .menu, .has-menu.open .menu { display: block; }
.nav-actions { display: flex; gap: 8px; }

@media (max-width: 900px) {
    .js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 16px; }
    .js .site-nav { display: none; }
    .js .site-nav.open { display: flex; }
    .nav-links { flex-direction: column; align-items: stretch; }
    /* Without script the Industries links are always listed; with script the button toggles them. */
    .menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 16px; }
    .js .menu { display: none; }
    .js .has-menu.open .menu { display: block; }
    .menu-button { width: 100%; }
    html:not(.js) .menu-button::after { display: none; }
    .nav-actions { flex-direction: column; }
}

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { max-width: 14em; }
.hero .button-row { margin-top: 28px; }

/* Chat-to-brief visual */
.chat-demo { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; display: grid; gap: 10px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; }
.bubble.bot { background: var(--bg-alt); color: var(--ink); }
.bubble.visitor { background: var(--accent-soft); color: var(--ink); justify-self: end; }
.chat-demo .brief { margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
    .chat-demo > * { animation: rise .5s ease both; }
    .chat-demo > *:nth-child(2) { animation-delay: .6s; }
    .chat-demo > *:nth-child(3) { animation-delay: 1.2s; }
    .chat-demo > *:nth-child(4) { animation-delay: 1.8s; }
    .chat-demo > *:nth-child(5) { animation-delay: 2.6s; }
    @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* Brief card */
.brief { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: #fff; padding: 18px 20px; }
.brief h3 { margin-bottom: 12px; }
.brief dl { margin: 0; }
.brief-row { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.brief-row dt { color: var(--muted); font-weight: 500; }
.brief-row dd { margin: 0; color: var(--ink); }
@media (max-width: 480px) { .brief-row { grid-template-columns: 1fr; gap: 2px; } }

/* Cards, steps */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card a.card-link { font-weight: 600; text-decoration: none; }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 32px; counter-reset: step; list-style: none; padding: 0; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; margin-bottom: 12px; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.before { background: var(--bg-alt); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .95rem; }
.logos-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; list-style: none; padding: 0; }
.logos-row li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--ink); font-weight: 500; }

/* Pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 32px; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: #fff; }
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-price { margin: 4px 0 20px; }
.plan-price .amount { font-size: 2.25rem; font-weight: 700; color: var(--ink); }
.plan-price .per { color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; flex: 1; }
.plan li { padding-left: 24px; position: relative; font-size: .95rem; }
.plan li::before { content: '\2713'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan li.plan-includes { padding-left: 0; font-weight: 600; color: var(--ink); }
.plan li.plan-includes::before { content: none; }

/* Tables scroll inside their own box at narrow widths */
.table-scroll { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.feature-table, .compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; overflow-wrap: normal; }
.feature-table th, .feature-table td, .compare-table th, .compare-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.feature-table thead th, .compare-table thead th { background: var(--bg-alt); color: var(--ink); }
.feature-table td { text-align: center; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); }
.source { font-size: .8rem; white-space: nowrap; }

/* FAQ: native details, keyboard-operable without script */
.faq { max-width: 760px; margin: 32px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 44px; padding: 16px 0; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 0 16px; }

/* Long-form pages (legal, support) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0; }

/* CTA band and footer */
.cta-band { background: var(--bg-alt); border-top: 1px solid var(--line); }
.cta-inner { text-align: center; }
.cta-inner .lede { margin-inline: auto; }
.cta-inner .button-row { justify-content: center; margin-top: 24px; }
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-heading { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.site-footer li a:hover { color: var(--accent); }
.footer-base { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* Reveal on scroll: only hidden when script runs and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
    .js .reveal.in { opacity: 1; transform: none; }
}
pre.before { margin: 24px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.install-code { margin: 24px 0 0; }
.install-code figcaption { margin-bottom: 8px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.install-code pre.before { margin: 0; }

.video-frame { max-width: 880px; margin: 32px auto 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
