/* Layout: libraries.dev system – one 976px column on #121212, floating 130px tiles around a
   centred claim, double-layer cards (#181818 shell, #101010 stage), blue reserved for the
   primary action. Dark-only by choice, matching the reference. */
:root {
  --bg: #121212;
  --card: #181818;
  --card-2: #1a1a1a;
  --stage: #101010;
  --stage-2: #131313;
  --btn: #2a2a2a;
  --fg: #fefefe;
  --fg-2: #ededed;
  --mute: #9e9e9e;
  --mute-2: rgba(202, 202, 202, .7);
  --dim: #767676;
  --faint: #737373;
  --line: rgba(255, 255, 255, .08);
  --blue: #0071fc;
  --blue-tint: rgba(0, 113, 252, .18);
  --blue-text: #7db4ff;

  --st-idea: #9e9e9e;
  --st-dev: #ff9f43;
  --st-beta: #a78bfa;
  --st-live: #4ade80;
  --st-ended: #5c5c5c;

  --f-body: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-display: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --f-mono: "Roboto Mono", ui-monospace, Menlo, monospace;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, .04), inset 0 1px 0 rgba(255, 255, 255, .04), inset 0 0 0 1px rgba(0, 0, 0, .06), inset 0 -1px 0 rgba(0, 0, 0, .06), inset 0 0 0 1px rgba(196, 196, 196, .07);
  --shadow-btn: 0 1px 3px rgba(0, 0, 0, .04), inset 0 1px 0 rgba(255, 255, 255, .04), inset 0 0 0 1px rgba(0, 0, 0, .06), inset 0 -1px 0 rgba(0, 0, 0, .06), inset 0 0 0 1px rgba(196, 196, 196, .1);
  --shadow-blue: 0 1px 3px rgba(0, 0, 0, .04), inset 0 1px 0 rgba(255, 255, 255, .04), inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .1);

  --col: 976px;
  --gutter-l: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.22, .8, .26, 1);
  --spring: cubic-bezier(.34, 1.5, .64, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-family: var(--f-display); font-weight: 500; text-wrap: balance; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 2px; border-radius: 8px; }
.dim { color: var(--mute); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 10px; font-size: 13px; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 32px; padding: 0 12px;
  border: 0; border-radius: 24px;
  background: var(--btn); color: #fff;
  box-shadow: var(--shadow-btn);
  font: 500 13px/1 var(--f-body);
  cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .2s var(--ease);
}
.btn:hover { background: #333; }
.btn:active { transform: scale(.97); }
.btn--blue { background: var(--blue); box-shadow: var(--shadow-blue); }
.btn--blue:hover { background: #1a80ff; }
.btn--sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn--lg { height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: inline; }
.btn[aria-disabled="true"] { color: var(--mute); cursor: default; pointer-events: none; }

.pill-blue {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 50px;
  background: var(--blue-tint); color: var(--blue-text);
  font: 500 13px/1 var(--f-body); white-space: nowrap; transition: background .2s;
}
.pill-blue:hover { background: rgba(0, 113, 252, .28); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50px; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); color: var(--fg-2); cursor: pointer; transition: background .2s;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .12); }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- nav ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; transition: background .25s, backdrop-filter .25s; }
.nav.is-scrolled, .nav.is-open { background: rgba(18, 18, 18, .8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav__inner {
  max-width: calc(var(--col) + 48px); margin-inline: auto; height: 68px;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font: 500 16px/1 var(--f-body); letter-spacing: -.01em; }
.brand__mark { width: 20px; height: 20px; transition: transform .5s var(--spring); }
.brand:hover .brand__mark { transform: rotate(-10deg); }
.brand__name span { color: var(--mute); }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 50px;
  color: var(--mute-2); font: 500 13px/16px var(--f-body); transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); background: rgba(255, 255, 255, .05); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; background: var(--blue-tint); color: var(--blue-text); font: 500 11px/1 var(--f-body); }
.nav__cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav__sheet {
  max-width: calc(var(--col) + 48px); margin-inline: auto;
  padding: 4px var(--gutter-r) 16px var(--gutter-l);
  display: grid;
}
.nav__sheet a { padding: 12px 4px; font-size: 15px; color: var(--fg-2); border-top: 1px solid var(--line); }
@media (min-width: 861px) { .nav__sheet { display: none !important; } .icon-btn[data-burger] { display: none; } }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 68px var(--gutter-r) 0 var(--gutter-l); }
.hero__box { position: relative; max-width: var(--col); height: 689px; margin: 0 auto; }
.hero__content {
  position: absolute; left: 50%; top: 240px; transform: translateX(-50%);
  width: min(100%, 560px); display: flex; flex-direction: column; align-items: center; text-align: center;
  z-index: 2; pointer-events: none;
}
.hero__content > * { pointer-events: auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 24px;
  background: var(--card); color: #b5b5b5; font: 400 13px/24px var(--f-body); font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04), inset 0 1px 0 rgba(255, 255, 255, .02), inset 0 0 0 1px rgba(196, 196, 196, .05);
  margin-bottom: 12px;
}
.hero-badge .dim { color: var(--faint); }
.hero h1 { font-size: 42px; line-height: 45px; letter-spacing: -.005em; color: var(--fg); }
.hero__lead { margin-top: 12px; color: var(--mute); font-size: 16px; line-height: 24px; max-width: 54ch; text-wrap: pretty; }
.hero__actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }

