/* Shared styling for every page that isn't the landing page — legal, releases,
 * support, press.
 *
 * Design language is taken from the landing page so the site reads as one
 * product: same palette, same typefaces, the same lime→cyan accent gradient,
 * and JetBrains Mono for anything machine-ish (versions, labels, codes).
 *
 * Deliberately self-contained: no third-party fonts, scripts, or images. That
 * is a compliance property as much as an aesthetic one — a privacy notice that
 * itself phones out to a CDN undermines what it claims. */

@import url("./fonts/fonts.css");

:root {
  --bg: #070809;
  --panel: #0a0b0e;
  --panel-2: #101216;
  --teal: #2de2c0;   /* bcube brand */
  --fg: #c9cfd8;
  --heading: #e9edf0;
  --muted: #6a7180;
  --dim: #454c58;
  --rule: #15191f;
  --rule-2: #1d222a;
  --lime: #b6ff3b;
  /* Canonical button pairing: lime ground, near-black ink. */
  --btn-ink: #070809;
  --cyan: #36d6ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--lime); color: var(--bg); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #2a313a; }

a { color: var(--cyan); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--lime); }

/* ── Site header ─────────────────────────────────────────────────────────── */
/* Mirrors the landing page's nav so moving between them feels continuous. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 8, 9, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.site-header .inner {
  max-width: 62rem;
  margin: 0 auto;
  padding: 14px 1.25rem;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; height: 30px; width: auto; }

/* Sign-in call to action in the header, matching the landing page's primary
 * button so the two navs read as one. */
.nav-cta {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--btn-ink);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.nav-cta:hover { background: #c8ff66; color: var(--btn-ink); }

.site-nav {
  margin-left: auto;
  margin-right: 4px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--lime); }
.site-nav a[aria-current="page"] { color: var(--lime); }

/* ── Layout ──────────────────────────────────────────────────────────────── */

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}

/* Thin gradient rule echoing the landing page's accent. */
.accent-rule {
  height: 2px;
  width: 68px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  margin: 0 0 1.5rem;
}

h1 {
  color: var(--heading);
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.12;
  margin: 0 0 .6rem;
  letter-spacing: -.025em;
}

h2 {
  color: var(--heading);
  font-size: 1.28rem;
  margin: 3rem 0 .8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule-2);
  letter-spacing: -.01em;
}

h3 { color: var(--heading); font-size: 1rem; margin: 1.8rem 0 .5rem; }

.updated {
  color: var(--dim);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 2.2rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* Marks values the operator must supply before publication. Loud on purpose:
 * an unfilled placeholder in a legal notice must be impossible to miss. */
.todo {
  background: #3a2a00;
  color: #ffcc55;
  padding: .1em .45em;
  border-radius: 3px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .85em;
  /* These markers carry long strings like "[EU/UK REPRESENTATIVE, IF REQUIRED
   * UNDER ART. 27]". Kept unbreakable they were 401px wide and forced a 360px
   * viewport to scroll horizontally, so they wrap instead. */
  overflow-wrap: anywhere;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.3rem 0;
  font-size: .94rem;
  display: block;
  overflow-x: auto;
}
th, td {
  text-align: left;
  padding: .65rem .8rem;
  border-bottom: 1px solid var(--rule-2);
  vertical-align: top;
}
th { color: var(--heading); font-weight: 600; white-space: nowrap; }

ul, ol { padding-left: 1.25rem; }
li { margin: .4rem 0; }

code {
  background: var(--panel);
  padding: .12em .42em;
  border-radius: 3px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .88em;
  color: var(--heading);
}

.note {
  background: var(--panel);
  border-left: 2px solid var(--cyan);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
  border-radius: 0 6px 6px 0;
}

/* Status pill for release availability. */
.pill {
  display: inline-block;
  padding: .18em .7em;
  border-radius: 999px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--rule-2);
  color: var(--muted);
}
.pill.soon { color: var(--dim); }
.pill.live { color: var(--lime); border-color: #2a3a12; }

/* ── Site footer ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  background: #05060700;
}
.site-footer .inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  color: var(--dim);
  font-size: .85rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 1rem;
}
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--lime); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* bcube attribution in the footer — parent company, linked out. */
.site-footer .legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.site-footer .bcube {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: .82rem;
}
.site-footer .bcube img { opacity: .8; display: block; }
.site-footer .bcube:hover { color: var(--teal); }
.site-footer .bcube strong { color: var(--fg); font-weight: 600; }
.site-footer .loc {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--dim);
}

/* ── Pricing ─────────────────────────────────────────────────────────────── */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  padding: 1.5rem 1.35rem 1.35rem;
}
/* The recommended tier is lifted rather than merely coloured, so the hierarchy
 * survives for anyone who cannot distinguish the accent hue. */
