/*
 * The design tokens, once.
 *
 * Calm Precision (2026-11-19): one token set, one primitive set, one icon
 * set. A page reads a token; a hex value outside this file is a gate
 * failure. The brand is locked: primary #002071, accent #ffff00, ink
 * #1f1f1f, surface #f1f1f1, raised #ffffff, border #d9d9d9. Everything else
 * is a derived ramp, and the brand pair is always the 700 step of its ramp.
 *
 * The status ladder is success, warning, caution, error and info. The bar,
 * the dot or the badge takes the step's colour; the words take the step's
 * ink pair, which clears 4.5:1 on its own tint. A colour never travels
 * alone: the word or the icon is always beside it.
 *
 * This file replaces the Tailwind build for the Python surface. The tokens
 * are the same tokens, written as variables and a small set of component
 * classes, so a page is built from the shared pieces instead of a
 * page-local style. Sign-in pages read it too; the dashboard and the
 * console read their own layer on the same names.
 */

/* The two brand faces, from `public/fonts/`. Latin only, `swap`, so a
 * reader sees the words before the file lands. Space Grotesk 600/700 for a
 * heading, Inter 400/500/600 for everything else. A face nobody paints is
 * a file nobody should fetch: five files, about 100 KB in total, and the
 * rupee sign's own 1.2 KB face below. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/space-grotesk-600-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: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-700-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: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400-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: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-500-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: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600-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;
}

/* The rupee sign is the one glyph the latin subsets leave out, so the money
 * figures fell to a system face and set the sign a size too small beside the
 * digits. `inter-rupee.woff2` is Inter's own U+20B9 only, 1.2 KB, declared at
 * the three weights the body sets, so a sign and its digits share one face. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-rupee.woff2") format("woff2");
  unicode-range: U+20B9;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-rupee.woff2") format("woff2");
  unicode-range: U+20B9;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-rupee.woff2") format("woff2");
  unicode-range: U+20B9;
}

:root {
  color-scheme: light;

  /* --- the navy ramp. 700 is the brand; nothing else may stand in. --- */
  --navy-0: #ffffff;
  --navy-50: #eef1f8;
  --navy-100: #dde3f1;
  --navy-200: #b9c5e3;
  --navy-300: #8fa1cf;
  --navy-400: #5c74ae;
  --navy-500: #33518f;
  --navy-600: #1a3a78;
  --navy-700: #002071;
  --navy-800: #001a5c;
  --navy-900: #001246;

  /* --- the yellow ramp. 400 is the marker; it never fills a band. --- */
  --yellow-0: #ffffff;
  --yellow-50: #fffde3;
  --yellow-100: #fffbc2;
  --yellow-200: #fff486;
  --yellow-300: #ffec3d;
  --yellow-400: #ffff00;
  --yellow-500: #d9d900;
  --yellow-600: #a3a300;
  --yellow-700: #7a7a00;
  --yellow-800: #4d4d00;
  --yellow-900: #262600;

  /* --- the neutral ramp. 900 is the ink; 600 is the muted voice. --- */
  --neutral-0: #ffffff;
  --neutral-50: #f1f1f1;
  --neutral-100: #ececec;
  --neutral-200: #d9d9d9;
  --neutral-300: #b3b3b3;
  --neutral-400: #8f8f8f;
  --neutral-500: #757575;
  --neutral-600: #5c5c5c;
  --neutral-700: #454545;
  --neutral-800: #2e2e2e;
  --neutral-900: #1f1f1f;

  /* --- the semantic layer: what a page actually names. --- */
  --color-primary: var(--navy-700);
  --color-primary-strong: var(--navy-800);
  --color-primary-soft: var(--navy-50);
  --color-accent: var(--yellow-400);
  --color-accent-soft: var(--yellow-50);
  --color-ink: var(--neutral-900);
  --color-ink-muted: var(--neutral-600);
  --color-ink-subtle: var(--neutral-500);
  --color-surface: var(--neutral-50);
  --color-raised: var(--neutral-0);
  --color-border: var(--neutral-200);
  --color-border-strong: var(--neutral-300);

  /* --- the status ladder. The bar takes the step; the words take the ink
   * pair, which clears 4.5:1 on the tint beside it. --- */
  --color-success: #16a34a;
  --color-success-ink: #14532d;
  --color-success-tint: #ecfdf3;
  --color-warning: #ca8a04;
  --color-warning-ink: #713f12;
  --color-warning-tint: #fefce8;
  --color-caution: #ea580c;
  --color-caution-ink: #7c2d12;
  --color-caution-tint: #fff7ed;
  --color-error: #dc2626;
  --color-error-ink: #991b1b;
  --color-error-tint: #fef2f2;
  --color-info: var(--navy-700);
  --color-info-ink: var(--navy-700);
  --color-info-tint: var(--navy-50);

  /* --- space: a 4px base on an 8px rhythm. A page writes the token, never
   * a number. --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-11: 6rem;
  --space-12: 8rem;
  --space-section: 4rem;
  --mkt-max: 76rem;

  /* --- radius. Controls take md, cards lg, sheets and dialogs xl, badges
   * full. --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 999px;
  --radius-card: var(--radius-lg);
  --radius-control: var(--radius-md);
  --radius-pill: var(--radius-full);

  /* --- elevation: two, and no more. A card on a page has a hairline
   * border and no shadow; a field or a sticky bar takes e1; a dialog, a
   * sheet or a palette takes e2. --- */
  --shadow-e1: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow-e2: 0 8px 24px rgb(15 23 42 / 0.08);
  --shadow-soft: var(--shadow-e1);

  /* --- type. --- */
  --font-heading: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-display: 3.5rem;
  --text-h1: 2.5rem;
  --text-h2: 1.75rem;
  --text-h3: 1.25rem;
  --text-body: 1rem;
  --text-body-dense: 0.9375rem;
  --text-cell: 0.875rem;
  --text-meta: 0.8125rem;
  --text-micro: 0.75rem;

  /* --- motion: opacity and transform only, never layout. --- */
  /* Motion in seconds: 0.12 hover, 0.18 state, 0.24 overlay, 0.32 one
   * marketing band. Opacity and transform only, never layout. */
  --dur-1: 0.12s;
  --dur-2: 0.18s;
  --dur-3: 0.24s;
  --dur-4: 0.32s;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.4, 0, 1, 1);

  /* --- layering. No page writes a number. --- */
  --z-base: 0;
  --z-sticky: 10;
  --z-rail: 20;
  --z-header: 30;
  --z-sheet: 40;
  --z-dialog: 50;
  --z-toast: 60;
  --z-palette: 70;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-raised);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
}

