/* LicenseLens — an editorial reference for Microsoft 365 licensing.
   Warm stone paper, ink, one deep-teal accent; Bricolage Grotesque display + Inter text.
   Structure by rules & whitespace, not card clutter. Product-domain colours appear only as small dots/icons. */
:root {
    --paper: #f4f2ec; --surface: #ffffff; --surface2: #efece4;
    --ink: #1b1a17; --ink2: #4f4c45; --muted: #7a756b; --faint: #a9a498;
    --line: #e3ded3; --line2: #ece8de;
    --accent: #0c5b52; --accent2: #0e6e62; --accent-bg: #e3efeb; --accent-ink: #0a4c44;
    --on-accent: #ffffff; --link: var(--accent);   /* text ON accent fills / accent-coloured text */
    --yes: #2f8a53; --yes-bg: #e6f2e9; --no: #c3bdb0;
    --warn: #9a5a12; --warn-bg: #f4ebd8;
    --radius: 8px; --r-sm: 6px;
    --shadow: 0 1px 2px rgba(28,26,22,.05);
    --display: "Schibsted Grotesk", system-ui, sans-serif;
    --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
    --paper: #151412; --surface: #1c1b18; --surface2: #221f1a;
    --ink: #ece8df; --ink2: #c4bfb2; --muted: #8f897d; --faint: #6b665c;
    --line: #2b2823; --line2: #232019;
    --accent: #4fb3a5; --accent2: #63c2b4; --accent-bg: #12312d; --accent-ink: #6ecabb;
    --yes: #4caf74; --yes-bg: #15291d; --no: #4a463d; --warn: #cf9a4a; --warn-bg: #2c2413;
    --shadow: 0 1px 2px rgba(0,0,0,.35);
}
/* --- preview palettes (?palette=cobalt|forest|plum|coral) --- */
:root[data-palette="cobalt"] {
    --paper: #f5f6f9; --surface: #ffffff; --surface2: #eef0f5;
    --ink: #14161d; --ink2: #444b59; --muted: #69707f; --faint: #a0a6b3;
    --line: #e5e8ee; --line2: #eef0f5;
    --accent: #2f54eb; --accent2: #1f43d3; --accent-bg: #eaeefc; --accent-ink: #213fbf;
}
:root[data-palette="forest"] {
    --paper: #f7f8f2; --surface: #ffffff; --surface2: #edf0e8;
    --ink: #16180f; --ink2: #494d3f; --muted: #6e7261; --faint: #a3a693;
    --line: #e6e8db; --line2: #eef1e6;
    --accent: #146c43; --accent2: #12854f; --accent-bg: #e5f2ea; --accent-ink: #0e5a38;
}
:root[data-palette="plum"] {
    --paper: #f8f3f4; --surface: #ffffff; --surface2: #f1e9ec;
    --ink: #1c1519; --ink2: #52444a; --muted: #7a6a71; --faint: #ad9ca3;
    --line: #ece1e5; --line2: #f3eaed;
    --accent: #9a2860; --accent2: #b12f70; --accent-bg: #f8e7f0; --accent-ink: #841f52;
}
:root[data-palette="coral"] {
    --paper: #f6f4ef; --surface: #ffffff; --surface2: #efeae1;
    --ink: #1b1712; --ink2: #4f473d; --muted: #7c7264; --faint: #aca192;
    --line: #e7dfd2; --line2: #efe9df;
    --accent: #c1462b; --accent2: #d5502f; --accent-bg: #f8e7e0; --accent-ink: #a63920;
}
:root[data-palette="lime"] {
    --paper: #f8f8f1; --surface: #ffffff; --surface2: #eff0e4;
    --ink: #1a1c12; --ink2: #4c4f3d; --muted: #71755f; --faint: #a6a88f;
    --line: #e6e7d7; --line2: #eff0e4;
    --accent: #adc137; --accent2: #9cae2f; --accent-bg: #f0f3d9; --accent-ink: #5f7014;
    --on-accent: #21260a; --link: #5f7014;   /* dark text on the light-lime accent + darker links */
}
* { 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: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .85em; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent);
          backdrop-filter: saturate(1.15) blur(9px); border-bottom: 1px solid var(--line); }
.bar { max-width: 1440px; margin: 0 auto; padding: 13px 40px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.3px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand b { color: var(--link); font-weight: 700; }
.brand .mark { stroke: var(--link); fill: none; stroke-width: 1.7; stroke-linecap: round; }
.bar-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.bar-nav a { color: var(--ink2); font-weight: 500; font-size: 14.5px; padding: 4px 0; }
.bar-nav a:hover { color: var(--link); text-decoration: none; }
.bar-nav a.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.bar-nav .ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 15px; padding: 0; }
.bar-nav .ic:hover { color: var(--link); background: var(--surface2); }
.bar-nav .ic svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.page { min-height: 68vh; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 40px 40px 16px; }
.foot { border-top: 1px solid var(--line); margin-top: 44px; }
.foot .wrap { padding: 26px 40px 52px; }
.foot p { color: var(--muted); font-size: 13.5px; max-width: 82ch; margin: 6px 0; }
.foot .fine { color: var(--faint); font-size: 12.5px; }
.foot a { color: var(--ink2); }

