/* switchboardsys.com · public site. Same palette and type as Control and the client portal. */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --line: #dde2e9;
  --line-2: #c5ccd6;
  --fg: #22262d;
  --muted: #4f5866;
  --dim: #6b7482;
  --blue: #1f6feb;
  --blue-2: #4d90ff;
  --blue-3: #8fb6f8;
  --blue-text: #1a5fd0;
  --blue-soft: rgba(31,111,235,.10);
  --ink: #22262d;
  --ink-2: #2b3038;
  --ink-line: #3a414c;
  --ink-fg: #e9edf3;
  --ink-muted: #aab3c0;
  --ok: #e0a43a;
  --f-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1400px;
  --r: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--fg); font-family: var(--f-body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-text); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: 40px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.mark { display: inline-block; width: .82em; height: .82em; vertical-align: -.06em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #185fd0; }
.btn-ghost { background: #fff; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-white { background: #fff; color: var(--blue-text); }
.btn-white:hover { background: #eef4ff; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: block; flex: none; }
.brand img { width: 240px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a:not(.btn) { color: var(--fg); text-decoration: none; font-weight: 500; font-size: 15.5px; opacity: .85; }
.nav a:not(.btn):hover { opacity: 1; color: var(--blue-text); }
.nav .btn { padding: 11px 18px; }

/* Hero */
.hero { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 46px 46px; opacity: .55; mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 100%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 72px 76px; }
.pill { display: inline-block; font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-text); background: var(--blue-soft); padding: 7px 13px; border-radius: 999px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); font-weight: 600; margin: 22px 0 26px; letter-spacing: -.02em; line-height: 1.04; }
.hero h1 .mark { color: var(--blue-3); margin-inline: .12em; }
.hero h1 .accent { color: var(--blue); }
.lede { font-size: 19px; line-height: 1.6; color: #3b424d; max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px 36px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.proof div { display: grid; line-height: 1.25; font-size: 14px; color: var(--muted); }
.proof b { font-family: var(--f-head); font-size: 24px; font-weight: 600; color: var(--fg); letter-spacing: -.01em; }

/* Demo console */
.console { background: var(--ink); color: var(--ink-fg); border-radius: 18px; box-shadow: 0 30px 60px rgba(34,38,45,.22); overflow: hidden; border: 1px solid #1a1d23; }
.con-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--ink-line); }
.con-title { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--ink-muted); text-transform: uppercase; }
.con-title .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(224,164,58,.16); animation: blink 2.4s ease-in-out infinite; }
.con-title .mark { width: 14px; height: 14px; color: var(--ink-muted); }
.con-tabs { display: flex; gap: 6px; }
.con-tabs button { white-space: nowrap; font: 500 13px var(--f-body); color: var(--ink-fg); background: transparent; border: 1px solid var(--ink-line); border-radius: 8px; padding: 7px 12px; cursor: pointer; }
.con-tabs button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.con-body { padding: 18px; }
.con-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.con-kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-3); }
.con-meta h4 { font-family: var(--f-head); font-size: 19px; font-weight: 600; margin-top: 4px; color: #fff; }
.con-count { text-align: right; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-muted); text-transform: uppercase; line-height: 1.4; }
.con-count b { display: block; font-size: 22px; letter-spacing: .02em; color: #fff; font-weight: 700; }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.chips span { font-size: 12px; padding: 8px 9px; border: 1px solid var(--ink-line); border-radius: 7px; color: var(--ink-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .3s, background .3s; }
.chips span.on { border-color: var(--blue-2); background: rgba(31,111,235,.18); }
.log { background: #1b1e24; border-radius: 10px; padding: 12px 14px; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.85; height: 176px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-fg); animation: rise .35s ease-out; }
.log .t { color: #7d8693; }
.log .k { color: var(--blue-3); font-weight: 700; }
.log .ok { color: var(--ok); }
.con-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--ink-line); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .45; } }