/* A signed-in surface reads denser: 15px body, a 24px heading ceiling. */
body.dash-body {
  font-size: var(--text-body-dense);
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.1;
}

h2 {
  font-size: 1.375rem;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-h1);
  }

  h2 {
    font-size: var(--text-h2);
  }

  h3 {
    font-size: var(--text-h3);
  }
}

p {
  max-width: 65ch;
}

a {
  color: var(--color-primary);
}

/* One ring, everywhere: 2px navy with a 2px offset, on every focusable
 * control including an inline text link. No reduced tier. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

::selection {
  background: var(--color-accent);
  color: var(--color-ink);
}

.container {
  margin: 0 auto;
  max-width: 80rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.site-header {
  position: relative;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-raised);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.875rem;
}

.nav a:hover {
  color: var(--color-primary);
}

/* The composed header writes these names; they are the same primitives as
 * .brand and .nav above, painted once so the two cannot drift apart. */
.utility-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.75rem;
}

.utility-bar nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2rem;
}

.utility-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utility-bar__help {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* The utility strip wraps on a phone rather than clipping its Help Desk
 * link. The hours are already in the footer, so they are dropped here when
 * the strip would need a second line. */
@media (max-width: 599px) {
  .utility-bar nav {
    flex-wrap: wrap;
  }

  .utility-bar__meta {
    display: none;
  }
}

body.dash-body .utility-bar__help {
  min-height: 44px;
}

.site-header__bar {
  min-height: 4rem;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-mark__image {
  display: block;
  height: auto;
}

.nav__items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  color: var(--color-ink);
  font-size: 0.875rem;
  text-decoration: none;
}

.nav__link--button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.875rem;
  color: var(--color-ink);
  cursor: pointer;
}

.nav__link:hover,
.nav__link--on {
  color: var(--color-primary);
}

.nav__link--on {
  font-weight: 600;
}

/* The signed-in chrome borrows the header link's treatment. The marketing
 * layer keeps its own colour on these classes under `body.mkt`, so a
 * utility or footer link reads the same as a header link on /app and
 * /admin without changing the marketing page. */
.chrome-link {
  color: var(--color-ink);
  text-decoration: none;
}

.chrome-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.drawer {
  display: none;
}

/* The phone header's two controls: the account icon and the menu. Desktop
 * reads the full link row in `.site-header__actions` instead. */
.site-header__mobile {
  display: none;
}

.rail__label {
  margin: 0 0 0.5rem;
  color: var(--color-ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* No hamburger on desktop: the native <details> drawer lives under 900px,
 * the width at which the four product links stop fitting on one row beside
 * the brand and the two controls. */
@media (max-width: 899px) {
  .site-header .nav,
  .site-header__actions {
    display: none;
  }

  .site-header__mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
  }

  .drawer {
    display: block;
  }

  .drawer__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
    background: var(--color-raised);
    cursor: pointer;
    list-style: none;
  }

  .drawer__button::-webkit-details-marker {
    display: none;
  }

  .drawer__button::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 6px 0 var(--color-primary), 0 -6px 0 var(--color-primary);
  }

  /* The two groups are native disclosures: a reader opens the one they need
   * instead of scrolling a single long list. The closed group costs one
   * 44px row, so "More" never pushes the Order now press off a short phone. */
  .drawer__group {
    margin-bottom: 0.5rem;
  }

  .drawer__group > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    cursor: pointer;
    list-style: none;
  }

  .drawer__group > summary::-webkit-details-marker {
    display: none;
  }

  .drawer__group > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 0.5rem;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    transition: transform var(--dur-1);
  }

  .drawer__group[open] > summary::after {
    transform: rotate(-135deg);
  }

  .drawer__panel {
    position: absolute;
    left: 0;
    right: 0;
    z-index: var(--z-sheet);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-raised);
    box-shadow: var(--shadow-soft);
    /* The panel opens under a 4rem sticky header. On a short phone its
     * natural height is taller than the viewport, so cap it to the space
     * below the header and scroll inside it: the last link and the Order
     * now press must stay reachable at 320px and 360x640. */
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .drawer__list {
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
  }
}

.section {
  padding: var(--space-section) 0;
}

.section--tint,
.section--surface {
  background: var(--color-surface);
}