/* ---- typography ---- */
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.05; letter-spacing: -1px; margin: 4px 0 14px; }
h2 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.4px; margin: 40px 0 14px; }
h2:first-child { margin-top: 0; }
h2 .count { font-family: var(--sans); color: var(--muted); font-weight: 400; font-size: 14px; letter-spacing: 0; }
h3 { font-family: var(--display); font-weight: 600; font-size: 15px; margin: 18px 0 8px; }
.lead { font-size: 18px; line-height: 1.5; color: var(--ink2); max-width: 64ch; }
.lead strong { color: var(--ink); }
p { margin: 10px 0; }
.hint { color: var(--muted); font-size: 14px; max-width: 82ch; }
.section-label { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
       border-radius: var(--r-sm); padding: 9px 17px; font: inherit; font-weight: 550; cursor: pointer; }
.btn:hover { background: var(--accent2); border-color: var(--accent2); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-sec { background: transparent; color: var(--ink2); border-color: var(--line); }
.btn-sec:hover { border-color: var(--link); color: var(--link); background: transparent; }
.btn-lg { padding: 12px 22px; font-size: 16px; }

/* ---- tables ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--line2); font-size: 14px; vertical-align: middle; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; 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: 550; }
.empty { color: var(--muted); padding: 22px 2px; }
.pager { display: flex; gap: 10px; margin: 20px 0; align-items: center; color: var(--muted); }
hr.soft { border: 0; border-top: 1px solid var(--line2); margin: 28px 0; }

/* ---- tags / badges / icons ---- */
.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 5px; background: var(--surface2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.fam { border-color: transparent; font-weight: 600; }
a.tag.fam:hover { text-decoration: none; filter: brightness(.97); }
.tag.retired { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tag.kind-add-on { color: var(--muted); }
.tag.miss { background: var(--warn-bg); color: var(--warn); border-color: transparent; margin: 1px 2px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.ficon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; flex: none;
         background: color-mix(in srgb, currentColor 15%, transparent); }
.ficon svg { display: block; }

/* ---- stats (inline) ---- */
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0; align-items: baseline; }
.stat b { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.4px; }
.stat span { color: var(--muted); font-size: 13px; margin-left: 6px; }

/* ---- tiles / grid ---- */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; }
.tile:hover { border-color: var(--link); text-decoration: none; }
.tile .name { font-weight: 600; color: var(--ink); }
.tile .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.tile b.big { font-size: 20px; color: var(--ink); font-family: var(--display); }
.tile.compact { padding: 12px 14px; }
.fam-tile { display: flex; align-items: center; gap: 12px; }

/* ---- families list (home) ---- */
.fam-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1px 22px; margin: 8px 0; }
.fam-list a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 6px; color: var(--ink2); font-size: 14px; }
.fam-list a:hover { background: var(--surface2); color: var(--ink); text-decoration: none; }
.fam-list .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.fam-list .nm { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fam-list .ct { color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ---- plan finder ---- */
.hpicker { margin: 22px 0 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.picker-label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--link); font-weight: 700; margin-bottom: 13px; }
.picker-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cap-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line);
            border-radius: 7px; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink2); cursor: pointer; user-select: none; transition: all .12s; }
.cap-chip:hover { border-color: var(--link); color: var(--link); }
.cap-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.cap-chip.on { background: var(--accent); border-color: var(--link); color: var(--on-accent); }
.cap-chip.on::before { content: "✓"; font-weight: 800; }
.cap-chip.more { color: var(--muted); border-style: dashed; }
.cap-chip.more:hover { color: var(--link); text-decoration: none; }
.picker-area { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px 14px 14px; min-width: 0; }
.picker-area legend { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 0 4px; }
.picker-area legend .ficon { width: 22px; height: 22px; border-radius: 6px; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 16px 0; }
.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(--link); }
.finder-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 14px 0 4px; }
.picker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.picker-or { color: var(--muted); font-size: 14px; }