/* Platforms marquee */
.platforms { background: var(--ink); color: var(--ink-fg); padding: 44px 0 46px; overflow: hidden; }
.platforms .lbl { text-align: center; font-family: var(--f-mono); font-size: 13px; letter-spacing: .3em; color: var(--ink-muted); margin-bottom: 26px; }
.track { display: flex; gap: 14px; width: max-content; animation: slide 46s linear infinite; }
.track + .track { margin-top: 14px; animation-direction: reverse; animation-duration: 52s; }
.track li { min-width: 210px; padding: 18px 22px; border: 1px solid var(--ink-line); background: var(--ink-2); border-radius: 12px; }
.track li:nth-child(5n+2) { border-color: rgba(77,144,255,.55); background: linear-gradient(180deg, rgba(31,111,235,.22), rgba(31,111,235,.08)); }
.track small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--blue-3); text-transform: uppercase; }
.track strong { display: block; font-family: var(--f-head); font-size: 22px; font-weight: 600; color: #fff; margin-top: 2px; }
.platforms .fade { position: relative; }
.platforms .fade::before, .platforms .fade::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.platforms .fade::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.platforms .fade::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.sec { padding: 96px 0; }
.sec-alt { background: var(--bg); border-block: 1px solid var(--line); }
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 12px; }
.sec h2 { font-size: clamp(32px, 4.2vw, 44px); letter-spacing: -.02em; }
.sec-intro { max-width: 52em; }
.sec-intro p { margin-top: 14px; font-size: 18px; color: #3b424d; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.card h3 { font-size: 24px; }
.card .sub { font-size: 15px; font-weight: 600; color: var(--blue-text); margin: 10px 0 14px; }
.card ul { display: grid; gap: 9px; }
.card li { position: relative; padding-left: 18px; font-size: 15.5px; color: #3b424d; line-height: 1.5; }
.card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.card .terms { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.card .terms b { color: var(--fg); }
.step { padding: 24px; }
.step .num { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--blue-text); text-transform: uppercase; }
.step h3 { font-size: 21px; margin: 10px 0 10px; }
.step p, .plat p { font-size: 15px; color: var(--muted); }
.plat { padding: 24px; }
.plat h3 { font-size: 21px; margin-bottom: 10px; }

/* Operator band */
.operator { background: var(--ink); color: var(--ink-fg); }
.operator .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.operator .eyebrow { color: var(--blue-3); }
.operator h2 { color: #fff; }
.operator p { margin-top: 18px; font-size: 17px; color: #c9d0da; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stats div { border: 1px solid var(--ink-line); border-radius: 12px; padding: 20px 22px; font-size: 14.5px; color: var(--ink-muted); line-height: 1.35; }
.stats b { display: block; font-family: var(--f-head); font-size: 34px; font-weight: 600; color: var(--blue-3); margin-bottom: 4px; letter-spacing: -.01em; }

/* CTA band */
.cta-band { background: var(--blue); color: #fff; padding: 72px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 38px); }
.cta-band p { margin-top: 10px; font-size: 18px; max-width: 34em; color: #e8f0ff; }
.cta-side { display: grid; justify-items: end; gap: 10px; }
.cta-side a.mail { color: #fff; font-family: var(--f-mono); font-size: 13.5px; text-decoration: none; }
.cta-side a.mail:hover { text-decoration: underline; }

/* Footer */
.site-foot { background: var(--ink); color: var(--ink-muted); font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 48px 40px; }
.foot-brand img { width: 260px; height: auto; }
.foot-brand p { margin-top: 18px; color: #fff; font-weight: 600; font-size: 15px; }
.foot-brand .mark { color: var(--blue-2); margin-inline: .25em; width: .9em; height: .9em; }
.foot-col h3 { font-family: var(--f-body); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.foot-col li { line-height: 1.85; }
.foot-col a { color: var(--ink-muted); text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid var(--ink-line); padding-block: 18px 22px; font-size: 13.5px; color: #8a93a1; }
.foot-bottom a { color: #c9d0da; text-decoration: none; }
.foot-bottom a:hover { color: #fff; text-decoration: underline; }

/* Legal pages */
.legal { background: var(--bg); padding: 64px 16px 88px; }
.legal article { width: min(960px, 100%); margin-inline: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 44px 48px; }
.legal h1 { font-size: 40px; letter-spacing: -.02em; }
.legal .updated { margin-top: 8px; color: var(--dim); font-size: 14.5px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 16px; color: #3b424d; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin-top: 8px; }
.notfound { background: var(--bg); padding: 120px 0; text-align: center; }
.notfound h1 { font-size: 44px; }
.notfound p { margin: 14px 0 26px; color: var(--muted); font-size: 18px; }

/* Responsive */
@media (max-width: 1040px) {
  .wrap { padding-inline: 24px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 64px; }
  .console { max-width: 720px; }
  .operator .wrap { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  .head-in { min-height: 68px; gap: 12px; }
  .brand img { width: 150px; }
  .nav { gap: 8px; }
  .nav .btn { padding: 9px 12px; font-size: 14px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .sec { padding: 68px 0; }
  .lede { font-size: 17.5px; }
  .proof { gap: 12px 20px; }
  .proof b { font-size: 20px; }
  .proof div { font-size: 13px; }
  .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips span:nth-child(n+4) { display: none; }
  .log { font-size: 11.5px; height: 160px; }
  .foot-in { grid-template-columns: 1fr; gap: 26px; }
  .cta-side { justify-items: start; }
  .legal article { padding: 28px 20px; }
  .legal h1 { font-size: 32px; }
  .track li { min-width: 170px; padding: 14px 16px; }
  .track strong { font-size: 19px; }
}
@media (max-width: 380px) {
  .brand img { width: 124px; }
  .nav .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding-inline: 16px; }
  .track[aria-hidden="true"], .track li[aria-hidden="true"] { display: none; }
  .log div, .con-title .dot { animation: none; }
}
.legal .intro { margin-top: 24px; }
.legal .after-list { margin-top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