.tier.featured {
  border-color: #3d5417;
  box-shadow: 0 0 0 1px #3d5417, 0 18px 44px -28px #b6ff3b;
}
.tier-badge {
  position: absolute;
  top: -.62rem;
  left: 1.35rem;
  background: var(--lime);
  color: var(--btn-ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .18em .6em;
  border-radius: 4px;
  font-weight: 700;
}
.tier h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--heading);
  letter-spacing: -.01em;
}
.tier .price {
  margin: .55rem 0 .2rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.tier .price .per {
  font-size: .8rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.tier .blurb {
  color: var(--muted);
  font-size: .88rem;
  margin: .35rem 0 1.1rem;
  min-height: 2.6em;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  font-size: .87rem;
  flex: 1;
}
.tier li {
  position: relative;
  padding-left: 1.35rem;
  margin: .5rem 0;
  color: var(--fg);
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: rotate(-45deg);
}
.tier li.off { color: var(--dim); }
.tier li.off::before {
  border: 0;
  top: .62em;
  width: 9px;
  height: 2px;
  background: var(--dim);
  transform: none;
}
.tier .cta {
  display: block;
  text-align: center;
  padding: .72rem 1rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: .9rem;
  background: var(--lime);
  color: var(--btn-ink);
}
.tier .cta:hover { background: #c8ff66; color: var(--btn-ink); }
.tier .cta.ghost {
  background: transparent;
  border: 1px solid var(--rule-2);
  color: var(--fg);
}
.tier .cta.ghost:hover { border-color: var(--lime); color: var(--lime); background: transparent; }
.tier .cta.soon { background: var(--panel-2); color: var(--dim); cursor: default; }
.tier .cta.soon:hover { background: var(--panel-2); color: var(--dim); }

.spec-note { color: var(--muted); font-size: .88rem; margin-top: .4rem; }

/* ── Contact form ────────────────────────────────────────────────────────── */

.contact-form { margin: 1.5rem 0 1rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 32rem) {
  .contact-form .row { grid-template-columns: 1fr; }
  /* Below 16px, iOS Safari zooms the viewport on focus and shifts the layout. */
  .contact-form input,
  .contact-form select,
  .contact-form textarea { font-size: 16px; }
}

.contact-form .field { margin-bottom: 1.1rem; }
.contact-form label {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: .4rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .75rem .85rem;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 9px;
  color: var(--heading);
  font-family: inherit;
  font-size: .93rem;
  transition: border-color .15s ease;
}
.contact-form textarea { resize: vertical; line-height: 1.6; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--cyan); }
.contact-form ::placeholder { color: var(--dim); }

.contact-form .hint {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .72rem;
  color: var(--dim);
  margin-top: .35rem;
  text-align: right;
}

/* Honeypot: off-screen rather than display:none, since some bots skip
 * undisplayed fields but fill positioned ones. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form .submit {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--lime);
  color: var(--btn-ink);
  border: 0;
  border-radius: 9px;
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
}
.contact-form .submit:hover:not(:disabled) { background: #c8ff66; }
.contact-form .submit:disabled { opacity: .55; cursor: not-allowed; }

.contact-form .fineprint {
  color: var(--dim);
  font-size: .8rem;
  text-align: center;
  margin: .9rem 0 0;
}

.msg { padding: .85rem 1rem; border-radius: 9px; font-size: .92rem; margin: 1.25rem 0; border-left: 2px solid; }
.msg[hidden] { display: none; }
.msg.err { background: #1a0f10; border-color: #ff6b6b; color: #ffb4b4; }
.msg.ok  { background: #0d1710; border-color: var(--lime); color: #d8ffab; }

/* ── Ambient backdrop ────────────────────────────────────────────────────── */
/* The same node-graph field the Author and Player sign-in screens draw, so the
 * desktop apps and the web read as one product and inner pages are not a bare
 * expanse of black. Fixed and non-interactive: it must never intercept a click
 * or scroll with the content. */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg) url("/assets/graph-backdrop.svg") center / cover no-repeat;
}

/* The sticky header sits over the backdrop, so it needs its own ground. */
.site-header { background: rgba(7, 8, 9, .92); }

@media (prefers-reduced-motion: reduce) { body::before { background-attachment: scroll; } }

/* ── Responsive ──────────────────────────────────────────────────────────── */
/*
 * The header is a single row of brand + section links + call to action, which
 * cannot fit a phone. Below 52rem the links move to their own row and scroll
 * horizontally rather than wrapping into a tall stack that pushes the content
 * off-screen — the brand and the sign-in action stay reachable at every width.
 */

/* Long unbroken strings — reset codes, Stripe IDs, URLs in the legal copy —
 * would otherwise force the whole page wider than the viewport. */
body { overflow-wrap: break-word; }
code, .pill { overflow-wrap: anywhere; }

@media (max-width: 52rem) {
  .site-header .inner {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 12px 1rem;
  }
  .brand img { height: 26px; }

  .site-nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 18px;
    /* Scroll rather than wrap: a wrapped nav on a small screen eats the
     * viewport before the content starts. */
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }

  .nav-cta { margin-left: auto; }

  .wrap { padding: 2.5rem 1rem 4rem; }
  h2 { margin-top: 2.4rem; }
}

@media (max-width: 32rem) {
  body { font-size: 15px; }

  .wrap { padding: 2rem .9rem 3.5rem; }

  /* Tables already scroll inside themselves; tighten the cells so more of a
   * row is visible before scrolling is needed. */
  th, td { padding: .55rem .6rem; }

  .tiers { grid-template-columns: 1fr; gap: .85rem; }
  .tier { padding: 1.35rem 1.15rem 1.2rem; }
  .tier .blurb { min-height: 0; }

  .note { padding: .85rem 1rem; }

  .site-footer .inner { padding: 1.75rem 1rem 2.5rem; }
  .site-footer nav { gap: 12px 14px; }
}

/* The sticky header costs vertical space that a short landscape phone cannot
 * spare, so it scrolls away there. */
@media (max-height: 26rem) and (orientation: landscape) {
  .site-header { position: static; }
}
