/* Copyright VPNW.com 2026
 * SPDX-License-Identifier: Apache-2.0 */
/* VPN Works Lab live demo: embedded in vpnw.com or opened full screen.
 * The same look as the Scope demo: navy, teal and plain cards. */
:root {
  --navy: #1F3A5F;
  --navy-2: #2A4B75;
  --teal: #0E7C86;
  --teal-2: #0A646C;
  --teal-light: #E6F3F4;
  --ink: #262626;
  --gray: #5F6B7A;
  --gray-2: #8A95A3;
  --rule: #D5DDE5;
  --zebra: #F4F7F9;
  --off: #EEF1F4;
  --bg: #F7F9FB;
  --amber: #B8700F;
  --amber-light: #FBF1E1;
  --red: #C0392B;
  --red-light: #FBEAE8;
  --green: #2E7D4F;
  --green-light: #E7F4EC;
  --lost: #B9C3CE;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: var(--teal); }
button, select, input, textarea { font: inherit; }
[hidden] { display: none !important; }
code { font-family: var(--mono); font-size: .9em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- app bar (full screen only) ---- */
.appbar { background: #000; color: #fff; }
.appbar .wrap { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.brand { color: rgba(255,255,255,.9); font-family: "avenir next", avenir, sans-serif; font-weight: 200; font-size: 24px; text-decoration: none; white-space: nowrap; }
.brand:hover { color: #fff; }
.appbar .tag { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; background: rgba(255,255,255,.14); padding: 3px 9px; border-radius: 999px; }
.appbar .grow { flex: 1; }
.appbar .home { color: rgba(255,255,255,.85); font-size: 15px; text-decoration: none; }
.appbar .home:hover { color: #fff; text-decoration: underline; }
.embedded .appbar { display: none; }
.embedded body { background: transparent; }
.embedded .wrap { padding-left: 0; padding-right: 0; }
.embedded .intro { display: none; }
.embedded .appfoot { padding-bottom: 8px; }

/* ---- intro ---- */
.intro { padding: 22px 0 6px; }
.intro h1 { color: var(--navy); font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.intro .lead { margin: 0; max-width: 900px; color: #333; font-size: 17px; }
.status { margin: 10px 0 0; color: var(--gray); font-size: 14px; }
.status.bad { color: var(--red); font-weight: 650; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--rule); background: #fff; color: var(--navy);
  font-weight: 650; font-size: 15.5px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--gray-2); }
.btn:focus-visible, .steps button:focus-visible, .seg button:focus-visible, .tl-probe:focus-visible { outline: 3px solid rgba(14,124,134,.35); outline-offset: 2px; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-2); border-color: var(--teal-2); }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 16px 0 12px; }
.steps button {
  text-align: left; border: 1px solid var(--rule); background: #fff; border-radius: 10px; padding: 8px 10px;
  cursor: pointer; color: var(--navy); min-height: 58px; display: flex; flex-direction: column; gap: 2px;
}
.steps button:hover { border-color: var(--teal); }
.steps button b { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); }
.steps button span { font-size: 14px; line-height: 1.3; }
.steps button.on { border-color: var(--teal); background: var(--teal-light); box-shadow: 0 0 0 2px rgba(14,124,134,.2); }
.steps button.done b::after { content: " \2713"; color: var(--green); }

/* ---- stage ---- */
.stage { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 18px 20px 20px; }
.eyebrow { color: var(--teal); font-weight: 700; font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase; margin: 0 0 4px; }
.scene h2 { color: var(--navy); font-size: 24px; line-height: 1.2; margin: 0 0 6px; }
.scene h3 { color: var(--navy); font-size: 16.5px; margin: 0 0 8px; }
.scene h3 small { color: var(--gray); font-weight: 400; font-size: 13.5px; }
.scene-text { margin: 0 0 14px; max-width: 980px; color: #333; }
.scene-outro {
  margin: 16px 0 0; background: var(--teal-light); border: 1px solid #b9dde0; color: #0c4f55;
  border-radius: 10px; padding: 10px 14px; font-size: 15.5px;
}
.scene-outro.bad { background: var(--red-light); border-color: #eec2bd; color: #7d241b; }
.stage-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--off); }
.card { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.muted { color: var(--gray); font-size: 14.5px; }
.muted.small { font-size: 13px; }
.note { font-size: 15px; color: #333; margin: 12px 0 0; }

/* ---- step 1: the bench ---- */
.bench { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.ns { border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; background: var(--zebra); min-width: 0; position: relative; }
.ns h4 { margin: 0 0 2px; font-size: 13px; letter-spacing: .9px; text-transform: uppercase; color: var(--teal); }
.ns .who { font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 6px; }
.ns ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: #33404e; }
.ns li { margin: 2px 0; }
.ns .addr { font-family: var(--mono); font-size: 12px; color: var(--gray); overflow-wrap: anywhere; }
.ns.device { border-color: #b9dde0; background: var(--teal-light); }
.ns.vpn { border-color: #c8d3e2; background: #EEF2F8; }
.paths { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.path { border-radius: 10px; padding: 9px 12px; font-size: 14.5px; }
.path b { display: block; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 2px; }
.path.in { background: var(--teal-light); border: 1px solid #b9dde0; color: #0c4f55; }
.path.out { background: var(--red-light); border: 1px solid #eec2bd; color: #7d241b; }

/* ---- tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 14px; }
.tile { background: var(--zebra); border-radius: 10px; padding: 8px 12px; }
.tile .n { font-size: 22px; font-weight: 750; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.25; }
.tile .l { font-size: 13px; color: var(--gray); }
.tile.good .n { color: var(--green); }
.tile.bad .n { color: var(--red); }
.tile.warn .n { color: var(--amber); }
.verdict { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 15px; border-radius: 999px; padding: 4px 12px; margin: 0 0 10px; }
.verdict.pass { background: var(--green-light); color: var(--green); border: 1px solid #b7dcc4; }
.verdict.leak { background: var(--red-light); color: var(--red); border: 1px solid #eec2bd; }

/* ---- the timetable ---- */
.plan { position: relative; height: 54px; margin: 6px 0 4px; }
.plan .bar { position: absolute; left: 0; right: 0; top: 18px; height: 12px; border-radius: 6px; background: var(--off); }
.plan .fault { position: absolute; top: 14px; height: 20px; border-radius: 4px; background: repeating-linear-gradient(135deg, #f1d7aa 0 6px, #f8e7c8 6px 12px); border: 1px solid #e5c38a; }
.plan .tick { position: absolute; top: 0; font-size: 12px; color: var(--gray); transform: translateX(-50%); white-space: nowrap; }
.plan .tick.end { transform: translateX(-100%); }
.plan .tick.start { transform: none; }
.plan .lbl { position: absolute; top: 36px; font-size: 12.5px; color: var(--amber); font-weight: 650; transform: translateX(-50%); white-space: nowrap; }
.logs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.log { margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.log li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--off); }
.log li .t { font-family: var(--mono); font-size: 12.5px; color: var(--gray); text-align: right; }
.log li.warn .w { color: var(--red); font-weight: 650; }
.log li.step .w { color: var(--amber); font-weight: 650; }

/* ---- timelines ---- */
.timeline { width: 100%; height: auto; display: block; }
.timeline .row-label { font: 600 12px var(--sans); fill: var(--navy); }
.timeline .axis { font: 11px var(--sans); fill: var(--gray); }
.timeline .grid { stroke: var(--off); stroke-width: 1; }
.timeline .fault { fill: #f8e7c8; }
.timeline .fault-edge { stroke: #e5c38a; stroke-width: 1; }
.timeline .p-tunnel { fill: var(--teal); }
.timeline .p-leak { fill: var(--red); }
.timeline .p-lost { fill: var(--lost); }
.timeline .band-up { fill: var(--teal); opacity: .25; }
.timeline .band-down { fill: var(--gray-2); opacity: .25; }
.timeline .window { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 4 3; }
.timeline .mark { stroke: var(--navy-2); stroke-width: 1; stroke-dasharray: 2 2; }
.timeline .mark-text { font: 10.5px var(--sans); fill: var(--navy-2); }
.timeline .sel { fill: none; stroke: #000; stroke-width: 1.5; }
.tl-probe { cursor: pointer; }
.tl-wrap { border: 1px solid var(--rule); border-radius: 12px; padding: 8px 10px 4px; margin: 0 0 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--gray); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.sw.tunnel { background: var(--teal); }
.sw.leak { background: var(--red); }
.sw.lost { background: var(--lost); }
.sw.fault { background: #f8e7c8; border: 1px solid #e5c38a; }
.sw.up { background: var(--teal); opacity: .35; }
.sw.down { background: var(--gray-2); opacity: .35; }

/* ---- step 5: one probe ---- */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.inspect { margin-top: 12px; border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; background: var(--zebra); min-height: 92px; }
.inspect h4 { margin: 0 0 4px; color: var(--navy); font-size: 15px; }
.inspect ol { margin: 4px 0 0; padding-left: 20px; font-size: 14px; }
.inspect li { margin: 2px 0; }
.inspect .why { margin: 6px 0 0; font-size: 14px; font-weight: 650; }
.inspect .why.in { color: var(--teal-2); }
.inspect .why.out { color: var(--red); }
.inspect .why.none { color: var(--gray); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; margin: 4px 0; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
table.cmp th, table.cmp td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--off); vertical-align: top; }
table.cmp thead th { background: var(--navy); color: #fff; font-weight: 650; }
table.cmp thead th:first-child { border-top-left-radius: 8px; }
table.cmp thead th:last-child { border-top-right-radius: 8px; }
table.cmp tbody tr:nth-child(even) { background: var(--zebra); }
table.cmp td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.matrix-t { min-width: 760px; font-size: 13px; }
table.matrix-t td { white-space: nowrap; }
table.matrix-t td.pass { color: var(--green); font-weight: 650; }
table.matrix-t td.leak { color: var(--red); font-weight: 650; background: var(--red-light); }

/* ---- segmented switches ---- */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; margin: 0 0 12px; }
.seg button { border: 0; background: #fff; color: var(--navy); padding: 8px 14px; min-height: 42px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button.on { background: var(--navy); color: #fff; }

/* ---- below the stage ---- */
.section { margin: 22px 0 0; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 20px 20px 22px; }
.section h2 { color: var(--navy); font-size: 23px; margin: 0 0 6px; }
.section h3 { color: var(--navy); font-size: 17px; margin: 0 0 8px; }
.real { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
.real ul { margin: 0; padding-left: 20px; }
.real li { margin: 4px 0; }
.license { margin: 14px 0 0; font-size: 14px; color: #333; }
.appfoot { color: var(--gray); font-size: 13.5px; padding: 22px 0 36px; }
.noscript { background: var(--red-light); color: var(--red); border-radius: 10px; padding: 12px 14px; margin: 16px 0; font-weight: 600; }

/* ---- smaller screens ---- */
@media (max-width: 1060px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bench { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .real { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .embedded .wrap { padding-left: 0; padding-right: 0; }
  .intro h1 { font-size: 24px; }
  .intro .lead { font-size: 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps button { min-height: 50px; }
  .stage, .section { padding: 14px 14px 16px; }
  .scene h2 { font-size: 21px; }
  .bench, .paths, .logs, .pair { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg button { padding: 8px 10px; font-size: 13.5px; }
  .stage-foot .btn { flex: 1 1 0; min-width: 0; }
  .tl-wrap { padding: 6px 4px 2px; }
}
@media (max-width: 420px) {
  .appbar .wrap { gap: 10px; }
  .brand { font-size: 20px; }
  .appbar .tag { font-size: 10.5px; letter-spacing: .8px; padding: 2px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
