/* ==========================================================================
   OperationsIQ — marketing site
   Tokens per BRAND.md. Layout per RESPONSIVE-DESIGN-PROTOCOL.md:
   mobile-first, desktop-equal, no hard-coded px layout sizes.
   Fixed px is used ONLY for hairline borders, shadows and 1-2px details.
   ========================================================================== */

/* ---------- 0. Self-hosted fonts (variable, latin subsets) --------------- */
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/hanken-grotesk-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/hanken-grotesk-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Schibsted Grotesk';font-style:normal;font-weight:400 900;font-display:swap;src:url(../fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Schibsted Grotesk';font-style:normal;font-weight:400 900;font-display:swap;src:url(../fonts/schibsted-grotesk-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Suite palette */
  --ink: #0c1320;
  --ink-2: #141d2e;
  --ink-line: #1d2738;
  --page: #f5f7fa;
  --card: #ffffff;
  --text: #16202e;
  --muted: #5b6675;          /* AA on white and on --page */
  --muted-2: #6b7686;        /* large text / decorative only */
  --line: #e7eaf0;

  --accent: #0fb6a6;         /* brand teal — fills, graphics, borders */
  --accent-d: #0a8f83;
  --accent-strong: #0a8073;  /* teal for TEXT + button fills — 4.8:1 on white */
  --accent-on-soft: #07695f; /* teal for text sitting on --accent-soft — 6.1:1 */
  --accent-soft: #e9f9f6;

  --positive: #16a34a;       /* graphics only — fails AA as small text */
  --positive-t: #12703a;     /* the text/label green — 6.2:1 on white */
  --warning: #e0a800;
  --danger: #dc3545;

  /* Module ramps */
  --coverage: #0fb6a6;   --coverage-d: #0a8f83;  --coverage-t: #07695f;  --coverage-soft: #e9f9f6;
  --analytics: #7c3aed;  --analytics-d: #6d28d9; --analytics-t: #6d28d9; --analytics-soft: #f1ecfd;
  --checklist: #2563eb;  --checklist-d: #1d4ed8; --checklist-t: #1d4ed8; --checklist-soft: #e8f0fe;
  --membership: #e11d48; --membership-d: #be123c;--membership-t: #be123c;--membership-soft: #fdecef;
  --maintenance: #e0a800;--maintenance-d: #b7791f;--maintenance-t: #8a6600;--maintenance-soft: #fdf6e3;

  /* Type */
  --font-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --fs-xs:   clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --fs-sm:   clamp(0.8125rem, 0.79rem + 0.14vw, 0.9375rem);
  --fs-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --fs-lg:   clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-xl:   clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --fs-2xl:  clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
  --fs-3xl:  clamp(1.875rem, 1.4rem + 2.2vw, 3.25rem);

  /* Space */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;    --sp-7: 3rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3rem, 7vw, 6.5rem);

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --maxw: min(75rem, 100%);
  --maxw-prose: min(46rem, 100%);

  --shadow-sm: 0 1px 2px rgba(12, 19, 32, 0.06), 0 1px 3px rgba(12, 19, 32, 0.05);
  --shadow-md: 0 4px 12px rgba(12, 19, 32, 0.07), 0 2px 4px rgba(12, 19, 32, 0.04);
  --shadow-lg: 0 24px 60px rgba(12, 19, 32, 0.14), 0 4px 14px rgba(12, 19, 32, 0.06);
}

/* Per-module theming — set data-module on any container */
[data-module="coverage"]   { --m: var(--coverage);   --m-d: var(--coverage-d);   --m-t: var(--coverage-t);   --m-soft: var(--coverage-soft); }
[data-module="analytics"]  { --m: var(--analytics);  --m-d: var(--analytics-d);  --m-t: var(--analytics-t);  --m-soft: var(--analytics-soft); }
[data-module="checklist"]  { --m: var(--checklist);  --m-d: var(--checklist-d);  --m-t: var(--checklist-t);  --m-soft: var(--checklist-soft); }
[data-module="membership"] { --m: var(--membership); --m-d: var(--membership-d); --m-t: var(--membership-t); --m-soft: var(--membership-soft); }
[data-module="maintenance"]{ --m: var(--maintenance);--m-d: var(--maintenance-d);--m-t: var(--maintenance-t);--m-soft: var(--maintenance-soft); }

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* no horizontal page scroll at any width */
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); letter-spacing: -0.01em; }

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

