/* The App library's pages (LIB7), in ivendnext.com's look: Plus Jakarta Sans, ink #0B1029, iVendNext blue #0089FF, pill
   buttons, a light hero with a blue eyebrow. Taken from the design KK approved on 2026-10-13
   (Partner_Programme/design/library_v2_mockup.html), its own bar and sample marks left out. Served from this address:
   the pages need nothing from outside. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2"); }
:root {
  --ink: #0b1029; --text: #3b4256; --muted: #6b7286; --line: #e6e9f0; --bg: #f9fafb; --surface: #ffffff;
  --blue: #0089ff; --blue-dark: #0070d1; --blue-soft: #e8f3ff; --navy: #0b1029;
  --free-bg: #e6f6ed; --free-ink: #13794a; --key-bg: #fff3e0; --key-ink: #a15c00;
  --ask-bg: #eef0f5; --ask-ink: #3b4256; --soon-bg: #f1ebff; --soon-ink: #5b3cc4;
  --gap-bg: #fde8ec; --gap-ink: #a3243b; --sunk: #eef2f8;
  --radius: 16px; --shadow: 0 1px 2px rgba(11, 16, 41, .04), 0 8px 24px rgba(11, 16, 41, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); }

/* header, as ivendnext.com */
.strip { background: var(--navy); font-size: 13px; }
.strip-row { display: flex; justify-content: space-between; height: 32px; align-items: center; }
.strip a { color: #c9cfdd; text-decoration: none; font-weight: 500; }
.nav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand a { display: inline-flex; }
.brand img { height: 28px; width: auto; display: block; }
.section { color: var(--ink); font-weight: 700; font-size: 15px; padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; text-decoration: none; }
.links { display: flex; align-items: center; gap: 20px; }
.link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.link:hover, .link.on { color: var(--blue); }
.pill { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 24px; border-radius: 100px; border: 0; cursor: pointer; font-family: inherit; }
.pill:hover { background: var(--blue-dark); }
.pill-ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.pill-ghost:hover { background: var(--blue-soft); color: var(--blue-dark); }
.pill-sm { font-size: 14px; padding: 8px 18px; }

/* hero */
.hero { background: linear-gradient(180deg, #f9fafb 0%, #eef6ff 100%); padding: 52px 0 44px; text-align: center; }
.hero.left { text-align: left; padding: 36px 0 32px; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
h1 { margin: 0 auto; max-width: 860px; font-size: clamp(30px, 5vw, 50px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px; }
.hero.left h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.lede { margin: 16px auto 0; max-width: 660px; color: var(--text); font-size: 17px; font-weight: 500; }
.hero.left .lede { margin-left: 0; }
.search { margin: 26px auto 0; max-width: 560px; display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 100px; padding: 12px 20px; font: 500 16px "Plus Jakarta Sans", sans-serif; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.counts { margin: 18px 0 0; color: var(--muted); font-weight: 600; font-size: 14px; }
.crumb { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.crumb a { color: var(--muted); }

/* sections */
.block { margin: 44px 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.block h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.3px; }
.block .more { font-weight: 600; font-size: 14px; text-decoration: none; }
.sub { margin: -8px 0 16px; color: var(--muted); font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.tile:hover { border-color: #cfe5ff; color: var(--blue); }
.tile small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); display: grid; place-items: center; }
.ico svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flag { font-size: 22px; line-height: 1; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card:hover { border-color: #cfe5ff; transform: translateY(-2px); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cat { display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.cat .ico { width: 28px; height: 28px; border-radius: 8px; }
.cat .ico svg { width: 16px; height: 16px; }
.card h3 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; }
.summary { margin: 0; color: var(--text); }
.by { margin-top: auto; color: var(--muted); font-size: 13px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.madefor { color: var(--ink); font-weight: 600; }
.badge { display: inline-block; white-space: nowrap; border-radius: 100px; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.badge.free { background: var(--free-bg); color: var(--free-ink); }
.badge.key { background: var(--key-bg); color: var(--key-ink); }
.badge.ask { background: var(--ask-bg); color: var(--ask-ink); }
.badge.soon { background: var(--soon-bg); color: var(--soon-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 100px; padding: 6px 14px; font: 600 13px "Plus Jakarta Sans", sans-serif; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.fact { background: var(--blue-soft); color: #0b5cad; border-radius: 100px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.fact.plain { background: #f1f3f7; color: var(--muted); }

/* app page */
.app-hero { display: flex; gap: 18px; align-items: flex-start; }
.app-hero .ico { width: 64px; height: 64px; border-radius: 16px; }
.app-hero .ico svg { width: 32px; height: 32px; }
.app-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--muted); font-weight: 500; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin: 32px auto 56px; align-items: start; }  /* auto: it sits on a .wrap */
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.panel h2 { margin: 0 0 10px; font-size: 18px; font-weight: 800; }
.panel h3 { margin: 16px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.panel p { margin: 6px 0; }
.panel ul { margin: 4px 0; padding-left: 20px; }
.panel li { margin: 5px 0; }
.panel li::marker { color: var(--blue); }
.panel.get { border: 1.5px solid #cfe5ff; }
.panel.get .pill { margin-top: 10px; }
.lead { color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.45; margin: 0 0 4px; }
.mention { color: var(--muted); font-size: 13px; margin-top: 8px; }
.keyline { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sec-row { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.sec-row svg { flex: none; width: 18px; height: 18px; margin-top: 3px; stroke: var(--free-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sec-row.warn svg { stroke: var(--key-ink); }
.signed { font-size: 13px; color: var(--muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pics { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 0 0 18px; }
.pic { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pic svg { display: block; width: 100%; height: auto; }
.pic figcaption { font-size: 12px; color: var(--muted); padding: 6px 10px; }
dl.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
dl.kv dt { color: var(--muted); font-weight: 500; }
dl.kv dd { margin: 0; color: var(--ink); font-weight: 500; }
.share { border: 1px dashed #c9cfdd; border-radius: 12px; padding: 12px; font-size: 13px; background: #fff; }
.share b { display: block; color: var(--ink); }
.share .u { color: var(--muted); }
.note { background: var(--blue-soft); border-radius: var(--radius); padding: 16px 20px; color: var(--text); font-size: 14px; margin: 18px 0; }
.note strong { color: var(--ink); }
.empty { background: var(--surface); border: 1px dashed #c9cfdd; border-radius: var(--radius); padding: 20px; }
.empty p { margin: 4px 0; }
.outline { counter-reset: o; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.outline li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 18px 62px; position: relative; box-shadow: var(--shadow); }
.outline li::before { counter-increment: o; content: counter(o); position: absolute; left: 18px; top: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.outline h3 { margin: 0 0 4px; font-size: 17px; }
.outline p { margin: 0; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.way h3 { margin: 8px 0 4px; font-size: 17px; }
.way p { margin: 0; font-size: 14px; }
.band { background: var(--navy); color: #c9cfdd; border-radius: 20px; padding: 34px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.band p { margin: 0; max-width: 620px; }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.path h3 { margin: 0; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.path .pl { margin: 0; color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.35; }
.path ul { margin: 2px 0 8px; padding-left: 20px; }
.path .pill { align-self: flex-start; margin-top: auto; }
.region { margin: 26px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.chips-bar { margin-bottom: 18px; }

/* footer, as ivendnext.com */
.foot { background: var(--navy); color: #c9cfdd; font-size: 14px; margin-top: 56px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.foot-grid img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.foot-grid p { margin: 14px 0 16px; max-width: 360px; }
.foot h2 { margin: 0 0 12px; color: #fff; font-size: 15px; font-weight: 700; }
.foot-grid > div > a { display: block; color: #c9cfdd; text-decoration: none; margin: 8px 0; }
.foot-grid > div > a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #263048; padding-top: 18px; padding-bottom: 28px; font-size: 13px; }
.foot-bottom p { margin: 0; }
.foot-bottom a { color: #c9cfdd; text-decoration: none; margin-left: 18px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .links .link { display: none; } .section { display: none; } .app-hero { flex-direction: column; } }
.count { margin: 0 0 14px; color: var(--muted); font-size: 14px; font-weight: 500; }
[hidden] { display: none !important; }
.meta { color: #8c93a8; margin-left: 8px; }
.foot-bottom nav a { margin-left: 18px; }
.pic img { display: block; width: 100%; height: auto; }
details summary { cursor: pointer; color: var(--blue); font-weight: 700; font-size: 14px; margin-top: 8px; }

/* How apps run (LIB8; the mockup KK approved on 2026-10-17). The big picture keeps its size and scrolls sideways on a
   phone; every colour in it is a token above, so the drawing follows the page's colours. */
.badge.gap { background: var(--gap-bg); color: var(--gap-ink); }
.map { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; overflow-x: auto; }
.map svg { display: block; min-width: 900px; width: 100%; height: auto; }
.map text { font-family: "Plus Jakarta Sans", sans-serif; }
.map .zt { font-size: 13px; font-weight: 800; letter-spacing: .1em; fill: var(--ink); }
.map .zs { font-size: 12px; font-weight: 500; fill: var(--muted); }
.map .bt { font-size: 14px; font-weight: 700; fill: var(--ink); }
.map .bs { font-size: 11.5px; font-weight: 500; fill: var(--muted); }
.map .bm { font: 500 11px ui-monospace, Menlo, monospace; fill: var(--ink); }
.map .al { font-size: 11.5px; font-weight: 600; fill: var(--text); }
.map .ap { font-size: 11.5px; font-weight: 600; fill: var(--key-ink); }
.map .tenant { fill: var(--blue-soft); stroke: var(--blue); stroke-width: 1.5; }
.map .zone { fill: var(--sunk); stroke: var(--line); stroke-width: 1.5; }
.map .box { fill: var(--surface); stroke: var(--line); stroke-width: 1.2; }
.map .dash { fill: var(--surface); stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 5 4; }
.map .vault, .map .door { fill: var(--navy); }
.map .vt { font-size: 15px; font-weight: 800; fill: var(--surface); }
.map .vs { font-size: 12px; font-weight: 500; fill: var(--line); }
.map .dt { font-size: 12px; font-weight: 800; letter-spacing: .14em; fill: var(--surface); }
.map .lock { fill: none; stroke: var(--surface); stroke-width: 2.5; }
.map .wall { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 2 4; }
.map .port { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.map .live { fill: none; stroke: var(--free-ink); stroke-width: 2.5; }
.map .plan { fill: none; stroke: var(--key-ink); stroke-width: 2.5; stroke-dasharray: 7 5; }
.map .ah-live { fill: var(--free-ink); }
.map .ah-plan { fill: var(--key-ink); }
.map .wasm { fill: var(--soon-bg); stroke: var(--soon-ink); stroke-width: 1; }
.map .wt { font-size: 11px; font-weight: 700; fill: var(--soon-ink); }
.map .c-live { fill: var(--free-bg); }
.map .c-plan { fill: var(--key-bg); }
.map .c-gap { fill: var(--gap-bg); }
.map .ct { font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.map .ct-live { fill: var(--free-ink); }
.map .ct-plan { fill: var(--key-ink); }
.map .ct-gap { fill: var(--gap-ink); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 28px; border-top: 2.5px solid var(--free-ink); display: inline-block; }
.sw.plan { border-top: 2.5px dashed var(--key-ink); }
.way-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.way-head h3 { margin: 0; }
.ways.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.way dl.kv { margin-top: 12px; grid-template-columns: 6.5em 1fr; }
.way .fine { margin-top: 10px; color: var(--muted); font-size: 13px; }
.who { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fork p { margin: 6px 0 0; padding: 8px 12px; background: var(--sunk); border-radius: 10px; font-size: 14px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.qa details { border-top: 1px solid var(--line); padding: 14px 20px; }
.qa details:first-child { border-top: 0; }
.qa summary { margin: 0; color: var(--ink); font-size: 15px; }
.qa p { margin: 8px 0 0; max-width: 70ch; }
