/* RackTrace website (racktrace.io). Fonts are served from this site (SIL Open Font License, see fonts/LICENSE-*.txt). */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-latin-variable.woff2) format("woff2-variations"), url(/fonts/archivo-latin-variable.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }

/* Layout: a live rack elevation opens the page; the sections below run top-down like RackTrace's own hierarchy, site to port. */
:root {
  --bg: #f3f5f9; --surface: #ffffff; --sunk: #e9edf3; --ink: #0f1726; --ink-2: #2a3547; --muted: #5a6779;
  --line: #dbe1ea; --line-strong: #c3ccd8;
  --accent: #2563eb; --accent-hover: #1d4ed8; --accent-text: #1d4ed8; --accent-weak: #e5edff; --on-accent: #ffffff;
  --signal: #f59e0b; --signal-weak: rgba(245, 158, 11, .22);
  --ok: #15803d; --ok-weak: #e2f3e8; --warn: #a85d06; --warn-weak: #fcefd9; --bad: #c42b2b; --bad-weak: #fbe6e6; --info: #1d4ed8; --info-weak: #e5edff;
  --nav-bg: rgba(243, 245, 249, .86); --scrim: rgba(6, 10, 18, .55);
  --band: #0e1524; --band-ink: #e8edf4; --band-muted: #9aa7ba; --band-line: #223047; --band-accent: #82adff;
  --rk-panel: #0e1524; --rk-edge: #1f2a3c; --rk-ink: #e8edf4; --rk-muted: #8d9ab0; --rk-card: #151e30; --rk-line: #2a3448;
  --rk-frame: #2b3343; --rk-inner: #131924; --rk-rail: #222a38; --rk-face: #283142; --rk-face-edge: #3a4558; --rk-text: #aab5c7;
  --rk-port: #0b0f17; --rk-port-edge: #4b5668; --rk-blank: #1c2330; --rk-screen: #0d2a4a; --rk-lcd: #7cc4ff;
  --cb-blue: #4c8dff; --cb-yellow: #f2cb3a; --cb-green: #34c46a; --cb-red: #f05252; --cb-grey: #aab4c3; --cb-aqua: #2fd6c3; --led: #4ade80;
  --tape: #ffffff; --tape-ink: #141414; --tape-yellow: #ffd84a; --tape-edge: #cfd5de;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-lg: 0 30px 70px -28px rgba(15, 23, 42, .45);
  --f-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e15; --surface: #111826; --sunk: #0d131e; --ink: #e8edf4; --ink-2: #c5cedb; --muted: #93a0b4;
    --line: #1e2837; --line-strong: #2d394b;
    --accent: #3271ee; --accent-hover: #4a84f5; --accent-text: #86b0ff; --accent-weak: #14264a; --on-accent: #ffffff;
    --ok: #4ade80; --ok-weak: #0f2a1a; --warn: #fbbf24; --warn-weak: #2f240b; --bad: #f87171; --bad-weak: #3a1515; --info: #86b0ff; --info-weak: #14264a;
    --nav-bg: rgba(10, 14, 21, .84); --scrim: rgba(0, 0, 0, .65);
    --band: #101929; --band-line: #24324a; --rk-panel: #0f1625; --rk-edge: #26324a; --tape-edge: #3a4558;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5); --shadow-lg: 0 30px 70px -28px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0e15; --surface: #111826; --sunk: #0d131e; --ink: #e8edf4; --ink-2: #c5cedb; --muted: #93a0b4;
  --line: #1e2837; --line-strong: #2d394b;
  --accent: #3271ee; --accent-hover: #4a84f5; --accent-text: #86b0ff; --accent-weak: #14264a; --on-accent: #ffffff;
  --ok: #4ade80; --ok-weak: #0f2a1a; --warn: #fbbf24; --warn-weak: #2f240b; --bad: #f87171; --bad-weak: #3a1515; --info: #86b0ff; --info-weak: #14264a;
  --nav-bg: rgba(10, 14, 21, .84); --scrim: rgba(0, 0, 0, .65);
  --band: #101929; --band-line: #24324a; --rk-panel: #0f1625; --rk-edge: #26324a; --tape-edge: #3a4558;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5); --shadow-lg: 0 30px 70px -28px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
a { color: var(--accent-text); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
code, .mono { font-family: var(--f-mono); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-family: var(--f-display); font-stretch: 118%; font-weight: 760; letter-spacing: -.028em; line-height: 1.02; }
h1.display { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2.display { font-size: clamp(1.75rem, 3.3vw, 2.6rem); line-height: 1.06; }
.eyebrow { font: 600 .74rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); margin-bottom: 14px; }
.lede { font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.sec { padding-block: clamp(64px, 9vw, 112px); }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 1.15em; border-radius: 9px; font: 600 .95rem/1 var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn[aria-disabled="true"] { opacity: .55; }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 750 1.12rem/1 var(--f-display); font-stretch: 112%; letter-spacing: -.015em; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 11px; border-radius: 7px; }
.nav-links a:hover { color: var(--ink); background: var(--sunk); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--sunk); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-links .nav-menu-only { display: none; }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
.nav-cta .btn { min-height: 40px; }
.nav-menu { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-strong); border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; }
.nav-menu svg { width: 18px; height: 18px; }
.nav-menu:hover { border-color: var(--ink-2); }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-menu { display: inline-flex; }
  /* the menu opens as a panel under the bar */
  .nav.open .nav-links { display: grid; gap: 2px; position: absolute; top: 100%; left: 0; right: 0; padding: 10px clamp(16px, 4vw, 32px) 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(15, 23, 42, .35); }
  .nav.open .nav-links a { padding: 12px 12px; font-size: 1rem; }
  .nav.open .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .nav.open .nav-links .nav-menu-only { display: block; }
}
@media (max-width: 520px) { .nav-cta .btn-ghost { display: none; } }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 84px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 4.5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.pill-new { display: inline-flex; gap: 10px; align-items: center; font-size: .86rem; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 14px 4px 4px; text-decoration: none; box-shadow: var(--shadow); }
.pill-new b { background: var(--accent-weak); color: var(--accent-text); border-radius: 999px; padding: 3px 9px; font: 600 .72rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.pill-new:hover { border-color: var(--line-strong); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--muted); }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks li::before, .plan li::before { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) translateY(-2px); flex: none; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

