
/* Layout: same look as the app (UI kit v0): white, Inter, one blue accent. Light hero with a product shot, then short sections with lots of air. */
:root {
  --bg: #FFFFFF;
  --bg-2: #F4F5F7;
  --ink: #111827;
  --ink-2: #5E626B;
  --ink-3: #8C9099;
  --rule: #E5E7EB;
  --night: #12235F;
  --night-2: #182C72;
  --night-rule: #2E4189;
  --night-fg: #FFFFFF;
  --night-muted: #B9C3E6;
  --accent: #2446C8; --accent-strong: #16308F; --accent-soft: #E3E9FB;
  --ok: #1E7A4C; --ok-soft: #E3F2EA;
  --warn: #8A6200; --warn-soft: #FBF1D6;
  --bad: #B42318; --bad-soft: #FDE7E5;
  --info: #3346B8; --info-soft: #E8EBFA;
  --shadow: 0 1px 1px rgba(11,12,14,.04), 0 12px 40px rgba(11,12,14,.10);
  --f-serif: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --wrap: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--f-sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1 { font: 700 clamp(2.4rem, 5.6vw, 4.2rem)/1.06 var(--f-serif); letter-spacing: -0.035em; }
h2 { font: 700 clamp(1.8rem, 3.6vw, 2.75rem)/1.1 var(--f-serif); letter-spacing: -0.03em; }
h3 { font: 500 1.05rem/1.3 var(--f-sans); letter-spacing: -0.005em; }
em { font-style: italic; }
h1 em, h2 em, h3 em { font-style: normal; color: inherit; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 500 .78rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.sub { color: var(--ink-2); font-size: 1.1rem; max-width: 46ch; }
.btn { display: inline-flex; align-items: center; gap: .5em; font: 600 .95rem/1 var(--f-sans); padding: .85em 1.3em; border-radius: 8px; background: var(--accent); color: #fff; border: 1px solid var(--accent); cursor: pointer; }
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.line:hover { border-color: var(--ink); background: transparent; }
.arrow::after { content: "→"; font-family: var(--f-sans); }
:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; border-radius: 6px; }

/* Header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--rule); }
.nav { display: flex; align-items: center; gap: 32px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font: 600 1.35rem/1 var(--f-serif); letter-spacing: -0.02em; }
.logo i { width: 18px; height: 18px; border-radius: 4px; background: var(--accent); display: inline-block; position: relative; }
.logo i::after { content: ""; position: absolute; inset: 5px 4px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links > a, .nav-links .dd > button { font: 400 .92rem/1 var(--f-sans); color: var(--ink-2); padding: 9px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.nav-links > a:hover, .nav-links .dd > button:hover, .nav-links > a[aria-current="page"] { color: var(--ink); }
.nav .btn { padding: .65em 1.1em; font-size: .9rem; }
.nav .login { font-size: .92rem; color: var(--ink); padding: .65em .9em; border-radius: 999px; border: 1px solid var(--rule); margin-right: -20px; }
.nav .login:hover { border-color: var(--ink); }
.nav .signin { color: var(--ink-2); font-size: .92rem; }
.dd { position: relative; }
.mega { position: absolute; top: calc(100% + 10px); left: -12px; background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 20px; }
.mega.wide { width: min(640px, 92vw); }
.mega.narrow { width: 240px; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mega .three { grid-template-columns: repeat(3, 1fr); column-gap: 8px; }
.dd-btn::after { content: ""; display: inline-block; width: 5px; height: 5px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: 8px; }

/* Pricing */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price > div { border-radius: 18px; padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 22px; align-content: start; min-width: 0; }
.price .them { background: var(--bg-2); }
.price .us { background: var(--ink); color: var(--bg); }
.price h3 { font: 600 1.6rem/1.1 var(--f-serif); letter-spacing: -0.01em; }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; }
.price li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--rule); font-size: .95rem; }
.price .us li { border-top-color: color-mix(in srgb, var(--bg) 18%, transparent); }
.price li span:last-child { font-family: var(--f-mono); font-size: .8rem; white-space: nowrap; }
.price .them li span:last-child { color: var(--ink-3); }
.price .us li span:last-child { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.price .total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; border-top: 1.5px solid currentColor; font-weight: 500; }
.price .total b { font: 600 1.6rem/1 var(--f-serif); }
.price .them .total b { color: var(--ink-3); }
.price .us .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); justify-self: start; }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }

