/* OpenBI Gateway: the /gateway/ page. The /mac/ page's design language (its tokens, type scale, bars, dark chapters,
   claims, honest box, tables, cards and footnotes, as /sdk/ copied them from mac.css), then the gateway page's own. */
/* Inter from the site itself (/assets/fonts/, as the home page has it): the site's Content-Security-Policy allows fonts
   from openbi.no only, so Google Fonts' would not load */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }



:root {
  --blue: #2F6FDE;
  --blue-bright: #4C8DFF;
  --violet: #8A6CFF;
  --pink: #E58BD6;
  --grad: linear-gradient(90deg, #5B9BFF 0%, #9A7DFF 48%, #E58BD6 100%);
  --grad-badge: linear-gradient(145deg, #1B2A55 0%, #2F6FDE 46%, #7B5CF5 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: max(22px, calc((100vw - 1440px) / 2 + 22px));
  --wrap: 1260px;
  --nav-h: 52px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  /* the dark chapters: fixed, whatever the theme */
  --d-bg: #000;
  --d-fg: #f5f5f7;
  --d-muted: #86868b;
  --d-soft: #a1a1a6;
  --d-line: #2a2a2d;
  --d-card: #161617;
  --d-link: #2997ff;
  /* the text chapters: light by default */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --card: #ffffff;
  --link: #0066cc;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000; --bg-alt: #0d0d0e; --fg: #f5f5f7; --muted: #86868b; --line: #2f2f32; --card: #161617; --link: #2997ff;
  }
}
:root[data-theme="dark"] {
  --bg: #000; --bg-alt: #0d0d0e; --fg: #f5f5f7; --muted: #86868b; --line: #2f2f32; --card: #161617; --link: #2997ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0; background: var(--d-bg); color: var(--d-fg); font-family: var(--font); font-size: 17px; line-height: 1.47;
  letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, canvas, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
sup { font-size: .55em; line-height: 0; vertical-align: super; letter-spacing: 0; }
.fn a { color: inherit; text-decoration: none; opacity: .8; padding: 0 1px; }
.fn a:hover, .fn a:focus-visible { text-decoration: underline; opacity: 1; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 44px); margin: 0 auto; }
.wrap-narrow { width: min(980px, 100% - 44px); margin: 0 auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }

/* ------------------------------------------------------------------------------------------------- type scale */
.eyebrow { font-size: 21px; line-height: 1.19; font-weight: 600; letter-spacing: .011em; margin: 0 0 12px; color: var(--d-soft); }
.display { font-size: clamp(48px, 7.4vw, 96px); line-height: 1.04; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.h2 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.h3 { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.003em; margin: 0; }
.intro { font-size: clamp(19px, 1.75vw, 24px); line-height: 1.38; font-weight: 500; letter-spacing: .009em; color: var(--d-soft); margin: 24px 0 0; }
.intro b, .intro strong { color: var(--d-fg); font-weight: 600; }
.small { font-size: 14px; line-height: 1.43; letter-spacing: -0.016em; color: var(--d-muted); }

/* ------------------------------------------------------------------------------------------- the global bar */
.gbar { position: relative; z-index: 30; height: 44px; background: rgba(0, 0, 0, .8); }
.gbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--d-fg); }
.mark { width: 22px; height: 22px; border-radius: 6px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.gbar nav { display: flex; gap: 26px; font-size: 12px; }
.gbar nav a { text-decoration: none; color: #d2d2d7; opacity: .9; }
.gbar nav a:hover { color: #fff; }

/* ------------------------------------------------------------------------------------------- the chapter nav */
.chapters { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: rgba(22, 22, 23, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--d-fg); }
.chapters .wrap { display: flex; align-items: center; height: 100%; gap: 18px; }
.ch-title { font-size: 21px; font-weight: 600; letter-spacing: .011em; text-decoration: none; white-space: nowrap; margin-right: auto; }
.ch-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.ch-list a { font-size: 12px; text-decoration: none; color: #d2d2d7; padding: 6px 0; position: relative; white-space: nowrap; }
.ch-list a:hover { color: #fff; }
.ch-list a[aria-current="true"] { color: #fff; }
.ch-list a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #fff; }
.ch-cta { background: #0071e3; color: #fff; text-decoration: none; font-size: 12px; line-height: 1; padding: 7px 13px; border-radius: 980px; white-space: nowrap; }
.ch-cta:hover { background: #0077ed; }
.ch-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; padding: 0; cursor: pointer; }
.ch-toggle svg { width: 14px; height: 14px; margin: auto; transition: transform .3s var(--ease); }
.ch-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 833px) {
  .ch-title { font-size: 19px; }
  .ch-toggle { display: block; order: 2; }
  .ch-cta { order: 3; }
  .ch-list { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px 22px 18px;
    background: rgba(22, 22, 23, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .08); visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .ch-list.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .ch-list a { display: block; font-size: 17px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .ch-list a[aria-current="true"]::after { display: none; }
}
/* ----------------------------------------------------------------------------------------- dark chapters */
.dark { background: var(--d-bg); color: var(--d-fg); }
.sec { padding: clamp(96px, 12vw, 160px) 0; }
.sec-tight { padding: clamp(64px, 8vw, 100px) 0; }
.head { max-width: 860px; }
.head.center { margin: 0 auto; }

/* performance: the chip section */
.chip-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.chip-media { margin: 0; }
.chip-media img { width: 100%; height: auto; }
.chip-media figcaption { margin-top: 6px; text-align: center; }
.chip-copy .h3 { font-size: clamp(28px, 2.9vw, 40px); line-height: 1.12; }
.claims { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.claims li { font-size: clamp(21px, 2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -0.003em; }
.claims .grad sup { -webkit-text-fill-color: var(--d-muted); }
@media (max-width: 900px) {
  .chip-grid { grid-template-columns: 1fr; }
  .chip-copy { max-width: 560px; margin: 0 auto; }
}

.hls { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 22px; }
.hl { background: var(--d-card); border-radius: 24px; padding: 28px 28px 26px; }
.hl h4 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: .011em; }
.hl p { margin: 6px 0 18px; font-size: 14px; color: var(--d-muted); }
.hl .x { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 18px; }
.honest { margin-top: 22px; background: var(--d-card); border-radius: 24px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.honest h3 { margin: 0; font-size: 21px; font-weight: 600; }
.honest p { margin: 8px 0 0; color: var(--d-soft); font-size: 15px; line-height: 1.45; }
@media (max-width: 900px) { .honest { grid-template-columns: 1fr; } }

/* tables (dark and light) */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.35; letter-spacing: -0.01em; }
.tbl caption { text-align: left; }
.tbl th, .tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line-c, var(--d-line)); text-align: right; vertical-align: top; font-variant-numeric: tabular-nums; }
.tbl th[scope="row"], .tbl thead th:first-child { text-align: left; font-weight: 500; }
.tbl thead th { font-size: 12px; font-weight: 600; color: var(--muted-c, var(--d-muted)); border-bottom-width: 1px; vertical-align: bottom; }
.tbl .grp th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted-c, var(--d-muted)); padding-top: 22px; }
.tbl .mac { font-weight: 600; }
.tbl .note { display: block; font-size: 12px; color: var(--muted-c, var(--d-muted)); font-weight: 400; }
.tbl details { margin-top: 4px; }
.tbl summary { cursor: pointer; font-size: 12px; color: var(--link-c, var(--d-link)); list-style: none; display: inline-block; }
.tbl summary::-webkit-details-marker { display: none; }
.tbl summary::after { content: " +"; }
.tbl details[open] summary::after { content: " \2212"; }
.tbl pre { white-space: pre-wrap; word-break: break-word; margin: 6px 0 4px; font: 12px/1.45 var(--mono); color: var(--fg-c, var(--d-fg));
  background: rgba(127, 127, 127, .12); border-radius: 8px; padding: 8px 10px; text-align: left; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x .tbl { min-width: 640px; }
/* the excel cards: follow the system theme */
.light-sec { background: var(--bg); color: var(--fg); --line-c: var(--line); --muted-c: var(--muted); --link-c: var(--link); --fg-c: var(--fg); }
.light-sec.alt { background: var(--bg-alt); }
.light-sec .eyebrow { color: var(--muted); }
.light-sec .intro { color: var(--muted); }
.light-sec .intro b { color: var(--fg); }
.light-sec .small { color: var(--muted); }
.light-sec a { color: var(--link); }
.xcard { background: var(--card); border-radius: 28px; padding: 30px 30px 26px; overflow: hidden; }
.light-sec:not(.alt) .xcard { background: var(--bg-alt); }
.xcard h3 { margin: 0; font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: .007em; }
.xcard p { margin: 8px 0 20px; color: var(--muted); font-size: 17px; line-height: 1.47; }
/* -------------------------------------------------------------------------------------------- footnotes */
.notes { background: var(--bg-alt); color: var(--muted); font-size: 12px; line-height: 1.5; letter-spacing: -0.01em; padding: 40px 0 64px; }
.notes ol { margin: 0; padding-left: 1.6em; display: grid; gap: 10px; }
.notes li:target { color: var(--fg); }
.notes a { color: var(--link); }
.notes code { font-family: var(--mono); font-size: 11px; }
.legal { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; }
.legal p { margin: 0; }
.foot { background: var(--bg-alt); color: var(--muted); font-size: 12px; padding: 0 0 40px; }
.foot .wrap { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--fg); text-decoration: none; }


/* ======================================================================================= the gateway page's own */
code { font-family: var(--mono); font-size: .9em; }
.light-sec code { color: var(--fg); }
.dark code { color: var(--d-fg); }
.lede { margin: 18px 0 0; color: var(--d-soft); font-size: 19px; line-height: 1.42; font-weight: 500; }
.lede b { color: var(--d-fg); }
.light-sec .lede { color: var(--muted); }
.center-text { text-align: center; margin-left: auto; margin-right: auto; }
.nw { white-space: nowrap; }
[hidden] { display: none !important; }

/* buttons and links (the /mac/ page's) */
.ctas { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: #0071e3; color: #fff; text-decoration: none; font-size: 17px;
  line-height: 1.18; padding: 12px 22px; border-radius: 980px; border: 0; cursor: pointer; }
.btn:hover { background: #0077ed; }
.more { color: var(--d-link); text-decoration: none; font-size: 17px; }
.more:hover { text-decoration: underline; }
.more::after { content: " \203A"; }
.light-sec .btn { color: #fff; }
.light-sec .more { color: var(--link); }
/* "Download (soon)": a label, not a link, until the download is open (INSTRUCTIONS-for-the-website.md, 4) */
.soon { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--muted); border: 1px dashed var(--line);
  border-radius: 980px; padding: 3px 12px; margin-right: 6px; white-space: nowrap; }
.ch-cta.soon-btn { background: transparent; color: #d2d2d7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); cursor: default; }

/* --------------------------------------------------------------------------------------------------- the hero */
.hero-g { background: var(--d-bg); color: var(--d-fg); padding: clamp(56px, 7vw, 96px) 0 0; text-align: center; overflow: hidden; }
.hero-g .copy { padding: 0 22px; position: relative; z-index: 1; }
.hero-g .display { font-size: clamp(40px, 6.4vw, 92px); }
.hero-g .intro { max-width: 820px; margin: 22px auto 0; }
.hero-g .meta { margin: 18px 0 0; }
.hero-art { margin: clamp(4px, 1.5vw, 20px) 0 0; }
.hero-art img { width: 100%; height: auto; }
.hero-art figcaption { margin: 0 auto; padding: 0 22px clamp(40px, 6vw, 72px); max-width: 760px; }

/* ------------------------------------------------------------------------------------- what a gateway is */
.gwd { margin: 64px auto 0; max-width: 1100px; }
.gwd svg { width: 100%; height: auto; overflow: visible; }
.gwd .narrow { display: none; }
.gwd .box { fill: var(--bg-alt); stroke: var(--line); stroke-width: 1.5; }
.gwd .box.srv { stroke: #2F6FDE; stroke-width: 2; }
.gwd .inner { fill: var(--bg); stroke: var(--line); stroke-width: 1.2; }
.gwd .svc { fill: url(#gwd-grad); }
.gwd .svc-n { fill: url(#gwn-grad); }
.gwd .t1 { fill: var(--fg); font: 600 19px var(--font); letter-spacing: -0.01em; }
.gwd .t2 { fill: var(--muted); font: 500 14.5px var(--font); }
.gwd .t3 { fill: var(--fg); font: 500 14.5px var(--font); }
.gwd .tw { fill: #fff; font: 600 15px var(--font); }
.gwd .tw2 { fill: rgba(255, 255, 255, .82); font: 500 12.5px var(--font); }
.gwd .ico { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linejoin: round; }
.gwd .bar { fill: #2F6FDE; }
.gwd .bar.b2 { fill: #8A6CFF; }
.gwd .wall { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.gwd .wall-t { fill: var(--muted); font: 600 12px var(--font); letter-spacing: .08em; text-transform: uppercase; }
.gwd .ar { fill: none; stroke: #2F6FDE; stroke-width: 2.4; }
.gwd .ar.back { stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 5 6; }
.gwd .head { fill: #2F6FDE; }
.gwd .head.back { fill: var(--muted); }
.gwd .lab { fill: var(--fg); font: 600 15px var(--font); }
.gwd .lab2 { fill: var(--muted); font: 500 13px var(--font); }
.gwd .num { fill: #2F6FDE; }
.gwd .num-t { fill: #fff; font: 700 12.5px var(--font); }
.gwd figcaption { text-align: center; margin: 18px auto 0; max-width: 760px; }
@media (max-width: 734px) {
  .gwd .wide { display: none; }
  .gwd .narrow { display: block; max-width: 440px; margin: 0 auto; }
}

.points { list-style: none; counter-reset: pt; margin: 72px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.points li { counter-increment: pt; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.47; min-width: 0; }
.points li::before { content: counter(pt); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-badge);
  color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.points b { display: block; color: var(--fg); font-size: 19px; line-height: 1.25; margin-bottom: 6px; letter-spacing: -0.01em; }
@media (max-width: 1000px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .points { grid-template-columns: 1fr; } }

.glossary { margin: 72px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px 40px; }
.glossary-h { margin: 88px 0 0; font-size: 21px; font-weight: 600; }
.glossary-h + .glossary { margin-top: 18px; }
.glossary div { border-top: 1px solid var(--line); padding-top: 14px; }
.glossary dt { font-weight: 600; font-size: 17px; }
.glossary dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* --------------------------------------------------------------------------------------- the dark chapters */
/* two dark chapters in a row: the second without its full top padding */
#cluster.sec { padding-top: clamp(24px, 4vw, 56px); }
.chip-grid.rev .chip-media { order: 2; }
@media (max-width: 900px) { .chip-grid.rev .chip-media { order: 0; } }
/* the renders melt into the black: their edges feathered */
.chip-media img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 84%, transparent 100%), linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 84%, transparent 100%), linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect; }
.chip-media figcaption { margin-top: 10px; }

.cards { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cards li { background: var(--d-card); border-radius: 24px; padding: 28px 28px 26px; min-width: 0; }
.cards h3 { margin: 16px 0 8px; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.005em; }
.cards p { margin: 0; color: var(--d-soft); font-size: 15.5px; line-height: 1.5; }
.cards p + p { margin-top: 10px; }
.cards code { font-size: .88em; overflow-wrap: anywhere; }
.cap-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-badge); display: grid; place-items: center; }
.cap-ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1068px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .cards li { padding: 24px 20px 22px; } }

.facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.facts li { padding-left: 24px; position: relative; color: var(--d-soft); font-size: 16.5px; line-height: 1.5; }
.facts li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--blue-bright);
  box-shadow: 0 0 10px rgba(76, 141, 255, .7); }
.facts b { color: var(--d-fg); font-weight: 600; }
.proof { margin-top: 64px; }
.proof .lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #9cc2ff; margin: 0 0 6px; }
.proof .lbl i { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 10px #30d158; }

/* -------------------------------------------------------------------------------------------------- install */
.reqs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 56px auto 0; max-width: 1080px; }
.req { background: var(--bg-alt); border-radius: 22px; padding: 24px 26px 22px; min-width: 0; }
.req h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.req p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.47; }
@media (max-width: 900px) { .reqs { grid-template-columns: 1fr; max-width: 640px; } }

.os-switch { display: flex; justify-content: center; margin: 48px 0 0; }
.os-tablist { display: inline-flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 980px; padding: 4px;
  box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .35); }
.os-tablist button { border: 0; background: none; color: var(--muted); border-radius: 980px; padding: 8px 20px; font-size: 15px; font-weight: 600; cursor: pointer; }
.os-tablist button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.os-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.js .os-label { display: none; }
.js #install.os-mac [data-os="win"], .js #install.os-win [data-os="mac"] { display: none; }

.steps { list-style: none; counter-reset: st; margin: 32px auto 0; padding: 0; display: grid; gap: 22px; max-width: 1000px; }
.steps > li { counter-increment: st; background: var(--bg-alt); border-radius: 24px; padding: 28px 30px 14px 86px; position: relative; min-width: 0; }
.steps > li::before { content: counter(st); position: absolute; left: 28px; top: 26px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-badge); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: 16px; }
.steps h3 { margin: 4px 0 12px; font-size: 22px; line-height: 1.2; font-weight: 600; }
.steps p { color: var(--muted); margin: 0 0 14px; font-size: 16px; line-height: 1.5; }
.steps p b, .steps li li b { color: var(--fg); }
.steps p code, .steps li li code { overflow-wrap: anywhere; }
.steps ul { margin: 0 0 14px; padding-left: 1.2em; color: var(--muted); font-size: 16px; line-height: 1.5; display: grid; gap: 6px; }
@media (max-width: 640px) {
  .steps > li { padding: 74px 18px 8px; border-radius: 20px; }
  .steps > li::before { left: 18px; top: 22px; }
}

/* code: dark in both themes, a Copy button added by gateway.js */
.codebox { position: relative; margin: 0 0 16px; }
.code { margin: 0 0 16px; font: 13.5px/1.62 var(--mono); color: #e8e8ed; background: #0b0b0c; border: 1px solid #2a2a2d; border-radius: 14px;
  padding: 40px 18px 16px; overflow-x: auto; white-space: pre; -webkit-overflow-scrolling: touch; tab-size: 4; position: relative; }
.codebox .code { margin: 0; }
.code::before { content: attr(data-title); position: absolute; left: 18px; top: 12px; font: 600 12px var(--font); color: #86868b; letter-spacing: 0; white-space: nowrap; }
.code .c { color: #7d8590; }
.copy-btn { position: absolute; right: 10px; top: 8px; border: 1px solid #3a3a3d; background: #1d1d1f; color: #d2d2d7; border-radius: 980px;
  font: 500 12px var(--font); padding: 4px 12px; cursor: pointer; }
.copy-btn:hover, .copy-btn:focus-visible { color: #fff; border-color: #6e6e73; }

.cmds { margin: 0 0 16px; }
.cmds div { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 4px 18px; padding: 11px 0; border-top: 1px solid var(--line); }
.cmds div:last-child { border-bottom: 1px solid var(--line); }
.cmds dt code { font-size: 13.5px; color: var(--fg); overflow-wrap: anywhere; }
.cmds dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 640px) { .cmds div { grid-template-columns: 1fr; } }
.h-sub { margin: 32px 0 10px; font-size: 18px; font-weight: 600; }
.steps .h-sub:first-of-type { margin-top: 8px; }

/* ------------------------------------------------------------------------------------------------- security */
.sec-list { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.sec-list li { border-top: 1px solid var(--d-line); padding: 24px 0 26px; min-width: 0; }
.sec-list h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; font-weight: 600; display: flex; gap: 12px; align-items: baseline; }
.sec-list h3 svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--blue-bright); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  position: relative; top: 2px; }
.sec-list p { margin: 0; color: var(--d-soft); font-size: 15.5px; line-height: 1.52; }
.sec-list p + p { margin-top: 10px; }
.sec-list code { font-size: .88em; overflow-wrap: anywhere; }
@media (max-width: 900px) { .sec-list { grid-template-columns: 1fr; } }
.leaves { margin: 56px 0 0; border-radius: 28px; padding: clamp(26px, 4vw, 44px); background: linear-gradient(#111113, #111113) padding-box,
  var(--grad) border-box; border: 1.5px solid transparent; }
.leaves h3 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; font-weight: 600; }
.leaves p { margin: 14px 0 0; color: var(--d-soft); font-size: 17px; line-height: 1.5; max-width: 980px; }
.leaves p b { color: var(--d-fg); }

/* --------------------------------------------------------------------------------------------------- not yet */
.nots { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.nots li { background: var(--card); border-radius: 24px; padding: 26px 28px 24px; min-width: 0; }
.nots h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; font-weight: 600; }
.nots p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 900px) { .nots { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------------------------------- compared */
.cmp { width: 100%; border-collapse: collapse; margin: 56px 0 0; font-size: 16px; line-height: 1.47; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: 14px; font-weight: 600; color: var(--muted); border-bottom-color: var(--fg); padding-top: 0; }
.cmp thead th.ours { color: var(--fg); }
.cmp tbody th { font-weight: 600; width: 18%; padding-left: 0; }
.cmp td { color: var(--muted); width: 41%; }
.cmp td.ours { color: var(--fg); }
.cmp-note { margin: 18px 0 0; }
@media (max-width: 734px) {
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .cmp th, .cmp td { border: 0; padding: 4px 0; }
  .cmp tbody th, .cmp td { width: auto; }
  .cmp tbody th { font-size: 18px; margin-bottom: 6px; }
  .cmp td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 8px 0 2px; }
}

/* ------------------------------------------------------------------------------------------------------- FAQ */
.faq { margin: 48px auto 0; max-width: 920px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.3; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 17px; font-size: 28px; font-weight: 300; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 22px; color: var(--muted); font-size: 17px; line-height: 1.52; }
.faq .a p { margin: 0 0 12px; }
.faq .a b { color: var(--fg); }
.faq .a code { font-size: .86em; overflow-wrap: anywhere; }
.docs-link { margin: 40px 0 0; text-align: center; font-size: 17px; }

/* ---------------------------------------------------------------------------------------------- narrow phones */
@media (max-width: 480px) {
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .hero-g .copy { padding: 0 16px; }
  .hero-art figcaption { padding-left: 16px; padding-right: 16px; }
  .xcard, .nots li { padding: 22px 18px; }
  .leaves { border-radius: 22px; }
  .code { font-size: 12.5px; padding: 40px 14px 14px; }
}

/* openbi.no: room for "Buy" in the bar on a phone: the BI mark without the name (the page's title is just below), then tighter gaps */
@media (max-width: 479px) { .gbar .brand { font-size: 0; gap: 0; } .gbar nav { gap: 14px; } }
@media (max-width: 359px) { .gbar nav { gap: 10px; } }