/* rack panel */
.rackpanel { background: var(--rk-panel); border: 1px solid var(--rk-edge); border-radius: 18px; padding: clamp(14px, 2vw, 22px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 20px; color: var(--rk-ink); box-shadow: var(--shadow-lg); min-width: 0; }
.rp-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 .74rem/1.2 var(--f-mono); color: var(--rk-muted); letter-spacing: .02em; flex-wrap: wrap; }
.rp-head b { color: var(--rk-ink); font-weight: 600; }
.saved { display: inline-flex; align-items: center; gap: 6px; }
.saved i { width: 7px; height: 7px; border-radius: 50%; background: var(--led); }
.rk { width: 100%; height: auto; display: block; }
.rp-side { display: grid; gap: 18px; align-content: start; min-width: 0; }
.inspect { background: var(--rk-card); border: 1px solid var(--rk-line); border-radius: 12px; padding: 14px 16px; }
.inspect-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.inspect-head code { font-size: .9rem; font-weight: 600; color: var(--rk-ink); }
.live { display: inline-flex; align-items: center; gap: 6px; font: 600 .68rem/1 var(--f-mono); color: var(--led); text-transform: uppercase; letter-spacing: .08em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
.inspect dl { margin: 0; display: grid; gap: 7px; }
.inspect dl div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; font-size: .8rem; line-height: 1.4; }
.inspect dt { color: var(--rk-muted); }
.inspect dd { margin: 0; color: var(--rk-ink); font-family: var(--f-mono); font-size: .76rem; overflow-wrap: anywhere; }
.rp-label { font: 600 .68rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--rk-muted); margin-bottom: 12px; }
.trace { list-style: none; margin: 0; padding: 0; }
.trace li { position: relative; padding: 0 0 13px 24px; }
.trace li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--rk-line); background: var(--rk-panel); transition: background-color .3s, border-color .3s, box-shadow .3s; }
.trace li::after { content: ""; position: absolute; left: 8px; top: 17px; bottom: -2px; width: 2px; background: var(--rk-line); transition: background-color .3s; }
.trace li:last-child { padding-bottom: 0; }
.trace li:last-child::after { display: none; }
.trace .id { display: block; font: 500 .78rem/1.35 var(--f-mono); color: var(--rk-muted); overflow-wrap: anywhere; transition: color .3s; }
.trace .k { display: block; font-size: .72rem; color: var(--rk-muted); opacity: .8; }
.trace li.on::before { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 0 4px var(--signal-weak); }
.trace li.on:not(:last-child)::after { background: var(--signal); }
.trace li.on .id { color: var(--rk-ink); }
@media (max-width: 640px) { .rackpanel { grid-template-columns: 1fr; } }