.lede {
  max-width: 40rem;
  color: var(--color-ink-muted);
  margin: 0 0 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

/* One card padding scale: roomier on marketing, tighter signed in. */
.card--padded {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .card--padded {
    padding: 2rem;
  }
}

body.dash-body .card--padded {
  padding: 1rem 1.25rem;
}

/* The dashboard tile: its header, body and footer own the inset, so the card
 * itself carries none and can draw a rule between them. */
.card--bare {
  padding: 0;
}

/* Flat is the only card on a page: a hairline, no shadow, no lift. Raised
 * is the one deliberate exception - a dialog's sheet, a popover, the card
 * the gallery shows to name the difference. Inset is the quiet well a form
 * or a meter group sits in. */
.card--flat {
  background: var(--color-raised);
}

.card--raised {
  box-shadow: var(--shadow-e2);
}

.card--inset {
  background: var(--color-surface);
  border-color: transparent;
}

.card--filled {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.card--filled .card__title {
  color: #ffffff;
}

.card--filled .card__description {
  color: rgb(255 255 255 / 0.85);
}

.card--ghost {
  background: transparent;
  border-color: transparent;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.card__description {
  color: var(--color-ink-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

body.dash-body .card__description {
  margin-bottom: 0.75rem;
}

.card__header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
}

.card__header--flush {
  padding: 0;
}

body.dash-body .card__header {
  padding: 1rem 1.25rem;
}

.card__body {
  padding: 1.25rem;
}

body.dash-body .card__body {
  padding: 1rem 1.25rem;
}

.card__body--inset {
  padding: 1.25rem 1.25rem 0;
}

.card__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
}

.card__footer--inset {
  padding: 0.75rem 1.25rem 1.25rem;
}

.card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.card__tagline {
  color: var(--color-ink-muted);
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price__term {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-ink-muted);
}

.specs {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.875rem;
  display: grid;
  gap: 0.375rem;
}

/* --- the badge: one step of the ladder, always with its word --- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.badge--success {
  background: var(--color-success-tint);
  border-color: var(--color-success);
  color: var(--color-success-ink);
}

.badge--warning {
  background: var(--color-warning-tint);
  border-color: var(--color-warning);
  color: var(--color-warning-ink);
}

.badge--caution {
  background: var(--color-caution-tint);
  border-color: var(--color-caution);
  color: var(--color-caution-ink);
}

.badge--error {
  background: var(--color-error-tint);
  border-color: var(--color-error);
  color: var(--color-error-ink);
}

.badge--info,
.badge--muted {
  background: var(--color-info-tint);
  border-color: var(--color-info);
  color: var(--color-info-ink);
}

.badge--neutral {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-ink);
}

.badge--popular {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
}

.badge--xs {
  font-size: 0.625rem;
  padding: 0 0.5rem;
}

/* The dot beside a word: the ladder's colour, never alone. */
.dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--color-ink-subtle);
  flex-shrink: 0;
}

.dot--success {
  background: var(--color-success);
}

.dot--warning {
  background: var(--color-warning);
}

.dot--caution {
  background: var(--color-caution);
}

.dot--error {
  background: var(--color-error);
}

.dot--info {
  background: var(--color-info);
}

/* --- the meter and the usage meter --- */

.meter {
  display: block;
  background: var(--color-surface);
  border-radius: 999px;
  height: 0.5rem;
  overflow: hidden;
}

.meter__track {
  display: block;
  background: var(--color-surface);
  border-radius: 999px;
  height: 0.5rem;
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--color-success);
}

.meter__fill--warning {
  background: var(--color-warning);
}

.meter__fill--caution {
  background: var(--color-caution);
}

.meter__fill--error {
  background: var(--color-error);
}

.meter__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.8125rem;
  margin-bottom: 0.375rem;
}

.meter__label {
  font-weight: 600;
}

.meter__value {
  color: var(--color-ink-muted);
}

.meter__percent {
  margin-left: auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.meter__word {
  font-weight: 600;
}

/* --- the meter's label above the bar ------------------------------------- */

.meter-group {
  display: grid;
  gap: 0.375rem;
}

.meter-group__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.8125rem;
}

.meter-group__label {
  font-weight: 600;
}

.meter-group__value {
  color: var(--color-ink-muted);
}

.meter-group__percent {
  margin-left: auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* --- the progress bar: work done, not a plan used --- */

.progress {
  display: block;
  background: var(--color-surface);
  border-radius: 999px;
  height: 0.5rem;
  overflow: hidden;
}

.progress__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--color-primary);
}

/* --- the table ----------------------------------------------------------- */

.table-wrap,
.table-scroll {
  overflow-x: auto;
  margin-top: 1rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  background: var(--color-surface);
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
}

.table td {
  border-top: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
}

.table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table tbody tr:hover {
  background: var(--color-surface);
}

.table--sticky {
  max-height: 70vh;
  overflow: auto;
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--color-surface);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.table td.num,
.table .table__number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table .table__number {
  white-space: nowrap;
}

.table caption,
.table .table__caption {
  text-align: left;
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
  padding-bottom: 0.5rem;
}

/* A table on a phone is a table: it scrolls sideways with a sticky first
 * column, never a stack of cards. */
@media (max-width: 639px) {
  .table--pinned th:first-child,
  .table--pinned td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--color-raised);
  }

  .table--pinned thead th:first-child {
    background: var(--color-surface);
  }
}

/* --- the three state shapes: headline, one sentence, one next step ------- */

.empty {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
  color: var(--color-ink-muted);
}

.empty--error {
  border-style: solid;
  border-color: var(--color-error);
  background: var(--color-error-tint);
  color: var(--color-error-ink);
}

.empty--loading {
  border-style: solid;
}

.empty__icon {
  margin-bottom: 0.5rem;
}

.empty__title {
  margin: 0 0 0.25rem;
  color: var(--color-ink);
}

.empty--error .empty__title {
  color: var(--color-error-ink);
}

.empty__message,
.empty__copy {
  margin: 0 0 1rem;
}

.empty__message:last-child,
.empty__copy:last-child {
  margin-bottom: 0;
}

.empty__action {
  margin: 0;
}

