:root {
  --bg: #0b1120;
  --bg-soft: #111a2e;
  --card: #131d33;
  --border: #1f2c47;
  --text: #e6ecf7;
  --muted: #9fb0cc;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --ok: #34d399;
  --radius: 14px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 70% -10%, #16233f 0%, var(--bg) 55%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  display: inline-grid; place-items: center; color: #07101f; font-weight: 800; font-size: 16px;
}
.topbar .home { color: var(--muted); font-size: 14px; }

/* Hero */
.hero { padding: 56px 24px 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: #bcd4ff;
  border: 1px solid #284271; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,0.18); }
.hero h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.05; letter-spacing: -0.03em; margin: 22px 0 10px; }
.hero .tagline { font-size: clamp(19px, 2.6vw, 24px); color: var(--text); margin: 0 0 14px; font-weight: 500; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2f74e6; text-decoration: none; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: #2f3d5c; background: var(--bg-soft); text-decoration: none; }

/* Install command box (free scan) */
.install { max-width: 680px; margin: 0 auto 18px; text-align: left; }
.install-code {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 12px;
  background: #070c18; border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 14px 18px;
}
.install-code pre { flex: 1 1 30ch; min-width: 0; margin: 0; white-space: pre-wrap; }
.install-code .tok { white-space: nowrap; }
.install-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px; line-height: 1.6; color: var(--text);
}
.install-code .ln { display: inline-block; padding-left: 4ch; text-indent: -4ch; }
.install-code .ps { color: var(--muted); user-select: none; -webkit-user-select: none; }
.copy-btn {
  flex: none; margin-left: auto; font-family: var(--font); font-size: 13px; font-weight: 600; padding: 7px 14px; min-width: 76px;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px; cursor: pointer;
}
.copy-btn:hover { background: #2f74e6; }
.copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.install-alt { font-size: 13px; color: var(--muted); margin: 8px 0 0; text-align: center; }
.install + .cta { margin-top: 4px; }

/* Sections */
section { padding: 40px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h1, .section-head h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em; margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.feature .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: #bcd4ff;
  display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature .v2 { display: inline-block; margin-top: 10px; font-size: 12px; color: #c4b5fd;
  border: 1px solid #3b3266; background: rgba(139,92,246,0.12); border-radius: 999px; padding: 2px 10px; }

/* Stack */
.stack { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 760px; margin: 0 auto; }
.chip {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 16px; font-size: 14px; color: var(--text);
}
.chip b { color: var(--accent); font-weight: 600; }
.stack .note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* Notify */
.notify { text-align: center; }
.notify .card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 24px; max-width: 560px; margin: 0 auto;
}

/* Buy / country picker */
.buy { padding: 64px 24px; }
.buy-card { max-width: 480px; margin: 0 auto; padding: 34px 30px; }
.field-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.field-select {
  width: 100%; padding: 12px 14px; border-radius: 10px; margin-bottom: 18px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  font-size: 15px; font-family: var(--font);
}
.buy-submit { width: 100%; text-align: center; cursor: pointer; }
.price { margin: 4px 0 12px; }
.price-amount { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.price-period { color: var(--muted); font-size: 15px; margin-left: 4px; }

/* Legal pages */
.legal { padding: 48px 24px 64px; } /* keep .wrap's 24px sides; '48px 0' used to zero them and text touched the edges on phones */
.legal h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 19px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal .callout {
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 14px 18px; margin: 0 0 28px; color: var(--text); font-size: 15px;
}

/* Footer */
footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }

/* ============================================================
   License Auditor product page (license-auditor.html)
   Reuses the site tokens/components; adds the savings
   calculator, pricing tiers, and the free-vs-paid fence.
   ============================================================ */

/* Savings calculator */
.calc {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; max-width: 900px; margin: 0 auto;
}
.calc-controls { padding: 28px; border-right: 1px solid var(--border); }
.calc-controls h3 { margin: 0 0 22px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field { margin-bottom: 24px; }
.field:last-child { margin-bottom: 0; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.field-top label { font-size: 14px; font-weight: 600; color: var(--text); }
.field-val { font-size: 18px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.field-hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px;
  background: var(--border); outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  border: 3px solid var(--card); cursor: pointer;
}
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.segmented { display: flex; gap: 6px; }
.segmented button {
  flex: 1; font-family: var(--font); font-size: 13px; font-weight: 600; padding: 9px 4px;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  border-radius: 9px; cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: #bcd4ff; }
.calc-readout {
  padding: 28px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(160deg, rgba(52,211,153,.08), transparent 80%);
}
.readout-label { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.readout-big { font-size: clamp(40px, 6vw, 58px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--ok); margin: 2px 0; font-variant-numeric: tabular-nums; }
.readout-per { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.readout-divide { height: 1px; background: var(--border); margin: 0 0 18px; }
.readout-cost { display: flex; align-items: baseline; justify-content: space-between; }
.readout-cost .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.roi-pill { align-self: flex-start; margin-top: 16px; font-size: 13px; font-weight: 700; background: var(--ok); color: #06251a; padding: 6px 13px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.scan-cta { margin-top: 20px; align-self: flex-start; }
.scan-sub { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* Pricing tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; }
.tier.featured { border: 2px solid var(--accent); }
.tier .flag { position: absolute; top: -11px; left: 22px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.tier h3 { margin: 0 0 2px; font-size: 16px; }
.tier .seats { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.tier .price { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tier .price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.tier .price-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 18px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.tier li { font-size: 13.5px; color: var(--muted); padding-left: 24px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.tier .btn { margin-top: auto; text-align: center; }
.pricing-foot { text-align: center; color: var(--muted); font-size: 13px; margin: 24px 0 0; }
.pricing-links { text-align: center; font-size: 14px; margin: 10px 0 0; color: var(--muted); }

/* Free vs paid fence */
.fence { max-width: 900px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fence-head, .frow, .fence-foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; }
/* Grid items default to min-width:auto, so a long header label ("Paid · from $149/yr") can force
   its column wider than the same column in the body rows. min-width:0 lets every row resolve to
   the same 1.6fr/1fr/1fr split, keeping each heading over its own column at any width. */
.fence-head > div, .frow > div, .fence-foot > div { min-width: 0; }
.fence-head > div { padding: 20px; }
.fence-head .col-free, .fence-head .col-paid { border-left: 1px solid var(--border); }
.fence-head .col-paid { background: var(--accent-soft); }
.fence-head .kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.fence-head .col-paid .kicker { color: #bcd4ff; }
.fence-head .name { font-size: 18px; font-weight: 700; margin: 0; }
.fence-head .meta { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.fence-head .lead-cell { align-self: end; }
.fence-head .lead-cell h3 { margin: 0; font-size: 18px; }
.frow { border-top: 1px solid var(--border); }
.frow > div { padding: 12px 20px; font-size: 13.5px; display: flex; align-items: center; }
.frow .feat { color: var(--muted); }
.frow .cell { justify-content: center; border-left: 1px solid var(--border); }
.frow .cell.paidcol { background: rgba(59,130,246,.06); }
.mk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.mk.yes { color: var(--ok); }
.mk.no { color: var(--muted); }
.mk.partial { color: #fbbf24; }
.tick { width: 13px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-bottom: 3px; flex: none; }
.dash { width: 12px; height: 2px; background: currentColor; opacity: .7; flex: none; border-radius: 2px; }
.fence-foot { border-top: 1px solid var(--border); }
.fence-foot > div { padding: 18px 20px; }
.fence-foot .cell { justify-content: center; border-left: 1px solid var(--border); }
.fence-foot .cell.paidcol { background: var(--accent-soft); }
.fence-foot .note { font-size: 12.5px; color: var(--muted); align-self: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 0; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-bottom: 3px; transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.faq details p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.faq details p:last-child { margin-bottom: 16px; }

/* Cross-link card (each site points at the other product) */
.crosslink { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.crosslink .kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.crosslink h2 { font-size: 22px; margin: 0 0 8px; letter-spacing: -0.01em; }
.crosslink p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.crosslink .btn { flex: none; }
.crosslink-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; }
.mkt-badge { display: inline-block; line-height: 0; }

@media (max-width: 820px) {
  .calc { grid-template-columns: 1fr; }
  .calc-controls { border-right: none; border-bottom: 1px solid var(--border); }
  .tiers { grid-template-columns: 1fr; }
}

/* Phone width: the fence stays a real table, just tighter. */
@media (max-width: 720px) {
  .fence-head, .frow { grid-template-columns: 1.35fr 1fr 1fr; }
  .fence-head > div { padding: 14px 10px; }
  .fence-head .kicker { font-size: 10px; }
  .fence-head .name { font-size: 15px; }
  .fence-head .meta { display: none; }
  .fence-head .lead-cell h3 { font-size: 15px; }
  .frow > div { padding: 10px; font-size: 12.5px; }
  .frow .cell { text-align: center; }
  .mk { flex-direction: column; gap: 4px; font-size: 11.5px; text-align: center; }
  .fence-foot { grid-template-columns: 1fr 1fr; }
  .fence-foot > div { padding: 12px; }
  .fence-foot .note { grid-column: 1 / -1; border-bottom: 1px solid var(--border); padding: 14px 12px; }
  .fence-foot .cell { border-left: none; }
  .fence-foot .cell.paidcol { border-left: 1px solid var(--border); }
  .fence-foot .btn { width: 100%; padding: 10px 14px; font-size: 13.5px; text-align: center; }
  .crosslink { flex-direction: column; align-items: flex-start; }
  .crosslink .btn { width: 100%; text-align: center; }
  .crosslink-actions { width: 100%; }
}

/* Support section — three plain columns, stacking on narrow screens. */
.support { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.support h3 { margin: 0 0 8px; font-size: 15px; }
.support p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .support { grid-template-columns: 1fr; gap: 22px; } }

/* Company mark (the Lee Crowe Software crow) beside the copyright line in every footer.
   Done in CSS so the generated legal pages pick it up without template changes. The product
   mark in the header stays the ServerBridge "S" — the crow is the company, not the product. */
footer .wrap > span:first-child::before {
  content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 8px;
  vertical-align: -5px;
  background: url("/brand/lcs-crow-on-dark-tight.svg") center / contain no-repeat;
}

/* Guides (/guides/): long-form pages on the .legal layout, plus tables and code. */
.guide { max-width: 780px; }
.guide table { border-collapse: collapse; width: 100%; margin: 14px 0 22px; font-size: 14px; }
@media (max-width: 640px) { .guide table { display: block; overflow-x: auto; white-space: nowrap; } }
.guide th, .guide td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; color: var(--muted); }
.guide th { color: var(--text); }
.guide pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.guide code { font-size: 13.5px; }
.guide-list { list-style: none; padding: 0; }
.guide-list li { margin: 0 0 22px; }
.guide-list a { font-size: 18px; font-weight: 600; }

/* Hosted (Marketplace) box under the downloadable tiers. */
.crosslink.hosted { margin: 28px 0 8px; }
.crosslink.hosted p a { white-space: nowrap; }

/* "Wrong product?" note on the ServerBridge Pro buy and download pages (websites#51): people
   looking for the License Auditor were landing on the $99 migration checkout. */
.product-note { max-width: 480px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.product-note a { font-weight: 600; }
.hero .product-note { max-width: none; margin: 0 0 18px; }