.js [data-rise] { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 80ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

/* ---------- tiles ---------- */
.tiles { position: absolute; inset: 0; z-index: 1; }
.tile {
  --tx: 0px; --ty: 0px;
  position: absolute; left: var(--x); top: var(--y);
  width: 130px; height: 130px; border-radius: 24px;
  background: var(--card); box-shadow: var(--shadow-card);
  translate: var(--tx) var(--ty);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  transition: translate .7s var(--spring), scale .3s var(--ease), box-shadow .3s;
}
.tile:hover { scale: 1.04; }
.tile.is-dragging { cursor: grabbing; transition: scale .3s var(--ease); scale: 1.08; z-index: 5; box-shadow: var(--shadow-card), 0 30px 60px -20px rgba(0, 0, 0, .8); }
.js .tile { animation: tile-in .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 250ms); }
@keyframes tile-in { from { opacity: 0; scale: .85; } }
.tile__stage {
  position: absolute; inset: 11px; border-radius: 14px; background: var(--stage);
  display: grid; place-items: center; overflow: hidden;
}
.tile__stage::after { /* soft idle float of the content, never of the frame */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

/* tile: SKAY mark with a satellite */
.mark-orbit { position: relative; width: 34px; height: 34px; animation: bob 4s ease-in-out infinite; }
.mark-orbit img { width: 34px; height: 34px; opacity: .92; }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { outline: 0 solid color-mix(in srgb, var(--c) 50%, transparent); } 100% { outline: 10px solid transparent; } }

