/* Patchkin marketing site. Plain CSS, self-hosted fonts, no external requests. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
:root {
  --bg: #ffffff; --bg2: #f6f8f1; --bg3: #eef2e4; --card: #ffffff; --ink: #0d1108; --ink2: #323a27; --muted: #5d6750; --line: #e3e8d8; --line2: #d3dac3;
  --accent: #c7f36a; --accent2: #b4e64a; --on-accent: #0b1203; --accent-ink: #3b6400; --glow: rgba(160, 220, 40, .22);
  --warn: #a35a06; --warn-bg: #fdf1d3; --bad: #b42318; --bad-bg: #fde7e4; --ok: #17794a; --ok-bg: #dcf4e6;
  --dark: #0a0d07; --dark2: #12160d; --dark-ink: #eef3e2; --dark-muted: #a3ad92; --dark-line: #262d1b;
  --shadow: 0 1px 2px rgba(13,17,8,.05), 0 24px 60px -12px rgba(13,17,8,.18); --shadow-s: 0 1px 2px rgba(13,17,8,.06), 0 8px 24px -8px rgba(13,17,8,.14);
  --r: 16px; --max: 1640px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090c06; --bg2: #0e1209; --bg3: #141a0d; --card: #11160b; --ink: #f1f5e6; --ink2: #cfd8bd; --muted: #a0aa8f; --line: #232a18; --line2: #2f3822;
    --accent-ink: #c7f36a; --glow: rgba(160, 220, 40, .14);
    --warn: #f5b84b; --warn-bg: #3a2a0a; --bad: #ff8a80; --bad-bg: #3b1512; --ok: #6ee7a0; --ok-bg: #11301f;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 30px 70px -14px rgba(0,0,0,.7); --shadow-s: 0 1px 2px rgba(0,0,0,.5), 0 10px 30px -10px rgba(0,0,0,.6);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, picture { max-width: 100%; display: block; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg3); padding: .12em .4em; border-radius: 6px; }
.wrap { width: min(100% - clamp(32px, 5.5vw, 112px), var(--max)); margin-inline: auto; }
.narrow { max-width: 820px; margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 99; font-weight: 600; }
.skip:focus { left: 8px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -.045em; font-weight: 750; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.center { text-align: center; } .center .lead { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.center .eyebrow { justify-content: center; }
.hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 70%, transparent) 62% 92%, transparent 92%); padding: 0 .08em; }
.muted { color: var(--muted); } .small { font-size: .9rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.bar { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.03em; text-decoration: none; font-size: 1.2rem; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 900; font-size: 1.05rem; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { text-decoration: none; padding: 8px 13px; border-radius: 9px; font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--bg2); } .nav a[aria-current="page"] { color: var(--ink); background: var(--bg2); }
.bar-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; width: 44px; height: 44px; font-size: 1.25rem; cursor: pointer; }
.m-only { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 11px; font: 600 .96rem/1 var(--sans); text-decoration: none; border: 1px solid var(--line2); background: var(--card); color: var(--ink); cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--bg2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 18px -6px rgba(140, 200, 20, .6); }
.btn-primary:hover { background: var(--accent2); border-color: transparent; transform: translateY(-1px); }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; border-radius: 12px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; } .center .btn-row { justify-content: center; }
.arrow::after { content: "\2192"; transition: transform .15s; } .arrow:hover::after { transform: translateX(3px); }
.link { color: var(--accent-ink); font-weight: 600; text-decoration: none; } .link:hover { text-decoration: underline; text-underline-offset: 3px; } .link::after { content: " \2192"; }

/* sections */
section { padding: clamp(26px, 3.4vw, 44px) 0; position: relative; }
.band { background: var(--bg2); border-block: 1px solid var(--line); }
.dark { background: var(--dark); color: var(--dark-ink); --muted: var(--dark-muted); --line: var(--dark-line); --card: var(--dark2); --ink: var(--dark-ink); --bg2: #161b0f; --accent-ink: #c7f36a; --line2: #36402a; }
.dark .lead { color: var(--dark-muted); }
.sec-head { max-width: 760px; margin-bottom: clamp(16px, 2vw, 24px); } .sec-head h2 { margin-bottom: .35em; } .sec-head .lead { font-size: 1.02rem; } .center .sec-head, .sec-head.center { margin-inline: auto; }

/* hero */
.hero { padding: clamp(20px, 2.6vw, 34px) 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%; background: radial-gradient(ellipse 60% 55% at 50% 0%, var(--glow), transparent 70%), linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 20%, transparent 75%); opacity: .7; pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { max-width: 19ch; margin-inline: auto; font-size: clamp(2.4rem, 5.6vw, 4.3rem); }
.pill { display: inline-flex; gap: 10px; align-items: center; padding: 6px 8px 6px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line2); font-size: .86rem; font-weight: 550; color: var(--ink2); margin-bottom: 26px; text-decoration: none; box-shadow: var(--shadow-s); }
.pill b { background: var(--accent); color: var(--on-accent); padding: 3px 10px; border-radius: 99px; font-size: .74rem; letter-spacing: .02em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.hero-visual { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.hero-visual .frame { max-width: 1080px; margin-inline: auto; }
.hero-visual::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.page-hero { padding: clamp(24px, 3.2vw, 40px) 0 clamp(20px, 2.6vw, 32px); overflow: hidden; }
.page-hero .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
@media (min-width: 981px) { .frame.bleed { width: 142%; max-width: none; } }

/* product frames: real screenshots */
.frame { margin: 0; background: var(--card); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line2); }
.frame-bar span { margin: 0 auto; transform: translateX(-24px); font: 500 .74rem var(--sans); color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 3px 28px; border-radius: 7px; }
.frame img { width: 100%; height: auto; }
.frame.crop img { aspect-ratio: 3 / 2; object-fit: cover; object-position: top left; }
.frame.crop-s img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.frame.crop-w img { aspect-ratio: 16 / 8; object-fit: cover; object-position: top left; }
.phone { width: min(100%, 280px); margin: 0; border-radius: 38px; padding: 9px; background: var(--ink); box-shadow: var(--shadow); }
.phone picture, .phone img { border-radius: 30px; width: 100%; height: auto; aspect-ratio: 390 / 740; object-fit: cover; object-position: top; }
.float { position: absolute; background: var(--card); border: 1px solid var(--line2); border-radius: 14px; padding: 13px 16px; box-shadow: var(--shadow); font-size: .86rem; line-height: 1.4; z-index: 3; max-width: 270px; }
.float b { display: block; font-size: .9rem; margin-bottom: 2px; }
.float .row-i { display: flex; gap: 10px; align-items: flex-start; }
.float .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: .9rem; }
.ic.warn { background: var(--warn-bg); color: var(--warn); } .ic.bad { background: var(--bad-bg); color: var(--bad); } .ic.ok { background: var(--ok-bg); color: var(--ok); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .72rem; font-weight: 700; } .tag.bad { background: var(--bad-bg); color: var(--bad); } .tag.warn { background: var(--warn-bg); color: var(--warn); } .tag.ok { background: var(--ok-bg); color: var(--ok); }
.caption { font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* logos / strips */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; align-items: center; margin-top: 28px; }
.logos span { font-weight: 650; letter-spacing: -.02em; color: var(--muted); font-size: 1.08rem; }
.logos-label { text-align: center; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.strip > div { padding: 18px 22px; border-left: 1px solid var(--line); } .strip > div:first-child { border-left: 0; }
.strip b { display: block; font-size: 1.25rem; letter-spacing: -.03em; margin-bottom: 4px; }
.strip span { color: var(--muted); font-size: .92rem; line-height: 1.5; display: block; }

/* feature rows */
.feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(28px, 4vw, 48px); }
.feature.rev { grid-template-columns: 1.2fr .8fr; } .feature.rev .f-text { order: 2; }
.f-text h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.f-text .lead { font-size: 1.04rem; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 19px; height: 19px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 55%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%232b4a00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ticks.no li::before { background: var(--bad-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7' fill='none' stroke='%23b42318' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.feature .stack-v { position: relative; }
.feature .phone { position: absolute; right: -14px; bottom: -34px; width: 190px; border-radius: 30px; padding: 7px; } .feature .phone img, .feature .phone picture { border-radius: 24px; }

/* cards, bento */
.grid { display: grid; gap: 20px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.card { text-decoration: none; display: block; } a.card:hover, .card.hov:hover { border-color: var(--line2); box-shadow: var(--shadow-s); transform: translateY(-2px); }
.card h3 { margin-bottom: .45em; } .card p:last-child { margin-bottom: 0; } .card p { color: var(--muted); }
.card .ticks li { color: var(--ink2); }
.icon { width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 12px; }
.icon svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.num { font: 700 .78rem var(--mono); color: var(--accent-ink); letter-spacing: .06em; display: block; margin-bottom: 10px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > * { grid-column: span 2; } .bento > .w3 { grid-column: span 3; } .bento > .w4 { grid-column: span 4; } .bento > .w6 { grid-column: span 6; }
.bento .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.bento .card .b-text { padding: 26px 28px 8px; } .bento .card .frame { margin: 14px 18px 0; border-radius: 12px 12px 0 0; border-bottom: 0; box-shadow: none; flex: 1; }
.bento .card.plain { padding: 28px; }
.stat-big { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 750; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
pre.code { margin: 14px 0 0; padding: 18px 20px; border-radius: 12px; background: var(--dark); color: #d9e4c3; font: 400 .82rem/1.7 var(--mono); overflow-x: auto; border: 1px solid var(--dark-line); }
pre.code .c { color: #7c8a62; } pre.code .g { color: #c7f36a; }

/* switch / tabs */
.switch { display: inline-flex; padding: 5px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 36px; }
.switch button { border: 0; background: none; padding: 11px 22px; border-radius: 10px; font: 600 .96rem var(--sans); color: var(--muted); cursor: pointer; }
.switch button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-s); }
.js .panel[hidden] { display: none; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; background: var(--bg2); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; }
tbody tr:hover td { background: color-mix(in srgb, var(--bg2) 60%, transparent); }
td:first-child { font-weight: 600; white-space: nowrap; } td.wrapcell { white-space: normal; }
td.yes { color: var(--ok); font-weight: 700; }

/* steps, faq, callout, cta */
.steps { counter-reset: s; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 20px; position: relative; }
.step::before { counter-increment: s; content: counter(s); width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 750; display: grid; place-items: center; font-size: 1.1rem; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 54px; bottom: -22px; width: 2px; background: var(--line2); }
.step h3 { margin-bottom: .25em; } .step p { color: var(--muted); }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 2px 18px; transition: border-color .2s; }
details[open] { border-color: var(--line2); } details + details { margin-top: 8px; }
summary { cursor: pointer; font-weight: 600; font-size: 1rem; padding: 13px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; letter-spacing: -.01em; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--muted); font-weight: 400; } details[open] summary::after { content: "\2013"; }
summary::-webkit-details-marker { display: none; } details p { color: var(--muted); }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--accent-ink); background: var(--card); border-radius: 12px; padding: 20px 24px; color: var(--ink2); }
.callout.warn { border-left-color: var(--warn); }
.cta { position: relative; overflow: hidden; text-align: center; background: var(--dark); color: var(--dark-ink); border-radius: 22px; padding: clamp(26px, 3.6vw, 40px) 24px; border: 1px solid var(--dark-line); }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(190, 240, 80, .28), transparent 70%); pointer-events: none; }
.cta > * { position: relative; } .cta h2 { color: #f4f8e8; max-width: 18ch; margin-inline: auto; } .cta p { color: #b5bfa2; max-width: 52ch; margin-inline: auto; font-size: 1.1rem; }
.cta .btn-row { justify-content: center; } .cta .btn:not(.btn-primary) { background: transparent; color: #eaf1d8; border-color: #3b4630; } .cta .btn:not(.btn-primary):hover { background: rgba(255,255,255,.06); }

/* forms */
form { display: grid; gap: 18px; }
label { font-weight: 600; font-size: .92rem; display: grid; gap: 7px; }
input, select, textarea { font: inherit; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-ink) 60%, transparent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 12px; font-weight: 600; margin-bottom: 18px; } .notice.ok { background: var(--ok-bg); color: var(--ok); } .notice.bad { background: var(--bad-bg); color: var(--bad); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 22px; background: var(--bg2); font-size: .94rem; }
.foot { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.foot h4 { margin: 0 0 14px; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 650; }
.foot a { display: block; text-decoration: none; color: var(--ink2); padding: 4px 0; } .foot a:hover { color: var(--accent-ink); }
.legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.6; max-width: 90ch; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .page-hero .grid2, .feature, .feature.rev { grid-template-columns: 1fr; } .feature.rev .f-text { order: 0; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); } .bento { grid-template-columns: repeat(2, 1fr); } .bento > *, .bento > .w3, .bento > .w4, .bento > .w6 { grid-column: span 2; }
  .strip { grid-template-columns: repeat(2, 1fr); } .strip > div:nth-child(3) { border-left: 0; } .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: block; } .nav, .bar-cta { display: none; }
  .nav.open { display: flex; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--bg); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); gap: 2px; box-shadow: var(--shadow); } .nav.open a { padding: 13px 12px; font-size: 1.02rem; } .nav.open .m-only { display: block; }
  .float { display: none; } .feature .phone { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; } .g2, .g3, .g4 { grid-template-columns: 1fr; } .bento { grid-template-columns: 1fr; } .bento > *, .bento > .w3, .bento > .w4, .bento > .w6 { grid-column: auto; }
  .foot { grid-template-columns: 1fr; } .strip { grid-template-columns: 1fr; } .strip > div { border-left: 0 !important; border-top: 1px solid var(--line); } .strip > div:first-child { border-top: 0; }
  .btn-row .btn { flex: 1 1 auto; } .card { padding: 22px; } .frame-bar span { display: none; } .hero h1 { max-width: none; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; } .step::before { width: 40px; height: 40px; border-radius: 12px; } .step:not(:last-child)::after { left: 19px; top: 46px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card, .js .reveal { transition: none; } .js .reveal { opacity: 1; transform: none; } }


