/* MeterSight marketing site, v9
   Identity: switchgear gray, slate ink, MeterSight blue, copper for billing.
   Type: Archivo (semi-expanded, nameplate headings) + IBM Plex Sans (body, tabular figures).
   WCAG 2.2 AA targets throughout. */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --blue: #2F6FE4;
  --blue-700: #1D55C2;
  --blue-800: #163F91;
  --blue-50: #EAF1FD;
  --blue-100: #D6E4FB;

  --ink: #1B2430;
  --ink-2: #2B3944;
  --muted: #52616C;
  --muted-2: #74818B;
  --line: #CBD2D6;
  --line-2: #E0E4E6;
  --bg: #FFFFFF;
  --bg-2: #EEF0EF;      /* switchgear gray */
  --bg-3: #E3E7E7;
  --slate-900: #0F1B24;
  --slate-800: #18272F;
  --slate-700: #22343E;
  --on-dark: #DCE3E7;
  --on-dark-2: #A7B4BC;

  --copper: #A85F22;
  --copper-700: #8A4A14;
  --copper-50: #F7EEE5;
  --copper-100: #EFDCC8;

  --green: #1C7F52;
  --green-50: #E5F4EC;
  --amber: #9A5B00;
  --amber-50: #FFF3DC;
  --red: #C0352F;
  --red-50: #FBEAE9;

  --bronze: #8A4A14;
  --bronze-50: #F7EEE5;
  --silver: #45576A;
  --silver-50: #ECEFF3;
  --gold: #745400;
  --gold-50: #FCF3D6;
  --gold-400: #D9AE33;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  --container: 1200px;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Archivo", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-800); }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--display); font-stretch: 112%; font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.1rem); line-height: 1.02; letter-spacing: -0.025em; font-weight: 750; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.005em; line-height: 1.25; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25em; }