.match-panel { margin: 18px 0 4px; border-top: 1px solid var(--line2); padding-top: 16px; min-height: 60px; }
.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: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line2); margin-bottom: 7px; }
.mp-row:last-child { margin-bottom: 0; }
.mp-row:hover { border-color: var(--link); background: var(--surface2); text-decoration: none; }
.mp-name { font-weight: 600; 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; }
.cov { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.cov-full { color: var(--yes); }
.row-full { background: var(--yes-bg) !important; }

/* ---- landing page ---- */
section { margin: 0 0 6px; }
.lp-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding: 26px 0 44px; }
.lp-copy h1 { margin: 0 0 16px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.03; max-width: 15ch; }
.lp-sub { font-size: 18px; line-height: 1.55; color: var(--ink2); max-width: 52ch; margin: 0 0 24px; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.lp-link { color: var(--ink2); font-weight: 500; }
.lp-link:hover { color: var(--link); }
.lp-trust { margin-top: 22px; color: var(--faint); font-size: 13px; }

/* hero visual: pick -> plan */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 24px; box-shadow: 0 12px 30px -18px rgba(28,26,22,.28); }
.demo-label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.demo-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-pill { font-size: 13.5px; padding: 7px 13px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); background: var(--paper); }
.demo-pill.on { background: var(--accent); border-color: var(--link); color: var(--on-accent); font-weight: 550; }
.demo-pill.on::before { content: "✓ "; }
.demo-arrow { text-align: center; color: var(--link); font-size: 22px; margin: 16px 0 14px; font-weight: 700; }
.demo-result { border: 1px solid var(--accent); background: var(--accent-bg); border-radius: 10px; padding: 14px 16px; }
.demo-plan { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); }
.demo-meta { color: var(--ink2); font-size: 13.5px; margin-top: 4px; }
.demo-cov { color: var(--yes); font-weight: 600; }

/* how it works */
.how { border-top: 1px solid var(--line2); padding-top: 30px; margin-top: 20px; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 20px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.step-t { font-family: var(--display); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.step-d { color: var(--muted); font-size: 14px; line-height: 1.5; }
.how-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }

@media (max-width: 820px) {
    .lp-hero { grid-template-columns: 1fr; gap: 28px; padding: 12px 0 32px; }
    .steps-row { grid-template-columns: 1fr; }
}

/* ---- hero + quick links ---- */
.hero .lead, .hero2 .lead { margin-top: 12px; }
.big-num { color: var(--link); font-variant-numeric: tabular-nums; }
.vs-links, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.vs-chip, .chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line);
                  border-radius: 7px; padding: 8px 14px; font-weight: 500; font-size: 13.5px; color: var(--ink2); }
.vs-chip:hover, a.chip:hover { border-color: var(--link); color: var(--link); text-decoration: none; }
.vs-arrow { color: var(--link); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.examples .lbl { color: var(--faint); font-size: 13px; }

/* ---- compare ---- */
.diffbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 8px 0 14px; }
.compare-table th.sku { min-width: 120px; }
.compare-table td.cell { text-align: center; }
.mark { font-weight: 700; text-align: center; }
.mark.yes { color: var(--yes); } .mark.no { color: var(--no); }
.cell.on { background: var(--yes-bg); }

/* ---- detail pages ---- */
.detail-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 4px; }
.detail-head h1 { margin: 0; }
.head-icon .ficon { width: 42px; height: 42px; border-radius: 10px; }
.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: 18px 0; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 18px; min-width: 130px; }
.metric .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.metric .v { font-family: var(--display); font-size: 22px; font-weight: 600; }
.cap-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 14px 0; }
.cap-area h3 { display: flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.cap-area h3 .ficon { width: 26px; height: 26px; border-radius: 6px; }
.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: 550; }
.cap-blurb { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
a.tag:hover { border-color: var(--link); text-decoration: none; }
details.raw { margin: 24px 0 8px; }
details.raw > summary { cursor: pointer; color: var(--link); font-weight: 550; padding: 8px 0; user-select: none; }
details.raw > summary:hover { text-decoration: underline; }

/* ---- 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; }
.filters label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.filters input, .filters select { padding: 8px 11px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--link); }

/* ---- guide / explainer ---- */
.explainer { border-left: 3px solid var(--accent); background: var(--surface); border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; }
.explainer h2 { margin-top: 0; }
.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: var(--r-sm); padding: 11px 14px; }
.gitem .t { font-weight: 600; }
.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; font-family: var(--display); 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: 24px; }
.guide h2:first-of-type { border-top: 0; padding-top: 0; }
.guide h3 { font-size: 16px; margin: 18px 0 6px; text-transform: none; letter-spacing: -.2px; color: var(--ink); }
.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-radius: var(--r-sm); padding: 12px 16px; margin: 14px 0; font-size: 14px; }
.callout b { color: var(--warn); }

@media (max-width: 720px) {
    .bar { padding: 11px 18px; gap: 14px; }
    .bar-nav { gap: 14px; }
    .wrap { padding: 26px 18px 12px; }
    .foot .wrap { padding: 22px 18px 44px; }
}
