/* LicenseLens — a clean, dense "reference atlas" for Microsoft 365 licensing.
   Light ink-on-paper, one indigo accent, mono reserved for real identifiers (GUIDs/String IDs). */
:root {
    --paper: #f5f6f8; --surface: #ffffff; --surface2: #fbfcfd;
    --ink: #1b2230; --ink2: #3b4557; --muted: #6a7385; --faint: #97a0b0;
    --line: #e4e7ec; --line2: #eef0f4;
    --accent: #2f43d6; --accent-ink: #1f2ea8; --accent-bg: #eef1fe;
    --yes: #17914e; --yes-bg: #e7f4ec; --no: #b9c0cc;
    --warn: #9a6a00; --warn-bg: #fbf1dc;
    --radius: 9px; --shadow: 0 1px 2px rgba(20,28,45,.05), 0 1px 1px rgba(20,28,45,.04);
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #10141c; --surface: #171c26; --surface2: #1b212d;
        --ink: #e7ebf2; --ink2: #c2c9d6; --muted: #8b95a6; --faint: #6b7488;
        --line: #262d3a; --line2: #202634;
        --accent: #8aa0ff; --accent-ink: #b6c4ff; --accent-bg: #1b2340;
        --yes: #46c07e; --yes-bg: #13291d; --no: #495468;
        --warn: #d8a740; --warn-bg: #2c2413;
        --shadow: 0 1px 2px rgba(0,0,0,.3);
    }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .86em; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 22px; flex-wrap: wrap; }
.brand { font-weight: 750; font-size: 19px; color: var(--ink); letter-spacing: -.3px; }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
.hsearch { flex: 1 1 320px; }
.hsearch input { width: 100%; padding: 9px 14px; background: var(--surface2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.hsearch input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-bg); }
.site-header nav { display: flex; gap: 18px; }
.site-header nav a { color: var(--ink2); font-weight: 550; }
.site-header nav a:hover { color: var(--accent); text-decoration: none; }

main.wrap { padding-top: 24px; padding-bottom: 40px; }
h1 { font-size: 26px; margin: 6px 0 8px; letter-spacing: -.5px; font-weight: 750; }
h2 { font-size: 17px; margin: 30px 0 12px; font-weight: 700; letter-spacing: -.2px; }
h2 .count { color: var(--muted); font-weight: 400; font-size: 14px; }
.lead { color: var(--ink2); font-size: 16px; max-width: 70ch; }
p { margin: 10px 0; }

/* hero */
.hero { padding: 26px 0 10px; border-bottom: 1px solid var(--line2); }
.hero h1 { font-size: 34px; max-width: 18ch; line-height: 1.12; }
.hero .lead { margin-top: 10px; }
.hero-search { margin: 20px 0 8px; }
.hero-search input { width: 100%; max-width: 620px; padding: 14px 18px; font-size: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.hero-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.examples .lbl { color: var(--faint); font-size: 13px; }

/* stats */
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; flex: 1 1 150px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 26px; font-weight: 750; letter-spacing: -.5px; }
.stat span { color: var(--muted); font-size: 13px; }

/* chips / tags */
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--ink2); }
a.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.fam { background: var(--accent-bg); border-color: transparent; color: var(--accent-ink); font-weight: 600; }
.tag.retired { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tag.kind-add-on { color: var(--muted); }

/* cards + grid */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card.scroll { overflow-x: auto; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--accent); text-decoration: none; }
.tile .name { font-weight: 650; color: var(--ink); }
.tile .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.tile b.big { font-size: 20px; }

/* tables */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line2); font-size: 14px; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
tbody tr:hover { background: var(--surface2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-name a { font-weight: 600; }

/* included/excluded matrix cells */
.mark { font-weight: 700; text-align: center; }
.mark.yes { color: var(--yes); }
.mark.no { color: var(--no); }
.compare-table th.sku { min-width: 120px; }
.compare-table td.cell { text-align: center; }
.cell.on { background: var(--yes-bg); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; box-shadow: var(--shadow); }
.filters label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.filters input, .filters select { padding: 8px 11px; background: var(--surface2); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; font: inherit; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--accent); }

.btn { display: inline-block; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 7px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn-sec { background: var(--surface); color: var(--ink2); border-color: var(--line); }
.btn-sec:hover { border-color: var(--accent); color: var(--accent); filter: none; }

/* detail header */
.detail-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; margin-bottom: 6px; }
.idrow { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 13px; margin: 8px 0 4px; }
.idrow .k { color: var(--faint); }
.metrics { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; box-shadow: var(--shadow); }
.metric .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.metric .v { font-size: 20px; font-weight: 700; }

.pager { display: flex; gap: 10px; margin: 20px 0; align-items: center; color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; }
hr.soft { border: 0; border-top: 1px solid var(--line2); margin: 26px 0; }

/* hero CTA */
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 20px 0 6px; }
.btn-lg { padding: 13px 24px; font-size: 16px; }

/* plan finder checklist */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 16px 0; }
.pick-area { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px 14px 14px; box-shadow: var(--shadow); min-width: 0; }
.pick-area legend { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 0 4px; }
.pick { display: flex; align-items: flex-start; gap: 8px; padding: 5px 6px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.pick:hover { background: var(--surface2); }
.pick.on { background: var(--accent-bg); color: var(--accent-ink); font-weight: 600; }
.pick input { margin-top: 3px; flex: none; accent-color: var(--accent); }
.finder-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 14px 0 4px; }

/* coverage */
.cov { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.cov-full { color: var(--yes); }
.row-full { background: var(--yes-bg); }
.row-full:hover { background: var(--yes-bg); }
.tag.miss { background: var(--warn-bg); color: var(--warn); border-color: transparent; margin: 1px 2px; }

/* capability lists on plan detail */
.cap-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 12px 0; }
.cap-area h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 4px 0 8px; font-weight: 600; }
.cap-list { list-style: none; padding: 0; margin: 0; }
.cap-list li { padding: 7px 0; border-bottom: 1px solid var(--line2); }
.cap-list li:last-child { border-bottom: 0; }
.cap-list a { font-weight: 600; }
.cap-blurb { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
a.tag { text-decoration: none; }
a.tag:hover { border-color: var(--accent); color: var(--accent); }

/* collapsible raw services */
details.raw { margin: 24px 0 8px; }
details.raw > summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 8px 0; user-select: none; }
details.raw > summary:hover { text-decoration: underline; }
details.raw[open] > summary { margin-bottom: 10px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; padding: 22px 0 44px; margin-top: 20px; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
    .hero h1 { font-size: 27px; }
    th, td { padding: 9px 10px; }
}
