/* openlawsvpn.com — shared stylesheet */
:root {
  --bg:          #0d1117;
  --sidebar-bg:  #010409;
  --surface:     #161b22;
  --border:      #21262d;
  --border-mid:  #30363d;
  --text:        #e6edf3;
  --muted:       #7d8590;
  --subtle:      #484f58;
  --accent:      #f78166;
  --green:       #3fb950;
  --blue:        #58a6ff;
  --blue-dim:    #1f3c5a;
  --code-bg:     #161b22;
  --sidebar-w:   240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

code, pre {
  font-family: ui-monospace, 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ── Docs layout ── */
.docs-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 0 32px;
}

.sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-logo a {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
  text-decoration: none;
  color: var(--text);
}
.sidebar-logo .wm-pipe { color: var(--accent); font-weight: 300; }
.sidebar-logo .wm-aws  { color: var(--muted); }

.sidebar-section {
  padding: 0 20px;
  margin-bottom: 20px;
}
.sidebar-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 6px 0 6px 8px;
  display: block;
}
.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sidebar-nav a {
  display: block;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}
.sidebar-nav a:hover {
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.sidebar-nav a.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
}
.sidebar-nav a.active::before {
  content: '';
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
  vertical-align: middle;
  margin-bottom: 1px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 20px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--subtle);
}
.sidebar-footer a { color: var(--subtle); }
.sidebar-footer a:hover { color: var(--muted); text-decoration: none; }

/* ── Main content ── */
.docs-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  max-width: 900px;
  padding: 48px 56px 80px;
}

/* ── Page header ── */
.page-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.page-header h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.page-header .lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}

/* ── Homepage: mobile-first entry point ── */
.home .docs-main { max-width: 1060px; padding-top: 68px; }
.home .page-header { padding-bottom: 42px; margin-bottom: 34px; }
.home .page-header h1 {
  max-width: 620px;
  margin: 10px 0 14px;
  font-size: clamp(36px, 5vw, 57px);
  line-height: 1.08;
  letter-spacing: -1.7px;
}
.home .page-header .lead { max-width: 600px; font-size: 17px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(63, 185, 80, .12);
}
.mobile-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
  margin-top: 24px;
}
.mobile-app-card {
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 17px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 11px;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.mobile-app-card:hover {
  text-decoration: none;
  background: #1a2029;
  border-color: var(--blue);
  transform: translateY(-2px);
}
.mobile-app-card.android:hover { border-color: var(--green); }
.platform-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 10px;
  color: var(--blue);
  background: rgba(88, 166, 255, .1);
}
.platform-icon svg { width: 100%; height: 100%; display: block; }
.platform-icon-lg { width: 58px; height: 58px; padding: 5px; border-radius: 12px; }
.platform-icon.ios { color: var(--blue); background: rgba(88, 166, 255, .1); }
.platform-icon.android { color: var(--green); background: rgba(63, 185, 80, .1); }
.platform-icon.linux { color: var(--accent); background: rgba(247, 129, 102, .1); }
.platform-icon.macos { color: #aeb8c3; background: rgba(174, 184, 195, .1); }
.platform-icon.relay { color: #c690ff; background: rgba(198, 144, 255, .1); }
.app-card-copy { display: grid; line-height: 1.2; }
.app-card-copy small { color: var(--muted); font-size: 11px; }
.app-card-copy strong { margin-top: 2px; color: var(--text); font-size: 17px; letter-spacing: -.2px; }
.app-card-copy span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.app-card-arrow { margin-left: auto; align-self: flex-start; color: var(--muted); font-size: 17px; line-height: 1; }
.desktop-path { margin-top: 15px; color: var(--muted); font-size: 13px; }
.desktop-path a { font-weight: 600; }

.quick-path {
  margin: 0 0 52px;
  padding: 27px 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.section-intro h2,
.section-heading-row h2 {
  margin-top: 6px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.4px;
}
.quick-path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin-top: 24px;
}
.quick-path-steps li { display: flex; gap: 12px; }
.step-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  color: var(--accent);
}
.step-icon svg { width: 100%; height: 100%; }
.quick-path-steps strong { display: block; color: var(--text); font-size: 13.5px; line-height: 1.35; }
.quick-path-steps p { margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.quick-path-steps code { font-size: 11px; }

.platform-overview { margin-bottom: 54px; }
.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 16px;
}
.section-heading-row .text-link { flex: 0 0 auto; font-size: 13px; font-weight: 600; }
.home .doc-section h2 { margin: 0; padding: 0; border: 0; }
.home .product-grid { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
.platform-card { min-height: 220px; }
.platform-card .platform-icon { margin-bottom: 16px; }
.platform-card .card-tag { color: var(--muted); }
.platform-card:hover .card-tag { color: var(--green); }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--subtle); }
.breadcrumb a:hover { color: var(--muted); text-decoration: none; }
.breadcrumb span { color: var(--border-mid); }