.empty__body {
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  color: var(--color-ink-muted);
  font-size: 0.875rem;
}

.site-footer .nav {
  margin-top: 0.5rem;
}

.footer__address {
  margin: 0;
  font-style: normal;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--color-raised);
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-primary);
  z-index: var(--z-palette);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.button--outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgb(255 255 255 / 0.6);
}

.button--outline:hover {
  background: rgb(255 255 255 / 0.12);
}

/* ---------------------------------------------------------------------------
 * The primitives.
 *
 * `components.html` writes these classes and nothing else, so this block is
 * where a button, a card, a badge, a field, a section, a table and a drawer are
 * painted - once, for both rooms. Every value is a token from `:root`: no hex
 * is written here that the token block does not already hold, yellow is never a
 * foreground on a light surface, and no state is a colour alone.
 *
 * `.button` and `.btn` are one rule with two selectors: a marketing page wrote
 * `.button` by hand before the primitives existed, and a page that draws the
 * macro gets `.btn`. Painting them from one declaration block is what stops
 * the two from drifting apart.
 * ------------------------------------------------------------------------- */

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  background: var(--color-primary);
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}

.button:hover,
.btn:hover {
  background: var(--color-primary-strong);
}

/* A control that can sit in a narrow column wraps below sm and stays on one
 * line from sm up; a row in a table keeps one line because its column
 * scrolls. */
.btn--wrap,
.btn,
.button {
  white-space: normal;
}

@media (min-width: 640px) {
  .btn--wrap,
  .btn,
  .button {
    white-space: nowrap;
  }
}

.btn:disabled,
.btn[aria-disabled="true"],
.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn--primary,
.button--primary {
  background: var(--color-primary);
  color: var(--color-raised);
  border: 1px solid var(--color-primary);
}

.btn--primary:hover,
.button--primary:hover {
  background: var(--color-primary-strong);
  border-color: var(--color-primary-strong);
}

.btn--secondary,
.button--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--secondary:hover,
.button--secondary:hover {
  background: var(--color-primary-soft);
}

.btn--accent,
.button--accent {
  background: var(--color-accent);
  color: var(--color-ink);
}

.btn--accent:hover,
.button--accent:hover {
  background: var(--color-accent);
  filter: brightness(0.96);
}

.btn--quiet,
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
}

.btn--quiet:hover,
.btn--ghost:hover {
  background: var(--color-surface);
}

.btn--destructive,
.btn--danger {
  background: var(--color-error);
  color: #ffffff;
}

.btn--destructive:hover,
.btn--danger:hover {
  background: var(--color-error);
  filter: brightness(0.92);
}

.btn--link {
  background: transparent;
  border-color: transparent;
  color: var(--color-primary);
  min-height: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn--link:hover {
  background: transparent;
  text-decoration-thickness: 2px;
}

.btn--sm {
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.btn--lg {
  min-height: 3rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn--icon {
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
}

/* A full-row press: the wizard's continue, the sheet's confirm. */
.btn--block {
  display: flex;
  width: 100%;
}

/* Loading holds its width so the row does not jump when the press lands. */
.btn--loading {
  position: relative;
  pointer-events: none;
}

.btn--loading .btn__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentcolor;
  border-top-color: transparent;
  border-radius: var(--radius-full);
  animation: btn-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .btn--loading .btn__spinner {
    animation: none;
    border-top-color: currentcolor;
  }
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* A link back to the list the reader came from. */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The key a shortcut hint wears. */
.kbd {
  display: inline-block;
  padding: 0.0625rem 0.375rem;
  border: 1px solid var(--color-border);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  background: var(--color-raised);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
}

/* --- the field, the input and the select --------------------------------- */

.field {
  display: grid;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.field--wide {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-ink-muted);
}

.field__required {
  color: var(--color-error);
}

.field__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
}

.field__error {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-error-ink);
  font-weight: 500;
}

.field--error .input,
.field--error .select,
.field--error .textarea,
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--color-error);
}

.input,
.select,
.textarea {
  min-height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  background: var(--color-raised);
  color: var(--color-ink);
  width: 100%;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--color-border-strong);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-ink-subtle);
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background: var(--color-surface);
}

.textarea {
  padding: 0.625rem 0.75rem;
  min-height: 6.5rem;
  resize: vertical;
}

.select {
  appearance: none;
}

.select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.input--sm {
  min-height: 2rem;
  font-size: 0.75rem;
}

.input--lg {
  min-height: 3rem;
  font-size: 1rem;
}