a { color: var(--accent-strong); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-d); }

ul, ol { padding-left: 1.15em; }

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100%;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--sp-4); color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 3. Layout primitives ---------------------------------------- */
.wrap {
  width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tint { background: var(--page); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2 { color: #fff; }
.section--ink p { color: #c3cbd6; }

.stack > * + * { margin-top: var(--sp-4); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: var(--sp-3);
}
.section--ink .eyebrow { color: var(--accent); }

.lede { font-size: var(--fs-lg); color: var(--muted); max-width: 60ch; }
.section--ink .lede { color: #c3cbd6; }

.section-head { max-width: 65ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 2.75rem;              /* >= 44px touch target */
  padding: 0.65rem 1.25rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent-strong), #076a60);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { color: #fff; box-shadow: var(--shadow-md); }

.btn--ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { color: var(--text); border-color: #cdd4de; }

.section--ink .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #33405a;
  box-shadow: none;
}
.section--ink .btn--ghost:hover { background: var(--ink-2); color: #fff; }

.btn--wide { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.btn-row--center { justify-content: center; }

/* ---------- 5. Header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand img { width: clamp(9rem, 16vw, 11.5rem); }

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile: off-canvas drawer. Desktop layout restored at min-width below. */
.site-nav {
  position: fixed;
  inset: 4rem 0 auto 0;
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-4) var(--gutter) var(--sp-6);
  transform: translateY(-125%);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-lg);
}
.site-nav[data-open="true"] { transform: translateY(0); }

.nav-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}
.nav-list a {
  display: block;
  padding: var(--sp-3) var(--sp-2);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text);
  text-decoration: none;
}
.nav-list a:hover { background: var(--page); color: var(--text); }
.nav-list a[aria-current="page"] { color: var(--accent-strong); }

.nav-cta { display: grid; gap: var(--sp-2); }

@media (min-width: 56.25rem) {   /* ~900px */
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    margin-left: auto;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
    padding: 0;
    transform: none;
    box-shadow: none;
  }
  .nav-list {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    margin: 0;
  }
  .nav-list a { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); }
  .nav-cta { display: flex; gap: var(--sp-2); }
}

/* ---------- 6. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(60% 55% at 80% 0%, rgba(15, 182, 166, 0.14), transparent 70%),
    radial-gradient(50% 50% at 10% 10%, rgba(124, 58, 237, 0.08), transparent 70%),
    var(--card);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
}
.hero h1 { margin-bottom: var(--sp-4); }
.hero .lede { margin-bottom: var(--sp-5); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: var(--sp-5);
}
.pill b { color: var(--text); font-weight: 700; }
.pill .dot {
  width: 1.4rem; height: 1.4rem;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  flex: 0 0 auto;
}

.hero-note {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.hero-note code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", monospace;
  background: var(--accent-soft);
  color: var(--accent-on-soft);
  padding: 0.1em 0.45em;
  border-radius: 5px;
  font-size: 0.92em;
  font-weight: 600;
}

/* ---------- 7. Feature strip -------------------------------------------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--page);
  padding-block: var(--sp-5);
}
.strip-grid {
  display: grid;
  gap: var(--sp-4) var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.strip-item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.strip-item svg { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; color: var(--accent-strong); margin-top: 0.15rem; }
.strip-item b { font-family: var(--font-display); display: block; font-size: var(--fs-sm); }
.strip-item span { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- 8. Cards / grids -------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

/* Module card */
.mod-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.mod-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--m), var(--m-d));
}
@media (hover: hover) {
  .mod-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
}
.mod-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--r-sm);
  background: var(--m-soft);
  color: var(--m-t);
  flex: 0 0 auto;
}
.mod-badge svg { width: 1.5rem; height: 1.5rem; }
.mod-card h3 { font-size: var(--fs-lg); }
.mod-card h3 .iq { color: var(--m-t); }
.mod-card p { color: var(--muted); font-size: var(--fs-sm); }
.mod-card ul { margin: 0; padding-left: 1.1em; font-size: var(--fs-sm); color: var(--muted); }
.mod-card li + li { margin-top: 0.2rem; }
.mod-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--m-t);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.mod-link:hover { color: var(--m-d); gap: 0.6rem; }
.mod-link svg { width: 1rem; height: 1rem; }