/* rack svg */
.rk .r-frame { fill: var(--rk-frame); }
.rk .r-inner { fill: var(--rk-inner); }
.rk .r-rail { fill: var(--rk-rail); }
.rk .r-hole { fill: var(--rk-inner); }
.rk .r-u { fill: var(--rk-muted); font: 500 8px var(--f-mono); }
.rk .d-face { fill: var(--rk-face); stroke: var(--rk-face-edge); stroke-width: .8; }
.rk .d-blank { fill: var(--rk-blank); stroke: var(--rk-face-edge); stroke-width: .5; }
.rk .d-label { fill: var(--rk-text); font: 600 7.2px var(--f-mono); }
.rk .d-screen { fill: var(--rk-screen); }
.rk .d-lcd { fill: var(--rk-lcd); font: 500 6px var(--f-mono); }
.rk .d-bay { fill: var(--rk-blank); stroke: var(--rk-face-edge); stroke-width: .6; }
.rk .d-vent { fill: var(--rk-blank); }
.rk .d-btn { fill: none; stroke: var(--rk-text); stroke-width: 1; }
.rk .screw { fill: var(--rk-face-edge); }
.rk .p { fill: var(--rk-port); stroke: var(--rk-port-edge); stroke-width: .6; }
.rk .led { fill: var(--led); }
.rk .m-face { fill: var(--rk-face); opacity: .8; }
.rk .m-slot { fill: var(--rk-inner); opacity: .55; }
.rk .m-brush { stroke: var(--rk-face-edge); stroke-width: .6; opacity: .7; }
.rk .cord { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.rk .plug { opacity: .85; }
.rk .cord.hot { stroke: var(--signal); opacity: 1; stroke-width: 2.6; filter: drop-shadow(0 0 3px var(--signal)); }
.rk .plug.hot { fill: var(--signal); opacity: 1; }
.rk .flow { fill: none; stroke: var(--rk-ink); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 1.5 7; opacity: .9; animation: flow 1.1s linear infinite; }
.rk .ring { fill: none; stroke: var(--signal); stroke-width: 1.2; }
.cb-blue { stroke: var(--cb-blue); } .pf-blue { fill: var(--cb-blue); }
.cb-yellow { stroke: var(--cb-yellow); } .pf-yellow { fill: var(--cb-yellow); }
.cb-green { stroke: var(--cb-green); } .pf-green { fill: var(--cb-green); }
.cb-red { stroke: var(--cb-red); } .pf-red { fill: var(--cb-red); }
.cb-grey { stroke: var(--cb-grey); } .pf-grey { fill: var(--cb-grey); }
.cb-aqua { stroke: var(--cb-aqua); } .pf-aqua { fill: var(--cb-aqua); }
@keyframes flow { to { stroke-dashoffset: -17; } }

/* address strip */
.addr { border-block: 1px solid var(--line); background: var(--surface); }
.addr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px 56px; align-items: center; padding-block: clamp(40px, 5vw, 60px); }
.addr-copy { display: grid; gap: 12px; }
.addr-copy h2 { font-family: var(--f-display); font-stretch: 112%; font-weight: 720; font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -.02em; line-height: 1.12; }
.addr-copy p { color: var(--muted); max-width: 52ch; }
.path { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 4px; font-family: var(--f-mono); }
.seg { display: grid; gap: 8px; justify-items: start; }
.seg code { font-size: clamp(1.25rem, 2.8vw, 2.05rem); font-weight: 600; line-height: 1; color: var(--ink); padding-bottom: 10px; border-bottom: 3px solid var(--accent); letter-spacing: -.01em; }
.seg:last-child code { border-bottom-color: var(--signal); }
.seg span { font: 500 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.slash { font-size: clamp(1.25rem, 2.8vw, 2.05rem); line-height: 1; color: var(--line-strong); padding-inline: 2px; }
.tenant-note { margin-top: 18px; font-size: .88rem; color: var(--muted); }
.tenant-note code { color: var(--ink-2); }
@media (max-width: 900px) { .addr-grid { grid-template-columns: 1fr; } }

/* spotlights */
.spots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.spot { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.spot-vis { background: var(--sunk); border-bottom: 1px solid var(--line); padding: clamp(14px, 2.4vw, 24px); display: flex; align-items: center; justify-content: center; min-height: 250px; min-width: 0; }
.spot-vis > * { width: 100%; max-width: 460px; }
.spot-body { padding: 22px 26px 28px; display: grid; gap: 8px; }
.spot-tag { font: 600 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); }
.spot h3 { font: 700 1.22rem/1.25 var(--f-display); font-stretch: 108%; letter-spacing: -.01em; }
.spot p { color: var(--muted); font-size: .96rem; max-width: 58ch; }
@media (max-width: 860px) { .spots { grid-template-columns: 1fr; } }

.tblwrap { overflow-x: auto; min-width: 0; }
.ck { width: 100%; border-collapse: collapse; font: 400 .74rem/1.35 var(--f-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ck th { text-align: left; font: 600 .64rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 10px 8px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ck td { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.ck tr:last-child td { border-bottom: 0; }
.ck td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.st { display: inline-block; padding: 3px 7px; border-radius: 5px; font: 600 .66rem/1.2 var(--f-body); white-space: nowrap; }
.st-ok { background: var(--ok-weak); color: var(--ok); }
.st-warn { background: var(--warn-weak); color: var(--warn); }
.st-bad { background: var(--bad-weak); color: var(--bad); }
.st-info { background: var(--info-weak); color: var(--info); }

.vis-svg { display: block; width: 100%; height: auto; }
.sim .node rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.sim .node text, .fp text { fill: var(--ink); font: 600 9px var(--f-mono); }
.sim .ln { stroke: var(--line-strong); stroke-width: 3; stroke-linecap: round; }
.sim .ln-ok { stroke: var(--ok); opacity: .7; }
.sim .ln-thick { stroke-width: 6; }
.sim .ln-bad { stroke: var(--bad); stroke-width: 6; animation: pulse 1.4s ease-in-out infinite; }
.sim .flowpath { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 5 6; stroke-linecap: round; animation: flow2 .9s linear infinite; }
.sim .tag rect { fill: var(--bad); }
.sim .tag text { fill: var(--surface); font: 600 9px var(--f-mono); }
.sim .callout rect { fill: var(--surface); stroke: var(--line-strong); }
.sim .callout text { fill: var(--ink-2); font: 400 8.6px var(--f-mono); }
.sim .callout .b { fill: var(--ink); font-weight: 600; }
.sim .foot, .fp .muted { fill: var(--muted); font: 500 8.4px var(--f-mono); }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes flow2 { to { stroke-dashoffset: -22; } }

.fp .floor { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2.4; }
.fp .wall { stroke: var(--ink-2); stroke-width: 2; stroke-linecap: square; }
.fp .room { fill: var(--muted); font: 600 8px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.fp .route { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 4 3; }
.fp .route.over { stroke: var(--bad); stroke-width: 2; }
.fp .outlet { fill: var(--accent); }
.fp .ap { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.fp .rack { fill: var(--ink-2); }
.fp .len { fill: var(--accent-text); font: 600 8.4px var(--f-mono); }
.fp .len.over { fill: var(--bad); }
.fp .dot { fill: var(--ok); }
.fp .lbl { fill: var(--ink-2); font: 500 7.6px var(--f-mono); }

.labels { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.tapes { display: grid; gap: 12px; min-width: 0; }
.tape { display: flex; align-items: stretch; background: var(--tape); color: var(--tape-ink); border: 1px solid var(--tape-edge); border-radius: 3px; font: 600 .74rem/1 var(--f-mono); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); overflow: hidden; }
.tape span { padding: 9px 10px; white-space: nowrap; display: flex; align-items: center; }
.tape span + span { border-left: 1px dashed rgba(0, 0, 0, .28); }
.tape .tid { font-weight: 700; }
.tape-y { background: var(--tape-yellow); border-color: rgba(0, 0, 0, .15); }
.tape-mid { flex: 1; min-width: 0; justify-content: center; }
.strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--tape); color: var(--tape-ink); border: 1px solid var(--tape-edge); border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); font-family: var(--f-mono); }
.strip span { display: grid; gap: 3px; padding: 7px 4px; text-align: center; font-size: .62rem; line-height: 1.1; }
.strip span + span { border-left: 1px solid rgba(0, 0, 0, .2); }
.strip b { font-size: .8rem; }
.qr { display: grid; justify-items: center; gap: 6px; background: var(--tape); color: var(--tape-ink); border: 1px solid var(--tape-edge); border-radius: 8px; padding: 10px 10px 9px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); font-family: var(--f-mono); text-align: center; }
.qr canvas { width: 86px; height: 86px; image-rendering: pixelated; display: block; }
.qr b { font-size: .74rem; }
.qr span { font-size: .6rem; opacity: .75; }
.label-note { grid-column: 1 / -1; font: 500 .7rem/1.3 var(--f-mono); color: var(--muted); }
@media (max-width: 560px) { .labels { grid-template-columns: 1fr; } .qr { justify-self: start; } }
@media (max-width: 440px) { .tape { font-size: .66rem; } .tape span { padding: 8px 7px; } }

/* catalogue */
.cat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); gap: 20px 56px; padding-block: 38px; border-top: 1px solid var(--line); }
.cat:last-child { border-bottom: 1px solid var(--line); }
.cat-head { display: grid; gap: 8px; align-content: start; }
.cat-head h3 { font: 720 1.4rem/1.15 var(--f-display); font-stretch: 114%; letter-spacing: -.02em; }
.cat-head p { color: var(--muted); font-size: .95rem; max-width: 34ch; }
.cat-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 40px; }
.feat { min-width: 0; }
.feat h4 { font: 600 1rem/1.35 var(--f-body); display: flex; gap: 11px; align-items: center; color: var(--ink); }
.feat h4::before { content: ""; flex: none; width: 12px; height: 10px; border: 1.8px solid var(--accent); border-radius: 2px 2px 3px 3px; box-shadow: inset 0 -3px 0 -1px var(--accent-weak); }
.feat p { margin: 6px 0 0 23px; color: var(--muted); font-size: .94rem; line-height: 1.55; }
@media (max-width: 880px) { .cat { grid-template-columns: 1fr; } }
@media (max-width: 580px) { .cat-items { grid-template-columns: 1fr; } }

