/* Shared styles for secondary marketing pages (agents, integrations, lead generation, resources, blog). */
.nav-links a.active { color: var(--brand); }
.page-hero { padding: 72px 0 48px; text-align: center; background:
  radial-gradient(800px 360px at 80% -20%, #d9f7ef 0, transparent 60%), radial-gradient(600px 320px at 0% 10%, #fff4dc 0, transparent 60%); }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; max-width: 820px; margin: 14px auto 16px; }
.page-hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; margin: 0 auto 26px; }
.kicker { color: var(--brand); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.block-sm { padding: 48px 20px 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; color: inherit; }
a.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.tile .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; }
.tile h3 { font-size: 1.1rem; }
.tile p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; flex: 1; }
.tile ul { padding-left: 1.1em; color: var(--ink-2); font-size: .92rem; margin: 0 0 18px; }
.tile ul li { margin: 4px 0; }
.tile .foot { display: flex; align-items: center; gap: 8px; }
.badge { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--brand-50); color: var(--brand); }
.badge.soon { background: #f1f5f4; color: var(--muted); }

.agent-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.agent-card + .agent-card { margin-top: 24px; }
.agent-card .body { padding: 34px; }
.agent-card .body h2 { font-size: 1.6rem; }
.agent-card .demo-side { background: var(--bg-soft); padding: 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; border-left: 1px solid var(--line); }
.agent-card .bubble { font-size: .9rem; }
.agent-card ul { list-style: none; padding: 0; margin: 16px 0 24px; }
.agent-card li { padding: 6px 0 6px 28px; position: relative; color: var(--ink-2); }
.agent-card li::before { content: '✓'; position: absolute; left: 4px; color: var(--brand); font-weight: 800; }
@media (max-width: 860px) { .agent-card { grid-template-columns: 1fr; } .agent-card .demo-side { border-left: 0; border-top: 1px solid var(--line); } }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: flow; }
.flow > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.flow > div::before { counter-increment: flow; content: counter(flow); width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.flow h3 { font-size: 1rem; }
.flow p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat-row b { display: block; font-size: 2.2rem; letter-spacing: -.03em; color: var(--brand); }
.stat-row span { color: var(--muted); }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }

pre.snippet { background: #0b1b1a; color: #d1fae5; border-radius: 12px; padding: 18px; font: .85rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-x: auto; margin: 0; }

/* blog */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 16px; font: 600 .88rem var(--font); cursor: pointer; color: var(--ink-2); }
.chip.active, .chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.post-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.post-card h3 { font-size: 1.2rem; margin: 12px 0 8px; }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 700; color: var(--brand); background: var(--brand-50); padding: 3px 10px; border-radius: 99px; }
.meta { color: var(--muted); font-size: .85rem; }
.article-wrap { max-width: 760px; padding-top: 40px; }
.back { display: inline-block; margin-bottom: 26px; font-weight: 600; }
.article h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 14px 0 10px; }
.article { font-size: 1.08rem; line-height: 1.75; color: var(--ink-2); }
.article h2 { font-size: 1.5rem; margin-top: 2em; color: var(--ink); }
.article h3 { font-size: 1.2rem; margin-top: 1.6em; color: var(--ink); }
.article p, .article ul, .article ol { margin: 0 0 1.1em; }
.article li { margin: .35em 0; }
.article blockquote { border-left: 4px solid var(--brand); background: var(--brand-50); margin: 1.4em 0; padding: 14px 20px; border-radius: 0 10px 10px 0; color: var(--ink); }
.article code { background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.article pre { background: #0b1b1a; color: #d1fae5; padding: 16px; border-radius: 12px; overflow-x: auto; }

/* pricing toggle (homepage + billing page) */
.billing-toggle { display: flex; justify-content: center; gap: 4px; margin: -20px auto 32px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: max-content; }
.billing-toggle button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font: 600 .9rem var(--font); color: var(--ink-2); cursor: pointer; }
.billing-toggle button.active { background: var(--brand); color: #fff; }
.billing-toggle .save { font-size: .72rem; background: #fef3c7; color: #92400e; padding: 2px 7px; border-radius: 99px; margin-left: 4px; }
.billing-toggle button.active .save { background: rgba(255,255,255,.2); color: #fff; }
.pricing-4 { grid-template-columns: repeat(5, 1fr) !important; }
.pricing-4 .price-card { padding: 26px 22px; }
.pricing-4 .price-card li { font-size: .88rem; }
@media (max-width: 1250px) { .pricing-4 { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 900px) { .pricing-4 { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 640px) { .pricing-4 { grid-template-columns: 1fr !important; } }

/* ---------- guide pages ---------- */
.guide-hero { text-align: left; padding-bottom: 36px; }
.guide-hero h1 { margin-left: 0; max-width: 900px; }
.guide-hero .lead { margin-left: 0; max-width: 760px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 36px; padding-bottom: 40px; }
.guide-toc .toc-inner { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.guide-toc strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.guide-toc a:not(.btn) { color: var(--ink-2); padding: 5px 0 5px 10px; border-left: 2px solid var(--line); }
.guide-toc a:not(.btn):hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.guide-article { max-width: 760px; }
.guide-article h2 { scroll-margin-top: 90px; }
.guide-article h3 { scroll-margin-top: 90px; }
.table-scroll { overflow-x: auto; margin: 1.2em 0 1.4em; border: 1px solid var(--line); border-radius: 12px; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-scroll th { background: var(--bg-soft); text-align: left; font-weight: 700; color: var(--ink); }
.table-scroll th, .table-scroll td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll tr:last-child td { border-bottom: 0; }
.guide-cta { display: flex; gap: 18px; align-items: center; justify-content: space-between; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 14px; padding: 20px 22px; margin: 1.6em 0; }
.guide-cta p { margin: 4px 0 0; font-size: .95rem; }
.calc { border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 1.6em 0; background: #fff; box-shadow: var(--shadow); }
.calc-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; color: var(--ink); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.calc-grid label { font-size: .88rem; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; gap: 6px; margin: 0; }
.calc-grid input[type=number] { font-size: 1rem; }
.calc-grid input[type=range] { accent-color: var(--brand); width: 100%; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.calc-out div { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.calc-out span { display: block; font-size: .8rem; color: var(--muted); }
.calc-out b { font-size: 1.5rem; color: var(--ink); letter-spacing: -.02em; }
.calc-out .hl { background: var(--brand); } .calc-out .hl span, .calc-out .hl b { color: #fff; }
@media (max-width: 960px) { .guide-layout { grid-template-columns: 1fr; gap: 0; } .guide-toc { display: none; } }
@media (max-width: 600px) { .calc-grid, .calc-out { grid-template-columns: 1fr; } .guide-cta { flex-direction: column; align-items: flex-start; } }

.disclosure { font-size: .85rem; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 1.6em; }
.verdict { border: 2px solid var(--brand); border-radius: 14px; padding: 18px 20px; margin: 1.4em 0; background: #fff; }