/* tile: app glyph (also used on cards) */
.glyph {
  --accent: var(--blue);
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  font: 600 26px/1 var(--f-display); color: #fff;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .35), transparent 55%),
    radial-gradient(120% 120% at 70% 100%, color-mix(in srgb, var(--accent) 70%, #000), transparent 70%),
    var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 6px rgba(0, 0, 0, .25);
}
.glyph--img { background: none; box-shadow: none; overflow: hidden; }
.glyph--img img { width: 100%; height: 100%; display: block; }
.tile--bystro .glyph { animation: bob 4.5s ease-in-out infinite; animation-delay: -1.4s; }

/* tile: integration logos, drawn like app icons */
.logo-ico {
  position: relative; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  animation: bob 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s);
}
.logo-ico img { display: block; pointer-events: none; }
.logo-ico--full img { width: 100%; height: 100%; object-fit: cover; }
.logo-ico--pad { background: #fff; }
.logo-ico--pad img { width: 62%; height: 62%; object-fit: contain; }
.logo-ico::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(0, 0, 0, .06); }
.tile--sm { width: 104px; height: 104px; border-radius: 20px; }
.tile--sm .tile__stage { inset: 9px; border-radius: 12px; }
.tile--sm .logo-ico { width: 46px; height: 46px; border-radius: 12px; }
@media (max-width: 1100px) { .tile--sm { display: none; } }

/* ---------- stack row ---------- */
.stack { max-width: var(--col); margin: -48px auto 64px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.stack p { text-align: center; color: var(--faint); font-size: 13px; line-height: 20px; margin: 32px 0 24px; }
.stack__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 48px; }
.stack__row li { display: flex; align-items: center; }
.stack__row .wm { width: auto; opacity: .5; transition: opacity .25s; }
/* sized for equal ink area, not equal box height; descenders (Google g, Stripe p) nudged down so every mark sits on one optical centre line */
.wm--stripe { height: 22px; transform: translateY(2px); }
.wm--google { height: 23px; transform: translateY(3px); }
.wm--vercel { height: 19px; transform: translateY(1px); }
.wm--claude { height: 19px; }
.stack__row li:hover img { opacity: .85; }
.stack p.stack__note { margin: 20px auto 0; max-width: 60ch; font-size: 11.5px; line-height: 17px; color: #5c5c5c; }

/* ---------- library cards ---------- */
.cards {
  max-width: calc(var(--col) + 48px); margin: 0 auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
}
.lib-card {
  --accent: var(--blue);
  position: relative; isolation: isolate;
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow-card);
  padding: 12px 12px 18px;
  display: grid; gap: 16px;
  transition: transform .4s var(--ease);
  min-width: 0;
}
.lib-card:hover { transform: translateY(-3px); }
.lib-card--wide { grid-column: 1 / -1; }
.lib-card__hit { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.card-stage {
  position: relative; aspect-ratio: 296 / 254; max-width: 100%;
  border-radius: 14px; background: var(--stage-2); overflow: hidden;
  display: grid; place-items: center;
}
.lib-card--wide .card-stage { aspect-ratio: 952 / 400; }
.lib-meta { display: flex; align-items: center; gap: 12px; padding: 0 4px; min-width: 0; }
.lib-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.lib-ico .glyph { width: 46px; height: 46px; border-radius: 12px; font-size: 20px; }
.lib-meta__text { display: grid; gap: 8px; min-width: 0; flex: 1; }
.lib-name { display: flex; align-items: center; gap: 8px; color: var(--fg-2); font: 500 14px/13px var(--f-body); }
.lib-desc { color: var(--dim); font-size: 14px; line-height: 18px; }
.lib-action { flex: none; position: relative; z-index: 4; }

.tag { --c: var(--st-idea); display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 6px; font: 500 11px/1 var(--f-body); color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag--idea { --c: var(--st-idea); } .tag--dev { --c: var(--st-dev); } .tag--beta { --c: var(--st-beta); } .tag--live { --c: var(--st-live); } .tag--ended { --c: var(--st-ended); }

/* stage: flagship with a border beam riding the inner frame */
.stage-flag { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-flag__win {
  position: relative; width: min(62%, 440px); aspect-ratio: 16 / 7; max-width: 100%;
  border-radius: 18px; background: #161616;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .9);
  display: flex; align-items: center; gap: 16px; padding: 0 22px;
}
.stage-feats { position: absolute; top: 16px; right: 16px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
.stage-feats span { height: 24px; padding: 0 10px; border-radius: 24px; display: inline-flex; align-items: center; font-size: 11px; color: var(--mute); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }

/* flagship window as Bystro's morning brief */
.stage-flag__win.brief { min-width: 0; width: min(70%, 520px); aspect-ratio: auto; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; margin-top: 28px; }
.brief__head { display: flex; align-items: center; gap: 10px; }
.brief__head .glyph { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.brief__head b { display: block; font: 500 14px/1.2 var(--f-body); color: var(--fg-2); }
.brief__head em { display: block; font: normal 400 12px/1.3 var(--f-body); color: var(--dim); }
.brief__chart { border-radius: 12px; background: var(--stage); padding: 12px 12px 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.brief__label { display: block; font-size: 11px; color: var(--dim); margin-bottom: 6px; }
.brief__chart svg { width: 100%; height: 70px; overflow: visible; }
.brief__area { fill: url(#brief-fill); }
.brief__past, .brief__future { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.brief__past { stroke: #fff; stroke-dasharray: 320; stroke-dashoffset: 320; animation: brief-draw 1.4s var(--ease) .3s forwards; }
.brief__future { stroke: var(--blue-text); stroke-dasharray: 5 5; opacity: 0; animation: brief-fade .8s var(--ease) 1.4s forwards; }
.brief__today { stroke: rgba(255, 255, 255, .14); stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.brief__dot { fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .8)); }
@keyframes brief-draw { to { stroke-dashoffset: 0; } }
@keyframes brief-fade { to { opacity: 1; } }
.brief__task { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.brief__task-text { flex: 1; min-width: 0; }
.brief__task-text b { display: block; font: 500 13px/1.3 var(--f-body); color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brief__task-text em { display: block; font: normal 400 11px/1.4 var(--f-body); color: var(--dim); }
.brief__approve { flex: none; height: 28px; padding: 0 12px; border-radius: 24px; display: inline-flex; align-items: center; background: var(--blue); box-shadow: var(--shadow-blue); color: #fff; font: 500 12px/1 var(--f-body); animation: approve 3.2s ease-in-out infinite; }
@keyframes approve { 0%, 70%, 100% { box-shadow: var(--shadow-blue), 0 0 0 0 rgba(0, 113, 252, .5); } 85% { box-shadow: var(--shadow-blue), 0 0 0 8px rgba(0, 113, 252, 0); } }
.stage-chip { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-btn); color: #b5b5b5; font-size: 12px; }
.stage-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--st-dev); --c: var(--st-dev); animation: ping 2s ease-out infinite; }

/* stage: sketch (idea) */
.stage-sketch { position: absolute; inset: 0; display: grid; place-items: center; background-image: radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1.3px); background-size: 14px 14px; }
.stage-sketch__card { width: 44%; aspect-ratio: 3 / 4; max-width: 100%; border-radius: 16px; border: 1.5px dashed rgba(255, 255, 255, .18); display: grid; place-items: center; animation: bob 5s ease-in-out infinite; }
.stage-sketch__card span { font: 500 40px/1 var(--f-display); color: rgba(255, 255, 255, .5); }
.stage-sketch__card span::after { content: "|"; margin-left: 2px; color: var(--blue-text); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* stage: your app */
.stage-cta { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-cta__plus { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow-btn); transition: transform .5s var(--spring), background .3s; }
.stage-cta__plus svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.lib-card--cta:hover .stage-cta__plus { transform: rotate(90deg); background: var(--blue); }
.lib-ico--ghost { border: 1.5px dashed rgba(255, 255, 255, .18); color: var(--mute); font-size: 20px; }

.cards__more { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 8px; }
.cards__msg { grid-column: 1 / -1; color: var(--mute); padding: 40px; text-align: center; background: var(--card); border-radius: 24px; box-shadow: var(--shadow-card); font-size: 14px; }

/* flagship card in the bento language: glass UI over light rising from the bottom */
.lib-card--wide .card-stage { background: #0c0c0c; isolation: isolate; }
.lib-card--wide .card-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #0c0c0c 30%, rgba(12, 12, 12, .45) 62%, rgba(12, 12, 12, 0) 100%); }
.lib-card--wide .bento__bg i { opacity: .7; }
.lib-card--wide:hover .bento__bg i { opacity: 1; }
.stage-flag .bento__bg { z-index: -2; }
.lib-card--wide .stage-chip { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lib-card--wide .stage-feats span { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lib-card--wide .stage-flag__win.brief { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -30px rgba(0, 0, 0, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lib-card--wide .brief__chart { background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.lib-card--wide .brief__task { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.lib-card--wide .brief__approve { background: linear-gradient(180deg, #4b9bff, #0071fc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px -8px rgba(0, 113, 252, .8); }

@media (max-width: 720px) {
  .cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lib-card--wide .card-stage { aspect-ratio: 296 / 254; }
  .lib-card--wide .card-stage { aspect-ratio: auto; min-height: 330px; }
  .stage-feats { display: none; }
  .lib-meta { flex-wrap: wrap; }
  .lib-meta__text { flex: 1 1 0; }
  .lib-action { flex-basis: 100%; }
  .lib-action .btn { width: 100%; height: 40px; }
  .stage-flag__win.brief { width: calc(100% - 28px); padding: 14px; gap: 10px; margin-top: 36px; }
  .brief__chart svg { height: 56px; }
}

/* ---------- home sections ---------- */
.home-section { max-width: calc(var(--col) + 48px); margin: 0 auto; padding: 112px var(--gutter-r) 0 var(--gutter-l); }
.section-title { font-size: 30px; line-height: 1.3; letter-spacing: -.01em; text-align: center; margin-bottom: 40px; }
.howto-head { display: grid; gap: 16px; max-width: 640px; margin-bottom: 40px; }
.howto-title { font-size: 38px; line-height: 44px; letter-spacing: -.01em; }
.howto-title .dim { color: var(--mute); }
.howto-lede { color: var(--mute-2); font-size: 14px; line-height: 22px; max-width: 56ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { background: var(--card); border-radius: 24px; box-shadow: var(--shadow-card); padding: 32px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.steps--4 .step { padding: 28px; }
.step__meta { display: grid; gap: 16px; margin-bottom: 4px; }
.step h3 { color: var(--fg-2); font: 500 15px/20px var(--f-body); }
.step p { color: var(--mute-2); font-size: 14px; line-height: 22px; }
.step__num, .step__ico { width: 21px; height: 21px; border-radius: 50px; display: grid; place-items: center; background: var(--blue); box-shadow: var(--shadow-blue); color: #fff; font: 500 11px/12px var(--f-body); }
.step__ico { width: 28px; height: 28px; border-radius: 9px; }
.step__ico svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .steps, .steps--4 { grid-template-columns: minmax(0, 1fr); } .step { padding: 24px; } .howto-title { font-size: 30px; line-height: 36px; } }

/* ---------- bento (services) ---------- */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bento__card {
  position: relative; isolation: isolate; overflow: hidden; height: 500px;
  border-radius: 24px; background: #0c0c0c; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; min-width: 0;
}
/* slow liquid light rising from the bottom of each card */
.bento__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.bento__bg i { position: absolute; border-radius: 50%; filter: blur(36px); opacity: .9; transition: opacity .6s var(--ease); will-change: transform; }
.bento__bg i:nth-child(1) { width: 140%; height: 80%; left: -45%; bottom: -28%; background: radial-gradient(closest-side, #0071fc, transparent); animation: liquid-a 14s ease-in-out infinite alternate; }
.bento__bg i:nth-child(2) { width: 110%; height: 70%; right: -40%; bottom: -12%; background: radial-gradient(closest-side, #7db4ff, transparent); animation: liquid-b 17s ease-in-out infinite alternate; }
.bento__bg i:nth-child(3) { width: 80%; height: 50%; left: 15%; bottom: -25%; background: radial-gradient(closest-side, #c9e0ff, transparent); opacity: .45; animation: liquid-c 11s ease-in-out infinite alternate; }
.bento__card:nth-child(2) .bento__bg i { animation-delay: -5s; }
.bento__card:nth-child(3) .bento__bg i { animation-delay: -9s; }
.bento__card::before { /* dark veil: the top stays calm, the light lives at the bottom */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #0c0c0c 38%, rgba(12, 12, 12, .5) 58%, rgba(12, 12, 12, 0) 92%);
}
.bento__card:hover .bento__bg i { opacity: 1; }
.bento__card:hover .bento__bg i:nth-child(3) { opacity: .65; }
@keyframes liquid-a { to { transform: translate(30%, -12%) scale(1.15) rotate(12deg); } }
@keyframes liquid-b { to { transform: translate(-35%, -18%) scale(.9) rotate(-10deg); } }
@keyframes liquid-c { to { transform: translate(-20%, -30%) scale(1.3); } }
.bento__ui { position: relative; margin: 40px 28px 0; }
.bento__text { margin-top: auto; padding: 0 26px 28px; display: grid; gap: 10px; }
.bento__text h3 { font: 500 22px/1.2 var(--f-display); letter-spacing: -.01em; color: #fff; }
.bento__text p { color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 22px; }

/* card 1: AI chat */
.bento-chat { display: grid; gap: 14px; }
.bento-chat__avatar { justify-self: end; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.bento-chat__avatar svg { width: 16px; height: 16px; fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.4; stroke-linecap: round; }
.bento-chat__msg { padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .5); font-size: 14px; line-height: 23px; }
.bento-chat__msg b { color: #fff; font-weight: 500; }
.bento-chat__input { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .3); font-size: 13px; white-space: nowrap; min-width: 0; }
.bento-chat__input > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.bento-chat__go { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 16px; border-radius: 999px; color: #fff; font-weight: 500; background: linear-gradient(180deg, #4b9bff, #0071fc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px -8px rgba(0, 113, 252, .8); animation: go 3s ease-in-out infinite; }
.bento-chat__go kbd { font: 500 10px/1 var(--f-body); padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, .2); }
@keyframes go { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(.96); } 80% { transform: scale(1); } }

/* card 2: integrations drifting past */
.bento-int { margin-right: 0; padding: 14px 0 14px 14px; border-radius: 20px 0 0 20px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); display: grid; gap: 12px; overflow: hidden; }
.bento-int__head { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .85); font-size: 13px; padding-bottom: 4px; }
.bento-int__head img { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.int-row { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 85%, transparent); }
.int-track { display: flex; gap: 10px; width: max-content; animation: marquee 22s linear infinite; }
.int-row--rev .int-track { animation-direction: reverse; animation-duration: 26s; }
.int-row:nth-child(4) .int-track { animation-duration: 19s; }
.bento__card:hover .int-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }
.int { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.int img { width: 22px; height: 22px; border-radius: 5px; object-fit: contain; }
.int--txt { font: 600 10.5px/1 var(--f-body); color: rgba(255, 255, 255, .7); letter-spacing: .02em; }
.int--mono img { width: 18px; height: 18px; border-radius: 0; }

/* card 3: building the prototype together */
.bento-form__label { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .8); margin-bottom: 12px; }
.bento-form__field { position: relative; display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .3); font-size: 14px; }
.bento-form__caret { width: 1px; height: 18px; background: rgba(255, 255, 255, .85); animation: blink 1.1s steps(1) infinite; }
.bento-form__box { position: relative; margin-top: 24px; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.bento-form__box b { display: block; color: #fff; font-size: 14px; font-weight: 500; }
.bento-form__box em { display: block; font-style: normal; color: rgba(255, 255, 255, .4); font-size: 12px; margin-top: 2px; }
.bento-form__ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.bento-form__ico svg { width: 15px; height: 15px; fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.3; stroke-linecap: round; }
.cursor-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 999px; color: #fff; font: 600 12px/1 var(--f-body); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); }
.cursor-chip svg { width: 12px; height: 12px; fill: currentColor; transform: scaleX(-1); }
.cursor-chip--orange { background: #f97316; right: 14px; bottom: -12px; animation: chip-a 4.2s ease-in-out infinite; }
.cursor-chip--blue { background: #3b9bff; left: 10px; bottom: -14px; animation: chip-b 5s ease-in-out infinite; }
@keyframes chip-a { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(-46px, -6px); } 65% { transform: translate(-18px, 2px); } }
@keyframes chip-b { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(64px, -4px); } 70% { transform: translate(30px, 3px); } }

@media (max-width: 900px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__card { height: 460px; }
}

/* ---------- flow (how I work): four steps on a rail that fills as you scroll ---------- */
.flow { --p: 0; position: relative; }
.flow__rail { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; height: 28px; align-items: center; }
.flow__dot { position: relative; z-index: 1; justify-self: start; margin-left: 24px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--f-body); color: var(--mute); background: var(--card); box-shadow: var(--shadow-btn); transition: background .4s, color .4s, box-shadow .4s, transform .4s var(--spring); }
.flow__dot.is-lit { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue), 0 0 0 5px rgba(0, 113, 252, .15); transform: scale(1.08); }
.flow__line { position: absolute; left: 38px; right: calc((100% - 54px) / 4 - 38px); top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.flow__line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--blue-text)); transform-origin: left; transform: scaleX(var(--p)); transition: transform .15s linear; }
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
/* each step is a small bento card: glass UI on top, light rising from below once the step is reached */
.flow__step.bento__card { height: 420px; }
.flow__step .bento__bg i { opacity: .25; transition: opacity .8s var(--ease); }
.flow__step.is-lit .bento__bg i { opacity: .8; }
.flow__step.is-lit .bento__bg i:nth-child(3) { opacity: .4; }
.flow__step:hover .bento__bg i { opacity: 1; }
.flow__ui { position: relative; margin: 28px 20px 0; display: grid; gap: 12px; }
.flow__body { margin-top: auto; padding: 0 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.flow__num { display: none; }
.flow__body h3 { font: 500 19px/1.2 var(--f-display); letter-spacing: -.01em; color: #fff; }
.flow__body p { color: rgba(255, 255, 255, .75); font-size: 13.5px; line-height: 21px; min-height: 84px; } /* four lines, so every title sits on the same line */
.flow__out { margin-top: 6px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 500 11.5px/1.2 var(--f-body); color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }
.flow__out::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-text); }

/* glass pieces, same vocabulary as the bento cards above */
.glass-label { font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.glass-field { position: relative; display: flex; align-items: flex-start; gap: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); font-size: 13px; line-height: 19px; }
.glass-field .bento-form__caret { display: inline-block; height: 15px; margin-left: 2px; vertical-align: -2px; }
.glass-field .cursor-chip--orange { bottom: -14px; right: 12px; }
.glass-win { position: relative; display: grid; gap: 8px; padding: 10px 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.glass-win__bar { display: flex; gap: 4px; padding-bottom: 4px; }
.glass-win__bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.glass-win__row { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .1); }
.glass-win__row--s { width: 62%; }
.glass-win__btn { justify-self: start; margin-top: 4px; padding: 6px 12px; border-radius: 999px; font: 500 11.5px/1 var(--f-body); color: #fff; background: linear-gradient(180deg, #4b9bff, #0071fc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.glass-win .cursor-chip--blue { left: auto; right: 14px; bottom: -12px; }
.glass-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); min-width: 0; }
.glass-row > span:nth-child(2) { flex: 1; min-width: 0; }
.glass-row b { display: block; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass-row em { display: block; font-style: normal; color: rgba(255, 255, 255, .45); font-size: 11.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.glass-ico svg { width: 13px; height: 13px; fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.live-pill { --c: var(--st-live); flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font: 600 11px/1 var(--f-body); color: #0b1a10; background: var(--st-live); }
.live-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #0b1a10; }
.bento-obor { display: grid; gap: 10px; }
.glass-row--active { position: relative; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.bento-obor .cursor-chip--blue { left: auto; right: 14px; bottom: -14px; }
.glass-list { display: grid; gap: 8px; }
.glass-list__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); min-width: 0; }
.glass-list__item b { font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.glass-list__item em { flex: none; font: normal 500 10.5px/1 var(--f-mono); color: rgba(255, 255, 255, .4); }
.glass-list__item.is-new { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.glass-list__item.is-new b { color: #fff; }
.glass-list__item.is-new em { font-family: var(--f-body); font-size: 10.5px; padding: 3px 7px; border-radius: 999px; color: #fff; background: var(--blue); }
.glass-list__item:nth-child(3) { opacity: .6; }

@media (max-width: 960px) {
  .flow__rail { display: none; }
  .flow__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); box-shadow: var(--shadow-blue); color: #fff; font: 500 11px/1 var(--f-body); margin-bottom: 4px; }
  .flow__step.bento__card { height: 400px; }
  .flow__body p { min-height: 0; }
}
@media (max-width: 620px) { .flow__steps { grid-template-columns: minmax(0, 1fr); } }

/* reveal: visible without JS, waits for the viewport with JS */
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(16px); }
[data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }

/* about */
.about { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; }
.about__stage { background: var(--card); border-radius: 24px; box-shadow: var(--shadow-card); position: relative; min-height: 280px; display: grid; place-items: center; align-content: center; gap: 20px; overflow: hidden; }
.about__stage::before { content: ""; position: absolute; inset: 11px; border-radius: 14px; background: var(--stage); z-index: 0; }
.about__stage > * { position: relative; z-index: 1; }
.about__stage img { width: 72px; height: 72px; animation: bob 5s ease-in-out infinite; }
.about__sign { font: 500 13px/1 var(--f-mono); color: var(--mute); }
.about__text { background: var(--card-2); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02), inset 0 0 0 1px rgba(255, 255, 255, .02); }
.quote-text { color: #c9c9c9; font-size: 18px; line-height: 28px; max-width: 54ch; }
.quote-sub { color: var(--mute-2); font-size: 14px; line-height: 22px; max-width: 60ch; }
.author { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.author__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; box-shadow: 0 0 0 2px var(--card-2), 0 0 0 3px rgba(255, 255, 255, .12); }
.author__id { display: grid; gap: 4px; }
.author__id b { font: 500 14px/1 var(--f-body); }
.author__id span { color: var(--dim); font-size: 13px; }
.socials { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 720px) { .about { grid-template-columns: minmax(0, 1fr); } .about__stage { min-height: 220px; } .about__text { padding: 24px; } .socials { margin-left: 0; width: 100%; } }

/* faq */
.faq { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; background: none; border: 0; color: var(--fg); font: 400 15px/22px var(--f-body); text-align: left; cursor: pointer; }
.acc__head svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--mute); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.acc__head[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel p { color: var(--mute-2); font-size: 14px; line-height: 22px; padding-bottom: 18px; max-width: 60ch; }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; background: var(--card); border-radius: 24px; box-shadow: var(--shadow-card); padding: 40px; }
.contact__intro { display: grid; gap: 16px; align-content: start; }
.form { display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--mute); }
.field input, .field textarea {
  width: 100%; font: 400 14px/22px var(--f-body); color: var(--fg);
  background: var(--stage); border: 0; border-radius: 12px; padding: 10px 14px; resize: vertical;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  transition: box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #555; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 3px rgba(0, 113, 252, .2); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1px #ff6b6b; }
.form__error { color: #ff8a8a; font-size: 13px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form .btn--lg:disabled { opacity: .6; cursor: progress; }
.printer.printer[data-stage="failed"] .printer__idle { opacity: 1; background: #ff6b6b; box-shadow: 0 0 8px #ff6b6b; animation: none; }
.form__done { display: grid; gap: 8px; align-content: center; text-align: center; padding: 24px; }
.form__done h3 { font: 500 15px/20px var(--f-body); }
.form__done p { color: var(--mute-2); font-size: 14px; line-height: 22px; }
.form .btn--lg { justify-self: start; }
@media (max-width: 760px) { .contact { grid-template-columns: minmax(0, 1fr); padding: 24px; } .form .btn--lg { justify-self: stretch; } }

/* ---------- receipt printer (contact) ---------- */
.printer { --p-radius: 24px; --p-inset: 12px; position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 384px; margin-top: 16px; }
.printer__machine {
  position: relative; isolation: isolate; width: 100%; overflow: hidden;
  border-radius: var(--p-radius); padding: var(--p-inset) var(--p-inset) 32px;
  background: linear-gradient(180deg, #232323, #1c1c1c);
  box-shadow: 0 20px 36px -20px rgba(0, 0, 0, .8), 0 6px 14px -8px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -1px 0 rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.printer__machine::before { /* plastic grain */
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1.2px), radial-gradient(rgba(0, 0, 0, .25) 1px, transparent 1.2px);
  background-size: 3px 3px, 5px 5px; background-position: 0 0, 1px 2px;
}
.printer__head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; height: 36px; padding: 2px 4px 0; }
.printer__brand { display: inline-flex; align-items: center; gap: 7px; font: 500 11px/14px var(--f-mono); letter-spacing: .06em; color: #6b6b6b; }
.printer__brand img { width: 14px; height: 14px; opacity: .55; }
.printer__leds { display: flex; gap: 6px; padding-top: 4px; }
.printer__leds i { width: 6px; height: 6px; border-radius: 50%; background: #333; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .6); transition: background .3s, box-shadow .3s; }
.printer__leds i:first-child { background: #3a7a4f; box-shadow: 0 0 6px rgba(74, 222, 128, .5); }
.printer[data-stage="processing"] .printer__leds i:last-child,
.printer[data-stage="printing"] .printer__leds i:last-child { background: var(--st-dev); box-shadow: 0 0 8px var(--st-dev); animation: led .5s steps(2) infinite; }
@keyframes led { 50% { opacity: .3; } }
.printer__screen {
  position: relative; z-index: 1; isolation: isolate; overflow: hidden;
  border-radius: calc(var(--p-radius) - var(--p-inset)); padding: 16px;
  background: #0b0b0b; color: #d9d9d9;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.printer__screen::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 24px 4px rgba(0, 0, 0, .55); background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 3px); }
.printer__status { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.printer__ind { position: relative; display: grid; place-items: center; width: 20px; height: 20px; flex: none; }
.printer__ind > * { grid-area: 1 / 1; transition: opacity .16s cubic-bezier(.23, 1, .32, 1), transform .16s cubic-bezier(.23, 1, .32, 1); }
.printer__spin, .printer__check { width: 18px; height: 18px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.printer__spin { stroke: #8a8a8a; stroke-width: 2.2; opacity: 0; transform: scale(.94); animation: spin .8s linear infinite; }
.printer__check { opacity: 0; transform: scale(.94); }
.printer__check circle { fill: var(--st-live); stroke: none; }
.printer__check path { stroke: #0b0b0b; stroke-width: 1.8; }
.printer__idle { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-text); box-shadow: 0 0 8px var(--blue-text); animation: idle 2.4s ease-in-out infinite; }
@keyframes idle { 50% { opacity: .35; } }
.printer[data-stage="processing"] .printer__spin, .printer[data-stage="printing"] .printer__spin { opacity: 1; transform: none; }
.printer[data-stage="complete"] .printer__check { opacity: 1; transform: none; }
.printer:not([data-stage="idle"]) .printer__idle { opacity: 0; transform: scale(.9); }
.printer__label { display: grid; min-width: 0; flex: 1; }
.printer__label > span { grid-area: 1 / 1; font: 500 12px/1.2 var(--f-mono); color: #a3a3a3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.printer__label > span.out { animation: lbl-out .18s cubic-bezier(.23, 1, .32, 1) forwards; }
.printer__label > span.in { animation: lbl-in .18s cubic-bezier(.23, 1, .32, 1); }
@keyframes lbl-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes lbl-in { from { opacity: 0; transform: translateY(4px); } }
.printer__slot { position: absolute; left: 24px; right: 24px; bottom: var(--p-inset); z-index: 3; height: 8px; border-radius: 4px; background: #050505; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .05); }

.printer__output { position: relative; z-index: 5; width: calc(80% + 48px); max-width: 100%; margin-top: -16px; padding: 0 24px; overflow: hidden; height: 0; }
.printer__output.is-on::before { /* shadow cast by the slot onto the paper */
  content: ""; position: absolute; left: 24px; right: 24px; top: -4px; z-index: 3; height: 8px; background: rgba(0, 0, 0, .75); filter: blur(6px); pointer-events: none;
}
.receipt-feed { position: relative; isolation: isolate; opacity: 0; }
.receipt-feed::before { content: ""; position: absolute; left: 12px; right: 12px; top: 12px; bottom: 16px; z-index: -1; border-radius: 2px; box-shadow: 0 8px 24px rgba(0, 0, 0, .55); }
.receipt {
  position: relative; padding: 28px 22px 34px; min-height: 300px;
  font: 400 11.5px/1.55 var(--f-mono); color: #1b1b1b;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(0, 0, 0, .05), transparent 60%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .012) 0 1px, transparent 1px 4px),
    #f3f1ea;
  clip-path: var(--receipt-clip);
}
.receipt__logo { display: grid; justify-items: center; gap: 6px; text-align: center; margin-bottom: 14px; }
.receipt__logo img { width: 26px; height: 26px; filter: invert(1); }
.receipt__logo b { font-weight: 500; letter-spacing: .18em; font-size: 12px; }
.receipt__logo span { color: #6a6a6a; font-size: 10.5px; }
.receipt__rule { border: 0; border-top: 1px dashed #9a9a92; margin: 10px 0; }
.receipt__row { display: flex; justify-content: space-between; gap: 12px; }
.receipt__row span:first-child { color: #6a6a6a; flex: none; }
.receipt__row span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.receipt__msg { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.receipt__total { display: flex; justify-content: space-between; font-weight: 500; font-size: 12.5px; }
.receipt__bar { height: 34px; margin: 14px auto 6px; width: 78%; background: repeating-linear-gradient(90deg, #1b1b1b 0 2px, transparent 2px 3px, #1b1b1b 3px 4px, transparent 4px 7px, #1b1b1b 7px 10px, transparent 10px 11px); }
.receipt__foot { text-align: center; color: #6a6a6a; font-size: 10.5px; }
.printer__again { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ---------- footer ---------- */
.footer { max-width: calc(var(--col) + 48px); margin: 112px auto 0; padding: 0 var(--gutter-r) max(40px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); font-size: 13px; line-height: 18.2px; display: flex; flex-direction: column; gap: 25px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: grid; gap: 14px; align-content: start; }
.footer__brand p { color: var(--mute); }
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__cols h4 { font: 400 13px/18px var(--f-body); color: var(--faint); margin-bottom: 10px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__cols a { color: var(--mute); transition: color .2s; }
.footer__cols a:hover { color: var(--fg); }
.footer__bottom { padding-top: 56px; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; display: grid; gap: 4px; }

/* ---------- legal pages ---------- */
.legal { max-width: calc(720px + 48px); margin: 0 auto; padding: 140px var(--gutter-r) 0 var(--gutter-l); }
.legal__head { display: grid; justify-items: start; gap: 14px; padding-bottom: 32px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal__head h1 { font-size: 42px; line-height: 45px; letter-spacing: -.005em; }
.legal__lead { color: var(--mute); font-size: 16px; line-height: 24px; max-width: 56ch; }
.legal section { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.legal h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--mute-2); font-size: 14.5px; line-height: 24px; max-width: 68ch; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.legal a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(125, 180, 255, .4); }
.legal a:hover { text-decoration-color: currentColor; }
.legal__table { overflow-x: auto; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); }
.legal__table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13.5px; line-height: 20px; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal__table th { color: var(--fg-2); font-weight: 500; font-size: 12.5px; }
.legal__table td { color: var(--mute-2); }
.legal__table tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .legal { padding-top: 110px; } .legal__head h1 { font-size: 32px; line-height: 36px; } }

/* ---------- library page ---------- */
.page-head { max-width: calc(var(--col) + 48px); margin: 0 auto; padding: 150px var(--gutter-r) 40px var(--gutter-l); display: grid; justify-items: center; text-align: center; gap: 12px; }
.page-head h1 { font-size: 42px; line-height: 45px; letter-spacing: -.005em; }
.page-head p:not(.hero-badge) { color: var(--mute); line-height: 24px; max-width: 54ch; }
.toolbar { max-width: calc(var(--col) + 48px); margin: 0 auto 24px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 24px; border: 0; background: transparent; color: var(--mute-2); font: 500 13px/1 var(--f-body); cursor: pointer; transition: color .2s, background .2s; }
.chip:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.chip[aria-pressed="true"] { background: var(--btn); color: #fff; box-shadow: var(--shadow-btn); }
.chip__n { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.search { position: relative; flex: 0 1 260px; min-width: 0; }
.search input { width: 100%; height: 34px; padding: 0 14px 0 34px; border-radius: 24px; border: 0; background: var(--card); box-shadow: var(--shadow-card); color: var(--fg); font: 13px var(--f-body); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--blue); }
.search svg { position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); stroke: var(--mute); fill: none; stroke-width: 1.6; stroke-linecap: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- small screens: tiles become a row under the claim ---------- */
@media (max-width: 860px) {
  .hero { padding-top: 120px; }
  .hero__box { height: auto; display: flex; flex-direction: column; align-items: center; gap: 48px; }
  .hero__content { position: static; transform: none; }
  .hero h1 { font-size: 34px; line-height: 38px; }
  .tiles { position: static; order: 2; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
  .tile { position: relative; left: auto; top: auto; width: 96px; height: 96px; border-radius: 20px; }
  .tile__stage { inset: 8px; border-radius: 13px; }
  .tile--pipedrive { display: none; }
  .glyph { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; }
  .logo-ico { width: 44px; height: 44px; border-radius: 12px; }
  .stack { margin-top: 24px; }
  .stack__row { gap: 12px 20px; }
  .wm--stripe { height: 18px; } .wm--google { height: 20px; transform: translateY(2px); } .wm--vercel { height: 15px; } .wm--claude { height: 16px; }
}
@media (max-width: 440px) { .hero h1 { font-size: 30px; line-height: 34px; } .tiles { gap: 8px; } .tile { width: 72px; height: 72px; border-radius: 18px; } .tile__stage { inset: 7px; border-radius: 11px; } .glyph { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; } .mark-orbit { transform: scale(.8); } .logo-ico { width: 36px; height: 36px; border-radius: 10px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}

/* the logo row now leads straight into the first section */
.stack + .home-section { padding-top: 56px; }