/* Numbered steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.5rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-on-soft);
  font-family: var(--font-display);
  font-weight: 700;
}
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step p { color: var(--muted); font-size: var(--fs-sm); }


/* ---------- 8b. Industry cards ------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ind-label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
}
.ind-flag {
  align-self: flex-start;
  background: var(--m-soft);
  color: var(--m-t);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-pill);
}
.mod-card .chips .tag { font-size: var(--fs-xs); padding: 0.2rem 0.6rem; }

/* ---------- 9. Product mockups (HTML/CSS only — fictional data) ---------- */
.shot {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-line);
  container-type: inline-size;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.6rem 0.85rem;
  background: var(--ink-2);
  border-bottom: 1px solid var(--ink-line);
}
.shot-dots { display: flex; gap: 0.35rem; flex: 0 0 auto; }
.shot-dots i { width: 0.6rem; height: 0.6rem; border-radius: var(--r-pill); background: #33405a; display: block; }
.shot-url {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: clamp(0.6rem, 1.6cqw, 0.75rem);
  color: #9aa4b2;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-pill);
  padding: 0.15rem 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shot-body {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--page);
  min-width: 0;
}
.shot-rail {
  display: none;
  background: var(--ink);
  padding: var(--sp-3) 0.6rem;
  gap: 0.4rem;
  flex-direction: column;
  border-right: 1px solid var(--ink-line);
}
@container (min-width: 34rem) {
  .shot-body { grid-template-columns: clamp(3.25rem, 8cqw, 4rem) 1fr; }
  .shot-rail { display: flex; }
}
.rail-chip {
  /* The label is pure white; the FILL is dimmed toward ink rather than the whole
     chip being faded with opacity — that kept every chip label above 5.5:1. */
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  background-color: #1f2b3d;  /* fallback for browsers without color-mix() */
  background-color: color-mix(in srgb, var(--chip, var(--accent)) 55%, var(--ink));
}
.rail-chip[data-active="true"] {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
  position: relative;
}
.rail-chip[data-active="true"]::after {
  content: "";
  position: absolute;
  inset: auto auto -0.45rem 50%;
  transform: translateX(-50%);
  width: 1rem; height: 2px;
  border-radius: var(--r-pill);
  background: var(--chip, var(--accent));
}
.rail-chip svg { width: 1.1rem; height: 1.1rem; }

.shot-main {
  min-width: 0;
  padding: clamp(0.75rem, 2.5cqw, 1.35rem);
  display: grid;
  gap: clamp(0.6rem, 1.8cqw, 1rem);
}
.shot-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.shot-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.8rem, 2.2cqw, 1.05rem);
  color: var(--text);
  letter-spacing: -0.01em;
}
.shot-sub { font-size: clamp(0.6rem, 1.5cqw, 0.75rem); color: var(--muted); }
.shot-tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.shot-tab {
  font-size: clamp(0.55rem, 1.4cqw, 0.7rem);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.shot-tab[data-active="true"] { background: var(--m-soft); color: var(--m-t); border-color: transparent; font-weight: 600; }

.kpis {
  display: grid;
  gap: clamp(0.4rem, 1.4cqw, 0.75rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@container (min-width: 30rem) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: clamp(0.5rem, 1.6cqw, 0.85rem);
  min-width: 0;
}
.kpi dt { font-size: clamp(0.55rem, 1.35cqw, 0.7rem); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.6cqw, 1.35rem);
  letter-spacing: -0.02em;
  color: var(--text);
}
.kpi .delta { display: block; font-size: clamp(0.5rem, 1.3cqw, 0.68rem); font-weight: 600; line-height: 1.35; }
.delta--up { color: var(--positive-t); }
.delta--flat { color: var(--muted); }
.delta--warn { color: var(--maintenance-t); }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: clamp(0.6rem, 1.8cqw, 1rem);
  min-width: 0;
}
.panel .panel-h {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: clamp(0.65rem, 1.6cqw, 0.85rem);
  margin-bottom: 0.15rem;
}
.panel .panel-sub { font-size: clamp(0.55rem, 1.35cqw, 0.7rem); color: var(--muted); margin-bottom: 0.6rem; }
.panel svg.chart { width: 100%; height: auto; }

