/*
Theme Name: SuperXMCP
Author: LocalsDen Digital
Description: Marketing site for SuperXMCP, the MCP gateway for marketing agencies. Landing page, integrations, about and blog, with a built-in waitlist.
Version: 1.6.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: superxmcp
*/

:root {
	--ink: #14161C;
	--ink-2: #3D4350;
	--muted: #5B6170;
	--line: #E5E7EB;
	--line-2: #ECEEF2;
	--bg: #FFFFFF;
	--soft: #F6F7F9;
	--soft-2: #F1F2F5;
	--accent: #3461DB;
	--accent-ink: #1E3FA8;
	--accent-soft: #E3EAFE;
	--accent-deep: #1E3A8A;
	--ok-bg: #DFF3E6;
	--ok: #14532D;
	--warn-bg: #FDF3D7;
	--warn: #713F12;
	--err-bg: #FDE8E8;
	--err: #7F1D1D;
	--radius: 12px;
	--radius-lg: 18px;
	--shadow: 0 1px 2px rgba(20, 22, 28, .06), 0 8px 24px rgba(20, 22, 28, .06);
	--font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--wrap: 1180px;
	--ease: cubic-bezier(.25, 1, .5, 1);
	--ease-expo: cubic-bezier(.16, 1, .3, 1);
	--section: clamp(64px, 8vw, 96px);
	--section-lg: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent-soft); color: var(--accent-deep); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only, .screen-reader-text { position: absolute !important; 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: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(30, 63, 168, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #C9CDD5; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(20, 22, 28, .06); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; font: 600 13px/1 var(--mono); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 861px) {
	.site-nav ul { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); gap: 32px; }
}
.site-nav ul a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav ul a:hover, .site-nav .current-menu-item > a, .site-nav [aria-current="page"] { color: var(--ink); }
.site-nav [aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-login { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-login:hover { color: var(--ink); }
.nav-toggle { display: none; }
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
	.nav-toggle svg { width: 20px; height: 20px; }
	.js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 12px; padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(20, 22, 28, .08); }
	.js .site-nav.is-open { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav ul a { display: block; padding: 12px 4px; font-size: 16px; }
	.nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.nav-login { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; }
	html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding: 12px 0; }
	html:not(.js) .nav-toggle { display: none; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-lg { padding: var(--section-lg) 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.section-head { max-width: 720px; margin: 0 0 clamp(40px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, .split-head h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.025em; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.logo-band { padding: 44px 0 40px; }

/* Heading beside content */
.split-head { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.split-head .lead { margin-top: 18px; }
@media (max-width: 900px) { .split-head { grid-template-columns: 1fr; } }

/* Numbered list (problem section) */
.numbered-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.numbered-list li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.numbered-list-num { font: 500 14px/1.9 var(--mono); color: #B4540F; }
.numbered-list h3 { font-size: 20px; letter-spacing: -.015em; }
.numbered-list p { margin-top: 6px; color: var(--muted); max-width: 52ch; }

/* Request pipeline */
.pipeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.pipeline::before { content: ""; position: absolute; top: 19px; left: 20px; right: calc((100% - 96px) / 4 - 20px); height: 2px; background: linear-gradient(90deg, var(--accent) 0%, #A9BDF3 100%); }
.pipeline li { position: relative; z-index: 1; }
.pipeline-node { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); color: var(--accent); font: 600 14px/1 var(--mono); }
.pipeline-node.is-last { background: var(--accent); color: #fff; }
.pipeline-kicker { display: block; margin-top: 20px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pipeline h3 { font-size: 18px; margin-top: 6px; }
.pipeline p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.pipeline .quote { display: inline-block; margin-top: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; background: #fff; color: var(--ink); font-size: 14px; }
@media (max-width: 900px) {
	.pipeline { grid-template-columns: 1fr; gap: 28px; }
	.pipeline::before { display: none; }
	.pipeline li { padding-left: 60px; }
	.pipeline li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: -28px; width: 2px; background: #A9BDF3; }
	.pipeline-node { position: absolute; left: 0; top: 0; }
	.pipeline-kicker { margin-top: 0; padding-top: 10px; }
}

/* Feature grid: hairline items, no boxes */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.feature-grid li { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.feature-grid h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: -.015em; }
.feature-grid h3 svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.feature-grid p { margin-top: 10px; color: var(--muted); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 88px; }
/* Softened so the hero copy stays readable: faint behind the text column, fuller behind the demo. */
.hero-terminal { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: .5;
	-webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .22) 42%, #000 72%);
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .22) 42%, #000 72%); }
@media (max-width: 960px) { .hero-terminal { opacity: .22; -webkit-mask-image: none; mask-image: none; } }
.faulty-terminal-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.03em; margin-top: 18px; }
.hero .lead { margin-top: 20px; max-width: 580px; }
.hero-proof { margin-top: 22px; font-size: 14px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); background: #fff; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #2F9E62; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } .hero { padding: 48px 0 64px; } }

/* Waitlist form */
.waitlist { margin-top: 28px; max-width: 580px; }
.waitlist-fields { display: grid; gap: 12px; }
.waitlist-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .select { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #C9CDD5; border-radius: 10px; background: #fff; font: 400 15px var(--font); color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.input::placeholder { color: #8A93A3; }
.input:hover, .select:hover { border-color: #A3A9B6; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.input:user-invalid { border-color: #B91C1C; }
.waitlist-compact { max-width: 520px; }
.compact-row { display: flex; gap: 6px; padding: 6px; border: 1px solid #C9CDD5; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(20, 22, 28, .04), 0 8px 24px rgba(52, 97, 219, .06); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.compact-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.compact-row .input { flex: 1; min-width: 0; border: 0; box-shadow: none; background: transparent; }
.compact-row .input:focus { box-shadow: none; }
.waitlist-compact .waitlist-note { margin-top: 12px; }
@media (max-width: 520px) {
	.compact-row { flex-direction: column; padding: 0; border: 0; box-shadow: none; background: transparent; gap: 10px; }
	.compact-row:focus-within { box-shadow: none; }
	.compact-row .input { border: 1px solid #C9CDD5; background: #fff; }
	.compact-row .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
}
.waitlist-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.waitlist-note { font-size: 13px; color: var(--muted); }
.waitlist-note a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-err { background: var(--err-bg); color: var(--err); }
.waitlist-done { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; max-width: 580px; padding: 18px 20px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); }
.waitlist-done svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.waitlist-done strong { display: block; font-size: 16px; }
@media (max-width: 600px) { .waitlist-row { grid-template-columns: 1fr; } .waitlist-actions .btn { width: 100%; } }

/* Hero demo */
.demo { background: rgba(246, 247, 249, .55); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 16px; }
.demo-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.demo-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bubble { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.bubble-you { background: var(--accent); color: #fff; margin-left: auto; max-width: 86%; border-bottom-right-radius: 4px; }
.bubble-ai { background: var(--soft-2); color: var(--ink); max-width: 94%; border-bottom-left-radius: 4px; }
.approval-title { font-weight: 600; font-size: 16px; margin-top: 10px; letter-spacing: -.01em; }
.approval-why { margin-top: 6px; font-size: 14px; color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font: 500 12px/1.5 var(--font); background: var(--soft-2); color: var(--ink-2); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-blue { background: var(--accent-soft); color: var(--accent-deep); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.code { font-family: var(--mono); font-size: 12px; }
.fake-actions { display: flex; gap: 8px; margin-top: 14px; }
.fake-btn { padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.fake-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 600px) { .demo { padding: 16px; border-radius: 18px; } }

/* Platform tiles */
.tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font: 600 13px/1 var(--mono); flex: none; }
.tile-logo { background: #fff; border: 1px solid var(--line-2); }
.tile-logo img { display: block; width: 24px; height: 24px; object-fit: contain; }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.logo-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 500; font-size: 14px; color: var(--ink); }
.logo-chip .tile { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; border: 0; }
.logo-chip .tile-logo img { width: 20px; height: 20px; }
.strip-foot { margin-top: 24px; text-align: center; }
.strip-label { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* Split + rules panel */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.025em; }
.split .lead { margin-top: 16px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--ink-2); }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.checklist strong { color: var(--ink); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-sub { padding: 12px 20px 6px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.panel-row:last-child { border-bottom: 0; }
.panel-row small { display: block; color: var(--muted); font-size: 13px; }
.switch { flex: none; width: 36px; height: 20px; border-radius: 999px; background: #C9CDD5; position: relative; transition: background .35s var(--ease) var(--d, 0ms); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .35s var(--ease) var(--d, 0ms); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(16px); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 12px; font-weight: 600; }
.seg span { padding: 6px 10px; color: var(--muted); }
.seg .on { background: var(--ink); color: #fff; }

/* Setup steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.step { padding-top: 28px; border-top: 2px solid var(--ink); }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 14px/1 var(--mono); }
.step h3 { font-size: 19px; margin-top: 18px; letter-spacing: -.015em; }
.step p { margin-top: 8px; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* Works with */
.works-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(48px, 6vw, 72px); padding: 20px 24px; border-radius: var(--radius-lg); background: var(--soft); }
.works-row > p { font-weight: 600; color: var(--ink); }
.works { display: flex; flex-wrap: wrap; gap: 8px; }
.works span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; }
.works .more { color: var(--muted); font-weight: 500; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 4px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 26px/1 var(--font); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 24px; color: var(--ink-2); max-width: 720px; }
.faq .answer p + p { margin-top: 10px; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: 24px; padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.cta-band p { color: #C9CDD5; margin-top: 14px; font-size: 17px; }
.cta-band .field label { color: #E5E7EB; }
.cta-band .field .opt, .cta-band .waitlist-note { color: #A3A9B6; }
.cta-band .input, .cta-band .select { border-color: #3D4350; }
.cta-band .waitlist, .cta-band .waitlist-done { margin-top: 0; }
.cta-band .eyebrow { color: #9DB4F5; }
.cta-band.slim { grid-template-columns: 1fr auto; padding: 48px 56px; }
@media (max-width: 960px) { .cta-band, .cta-band.slim { grid-template-columns: 1fr; padding: 40px 24px; border-radius: 20px; } }

/* Page hero */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); margin-top: 14px; max-width: 860px; letter-spacing: -.03em; }
.page-hero h1:first-child { margin-top: 0; }
.page-hero .lead { margin-top: 18px; max-width: 700px; }
@media (max-width: 860px) { .page-hero { padding: 48px 0 40px; } }

/* Integrations */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }
.search-box { position: relative; flex: 1 1 260px; max-width: 360px; }
.search-box .input { padding-left: 42px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; background: #fff; }
.chip:hover { border-color: #A3A9B6; color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; color: var(--muted); margin-top: 20px; align-items: center; }
.result-count { font-size: 14px; color: var(--muted); }
.int-cat { padding-top: 56px; scroll-margin-top: 90px; }
.int-cat-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.int-cat-head h2 { font-size: 24px; }
.count { font: 500 13px var(--mono); color: var(--muted); }
.int-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .int-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .int-grid { grid-template-columns: 1fr; } }
.int-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.int-card:hover { border-color: #C9CDD5; box-shadow: var(--shadow); transform: translateY(-2px); }
.int-top { display: flex; align-items: center; gap: 12px; }
.int-top h3 { font-size: 16px; letter-spacing: -.01em; }
.int-card p { color: var(--muted); font-size: 14px; }
.int-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 600 12px/1.5 var(--font); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-launch { background: var(--ok-bg); color: var(--ok); }
.badge-early { background: var(--accent-soft); color: var(--accent-deep); }
.badge-roadmap { background: var(--soft-2); color: var(--ink-2); }
.empty-state { margin-top: 48px; padding: 40px; text-align: center; border: 1px dashed #C9CDD5; border-radius: var(--radius-lg); color: var(--muted); }

/* Prose */
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 2em; color: var(--ink); }
.prose h3 { font-size: 21px; margin-top: 1.6em; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink); }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--soft-2); padding: 2px 6px; border-radius: 6px; }
.prose figure { margin: 1.6em 0; }
.prose .wp-block-table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--soft); }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { border-radius: 12px; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Blog */
.blog-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 28px; }
.search-form { display: flex; gap: 8px; flex: 1 1 260px; max-width: 380px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid #C9CDD5; border-radius: 10px; font: 400 15px var(--font); }
.search-submit { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 600 14px var(--font); color: var(--ink); cursor: pointer; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.post-card:hover { border-color: #C9CDD5; box-shadow: var(--shadow); }
.post-card .thumb img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; display: block; }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h2 { font-size: 20px; letter-spacing: -.01em; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .link-arrow { margin-top: auto; padding-top: 6px; font-size: 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.post-cat { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.single-head { padding: 64px 0 40px; text-align: center; }
.single-head h1 { font-size: clamp(32px, 4.4vw, 48px); max-width: 860px; margin: 14px auto 0; letter-spacing: -.03em; }
.single-head .lead { max-width: 680px; margin: 18px auto 0; }
.single-head .post-meta { justify-content: center; margin-top: 20px; }
.single-thumb { max-width: 960px; margin: 0 auto 48px; }
.single-thumb img { display: block; border-radius: var(--radius-lg); }
.post-tags { max-width: 720px; margin: 40px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--soft-2); color: var(--ink-2); text-decoration: none; }
.back-link { max-width: 720px; margin: 48px auto 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-grid h2 { font: 600 14px/1.4 var(--font); color: var(--ink); margin-bottom: 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-grid ul a:hover { color: var(--ink); }
.footer-about p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.not-found { padding: 120px 0; text-align: center; }
.not-found h1 { font-size: clamp(32px, 4.4vw, 48px); margin-top: 14px; }
.not-found p { margin-top: 16px; color: var(--muted); }
.not-found .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* Motion. Uses the individual translate/scale properties so hover transforms keep working.
   Everything below is skipped under prefers-reduced-motion (see the global rule at the top). */
@keyframes sxm-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes sxm-pop { from { opacity: 0; scale: .94; translate: 0 6px; } to { opacity: 1; scale: 1; translate: 0 0; } }

/* Page load: hero copy rises in order, then the demo plays out as a short conversation. */
.hero .pill, .hero h1, .hero .lead, .hero .waitlist, .hero .waitlist-done, .hero .hero-proof,
.page-hero .wrap > *, .single-head > * { animation: sxm-rise .9s var(--ease-expo) both; }
.hero h1, .page-hero .wrap > :nth-child(2), .single-head > :nth-child(2) { animation-delay: .08s; }
.hero .lead, .page-hero .wrap > :nth-child(3), .single-head > :nth-child(3) { animation-delay: .16s; }
.hero .waitlist, .hero .waitlist-done, .page-hero .wrap > :nth-child(n+4), .single-head > :nth-child(n+4) { animation-delay: .24s; }
.hero .hero-proof { animation-delay: .32s; }
.demo { animation: sxm-rise 1s var(--ease-expo) .2s both; }

/* Demo conversation. Static by default; site.js adds .is-playing plus one class per step (s-you, s-typing, ...). */
.ai-slot { display: grid; }
.ai-slot > * { grid-area: 1 / 1; }
.bubble-typing { display: none; justify-self: start; align-self: start; gap: 4px; padding: 14px 16px; background: var(--soft-2); border-bottom-left-radius: 4px; }
.bubble-typing span { width: 6px; height: 6px; border-radius: 50%; background: #8A93A3; animation: sxm-typing 1s var(--ease) infinite; }
.bubble-typing span:nth-child(2) { animation-delay: .15s; }
.bubble-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes sxm-typing { 0%, 60%, 100% { opacity: .35; translate: 0 0; } 30% { opacity: 1; translate: 0 -3px; } }
.approval-status { display: none; align-items: center; min-height: 36px; margin-top: 14px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.approval-status svg { width: 16px; height: 16px; margin-right: 8px; flex: none; }
.status-running, .status-done { display: inline-flex; align-items: center; }
.status-done { display: none; }
.spinner { width: 12px; height: 12px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sxm-spin .8s linear infinite; }
@keyframes sxm-spin { to { rotate: 360deg; } }
@keyframes sxm-flash { 50% { background: #F8D98A; } }

.demo.is-playing .bubble-typing { display: inline-flex; }
.demo.is-playing .bubble-you,
.demo.is-playing .bubble-ai,
.demo.is-playing .bubble-typing,
.demo.is-playing .demo-card + .demo-card { opacity: 0; translate: 0 8px; transition: opacity .45s var(--ease-expo), translate .45s var(--ease-expo); }
.demo.is-playing .bubble-you { transform-origin: right bottom; }
.demo.s-you .bubble-you,
.demo.s-typing .bubble-typing,
.demo.s-ai .bubble-ai,
.demo.s-card .demo-card + .demo-card { opacity: 1; translate: 0 0; }
.demo.s-card .tag-warn { animation: sxm-flash .9s var(--ease) .5s 2; }
.demo .fake-btn.primary { transition: scale .15s var(--ease), background .15s var(--ease); }
.demo.s-press .fake-btn.primary { scale: .94; background: var(--accent-ink); }
.demo.s-running .fake-actions, .demo.s-done .fake-actions { display: none; }
.demo.s-running .approval-status { display: flex; background: var(--accent-soft); color: var(--accent-deep); }
.demo.s-done .approval-status { display: flex; background: var(--ok-bg); color: var(--ok); }
.demo.s-done .status-running { display: none; }
.demo.s-done .status-done { display: inline-flex; }
.demo.s-out .bubble-you, .demo.s-out .bubble-ai, .demo.s-out .demo-card + .demo-card { opacity: 0; translate: 0 -6px; }

/* Pipeline: a request dot travels from step 1 to step 4 and each node pulses as it arrives.
   Linear 6s cycle: the dot moves between 4% and 76%, reaching node k at (4 + 24k)% of the cycle. */
.pipeline-node { z-index: 1; }
.pipeline::after { content: ""; position: absolute; z-index: 0; top: 8px; left: 9px; width: calc((100% - 96px) * .75 + 96px); height: 22px; pointer-events: none; opacity: 0;
	background: radial-gradient(circle 5px at 11px 11px, var(--accent) 98%, transparent), radial-gradient(circle 11px at 11px 11px, rgba(52, 97, 219, .22) 98%, transparent);
	background-repeat: no-repeat; }
.motion .pipeline.is-in::after { animation: sxm-packet 6s linear infinite; }
.motion .pipeline.is-in .pipeline-node { animation: sxm-node 6s var(--ease) infinite; }
.motion .pipeline.is-in li:nth-child(1) .pipeline-node { animation-delay: .24s; }
.motion .pipeline.is-in li:nth-child(2) .pipeline-node { animation-delay: 1.68s; }
.motion .pipeline.is-in li:nth-child(3) .pipeline-node { animation-delay: 3.12s; }
.motion .pipeline.is-in li:nth-child(4) .pipeline-node { animation-delay: 4.56s; }
.motion .pipeline:not(.is-live)::after, .motion .pipeline:not(.is-live) .pipeline-node { animation-play-state: paused; }
@keyframes sxm-packet {
	0% { opacity: 0; translate: 0 0; }
	4% { opacity: 1; translate: 0 0; }
	76% { opacity: 1; translate: 100% 0; }
	84%, 100% { opacity: 0; translate: 100% 0; }
}
@keyframes sxm-node {
	0% { box-shadow: 0 0 0 0 rgba(52, 97, 219, .45); scale: 1; }
	4% { scale: 1.12; }
	12% { box-shadow: 0 0 0 14px rgba(52, 97, 219, 0); scale: 1; }
	100% { box-shadow: 0 0 0 0 rgba(52, 97, 219, 0); }
}
@media (max-width: 900px) { .pipeline::after { display: none; } }

/* Scroll reveals (site.js adds .motion to <html> and .reveal / .is-in to elements). */
.motion .reveal { opacity: 0; }
.motion .reveal.is-in { animation: sxm-rise .8s var(--ease-expo) var(--d, 0ms) both; }
.motion .pipeline::before { transform: scaleX(0); transform-origin: left center; transition: transform 1.4s var(--ease-expo) .25s; }
.motion .pipeline.is-in::before { transform: scaleX(1); }
.motion .pipeline li:not(:last-child)::after { transform: scaleY(0); transform-origin: top center; transition: transform .7s var(--ease-expo) calc(var(--d, 0ms) + .25s); }
.motion .pipeline li.is-in::after { transform: scaleY(1); }
.motion .panel:not(.is-in) .switch.on { background: #C9CDD5; }
.motion .panel:not(.is-in) .switch.on::after { transform: none; }
.int-card { transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }

/* Intro loading screen. Only shown when the inline head script adds .intro to <html>;
   site.js steps it through and removes it. The failsafe hides it after 6s even if site.js never runs. */
.preloader { display: none; }
.intro .preloader { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--bg); transition: opacity .5s var(--ease), visibility .5s; animation: sxm-failsafe 0s linear 6s forwards; }
.intro.intro-done .preloader { opacity: 0; visibility: hidden; }
@keyframes sxm-failsafe { to { opacity: 0; visibility: hidden; } }
.preloader-inner { width: min(300px, calc(100% - 48px)); animation: sxm-rise .6s var(--ease-expo) both; }
.preloader-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.preloader-bar { height: 3px; margin-top: 24px; border-radius: 999px; background: var(--line); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .45s var(--ease); }
.preloader-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.preloader-steps li { display: flex; align-items: center; gap: 10px; transition: color .25s var(--ease); }
.preloader-steps li::before { content: ""; flex: none; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; border: 2px solid #C9CDD5; }
.preloader-steps li.is-active { color: var(--ink); }
.preloader-steps li.is-active::before { border-color: var(--accent); border-right-color: transparent; animation: sxm-spin .7s linear infinite; }
.preloader-steps li.is-done { color: var(--ink); }
.preloader-steps li.is-done::before { border: 0; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }
/* Hold the hero's entrance until the intro screen lifts. */
.intro:not(.intro-done) :is(.hero .pill, .hero h1, .hero .lead, .hero .waitlist, .hero .hero-proof, .demo, .page-hero .wrap > *, .single-head > *) { animation-play-state: paused; }

/* Navigation loader: thin bar + soft dim while the next page is requested. */
.nav-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 300; height: 3px; background: var(--accent); box-shadow: 0 0 10px rgba(52, 97, 219, .5); transform: scaleX(0); transform-origin: left center; opacity: 0; pointer-events: none; }
.is-navigating .nav-progress { opacity: 1; transform: scaleX(.9); transition: transform 3s cubic-bezier(.1, .75, .25, 1), opacity .15s linear; }
.is-navigating main { opacity: .6; transition: opacity .3s var(--ease) .1s; }
