/* B4 managed remote access — b4solutions.tech
 *
 * The same visual system as b4solutions.io: the same colour tokens, the
 * same type scale, the same section rhythm. One brand, two addresses.
 */

:root {
  --ink-0: #06090f;
  --ink-1: #0a0e16;
  --ink-2: rgba(17, 23, 34, .78);
  --ink-3: rgba(24, 34, 51, .82);
  --ink-4: #1f2a3d;

  --type-0: #f3f6fb;
  --type-1: #b8c2d3;
  --type-2: #7a869a;
  /* --type-3 is decorative only: borders and rules, never text. It is
     2.6:1 on this background, which is below the WCAG AA threshold for
     text, so text uses --type-2 (5.0:1) instead. */
  --type-3: #4d5666;

  --orange: #ff6b1a;
  --orange-soft: #ffb38a;
  --teal: #00d4d4;
  --gold: #ffb547;

  --orange-glow: rgba(255, 107, 26, .22);
  --teal-glow: rgba(212, 212, 212, .0);
  --teal-glow: rgba(0, 212, 212, .22);
  --gold-glow: rgba(255, 181, 71, .18);

  --font-display: 'Chakra Petch', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --max-w: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-1);
  color: var(--type-0);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--orange); color: var(--ink-1); }
code {
  font-family: var(--font-mono);
  font-size: .88em;
  color: var(--teal);
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-4); }
section[id], footer[id], div[id] { scroll-margin-top: 96px; }

.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.02; text-wrap: balance; }
.eyebrow, .mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
}
.eyebrow { color: var(--orange); }
.mono { color: var(--type-2); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--ink-1); }
.btn-primary:hover { background: var(--orange-soft); }
.btn-ghost { border: 1px solid var(--ink-4); color: var(--type-0); }
.btn-ghost:hover { border-color: var(--type-1); }

.divider { border: 0; border-top: 1px solid var(--ink-4); margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- nav ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 22, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-4);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.nav-logo { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.nav-logo .mark { width: 34px; height: 34px; color: var(--type-0); }
.nav-suffix {
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--type-2);
  padding-left: .65rem;
  border-left: 1px solid var(--ink-4);
}
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; font-size: .92rem; color: var(--type-1); }
/* 24px minimum target size: these were 23px tall. */
.nav-links a { display: inline-block; padding: .15rem 0; }
.nav-links a:hover { color: var(--type-0); }
.nav-cta { padding: .55rem .9rem; font-size: .88rem; }
.nav-menu-btn { display: none; flex-direction: column; gap: 5px; margin-left: auto; padding: .5rem; }
.nav-menu-btn span { display: block; width: 22px; height: 2px; background: var(--type-0); }
.nav-mobile { border-top: 1px solid var(--ink-4); }
.nav-mobile-inner { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem 0 1.4rem; color: var(--type-1); }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu-btn { display: flex; }
}

/* --- hero --------------------------------------------------------------- */
.hero { position: relative; padding: var(--space-8) 0 var(--space-7); overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.glow-a { width: 520px; height: 520px; top: -240px; right: -160px; background: var(--orange-glow); }
.glow-b { width: 460px; height: 460px; bottom: -260px; left: -140px; background: var(--teal-glow); }
.hero .wrap { position: relative; }
.hero-eyebrow { margin: 0 0 1.1rem; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 16ch;
  margin: 0;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--orange); }
.hero-sub { margin: 1.4rem 0 0; color: var(--type-1); font-size: 1.12rem; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  padding: 1.8rem 0 0;
  margin: 2.2rem 0 0;
  border-top: 1px solid var(--ink-4);
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--type-2);
}
.trust-strip li { position: relative; padding-left: 1rem; }
.trust-strip li::before {
  content: '';
  position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
}

/* --- scenes ------------------------------------------------------------- */
.scene { padding: var(--space-8) 0; }
.scene-head { max-width: 68ch; margin-bottom: var(--space-5); }
.scene-num {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .2em;
  /* --type-2, not --type-3: this is text, and it has to be readable. */
  color: var(--type-2);
  margin-bottom: .8rem;
}
.scene-h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); margin: 0 0 1rem; }
.scene-sub { color: var(--type-1); font-size: 1.06rem; max-width: 62ch; margin: 0; }
.scene--secure { background: var(--ink-0); }
.scene--request { background: linear-gradient(180deg, var(--ink-0) 0%, var(--ink-1) 100%); }

/* --- cards -------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cards--two { grid-template-columns: repeat(2, 1fr); }
.cards--three { grid-template-columns: repeat(3, 1fr); margin-top: 1.4rem; }
@media (max-width: 1000px) {
  .cards, .cards--three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards, .cards--two, .cards--three { grid-template-columns: 1fr; }
}
.card {
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
}
.card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin: .7rem 0 .6rem; }
.card p { margin: 0; color: var(--type-1); font-size: .96rem; }
.card--quiet { background: var(--ink-2); }

.callout {
  margin: 2rem 0 0;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--teal);
  background: var(--ink-2);
  border-radius: 0 12px 12px 0;
  color: var(--type-1);
  font-size: .97rem;
}
.callout strong { color: var(--type-0); }
.callout--gold { border-left-color: var(--gold); margin-top: 1.6rem; }

/* --- flow --------------------------------------------------------------- */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: .7rem;
  padding: 1.6rem;
  border: 1px solid var(--ink-4);
  border-radius: 16px;
  background: var(--ink-2);
}
.flow-node {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  border: 1px solid var(--ink-4);
  border-radius: 12px;
  background: var(--ink-1);
}
.flow-node--accent { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange-glow), 0 10px 34px rgba(0,0,0,.35); }
.flow-kicker { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; color: var(--type-2); }
.flow-node strong { font-family: var(--font-display); font-size: 1rem; }
.flow-note { font-size: .78rem; color: var(--type-2); }
/* The arrows are aria-hidden decoration, but they are still text on screen
   for a low-vision reader, so they are given a readable grey. */