.shot-cols { display: grid; gap: clamp(0.5rem, 1.6cqw, 0.9rem); grid-template-columns: 1fr; align-items: start; }
@container (min-width: 34rem) { .shot-cols--2 { grid-template-columns: 1.6fr 1fr; } }

/* Site list rows */
.rows { display: grid; gap: 0.3rem; }
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(0.6rem, 1.5cqw, 0.8rem);
  min-width: 0;
}
.row:last-child { border-bottom: 0; }
.row-name { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.row-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 1.4rem; height: 1.4rem;
  border-radius: var(--r-pill);
  background: var(--m-soft);
  color: var(--m-t);
  display: grid; place-items: center;
  font-size: 0.55rem;
  font-weight: 700;
  font-family: var(--font-display);
  flex: 0 0 auto;
}
.tag {
  font-size: clamp(0.5rem, 1.3cqw, 0.65rem);
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.tag--ok { background: #e7f6ec; color: #146c33; }
.tag--warn { background: var(--maintenance-soft); color: var(--maintenance-t); }
.tag--info { background: var(--m-soft); color: var(--m-t); }
.tag--danger { background: #fdecef; color: var(--membership-d); }

/* Progress meter */
.meter {
  height: 0.4rem;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
}
.meter > i { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--m), var(--m-d)); }

/* Schedule strip */
.sched { display: grid; gap: 0.25rem; }
.sched-row { display: grid; grid-template-columns: minmax(3.5rem, 22%) 1fr; align-items: center; gap: 0.4rem; }
.sched-name { font-size: clamp(0.55rem, 1.4cqw, 0.72rem); color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-track { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; }
.sched-track i { height: 1.15rem; border-radius: 3px; background: var(--page); border: 1px solid var(--line); }
.sched-track i[data-on] { background: var(--m-soft); border-color: color-mix(in srgb, var(--m) 35%, transparent); }
.sched-track i[data-peak] { background: var(--m); border-color: var(--m-d); }

/* Checklist rows */
.checks { display: grid; gap: 0.35rem; }
.check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.6rem, 1.5cqw, 0.78rem);
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  min-width: 0;
}
.check > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick {
  width: 1.1rem; height: 1.1rem;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.tick[data-done="true"] { background: var(--m); border-color: var(--m); }
.tick svg { width: 0.75rem; height: 0.75rem; color: #fff; }
.check[data-done="true"] > span { color: var(--muted); text-decoration: line-through; }

.shot-caption {
  font-size: var(--fs-xs);
  color: var(--muted);
  padding: var(--sp-3) var(--sp-4);
  background: var(--card);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ---------- 10. Module deep sections ------------------------------------ */
.mod-section { padding-block: var(--section-y); scroll-margin-top: 5rem; }
.mod-section--alt { background: var(--page); }
.mod-layout { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 62rem) {
  .mod-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .mod-section--alt .mod-copy { order: 2; }
}
.mod-title { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.mod-title h2 { font-size: var(--fs-2xl); }
.mod-title .iq { color: var(--m-t); }

.feature-list { list-style: none; padding: 0; display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.feature-list li { display: grid; grid-template-columns: 1.4rem 1fr; gap: var(--sp-3); align-items: start; font-size: var(--fs-sm); }
.feature-list svg { width: 1.4rem; height: 1.4rem; color: var(--m-t); margin-top: 0.1rem; }
.feature-list b { font-family: var(--font-display); display: block; color: var(--text); font-size: var(--fs-base); }
.feature-list span { color: var(--muted); }
.section--ink .feature-list b { color: #fff; }
.section--ink .feature-list span { color: #c3cbd6; }

/* ---------- 11. Tenant / subdomain illustration ------------------------- */
.tenant-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 56.25rem) { .tenant-grid { grid-template-columns: 1fr 1fr; } }

/* Pages whose left column carries a form need the room, and must align to the top. */
.tenant-grid--form { align-items: start; }
@media (min-width: 56.25rem) { .tenant-grid--form { grid-template-columns: 1.3fr 0.85fr; } }

.url-stack { display: grid; gap: var(--sp-3); }
.url-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", monospace;
  font-size: var(--fs-sm);
  color: #e6eaf0;
  min-width: 0;
}
.url-chip .lock { width: 1rem; height: 1rem; color: var(--accent); flex: 0 0 auto; }
.url-chip .sub { color: var(--accent); font-weight: 700; }
.url-chip .rest { color: #9aa4b2; overflow: hidden; text-overflow: ellipsis; }
.url-chip .who { margin-left: auto; font-family: var(--font-body); font-size: var(--fs-xs); color: #9aa4b2; white-space: nowrap; }

/* Recessed third chip. Uses a dashed outline rather than opacity — fading the
   whole element also fades its text below the AA contrast floor. */
.url-chip--ghost { background: transparent; border-style: dashed; }
.url-chip--ghost .sub { color: #5dcaa5; }
@media (max-width: 30rem) { .url-chip .who { display: none; } }

/* ---------- 12. Pricing -------------------------------------------------- */
.notice {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  background: var(--maintenance-soft);
  border: 1px solid #f0dda4;
  border-radius: var(--r-md);
  padding: var(--sp-4);
  font-size: var(--fs-sm);
  color: #5c4708;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.notice svg { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; color: var(--maintenance-t); }
.notice b { font-family: var(--font-display); }

.plan {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: relative;
}
.plan--featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.plan-flag {
  position: absolute;
  top: 0; right: var(--sp-5);
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--accent-strong), #076a60);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
}
.plan h3 { font-size: var(--fs-lg); }
.plan .plan-for { font-size: var(--fs-sm); color: var(--muted); }
.plan .plan-price {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  padding-block: var(--sp-3);
  border-block: 1px solid var(--line);
}
.plan .plan-price small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.plan li { display: grid; grid-template-columns: 1.1rem 1fr; gap: var(--sp-2); align-items: start; }
.plan li svg { width: 1.1rem; height: 1.1rem; color: var(--accent-strong); margin-top: 0.25rem; }
.plan .btn { margin-top: auto; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: var(--fs-sm); }
caption { text-align: left; padding: var(--sp-3) var(--sp-4); color: var(--muted); font-size: var(--fs-sm); }
th, td { text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
thead th {
  position: sticky; top: 0;
  background: var(--page);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  z-index: 1;
}
tbody th { font-weight: 600; background: var(--card); position: sticky; left: 0; z-index: 1; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

/* Accordion FAQ */
.faq { display: grid; gap: var(--sp-3); }
details.qa {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  padding: 0 var(--sp-4);
}
details.qa summary {
  cursor: pointer;
  list-style: none;
  padding: var(--sp-4) 0;
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 2.75rem;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "";
  width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
details.qa[open] summary::after { transform: rotate(-135deg); }
details.qa p { padding-bottom: var(--sp-4); color: var(--muted); font-size: var(--fs-sm); }

/* ---------- 13. Forms ---------------------------------------------------- */
/* Container query, not a media query: the form must react to ITS column width,
   not the viewport, or two-up fields get crushed inside a narrow page column. */
form { container-type: inline-size; }
.form-grid { display: grid; gap: var(--sp-4); }
.form-grid .full { grid-column: 1 / -1; }
@container (min-width: 30rem) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
.field > .btn { justify-self: start; }
@container (max-width: 24rem) { .field > .btn { justify-self: stretch; } }
.field { display: grid; gap: var(--sp-2); min-width: 0; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.field .req { color: var(--danger); }
input, select, textarea {
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--card);
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent-strong); }
input:user-invalid, textarea:user-invalid { border-color: var(--danger); }

.form-status {
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  border: 1px solid transparent;
}
.form-status[hidden] { display: none; }
.form-status[data-state="ok"] { background: #e7f6ec; border-color: #b7e2c5; color: #146c33; }
.form-status[data-state="error"] { background: #fdecef; border-color: #f6c3cd; color: #96122f; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; }
.consent input { width: 1.15rem; min-height: 1.15rem; height: 1.15rem; margin-top: 0.3rem; }
.consent label { font-weight: 400; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--muted); }

/* Booking embed slot */
.embed-slot {
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--page);
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.embed-slot code {
  display: inline-block;
  font-family: ui-monospace, monospace;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.45em;
  color: var(--text);
}

/* ---------- 14. Legal / prose ------------------------------------------- */
.prose { max-width: var(--maxw-prose); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); margin-bottom: var(--sp-3); scroll-margin-top: 5rem; }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose p, .prose li { color: #33404f; }
.prose p + p, .prose ul, .prose ol { margin-top: var(--sp-3); }
.prose li + li { margin-top: var(--sp-2); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: var(--sp-4);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-top: var(--sp-4);
}
.prose blockquote p { color: var(--text); }
/* Links on the soft teal fill need the darker teal to stay above 4.5:1. */
.prose blockquote a { color: var(--accent-on-soft); }
.prose blockquote a:hover { color: #05564e; }
.updated {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--muted);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.2rem 0.75rem;
  margin-top: var(--sp-4);
}
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--sp-5); background: var(--page); border-bottom: 1px solid var(--line); }
.page-head .lede { margin-top: var(--sp-4); }

.toc {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-5);
}
.toc h2 { font-size: var(--fs-sm); margin: 0 0 var(--sp-2); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.toc ol { font-size: var(--fs-sm); margin: 0; }
.toc li + li { margin-top: 0.2rem; }

/* ---------- 15. CTA + Footer -------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .wrap { max-width: min(52rem, 100%); }
.cta-band h2 { margin-bottom: var(--sp-4); }
.cta-band p { margin-bottom: var(--sp-5); }

.site-footer {
  background: var(--ink);
  color: #9aa4b2;
  padding-block: var(--sp-7) var(--sp-5);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.footer-brand { grid-column: 1 / -1; max-width: 24rem; }
@media (min-width: 56.25rem) { .footer-brand { grid-column: auto; max-width: 20rem; } }
.footer-brand img { width: clamp(9rem, 18vw, 11rem); margin-bottom: var(--sp-3); }
.footer-brand p { color: #9aa4b2; font-size: var(--fs-sm); }

.site-footer h2 {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: var(--sp-3);
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.site-footer a { color: #9aa4b2; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

.footer-bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: #9aa4b2;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ---------- 15b. Shared bits -------------------------------------------- */
.mod-layout > *, .tenant-grid > *, .hero-grid > * { min-width: 0; }

code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", monospace;
  font-size: 0.9em;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.05em 0.35em;
  word-break: break-word;
}

/* ---------- 16. Utilities ------------------------------------------------ */
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