/* A field with its unit or its reveal beside it. */
.field__suffix {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.field__suffix .input {
  flex: 1;
  min-width: 0;
}

.field__addon {
  color: var(--color-ink-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Checkboxes and radios: the box is 20px, the row is 44px. */
.check,
.radio {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  min-height: 2.75rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  cursor: pointer;
}

.check input,
.radio input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.125rem 0 0;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

/* The switch: a checkbox that reads as on or off. */
.switch {
  display: inline-flex;
  gap: 0.625rem;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

.switch input {
  appearance: none;
  width: 2.5rem;
  height: 1.5rem;
  margin: 0;
  border-radius: var(--radius-full);
  background: var(--color-border);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--dur-1) var(--ease);
}

.switch input:checked {
  background: var(--color-primary);
}

.switch input::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: var(--radius-full);
  background: var(--color-raised);
  transition: transform var(--dur-1) var(--ease);
}

.switch input:checked::after {
  transform: translateX(1rem);
}

/* The drop target: a picker that also takes a drag. */
.dropzone {
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
}

.dropzone--over {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.dropzone input[type="file"] {
  display: block;
  margin: 0.5rem auto 0;
  font-size: 0.875rem;
}

/* The one-time code: six boxes that read as one field. */
.otp {
  display: flex;
  gap: 0.5rem;
}

.otp .input {
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding: 0 0.25rem;
}

/* The search row: a field with its press. */
.search-row {
  display: flex;
  gap: 0.5rem;
}

.search-row .input {
  flex: 1;
  min-width: 0;
}

/* The form grid: one column on a phone, two when a pair reads better. */
.form-grid {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The sticky action bar: the save that follows a long form on a phone. */
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--color-border);
  margin-top: 1rem;
}

@media (max-width: 639px) {
  .action-bar {
    position: sticky;
    bottom: 0;
    z-index: var(--z-sticky);
    background: var(--color-raised);
    padding-bottom: 0.75rem;
  }
}

/* --- the section, the eyebrow and the site's rhythm ---------------------- */

.section--hero {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section--bare {
  padding-top: 0;
  padding-bottom: 0;
}

/* A band is one surface with its own rhythm: the default band, the tinted
 * band, and the navy hero band. */
.band {
  padding: var(--space-section) 0;
}

.band--surface {
  background: var(--color-surface);
}

.band--accent {
  background: var(--color-accent-soft);
}

/* A panel is the quiet well inside a page: a notice, a meter group, a
 * summary. */
.panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-raised);
  padding: 1.25rem;
}

.panel--surface {
  background: var(--color-surface);
}

.divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 1.5rem 0;
}

/* The eyebrow: a sentence-case label above a heading, never uppercase. */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.eyebrow--on-primary {
  color: #ffffff;
}

.eyebrow--center {
  text-align: center;
}

.eyebrow--end {
  text-align: right;
}

/* The hero band, and the tinted band a page alternates with it. */
.section--primary {
  background: var(--color-primary);
  color: #ffffff;
}

.section--primary h1,
.section--primary h2,
.section--primary h3 {
  color: #ffffff;
}

.section--primary .lede,
.section--primary .hero__lede,
.section--primary .hero__meta,
.section--primary .note,
.section--primary .card__tagline {
  color: rgb(255 255 255 / 0.85);
}

.section--primary a {
  color: #ffffff;
}

.hero__price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.hero__lede {
  max-width: 44rem;
  font-size: 1.0625rem;
  margin: 0 0 1.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.hero__meta {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.announcement {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.announcement .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.announcement a {
  color: var(--color-accent);
  text-decoration: none;
}

/* --- the hosting mega menu -------------------------------------------------
 *
 * The only dropdown on the marketing site. It opens on click through its
 * native disclosure, and on hover and keyboard focus through one rule
 * beside it, so the three hosting types stay one press away however the
 * reader arrives. A closed disclosure hides its panel; the hover and focus
 * rules paint it back, and the open rule keeps it while the reader moves
 * inside. The phone keeps the full link list in its sheet instead. */
.has-mega {
  position: relative;
}

.mega > summary {
  list-style: none;
  cursor: pointer;
}

.mega > summary::-webkit-details-marker {
  display: none;
}

.mega-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: var(--z-sheet);
  min-width: 18rem;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-raised);
  box-shadow: var(--shadow-e2);
}

.mega-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.mega-panel__link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.mega-panel .note {
  display: block;
  padding: 0 0.75rem 0.5rem;
}

.mega[open] > .mega-panel,
.has-mega:hover > .mega > .mega-panel,
.mega:focus-within > .mega-panel {
  display: block;
  content-visibility: visible;
}

/* --- the cookie banner ------------------------------------------------------
 *
 * An in-flow region at the page's foot, never an overlay: the choice lives
 * in the browser, so the two buttons write the documented key and tell the
 * tracker through its change event. Without JavaScript the banner stays
 * readable beside the policy link instead of blocking the page. */
.cookie-banner {
  border-top: 1px solid var(--color-border);
  background: var(--color-raised);
  padding: 1rem 0 1.5rem;
}

.cookie-banner__title {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.pill {
  display: inline-block;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.125rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.section--primary .pill {
  border-color: rgb(255 255 255 / 0.3);
  color: #ffffff;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
}

.proofs li::before {
  content: "\2713";
  color: var(--color-primary);
  margin-right: 0.375rem;
}

.section--primary .proofs li::before {
  color: var(--color-accent);
}

.range {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-raised);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
}

.range__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.term-switch {
  display: inline-flex;
  gap: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 0.25rem;
  background: var(--color-raised);
}

.term-switch a {
  padding: 0.25rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  text-decoration: none;
}

.term-switch a[aria-current="true"] {
  background: var(--color-primary);
  color: #ffffff;
}

.breadcrumb {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.625rem 0;
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--color-border);
}

.grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card--link a {
  text-decoration: none;
}

.card--tint {
  background: var(--color-surface);
}

.plan-card {
  display: flex;
  flex-direction: column;
}

.plan-card__cta {
  margin: auto 0 0;
  padding-top: 1rem;
}

.feature h3 {
  font-size: 1.0625rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.tag {
  display: inline-block;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.0625rem 0.625rem;
  font-size: 0.75rem;
  color: var(--color-ink-muted);
  text-decoration: none;
}

.callout {
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-card);
  background: var(--color-raised);
  padding: 1.5rem;
}

.callout--tint {
  border-color: var(--color-border);
  background: var(--color-primary-soft);
}

.callout--success,
.callout--warning,
.callout--caution,
.callout--error,
.callout--info {
  border-width: 1px;
}

.callout--success {
  border-color: var(--color-success);
  background: var(--color-success-tint);
}

.callout--warning {
  border-color: var(--color-warning);
  background: var(--color-warning-tint);
}

.callout--caution {
  border-color: var(--color-caution);
  background: var(--color-caution-tint);
}

.callout--error {
  border-color: var(--color-error);
  background: var(--color-error-tint);
}

.callout--info {
  border-color: var(--color-info);
  background: var(--color-info-tint);
}

.section--primary .callout {
  border-color: rgb(255 255 255 / 0.4);
  background: rgb(255 255 255 / 0.06);
}

.stat-strip {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .stat-strip {
    grid-template-columns: repeat(5, 1fr);
  }
}

.stat-strip li {
  display: grid;
  gap: 0.125rem;
}

.stat-strip__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.stat-strip__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
}