.flow-arrow { color: var(--type-2); font-size: 1.3rem; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
}

/* --- table -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--ink-4); border-radius: 14px; background: var(--ink-2); }
.controls { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
.controls th, .controls td { text-align: left; padding: .95rem 1.1rem; vertical-align: top; border-bottom: 1px solid var(--ink-4); }
.controls thead th {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--type-2);
  font-weight: 500;
}
.controls tbody th { font-weight: 600; color: var(--type-0); width: 26%; }
.controls td { color: var(--type-1); }
.controls tbody tr:last-child th, .controls tbody tr:last-child td { border-bottom: 0; }
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .28rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--ink-4);
  color: var(--type-1);
  white-space: nowrap;
}
.pill--strong { border-color: var(--teal); color: var(--teal); }

.limits { margin-top: 2.4rem; border-top: 1px solid var(--ink-4); padding-top: 1.8rem; }
.limits h3 { font-size: 1.4rem; margin: 0 0 .9rem; }
.limits ul { margin: 0; padding-left: 1.1rem; color: var(--type-1); }
.limits li { margin-bottom: .6rem; }
.limits strong { color: var(--type-0); }

/* --- plans -------------------------------------------------------------- */
.plans { margin-bottom: 1.8rem; }
.plan {
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.plan--accent { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange-glow); }
.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.plan-head .eyebrow { margin: 0 0 .4rem; }
.plan-price { margin: 0; font-family: var(--font-display); }
.plan-amount { font-size: 2.5rem; font-weight: 700; letter-spacing: -.02em; }
.plan-unit { color: var(--type-2); font-size: .95rem; font-family: var(--font-body); }
.plan-uptime { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); }
.plan-list { list-style: none; margin: 0; padding: 0; color: var(--type-1); }
.plan-list li { padding: .4rem 0 .4rem 1.1rem; position: relative; border-bottom: 1px dashed rgba(31,42,61,.9); }
.plan-list li:last-child { border-bottom: 0; }
.plan-list li::before { content: '·'; position: absolute; left: .2rem; color: var(--orange); font-weight: 700; }
.plan-note { margin: 0; color: var(--gold); font-family: var(--font-mono); font-size: .8rem; }
.plan .btn { align-self: flex-start; }

/* --- steps -------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--ink-4);
  border-radius: 14px;
  background: var(--ink-2);
}
.step-num { font-family: var(--font-mono); font-size: .78rem; color: var(--orange); letter-spacing: .14em; padding-top: .25rem; }
.steps h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 0 0 .35rem; }
.steps p { margin: 0; color: var(--type-1); font-size: .93rem; }

/* --- request form ------------------------------------------------------- */
.request-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 1.4rem; align-items: start; }
@media (max-width: 900px) { .request-grid { grid-template-columns: 1fr; } }
.request-form {
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 620px) { .request-form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--type-2); }
.field input, .field textarea {
  font: inherit;
  color: var(--type-0);
  background: var(--ink-1);
  border: 1px solid var(--ink-4);
  border-radius: 10px;
  padding: .7rem .85rem;
  width: 100%;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.field input.is-invalid { border-color: #ff5c5c; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { grid-column: 1 / -1; margin: 0; font-size: .84rem; color: var(--type-2); }
.form-status { grid-column: 1 / -1; margin: 0; min-height: 1.2rem; font-size: .92rem; color: var(--type-1); }
.form-status.is-error { color: #ff8f8f; }
.form-status.is-ok { color: var(--teal); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .8rem; }

.b4-tip { position: relative; display: inline-flex; align-items: center; gap: .4rem; cursor: help; border-bottom: 1px dotted var(--type-3); }
.b4-tip__chip {
  display: inline-grid;
  place-items: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--type-3);
  font-family: var(--font-mono);
  font-size: .66rem;
  color: var(--type-2);
}
.b4-tip__panel {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: min(340px, 78vw);
  padding: .85rem 1rem;
  border-radius: 12px;
  background: var(--ink-0);
  border: 1px solid var(--ink-4);
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  color: var(--type-1);
  font-size: .82rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease;
  z-index: 20;
}
.b4-tip:hover .b4-tip__panel, .b4-tip:focus .b4-tip__panel { opacity: 1; visibility: visible; }
.b4-tip__panel strong { display: block; color: var(--type-0); margin-bottom: .3rem; }

.request-aside {
  background: var(--ink-1);
  border: 1px solid var(--ink-4);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
}
.request-aside h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 1rem; }
.aside-list { margin: 0 0 1.4rem; padding-left: 1.2rem; color: var(--type-1); font-size: .95rem; }
.aside-list li { margin-bottom: .55rem; }
.aside-note { margin: 0; color: var(--type-2); font-size: .86rem; }
.aside-note a { color: var(--orange); border-bottom: 1px solid rgba(255,107,26,.4); }

/* --- footer ------------------------------------------------------------- */
footer { border-top: 1px solid var(--ink-4); padding: 2.4rem 0 2rem; background: var(--ink-0); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--type-2); }
.row--foot { margin-top: 1.4rem; font-size: .82rem; color: var(--type-2); }
.footer-brand { font-family: var(--font-display); color: var(--type-0); }
.footer-sep { margin: 0 .5rem; }
.links { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .9rem; }
/* 24px minimum target size: these were 23px tall. */
.links a { display: inline-block; padding: .15rem 0; }
.links a:hover { color: var(--type-0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