/* ── Status badge ── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}
.status-badge .dot {
  color: var(--green);
  animation: pulse 2s ease-in-out infinite;
  font-size: 9px;
}

/* ── Sections ── */
.doc-section {
  margin-bottom: 48px;
}
.doc-section h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.doc-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
}
.doc-section p {
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.65;
}
.doc-section p strong { color: var(--text); }

/* ── Product cards (overview page) ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, background 0.15s;
  color: inherit;
}
.product-card:hover {
  border-color: var(--accent);
  background: #1a1f27;
  text-decoration: none;
}
.product-card .icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}
.product-card h3 {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 6px;
}
.product-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.product-card .card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  font-family: ui-monospace, monospace;
  color: var(--green);
}
.product-card .card-tag.soon {
  color: var(--subtle);
}

/* ── Callout / note boxes ── */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 20px 0;
}
.callout p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.55; }
.callout p + p { margin-top: 8px; }
.callout.info { border-left-color: var(--blue); }
.callout.success { border-left-color: var(--green); }

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s;
  color: inherit;
}
.feature-card:hover { border-color: var(--border-mid); text-decoration: none; }
.feature-card .icon { font-size: 20px; margin-bottom: 10px; display: block; }
.feature-card h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.feature-card p  { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-primary   { background: var(--accent); color: #0d1117; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-mid); }
.btn-lg { font-size: 15px; padding: 11px 22px; }
.btn-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ── Code ── */
.doc-section pre,
pre.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}
.doc-section code,
code.inline {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
  color: var(--green);
}
pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

/* ── Steps ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}
.step {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--accent);
  margin-top: 1px;
  font-family: ui-monospace, monospace;
}
.step-body h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.step-body p  { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }
.step-body code {
  font-size: 12px; color: var(--green);
  background: var(--code-bg); border: 1px solid var(--border);
  padding: 1px 5px; border-radius: 3px;
}

/* ── Install tabs ── */
.tabs input[type="radio"] { display: none; }
.tab-labels {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.tab-labels label {
  padding: 8px 16px; cursor: pointer;
  color: var(--muted); font-size: 13.5px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s;
}
.tab-labels label:hover { color: var(--text); }
#tab-binary:checked  ~ .tab-labels label[for="tab-binary"],
#tab-macos:checked   ~ .tab-labels label[for="tab-macos"],
#tab-fedora:checked  ~ .tab-labels label[for="tab-fedora"],
#tab-ios:checked     ~ .tab-labels label[for="tab-ios"],
#tab-android:checked ~ .tab-labels label[for="tab-android"],
#tab-source:checked  ~ .tab-labels label[for="tab-source"] {
  color: var(--text); border-bottom-color: var(--accent);
}
.tab-panel { display: none; }
#tab-binary:checked  ~ .tab-panels #panel-binary,
#tab-macos:checked   ~ .tab-panels #panel-macos,
#tab-fedora:checked  ~ .tab-panels #panel-fedora,
#tab-ios:checked     ~ .tab-panels #panel-ios,
#tab-android:checked ~ .tab-panels #panel-android,
#tab-source:checked  ~ .tab-panels #panel-source { display: block; }

.tab-panel pre {
  background: var(--code-bg);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 18px 20px; margin: 0; overflow-x: auto;
  font-size: 13.5px; color: var(--text); line-height: 1.55;
}
.tab-panel pre code { background: none; border: none; padding: 0; color: inherit; }

.tab-content {
  background: var(--code-bg);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 20px;
}
.tab-note {
  font-size: 12.5px; color: var(--muted);
  font-family: ui-monospace, monospace;
  margin-top: 8px;
}
.tab-note::before { content: '# '; color: var(--subtle); }

.sub-tabs input[type="radio"] { display: none; }
.sub-tab-labels {
  display: flex;
  border-bottom: 1px solid var(--border); margin-bottom: 0;
}
.sub-tab-labels label {
  padding: 5px 12px; cursor: pointer;
  color: var(--muted); font-size: 12.5px;
  font-family: ui-monospace, monospace;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
#ftab-root:checked     ~ .sub-tab-labels label[for="ftab-root"],
#ftab-rootless:checked ~ .sub-tab-labels label[for="ftab-rootless"],
#ftab-gui:checked      ~ .sub-tab-labels label[for="ftab-gui"],
#mtab-arm64:checked    ~ .sub-tab-labels label[for="mtab-arm64"],
#mtab-amd64:checked    ~ .sub-tab-labels label[for="mtab-amd64"],
#btab-amd64:checked    ~ .sub-tab-labels label[for="btab-amd64"],
#btab-arm64:checked    ~ .sub-tab-labels label[for="btab-arm64"],
#btab-ppc64le:checked  ~ .sub-tab-labels label[for="btab-ppc64le"] {
  color: var(--text); border-bottom-color: var(--accent);
}
.sub-tab-panel { display: none; padding: 14px 0 4px; }
#ftab-root:checked     ~ .sub-tab-panels #fpanel-root,
#ftab-rootless:checked ~ .sub-tab-panels #fpanel-rootless,
#ftab-gui:checked      ~ .sub-tab-panels #fpanel-gui,
#mtab-arm64:checked    ~ .sub-tab-panels #mpanel-arm64,
#mtab-amd64:checked    ~ .sub-tab-panels #mpanel-amd64,
#btab-amd64:checked    ~ .sub-tab-panels #bpanel-amd64,
#btab-arm64:checked    ~ .sub-tab-panels #bpanel-arm64,
#btab-ppc64le:checked  ~ .sub-tab-panels #bpanel-ppc64le { display: block; }

.copr-status {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.copr-status img { display: block; border-radius: 3px; }

/* ── Diagram / video ── */
.diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram img { display: block; width: 100%; height: auto; }

.video-wrap {
  border-radius: 10px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  margin: 20px 0;
}
.video-wrap video { display: block; width: 100%; }

.video-transcript {
  margin-top: 16px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
.video-transcript h3 {
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.video-transcript ol { padding-left: 18px; }
.video-transcript li { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 6px; }
.video-transcript code {
  font-size: 12px; color: var(--green); background: var(--code-bg);
  padding: 1px 4px; border-radius: 3px;
}

/* ── Demo callout ── */
.demo-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 20px 0;
}
.demo-box h3 { font-size: 14px; font-weight: 650; color: var(--text); margin-bottom: 10px; }
.demo-box p  { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 8px; }
.demo-box p:last-child { margin-bottom: 0; }
.demo-box code {
  font-size: 13px; color: var(--green); background: var(--code-bg);
  padding: 1px 5px; border-radius: 3px;
}

/* ── Footer ── */
.docs-footer {
  margin-left: var(--sidebar-w);
  padding: 20px 56px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--subtle);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.docs-footer a { color: var(--subtle); }
.docs-footer a:hover { color: var(--muted); text-decoration: none; }

/* ── Privacy ── */
.content h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.effective  { color: var(--muted); font-size: 13px; margin-bottom: 36px; }
.content h2 {
  font-size: 17px; font-weight: 650; color: var(--text);
  margin: 32px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.content p  { color: var(--muted); margin-bottom: 12px; line-height: 1.65; }
.content p strong { color: var(--text); }
.content ul { list-style: none; margin-bottom: 12px; }
.content ul li { color: var(--muted); padding: 3px 0 3px 18px; position: relative; font-size: 14px; }
.content ul li::before { content: "·"; position: absolute; left: 5px; color: var(--accent); font-weight: 700; }

/* ── Responsive: collapse sidebar ── */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 14px; left: 16px;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  .mobile-nav-toggle { display: block; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0); }

  .docs-main {
    margin-left: 0;
    padding: 56px 20px 60px;
  }
  .docs-footer {
    margin-left: 0;
    padding: 16px 20px;
  }
  .page-header h1 { font-size: 24px; }
  .product-grid, .feature-grid { grid-template-columns: 1fr; }
  .btn-cta { gap: 8px; }
  .tab-labels { overflow-x: auto; flex-wrap: nowrap; }
  .tab-labels label { white-space: nowrap; }
  .diagram svg { font-size: 10px; }

  .home .docs-main { padding-top: 74px; }
  .home .page-header { padding-bottom: 34px; }
  .home .page-header h1 { font-size: 38px; letter-spacing: -1.2px; }
  .mobile-apps { grid-template-columns: 1fr; }
  .mobile-app-card { min-height: 96px; }
  .quick-path { padding: 23px 20px; margin-bottom: 40px; }
  .quick-path-steps { grid-template-columns: 1fr; gap: 18px; }
  .section-heading-row { display: block; }
  .section-heading-row .text-link { display: inline-block; margin-top: 12px; }
  .home .product-grid { grid-template-columns: 1fr; }
  .platform-card { min-height: 0; }
}