strong { font-weight: 600; }
small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-3); padding: .1em .4em; border-radius: 3px; }
pre { background: var(--bg-3) !important; border-radius: var(--radius) !important; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.container-narrow { max-width: 820px; }
@media (max-width: 640px) { .container { padding-left: 16px; padding-right: 16px; } }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.section-alt { background: var(--bg-2); }
.section-dark { background: var(--slate-900); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark a { color: #9DC0FF; }
.section-dark a:hover { color: #C8DBFF; }

/* Eyebrows: quiet, sentence case, used sparingly */
.eyebrow { display: block; font-size: .95rem; font-weight: 600; color: var(--copper-700); margin-bottom: 10px; letter-spacing: 0; }
.section-dark .eyebrow { color: #E2A86F; }
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.28rem); color: var(--muted); line-height: 1.55; max-width: 62ch; }
.section-dark .lead { color: var(--on-dark-2); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn svg { display: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-copper { background: var(--copper); color: #fff; }
.btn-copper:hover { background: var(--copper-700); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-3); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--bg-2); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: #fff; border-bottom: 1px solid var(--line-2); }
.site-header .container { display: flex; align-items: center; height: 100%; gap: 16px; max-width: 1320px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-stretch: 110%; font-weight: 650; font-size: 1.32rem; letter-spacing: -0.01em; min-height: 44px; flex-shrink: 0; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 7px; background: var(--blue); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 24px; height: 24px; }
.brand span { line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 11px; border-radius: var(--radius); min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.site-nav a:hover { background: var(--bg-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--blue-700); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.site-nav a.nav-strong { color: var(--copper-700); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 8px; }
.header-cta .btn { white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-mobile-cta { display: none; }
.nav-resources { position: relative; }
.nav-resource-label { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; min-height: 44px; padding: 10px 11px; border-radius: var(--radius); color: var(--ink-2); font-size: .95rem; font-weight: 500; white-space: nowrap; }
.nav-resource-label::-webkit-details-marker { display: none; }
.nav-resource-label::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-resources[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.nav-resource-label:hover, .nav-resources[open] > summary { background: var(--bg-2); }
.nav-resource-label.is-current { color: var(--blue-700); }
.nav-resource-links { position: absolute; top: calc(100% + 10px); right: 0; width: 280px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(15,27,36,.12); }
.nav-resource-links a { display: flex; width: 100%; white-space: nowrap; }
@media (max-width: 1220px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: grid; }
  .site-header.nav-open .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; position: absolute; left: 0; right: 0; top: var(--header-h); padding: 12px 16px 16px; margin: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 40px rgba(15,27,36,.12); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .site-header.nav-open .site-nav a, .nav-resource-label { font-size: 1.02rem; padding: 12px 14px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); }
  .nav-resource-label { justify-content: space-between; }
  .nav-resource-links { position: static; width: auto; margin: 4px 8px 8px; padding: 4px; box-shadow: none; background: var(--bg-2); border: 0; }
  .nav-resource-links a { white-space: normal; }
  .site-header.nav-open .site-nav .nav-mobile-cta { display: flex; margin-top: 10px; gap: 10px; }
  .nav-mobile-cta a { flex: 1; justify-content: center; }
  .site-header.nav-open .nav-mobile-cta .btn-primary { color: #fff; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--bg-2); color: var(--ink); padding: clamp(48px, 6vw, 88px) 0 0; border-bottom: 1px solid var(--line-2); overflow: hidden; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
@media (max-width: 960px) { .hero-top { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { margin: 0; max-width: 14ch; }
.hero .lead { color: var(--ink-2); margin: 0 0 26px; max-width: 54ch; }
.hero-demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: clamp(28px, 4vw, 44px); padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.hero-demo-bar > span { font-weight: 600; margin-right: 6px; }
.btn-demo { background: var(--bg-2); color: var(--ink); border-color: var(--line); min-height: 44px; padding: 0 16px; }
.btn-demo:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-demo .swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
@media (max-width: 520px) { .hero-demo-bar > span { width: 100%; } .btn-demo { flex: 1; } }
.hero-stage { margin-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.stage-item { margin: 0; min-width: 0; }
.stage-item figcaption { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .93rem; color: var(--muted); }
.stage-item figcaption .swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.stage-invoice .inv { max-width: none; box-shadow: 0 24px 48px -24px rgba(15,27,36,.3); }
.stage-screen-wrap .browser { box-shadow: 0 24px 48px -24px rgba(15,27,36,.3); }
@media (max-width: 960px) {
  .hero-stage { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .stage-screen-wrap { order: -1; }
  .stage-invoice .inv { max-width: 520px; }
}

/* ---------- Energy invoice (mirrors the MeterSight Bronze PDF) ---------- */
.inv { --inv-teal: #173C4C; --inv-fill: #F4F7F9; --inv-line: #CEDAE0; --inv-mint: #E1F1E9; background: #fff; color: var(--inv-teal); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(15,27,36,.35); padding: 24px 22px 16px; font-family: Helvetica, Arial, var(--font); font-size: .78rem; line-height: 1.35; max-width: 470px; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.inv-head img { height: 30px; width: auto; }
.inv-title { text-align: right; }
.inv-title strong { display: block; font-size: 1.2rem; letter-spacing: 0; color: var(--inv-teal); }
.inv-title span { color: #6B7785; font-size: .72rem; }
.inv-meta { margin: 18px 0 14px; }
.inv-meta strong { display: block; font-size: .82rem; }
.inv-meta span { display: block; margin-top: 4px; font-size: .82rem; }
.inv-meta small { display: block; color: #6B7785; font-size: .66rem; margin-top: 2px; }
.inv-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; background: var(--inv-fill); border: 1px solid var(--inv-line); }
.inv-info > div { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 6px; padding: 9px 10px; border-bottom: 1px solid var(--inv-line); }
.inv-info > div:nth-last-child(-n+2) { border-bottom: 0; }
.inv-info dt { font-weight: 700; color: #4C6170; font-size: .68rem; }
.inv-info dd { margin: 0; }
.inv-h { font-weight: 700; font-size: .95rem; margin: 16px 0 8px; }
.inv-table { width: 100%; border: 1px solid var(--inv-line); }
.inv-table th, .inv-table td { padding: 8px 8px; text-align: left; font-size: .72rem; }
.inv-table thead th { background: var(--inv-teal); color: #fff; font-weight: 700; }
.inv-table tbody th, .inv-table tbody td { background: var(--inv-fill); }
.inv-table tbody th { font-weight: 700; }
.inv-table .r { text-align: right; }
.inv-totals { margin: 8px 0 0 auto; width: 56%; }
.inv-totals > div { display: flex; justify-content: space-between; padding: 6px 10px; font-size: .78rem; }
.inv-totals dd { margin: 0; }
.inv-totals .total { background: var(--inv-mint); font-weight: 700; font-size: .95rem; padding: 9px 10px; margin-top: 2px; }
.inv-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--inv-line); margin-top: 18px; padding-top: 8px; color: #6B7785; font-size: .64rem; }
@media (max-width: 520px) { .inv { padding: 18px 14px 12px; } .inv .u { display: none; } .inv-totals { width: 100%; } .inv-info > div { grid-template-columns: minmax(0,1fr); gap: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .inv.animate .inv-info, .inv.animate .inv-table, .inv.animate .inv-totals > div { opacity: 0; transform: translateY(6px); animation: inv-in .45s var(--ease) forwards; }
  .inv.animate .inv-info { animation-delay: .25s; }
  .inv.animate .inv-table { animation-delay: .55s; }
  .inv.animate .inv-totals > div:nth-child(1) { animation-delay: .85s; }
  .inv.animate .inv-totals > div:nth-child(2) { animation-delay: 1s; }
  .inv.animate .inv-totals > div:nth-child(3) { animation-delay: 1.25s; }
}
@keyframes inv-in { to { opacity: 1; transform: none; } }
.page-hero-split .inv { margin-left: auto; }

/* Tier bands on the homepage */
.tier-band .eyebrow { font-size: 1rem; }
.tier-band.silver .eyebrow { color: var(--silver); }
.tier-band.gold .eyebrow { color: var(--gold-400); }
.section-dark .btn-ghost { color: #fff; }
.section-dark .figure.dark { border-color: var(--slate-700); }
.section-dark .figure figcaption { background: var(--slate-800); color: var(--on-dark-2); border-top-color: var(--slate-700); }
.tier-btns { margin: 18px 0 22px; }
.tier .tier-btns .btn { margin: 0; }

/* Demo cards */
.demo-card { display: flex !important; flex-direction: column; }
.demo-card h3 { margin-top: 14px; }
.demo-url { margin-top: auto; padding-top: 10px; font-size: .88rem; color: var(--muted); }

/* Brand image */
.brand img { height: 36px; width: auto; display: block; }
.footer-brand .brand img { height: 46px; }

/* Legacy dark hero helpers (kept for any page still using them) */
.hero-inner { max-width: 900px; }
.hero-visual { margin-top: clamp(40px, 6vw, 72px); }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.trust-strip { background: var(--slate-900); color: var(--on-dark-2); padding: 20px 0; }
.trust-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-size: .92rem; font-weight: 500; }
.trust-strip li { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip svg { width: 16px; height: 16px; color: #7FD3A6; }

/* Browser frame */
.browser { border-radius: var(--radius-lg); background: var(--slate-800); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 60px -24px rgba(15,27,36,.35); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--slate-800); }
.browser-bar i { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.2); display: block; }
.browser-bar .url { margin-left: 10px; flex: 1; height: 26px; border-radius: 4px; background: rgba(255,255,255,.07); color: var(--on-dark-2); font-size: .8rem; display: flex; align-items: center; padding: 0 12px; gap: 8px; }
.browser-bar .url svg { width: 12px; height: 12px; }
.browser img { width: 100%; }

/* ---------- Questions answered ---------- */
.qa { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line); }
.qa li { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.qa li:nth-child(odd) { padding-right: 32px; }
.qa li:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.qa .q { font-family: var(--display); font-stretch: 108%; font-weight: 650; font-size: 1.18rem; line-height: 1.3; color: var(--ink); }
.qa .a { grid-column: 1 / -1; color: var(--muted); font-size: .98rem; }
@media (max-width: 760px) { .qa { grid-template-columns: minmax(0, 1fr); } .qa li:nth-child(odd), .qa li:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; } }

/* ---------- Meter → rate → invoice flow (a true sequence) ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.flow li { position: relative; padding: 28px 28px 30px; }
.flow li + li { border-left: 1px solid var(--line); }
.flow .step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--copper-50); color: var(--copper-700); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.flow .fig { font-family: var(--display); font-stretch: 105%; font-weight: 750; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); margin: 2px 0 10px; }
.flow .fig small { font-size: .5em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.flow h3 { margin: 0 0 6px; font-size: 1.1rem; }
.flow p { color: var(--muted); margin: 0; font-size: .98rem; }
.flow li:last-child { background: var(--copper-50); }
.flow li:last-child .fig { color: var(--copper-700); }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Property types ---------- */
.ptypes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); }
.ptypes li { padding: 20px 24px 22px 0; border-bottom: 1px solid var(--line); }
.ptypes h3 { font-size: 1.08rem; margin: 0 0 4px; }
.ptypes h3 a { color: var(--ink); text-decoration: none; }
.ptypes h3 a:hover { color: var(--blue-700); text-decoration: underline; }
.ptypes p { color: var(--muted); margin: 0; font-size: .96rem; }
@media (max-width: 860px) { .ptypes { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .ptypes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card h3 { color: var(--blue-700); }
a.card:hover h3 { text-decoration: underline; }
a.card:hover { border-color: var(--ink-2); }
.card h3 { margin-top: 12px; }
.card > h3:first-child { margin-top: 0; }
.card p { color: var(--muted); }
.icon-box { width: 40px; height: 40px; border-radius: var(--radius); background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; }
.icon-box:empty { display: none; }
.icon-box svg { width: 22px; height: 22px; }
.section-dark .card { background: var(--slate-800); border-color: var(--slate-700); }
.section-dark .card p { color: var(--on-dark-2); }
.section-dark .icon-box { background: rgba(47,111,228,.2); color: #9DC0FF; }
.section-alt .card { border-color: var(--line); }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 20px; }
.bento > .card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.bento .card-body { padding: 26px; }
.bento .card-media { margin-top: auto; background: var(--bg-2); border-top: 1px solid var(--line-2); }
.bento .card-media img { width: 100%; }
.bento .card-media.dark { background: #0B1729; }
.bento .card-media.pad { padding: 20px 20px 0; }
.bento .card-media.pad img { border-radius: var(--radius) var(--radius) 0 0; border: 1px solid var(--line); border-bottom: 0; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0,1fr)); } .span-2, .span-3, .span-4, .span-6 { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .span-2, .span-3, .span-4, .span-6 { grid-column: span 1; } }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--ink-2); }
.feature-list li svg { width: 20px; height: 20px; color: var(--green); margin-top: 3px; }
.feature-list li:not(:has(svg))::before { content: ""; width: 8px; height: 8px; margin: 9px 0 0 6px; border-radius: 2px; background: var(--green); }
.feature-list li.no svg { color: var(--muted-2); }
.feature-list li.no:not(:has(svg))::before { background: var(--line); }
.feature-list li.no { color: var(--muted); }
.feature-list.tight { gap: 6px; font-size: .97rem; }
.section-dark .feature-list li { color: var(--on-dark); }
.section-dark .feature-list li svg { color: #7FD3A6; }

.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split.reverse > :first-child { order: 0; } }
.figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.figure.dark { background: #0B1729; }
.figure figcaption { padding: 10px 16px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line-2); background: var(--bg-2); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); font-weight: 600; font-size: .95rem; }
.step h3 { margin-top: 12px; }
.step p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--slate-700); border: 1px solid var(--slate-700); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: 24px; background: var(--slate-900); }
.stat .n { font-family: var(--display); font-stretch: 105%; font-size: 2.1rem; font-weight: 750; letter-spacing: -0.02em; color: #fff; line-height: 1.1; }
.stat .l { color: var(--on-dark-2); font-size: .95rem; margin-top: 6px; }
@media (max-width: 480px) { .stats { grid-template-columns: minmax(0, 1fr) !important; } }

.logo-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.logo-row span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.logo-row.left { justify-content: flex-start; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pill-blue { background: var(--blue-50); color: var(--blue-700); }
.pill-green { background: var(--green-50); color: var(--green); }
.pill-amber { background: var(--amber-50); color: var(--amber); }
.pill-gray { background: var(--bg-3); color: var(--ink-2); }
.pill-bronze { background: var(--bronze-50); color: var(--bronze); }
.pill-silver { background: var(--silver-50); color: var(--silver); }
.pill-gold { background: var(--gold-50); color: var(--gold); }

/* ---------- Packages ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.tier { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; }
.tier.featured { border: 2px solid var(--copper); padding: 29px 25px; }
.tier.featured-gold { border: 2px solid var(--gold-400); padding: 29px 25px; }
.tier .tier-badge { position: absolute; top: -13px; left: 24px; }
.tier .tier-name { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 0; }
.tier .swatch { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.swatch.bronze { background: linear-gradient(135deg, #D9975A, #8A4A14); }
.swatch.silver { background: linear-gradient(135deg, #D6DEE9, #7C8CA3); }
.swatch.gold { background: linear-gradient(135deg, #FFDE7A, #C7960E); }
.tier .tier-tag { color: var(--muted); margin-top: 10px; min-height: 3.2em; }
.tier .price { margin: 14px 0 4px; font-family: var(--display); font-stretch: 108%; font-size: 1.3rem; font-weight: 700; }
.tier .price small { display: block; font-family: var(--font); font-size: .88rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
.tier .btn { margin: 18px 0 22px; }
.tier .feature-list { font-size: .97rem; }
.tier .includes { font-size: .92rem; font-weight: 600; color: var(--ink-2); margin: 0 0 10px; }

.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.compare table { min-width: 760px; }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; font-size: .96rem; }
.compare thead th { position: sticky; top: 0; background: #fff; font-weight: 600; border-bottom: 1px solid var(--line); z-index: 1; }
.compare th:first-child { width: 40%; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 20%; }
.compare tbody th { font-weight: 500; color: var(--ink); }
.compare tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: .84rem; margin-top: 2px; }
.compare .group td, .compare .group th { background: var(--bg-2); font-weight: 600; font-size: .9rem; color: var(--ink-2); padding: 10px 18px; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .yes svg { width: 20px; height: 20px; color: var(--green); margin: 0 auto; }
.compare .no svg { width: 20px; height: 20px; color: #C3CCD3; margin: 0 auto; }
.compare .yes, .compare .no { font-size: .92rem; color: var(--ink-2); }
.compare .featured-col { background: #FCF8EC; }
.compare thead .featured-col { box-shadow: inset 0 3px 0 var(--gold-400); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 12px; color: var(--ink-2); }
.page-hero.bronze { background: var(--copper-50); border-bottom-color: var(--copper-100); }
.page-hero.silver { background: #EDF0F4; }
.page-hero.gold { background: #FBF5E2; }
.page-hero.dark { background: var(--slate-900); color: var(--on-dark); border-bottom: 0; }
.page-hero.dark h1 { color: #fff; }
.page-hero.dark .lead { color: var(--on-dark-2); }
.page-hero.dark .eyebrow { color: #E2A86F; }
.page-hero-split { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .page-hero-split { grid-template-columns: minmax(0, 1fr); } }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); }
.page-hero.dark .breadcrumb a { color: var(--on-dark-2); }

.spec-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: .96rem; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 38%; font-weight: 500; color: var(--muted); background: var(--bg-2); }

.data-table { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: #fff; }
.data-table table { min-width: 640px; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: .95rem; vertical-align: top; }
.data-table thead th { background: var(--bg-2); font-weight: 600; }
.data-table tr:last-child td { border-bottom: 0; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0 4px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--slate-900); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px 48px; align-items: center; }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--copper); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: var(--on-dark-2); max-width: 56ch; margin: 0; }
.cta-band .btn-group { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr); } .cta-band .btn-group { justify-content: flex-start; } }

/* ---------- Callouts ---------- */
.callout { border-left: 4px solid var(--blue); background: var(--blue-50); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }
.callout.copper { border-left-color: var(--copper); background: var(--copper-50); }
.note-box { border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 20px; color: var(--muted); font-size: .95rem; background: var(--bg-2); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .97rem; }
.field .hint { display: block; color: var(--muted); font-size: .88rem; margin-top: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #B9C2C8; border-radius: var(--radius); font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,111,228,.18); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field .req { color: var(--red); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; color: var(--ink-2); }
.checkbox input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.form-note { font-size: .9rem; color: var(--muted); }
.honey { position: absolute; left: -10000px; }
.form-error { padding: 14px 16px; color: var(--ink); background: var(--red-50); border: 1px solid var(--red); border-radius: var(--radius-sm); }
.form button:disabled { cursor: wait; opacity: .65; }

/* ---------- Blended-rate calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-in { padding: 28px; }
.calc-out { padding: 28px; background: var(--bg-2); border-left: 1px solid var(--line); }
@media (max-width: 900px) { .calc-out { border-left: 0; border-top: 1px solid var(--line); } }
.calc fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.calc legend { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 1.08rem; margin-bottom: 12px; padding: 0; }
.calc .field input { font-variant-numeric: tabular-nums; }
.calc .input-affix { position: relative; }
.calc .input-affix span { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .95rem; pointer-events: none; }
.calc .input-affix .pre { left: 14px; }
.calc .input-affix .post { right: 14px; }
.calc .input-affix input.has-pre { padding-left: 28px; }
.calc .input-affix input.has-post { padding-right: 52px; }
.tenant-rows { display: grid; gap: 10px; }
.tenant-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 44px; gap: 10px; align-items: end; }
.tenant-row label { font-size: .85rem; }
.tenant-row .rm { width: 44px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; color: var(--muted); font-size: 1.2rem; }
.tenant-row .rm:hover { color: var(--red); border-color: var(--red); }
.calc .rate-out { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.calc .rate-out .v { font-family: var(--display); font-stretch: 105%; font-weight: 750; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); letter-spacing: -0.02em; color: var(--copper-700); }
.calc .rate-out .k { font-weight: 600; }
.calc table { margin-top: 6px; }
.calc th, .calc td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: .97rem; }
.calc td.num, .calc th.num { text-align: right; }
.calc tfoot th, .calc tfoot td { font-weight: 600; border-bottom: 0; }
.calc .calc-note { font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.18rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: .35em; }
.prose .meta { color: var(--muted); font-size: .92rem; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; background: var(--bg-2); margin-bottom: 32px; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; columns: 2; column-gap: 24px; font-size: .97rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: var(--on-dark-2); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: var(--on-dark-2); font-size: .95rem; max-width: 36ch; margin-top: 14px; }
.site-footer .footer-heading { color: #fff; font-family: var(--font); font-stretch: 100%; font-size: .95rem; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer ul a { color: var(--on-dark-2); text-decoration: none; font-size: .96rem; display: inline-block; padding: 4px 0; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--slate-700); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .88rem; color: var(--on-dark-2); }
.footer-bottom a { color: var(--on-dark-2); }

/* ---------- Reveal: retired. Content is always visible; the hero invoice is the only load animation. ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tier-color-bronze { color: var(--bronze); } .tier-color-silver { color: var(--silver); } .tier-color-gold { color: var(--gold); }
.kicker-list { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 18px 0 0; color: var(--ink-2); font-size: .95rem; }
.kicker-list li { display: inline-flex; align-items: center; gap: 8px; }
.kicker-list li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--copper); }
.kicker-list svg { display: none; }
.img-shadow { border-radius: var(--radius); border: 1px solid var(--line); }
.h3 { font-size: 1.22rem; }
.text-lg { font-size: 1.1rem; }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-page .code { font-family: var(--display); font-size: 5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--copper); line-height: 1; }
.inline-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; margin-left: 2px; }

/* Guides */
.energy-example dl { margin: 20px 0; }
.energy-example dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.energy-example dt { color: var(--muted); }
.energy-example dd { margin: 0; font-weight: 600; }
.energy-example .energy-total { border: 0; padding-top: 20px; }
.energy-example .energy-total dd { color: var(--copper-700); font-size: 1.4rem; }
.guide-hero h1 { max-width: 22ch; }
.guide-note { margin-top: 22px; color: var(--muted); font-size: .95rem; }
.guide-list { margin-bottom: 0; }
.guide-list li + li { margin-top: 12px; }
.guide-steps { list-style: none; padding: 0; margin: 0; }
.guide-step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--copper-50); color: var(--copper-700); font-size: .95rem; font-weight: 600; }
.guide-card h3 { margin-top: 0; }
.usage-example { min-width: 0; }
.usage-example table { min-width: 0; }
.usage-example caption { text-align: left; padding: 16px; font-weight: 600; background: var(--copper-50); }
.usage-example tbody th { font-weight: 500; }
.usage-example td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.usage-example tfoot { background: var(--bg-2); font-weight: 600; }
.connection-path { padding: 14px 16px; background: var(--bg-2); border-radius: var(--radius-sm); font-weight: 500; }

/* Demo strip */
.demo-strip { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 18px; font-size: .95rem; color: var(--muted); }
.demo-strip a { font-weight: 600; }
.hero-demos { margin-top: 28px; }

@media (max-width: 640px) {
  .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.35; padding-top: 12px; padding-bottom: 12px; }
  .spec-table table { table-layout: fixed; }
  .spec-table th, .spec-table td { overflow-wrap: anywhere; }
  .guide-hero h1 { font-size: clamp(2rem, 1rem + 5vw, 2.8rem); }
  .usage-example th, .usage-example td { padding: 12px 10px; font-size: .88rem; }
}

/* Invoice on small screens: stack header, keep the stamp in flow */
@media (max-width: 520px) {
}
.inline-icon { display: none; }

/* Header demo menu */
.nav-demos { position: relative; }
.nav-demos > summary { list-style: none; gap: 8px; }
.nav-demos > summary::-webkit-details-marker { display: none; }
.nav-demos > summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-demos[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.nav-demo-links { position: absolute; top: calc(100% + 10px); right: 0; width: 300px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(15,27,36,.14); z-index: 5; }
.nav-demo-links a { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.nav-demo-links a:hover { background: var(--bg-2); }
.nav-demo-links .swatch { width: 12px; height: 12px; border-radius: 3px; margin-top: 4px; display: block; }
.nav-demo-links strong { display: block; font-weight: 600; }
.nav-demo-links small { display: block; color: var(--muted); font-size: .86rem; }
.nav-demo-links a.all { display: block; border-top: 1px solid var(--line-2); border-radius: 0; margin-top: 4px; padding-top: 12px; color: var(--blue-700); font-weight: 600; }
.nav-mobile-label { width: 100%; margin: 0 0 6px; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.nav-mobile-demos { display: flex; gap: 8px; width: 100%; }
.nav-mobile-demos .btn { flex: 1; gap: 6px; }
.nav-mobile-demos .swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
@media (max-width: 1220px) {
  .site-header.nav-open .site-nav .nav-mobile-cta { flex-wrap: wrap; flex-direction: column; align-items: stretch; border-top: 1px solid var(--line-2); padding-top: 14px; }
  .site-header.nav-open .site-nav .nav-mobile-demos a { font-size: .95rem; padding: 10px 8px; }
}
.swatch.bronze, .swatch.silver, .swatch.gold { flex: none; }
.demo-card .pill { align-self: flex-start; }

/* Windows browser window frame (Chrome/Edge, light) */
.browser.win { background: #fff; border: 1px solid #C9CDD2; border-radius: 8px; }
.win-titlebar { display: flex; align-items: flex-end; height: 40px; background: #DFE3E8; padding: 0 0 0 8px; }
.win-tab { display: flex; align-items: center; gap: 8px; height: 32px; min-width: 0; width: 240px; padding: 0 10px 0 12px; background: #fff; border-radius: 8px 8px 0 0; font-family: "Segoe UI", system-ui, sans-serif; font-size: 12px; color: #1F1F1F; }
.win-tab img { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.win-tab span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-tab svg { width: 14px; height: 14px; color: #5F6368; flex: none; }
.win-newtab { display: grid; place-items: center; width: 28px; height: 28px; margin: 0 0 2px 6px; color: #3C4043; }
.win-newtab svg { width: 14px; height: 14px; }
.win-controls { margin-left: auto; align-self: stretch; display: flex; }
.win-controls span { display: grid; place-items: center; width: 46px; color: #1F1F1F; }
.win-controls svg { width: 11px; height: 11px; stroke-width: 1; }
.win-toolbar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; background: #fff; border-bottom: 1px solid #E3E5E8; }
.win-nav { display: flex; gap: 14px; color: #3C4043; padding: 0 4px; }
.win-nav svg { width: 16px; height: 16px; }
.win-nav svg.dim { color: #B5B9BE; }
.win-address { flex: 1; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 999px; background: #F1F3F4; font-family: "Segoe UI", system-ui, sans-serif; font-size: 13px; color: #1F1F1F; min-width: 0; }
.win-address svg { width: 14px; height: 14px; color: #5F6368; flex: none; }
.win-address span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .win-tab { width: 150px; } .win-newtab, .win-nav svg:nth-child(2) { display: none; } .win-controls span { width: 34px; } }

/* Buttons inside dark sections keep their own colors */
.section-dark a.btn-white, .section-dark a.btn-white:hover { color: var(--ink); }
.section-dark a.btn-outline-light, .section-dark a.btn-outline-light:hover, .section-dark a.btn-ghost, .section-dark a.btn-ghost:hover { color: #fff; }
.section-dark a.btn-ghost:hover { background: rgba(255,255,255,.08); }
.cta-band a.btn-white { color: var(--ink); }

/* Report page shown as paper */
.report-figure img { width: 100%; border-radius: 4px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.55); background: #fff; }
.report-figure figcaption { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .93rem; color: var(--on-dark-2); }
.report-figure figcaption .swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
