: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 0; }
.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 0 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; }

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

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

@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; }
}