/* How it works */
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 7vw, 96px); }
.howrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.howrow:nth-child(even) .howtxt { order: 2; }
.howtxt { display: grid; gap: 14px; }
.howtxt .n { font: 400 .8rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.howtxt h3 { font: 600 clamp(1.7rem, 3vw, 2.4rem)/1.1 var(--f-serif); letter-spacing: -0.015em; }
.howtxt p { color: var(--ink-2); font-size: 1.05rem; max-width: 44ch; }
.howvis { background: var(--bg-2); border-radius: 18px; padding: clamp(18px, 3vw, 32px); min-width: 0; }
.howvis .chat { background: none; padding: 0; }
.testapp { background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.ta-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.ta-h b { font-weight: 500; }
.testapp ul { list-style: none; margin: 0; padding: 6px 18px; }
.testapp li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.testapp li:last-child { border-bottom: 0; }
.testapp li i { width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft); position: relative; }
.testapp li i::after { content: ""; position: absolute; left: 5px; top: 5px; width: 7px; height: 4px; border-left: 1.5px solid var(--ok); border-bottom: 1.5px solid var(--ok); transform: rotate(-45deg); }
.testapp li small { color: var(--ink-3); font-family: var(--f-mono); font-size: .76rem; }
.ta-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bg-2); }
.ta-f b { display: block; font-weight: 500; }
.ta-f small { color: var(--ink-3); font-size: .8rem; }
.ta-f .mbtn { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 8px 14px; font-size: .84rem; font-weight: 500; white-space: nowrap; }
.tiles svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles .appt { background: var(--bg); border: 1px solid var(--rule); border-radius: 12px; padding: 14px; display: grid; gap: 10px; justify-items: start; }
.tiles .appt.add { border-style: dashed; background: transparent; color: var(--ink-3); grid-column: 1 / -1; justify-items: center; }
.page-hero + #howSection, .shot-wrap + #howSection, .shot-wrap + #problemSection { padding-top: clamp(64px, 9vw, 120px); }
#problemSection + #howSection { padding-top: 0; }
.how-cta { justify-content: center; margin-top: clamp(40px, 6vw, 64px); }
@media (max-width: 860px) {
  .howrow { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .howrow:nth-child(even) .howtxt { order: 0; }
}

/* Home: sections sit closer together */
section.tight { padding-block: clamp(56px, 8vw, 104px); }
section.tight + section.tight { padding-top: 0; }
.stats-sec { padding-block: clamp(48px, 6vw, 72px) 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats div { padding: 26px 20px; display: grid; gap: 6px; }
.stats div + div { border-left: 1px solid var(--rule); }
.stats b { font: 600 clamp(1.9rem, 3.4vw, 2.6rem)/1 var(--f-serif); letter-spacing: -0.02em; }
.stats span { color: var(--ink-2); font-size: .92rem; }
.stats b { white-space: nowrap; }
@media (max-width: 420px) { .stats b { font-size: 1.6rem; } .stats div { padding: 20px 14px; } }
@media (max-width: 760px) { .stats { grid-template-columns: minmax(0, 1fr); } .stats div + div { border-left: 0; border-top: 1px solid var(--rule); } }
.layers { display: grid; gap: 10px; align-content: start; }
.platgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(16px, 2.5vw, 28px); align-items: stretch; }
.platgrid .app { display: flex; flex-direction: column; }
.platgrid .dh { flex: 1; grid-template-rows: auto 1fr; }
.platgrid .dh-col { grid-template-rows: auto; grid-auto-rows: 1fr; }
.platgrid .dh-app { align-items: center; }
.platgrid .slab { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 22px; }
@media (max-width: 960px) { .platgrid { grid-template-columns: minmax(0, 1fr); } }
.dh { padding: 18px; display: grid; gap: 16px; background: var(--bg-2); }
.dh-hi { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.dh-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dh-col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.dh-col > small { color: var(--ink-3); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.dh-app { background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; padding: 10px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.dh-app i { width: 28px; height: 28px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-strong); font: 600 .7rem/28px var(--f-sans); font-style: normal; text-align: center; }
.dh-app b { display: block; font-weight: 600; font-size: .8rem; line-height: 1.25; }
.dh-app span { display: block; color: var(--ink-3); font-size: .7rem; line-height: 1.3; margin-top: 2px; }
@media (max-width: 560px) { .dh-cols { grid-template-columns: minmax(0, 1fr); } .dh-col:nth-child(n+2) .dh-app:nth-child(n+3) { display: none; } }
.slab { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px 26px; border-radius: 16px; border: 1px solid var(--rule); background: var(--bg); }
.slab-n { font: 600 1.1rem/1.2 var(--f-sans); font-style: normal; }
.slab-items { display: flex; flex-wrap: wrap; gap: 8px; }
.slab-items span { font-size: .86rem; padding: 7px 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink); }
@media (max-width: 760px) { .slab { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; } }
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.benefits div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--ink); }
.benefits b { font: 600 1.45rem/1.15 var(--f-serif); }
.benefits p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 860px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .benefits { grid-template-columns: minmax(0, 1fr); } }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps-note { margin-top: 16px; }
.secure.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.int-facts { margin-top: 16px; }
.trust-faq { margin-top: 24px; }
.hero-note { margin-top: 10px; color: var(--ink-3); font-size: .92rem; }
.closer-note { margin: -12px 0 0; opacity: .75; font-size: .95rem; }
@media (max-width: 760px) { .secure.three { grid-template-columns: minmax(0, 1fr); } }
.steps3 li { background: var(--bg-2); border-radius: 18px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 10px; align-content: start; }
.steps3 .n { font: 600 2.6rem/1 var(--f-serif); color: var(--ink-3); }
.steps3 h3 { font: 600 1.4rem/1.15 var(--f-serif); }
.steps3 p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .steps3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .steps3 { grid-template-columns: minmax(0, 1fr); } }
.secure { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.secure div { background: var(--bg); padding: 24px 22px; display: grid; gap: 8px; align-content: start; }
.secure b { font-weight: 500; }
.secure p { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 860px) { .secure { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .secure { grid-template-columns: minmax(0, 1fr); } }

/* Hero picture */
.apphub { display: grid; grid-template-columns: minmax(0, 1.4fr) 48px minmax(0, 1fr); align-items: center; }
.apphub svg:not(.wires) { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.apphub .hub-core { grid-column: 1; grid-row: 1; }
.hub-apps { padding: 14px; display: grid; gap: 8px; background: var(--bg-2); }
.hub-apps .dh-app { align-items: center; }
.hub-apps .dh-app i { display: grid; place-items: center; }
.hub-apps .dh-app i svg { width: 16px; height: 16px; }
.hub-apps .dh-app b { font-size: .86rem; }
.apphub .hub-wires { grid-column: 2; grid-row: 1; position: static; height: 340px; width: 48px; }
.apphub .hub-sys { grid-column: 3; grid-row: 1; height: 340px; }
.hub-sys { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.hub-sys .node { height: 50px; padding: 0 12px; }
.hub-sys .node .lg { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.hub-sys .node span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hub-sys .node i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
@media (max-width: 620px) {
  .apphub { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .apphub .hub-wires { display: none; }
  .apphub .hub-core { grid-column: 1; grid-row: 1; }
  .apphub .hub-sys { grid-column: 1; grid-row: 2; height: auto; }
  .hub-sys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
.flow-card { background: var(--bg); border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 36px); }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 300px) 72px minmax(0, 1fr); grid-template-rows: auto 340px; column-gap: 0; row-gap: 14px; align-items: stretch; }
.fl-h { font: 500 .74rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fl-h.c1 { grid-column: 1; } .fl-h.c3 { grid-column: 3; text-align: center; } .fl-h.c5 { grid-column: 5; }
.fl-stack { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; grid-row: 2; }
.fl-manual { grid-column: 1; } .fl-sys { grid-column: 5; }
.flow .wires { grid-row: 2; height: 340px; }
.flow .wires:not(.r) { grid-column: 2; } .flow .wires.r { grid-column: 4; }
.flow .wires:not(.r) path.flow { stroke-dasharray: 2 7; }
.fl-brief { height: 156px; margin: 0; display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; border: 1px dashed var(--ink-3); border-radius: 12px; background: var(--bg-2); font-size: .95rem; line-height: 1.5; color: var(--ink); min-width: 0; }
.fl-brief.r0 { transform: rotate(-1deg); } .fl-brief.r1 { transform: rotate(.8deg); }
.flow svg:not(.wires) { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fl-core { grid-column: 3; grid-row: 2; background: var(--ink); color: var(--bg); border-radius: 18px; padding: 20px; display: grid; gap: 14px; align-content: center; box-shadow: var(--shadow); }
.fl-core-h { display: flex; align-items: center; gap: 10px; }
.fl-core-h i { width: 24px; height: 24px; border-radius: 6px; background: var(--bg); position: relative; flex: none; }
.fl-core-h i::after { content: ""; position: absolute; inset: 7px 5px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.fl-core-h b { font: 600 1.25rem/1 var(--f-serif); }
.fl-core ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fl-core li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--bg) 10%, transparent); font-size: .88rem; }
.fl-core li span { flex: 1; min-width: 0; }
.fl-core li em { font-style: normal; font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--bg); }
.fl-core small { text-align: center; color: color-mix(in srgb, var(--bg) 60%, transparent); font-size: .78rem; }
.fl-sys .node { height: 50px; max-width: none; justify-content: flex-start; }
.fl-sys .node span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fl-sys .node i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.fl-arrow { display: none; }
@media (max-width: 860px) {
  .flow { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 12px; }
  .flow .wires { display: none; }
  .fl-h, .fl-stack, .fl-core, .fl-arrow { grid-column: 1 !important; grid-row: auto !important; }
  .fl-h.c1 { order: 1; } .fl-manual { order: 2; } .fl-arrow.a1 { order: 3; } .fl-h.c3 { order: 4; text-align: left; } .fl-core { order: 5; } .fl-arrow.a2 { order: 6; } .fl-h.c5 { order: 7; } .fl-sys { order: 8; }
  .fl-stack { gap: 8px; }
  .fl-sys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-arrow { display: block; text-align: center; color: var(--ink-3); font-size: 1.4rem; line-height: 1; }
  .fl-brief { transform: none !important; height: auto; }
}

.syschips { display: flex; flex-wrap: wrap; gap: 10px; }
.syschips a { border: 1px solid var(--rule); border-radius: 999px; padding: 10px 16px; font-size: .92rem; background: var(--bg); }
.syschips a:hover { border-color: var(--ink); }
.xlinks { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 1.02rem; }
.xlinks a { border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.xlinks a:hover { border-color: var(--ink); }
.syschips a.all { border-color: transparent; color: var(--ink-2); }
.inds.one { grid-template-columns: minmax(0, 1fr); max-width: 880px; border-radius: 16px; }
.inds.one ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
@media (max-width: 640px) { .inds.one ul { grid-template-columns: minmax(0, 1fr); } }
.inds.one .ind { padding: 28px; }
.inds.one .sw { font-size: 1rem; }

/* Industry customizations */
.inds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.ind { background: var(--bg); padding: 24px 22px 26px; display: grid; gap: 16px; align-content: start; }
.ind-n { font: 600 1.45rem/1.1 var(--f-serif); letter-spacing: -0.01em; justify-self: start; }
.ind-n:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ind ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sw { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 0; font: 400 .88rem/1.4 var(--f-sans); color: var(--ink-2); cursor: pointer; }
.sw i { flex: none; width: 26px; height: 15px; border-radius: 999px; background: var(--ink); position: relative; margin-top: 2px; transition: background .18s; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 13px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); transition: left .18s; }
.sw[aria-checked="false"] { color: var(--ink-3); }
.sw[aria-checked="false"] i { background: color-mix(in srgb, var(--ink-3) 45%, var(--bg)); }
.sw[aria-checked="false"] i::after { left: 2px; }
.sw:hover span { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .sw i, .sw i::after { transition: none; } }
@media (max-width: 980px) { .inds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .inds { grid-template-columns: minmax(0, 1fr); } }

/* Platform stack: apps on top, shared platform in the middle, systems below */
.stack { background: var(--bg-2); border-radius: 22px; padding: clamp(18px, 3vw, 36px); display: grid; }
.layer { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; }
.layer-l { display: grid; gap: 4px; }
.layer-l b { font-weight: 500; font-size: .95rem; }
.layer-l span { font-size: .82rem; color: var(--ink-3); }
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.appt { background: var(--bg); border: 1px solid var(--rule); border-radius: 12px; padding: 14px; display: grid; gap: 10px; min-width: 0; }
.appt-h { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 500; }
.appt-h span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt small { font-size: .78rem; color: var(--ink-3); font-family: var(--f-mono); }
.appt.add { border-style: dashed; background: transparent; color: var(--ink-3); place-content: center; justify-items: center; }
.appt.add .appt-h { color: var(--ink-2); }
.stack svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ties { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; height: 30px; }
.ties > div { display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.ties span { position: relative; }
.ties span::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1.5px dashed var(--ink-3); opacity: .55; }
.plat { background: var(--ink); color: var(--bg); border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.plat div { display: flex; align-items: center; gap: 9px; font-size: .88rem; min-width: 0; }
.plat div span { min-width: 0; }
.sysrow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.sysrow div { border: 1px solid var(--rule); border-radius: 999px; padding: 10px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .85rem; color: var(--ink-2); background: var(--bg); min-width: 0; text-align: center; }
@media (max-width: 980px) {
  .layer, .ties { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ties > .gap { display: none; }
  .plat { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .sysrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .apps, .plat, .sysrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ties { display: none; }
  .layer + .layer { margin-top: 22px; }
}

/* Integrations hub: categories on each side, wired into one core */
.hub { display: grid; grid-template-columns: minmax(0, 220px) 80px 160px 80px minmax(0, 220px); justify-content: center; align-items: center; height: 280px; }
.hub-col { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.node { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg); font-size: .9rem; white-space: nowrap; }
.node svg, .core svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.node svg { color: var(--ink-2); }
.wires { width: 100%; height: 100%; overflow: visible; }
.wires path { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.wires path.flow { stroke: var(--ink-3); stroke-dasharray: 3 9; }
@media (prefers-reduced-motion: no-preference) { .wires path.flow { animation: flow 1.4s linear infinite; } .wires.r path.flow { animation-direction: reverse; } }
@keyframes flow { to { stroke-dashoffset: -24; } }
.core { width: 160px; height: 160px; border-radius: 28px; background: var(--ink); color: var(--bg); display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; font-size: .92rem; line-height: 1.3; padding: 0 22px; box-shadow: var(--shadow); }
.core i { width: 34px; height: 34px; border-radius: 8px; background: var(--bg); position: relative; }
.core i::after { content: ""; position: absolute; inset: 10px 8px; border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
@media (max-width: 860px) {
  .hub { grid-template-columns: 1fr 1fr; height: auto; gap: 10px; }
  .hub .wires { display: none; }
  .hub .core { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: 100%; height: auto; padding: 22px; border-radius: 16px; grid-auto-flow: column; }
  .hub-col { gap: 10px; height: auto; }
  .node { white-space: normal; }
}
.mega a { display: block; padding: 6px 8px; margin-left: -8px; border-radius: 6px; font-size: .92rem; color: var(--ink-2); }
.mega a:hover { background: var(--bg-2); color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; font: 500 .88rem var(--f-sans); color: var(--ink); cursor: pointer; }
.mobile-panel { padding-block: 8px 20px; border-top: 1px solid var(--rule); }
.mobile-panel a { display: block; padding: 9px 0; color: var(--ink-2); }
.mobile-panel .eyebrow { display: block; margin: 16px 0 4px; }
.nav-links > a, .nav-links .dd > button, .nav .btn, .nav .login { white-space: nowrap; }
@media (max-width: 1080px) { .nav-links, .nav > .btn, .nav .signin, .nav .login { display: none; } .menu-toggle { display: block; } }

section { padding-block: clamp(80px, 11vw, 140px); }
.head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }
.head.center { text-align: center; justify-items: center; margin-inline: auto; }

/* Hero */
.hero.split { padding-block: clamp(48px, 7vw, 96px); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.hero.split .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; justify-items: start; text-align: left; gap: clamp(32px, 5vw, 64px); }
.hero.split .hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero.split h1 { max-width: 16ch; font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.03em; }
.hero.split .sub { margin-inline: 0; font-size: 1.2rem; }
.hero.split .hero-cta { justify-content: flex-start; }
.hero-shot { width: 100%; min-width: 0; }
.hero-shot .mock { font-size: .82rem; box-shadow: none; }
.hero-shot .mock-h, .hero-shot .mock-b { padding-inline: 16px; }
.conn-lbl { font-size: .84rem; color: var(--ink-3); }
/* Logos */
.lg { width: 28px; height: 28px; flex: none; border-radius: 7px; object-fit: contain; background: #fff; border: 1px solid var(--rule); padding: 3px; }
.lg.mono { display: inline-grid; place-content: center; padding: 0; background: var(--bg-2); color: var(--ink-2); font: 600 .68rem/1 var(--f-sans); letter-spacing: .02em; }
.lg.big { width: 48px; height: 48px; border-radius: 12px; padding: 6px; margin-bottom: 6px; }
.lg.big.mono { font-size: 1rem; }
.lg.sm { width: 16px; height: 16px; border-radius: 4px; padding: 1px; margin-right: 6px; vertical-align: -3px; }
.lg.sm.mono { font-size: .5rem; }
.syslinks a { display: flex; align-items: center; gap: 10px; }
.intcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.intcat { border: 1px solid var(--rule); border-radius: 16px; padding: 22px; display: grid; gap: 14px; align-content: start; background: var(--bg); }
.intcat h3 { font: 600 1rem/1.3 var(--f-sans); }
.intcat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.intcat li a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; margin-inline: -8px; border-radius: 8px; font-size: .94rem; }
.intcat li a:hover { background: var(--bg-2); }
.intcat .more { font-size: .9rem; color: var(--accent); font-weight: 500; }
.intcat .more:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) { .intcats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .intcats { grid-template-columns: minmax(0, 1fr); } }
/* Rules: a settings screen in the app's own look */
.rules-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.rules-split .head { margin-bottom: 0; }
.app.rules { font-size: .95rem; }
.app.rules ul { list-style: none; margin: 0; padding: 4px 18px; }
.app.rules li + li { border-top: 1px solid var(--rule); }
.app.rules .sw { justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; font-size: .95rem; color: var(--ink); }
.app.rules .sw[aria-checked="false"] { color: var(--ink-2); }
.app.rules .sw i { width: 36px; height: 21px; margin-top: 0; background: var(--accent); }
.app.rules .sw i::after { width: 17px; height: 17px; left: 17px; }
.app.rules .sw[aria-checked="false"] i { background: color-mix(in srgb, var(--ink-3) 40%, var(--bg)); }
.app.rules .sw[aria-checked="false"] i::after { left: 2px; }
@media (max-width: 860px) { .rules-split { grid-template-columns: minmax(0, 1fr); } }
.hero.split .crumbs-dark { justify-content: flex-start; }
@media (max-width: 520px) {
  .hero-shot .mock { font-size: .74rem; }
  .hero-shot .mock-h, .hero-shot .mock-b { padding-inline: 12px; }
  .hero-shot .mock td { white-space: normal; }
  .hero-shot .pill { font-size: .64rem; padding: 3px 6px; }
}
.app { background: var(--bg); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; font-size: .82rem; }
.app-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.app-top i { width: 16px; height: 16px; border-radius: 4px; background: var(--accent); flex: none; }
.app-top b { font-weight: 600; }
.app-top span { margin-left: auto; color: var(--ink-3); font-size: .76rem; border: 1px solid var(--rule); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.app-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--rule); overflow: hidden; }
.app-tabs span { padding: 9px 8px; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.app-tabs .on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 500; }
.app-body { padding: 14px; display: grid; gap: 14px; background: var(--bg-2); }
.app-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.app-kpis div { background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.app-kpis small { color: var(--ink-3); font-size: .72rem; }
.app-kpis b { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.app-tbl { background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.app-tbl div { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--rule); }
.app-tbl div:first-child { border-top: 0; color: var(--ink-3); font-size: .72rem; }
.app-tbl div > :nth-child(3) { font-variant-numeric: tabular-nums; text-align: right; }
.app-tbl div > span:first-child, .app-tbl div > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .hero.split .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero.split h1 { max-width: 16ch; }
}
@media (max-width: 520px) {
  .app-tbl div { grid-template-columns: minmax(0, 1fr) auto auto; }
  .app-tbl div > :nth-child(2) { display: none; }
  .app-kpis div:nth-child(3) { display: none; }
  .app-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hero { background: var(--bg); color: var(--ink); padding-block: clamp(80px, 12vw, 150px) clamp(200px, 22vw, 280px); position: relative; overflow: hidden; }
.hero .wrap { position: relative; display: grid; gap: 28px; justify-items: center; text-align: center; }
.hero .eyebrow { color: var(--ink-3); }
.hero h1 { max-width: 17ch; }
.hero .sub { color: var(--ink-2); margin-inline: auto; }
.hero .btn.light { background: var(--accent); color: #fff; border-color: var(--accent); }
.hero .btn.dark-line { background: transparent; color: var(--ink); border-color: var(--rule); }
.hero .crumbs-dark { color: var(--ink-3); }
.hero .crumbs-dark a:hover { color: var(--ink); }
.hero-cta { justify-content: center; margin-top: 4px; }
.btn.dark-line { background: transparent; color: var(--night-fg); border-color: var(--night-rule); }
.btn.dark-line:hover { border-color: var(--night-muted); opacity: 1; }
.problem { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.whynow { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 12px; max-width: 760px; }
.whynow .big { font: 600 clamp(1.8rem, 3.6vw, 2.8rem)/1.1 var(--f-serif); letter-spacing: -0.015em; }
.whynow p:not(.big) { color: var(--ink-2); font-size: 1.08rem; }
.pcard { background: var(--bg-2); border-radius: 18px; padding: clamp(24px, 3.5vw, 36px); display: grid; gap: 14px; align-content: start; border: 1.5px solid transparent; }
.pcard.on { border-color: var(--accent); background: var(--bg); }
.pcard h3 { font: 600 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--f-serif); letter-spacing: -0.01em; }
.pcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pcard li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); }
.pcard li::before { content: "✕"; color: var(--bad); font-size: .8rem; flex: none; }
.pcard.yes li::before { content: "✓"; color: var(--ok); }
.problem.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plink { font-weight: 500; justify-self: start; margin-top: 4px; }
.plink:hover { text-decoration: underline; text-underline-offset: 4px; }
.either { margin-top: 28px; font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.either b { color: var(--ink); font-weight: 500; }
@media (max-width: 980px) { .problem, .problem.two { grid-template-columns: minmax(0, 1fr); } }

/* Product shot */
.shot-wrap { margin-top: calc(-1 * clamp(150px, 18vw, 220px)); position: relative; z-index: 2; padding-bottom: 0; }
.mock table { width: 100%; border-collapse: collapse; }
.mock th { text-align: left; font: 400 .72rem/1 var(--f-sans); color: var(--ink-3); padding: 10px 8px 8px 0; }
.mock td { padding: 10px 8px 10px 0; border-top: 1px solid var(--rule); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mock td.num { font-family: var(--f-mono); font-size: .8rem; }

.pill { display: inline-block; font: 500 .7rem/1 var(--f-sans); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.pillars > div { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--ink); }
.pillars p { color: var(--ink-2); }
.pillars .big { font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--f-serif); letter-spacing: -0.015em; }
@media (max-width: 780px) { .pillars { grid-template-columns: 1fr; } }

/* Chat example */
.am { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.am > * { min-width: 0; }
.am .head { margin: 0; }
.chat { background: var(--bg-2); border-radius: 18px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 10px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: .93rem; background: var(--bg); border: 1px solid var(--rule); }
.msg.me { margin-left: auto; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.msg small { display: block; font-size: .74rem; color: var(--ink-3); margin-bottom: 3px; }
.msg.me small { color: var(--ink-3); }
.ready { padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--rule); font-size: .9rem; display: grid; gap: 10px; }
.ready-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ready b { font-weight: 500; }
.ready ul { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 6px; color: var(--ink-2); font-size: .86rem; }
.ready li { display: flex; gap: 10px; align-items: baseline; }
.ready li::before { content: ""; width: 10px; height: 5px; border-left: 1.5px solid var(--ok); border-bottom: 1.5px solid var(--ok); transform: rotate(-45deg) translateY(-2px); flex: none; }
@media (max-width: 820px) { .am { grid-template-columns: 1fr; } }

/* Gallery */
.tabsbar { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
.tabsbar button { background: none; border: 0; font: 400 .94rem/1 var(--f-sans); color: var(--ink-3); padding: 0 0 14px; cursor: pointer; border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
.tabsbar button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr; } }
.gcard { display: grid; gap: 14px; align-content: start; min-width: 0; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; }
.gshot { background: var(--bg-2); border-radius: 14px; height: 230px; padding: 22px 22px 0; overflow: hidden; position: relative; transition: background .2s; }
.gcard:hover .gshot { background: color-mix(in srgb, var(--bg-2) 70%, var(--rule)); }
.gshot .mock, .gshot .phone { box-shadow: var(--shadow); }
.gmeta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.gmeta span { font-size: .84rem; color: var(--ink-3); white-space: nowrap; }
.gcard.custom .gshot { background: var(--accent-soft); color: var(--ink); padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.gcard.custom:hover .gshot { background: color-mix(in srgb, var(--accent-soft) 80%, var(--accent)); }
.gcard.custom .gmeta span { color: var(--info); font-weight: 500; }
.brief { border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); background: var(--bg); border-radius: 12px; padding: 16px 18px; font-size: .98rem; line-height: 1.45; }
.brief small { display: block; font: 500 .7rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.brief-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.brief-tags b { font-weight: 400; font-size: .8rem; color: var(--night-muted); border: 1px solid var(--night-rule); border-radius: 999px; padding: 5px 11px; }
.brief-tags b:last-child { background: var(--night-fg); color: var(--night); border-color: var(--night-fg); }
.nw { white-space: nowrap; }
@media (max-width: 620px) { .brief-tags { display: none; } .brief { font-size: .92rem; } }

/* Mocks */
.mock { background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; font-size: .76rem; }
.mock-h { padding: 11px 14px; border-bottom: 1px solid var(--rule); font-weight: 500; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mock-b { padding: 4px 14px 12px; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.board > div { display: grid; gap: 6px; align-content: start; }
.board .ch { font-size: .68rem; color: var(--ink-3); }
.board .tk { border: 1px solid var(--rule); border-radius: 8px; padding: 8px; display: grid; gap: 2px; background: var(--bg); }
.board .tk small { color: var(--ink-3); font-size: .66rem; }
.phone { width: 210px; margin: 0 auto; border: 1px solid var(--rule); border-radius: 26px; background: var(--bg); padding: 16px 14px; font-size: .76rem; display: grid; gap: 8px; }
.phone b { font-weight: 500; font-size: .88rem; }
.phone small { color: var(--ink-3); margin-top: -6px; }
.phone ul { list-style: none; margin: 0; padding: 0; display: grid; }
.phone li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--rule); }
.phone li span:last-child { font-family: var(--f-mono); color: var(--ink-2); }
.phone .pbtn { text-align: center; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 8px; font-weight: 500; }
.form { display: grid; gap: 7px; padding: 12px 14px; }
.form div { display: flex; justify-content: space-between; gap: 10px; }
.form span:first-child { color: var(--ink-3); }
.form .pills { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--rule); justify-content: flex-start; }

/* Simple cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.card { background: var(--bg); padding: 24px; display: grid; gap: 8px; align-content: start; }
.card p { color: var(--ink-2); font-size: .92rem; }
.card .sys { margin-top: 6px; font-size: .78rem; color: var(--ink-3); }

/* Integrations */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.logos div { background: var(--bg); padding: 26px 22px; display: grid; gap: 10px; justify-items: start; }
.logos b { font-weight: 500; }
@media (max-width: 820px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.tag { font: 400 .7rem/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.tag.live { color: var(--ok); }
.tag.live::before { content: "● "; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.steps li { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--ink); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 .8rem/1 var(--f-mono); color: var(--ink-3); }
.steps p { color: var(--ink-2); font-size: .94rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Compare */
.cmp-wrap { overflow-x: auto; }
table.cmp { width: 100%; min-width: 720px; border-collapse: collapse; }
table.cmp th, table.cmp td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: .95rem; }
table.cmp thead th { font: 400 .8rem/1.3 var(--f-sans); color: var(--ink-3); }
table.cmp thead th.us, table.cmp td.us { color: var(--ink); font-weight: 500; }
table.cmp tbody th { font-weight: 400; color: var(--ink-3); width: 22%; }
table.cmp td { color: var(--ink-2); }
.fine { margin-top: 16px; font-size: .8rem; color: var(--ink-3); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--rule); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--ink-2); max-width: 62ch; }

/* Page heroes */
.page-hero { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px); }
.page-hero .wrap { display: grid; gap: 22px; }
.page-hero.split .wrap { grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.page-hero.split .wrap > * { min-width: 0; }
.ph { display: grid; gap: 22px; align-content: center; }
.visual { background: var(--bg-2); border-radius: 18px; padding: clamp(20px, 4vw, 40px); }
@media (max-width: 860px) { .page-hero.split .wrap { grid-template-columns: 1fr; } }
.page-hero + section { padding-top: 0; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: .92rem; color: var(--ink-2); }
.links a:hover { color: var(--ink); }

/* Closer */
.closer { background: var(--night); color: var(--night-fg); }
.closer .wrap { display: grid; gap: 26px; justify-items: center; text-align: center; }
.closer .sub { color: var(--night-muted); }
.closer .btn { background: var(--night-fg); color: var(--night); border-color: var(--night-fg); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact > * { min-width: 0; }
form.intake { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; color: var(--ink-2); }
.field input, .field textarea, .field select { font: 400 1rem/1.4 var(--f-sans); padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field .hint { font-size: .82rem; color: var(--ink-3); }
.field .opt { color: var(--ink-3); font-size: .8rem; margin-left: 4px; }
.field.bad input, .field.bad textarea, .field.bad .combo-box { border-color: var(--bad); }
.err { font-size: .9rem; color: var(--bad); }
.combo { position: relative; }
.combo-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; min-height: 48px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); cursor: text; }
.combo-box:focus-within { border-color: var(--ink); }
.field .combo-box input { flex: 1; min-width: 150px; width: auto; border: 0; padding: 6px 4px; background: transparent; }
.field .combo-box input:focus { outline: none; }
.chipx { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-2); border-radius: 999px; padding: 4px 4px 4px 11px; font-size: .86rem; max-width: 100%; }
.chipx small { font-size: .7rem; color: var(--ink-3); }
.chipx.other { background: var(--info-soft); }
.chipx button { border: 0; background: none; color: var(--ink-2); cursor: pointer; font-size: 1rem; line-height: 1; width: 22px; height: 22px; border-radius: 50%; }
.chipx button:hover { background: var(--rule); color: var(--ink); }
.combo-list { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 6px); max-height: 260px; overflow-y: auto; list-style: none; margin: 0; padding: 6px; background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow); }
.combo-list li { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: .92rem; }
.combo-list li[aria-selected="true"] { background: var(--bg-2); }
.combo-list li.add { color: var(--info); }
.note { font-size: .88rem; color: var(--ink-2); background: var(--bg-2); border-radius: 10px; padding: 12px 14px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* Integration pages */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sys-hero { padding-block: clamp(56px, 9vw, 110px) clamp(170px, 18vw, 220px); }
.sys-hero h1 { max-width: 18ch; font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .82rem; color: var(--ink-3); }
.crumbs-dark { color: var(--night-muted); justify-content: center; }
.facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.crumbs-dark a:hover { color: var(--night-fg); }
.btn.light { background: var(--night-fg); color: var(--night); border-color: var(--night-fg); }
.conn { background: var(--bg); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 24px; align-items: center; }
.conn-node { border: 1px solid var(--rule); border-radius: 14px; padding: 22px 18px; display: grid; gap: 6px; justify-items: center; text-align: center; min-width: 0; }
.conn-node b { font-weight: 500; overflow-wrap: anywhere; }
.conn-node b.serif { font: 600 1.5rem/1.15 var(--f-serif); letter-spacing: -0.01em; }
.conn-node small { color: var(--ink-3); font-size: .8rem; }
.core-node { background: var(--accent-soft); border-color: transparent; }
.core-node i { width: 30px; height: 30px; border-radius: 7px; background: var(--accent); position: relative; margin-bottom: 4px; }
.core-node i::after { content: ""; position: absolute; inset: 9px 7px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; }
.conn-mid { display: grid; gap: 12px; justify-items: center; text-align: center; position: relative; }
.conn-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; position: relative; z-index: 1; }
.conn-chips span { background: var(--bg-2); border-radius: 999px; padding: 6px 12px; font-size: .84rem; }
.conn-line { position: absolute; left: -24px; right: -24px; top: 50%; border-top: 1.5px dashed var(--ink-3); opacity: .5; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.facts > div { background: var(--bg); padding: 18px 20px; display: grid; gap: 4px; }
.facts dt { font-size: .8rem; color: var(--ink-3); }
.facts dd { margin: 0; font-size: .95rem; }
.facts a { text-decoration: underline; text-underline-offset: 3px; }
.syslinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 20px; }
.syslinks a { padding: 7px 0; color: var(--ink-2); font-size: .93rem; border-bottom: 1px solid var(--rule); }
.syslinks a:hover { color: var(--ink); }
.dir-search { margin-top: 8px; max-width: 560px; }
.dir-search input { width: 100%; font: 400 1rem/1.4 var(--f-sans); padding: 14px 18px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); color: var(--ink); }
.dir-search input:focus { outline: none; border-color: var(--ink); }
.dir-cat + .dir-cat { margin-top: 48px; }
.dir-cat h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.dir-cat h2 span { font: 400 .9rem var(--f-mono); color: var(--ink-3); vertical-align: middle; }
@media (max-width: 860px) {
  .conn { grid-template-columns: minmax(0, 1fr); }
  .conn-line { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}

/* Phone layout */
.mobile-panel { max-height: calc(100dvh - 60px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.mobile-panel > a { font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--rule); padding: 12px 0; }
.mobile-panel details { border-bottom: 1px solid var(--rule); }
.mobile-panel summary { list-style: none; cursor: pointer; padding: 12px 0; font-size: 1.05rem; display: flex; justify-content: space-between; }
.mobile-panel summary::-webkit-details-marker { display: none; }
.mobile-panel summary::after { content: "+"; color: var(--ink-3); }
.mobile-panel details[open] summary::after { content: "−"; }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; padding-bottom: 10px; }
.mp-grid a { padding: 7px 0; font-size: .92rem; }
.mobile-panel .btn { flex: 1; justify-content: center; }
@media (max-width: 700px) {
  section { padding-block: 64px; }
  .page-hero { padding-block: 48px 32px; }
  .head { margin-bottom: 32px; }
  .sub { font-size: 1.02rem; }
  h2 { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .hero { padding-block: 56px 150px; }
  .hero .wrap { gap: 22px; }
  .shot-wrap { margin-top: -110px; }
  .main-h b { font-size: .95rem; }
  /* Tab rows scroll sideways instead of wrapping */
  .tabsbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding-inline: max(20px, env(safe-area-inset-left, 0px)); gap: 20px; }
  .tabsbar::-webkit-scrollbar { display: none; }
  .tabsbar button { white-space: nowrap; flex: none; }
  .gshot { height: 210px; padding: 16px 16px 0; }
  /* Comparison: one card per row */
  .cmp-wrap { overflow: visible; }
  table.cmp, table.cmp tbody, table.cmp tr, table.cmp th, table.cmp td { display: block; min-width: 0; width: auto; }
  table.cmp thead { display: none; }
  table.cmp tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  table.cmp tbody th { padding: 0 0 8px; border: 0; color: var(--ink); font-weight: 500; width: auto; }
  table.cmp td { padding: 4px 0; border: 0; display: grid; grid-template-columns: 112px 1fr; gap: 10px; font-size: .9rem; }
  table.cmp td::before { content: attr(data-label); color: var(--ink-3); font-size: .8rem; }
  table.cmp td.us::before { color: var(--ink); }
  /* Pricing, platform, chat */
  .price > div { padding: 22px; }
  .price li { font-size: .9rem; }
  .stack { padding: 16px; border-radius: 16px; }
  .appt { padding: 12px; }
  .appt-h { align-items: flex-start; }
  .appt-h span { white-space: normal; line-height: 1.3; }
  .msg { max-width: 92%; }
  .closer h2 { font-size: 2rem; }
  .foot { gap: 24px 16px; }
}
/* Phones: card lists become swipe sliders, with the next card peeking in */
@media (max-width: 700px) {
  .gallery, .inds, .cards.slide {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px)));
    padding-inline: max(20px, env(safe-area-inset-left, 0px));
    scroll-padding-inline: max(20px, env(safe-area-inset-left, 0px));
    scrollbar-width: none; background: none; border: 0; border-radius: 0;
  }
  .gallery::-webkit-scrollbar, .inds::-webkit-scrollbar, .cards.slide::-webkit-scrollbar { display: none; }
  .gallery > *, .inds > *, .cards.slide > * { flex: 0 0 82%; scroll-snap-align: start; }
  .inds > .ind, .cards.slide > .card { border: 1px solid var(--rule); border-radius: 16px; }
  .cards.slide > .card { flex-basis: 72%; }
  .inds.one { display: block; margin-inline: 0; padding-inline: 0; }
  .gallery + .links, .inds + .links { margin-top: 18px; }
  .gmeta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .gshot { padding: 14px 14px 0; }
  .gshot .mock { font-size: .68rem; }
  .gshot .mock-h, .gshot .mock-b { padding-inline: 10px; }
  .gshot .pill { font-size: .62rem; padding: 3px 6px; }
}

@media (max-width: 380px) {
  h1 { font-size: 2.45rem; }
  .apps, .plat, .sysrow, .hub-col { grid-template-columns: 1fr 1fr; }
  .node { padding: 0 10px; font-size: .82rem; }
}

footer { border-top: 1px solid var(--rule); padding-block: 56px 40px; font-size: .9rem; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.copy { margin-top: 48px; color: var(--ink-3); font-size: .8rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } }
/* Phone: more air between sections, one platform picture */
@media (max-width: 620px) {
  section.tight { padding-block: 80px; }
  section.tight + section.tight { padding-top: 0; }
  .head { gap: 12px; margin-bottom: 32px; }
  .hero.split .hero-copy { gap: 20px; }
  .hero-note { margin-top: 0; }
  .platgrid { grid-template-columns: minmax(0, 1fr); }
  .platgrid .layers { display: none; }
  .apphub .hub-sys .node:nth-child(5) { display: none; }
  .steps3, .problem, .intcats { gap: 14px; }
  .links { margin-top: 24px; }
  .int-facts, .trust-faq { margin-top: 28px; }
}
