/* Harbor design system: shared by the site and the dashboard. See docs/design/DESIGN.md. */
/* ---- Tokens: neutral zinc, one orange signal. Dark and light (after maritime.sh). ---- */
:root, [data-theme="dark"] {
  --bg: #0a0a0a; --panel: #111112; --raised: #18181b;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #fafafa; --muted: #a1a1aa; --dim: #71717a;
  --primary-bg: #fafafa; --primary-text: #0a0a0a;
  --dither-bg: #050505; --dither-fg: #a1a1aa; --dither-fg-2: #4a4a52;
  --scrim: rgba(5,5,5,.9);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f4f5; --panel: #ffffff; --raised: #fafafa;
  --line: rgba(10,10,10,.08); --line-2: rgba(10,10,10,.14);
  --text: #0a0a0a; --muted: #52525b; --dim: #71717a;
  --primary-bg: #0a0a0a; --primary-text: #fafafa;
  --dither-bg: #f4f4f5; --dither-fg: #71717a; --dither-fg-2: #c9c9cf;
  --scrim: rgba(244,244,245,.92);
  color-scheme: light;
}
:root {
  --signal: #ff5b2e; --signal-soft: rgba(255,91,46,.16);
  --ok: #22c55e; --ok-soft: rgba(34,197,94,.14); --warn: #f59e0b; --warn-soft: rgba(245,158,11,.16);
  /* Product windows stay dark in both themes, like Maritime's terminals over a light dither. */
  --win: #16161a; --win-2: #1f1f24; --win-line: rgba(255,255,255,.09); --win-text: #f4f4f5; --win-muted: #a1a1aa;
  --radius: 8px;
  --sans: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { margin: 0; color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---- Nav ---- */
.nav { position: sticky; top: 12px; z-index: 5; display: flex; align-items: center; gap: 24px; max-width: 780px; margin: 12px auto 0; padding: 10px 12px 10px 18px;
       background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 500; letter-spacing: -.02em; font-size: 17px; }
.brand .mark { flex: none; }
.links { display: flex; gap: 22px; margin: 0 auto; color: var(--muted); font-size: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--radius); padding: 8px 13px; font-size: 14px; font-weight: 500; border: 1px solid transparent; cursor: pointer; background: none; color: inherit; font-family: inherit; }
.btn.primary { background: var(--primary-bg); color: var(--primary-text); }
.btn.outline { border-color: var(--line-2); }
.btn.quiet { color: var(--muted); }
.arrow::after { content: "→"; }
.theme { width: 34px; height: 34px; padding: 0; justify-content: center; color: var(--muted); }
.theme svg { width: 17px; height: 17px; }
[data-theme="dark"] .theme .sun, [data-theme="light"] .theme .moon { display: none; }

/* ---- Dither canvases (WebGL, animated) ---- */
canvas.dither { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---- Hero ---- */
.hero { position: relative; margin: 18px auto 0; max-width: 1160px; height: 560px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--dither-bg); }
.hero .content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px;
                 background: radial-gradient(60% 56% at 50% 46%, var(--scrim) 32%, transparent 100%); }