.stat-strip__body {
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
}

.section--primary .stat-strip__label {
  color: var(--color-accent);
}

.section--primary .stat-strip__body {
  color: rgb(255 255 255 / 0.8);
}

/* A KPI tile: one proud number, its name, its note. Numbers are tabular
 * and right-aligned in tables, proud and large here. */
.kpi {
  display: grid;
  gap: 0.125rem;
}

.kpi__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.kpi__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-ink-muted);
}

.kpi__note {
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
  margin: 0;
}

.faq {
  margin: 0;
  display: grid;
  gap: 1rem;
  max-width: 48rem;
}

.faq__item {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.faq dt {
  font-weight: 600;
}

.faq dd {
  margin: 0.375rem 0 0;
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
}

.faq__q {
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
}

.faq__a {
  margin: 0.375rem 0 0;
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
}

.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-raised);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
}

.steps__number {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

.price-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  max-width: 32rem;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.price-list .num {
  font-variant-numeric: tabular-nums;
}

.spec-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

@media (min-width: 640px) {
  .spec-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-list div {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  padding: 1rem 1.25rem;
}

.spec-list dt {
  font-size: 0.75rem;
  color: var(--color-ink-muted);
}

.spec-list dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.bullets {
  margin: 0.75rem 0 0;
  padding-left: 1.125rem;
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
}

.bullets li + li {
  margin-top: 0.375rem;
}

.prose {
  max-width: 48rem;
  color: var(--color-ink);
}

.prose--narrow {
  max-width: 44rem;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
}

.prose p,
.prose li {
  font-size: 1rem;
}

.prose a {
  text-underline-offset: 4px;
}

.prose blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--color-primary);
  color: var(--color-ink-muted);
}

.prose code {
  font-family: var(--font-mono);
  background: var(--color-surface);
  padding: 0.0625rem 0.25rem;
  border-radius: 0.25rem;
}

.on-this-page {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.on-this-page ul {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  font-size: 0.9375rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 2rem;
}

.filters label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.filters input,
.filters select {
  min-height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 0 0.75rem;
  font: inherit;
  font-weight: 400;
  background: var(--color-raised);
  color: var(--color-ink);
}

.filters input:focus-visible,
.filters select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.pager {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.table-scroll {
  overflow-x: auto;
}

.note {
  color: var(--color-ink-muted);
  font-size: 0.8125rem;
  margin: 0.5rem 0 0;
}

.note + .note {
  margin-top: 0.375rem;
}

.spaced {
  margin-top: 2.5rem;
}

/* --- the icon ------------------------------------------------------------ */

.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  fill: currentcolor;
}

.icon--tag {
  width: 0.75rem;
  height: 0.75rem;
}

.icon--inline {
  width: 1rem;
  height: 1rem;
}

.icon--with-text {
  width: 1.25rem;
  height: 1.25rem;
}

.icon--card-tile {
  width: 1.5rem;
  height: 1.5rem;
}

.icon--hero {
  width: 2rem;
  height: 2rem;
}

/* --- the list shell, the toolbar and the pager --------------------------- */

.list {
  display: grid;
  gap: 1rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.toolbar__search {
  display: grid;
  gap: 0.25rem;
  font-size: 0.8125rem;
  flex: 1;
  min-width: 12rem;
}

.toolbar__label {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--color-ink-muted);
}

.toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.filters__field {
  display: grid;
  gap: 0.25rem;
}

.filters__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-ink-muted);
}

.filters__check {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
}

.filters__check input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--color-primary);
}

.filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filters__clear {
  font-size: 0.8125rem;
}

.pager__count {
  margin: 0;
  color: var(--color-ink-muted);
}

.pager__range {
  color: var(--color-ink);
}

.pager__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

.pager__sizes {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
}

.pager__size[aria-current="true"] {
  font-weight: 700;
  color: var(--color-ink);
}

.pager__numbers {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
}

.pager__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: var(--radius-control);
  text-decoration: none;
  color: var(--color-ink);
}

.pager__number--on {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
}

.pager__beside {
  color: var(--color-ink-muted);
  font-size: 0.8125rem;
}

.pager__step {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 0.25rem 0.75rem;
  text-decoration: none;
  color: var(--color-ink);
  background: var(--color-raised);
}

.pager__step--off {
  color: var(--color-ink-subtle);
  border-color: transparent;
  background: transparent;
}

.pager__gap {
  color: var(--color-ink-subtle);
  padding: 0 0.25rem;
}

/* --- the loading skeleton: one shape per layout, no shimmer under
 * reduced motion --- */

.skeleton {
  display: grid;
  gap: 0.5rem;
}

.skeleton__line {
  height: 0.75rem;
  border-radius: var(--radius-control);
  background: var(--color-surface);
  animation: skeleton-pulse var(--dur-4) var(--ease) infinite alternate;
}

.skeleton__line--title {
  height: 1.25rem;
  width: 55%;
}

.skeleton__line--short {
  width: 35%;
}

.skeleton__card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.skeleton__row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.skeleton__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  flex-shrink: 0;
}

