/* Copyright VPNW.com 2026
 * SPDX-License-Identifier: Apache-2.0 */
/* VPN Works Exit live demo: embedded in vpnw.com or opened full screen.
 * The same look as the Agent's and Scope's demos: 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;
  --flat: #C9D3DE;
  --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; }
.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, .chips button:focus-visible, table.cmp tr.pick: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); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }

/* ---- 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;
}
.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; }

/* ---- 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); }

/* ---- 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.cmp td.empty { color: var(--gray-2); font-style: italic; }
table.cmp .mono { font-family: var(--mono); font-size: 12.8px; }

/* ---- 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(2, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
.real ul { margin: 0; padding-left: 20px; }
.real li { margin: 4px 0; }
.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; }

/* ---- the network ---- */
.net { display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr) 46px minmax(0, 1fr); gap: 0; align-items: stretch; margin: 4px 0 14px; }
.net .col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.net .col h4 { margin: 0; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); }
.net .gap { display: flex; align-items: center; justify-content: center; color: var(--gray-2); font-size: 22px; }
.node { border: 1px solid var(--rule); border-radius: 10px; padding: 7px 10px; background: #fff; min-width: 0; transition: border-color .2s, background .2s, box-shadow .2s; }
.node b { color: var(--navy); font-size: 14.5px; }
.node .sub { display: block; font-size: 12.5px; color: var(--gray); }
.node .addr { font-family: var(--mono); font-size: 11.5px; color: #3a4755; overflow-wrap: anywhere; }
.node.on { border-color: var(--teal); background: var(--teal-light); box-shadow: 0 0 0 2px rgba(14,124,134,.18); }
.node.bad { border-color: #eed1cc; background: #FDF7F6; }
.node.bad.on { box-shadow: 0 0 0 2px rgba(192,57,43,.2); }
.node.down { border-style: dashed; background: var(--off); }
.node.down b::after { content: " (down)"; color: var(--red); font-weight: 650; }
.node .flag { float: right; font-size: 11px; font-weight: 700; letter-spacing: .8px; color: var(--teal-2); background: var(--teal-light); border-radius: 6px; padding: 0 6px; }

/* ---- the replayed log ---- */
.log-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.log-head h3 { margin: 0; }
.log { display: flex; flex-direction: column; gap: 8px; }
.entry { border: 1px solid var(--rule); border-radius: 10px; padding: 8px 12px; background: #fff; min-width: 0; animation: arrive .35s ease-out; }
@keyframes arrive { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.entry .head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: baseline; }
.entry .who { font-weight: 700; color: var(--navy); }
.entry .when { font-family: var(--mono); font-size: 12px; color: var(--gray-2); margin-right: 6px; font-weight: 400; }
.entry .dest { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.entry .badge { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 1px 9px; white-space: nowrap; }
.badge.reached { color: var(--green); background: var(--green-light); }
.badge.refused { color: var(--red); background: var(--red-light); }
.badge.event { color: var(--amber); background: var(--amber-light); }
.entry ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; color: #333; }
.entry li { margin: 1px 0; overflow-wrap: anywhere; }
.entry li code { font-size: 12.5px; }
.entry.kill { border-color: #edd3a8; background: var(--amber-light); }
.entry .switch { color: #7a4a09; }

/* ---- side by side records ---- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pair pre, pre.code { margin: 0; background: #0F1B2A; color: #cfd9e4; border-radius: 10px; padding: 10px 12px; font: 11.5px/1.5 var(--mono); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; }
.pair h4 { margin: 0 0 6px; font-size: 13px; color: var(--navy); }

/* ---- the panel ---- */
.ask { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 14px; }
.ask textarea { width: 100%; min-height: 250px; resize: vertical; border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; font: 12.5px/1.5 var(--mono); color: var(--ink); background: #fff; white-space: pre; overflow-wrap: normal; }
.ask textarea:focus, .ask input:focus { outline: 3px solid rgba(14,124,134,.25); border-color: var(--teal); }
.ask .side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ask .row { display: flex; gap: 8px; }
.ask input { flex: 1; min-width: 0; min-height: 42px; border: 1px solid var(--rule); border-radius: 10px; padding: 0 12px; font: 14px var(--mono); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--rule); background: var(--zebra); border-radius: 99px; padding: 4px 10px; font: 12.5px var(--mono); color: var(--navy); cursor: pointer; }
.chips button:hover { border-color: var(--teal); }
.verdict { border-radius: 10px; padding: 10px 12px; font-size: 14.5px; border: 1px solid var(--rule); background: var(--zebra); overflow-wrap: anywhere; }
.verdict.allow { border-color: #b7dcc4; background: var(--green-light); }
.verdict.deny { border-color: #eed1cc; background: var(--red-light); }
.verdict b { display: block; font-size: 16px; }
.verdict.allow b { color: var(--green); }
.verdict.deny b { color: var(--red); }

table.cmp tr.pick { cursor: pointer; }
table.cmp tr.pick:hover td { background: var(--teal-light); }
table.cmp tr.sel td { background: var(--teal-light); }

/* ---- smaller screens ---- */
@media (max-width: 1060px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ask, .pair { 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; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .net { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .net .gap { transform: rotate(90deg); font-size: 18px; height: 18px; }
  .real { grid-template-columns: minmax(0, 1fr); }
  .seg button { padding: 8px 10px; font-size: 13.5px; }
  .stage-foot .btn { flex: 1 1 0; min-width: 0; }
  /* Tables become one card per row, each cell with its column's name. */
  table.cmp.stack { min-width: 0; }
  table.cmp.stack thead { display: none; }
  table.cmp.stack tr { display: block; padding: 8px 2px; border-bottom: 1px solid var(--off); }
  table.cmp.stack td { display: block; border: 0; padding: 2px 8px; overflow-wrap: anywhere; }
  table.cmp.stack td:first-child { font-weight: 650; color: var(--navy); }
  table.cmp.stack td[data-label]::before { content: attr(data-label) ": "; font: 650 13px/1.5 var(--sans); color: var(--gray); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