/* integrations */
.integ { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.integ > div { background: var(--surface); padding: 24px 24px 26px; display: grid; gap: 8px; align-content: start; }
.integ h3 { font: 700 1.05rem/1.25 var(--f-display); font-stretch: 110%; letter-spacing: -.01em; }
.integ p { color: var(--muted); font-size: .93rem; }
.integ small { font: 500 .68rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 900px) { .integ { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .integ { grid-template-columns: 1fr; } }

/* msp */
.msp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px 64px; align-items: start; }
.msp-copy { display: grid; gap: 18px; }
.msp-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; }
.msp-list li { display: grid; gap: 3px; padding-left: 18px; border-left: 2px solid var(--line-strong); }
.msp-list b { font-weight: 600; }
.msp-list span { color: var(--muted); font-size: .94rem; }
.matrix { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.matrix-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.matrix-head b { font: 700 1rem var(--f-display); font-stretch: 108%; }
.matrix-head span { font: 500 .72rem var(--f-mono); color: var(--muted); }
.rt { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 560px; }
.rt th { font: 600 .64rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); text-align: center; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.rt th:first-child, .rt th:nth-child(2) { text-align: left; }
.rt td { padding: 11px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.rt tr:last-child td { border-bottom: 0; }
.rt td:first-child { text-align: left; font-weight: 600; white-space: nowrap; }
.rt td:nth-child(2) { text-align: left; color: var(--muted); font-size: .8rem; }
.yes { display: inline-block; width: 18px; height: 18px; border-radius: 5px; background: var(--ok-weak); position: relative; vertical-align: middle; }
.yes::after { content: ""; position: absolute; left: 5px; top: 4px; width: 7px; height: 4px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.ro { font: 500 .66rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.matrix-foot { margin-top: 14px; font-size: .8rem; color: var(--muted); }
@media (max-width: 960px) { .msp { grid-template-columns: 1fr; } }

/* security band */
.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--band-accent); }
.band .lede { color: var(--band-muted); }
.sec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--band-line); }
.sec-grid > div { padding: 26px 24px 30px 0; border-bottom: 1px solid var(--band-line); display: grid; gap: 8px; align-content: start; }
.sec-grid > div:not(:nth-child(4n + 1)) { padding-left: 24px; border-left: 1px solid var(--band-line); }
.sec-grid h3 { font: 700 1.02rem/1.25 var(--f-display); font-stretch: 110%; }
.sec-grid p { color: var(--band-muted); font-size: .92rem; }
@media (max-width: 980px) {
  .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-grid > div:not(:nth-child(4n + 1)) { padding-left: 0; border-left: 0; }
  .sec-grid > div:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--band-line); }
}
@media (max-width: 560px) {
  .sec-grid { grid-template-columns: 1fr; }
  .sec-grid > div:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--on-accent); font: 600 .68rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 6px; }