.skeleton__text {
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  .skeleton__line {
    animation: none;
  }
}

@keyframes skeleton-pulse {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.55;
  }
}

/* --- the dialog and the drawer ------------------------------------------- */

.dialog,
.sheet {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-e2);
  background: var(--color-raised);
  color: var(--color-ink);
  padding: 1.5rem;
  max-width: min(32rem, 92vw);
}

.dialog::backdrop,
.sheet::backdrop {
  background: rgb(31 31 31 / 0.5);
}

.dialog__title,
.sheet__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.dialog__body,
.sheet__body {
  margin-bottom: 1rem;
}

.dialog__actions,
.sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sheet {
  position: fixed;
  inset-block: 0;
  margin: 0;
  height: 100%;
  width: min(20rem, 85vw);
  max-width: none;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.5rem;
}

/* A closed dialog is hidden by the browser's own rule; the drawer's flex
 * layout must not take that away, or every page would wear its menu. */
.sheet[open] {
  display: flex;
}

.sheet:not([open]) {
  display: none;
}

.sheet--left {
  left: 0;
  right: auto;
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.sheet--right {
  right: 0;
  left: auto;
  border-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.sheet__description {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}

.sheet__close,
.dialog__close {
  margin-top: auto;
}

/* The confirm names what goes, then asks once. */
.confirm__detail {
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
  margin: 0 0 1rem;
}

/* --- the popover and the menu: small, temporary, beside their button --- */

.popover {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-e2);
  background: var(--color-raised);
  padding: 0.75rem;
  max-width: min(18rem, 92vw);
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-e2);
  background: var(--color-raised);
  min-width: 12rem;
}

.menu a,
.menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  min-height: 2.75rem;
  border-radius: var(--radius-control);
  color: var(--color-ink);
  font-size: 0.875rem;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu a:hover,
.menu button:hover {
  background: var(--color-surface);
}

/* --- the chart: inline SVG from the server, never a library --- */

.chart {
  margin: 0;
}

.chart__title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.chart__plot {
  min-height: 8rem;
}

.chart__plot svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart__caption {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
}

/* --- the tabs, the segmented control and the sub-nav ---------------------- */

/* A strip of tabs is one row that scrolls, never a stack: the app's fifteen
 * tabs would otherwise push the page content five rows down at 320px. */
.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.tabs__tab {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-control) var(--radius-control) 0 0;
  text-decoration: none;
  color: var(--color-ink);
}

.tabs__tab:hover {
  background: var(--color-surface);
}

.tabs__tab--on {
  background: var(--color-primary);
  color: #ffffff;
}

.segmented {
  display: inline-flex;
  gap: 0.25rem;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 0.25rem;
  background: var(--color-raised);
}

.segmented a,
.segmented button {
  border: 0;
  background: transparent;
  padding: 0.5rem 0.875rem;
  min-height: 2.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  text-decoration: none;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
}

.segmented [aria-current="true"] {
  background: var(--color-primary);
  color: #ffffff;
}

.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.sub-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-ink-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.sub-nav a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

/* --- toast and inline notice: a queued message, never destructive ------- */

.toast-host {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  z-index: var(--z-toast);
  display: grid;
  gap: 0.5rem;
  width: min(28rem, calc(100vw - 2rem));
}

.toast {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-e2);
  background: var(--color-raised);
  color: var(--color-ink);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.toast--success {
  border-color: var(--color-success);
  background: var(--color-success-tint);
  color: var(--color-success-ink);
}

.toast--error {
  border-color: var(--color-error);
  background: var(--color-error-tint);
  color: var(--color-error-ink);
}

.notice {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  border: 1px solid var(--color-border);
  border-left-width: 3px;
  border-radius: var(--radius-control);
  background: var(--color-raised);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.notice--success {
  border-color: var(--color-success);
  border-left-color: var(--color-success);
  background: var(--color-success-tint);
  color: var(--color-success-ink);
}

.notice--warning {
  border-color: var(--color-warning);
  border-left-color: var(--color-warning);
  background: var(--color-warning-tint);
  color: var(--color-warning-ink);
}

.notice--caution {
  border-color: var(--color-caution);
  border-left-color: var(--color-caution);
  background: var(--color-caution-tint);
  color: var(--color-caution-ink);
}

.notice--error {
  border-color: var(--color-error);
  border-left-color: var(--color-error);
  background: var(--color-error-tint);
  color: var(--color-error-ink);
}

.notice--info {
  border-color: var(--color-info);
  border-left-color: var(--color-info);
  background: var(--color-info-tint);
  color: var(--color-info-ink);
}

.notice__title {
  font-weight: 600;
  margin: 0 0 0.125rem;
}

.notice p {
  margin: 0;
}

/* The alert: an error with its next step, never a bare red line. */
.alert {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  border: 1px solid var(--color-error);
  border-radius: var(--radius-card);
  background: var(--color-error-tint);
  color: var(--color-error-ink);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
}

/* The tooltip: one sentence beside its control, never the only label. */
.tooltip {
  position: relative;
  border-bottom: 1px dotted var(--color-ink-subtle);
  cursor: help;
}

/* The spinner: a state change in progress, with its words beside it. */
.spinner {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--color-ink-muted);
  font-size: 0.875rem;
}

.spinner__wheel {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: btn-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .spinner__wheel {
    animation: none;
    border-top-color: var(--color-border);
  }
}

/* --- page furniture: one header, one section head, one wizard step -------- */

.page-header {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  margin: 0;
}

.page-header__lede {
  color: var(--color-ink-muted);
  margin: 0;
  font-size: 0.9375rem;
}

.page-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .page-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .page-header__actions {
    margin-top: 0;
  }
}