/* ============ v3: compact hero with animated connectivity scene ============ */
.hero-split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 3.5vw, 48px); align-items: center; position: relative; }
.hero-split h1 { font-size: clamp(2.2rem, 4.1vw, 4.1rem); max-width: 14ch; margin-inline: 0; }
.hero-split .lead { font-size: 1.12rem; max-width: 46ch; }
.hero-split .pill { margin-bottom: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-ink); }
.hero-logos { margin-top: clamp(12px, 2vw, 20px); padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; justify-content: center; }
.hero-logos small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.hero-logos span { font-weight: 650; color: var(--muted); letter-spacing: -.02em; font-size: .98rem; }

.scene { container-type: inline-size; position: relative; width: 100%; max-width: 980px; margin-inline: auto; aspect-ratio: 640 / 500; font-size: clamp(8.5px, 1.86cqw, 16px); line-height: 1.35; }
.scene .lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scene .wire { fill: none; stroke: var(--line2); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; animation: wire 1.4s linear infinite; }
.scene .wire.ci { stroke: color-mix(in srgb, var(--warn) 55%, var(--line2)); }
.scene .pkt { fill: var(--accent-ink); filter: drop-shadow(0 0 3px var(--accent)); }
.scene .pkt.w { fill: var(--warn); filter: drop-shadow(0 0 3px var(--warn)); }
@keyframes wire { to { stroke-dashoffset: -20; } }
.node { position: absolute; background: var(--card); border: 1px solid var(--line2); border-radius: 1.1em; box-shadow: var(--shadow-s); overflow: hidden; }
.node-h { display: flex; align-items: center; gap: .55em; padding: .55em .75em; border-bottom: 1px solid var(--line); background: var(--bg2); font-weight: 650; font-size: .92em; white-space: nowrap; min-width: 0; }
.node-h .tg { margin-left: auto; flex: none; font: 500 .74em var(--mono); color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: .05em .5em; border-radius: .5em; }
.on-dot { width: .6em; height: .6em; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 .25em color-mix(in srgb, var(--ok) 25%, transparent); animation: blink 2.4s ease-in-out infinite; flex: none; }
@keyframes blink { 50% { box-shadow: 0 0 0 .5em color-mix(in srgb, var(--ok) 0%, transparent); } }
.n-browser { left: 3.1%; top: 3.2%; width: 37.5%; height: 32%; }
.n-browser .node-h { padding-block: .45em; }
.n-browser img { width: 100%; height: calc(100% - 2.1em); object-fit: cover; object-position: top left; display: block; }
.n-ci { left: 62.5%; top: 3.2%; width: 34.4%; height: 19.6%; }
.n-ci .body, .n-hub .body { padding: .6em .8em; }
.n-hub { left: 36.25%; top: 39.2%; width: 27.5%; height: 20.4%; display: grid; place-items: center; text-align: center; border-color: var(--accent-ink); box-shadow: 0 0 0 .35em color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow); }
.n-hub::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; animation: ring 3s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.22); opacity: 0; } }
.n-hub b { display: flex; align-items: center; justify-content: center; gap: .5em; font-size: 1.25em; letter-spacing: -.03em; }
.n-hub .logo { width: 1.9em; height: 1.9em; border-radius: .55em; font-size: .8em; }
.n-hub .chips { display: flex; gap: .35em; justify-content: center; margin-top: .55em; flex-wrap: wrap; }
.n-hub .chips i { font-style: normal; font-size: .78em; font-weight: 650; padding: .15em .65em; border-radius: 99px; background: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--ink); animation: pulse 3s ease-in-out infinite; }
.n-hub .chips i:nth-child(2) { animation-delay: 1s; } .n-hub .chips i:nth-child(3) { animation-delay: 2s; }
@keyframes pulse { 0%, 100% { opacity: .55; } 40% { opacity: 1; } }
.n-ob { left: 3.1%; top: 41.5%; width: 29%; padding: .55em .8em; background: var(--bg2); border-style: dashed; box-shadow: none; font-size: .88em; color: var(--ink2); }
.n-ob b { display: block; color: var(--ink); }
.m { top: 74.4%; height: 23.6%; width: 30.6%; }
.m1 { left: 1.9%; } .m2 { left: 34.7%; } .m3 { left: 67.5%; }
.m .term { padding: .5em .8em; font: 400 .82em/1.55 var(--mono); color: var(--ink2); display: grid; gap: .1em; }
.m .term div { opacity: 0; animation: lin 11s ease-in-out infinite; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m .term div:nth-child(1) { animation-delay: .3s; } .m .term div:nth-child(2) { animation-delay: 1.6s; } .m .term div:nth-child(3) { animation-delay: 3s; } .m .term div:nth-child(4) { animation-delay: 4.2s; }
@keyframes lin { 0% { opacity: 0; transform: translateY(4px); } 5%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.term .g { color: var(--ok); } .term .y { color: var(--warn); font-weight: 600; } .term .d { color: var(--muted); }
.bar-p { height: .45em; background: var(--line); border-radius: 9px; overflow: hidden; margin-top: .25em; }
.bar-p i { display: block; height: 100%; background: var(--accent-ink); border-radius: 9px; animation: grow 11s ease-in-out infinite; }
@keyframes grow { 0% { width: 8%; } 80% { width: 92%; } 100% { width: 8%; } }
.wait { display: inline-block; background: var(--warn-bg); color: var(--warn); font: 650 .78em var(--sans); padding: .1em .6em; border-radius: 99px; }
.toasts { position: absolute; left: 66%; top: 38.4%; width: 33%; height: 28%; }
.toast { position: absolute; inset: 0 auto auto 0; width: 100%; background: var(--card); border: 1px solid var(--line2); border-left: 3px solid var(--accent-ink); border-radius: .8em; padding: .5em .75em; box-shadow: var(--shadow-s); opacity: 0; animation: toast 12s ease-in-out infinite; font-size: .9em; }
.toast b { display: block; font-size: .95em; } .toast span { color: var(--muted); font-size: .88em; }
.toast.w { border-left-color: var(--warn); } .toast:nth-child(2) { animation-delay: 3s; } .toast:nth-child(3) { animation-delay: 6s; } .toast:nth-child(4) { animation-delay: 9s; }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px); } 4%, 22% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; transform: translateY(-8px); } }
.scene-m { display: none; }

