/* 0cloud page CSS: only what sits inside a visual, and one --p-h per card group (design-taste-frontend) */

  .nav__logo svg { height: 22px; width: auto; display: block; }
  .menu-card .panel { display: grid; place-items: center; padding: var(--s-6); }
  .menu-card .panel img { width: 80%; height: auto; }

  /* hero collage pieces: terminal windows and small cards drawn in the page's mono face */
  .ly-collage .ly-piece.pc { background: #0a0a0a; border: 1px solid #2b2b2b; color: #e9e9e9; font: 400 13px/20px var(--font-mono); padding: var(--s-4) var(--s-5); }
  .pc__bar, .tshot .pc__bar { display: flex; align-items: center; gap: var(--s-2); margin: calc(-1 * var(--s-2)) 0 var(--s-3); color: #8f8f8f; font-size: 13px; }
  .pc__bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a3a3a; }
  .pc__bar span { margin-left: var(--s-2); }
  .pc .p { color: var(--p-accent); }
  .pc .d { color: #8f8f8f; }
  .pc .g { color: #9fe0a0; }
  .pc .r { color: #f2a7a0; }
  .pc .ln { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
  .ly-collage .ly-piece.pc--card { background: var(--p-surface); border: 1px solid #333; font: 500 14px/20px var(--font-text); padding: var(--s-4); }
  .pc--card b { display: block; font-weight: 500; color: #fff; }
  .pc--card small { display: block; font-size: 13px; color: #a3a3a3; margin-top: var(--s-1); }
  .pc--card .ok { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--p-accent); color: #0f0f0f; margin-right: var(--s-2); vertical-align: -4px; font-size: 12px; }

  /* app-frame (sections-library.md, app-frame) */
  .app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
  .app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
  .app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
  .app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
  @media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
  @media (max-width: 1023px) {
    .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    .app > .app__pane--list { max-height: 252px; }
    .app > .app__pane--list::after { display: none; }
    .app .ui-win__side { display: none; }
    .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
    .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
  }
  @media (max-width: 639px) {
    .app.ui { grid-template-rows: minmax(0, 1fr); }
    .app > .app__pane--list { display: none; }
    .app > .app__pane + .app__pane { border-top: 0; }
  }

  #uses .panel { --p-h: 300px; }
  @media (max-width: 639px) { #uses .panel { --p-h: 200px; } }
  #products .panel { --p-h: 340px; }
  @media (max-width: 639px) { #uses .panel { --p-h: 168px; } #products { --hm: 2; } }
  @media (min-width: 640px) and (max-width: 1279px) { #products { --h: 2 } }
  @media (min-width: 640px) and (max-width: 1023px) { #compare { --h: 2 } }
  /* comparison-table (sections-library.md): 48px rows, each closed by a 1px rule; the header row on the main ground */
  .cmp__r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: var(--s-4); align-items: center; min-height: 72px; padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
  .cmp--3 .cmp__r { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
  .cmp__r:first-child { padding-top: 0; }
  .cmp__r .ic { display: inline-block; width: 20px; height: 20px; margin-right: var(--s-2); vertical-align: -4px; }
  @media (max-width: 639px) { .cmp__r, .cmp--3 .cmp__r { grid-template-columns: 1fr; gap: var(--s-1); } .cmp__head { display: none; } .cmp__r [role="rowheader"] { font-weight: 500; } .cmp [role="cell"]::before { content: attr(data-col) ": "; color: var(--muted); } }
  /* drawn terminal shots in the how steps */
  .tshot { background: #0a0a0a; border: 1px solid #2b2b2b; border-radius: var(--r-md); color: #e9e9e9; font: 400 14px/22px var(--font-mono); padding: var(--s-5) var(--s-6); width: 100%; }
  .tshot .ln { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
  .tshot .p { color: var(--p-accent); }
  /* pinned steps: the terminal sits centred on a lit ground, never at the top of an empty frame */
  [data-moment="pinned-chapters"].is-live .mo-pc__visual { display: grid; place-items: center; padding: clamp(24px, 5vw, 72px); background: radial-gradient(120% 90% at 20% 100%, rgba(218, 250, 156, .22), transparent 60%), #161616; }
  [data-moment="pinned-chapters"].is-live .mo-pc__visual .tshot { font-size: 15px; line-height: 26px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
  /* inner heroes: the terminal centred on the page's grain ground */
  .hero-visual[data-fx] { display: grid; place-items: center; padding: clamp(20px, 5vw, 64px); }
  .hero-visual[data-fx] .tshot { position: relative; z-index: 1; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
  /* one action, one size: the hero button is drawn as every other primary button */
  .hero--triptych .hero__cta .btn { height: var(--btn-h); padding-inline: var(--s-5); font-size: 15px; }
  .icon-row { display: flex; gap: var(--s-4); }
  .icon-row .ic { width: 40px; height: 40px; object-fit: contain; }
  /* where an outpost sits: three cards, each led by its own icon */
  .vs3 .card { display: flex; flex-direction: column; gap: var(--s-4); }
  .vs3 .card.is-us { background: var(--p-accent); color: var(--p-accent-ink); }
  .vs3 .card.is-us .muted, .vs3 .card.is-us dt { color: rgba(15, 15, 15, .62); }
  .vs3 .vs3__ic { width: 48px; height: 48px; object-fit: contain; }
  .vs3 dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-4); margin: auto 0 0; }
  .vs3 dt { color: var(--muted); } .vs3 dd { margin: 0; }
  .vs3 .card.is-us h3 { color: inherit; }
  .vs3 .vs3__ic[src*="/ui-"] { filter: invert(1); }
  .vs3 .tshot { font-size: 13px; line-height: 20px; padding: var(--s-4) var(--s-5); }
  .vs3 .card.is-us .tshot { border-color: #0f0f0f; }

  /* the hero's tmux window */
  .oc-win { background: #0a0a0a; border: 1px solid #2b2b2b; border-radius: var(--r-md); color: #e9e9e9; font: 400 13px/20px var(--font-mono); overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); text-align: left; }
  .oc-win p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .oc-win .d { color: #8f8f8f; } .oc-win .g { color: var(--p-accent); } .oc-win .p { color: var(--p-accent); }
  .oc-win__bar { display: flex; align-items: center; gap: var(--s-4); padding: 10px 14px; border-bottom: 1px solid #222; }
  .oc-win__title { color: #8f8f8f; white-space: nowrap; }
  .oc-tabs { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
  .oc-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid transparent; background: none; color: #a8a8a8; font: 500 13px/1 var(--font-text); cursor: pointer; white-space: nowrap; }
  .oc-tab img { width: 16px; height: 16px; }
  .oc-tab:hover { color: #fff; background: #161616; }
  .oc-tab.is-on { color: #fff; background: #1c1c1c; border-color: #2f2f2f; }
  .oc-panes { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; height: 340px; }
  .oc-pane { padding: 14px 16px; min-width: 0; overflow: hidden; }
  .oc-pane--agent { grid-row: 1 / span 2; border-right: 1px solid #222; }
  .oc-pane--tests { border-bottom: 1px solid #222; }
  .oc-status { display: flex; gap: 12px; padding: 4px 12px; background: var(--p-accent); color: #0f0f0f; font: 500 12px/20px var(--font-mono); white-space: nowrap; overflow: hidden; }
  .oc-status__s { font-weight: 600; } .oc-status__r { margin-left: auto; }
  .tui p { margin: 0; }
  .tui b { color: #fff; font-weight: 500; }
  .tui-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
  .tui-logo { margin: 0; font: inherit; line-height: 1.1; color: #d97757; }
  .tui-logo--oc { color: #e9e9e9; }
  .tui-mark { width: 32px; height: 32px; }
  .tui-mark--inv, .oc-tab img[src*=codex], .ag__ic[src*=codex] { filter: invert(1); }
  .tui-box { border: 1px solid #333; border-radius: 6px; padding: 6px 10px; margin-bottom: 10px; display: inline-block; }
  .tui-user { margin-top: 6px !important; padding: 2px 6px; background: #1c1c1c; color: #fff; }
  .tui-tool { padding-left: 14px; color: #8f8f8f; }
  .tui-say { display: grid !important; grid-template-columns: 1.4em minmax(0, 1fr); white-space: normal !important; }
  .tui-say span:last-child { white-space: normal; }
  .tui-done, .tui .m { color: #8f8f8f; } .tui .m { color: #d97757; }
  .tui-input { margin-top: 8px; padding: 2px 6px; border-block: 1px solid #333; }
  .oc-win .caret { display: inline-block; width: .6em; height: 1.1em; background: #e9e9e9; vertical-align: text-bottom; animation: oc-blink 1.1s steps(1) infinite; }
  @keyframes oc-blink { 50% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .oc-win .caret { animation: none; } }
  @media (max-width: 767px) {
    .oc-win__title { display: none; } .oc-tabs { margin-left: 0; }
    .oc-panes { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
    .oc-pane--agent { grid-row: auto; border-right: 0; min-height: 300px; }
    .oc-pane--tests, .oc-pane--ssh { display: none; }
    .oc-status span:nth-child(n+3):not(.oc-status__r) { display: none; }
  }

  /* hero: the tmux window rises out of the grain ground */
  .oc-hero .hero__window.oc-hero__window { min-height: 440px; }
  .oc-hero .hero__window > .ly-piece { width: min(1040px, calc(100% - 2 * var(--s-6))); }
  @media (max-width: 767px) { .oc-hero .hero__window.oc-hero__window { min-height: 420px; } .oc-hero .hero__window > .ly-piece { width: calc(100% - 2 * var(--s-4)); top: var(--s-4); } }
  /* agents */
  .ag { display: flex; flex-direction: column; gap: var(--s-2); }
  .ag__ic { width: 40px; height: 40px; margin-bottom: var(--s-3); }
  .ag p { margin: 0; }
  .ag__cmd { margin-top: auto; padding: 10px 12px; border-radius: 8px; background: #0a0a0a; border: 1px solid #2b2b2b; font: 400 12px/18px var(--font-mono); color: #e9e9e9; overflow-wrap: anywhere; }
  .ag-facts { margin-top: var(--s-8); }
  .ag__cmd .p { color: var(--p-accent); }
  /* lists with ticks */
  .oc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
  .oc-list li { display: flex; gap: var(--s-3); align-items: center; }
  .oc-list svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--p-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  /* stages holding a drawn app */
  .oc-stage { align-items: center; justify-content: center; padding: clamp(20px, 4vw, 48px); background: radial-gradient(120% 90% at 80% 100%, rgba(218, 250, 156, .18), transparent 60%), #161616; }
  .oc-stack { display: grid; gap: var(--s-4); width: min(460px, 100%); }
  /* phone */
  .oc-phone { width: 250px; margin: 0 auto; border: 8px solid #262626; border-radius: 34px; background: #0a0a0a; overflow: hidden; font: 400 11.5px/18px var(--font-mono); color: #e9e9e9; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
  .oc-phone p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .oc-phone .d, .oc-phone .tui-done { color: #8f8f8f; } .oc-phone .p { color: var(--p-accent); } .oc-phone b { color: #fff; font-weight: 500; }
  .oc-phone .tui-user { background: #1c1c1c; padding: 2px 6px; margin: 4px 0; }
  .oc-phone__scr { padding: 18px 12px 12px; min-height: 230px; }
  .oc-phone__compose { margin: 0 10px 8px; padding: 8px 10px; border-radius: 10px; background: #161616; color: #8f8f8f; font-family: var(--font-text); }
  .oc-keys { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 8px 14px; background: #141414; }
  .oc-keys span { flex: 1 0 18%; text-align: center; padding: 6px 0; border-radius: 6px; background: #222; color: #ddd; font-family: var(--font-text); }
  .oc-keys span.on { background: var(--p-accent); color: #0f0f0f; }
  /* ssh app */
  .oc-app { width: min(460px, 100%); background: #0f0f0f; border: 1px solid #2b2b2b; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); font-size: 14px; }
  .oc-app__bar { display: flex; align-items: center; gap: var(--s-3); padding: 10px 14px; border-bottom: 1px solid #222; }
  .oc-seg { display: flex; margin-left: auto; background: #1a1a1a; border-radius: 8px; padding: 2px; font-size: 12px; }
  .oc-seg span { padding: 4px 10px; border-radius: 6px; color: #a8a8a8; } .oc-seg .on { background: #2a2a2a; color: #fff; }
  .oc-app__body { padding: var(--s-5); display: grid; gap: var(--s-3); }
  .oc-app__h { margin: var(--s-3) 0 0; }
  .oc-key { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: center; padding: 12px; border-radius: 10px; background: #1a1a1a; }
  .oc-key img { filter: invert(1); } .oc-key div { display: grid; } .oc-key .muted { font-size: 12px; }
  .oc-row2 { display: flex; gap: var(--s-2); flex-wrap: wrap; }
  .oc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: #262626; font-size: 13px; color: #fff; }
  .oc-btn--ic img { width: 16px; height: 16px; }
  .oc-host { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: var(--s-3); padding: 8px 0; border-bottom: 1px solid #222; font-size: 13px; }
  .oc-host .ok { color: var(--p-accent); }
  /* preview browser */
  .oc-browser { width: min(460px, 100%); background: #f4f4f1; border-radius: var(--r-md); overflow: hidden; color: #1a1a1a; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
  .oc-browser__bar { display: flex; align-items: center; gap: var(--s-3); padding: 8px 12px; background: #e6e6e2; }
  .oc-url { flex: 1; padding: 4px 10px; border-radius: 6px; background: #fff; font: 400 12px/18px var(--font-mono); color: #333; }
  .oc-site { padding: var(--s-4); display: grid; gap: 2px; }
  .oc-site .muted { color: #6a6a6a; font-size: 13px; }
  .oc-site__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: var(--s-3); }
  .oc-site__grid i { aspect-ratio: 4 / 3; border-radius: 8px; background: #d9d2c3; } .oc-site__grid i:nth-child(2n) { background: #b9c8b0; } .oc-site__grid i:nth-child(3n) { background: #e3b98f; }
  .oc-stack .tshot { width: 100%; }
  /* tools */
  .oc-tools { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-4); }
  .tl { display: grid; justify-items: start; gap: 4px; padding: var(--s-5); border-radius: var(--r-md); background: var(--p-surface); border: 1px solid var(--line); }
  .tl img { width: 32px; height: 32px; object-fit: contain; margin-bottom: var(--s-3); }
  .tl img[src*="rust"], .tl img[src*="go."] { filter: invert(1); }
  @media (max-width: 1023px) { .oc-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  @media (max-width: 639px) { .oc-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  .oc-glow { background: radial-gradient(70% 90% at 50% 100%, rgba(218, 250, 156, .22), transparent 70%), #141414 !important; border-radius: var(--r-lg, 20px); }
  .oc-wide { margin-top: var(--s-8); }
  .oc-wide > .ap, .oc-wide > .ex { width: 100%; }
  .pr { display: flex; flex-direction: column; gap: var(--s-5); }
  .pr__logo { height: 34px; width: auto; align-self: flex-start; }
  .pr p { margin: 0; color: var(--muted); }
  .pr__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--p-accent); font-weight: 500; }
  .pr:hover .pr__go { text-decoration: underline; text-underline-offset: 4px; }
  /* subpages */
  .oc-fhero__c { align-items: end; }
  .oc-fhero__v { margin-top: var(--s-7, 40px); }
  .oc-fhero .ap-body { height: 360px; } .oc-fhero .ex-body { height: 340px; }
  @media (max-height: 820px) and (min-width: 768px) { .oc-fhero .ap-body, .oc-fhero .ex-body { height: 250px; } .oc-fhero h1 { font-size: clamp(40px, 5vw, 64px); } }
  @media (min-width: 1024px) and (max-width: 1279px) { .frame--split.oc-stage { --ratio: 100%; } }
  @media (max-width: 639px) { #more { --hm: 2; } }
  .pr__v { height: 170px; border-radius: 12px; background: #0c0c0c; border: 1px solid #262626; overflow: hidden; padding: 14px; font: 400 12px/19px var(--font-mono); color: #ccc; }
  .pr__v p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pr__v .k { color: #c79bff; } .pr__v .f { color: #7DB4FF; } .pr__v .d { color: #777; }
  .pr__apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; font-family: var(--font-text); }
  .pr__apps span { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: #aaa; }
  .pr__apps i { width: 40px; height: 40px; border-radius: 11px; display: block; }
  .fp-ic { width: 48px; height: 48px; margin-bottom: var(--s-3); }
  .fp-card { display: grid; gap: var(--s-2); align-content: start; }
  .fp-card img { width: 32px; height: 32px; object-fit: contain; margin-bottom: var(--s-3); } .fp-card img.inv { filter: invert(1); }
  .fp-card p { margin: 0; }
  .fp-rels { display: grid; gap: var(--s-2); margin-top: var(--s-6); }
  .fp-rel { display: grid; padding: 12px 14px; border-radius: 10px; background: var(--p-surface); border: 1px solid var(--line); text-decoration: none; }
  .fp-rel:hover { border-color: var(--p-accent); }
  .hero-visual.oc-stage > * { max-width: 100%; }

  /* drawn app: shared */
  .ap, .ex, .st, .vt { background: #0c0c0c; border: 1px solid #2b2b2b; border-radius: var(--r-md); color: #e9e9e9; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); font-size: 13px; text-align: left; }
  .ap p, .ex p, .dv p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap .d, .ex .d, .dv .d, .vt .d, .st .d { color: #8f8f8f; } .ap .g, .ex .g { color: var(--p-accent); } .ap .p, .ex .p { color: var(--p-accent); }
  .ap b, .ex b, .dv b { color: #fff; font-weight: 500; }
  .ap-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #222; white-space: nowrap; }
  .ap-title { font-weight: 600; } .ap-sp { flex: 1; }
  .ap-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: #1c1c1c; color: #cfcfcf; font-size: 12px; }
  .ap-chip svg, .ap-status svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .ap-chip--ok { color: var(--p-accent); background: rgba(218, 250, 156, .1); }
  .ap-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 7px; background: #222; color: #fff; font-size: 12px; white-space: nowrap; }
  .ap-btn--edix { background: #1b2a40; color: #cfe3ff; } .ap-btn--done { background: none; color: var(--p-accent); }
  .ap-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); height: 440px; }
  .oc-dots { display: inline-flex; gap: 6px; } .oc-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
  .ap-side { border-right: 1px solid #222; padding: 10px 12px; display: grid; align-content: start; gap: 2px; background: #101010; overflow: hidden; }
  .ap-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .ap-h { color: #6f6f6f !important; font-size: 11px; margin-top: 8px !important; }
  .ap-ws { display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; padding: 4px 8px; border-radius: 7px; align-items: center; }
  .ap-ws span { grid-column: 2; color: #7a7a7a; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap-ws.is-on { background: #1c1c1c; }
  .ap-dot, .ap-dot--off { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--p-accent); }
  .ap-dot--off { background: #3a3a3a; }
  .ap-new { color: #8f8f8f; padding: 4px 8px; }
  .ap-ags { display: flex; gap: 10px; padding: 2px 8px; } .ap-ag.inv, .st img.inv { filter: invert(1); }
  .ap-hosts li { display: flex; align-items: center; gap: 8px; padding: 3px 8px; color: #cfcfcf; }
  .ap-main { display: flex; flex-direction: column; min-width: 0; font: 400 12.5px/19px var(--font-mono); }
  .ap-tabs { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid #222; font-family: var(--font-text); }
  .ap-tabs span { padding: 6px 12px; border-radius: 7px 7px 0 0; color: #8f8f8f; } .ap-tabs .is-on { background: #161616; color: #fff; }
  .ap-split { flex: 1; display: grid; grid-template-columns: 1.3fr 1fr; min-height: 0; }
  .ap-pane { padding: 12px 14px; overflow: hidden; } .ap-pane + .ap-pane { border-left: 1px solid #222; }
  .ap-pane .u { background: #1c1c1c; padding: 1px 6px; color: #fff; margin: 4px 0; }
  .ap-status { display: flex; gap: 14px; padding: 4px 12px; background: #141414; border-top: 1px solid #222; color: #8f8f8f; font: 400 11.5px/20px var(--font-mono); white-space: nowrap; overflow: hidden; }
  .ap-status span { display: inline-flex; align-items: center; gap: 5px; }
  /* edix */
  .ex-body { display: grid; grid-template-columns: 150px minmax(0, 1.4fr) minmax(0, 1fr); height: 360px; }
  .ex-tree { padding: 10px 12px; border-right: 1px solid #222; background: #101010; font-size: 12.5px; display: grid; align-content: start; gap: 3px; }
  .ex-tree .on { color: #fff; background: #1c2a3d; border-radius: 5px; }
  .ex-tree p { color: #a8a8a8; }
  .ex-ed { display: flex; flex-direction: column; min-width: 0; }
  .ex-tabs { display: flex; border-bottom: 1px solid #222; } .ex-tabs span { padding: 7px 14px; color: #8f8f8f; } .ex-tabs .is-on { color: #fff; border-bottom: 2px solid #7DB4FF; }
  .ex pre { margin: 0; padding: 12px; font: 400 12.5px/20px var(--font-mono); color: #ddd; flex: 1; overflow: hidden; }
  .ex .ln { color: #555; display: inline-block; width: 2.4em; } .ex .k { color: #c79bff; } .ex .f { color: #7DB4FF; } .ex .n { color: #ffb86b; } .ex .s { color: #a5e3a0; }
  .ex-term { border-top: 1px solid #222; padding: 8px 12px; font: 400 12px/18px var(--font-mono); background: #0a0a0a; }
  .ex-prev { border-left: 1px solid #222; display: flex; flex-direction: column; background: #121212; }
  .ex-url { margin: 8px; padding: 4px 10px; border-radius: 6px; background: #1c1c1c; font: 400 11.5px/18px var(--font-mono); color: #bbb; }
  .ex-site { padding: 8px 14px; display: grid; gap: 4px; } .ex-site span { color: #8f8f8f; font-size: 12px; }
  .ex-rows { display: grid; gap: 6px; margin-top: 8px; } .ex-rows i { height: 26px; border-radius: 6px; background: #1f1f1f; } .ex-rows i:first-child { background: rgba(218, 250, 156, .18); }
  /* devices */
  .dv { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4); width: 100%; }
  .dv-dev { background: #0c0c0c; border: 1px solid #2b2b2b; border-radius: 14px; padding: 14px; display: grid; gap: 6px; justify-items: start; }
  .dv-col { display: grid; gap: var(--s-4); }
  .dv-mid { display: grid; justify-items: center; gap: 8px; }
  .dv-line { width: 1px; height: 40px; background: linear-gradient(#0000, var(--p-accent), #0000); }
  .dv-cloud { display: grid; justify-items: center; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px dashed #3a3a3a; text-align: center; }
  .dv-cloud svg { width: 22px; height: 22px; fill: none; stroke: var(--p-accent); stroke-width: 1.5; } .dv-cloud small { color: #8f8f8f; }
  /* vault */
  .vt { padding: 16px; width: 100%; }
  .vt-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
  .vt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .vt li { display: grid; grid-template-columns: 1.4fr .7fr auto 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #141414; }
  .vt .mono { font: 400 12px/18px var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vt-c { color: #6f6f6f; } .vt-arrow { color: var(--p-accent); }
  .vt-foot { margin: 12px 0 0; font-size: 12px; }
  /* store */
  .st { width: 100%; } .st ul { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; }
  .st li { display: grid; grid-template-columns: 24px 1fr 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 8px; }
  .st li:nth-child(odd) { background: #131313; } .st li img { width: 24px; height: 24px; object-fit: contain; }
  .st-q { margin-left: auto; padding: 4px 10px; border-radius: 6px; background: #1c1c1c; color: #8f8f8f; font-size: 12px; }
  @media (max-width: 767px) {
    .ap-body { grid-template-columns: 1fr; height: auto; } .ap-side { display: none; } .ap-split { grid-template-columns: 1fr; } .ap-pane + .ap-pane { display: none; }
    .ap-chip:not(.ap-chip--ok), .ap-btn:not(.ap-btn--edix) { display: none; } .ap-pane { min-height: 240px; }
    .ex-body { grid-template-columns: 1fr; height: auto; } .ex-tree, .ex-prev { display: none; }
    .dv { grid-template-columns: 1fr; } .dv-line { height: 20px; }
    .vt li { grid-template-columns: 1fr auto; } .vt li .d, .vt-arrow { display: none; }
    .st li { grid-template-columns: 24px 1fr auto; } .st li .d { display: none; }
  }

  @media (max-height: 820px) and (min-width: 768px) { .oc-hero .hero__window.oc-hero__window { min-height: 300px; } }
  @media (max-width: 639px) { #anywhere, #tools { --hm: 2; } }

  .ap, .ex, .oc-win, .tshot, .oc-phone, .st, .vt, .dv { font-variant-emoji: text; }

/* home hero: programs play in the outpost window, the phone mirrors the same session */
.ht { position: relative; padding-right: 120px; }
.ht-body { height: 340px; padding: 14px 16px; padding-right: 130px; overflow: hidden; }
.ht-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-l.tui-say { display: grid; grid-template-columns: 1.4em minmax(0, 1fr); white-space: normal; }
.oc-win .r { color: #ff8a8a; } .oc-win .y { color: #e3c06b; } .oc-win .b { color: #e9e9e9; }
.oc-tab { position: relative; }
.oc-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ht-prog { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--p-accent); transform: scaleX(0); transform-origin: left; opacity: 0; }
.ht:not(.is-manual) .oc-tab.is-on .ht-prog { opacity: .9; animation: ht-prog var(--slot, 7s) linear forwards; }
@keyframes ht-prog { to { transform: scaleX(1); } }
.ht .oc-status span[data-w] { opacity: .7; }
/* tmux inside the pane */
.ht-tmux { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr auto; height: 280px; border: 1px solid #2b2b2b; white-space: normal; }
.ht-tp { padding: 8px 10px; overflow: hidden; border-right: 1px solid #2b2b2b; border-bottom: 1px solid #2b2b2b; }
.ht-tp--a { grid-row: 1 / span 2; }
.ht-tp:nth-child(3) { border-bottom: 0; }
.ht-tp p { font-size: 12px; }
.ht-tbar { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding: 2px 10px; background: #1bb91f; color: #08130a; font-size: 12px; white-space: nowrap; overflow: hidden; }
/* btop */
.ht-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; white-space: normal; }
.ht-box { border: 1px solid #3a3a3a; border-radius: 6px; padding: 8px 10px; min-width: 0; }
.ht-bh { display: flex; gap: 10px; margin-bottom: 6px !important; color: #fff; } .ht-bh .g { margin-left: auto; }
.ht-core { display: grid; grid-template-columns: 2.2em 1fr 3em; gap: 8px; align-items: center; font-size: 12px; }
.ht-core i { display: block; height: 8px; border-radius: 2px; background: linear-gradient(90deg, #5fd38d, var(--p-accent) 60%, #f0b35e); width: var(--v); animation: ht-cpu 1.6s ease-in-out infinite alternate; transform-origin: left; }
.ht-core:nth-child(odd) i { animation-duration: 1.1s; } .ht-core:nth-child(3n) i { animation-duration: 2.1s; }
@keyframes ht-cpu { from { transform: scaleX(.55); } to { transform: scaleX(1.25); } }
.ht-core span:last-child { text-align: right; }
.ht-pr { display: grid; grid-template-columns: 3em 1fr 3em; gap: 8px; font-size: 12px; } .ht-pr span:last-child { text-align: right; }
/* the phone */
.ht-phone { position: absolute; right: 0; top: 64px; width: 230px; border: 8px solid #262626; border-radius: 34px; background: #0a0a0a; overflow: hidden; font: 400 11.5px/18px var(--font-mono); color: #e9e9e9; box-shadow: -20px 30px 60px -20px rgba(0, 0, 0, .85); z-index: 2; }
.ht-phone p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-phone .d { color: #8f8f8f; } .ht-phone .p, .ht-phone .g { color: var(--p-accent); } .ht-phone b { color: #fff; font-weight: 500; }
.ht-phone .u { display: block; background: #1c1c1c; padding: 0 4px; }
.ht-ph-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 4px; font-family: var(--font-text); font-size: 11px; color: #bdbdbd; }
.ht-sync { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: #1c1c1c; color: #8f8f8f; transition: background .3s, color .3s; }
.ht-sync svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ht.is-synced .ht-sync { background: rgba(218, 250, 156, .16); color: var(--p-accent); }
.ht-ph-h { padding: 4px 14px 6px; font-family: var(--font-text); font-size: 11px; color: #8f8f8f; }
.ht-ph { padding: 4px 12px 10px; min-height: 112px; }
.ht-ph p { opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.ht-ph p.on { opacity: 1; transform: none; }
.ht-phone .oc-keys span { font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .ht-core i { animation: none; } .ht-ph p { opacity: 1; transform: none; transition: none; } }
@media (max-width: 1023px) { .ht { padding-right: 90px; } .ht-phone { width: 200px; } .ht-body { padding-right: 120px; } .ht-top { grid-template-columns: 1fr; } .ht-top .ht-box + .ht-box { display: none; } }
@media (max-width: 767px) {
  .ht { padding-right: 0; } .ht-phone { display: none; } .ht-body { padding-right: 16px; height: 330px; }
  .ht .oc-status span[data-w] { display: none; }
  .ht-tmux { grid-template-columns: 1fr; grid-template-rows: auto auto auto; height: auto; } .ht-tp:nth-child(3) { display: none; } .ht-tp { border-right: 0; }
  .oc-tab { padding: 0 10px; }
}
.oc-hero.hero--centred h1 { max-width: 20ch; }
.oc-signin { margin-right: var(--s-4); } @media (max-width: 767px) { .oc-signin { display: none; } }

/* pricing */
.pr-hero .hero__c { margin-bottom: var(--s-8); }
.pr-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); text-align: left; }
.pr-plan { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); border-radius: var(--r-lg, 20px); background: #141414; border: 1px solid #262626; }
.pr-plan.is-hot { border-color: var(--p-accent); background: radial-gradient(120% 70% at 50% 0%, rgba(218, 250, 156, .12), transparent 70%), #141414; }
.pr-plan.is-local { background: #0f0f0f; border-style: dashed; }
.pr-name { font-size: 20px; margin: 0; }
.pr-price { display: flex; align-items: baseline; gap: 8px; margin: 0; } .pr-price b { font-size: 40px; line-height: 1; font-weight: 600; } .pr-price span { color: var(--muted); font-size: 14px; }
.pr-pitch { margin: 0; color: var(--muted); min-height: 3em; }
.pr-plan .btn { justify-content: center; }
.pr-list { list-style: none; margin: var(--s-2) 0 0; padding: var(--s-4) 0 0; border-top: 1px solid #262626; display: grid; gap: 10px; font-size: 14px; }
.pr-list li { display: flex; gap: 8px; align-items: flex-start; }
.pr-list svg, .pr-local svg { width: 16px; height: 16px; flex: none; margin-top: 3px; fill: none; stroke: var(--p-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pr-table { overflow-x: auto; border: 1px solid #262626; border-radius: var(--r-lg, 20px); }
.pr-table table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; }
.pr-table th, .pr-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #222; vertical-align: top; }
.pr-table thead th { font-size: 16px; color: #fff; }
.pr-table tbody th { font-weight: 500; color: var(--muted); }
.pr-table tr:last-child > * { border-bottom: 0; }
.pr-table .is-hot { background: rgba(218, 250, 156, .05); }
@media (max-width: 1199px) { .pr-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .pr-plans { grid-template-columns: 1fr; } .pr-pitch { min-height: 0; } }
@media (max-width: 639px) { .pr-table table { min-width: 0; font-size: 13px; } .pr-table th, .pr-table td { padding: 10px 8px; } }
/* home hero: grow to hold the whole window so the next section never sits on it */
main > section.oc-hero.hero { height: auto; min-height: 100vh; min-height: 100svh; }
.oc-hero .hero__window.oc-hero__window { flex: none; height: 480px; min-height: 480px; }
@media (max-height: 820px) and (min-width: 768px) { .oc-hero .hero__window.oc-hero__window { height: 480px; min-height: 480px; } }
@media (max-width: 767px) { .oc-hero .hero__window.oc-hero__window { height: 440px; min-height: 440px; } }

/* the brand zero, slashed like the logo, in every "0cloud" (src/lib/zero.ts) */
.zc { position: relative; display: inline-block; }
.zc::after { content: ""; position: absolute; left: 50%; top: 22%; width: max(1px, .085em); height: 58%; border-radius: 1px; background: currentColor; transform: translateX(-50%) rotate(28deg); pointer-events: none; }
