/* pump-sim homepage. Mirrors design/homepage/Homepage.dc.html (desktop) and
   Homepage-mobile.dc.html (<= 760 px). Tokens and shared components come from tokens.css. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.hp { background: var(--bg); color: var(--ink); font: 400 15px/1.5 "IBM Plex Sans", system-ui, sans-serif; overflow-x: hidden; }
.hp a { color: var(--accent); text-decoration: none; }
.hp a:hover { color: var(--ink); text-decoration: underline; }
.hp p { margin: 0; text-wrap: pretty; }
.hp main { display: block; }
.hp button { font: inherit; }
.fx { display: flex; }
.col { flex-direction: column; }
.gap8 { gap: 8px; }
.gap12 { gap: 12px; }
.gap16 { gap: 16px; }
.gap24 { gap: 24px; }
.m-only { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; box-sizing: content-box; }

/* nav */
.nav { border-bottom: 1px solid var(--line); background: var(--surface); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 62px; }
.nav .brand { font-size: 16px; }
.hp a.brand, .hp a.brand:hover { color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 22px; }
.hp .nav-links a { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icbtn { box-sizing: content-box; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; padding: 0; }
.icbtn:hover { background: var(--surface-2); }
.hp a.btn, .hp a.btn:hover { color: var(--ink); text-decoration: none; }
.seg > button { appearance: none; border: 0; background: none; padding: 5px 11px; border-radius: 5px; color: var(--ink-2); font: 500 12.5px/1.5 "IBM Plex Sans", sans-serif; cursor: pointer; white-space: nowrap; }
.seg > button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.mnav { border-top: 1px solid var(--line); padding: 8px 16px 12px; display: flex; flex-direction: column; }
.hp .mnav a, .mnav button { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.mnav button { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; border-top: 1px solid var(--line); margin-top: 4px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 64px; }
.hero-t { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 "IBM Plex Mono", monospace; color: var(--ink-2); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.eyebrow i { width: 6px; height: 10px; border-radius: 1px; background: var(--digit); display: block; }
.h-disp { font: 600 52px/1.06 "IBM Plex Sans", sans-serif; letter-spacing: -0.028em; margin: 0; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.bb { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 15px/1 "IBM Plex Sans", sans-serif; white-space: nowrap; }
.hp a.bb, .hp a.bb:hover { color: var(--ink); text-decoration: none; }
.hp a.bb:hover { background: var(--surface-2); }
.hp a.bb.pri, .hp a.bb.pri:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hp a.bb.pri:hover { filter: brightness(1.06); }
.hp a.bb.ghost { background: transparent; border-color: transparent; color: var(--ink-2); padding: 0 10px; }
.hp a.bb.ghost:hover { color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 12.5px/1.4 "IBM Plex Mono", monospace; color: var(--ink-3); }
.meta .ms { font-size: 14px; vertical-align: -2px; color: var(--ok); }
.tryline { display: flex; align-items: center; gap: 12px; }
.tryk { font: 600 10.5px/1.2 "IBM Plex Sans", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.cmd { display: inline-flex; align-items: center; gap: 10px; background: var(--code-bg); color: var(--code-ink); font: 400 13px/1 "IBM Plex Mono", monospace; padding: 10px 12px; border-radius: 7px; white-space: nowrap; min-width: 0; }
.cmd .pr { color: oklch(0.6 0.01 250); }
.cmd .ms { font-size: 15px; color: oklch(0.65 0.01 250); }
.cpb { appearance: none; border: 0; background: none; padding: 0; margin: 0; color: inherit; cursor: pointer; display: inline-grid; place-items: center; line-height: 1; }
.cpb:hover .ms { color: var(--code-ink); }
.hv { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.hv-card { width: 340px; zoom: 1.3; }
.hv-card .canal { box-shadow: 0 1px 2px oklch(0.2 0.02 250 / 0.06), 0 18px 40px oklch(0.2 0.02 250 / 0.12); }
.cap { font: 500 12px/1.3 "IBM Plex Mono", monospace; color: var(--ink-3); }

/* interface shot */
.shot { padding: 24px 0 88px; background: linear-gradient(180deg, transparent 0 34%, var(--surface-2) 34% 100%); }
.shot-h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-bottom: 28px; }
.win { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg); box-shadow: 0 2px 6px oklch(0.2 0.02 250 / 0.06), 0 30px 60px oklch(0.2 0.02 250 / 0.16); position: relative; max-height: 600px; }
.win::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.win-in { width: 1440px; zoom: 0.7778; font-size: 13px; }
.win-in .btn { pointer-events: none; }
/* Side header of a channel card: same rules as the Pista screen (ui/app.css, design Pista.dc.html). */
.lado-h { display: flex; align-items: center; gap: 8px; }
.lado-h .btn { margin-left: auto; }
.endtag { font: 600 11px/1 "IBM Plex Mono", monospace; color: var(--ink-3); }

/* section heads */
.sec { padding: 88px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.k { font: 600 12px/1 "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.h-sec { font: 600 34px/1.12 "IBM Plex Sans", sans-serif; letter-spacing: -0.02em; margin: 10px 0 0; text-wrap: balance; }
.p-sec { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
section[id] { scroll-margin-top: 16px; }

/* features */
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.fc { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fc.span2 { grid-column: span 2; }
.fh { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fi { width: 36px; height: 36px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.fi .ms { font-size: 20px; }
.fc h3 { font: 600 17px/1.3 "IBM Plex Sans", sans-serif; margin: 0; }
.fc p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.fc-foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 11.5px/1 "IBM Plex Mono", monospace; padding: 5px 7px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.chip.f { background: var(--falha-bg); border-color: var(--falha-bd); color: var(--falha-fg); }
.chip.ok { border-color: var(--accent); color: var(--accent); }
.perf-val { flex: 1 0 100%; margin: 0; color: var(--ink-3); }
.perf-val:first-of-type { margin-top: 4px; }
.perf-val b { font-weight: 600; color: var(--ink-2); }
.perf-val b.id { font: 500 11.5px/1.4 "IBM Plex Mono", monospace; }
.snip { font: 400 12px/1.5 "IBM Plex Mono", monospace; color: var(--code-ink); background: var(--code-bg); padding: 8px 10px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snips { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.con-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 20px; align-items: start; }
.con-l { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.con { padding: 10px 0; }
.cr { display: grid; grid-template-columns: 92px 24px minmax(0, 1fr) auto; gap: 10px; padding: 2px 14px; align-items: baseline; }
.cr .c-na { white-space: nowrap; }
.agl { display: flex; flex-direction: column; gap: 22px; }
.agl .tools-w { display: flex; flex-direction: column; gap: 10px; }

/* quickstart */
.qs { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.qs-l { display: flex; flex-direction: column; gap: 16px; }
.qs-tabs { align-self: flex-start; }
.qs-r { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; }
.st-b { min-width: 0; }
.sn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 "IBM Plex Mono", monospace; background: var(--display); color: var(--digit); }
.st-t { font-weight: 600; font-size: 14px; margin: 4px 0 8px; }
.cblock { display: flex; align-items: center; gap: 10px; background: var(--code-bg); color: var(--code-ink); font: 400 13.5px/1.4 "IBM Plex Mono", monospace; padding: 12px 14px; border-radius: 8px; }
.cblock .pr { color: oklch(0.6 0.01 250); }
.cblock .tx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cblock .ms { font-size: 16px; color: oklch(0.65 0.01 250); }
.after { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--ink-2); font-size: 14px; margin-left: 44px; }
.qs-winp { margin-left: 44px; align-items: flex-start; gap: 12px; }

/* agents */
.agw { background: var(--display); color: oklch(0.92 0.006 250); }
.agw .k { color: var(--digit); }
.agw .p-sec { color: oklch(0.78 0.01 250); }
.ag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tool { font: 500 12px/1 "IBM Plex Mono", monospace; padding: 6px 8px; border-radius: 5px; border: 1px solid var(--display-line); color: oklch(0.86 0.01 250); }
.tk { font: 600 10.5px/1.2 "IBM Plex Sans", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: oklch(0.62 0.02 250); }
.ed { border: 1px solid var(--display-line); border-radius: 10px; overflow: hidden; background: oklch(0.1 0.01 250); min-width: 0; }
.ed-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--display-line); font: 500 12px/1 "IBM Plex Mono", monospace; color: oklch(0.7 0.01 250); }
.ed-h .ms { font-size: 15px; }
.ed-h .cp { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; appearance: none; border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.ed-h .cp:hover { color: oklch(0.9 0.01 250); }
.ed-b { margin: 0; padding: 16px 18px; font: 400 13.5px/1.65 "IBM Plex Mono", monospace; color: oklch(0.9 0.01 250); white-space: pre; overflow-x: auto; }
.ed-f { padding: 12px 14px; border-top: 1px solid var(--display-line); display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: oklch(0.72 0.01 250); }
.ed-f .mono { color: oklch(0.88 0.01 250); }
.warnl { display: flex; align-items: center; gap: 8px; font-size: 13px; color: oklch(0.78 0.01 250); }
.warnl .ms { font-size: 16px; color: var(--digit); }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 36px 0 40px; }
.foot-g { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
.foot-l { display: flex; flex-direction: column; gap: 8px; }
.foot-links { display: flex; gap: 20px; font-size: 14px; }
.hp .foot-links a { color: var(--ink-2); }
.disc { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); display: flex; flex-direction: column; gap: 6px; }
.hp .sigl a { color: var(--ink-2); }
.th-dark .snip, .th-dark .cblock, .th-dark .cmd, .th-dark .ed { box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- narrower desktops / tablets ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .shot-h, .qs, .ag { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
}
@media (max-width: 900px) and (min-width: 761px) {
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .fc.span2 { grid-column: auto; }
}

/* ---------- mobile (Homepage-mobile.dc.html) ---------- */
@media (max-width: 760px) {
  .d-only { display: none !important; }
  .m-only { display: revert !important; }
  .icbtn.m-only { display: grid !important; }
  .swipe.m-only { display: flex !important; }
  .wrap { padding: 0 16px; }

  .nav-in { gap: 10px; height: 56px; }
  .nav-r { gap: 8px; }
  .seg > button { padding: 5px 9px; }
  .icbtn { width: 44px; height: 44px; border-radius: 8px; color: var(--ink); }

  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding-top: 36px; padding-bottom: 32px; }
  .hero-t { display: contents; }
  .hero-t > .fx.col { display: contents; }
  .eyebrow { font-size: 11.5px; }
  .h-disp { font-size: 34px; line-height: 1.1; letter-spacing: -0.025em; }
  .lead { font-size: 16px; max-width: none; }
  .ctas { flex-direction: column; }
  .bb { display: flex; justify-content: center; height: 48px; border-radius: 9px; }
  .hp a.bb.ghost { height: 44px; }
  .meta { flex-direction: column; gap: 4px; font-size: 12px; text-align: center; }
  .tryline { flex-direction: column; align-items: stretch; gap: 8px; }
  .cmd { display: flex; font: 400 12.5px/1.3 "IBM Plex Mono", monospace; padding: 12px; border-radius: 8px; }
  .cmd .tx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cmd .ms { font-size: 16px; }
  .hv { align-items: stretch; gap: 10px; }
  .hv-card { width: auto; zoom: 1; }
  .hv-card .canal { box-shadow: 0 1px 2px oklch(0.2 0.02 250 / 0.06), 0 14px 30px oklch(0.2 0.02 250 / 0.12); }
  .cap { font-size: 11.5px; text-align: center; }

  .shot { padding: 36px 0 40px; background: var(--surface-2); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
  .shot-h { display: flex; flex-direction: column; gap: 16px; margin-bottom: 0; }
  .shot > .wrap { margin: 0; min-width: 0; }
  .win { border-radius: 10px; overflow: auto hidden; box-shadow: 0 16px 34px oklch(0.2 0.02 250 / 0.16); max-height: 390px; }
  .win::after { display: none; }
  .win-in .legend, .win-in .lado-h .btn, .win-in .prod small + small { display: none; }
  .win-in .grid4 > .canal:nth-child(n + 5) { display: none; }
  .swipe { align-items: center; justify-content: center; gap: 6px; font: 500 11.5px/1 "IBM Plex Mono", monospace; color: var(--ink-3); }
  .swipe .ms { font-size: 16px; }

  .k { font-size: 11.5px; }
  .h-sec { font-size: 26px; line-height: 1.15; margin-top: 8px; }
  .p-sec { font-size: 15.5px; max-width: none; }
  .sec { padding: 44px 0; }
  .sec > .wrap { display: flex; flex-direction: column; gap: 18px; }

  .fgrid { display: flex; flex-direction: column; gap: 12px; margin-top: 0; }
  .fc { padding: 18px; gap: 10px; }
  .fh { flex-direction: row; align-items: center; gap: 12px; }
  .fi { width: 34px; height: 34px; }
  .fi .ms { font-size: 19px; }
  .fc h3 { font-size: 16px; }
  .fc-foot { margin-top: 0; padding-top: 0; }
  .chip { padding: 6px 7px; }
  .snip { white-space: normal; overflow-wrap: anywhere; }
  .snips { margin-top: 0; }
  .con-split { display: flex; flex-direction: column; gap: 10px; }
  .con-l { display: contents; }
  .con-l .fc-foot { order: 4; }
  .con { order: 3; padding: 8px 0; font-size: 11.5px; }
  .cr { grid-template-columns: 84px 22px minmax(0, 1fr); gap: 8px; padding: 2px 10px; }
  .cr .c-na, .cr:nth-child(n + 6) { display: none; }

  .qs { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .qs-l { display: contents; }
  .qs-r { display: contents; }
  .steps { gap: 16px; }
  .step { grid-template-columns: 26px minmax(0, 1fr); gap: 8px 10px; align-items: center; }
  .st-b { display: contents; }
  .sn { width: 26px; height: 26px; font-size: 12px; }
  .st-t { margin: 0; }
  .cblock { grid-column: 1 / -1; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.5; padding: 12px; }
  .cblock .tx { white-space: normal; overflow-wrap: anywhere; overflow: visible; }
  .after { margin-left: 0; padding: 12px 14px; gap: 6px; }
  .qs-winp { margin-left: 0; align-items: stretch; }
  .qs-winp .meta { text-align: left; }

  .ag { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .agl { display: contents; }
  .ed { order: 3; }
  .agl .tools-w { order: 4; gap: 8px; }
  .warnl { order: 5; align-items: flex-start; }
  .tool { font-size: 11.5px; }
  .ed-h { padding: 10px 12px; }
  .ed-b { padding: 14px; font-size: 12px; line-height: 1.6; }
  .ed-f { padding: 12px; }
  .ed-f .mono { overflow-wrap: anywhere; }

  .foot { padding: 28px 0 32px; }
  .foot-g { display: flex; flex-direction: column; gap: 16px; }
  .foot-l { display: contents; }
  .foot-l .foot-lic { order: 4; }
  .foot-links { order: 3; align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .hp .foot-links a { display: flex; align-items: center; min-height: 40px; }
  .disc { order: 5; padding-top: 14px; }
}
