/* ==========================================================================
   Syncora marketing site
   System font stack on purpose: no third-party font requests (GDPR-friendly).
   ========================================================================== */

:root {
    --ink: #0E0B2B;
    --ink-2: #2A2650;
    --text: #1B1838;
    --muted: #5D5980;
    --subtle: #8C88AA;
    --bg: #FFFFFF;
    --bg-soft: #F7F6FC;
    --bg-tint: #EFECFE;
    --line: #E6E3F2;
    --line-strong: #D5D0EC;

    --brand: #4B32E6;
    --brand-dark: #3A23C9;
    --brand-2: #7C3AED;
    --gradient: linear-gradient(135deg, #4B32E6 0%, #7C3AED 100%);

    --ok: #0E8A55;
    --ok-bg: #E6F6EE;
    --warn: #B45309;
    --warn-bg: #FEF3E2;
    --bad: #C2262E;
    --bad-bg: #FDECEC;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(14, 11, 43, 0.06);
    --shadow: 0 1px 2px rgba(14, 11, 43, 0.05), 0 8px 24px rgba(14, 11, 43, 0.07);
    --shadow-lg: 0 2px 4px rgba(14, 11, 43, 0.04), 0 24px 60px rgba(36, 22, 120, 0.16);

    --max: 1180px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 3px solid rgba(75, 50, 230, 0.45); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -9999px; top: 8px;
    background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo img { width: 30px; height: 30px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink-2); font-size: 0.95rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav .btn { margin-left: 8px; }

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 42px; height: 42px; border-radius: 8px; color: var(--ink);
}
.nav-toggle svg { margin: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1;
    padding: 14px 22px; border-radius: 10px; border: 1px solid transparent;
    cursor: pointer; transition: background .15s ease, box-shadow .15s ease, transform .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn-sm { padding: 10px 16px; font-size: 0.92rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(14,11,43,.12), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.nav .btn-primary { color: #fff; }
.nav .btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-tint); color: var(--ink); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Generic sections ---------- */
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #C9C5E6; }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--brand); margin-bottom: 16px;
}
.section-dark .eyebrow { color: #A99BFF; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin-top: 16px; }
.section-dark .section-head p { color: #B3AED6; }

.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(124, 58, 237, 0.10), transparent 60%),
        radial-gradient(700px 420px at 0% 0%, rgba(75, 50, 230, 0.08), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 22px; max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; list-style: none; color: var(--muted); font-size: 0.93rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--ok); flex: none; }

.page-hero { padding: 88px 0 72px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(800px 380px at 80% -20%, rgba(124, 58, 237, 0.09), transparent 60%), var(--bg-soft);
}
.page-hero .lead { margin-top: 20px; max-width: 680px; }
.page-hero .hero-ctas { margin-top: 28px; }

/* ---------- Product mock ---------- */
.mock {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-lg); overflow: hidden; font-size: 0.86rem;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.mock-bar .title { margin-left: 8px; color: var(--muted); font-weight: 500; }
.mock-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: 0.78rem; }
.mock-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.mock-body { padding: 18px; display: grid; gap: 14px; }

.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pipe-node { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; position: relative; }
.pipe-node .sys { font-size: 0.72rem; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pipe-node .name { font-weight: 600; color: var(--ink); margin-top: 2px; }
.pipe-node .count { margin-top: 6px; font-family: var(--mono); font-size: 0.8rem; color: var(--ok); }
.pipe-node.gap { border-color: #F3C3C5; background: var(--bad-bg); }
.pipe-node.gap .count { color: var(--bad); }

.gap-banner {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    background: var(--warn-bg); color: #7A3B06; font-weight: 500;
}
.gap-banner strong { color: #5C2C04; }

.txn-table { width: 100%; border-collapse: collapse; }
.txn-table th { text-align: left; font-weight: 600; font-size: 0.72rem; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 8px; }
.txn-table td { padding: 9px 8px; border-top: 1px solid var(--line); color: var(--ink-2); }
.txn-table td:first-child { font-family: var(--mono); font-size: 0.8rem; color: var(--ink); }
.txn-table .c { text-align: center; }
.tick, .cross, .wait { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.tick { background: var(--ok-bg); color: var(--ok); }
.cross { background: var(--bad-bg); color: var(--bad); }
.wait { background: var(--bg-soft); color: var(--subtle); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }

/* ---------- Logos / integration strip ---------- */
.strip { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.strip-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.strip-label { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.strip-items { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-weight: 600; font-size: 0.9rem; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .icon {
    width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
    background: var(--bg-tint); color: var(--brand); margin-bottom: 20px;
}
.section-dark .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); box-shadow: none; }
.section-dark .card p { color: #B3AED6; }
.section-dark .card .icon { background: rgba(169,155,255,0.14); color: #C4B8FF; }

.problem-card { border-left: 3px solid var(--bad); }
.problem-card .quote { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-2); background: var(--bg-soft); border-radius: 8px; padding: 10px 12px; margin-top: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-family: var(--mono); font-size: 0.82rem; font-weight: 600; color: var(--brand);
    display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bg-tint); margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 112px; }
.split.reverse > :first-child { order: 2; }
.split h2 { margin-bottom: 16px; }
.split p { color: var(--muted); font-size: 1.06rem; }
.checklist { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.checklist li::before {
    content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
    background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234B32E6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5'/%3E%3C/svg%3E") center/20px no-repeat;
}
.section-dark .checklist li { color: #DAD6F2; }
.section-dark .checklist li::before { background-color: rgba(169,155,255,0.16); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 24px; }
.panel-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--subtle); margin-bottom: 16px; }

/* Identity matching visual */
.match-rows { display: grid; gap: 10px; }
.match-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.match-row .sys { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.match-row code { font-family: var(--mono); font-size: 0.84rem; color: var(--ink-2); }
.match-result { margin-top: 14px; padding: 14px; border-radius: 10px; background: var(--gradient); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.match-result code { font-family: var(--mono); font-weight: 600; }
.match-result span { font-size: 0.86rem; opacity: .85; }

/* Timeline visual */
.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; padding: 12px 0; position: relative; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 36px; bottom: -6px; width: 2px; background: var(--line); }
.timeline .node { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.timeline .t-title { font-weight: 600; color: var(--ink); }
.timeline .t-sub { font-size: 0.86rem; color: var(--muted); }
.timeline time { font-family: var(--mono); font-size: 0.8rem; color: var(--subtle); }

/* Alert visual */
.alert-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.alert-card + .alert-card { margin-top: 12px; }
.alert-card .badge { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-tint); color: var(--brand); font-weight: 700; font-size: 0.8rem; }
.alert-card .a-title { font-weight: 600; color: var(--ink); }
.alert-card .a-body { font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
.alert-card .a-meta { font-size: 0.78rem; color: var(--subtle); margin-top: 6px; }

/* Comparison table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--bg-soft); font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.compare thead th.us { color: var(--brand); background: var(--bg-tint); }
.compare td.us { background: #FBFAFF; color: var(--ink); font-weight: 500; }
.compare td:first-child { font-weight: 600; color: var(--ink); width: 26%; }
.compare td { color: var(--muted); font-size: 0.96rem; }
.table-wrap { overflow-x: auto; }

/* Stats / facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fact { padding-top: 20px; border-top: 2px solid var(--brand); }
.fact .k { font-size: 1.6rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.fact .v { color: var(--muted); margin-top: 6px; font-size: 0.96rem; }
.section-dark .fact { border-top-color: #A99BFF; }
.section-dark .fact .k { color: #fff; }
.section-dark .fact .v { color: #B3AED6; }

.lang-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lang-list span { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; background: rgba(169,155,255,0.14); color: #DAD6F2; }
.section:not(.section-dark) .lang-list span { background: var(--bg-tint); color: var(--brand); }

/* Integrations */
.int-card { display: flex; flex-direction: column; }
.int-card .int-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.int-logo { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: #fff; flex: none; }
.int-card h3 { margin: 0; }
.int-card .int-type { font-size: 0.82rem; color: var(--subtle); font-weight: 500; }
.int-card dl { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 0.88rem; }
.int-card p { margin-bottom: 18px; }
.int-card dt { color: var(--subtle); }
.int-card dd { color: var(--ink-2); font-weight: 500; }

/* CTA band */
.cta-band { background: var(--ink); border-radius: 20px; padding: 64px; position: relative; overflow: hidden; color: #C9C5E6; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 100% 0%, rgba(124,58,237,.45), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(75,50,230,.35), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 14px; font-size: 1.08rem; }
.cta-band .hero-ctas { margin-top: 0; justify-content: flex-end; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; }

/* Roadmap note */
.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--bg-soft); border: 1px dashed var(--line-strong); color: var(--muted); font-size: 0.95rem; }
.note strong { color: var(--ink); }
.tag-soon { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--warn-bg); color: var(--warn); margin-left: 8px; vertical-align: middle; }

/* About */
.founder { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; }
.founder img { width: 240px; height: 240px; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.founder h3 { font-size: 1.4rem; }
.founder .role { color: var(--brand); font-weight: 600; margin-top: 4px; }
.founder p { color: var(--muted); margin-top: 14px; }
.founder .linkedin { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field label .opt { color: var(--subtle); font-weight: 400; }
.field input, .field select, .field textarea {
    font: inherit; font-size: 0.98rem; color: var(--ink);
    padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(75, 50, 230, 0.12); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 0.84rem; display: none; }
.field.invalid .err { display: block; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { color: var(--muted); font-size: 0.88rem; }
.consent { font-size: 0.86rem; color: var(--muted); }
.side-block { padding: 24px 0; border-top: 1px solid var(--line); }
.side-block:first-child { border-top: 0; padding-top: 0; }
.side-block h3 { font-size: 1rem; margin-bottom: 8px; }
.side-block p { color: var(--muted); font-size: 0.96rem; }
.side-block ol { color: var(--muted); padding-left: 20px; display: grid; gap: 8px; font-size: 0.96rem; }

/* Legal / prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin: 44px 0 12px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin-top: 10px; display: grid; gap: 6px; }
.prose .updated { color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A9A4CC; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.site-footer .logo { color: #fff; }
.footer-about { margin-top: 16px; font-size: 0.94rem; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 0.86rem; font-weight: 600; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #A9A4CC; font-size: 0.94rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.86rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .btn .arrow { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .steps, .grid-4, .facts { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-band { grid-template-columns: 1fr; padding: 48px; }
    .cta-band .hero-ctas { justify-content: flex-start; }
}

@media (max-width: 880px) {
    .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .split.reverse > :first-child { order: 0; }
    .split + .split { margin-top: 80px; }
    .section { padding: 80px 0; }
    .hero { padding: 56px 0 72px; }
    .page-hero { padding: 64px 0 56px; }
    .founder { grid-template-columns: 1fr; }

    .nav-toggle { display: grid; }
    .nav {
        position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
        box-shadow: var(--shadow); display: none;
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px; }
    .nav .btn { margin: 8px 0 0; }
}

@media (max-width: 600px) {
    .steps, .grid-2, .grid-3, .grid-4, .facts, .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .pipeline { grid-template-columns: repeat(2, 1fr); }
    .cta-band { padding: 36px 24px; }
    .card { padding: 24px; }
    .match-row { grid-template-columns: 1fr auto; }
    .match-row .sys { grid-column: 1 / -1; }
    .txn-table .hide-sm { display: none; }
}

@media print {
    .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
    .reveal { opacity: 1; transform: none; }
}

/* Let grid children shrink below their content width (prevents mobile overflow) */
.hero-grid > *, .split > *, .contact-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .steps > *, .footer-grid > * { min-width: 0; }
.mock { max-width: 100%; }
@media (max-width: 600px) {
    .pipe-node { padding: 8px 10px; }
    .txn-table th, .txn-table td { padding-left: 4px; padding-right: 4px; }
}