.plan h3 { font: 720 1.3rem/1.1 var(--f-display); font-stretch: 112%; letter-spacing: -.015em; }
.plan-desc { color: var(--muted); font-size: .93rem; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.price b { font: 760 2.4rem/1 var(--f-display); font-stretch: 105%; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: .9rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .93rem; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { transform: rotate(-45deg) translateY(-3px); }
.soon { font: 600 .6rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--warn); background: var(--warn-weak); padding: 3px 6px; border-radius: 4px; margin-left: 4px; white-space: nowrap; }
.plans-note { margin-top: 22px; font-size: .86rem; color: var(--muted); }
.calc { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; margin-bottom: 32px; }
.calc-in label { font-weight: 600; font-size: 1.02rem; }
.calc-row { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.calc-row input[type="range"] { flex: 1; min-width: 0; accent-color: var(--accent); height: 28px; }
.calc-row input[type="number"] { width: 104px; flex: none; font: 600 1.1rem/1.2 var(--f-mono); padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; outline: none; }
.calc-row input[type="number"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.calc-hint { margin-top: 10px; font-size: .86rem; color: var(--muted); }
.calc-out { display: grid; gap: 6px; justify-items: start; padding-left: 36px; border-left: 1px solid var(--line); min-width: 0; }
.calc-plan { font: 600 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); }
.calc-price { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.calc-price b { font: 760 2.6rem/1 var(--f-display); font-stretch: 105%; letter-spacing: -.03em; }
.calc-price span { color: var(--muted); font-size: .92rem; }
.calc-out p { font: 500 .78rem/1.4 var(--f-mono); color: var(--muted); }
@media (max-width: 760px) {
  .calc { grid-template-columns: 1fr; padding: 22px 20px; }
  .calc-out { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 32px 64px; align-items: start; }
.faq-side { display: grid; gap: 16px; }
.faq-side p { color: var(--muted); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 600 1.04rem/1.4 var(--f-body); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.qa p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.demo-copy { display: grid; gap: 18px; }
.demo-list { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.mailrow .mono { font-size: .95rem; font-weight: 500; user-select: all; overflow-wrap: anywhere; }
.mailrow small { color: var(--muted); font-size: .82rem; flex-basis: 100%; }
.btn-mini { font: 600 .78rem/1 var(--f-body); padding: 7px 10px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; margin-left: auto; }
.btn-mini:hover { border-color: var(--ink-2); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .86rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: 400 .98rem/1.4 var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 9px; padding: 11px 12px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.err { color: var(--bad); font-size: .84rem; }
.form-foot { font-size: .8rem; color: var(--muted); }
.demo-done { display: grid; gap: 14px; }
.demo-done h3 { font: 720 1.25rem var(--f-display); font-stretch: 110%; }
.demo-done p { color: var(--muted); font-size: .94rem; }
.demo-done textarea { font: 400 .84rem/1.5 var(--f-mono); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 9px; padding: 12px; width: 100%; resize: vertical; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copied { font-size: .84rem; color: var(--ok); }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px 48px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot-brand { display: grid; gap: 10px; max-width: 34ch; }
.foot-brand p { color: var(--muted); font-size: .9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .92rem; align-content: start; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font: 500 .74rem/1.4 var(--f-mono); color: var(--muted); }

/* sign-in modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(450px, 100%); max-height: calc(100% - 16px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px 26px; box-shadow: var(--shadow-lg); display: grid; gap: 18px; animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.modal-x:hover { background: var(--sunk); color: var(--ink); }
.modal-x svg { width: 18px; height: 18px; }
.modal-top { display: grid; gap: 10px; }
.modal-top svg { width: 38px; height: 38px; }
.modal-top h2 { font: 740 1.45rem/1.15 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; }
.modal-top p { color: var(--muted); font-size: .94rem; }
.org-form { display: grid; gap: 12px; }
.org-form label { font-size: .86rem; font-weight: 600; }
.org-field { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.org-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.org-field.bad { border-color: var(--bad); }
.org-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 12px; font: 500 1rem/1.3 var(--f-mono); color: var(--ink); outline: none; }
.org-suffix { display: flex; align-items: center; padding: 0 12px; color: var(--muted); font: 400 .86rem var(--f-mono); background: var(--sunk); border-left: 1px solid var(--line); white-space: nowrap; }
.dest { font: 400 .78rem/1.4 var(--f-mono); color: var(--muted); overflow-wrap: anywhere; }
.dest b { color: var(--ink-2); font-weight: 500; }
.last { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--bg); font-size: .9rem; }
.last:hover { border-color: var(--accent); }
.last small { display: block; font-size: .74rem; color: var(--muted); }
.last code { font-size: .84rem; overflow-wrap: anywhere; }
.last svg { width: 16px; height: 16px; flex: none; color: var(--accent-text); }
.modal-foot { font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* pages: the first section's heading is the page title */
h1.display.page-title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.04; }
.page > .sec:first-child { padding-top: clamp(48px, 7vw, 88px); }

/* home: the pages */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { grid-column: span 2; display: grid; gap: 10px; align-content: start; padding: 24px 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.tile:nth-child(4), .tile:nth-child(5) { grid-column: span 3; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile small { font: 500 .68rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); }
.tile h3 { font: 720 1.2rem/1.2 var(--f-display); font-stretch: 112%; letter-spacing: -.015em; }
.tile p { color: var(--muted); font-size: .94rem; }
.tile-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; font-size: .9rem; color: var(--accent-text); }
.tile-go svg { width: 15px; height: 15px; transition: transform .15s; }
.tile:hover .tile-go svg { transform: translateX(3px); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile, .tile:nth-child(4), .tile:nth-child(5) { grid-column: auto; } .tile:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* every page ends with the demo call to action (not the demo page itself) */
.cta-sec { padding-block: 0 clamp(48px, 6vw, 80px); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.band + .cta-sec { padding-top: clamp(16px, 3vw, 32px); }
.cta-copy { display: grid; gap: 10px; max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.band + .cta-sec .cta { border-top: 0; }

/* error page (404.html) */
.notfound { min-height: calc(100vh - 66px); display: grid; place-items: center; text-align: center; padding-block: 48px; }
.notfound .wrap { display: grid; gap: 18px; justify-items: center; }
.notfound .lede { margin-inline: auto; }