.badge { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
h1 { font-size: 72px; line-height: 1.02; letter-spacing: -.05em; font-weight: 400; margin: 0 0 18px; }
.lede { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.cta { display: flex; gap: 10px; }
/* Over dither, the outline button gets a solid face so it never blends into the texture. */
.hero .btn.outline, .closing .btn.outline, .band .btn.outline { background: var(--bg); }
.hero .btn.outline:hover, .closing .btn.outline:hover { background: color-mix(in srgb, var(--bg) 80%, var(--text)); }

section { padding: 96px 0 0; scroll-margin-top: -8px; }
html { scroll-behavior: smooth; }
h2 { font-size: 36px; letter-spacing: -.03em; line-height: 1.15; font-weight: 400; margin: 0 0 36px; }
h2 span { color: var(--dim); display: block; }

/* ---- Windows (always dark) ---- */
.window { background: var(--win); color: var(--win-text); border: 1px solid var(--win-line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--win-line); color: #71717a; }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #34343a; display: block; }
.tabs { display: flex; gap: 14px; margin-left: 10px; } .tabs .on { color: var(--win-text); }
pre { margin: 0; padding: 18px; font: 13px/1.7 var(--mono); color: #d4d4d8; overflow-x: auto; }
.k { color: var(--signal); } .c { color: #71717a; } pre .s { color: #fafafa; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.try { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.input { display: flex; gap: 8px; }
.input input { flex: 1; font: 13px var(--mono); padding: 11px 12px; background: #0e0e11; border: 1px solid var(--win-line); border-radius: var(--radius); color: var(--win-text); }
.input .btn { background: var(--win-text); color: #0a0a0a; }
.offer { display: flex; gap: 14px; align-items: center; border: 1px solid var(--win-line); border-radius: var(--radius); padding: 12px; background: #0e0e11; }
.thumb { width: 56px; height: 56px; border-radius: 6px; flex: none; background: repeating-linear-gradient(0deg, #26262b 0 2px, #1a1a1e 2px 4px); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font: 12px var(--mono); color: #71717a; } .kv b { color: var(--win-text); font-weight: 400; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); padding: 3px 8px; border-radius: 999px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.sig { background: var(--signal-soft); color: var(--signal); }

/* ---- Feature panels: animated dither behind real UI ---- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.media { position: relative; height: 330px; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--dither-bg); }
.media > :not(canvas) { position: relative; z-index: 1; }
.sheet { width: 270px; background: var(--win-2); color: var(--win-text); border: 1px solid var(--win-line); border-radius: 12px; padding: 14px; font-size: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.sheet .row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-top: 1px solid var(--win-line); color: var(--win-muted); }
.sheet .row b { color: var(--win-text); font-weight: 500; }
.sheet .go { margin-top: 10px; text-align: center; background: var(--win-text); color: #0a0a0a; border-radius: 8px; padding: 8px; font-weight: 500; }
.timeline { list-style: none; margin: 0; padding: 16px 18px 6px; font-size: 12px; color: var(--win-muted); }
.timeline li { position: relative; padding: 4px 0 12px 20px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: #52525b; }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 19px; bottom: -3px; width: 1px; background: var(--win-line); }
.timeline li:last-child::after { display: none; }
.timeline li.now { color: var(--win-text); } .timeline li.now::before { background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.feature p { margin: 16px 0 0; color: var(--dim); font-size: 16px; line-height: 1.6; }
.feature p b { color: var(--text); font-weight: 500; }

/* ---- Coverage grid ---- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.cell { padding: 28px; border-left: 1px solid var(--line); }
a.cell { display: block; transition: background-color .15s; } a.cell:hover { background: var(--raised); }
.cell:first-child { border-left: 0; }
.cell h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.cell p { margin: 0; color: var(--dim); }
.cell .mono { color: var(--muted); display: block; margin-bottom: 18px; }

/* ---- Dashboard (follows the theme) ---- */
.dash { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); margin-bottom: 96px; }
.side { border-right: 1px solid var(--line); padding: 16px 12px; font-size: 13px; color: var(--muted); background: var(--raised); }
.side .brand { color: var(--text); margin: 2px 6px 20px; font-size: 15px; }
.side a { display: flex; justify-content: space-between; padding: 7px 8px; border-radius: 6px; }
.side a.on { background: var(--line); color: var(--text); }
.env { margin: 18px 6px 0; display: flex; border: 1px solid var(--line-2); border-radius: 8px; padding: 3px; }
.env span { flex: 1; text-align: center; padding: 5px 0; border-radius: 6px; } .env span.on { background: var(--line-2); color: var(--text); } .env span.live { color: var(--signal); }
.main { padding: 22px 24px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 16px 0 20px; }
.kpi { background: var(--panel); padding: 14px; } .kpi .v { font-size: 24px; letter-spacing: -.03em; margin-top: 4px; } .kpi .mono { color: var(--dim); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font: 400 12px var(--mono); color: var(--dim); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); } td.id { font-family: var(--mono); font-size: 12px; color: var(--dim); }
/* ---- Storyboards (after maritime.sh): each panel is a timeline on one 10s loop; elements switch at %s ---- */
.rise { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.sb { animation-duration: 10s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
/* try it: URL types in, then the offer appears */
.type-url { animation-name: type-url; }
@keyframes type-url { 0%, 6% { clip-path: inset(0 100% 0 0); } 22%, 92% { clip-path: inset(0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 1px; background: var(--signal); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.show-offer { animation-name: show-offer; }
@keyframes show-offer { 0%, 26% { opacity: 0; transform: translateY(6px); } 30%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.press { animation-name: press; }
@keyframes press { 0%, 22% { transform: none; } 24% { transform: scale(.95); } 27%, 100% { transform: none; } }
/* approve: connect Target, press Allow, done */
.connect { animation-name: connect; }
@keyframes connect { 0%, 18% { opacity: 0; transform: scale(.9); } 22%, 100% { opacity: 1; transform: none; } }
.connect-before { animation-name: connect-before; }
@keyframes connect-before { 0%, 18% { opacity: 1; } 20%, 100% { opacity: 0; } }
.allow { animation-name: allow; }
@keyframes allow { 0%, 44% { transform: none; background: var(--win-text); color: #0a0a0a; } 46% { transform: scale(.96); background: var(--win-text); color: #0a0a0a; } 48%, 58% { transform: none; background: var(--signal); color: #fff; } 60%, 100% { transform: none; background: var(--win-text); color: #0a0a0a; } }
.done { animation-name: done; }
@keyframes done { 0%, 58% { opacity: 0; } 62%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
/* approve flow (mirrors the hosted /approve): consent -> stores (Target connects) -> limits -> done, on a 12s loop */
.fm { display: flex; flex-direction: column; padding: 10px 14px 14px; }
.fm .sb { animation-duration: 12s; }
.fm-bar { display: grid; grid-template-columns: 16px 1fr 16px; align-items: center; color: var(--win-muted); font-size: 12px; }
.fm-bar .brand { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--win-text); font-weight: 500; }
.fm-bar svg { width: 10px; height: 10px; }
.fm-prog { display: flex; gap: 4px; margin: 8px 0 14px; }
.fm-prog i { flex: 1; height: 2px; border-radius: 2px; background: var(--win-line); }
.fm-prog i:first-child { background: var(--signal); }
.fm-panes { display: grid; }
.fm-pane { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 7px; min-height: 212px; }
.fm-pane .go { margin-top: auto; }
.fm-pane.center { align-items: center; text-align: center; } .fm-pane.center .go { align-self: stretch; }
.fm-h { font-size: 13px; font-weight: 500; line-height: 1.35; text-align: center; margin-bottom: 4px; text-wrap: balance; }
.fm-lock { display: flex; justify-content: center; margin-bottom: 4px; }
.fm-lock span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--win); border: 1px solid var(--win-line); box-shadow: 0 0 0 3px var(--win-2); font-weight: 600; }
.fm-lock span + span { margin-left: -4px; background: var(--win-text); color: #0a0a0a; }
.fm-lock svg { width: 14px; height: 14px; }
.fm-li { display: flex; gap: 8px; align-items: center; color: var(--win-text); }
.fm-li i { font-style: normal; width: 16px; height: 16px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 9px; background: var(--ok-soft); color: var(--ok); }
.fm-li.no { color: var(--win-muted); } .fm-li.no i { background: var(--win-line); color: var(--win-muted); }
.fm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fm-tile { border: 1px solid var(--win-line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.fm-tile img { width: 16px; height: 16px; border-radius: 4px; margin-bottom: 4px; }
.fm-tile small { font-size: 10.5px; color: var(--win-muted); }
.fm-tile .stack > * { justify-self: start; }
.fm-ready { font-size: 10.5px; color: var(--win-muted); }
.fm-field { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--win-line); border-radius: 7px; padding: 7px 9px; color: var(--win-muted); }
.fm-field b { color: var(--win-text); font-weight: 500; }
.fm-ok { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: 16px; margin: 18px 0 4px; }
.fm-p1 { animation-name: fm-p1; } .fm-p2 { animation-name: fm-p2; } .fm-p3 { animation-name: fm-p3; } .fm-p4 { animation-name: fm-p4; }
@keyframes fm-p1 { 0%, 22% { opacity: 1; transform: none; } 25%, 97% { opacity: 0; transform: translateX(-8px); } 100% { opacity: 1; transform: none; } }
@keyframes fm-p2 { 0%, 22% { opacity: 0; transform: translateX(8px); } 25%, 47% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateX(-8px); } }
@keyframes fm-p3 { 0%, 47% { opacity: 0; transform: translateX(8px); } 50%, 70% { opacity: 1; transform: none; } 73%, 100% { opacity: 0; transform: translateX(-8px); } }
@keyframes fm-p4 { 0%, 70% { opacity: 0; transform: translateX(8px); } 73%, 94% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.fm-s2 { animation-name: fm-s2; } .fm-s3 { animation-name: fm-s3; }
@keyframes fm-s2 { 0%, 23% { background: var(--win-line); } 25%, 96% { background: var(--signal); } 100% { background: var(--win-line); } }
@keyframes fm-s3 { 0%, 48% { background: var(--win-line); } 50%, 96% { background: var(--signal); } 100% { background: var(--win-line); } }
.fm-back { animation-name: fm-back; }
@keyframes fm-back { 0%, 23%, 72%, 100% { opacity: 0; } 25%, 70% { opacity: 1; } }
.fm-press1 { animation-name: fm-press1; } .fm-press2 { animation-name: fm-press2; } .fm-press3 { animation-name: fm-press3; }
@keyframes fm-press1 { 0%, 18% { transform: none; } 19.5% { transform: scale(.96); } 21%, 100% { transform: none; } }
@keyframes fm-press2 { 0%, 43% { transform: none; } 44.5% { transform: scale(.96); } 46%, 100% { transform: none; } }
@keyframes fm-press3 { 0%, 65% { transform: none; background: var(--win-text); color: #0a0a0a; } 66.5% { transform: scale(.96); background: var(--win-text); color: #0a0a0a; } 67.5%, 69% { transform: none; background: var(--signal); color: #fff; } 70%, 100% { transform: none; background: var(--win-text); color: #0a0a0a; } }
.fm-target { animation-name: fm-target; }
@keyframes fm-target { 0%, 30% { border-color: var(--win-line); transform: none; } 31.5% { transform: scale(.97); } 33% { transform: none; } 35%, 96% { border-color: color-mix(in srgb, var(--ok) 55%, transparent); } 100% { border-color: var(--win-line); } }
.fm-connect { animation-name: fm-connect; } .fm-connect-before { animation-name: fm-connect-before; }
@keyframes fm-connect { 0%, 33% { opacity: 0; } 35%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fm-connect-before { 0%, 33% { opacity: 1; } 35%, 96% { opacity: 0; } 100% { opacity: 1; } }
/* checkout: steps land one by one; the orange "now" dot walks down */
.step { animation-name: step; }
.step:nth-child(1) { animation-name: step1; } .step:nth-child(2) { animation-name: step2; } .step:nth-child(3) { animation-name: step3; } .step:nth-child(4) { animation-name: step4; }
@keyframes step1 { 0%, 4% { opacity: 0; transform: translateY(4px); } 8%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes step2 { 0%, 22% { opacity: 0; transform: translateY(4px); } 26%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes step3 { 0%, 40% { opacity: 0; transform: translateY(4px); } 44%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes step4 { 0%, 58% { opacity: 0; transform: translateY(4px); } 62%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* orders: a new order slides in; a status flips */
.slide-in { animation-name: slide-in; }
@keyframes slide-in { 0%, 30% { opacity: 0; max-height: 0; padding: 0; } 36%, 92% { opacity: 1; max-height: 40px; } 98%, 100% { opacity: 0; max-height: 0; padding: 0; } }
.flip-a { animation-name: flip-a; } .flip-b { animation-name: flip-b; }
@keyframes flip-a { 0%, 60% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes flip-b { 0%, 60% { opacity: 0; transform: scale(.9); } 64%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.stack { display: inline-grid; } .stack > * { grid-area: 1 / 1; justify-self: end; }
@media (prefers-reduced-motion: reduce) {
  .rise, .sb, .caret, .dot { animation: none !important; }
  .connect-before, .flip-a { opacity: 0; } .done { opacity: 1; }
  .fm-p1, .fm-p3, .fm-p4, .fm-back, .fm-connect-before { opacity: 0; } .fm-s2 { background: var(--signal); }
}
/* ---- Interaction: every clickable thing responds to hover and keyboard focus ---- */
.btn, .links a, .brand, footer a, .tabs span, .examples button, .input .btn { transition: background-color .15s, border-color .15s, color .15s, opacity .15s, transform .15s; }
.btn.primary:hover { background: color-mix(in srgb, var(--primary-bg) 84%, var(--bg)); }
.btn.outline:hover { background: var(--line); border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.btn.quiet:hover, .btn.theme:hover { color: var(--text); background: var(--line); }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: default; }
.btn.arrow::after { display: inline-block; transition: transform .15s; }
.btn.arrow:hover::after { transform: translateX(2px); }
.links a:hover, footer a:hover { color: var(--text); }
.brand:hover { opacity: .8; }
.tabs span[data-lang] { cursor: pointer; } .tabs span[data-lang]:hover { color: var(--win-text); }
.input .btn:hover { background: #d4d4d8; }
.plan .btn.outline:hover { background: var(--line); }
.plan ul a { transition: text-decoration-color .15s, color .15s; } .plan ul a:hover { color: var(--text); text-decoration-color: var(--signal) !important; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
/* Landing code windows wrap instead of scrolling sideways. */
.split .window pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: hidden; }

/* ---- Site nav: Products dropdown + mobile menu ---- */
.nav { max-width: 860px; }
.links a[aria-current], .menu-btn[data-on] { color: var(--text); }
.menu { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; transition: color .15s; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--text); }
.menu-btn .chev { transition: transform .2s; }
.menu-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu-panel { position: absolute; top: calc(100% + 18px); left: -18px; width: 340px; padding: 8px; display: grid; gap: 2px; background: var(--panel); border: 1px solid var(--line-2);
              border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .2s, visibility .15s; }
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.menu:hover .menu-panel, .menu-btn[aria-expanded="true"] + .menu-panel, .menu:focus-within .menu-panel { opacity: 1; visibility: visible; transform: none; }
.menu-panel a { display: block; padding: 10px 12px; border-radius: 8px; transition: background-color .15s; }
.menu-panel a:hover, .menu-panel a[aria-current] { background: var(--line); }
.menu-panel b { display: block; font-weight: 500; color: var(--text); font-size: 14px; }
.menu-panel span { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.burger { display: none; width: 34px; height: 34px; padding: 0; justify-content: center; color: var(--muted); }
.mnav { position: fixed; z-index: 4; top: 70px; left: 16px; right: 16px; padding: 16px; display: grid; gap: 2px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.mnav .mono { color: var(--dim); margin: 10px 0 4px; } .mnav .mono:first-child { margin-top: 0; }
.mnav a:not(.btn) { padding: 8px 4px; border-radius: 6px; } .mnav a:not(.btn):hover { background: var(--line); }
.mnav .btn { justify-content: center; margin-top: 12px; }
.mnav[hidden] { display: none; }

/* ---- Site footer ---- */
.site-foot { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding: 64px 0 56px; margin-top: 96px; border-top: 1px solid var(--line); font-size: 14px; }
.site-foot .mono { color: var(--dim); margin-bottom: 12px; }
.site-foot a:not(.brand) { display: block; color: var(--muted); padding: 4px 0; }
.site-foot a:not(.brand):hover { color: var(--text); }
.foot-brand p { color: var(--dim); margin: 12px 0 0; max-width: 260px; line-height: 1.55; }

/* ---- Page building blocks ---- */
.page-hero { position: relative; max-width: 1160px; margin: 18px auto 0; padding: 104px 24px 64px; text-align: center; }
.page-hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font: 12px var(--mono); margin-bottom: 18px; }
.page-hero h1 { font-size: 60px; }
.page-hero h1 span { color: var(--dim); display: block; }
.page-hero .lede { margin: 0 auto 28px; max-width: 620px; }
.page-hero .cta { justify-content: center; }
.band { position: relative; max-width: 1160px; margin: 0 auto; height: 460px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--dither-bg); display: flex; align-items: center; justify-content: center; }
.band > :not(canvas) { position: relative; z-index: 1; }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cells.two { grid-template-columns: repeat(2, 1fr); } .cells.four { grid-template-columns: repeat(4, 1fr); }
.cells > div, .cells > a { background: var(--panel); padding: 26px 26px 28px; }
.cells > a { display: block; transition: background-color .15s; } .cells > a:hover { background: var(--raised); }
.cells .mono { color: var(--muted); display: block; margin-bottom: 14px; }
.cells h3 { margin: 0 0 8px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.cells p { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.6; }
.cells .more { display: inline-block; margin-top: 14px; color: var(--text); font-size: 14px; }
.cells a:hover .more::after, .more.arrow::after { content: " →"; }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.steps-row > div { counter-increment: st; border-top: 1px solid var(--line-2); padding-top: 16px; }
.steps-row > div::before { content: counter(st, decimal-leading-zero); font: 12px var(--mono); color: var(--signal); display: block; margin-bottom: 10px; }
.steps-row b { display: block; font-weight: 500; margin-bottom: 6px; }
.steps-row p { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.6; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.duo h3 { font-size: 26px; font-weight: 400; letter-spacing: -.03em; margin: 0 0 12px; line-height: 1.2; }
.duo p { color: var(--muted); margin: 0 0 14px; }
.duo ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.duo li::before { content: "—  "; color: var(--dim); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; transition: color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-family: var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--muted); }
.faq details p { margin: -4px 0 18px; color: var(--muted); max-width: 720px; }
.legal { max-width: 760px; margin: 0 auto; padding: 88px 24px 0; }
.legal h1 { font-size: 44px; } .legal h2 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); } .legal .draft { display: inline-block; font: 12px var(--mono); color: var(--warn); background: var(--warn-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 18px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); } .legal a:hover { text-decoration-color: var(--signal); }
.kicker { font: 12px var(--mono); color: var(--muted); margin-bottom: 14px; display: block; }
.text-link { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color .15s; } .text-link:hover { border-color: var(--signal); }

/* ---- Use cases ---- */
.uc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.uc:last-child { border-bottom: 0; }
.uc-text h3 { font-size: 28px; font-weight: 400; letter-spacing: -.03em; line-height: 1.2; margin: 0 0 12px; }
.uc-text p { color: var(--muted); margin: 0 0 16px; }
.uc-text ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; } .uc-text li::before { content: "—  "; color: var(--dim); }
.chat { padding: 16px 18px; display: grid; gap: 10px; font-size: 13.5px; }
.chat p { margin: 0; padding: 9px 12px; border-radius: 10px; max-width: 85%; line-height: 1.45; }
.chat .me { justify-self: end; background: var(--win-text); color: #0a0a0a; }
.chat .bot { background: var(--win-2); color: var(--win-text); border: 1px solid var(--win-line); }

/* ---- Pricing calculator ---- */
.calc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.calc-in { display: grid; gap: 22px; padding: 6px 0; }
.calc-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 15px; }
.calc-head output { font-size: 40px; letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.range-wrap { position: relative; padding-bottom: 26px; }
.range-wrap input[type=range] { width: 100%; appearance: none; height: 6px; border-radius: 99px; cursor: pointer; margin: 10px 0 0;
  background: linear-gradient(90deg, var(--text) var(--fill, 0%), var(--line-2) var(--fill, 0%)); }
.range-wrap input[type=range]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: transform .15s; }
.range-wrap input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range-wrap input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); }
.ticks { position: absolute; left: 11px; right: 11px; bottom: 0; height: 18px; font: 11px var(--mono); color: var(--dim); }
.ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ticks span:first-child { transform: none; } .ticks span:last-child { transform: translateX(-100%); }
.ticks .free { color: var(--ok); }
.ticks .free::before { content: ""; position: absolute; left: 50%; top: -22px; width: 1px; height: 14px; background: var(--ok); opacity: .7; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { font: 13px var(--sans); color: var(--muted); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: color .15s, background-color .15s, border-color .15s; }
.presets button:hover { color: var(--text); background: var(--line); }
.presets button.on { color: var(--text); border-color: var(--text); }
.presets button:first-child { color: var(--ok); border-color: rgba(34,197,94,.4); }
.presets button:first-child.on, .presets button:first-child:hover { background: var(--ok-soft); }
.calc-row, .calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; color: var(--win-muted); font-size: 14px; }
.calc-row small { display: block; color: #71717a; font: 11.5px var(--mono); margin-top: 3px; }
.calc-row b { color: var(--win-text); font-weight: 400; font-family: var(--mono); white-space: nowrap; }
.calc-total { border-top: 1px solid var(--win-line); margin-top: 8px; padding-top: 16px; color: var(--win-text); font-size: 16px; }
.calc-total b { font-size: 34px; font-weight: 400; letter-spacing: -.035em; }
.calc-note { color: var(--win-muted); font-size: 13px; min-height: 1.2em; }
.calc-foot { color: #71717a; font-size: 12px; line-height: 1.5; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--win-line); }

/* ---- Tables inside dark windows (Stores registry) ---- */
.window table th { color: #71717a; border-bottom-color: var(--win-line); background: transparent; }
.window table td { color: var(--win-text); border-bottom-color: var(--win-line); white-space: nowrap; }
.window table tr:last-child td { border-bottom: 0; }
body.site .window pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: hidden; }

/* ---- Try it (live) ---- */
.field { position: relative; flex: 1; min-width: 0; }
.field input { width: 100%; }
.field input:focus { outline: none; border-color: rgba(255,91,46,.6); box-shadow: 0 0 0 3px var(--signal-soft); }
.field .ghost { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 12px; font: 13px var(--mono); color: var(--win-text); pointer-events: none; white-space: nowrap; overflow: hidden; }
.field.live .ghost { display: none; }
.examples { display: flex; flex-wrap: wrap; gap: 6px; font: 12px var(--mono); color: #71717a; }
.examples button { font: inherit; color: var(--win-muted); background: none; border: 1px solid var(--win-line); border-radius: 999px; padding: 3px 9px; cursor: pointer; }
.examples button:hover { color: var(--win-text); border-color: rgba(255,255,255,.2); }
.result[hidden] { display: none; }
.error { font: 12px/1.6 var(--mono); color: var(--warn); border: 1px solid rgba(245,158,11,.25); background: rgba(245,158,11,.06); border-radius: var(--radius); padding: 10px 12px; }
.thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.thumb.has-img { background: #f4f4f5; padding: 4px; }
details.json summary { cursor: pointer; font: 12px var(--mono); color: #71717a; list-style: none; }
details.json summary::before { content: "+ "; } details.json[open] summary::before { content: "− "; }
details.json pre { padding: 12px 0 0; max-height: 220px; font-size: 12px; }
.spin { width: 12px; height: 12px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Trust ---- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.trust > div { background: var(--panel); padding: 26px 28px; }
.trust h3 { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
.trust p { margin: 0; color: var(--dim); font-size: 14px; }

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 26px; background: var(--panel); display: flex; flex-direction: column; gap: 14px; }
.plan.pick { border-color: var(--line-2); box-shadow: 0 0 0 1px var(--line-2); }
.plan .price { font-size: 36px; letter-spacing: -.04em; } .plan .price small { font-size: 14px; color: var(--dim); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; display: grid; gap: 8px; }
.plan li::before { content: "—  "; color: var(--dim); }
.plan .btn { justify-content: center; margin-top: auto; }

/* ---- Closing + footer ---- */
.closing { position: relative; margin: 96px 0 0; height: 300px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--dither-bg); }
.closing .content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center;
                    background: radial-gradient(50% 60% at 50% 50%, var(--scrim) 30%, transparent 100%); }
.closing h2 { margin: 0; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 40px 0 48px; color: var(--dim); font-size: 13px; }
footer .links { margin: 0; }

@media (max-width: 900px) {
  .split, .features, .grid3, .dash, .kpis, .trust, .plans { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 46px; } .page-hero h1 { font-size: 40px; } .links, .side { display: none; } .burger { display: inline-flex; }
  .nav .btn.primary { display: none; }
  .cells, .cells.two, .cells.four, .steps-row, .duo, .uc, .calc { grid-template-columns: 1fr; } .uc { gap: 24px; } .band { height: 380px; margin: 0 16px; }
  .site-foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } .page-hero { padding: 64px 16px 40px; } .cell { border-left: 0; border-top: 1px solid var(--line); }
  .hero { margin: 16px 16px 0; } .hero .content { padding-bottom: 72px; } .nav { margin: 12px 16px 0; gap: 8px; padding: 8px 8px 8px 14px; }
  .nav .brand { margin-right: auto; } .nav .quiet { display: none; } .wrap { padding: 0 16px; }
  h2 { font-size: 28px; } .input { flex-wrap: wrap; } .input .field { flex-basis: 100%; } .input .btn { flex: 1; justify-content: center; }
}
.btn { white-space: nowrap; }

/* ---- Stores page: the catalog ---- */
.catalog-search { padding: 14px 14px 0; }
.catalog-search input { width: 100%; font: inherit; font-size: 14px; padding: 11px 12px; background: #0e0e11; border: 1px solid var(--win-line); border-radius: var(--radius); color: var(--win-text); }
.catalog-search input:focus { outline: none; border-color: rgba(255,91,46,.6); box-shadow: 0 0 0 3px var(--signal-soft); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 14px; min-height: 120px; align-content: start; }
.catalog-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--win-line); border-radius: var(--radius); min-width: 0; }
.catalog-card img { width: 28px; height: 28px; border-radius: 7px; flex: none; background: var(--win-2); object-fit: contain; }
.catalog-card div { min-width: 0; display: flex; flex-direction: column; }
.catalog-card b { font-weight: 500; color: var(--win-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catalog-card span { font-size: 12px; color: var(--win-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catalog-empty { grid-column: 1 / -1; color: var(--win-muted); margin: 0; }
.catalog-more { display: flex; justify-content: center; padding: 0 14px 16px; }
#catalog-more[hidden] { display: none; }
.catalog-note { font-size: 13px; color: var(--dim); margin-top: 12px; }