.section-header {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin: 0;
}

.section-header__link {
  font-size: 0.875rem;
}

/* The wizard step: one question group, its number, its place in line. */
.wizard-step {
  display: grid;
  gap: 1rem;
}

.wizard-step__head {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.wizard-step__num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

/* The settings layout: in-page nav on the left from md, sections right. */
.settings-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .settings-layout {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
}

.settings-layout__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .settings-layout__nav {
    flex-direction: column;
    align-items: stretch;
  }
}

/* The auth card: one centred card on the brand, no nav, no sidebar. */
.auth-card {
  max-width: 28rem;
  margin: 3rem auto;
}

/* --- code, copy and secrets ---------------------------------------------- */

.code-block {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-ink);
  color: #ffffff;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.copy-row__value {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  overflow-x: auto;
  white-space: nowrap;
}

.secret-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.secret-row__value {
  flex: 1;
  min-width: 0;
  letter-spacing: 0.1em;
}

/* --- the status band: the detail page's one-line verdict ------------------ */

.status-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
}

/* --- money: one summary, one total, one button ----------------------------- */

.money-summary {
  display: grid;
  gap: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
}

.money-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
}

.money-summary__total {
  border-top: 1px solid var(--color-border);
  padding-top: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}

.invoice-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.invoice-line__amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- the gallery's own chrome: swatches, not pages ------------------------ */

.gallery-section {
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.swatch {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 0.75rem;
  font-size: 0.8125rem;
}

.swatch__chip {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.swatch--navy-50 { background: var(--navy-50); }
.swatch--navy-100 { background: var(--navy-100); }
.swatch--navy-200 { background: var(--navy-200); }
.swatch--navy-300 { background: var(--navy-300); }
.swatch--navy-400 { background: var(--navy-400); }
.swatch--navy-500 { background: var(--navy-500); }
.swatch--navy-600 { background: var(--navy-600); }
.swatch--navy-700 { background: var(--navy-700); }
.swatch--navy-800 { background: var(--navy-800); }
.swatch--navy-900 { background: var(--navy-900); }
.swatch--yellow-50 { background: var(--yellow-50); }
.swatch--yellow-100 { background: var(--yellow-100); }
.swatch--yellow-200 { background: var(--yellow-200); }
.swatch--yellow-300 { background: var(--yellow-300); }
.swatch--yellow-400 { background: var(--yellow-400); }
.swatch--yellow-500 { background: var(--yellow-500); }
.swatch--yellow-600 { background: var(--yellow-600); }
.swatch--yellow-700 { background: var(--yellow-700); }
.swatch--yellow-800 { background: var(--yellow-800); }
.swatch--yellow-900 { background: var(--yellow-900); }
.swatch--neutral-50 { background: var(--neutral-50); }
.swatch--neutral-100 { background: var(--neutral-100); }
.swatch--neutral-200 { background: var(--neutral-200); }
.swatch--neutral-300 { background: var(--neutral-300); }
.swatch--neutral-400 { background: var(--neutral-400); }
.swatch--neutral-500 { background: var(--neutral-500); }
.swatch--neutral-600 { background: var(--neutral-600); }
.swatch--neutral-700 { background: var(--neutral-700); }
.swatch--neutral-800 { background: var(--neutral-800); }
.swatch--neutral-900 { background: var(--neutral-900); }

.swatch__name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: block;
}

.swatch__value {
  color: var(--color-ink-muted);
  font-variant-numeric: tabular-nums;
}

/* --- the tool ------------------------------------------------------------ */

.tool {
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
}

.tool__result {
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  font-size: 0.9375rem;
}

/* --- the command palette --------------------------------------------------- */

.command__rows {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  max-height: 50vh;
  overflow-y: auto;
}

.command__rows a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0.75rem;
  min-height: 2.75rem;
  align-items: center;
  border-radius: var(--radius-control);
  text-decoration: none;
  color: var(--color-ink);
}

.command__rows a:hover {
  background: var(--color-surface);
}

/* --- print: no chrome, prose only ------------------------------------------ */

@media print {
  .site-header,
  .site-footer,
  .breadcrumb,
  .toast-host,
  .action-bar {
    display: none;
  }

  .container {
    max-width: none;
  }

  body {
    font-size: 12pt;
  }
}

/* --- motion --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}

/* The full-width press in the old spelling. */
.button--block {
  display: flex;
  width: 100%;
}

/* A tinted band keeps its old name too. */
.section--tint {
  background: var(--color-surface);
}

/* One stat inside a strip or a grid. */
.stat {
  display: grid;
  gap: 0.125rem;
}

/* The status band: the detail page's one-line verdict. */
.status-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-raised);
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
}

.status-band--success {
  border-color: var(--color-success);
  background: var(--color-success-tint);
  color: var(--color-success-ink);
}

.status-band--warning {
  border-color: var(--color-warning);
  background: var(--color-warning-tint);
  color: var(--color-warning-ink);
}

.status-band--caution {
  border-color: var(--color-caution);
  background: var(--color-caution-tint);
  color: var(--color-caution-ink);
}

.status-band--error {
  border-color: var(--color-error);
  background: var(--color-error-tint);
  color: var(--color-error-ink);
}

.status-band--info {
  border-color: var(--color-info);
  background: var(--color-info-tint);
  color: var(--color-info-ink);
}


@media (prefers-contrast: more) {
  :root {
    --color-border: var(--color-ink);
    --color-ink-muted: var(--color-ink);
  }
}

@media (forced-colors: active) {
  *:focus-visible {
    outline: 2px solid CanvasText;
    outline-offset: 2px;
  }
  .btn, .button, button, a {
    forced-color-adjust: auto;
  }
}