/* ============ product tour ============ */
.tour { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.tour-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tour-intro h2 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); margin-bottom: .2em; }
.tour-tabs { display: flex; flex-direction: column; gap: 7px; }
.tour-cta { margin-top: auto; background: var(--dark); color: var(--dark-ink); border-radius: 14px; padding: 18px 18px 16px; border: 1px solid var(--dark-line); }
.tour-cta b { display: block; font-size: 1.02rem; letter-spacing: -.02em; margin-bottom: 4px; } .tour-cta p { color: var(--dark-muted); font-size: .88rem; margin: 0 0 12px; line-height: 1.45; }
.tour-tabs button { position: relative; text-align: left; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px 15px; cursor: pointer; overflow: hidden; transition: border-color .2s, box-shadow .2s, background .2s; }
.tour-tabs button b { display: block; font-size: 1rem; letter-spacing: -.02em; }
.tour-tabs button span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.4; margin-top: 2px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s, opacity .35s; }
.tour-tabs button:hover { border-color: var(--line2); }
.tour-tabs button[aria-selected="true"] { border-color: var(--accent-ink); box-shadow: var(--shadow-s); }
.tour-tabs button[aria-selected="true"] span { max-height: 6em; opacity: 1; }
.tour-tabs .pbar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent-ink); }
.tour-tabs button[aria-selected="true"] .pbar { width: 100%; }
.tour.auto .tour-tabs button[aria-selected="true"] .pbar { width: 0; animation: fill 6.5s linear forwards; }
@keyframes fill { to { width: 100%; } }
.tour-stack { position: relative; background: var(--bg2); }
.tour-stack picture { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; }
.tour-stack picture.on { opacity: 1; }
.tour-stack img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tour .frame { box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tour .frame .tour-stack { aspect-ratio: 3 / 2; min-height: 0; }

/* ============ connection lanes ============ */
.lanes { border: 1px solid var(--line2); border-radius: 16px; background: var(--card); overflow: hidden; box-shadow: var(--shadow-s); }
.l-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.l-head b { font-size: 1rem; letter-spacing: -.02em; display: block; } .l-head small { color: var(--muted); font-size: .8rem; display: block; line-height: 1.3; } .l-head div:last-child { text-align: right; }
.lanes .mid { display: grid; }
.lane { display: grid; grid-template-columns: 1fr; padding: 10px 20px 12px; border-top: 1px solid var(--line); gap: 3px; }
.lane:first-child { border-top: 0; }
.lane .t { display: flex; justify-content: space-between; gap: 12px; font-weight: 650; font-size: .95rem; flex-wrap: wrap; }
.lane .t em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .84rem; }
.lane .w { position: relative; height: 14px; }
.lane .w::before { content: ""; position: absolute; left: 0; right: 14px; top: 6px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent-ink) 0 8px, transparent 8px 16px); background-size: 16px 2px; animation: wireL 1s linear infinite; }
.lane .w::after { content: ""; position: absolute; right: 0; top: 1px; border: 6px solid transparent; border-left: 10px solid var(--accent-ink); border-right: 0; }
.lane.rev .w::before { left: 14px; right: 0; animation-name: wireR; } .lane.rev .w::after { right: auto; left: 0; border-left: 0; border-right: 10px solid var(--accent-ink); }
.lane.both .w::after { box-shadow: -999px 0 0 0 transparent; }
.lane.no .w::before { background: repeating-linear-gradient(90deg, var(--bad) 0 8px, transparent 8px 16px); animation: none; opacity: .45; right: 14px; }
.lane.no .w::after { border-left-color: var(--bad); opacity: .45; }
.lane.no .t { color: var(--bad); }
@keyframes wireL { to { background-position: 16px 0; } } @keyframes wireR { to { background-position: -16px 0; } }

