/* 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;
}
/* Light is the default. Dark applies only when the reader opts in (header toggle → data-theme="dark"). */
:root[data-theme="dark"] {
    --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: 1920px; 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; }

/* ===== interactive homepage ===== */
.hero2 { padding: 30px 0 8px; }
.hero2-head h1 { font-size: 40px; line-height: 1.08; letter-spacing: -1px; max-width: 20ch; margin: 0 0 12px; }
.hero2-head .lead { max-width: 66ch; }
.big-num { color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .hero2-head h1 { font-size: 30px; } }

.hpicker { display: block; max-width: 980px; margin: 22px 0 8px; background: linear-gradient(180deg, var(--surface), var(--surface2)); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 18px; box-shadow: var(--shadow); }
.picker-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.picker-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.cap-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 550; color: var(--ink2); cursor: pointer; user-select: none; transition: border-color .12s, background .12s, color .12s; }
.cap-chip:hover { border-color: var(--accent); color: var(--accent); }
.cap-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.cap-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cap-chip.on::before { content: "✓"; font-weight: 800; }
.cap-chip.more { color: var(--muted); border-style: dashed; }
.cap-chip.more:hover { color: var(--accent); text-decoration: none; }

.match-panel { margin: 18px 0 6px; border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; min-height: 72px; background: var(--surface2); }
.match-empty { color: var(--muted); font-size: 14px; }
.mp-head { font-size: 14px; color: var(--ink2); margin-bottom: 10px; }
.mp-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line2); margin-bottom: 7px; }
.mp-row:last-child { margin-bottom: 0; }
.mp-row:hover { border-color: var(--accent); text-decoration: none; }
.mp-name { font-weight: 650; color: var(--ink); flex: 1 1 auto; }
.mp-cov { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface2); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.mp-cov.full { color: var(--yes); background: var(--yes-bg); }
.mp-svc { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.picker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.picker-or { color: var(--muted); font-size: 14px; }

.doors-title { margin-top: 34px; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 12px 0 6px; }
.door { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); transition: border-color .12s, transform .12s; }
.door:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.door-k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; }
.door-t { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.door-d { color: var(--muted); font-size: 14px; flex: 1 1 auto; }
.door-go { color: var(--accent); font-weight: 650; font-size: 14px; margin-top: 4px; }

.vs-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }
.vs-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 16px; font-weight: 600; color: var(--ink2); box-shadow: var(--shadow); }
.vs-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.vs-arrow { color: var(--accent); }
.tile.compact { padding: 11px 14px; }

/* theme toggle */
.theme-toggle { background: transparent; border: 1px solid var(--line); color: var(--ink2); border-radius: 7px; width: 32px; height: 32px; font-size: 15px; cursor: pointer; line-height: 1; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* compare: only-differences bar */
.diffbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 8px 0 14px; }

/* explanatory content — written for IT managers new to M365 */
.explainer { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; box-shadow: var(--shadow); }
.explainer h2 { margin-top: 0; }
.explainer p { max-width: 78ch; }
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 14px 0 4px; }
.gitem { background: var(--surface2); border: 1px solid var(--line2); border-radius: 8px; padding: 11px 14px; }
.gitem .t { font-weight: 650; }
.gitem .d { color: var(--muted); font-size: 13px; margin-top: 3px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; }
.steps li { position: relative; padding-left: 44px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; }
.steps li b { display: block; }
.steps li span { color: var(--muted); font-size: 14px; }
.guide h2 { border-top: 1px solid var(--line2); padding-top: 22px; }
.guide h2:first-of-type { border-top: 0; padding-top: 0; }
.guide h3 { font-size: 15px; margin: 18px 0 6px; }
.guide p, .guide li { max-width: 80ch; }
.guide ul { padding-left: 20px; }
.guide li { margin: 5px 0; }
.editions { width: 100%; margin: 10px 0; }
.callout { background: var(--warn-bg); border: 1px solid transparent; border-radius: 8px; padding: 12px 16px; margin: 16px 0; font-size: 14px; }
.callout b { color: var(--warn); }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 16px; max-width: 78ch; }

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