@media (max-width: 980px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); } .hero-split h1 { max-width: 16ch; }
  .tour-cta { display: none; } .tour { grid-template-columns: minmax(0, 1fr); } .tour .frame .tour-stack { aspect-ratio: 3 / 2; } .tour-tabs { display: flex; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; } .tour-tabs button { flex: none; padding: 10px 16px; } .tour-tabs button span { display: none; } .tour-tabs .pbar { display: none; }
}
@media (max-width: 640px) {
  .scene { display: none; }
  .scene-m { display: grid; gap: 0; margin-top: 8px; }
  .sm-node { background: var(--card); border: 1px solid var(--line2); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-s); }
  .sm-node b { display: block; } .sm-node small { color: var(--muted); }
  .sm-node.hub { border-color: var(--accent-ink); }
  .sm-wire { height: 30px; margin-left: 26px; border-left: 2px dashed var(--line2); position: relative; }
  .sm-wire::after { content: ""; position: absolute; left: -5px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); animation: down 1.6s linear infinite; }
  @keyframes down { to { top: 22px; opacity: 0; } }
  .hero-logos span:nth-child(n+6) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene *, .scene *::before, .scene *::after, .lanes *, .lanes *::before, .sm-wire::after, .tour * { animation: none !important; }
  .scene .pkt { display: none; } .m .term div { opacity: 1; } .toast { opacity: 0; } .toast:first-child { opacity: 1; }
  .tour-stack picture { transition: none; }
}

/* ============ v3b: dense layouts ============ */
.split { display: grid; grid-template-columns: minmax(220px, .62fr) minmax(0, 2fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.split > .sec-head { margin: 0; position: sticky; top: 88px; }
.split > .sec-head .lead { font-size: .98rem; }
.split-c { min-width: 0; }
.split-c .g4 { grid-template-columns: repeat(2, 1fr); }
.split-c .g2 { grid-template-columns: repeat(2, 1fr); }
.split-c .table-wrap { margin: 0; }
.split-c details:first-child { margin-top: 0; }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.chipset .btn { padding: 9px 15px; font-size: .9rem; }
@media (max-width: 980px) { .split { grid-template-columns: minmax(0, 1fr); } .split > .sec-head { position: static; } .split-c .g4, .split-c .g2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .split-c .g4, .split-c .g2 { grid-template-columns: 1fr; } }

/* ============ v3c: wide screens and phones ============ */
.shot-s { display: block; }
.cols-conn { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
@media (min-width: 1500px) { body { font-size: 18px; } .lead { font-size: 1.28rem; } .card { padding: 22px 24px; } h3 { font-size: 1.28rem; } .tour { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); } }
@media (max-width: 980px) { .cols-conn { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  section { padding: 22px 0; } .band { padding-block: 22px !important; }
  h1 { font-size: 2.15rem; } h2 { font-size: 1.5rem; } .lead { font-size: 1.02rem; }
  .hero { padding-top: 14px; } .hero-split { gap: 18px; } .hero-split h1 { font-size: 2.1rem; max-width: none; }
  .hero-meta { gap: 6px 14px; margin-top: 14px; font-size: .82rem; } .hero-logos { gap: 4px 16px; } .hero-logos small { width: 100%; text-align: center; }
  .btn-row { margin-top: 16px; } .btn-lg { padding: 13px 20px; }
  .card { padding: 16px 16px; } .ticks { gap: 7px; margin-top: 10px; } .ticks li { font-size: .96rem; }
  .strip > div { padding: 14px 16px; } .sec-head { margin-bottom: 14px; }
  /* screenshots: bigger and swipeable so the text is readable */
  .shot-s { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .shot-s img { width: 165%; max-width: none; aspect-ratio: auto !important; height: auto; object-fit: initial !important; }
  .frame.crop-w .shot-s img { width: 190%; }
  .tour-stack { overflow-x: auto; aspect-ratio: auto !important; height: min(62vw, 300px); -webkit-overflow-scrolling: touch; }
  .tour-stack picture { width: 170%; max-width: none; inset: 0 auto 0 0; } .tour-stack img { width: 100%; height: auto; object-fit: initial; }
  .tour .frame .tour-stack { aspect-ratio: auto !important; }
  .tour-tabs { margin-inline: -2px; padding: 2px; } .tour-tabs button { padding: 9px 14px; } .tour-tabs button b { font-size: .92rem; white-space: nowrap; }
  .tour-intro h2 { font-size: 1.45rem; }
  /* before / with strip: swipeable */
  .outcomes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * clamp(16px, 2.75vw, 56px)); padding: 2px clamp(16px, 2.75vw, 56px) 8px; scrollbar-width: none; }
  .outcomes .card { flex: 0 0 78%; scroll-snap-align: start; }
  /* bento and lanes */
  .bento { gap: 12px; } .bento .card.plain { padding: 16px; } .bento .card .b-text { padding: 16px 16px 6px; } .bento .card .frame { margin: 8px 12px 0; }
  .stat-big { font-size: 2.4rem; } pre.code { font-size: .74rem; padding: 12px 14px; }
  .l-head { flex-direction: column; align-items: flex-start; gap: 8px; } .l-head div:last-child { text-align: left; }
  .lane { padding: 10px 14px 12px; }
  .cta { padding: 24px 16px; } .cta h2 { font-size: 1.5rem; }
  .split { gap: 12px; } details { padding: 2px 14px; }
  .feature { gap: 18px; } .feature + .feature { margin-top: 28px; }
  .site-footer { padding: 26px 0 18px; } .foot { gap: 22px; }
  .page-hero .grid2 { gap: 18px; } .page-hero h1 { font-size: 2rem; }
  .phone { width: min(100%, 230px); }
}

@media (min-width: 981px) {
  .tour { align-items: stretch; }
  .tour .frame { align-self: start; }
  .tour-tabs { flex: 1; }
  .tour-tabs button { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
}

/* ============ legal documents ============ */
mark.todo { background: #ffe58a; color: #3a2a00; padding: .05em .35em; border-radius: 5px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (prefers-color-scheme: dark) { mark.todo { background: #5c4400; color: #ffe9a8; } }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.doc-toc { position: sticky; top: 90px; display: grid; gap: 2px; font-size: .9rem; border-left: 2px solid var(--line); padding-left: 14px; }
.doc-toc b { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.doc-toc a { text-decoration: none; color: var(--muted); padding: 4px 0; } .doc-toc a:hover { color: var(--accent-ink); }
.doc-body { max-width: 780px; min-width: 0; }
.doc-banner { margin-bottom: 24px; }
.doc-sec { padding: 0; margin-top: 28px; scroll-margin-top: 90px; }
.doc-sec h2 { font-size: 1.35rem; margin-bottom: .5em; }
.doc-sec h3 { font-size: 1.02rem; margin: 18px 0 6px; }
.doc-sec p, .doc-sec li { color: var(--ink2); line-height: 1.7; }
.doc-sec ul { padding-left: 1.25em; margin: 0 0 1em; display: grid; gap: 6px; }
.doc-sec a { color: var(--accent-ink); }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc-toc { position: static; display: flex; gap: 8px; overflow-x: auto; white-space: nowrap; border-left: 0; padding: 0 0 10px; scrollbar-width: none; } .doc-toc b { display: none; } .doc-toc a { padding: 7px 13px; border: 1px solid var(--line2); border-radius: 99px; background: var(--card); flex: none; } }
@media (max-width: 640px) { .doc-sec { margin-top: 20px; } }
