/*
 * mspzero.com
 *
 * One stylesheet, no build step, no framework. The site is a handful of
 * server-rendered pages; a toolchain would be more moving parts than the thing
 * it builds.
 *
 * ## The palette, and where each colour is allowed
 *
 * Three surfaces: a deep charcoal for the hero, the managed-hosting panel and
 * the footer; a cool off-white for the body of the page; and white for product
 * cards, which is what makes a card read as an object sitting on the page
 * rather than a region of it.
 *
 * The bright green is a *dark-surface and button* colour and nothing else. It
 * is 14.3:1 against the charcoal and carries dark text at 12.7:1 as a button,
 * but it is 1.2:1 against the off-white — so green text on a light surface uses
 * --accent-dark (5.8:1) instead. There is one rule to remember: bright green
 * never touches a light background as text.
 *
 * Measured pairings: body text 15.6:1, muted text 6.0:1, muted-on-dark 8.6:1,
 * light text on charcoal 18.1:1, accent-dark links 5.8:1.
 */

/* ---------------------------------------------------------------- tokens - */

:root {
  --bg-dark: #0b1110;
  --surface-dark: #14201b;
  --surface-dark-2: #1b2a24;
  --bg-main: #f4f7f5;
  --surface: #ffffff;
  --surface-sunken: #eef2ef;

  --text: #122019;
  --text-muted: #526259;
  --text-on-dark: #f5faf7;
  --text-on-dark-muted: #9fb3a8;

  --border: #dce5df;
  --border-strong: #c6d3ca;
  --border-dark: #27362f;

  --accent: #a3f635;
  --accent-hover: #b6f95f;
  --accent-dark: #216e39;
  --accent-dark-hover: #1b5e30;
  --accent-tint: #edfbdc;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --max: 1280px;
  --gutter: 20px;

  --r-card: 14px;
  --r-btn: 9px;
  --r-sm: 8px;

  /* Layered rather than one big blur: a tight contact shadow to seat the
     element, a wider soft one to lift it. */
  --shadow-sm: 0 1px 2px rgba(18, 32, 25, 0.06), 0 2px 6px rgba(18, 32, 25, 0.05);
  --shadow-md: 0 1px 2px rgba(18, 32, 25, 0.06), 0 8px 24px rgba(18, 32, 25, 0.08);
  --shadow-lg: 0 2px 4px rgba(18, 32, 25, 0.08), 0 18px 48px rgba(18, 32, 25, 0.12);

  --header-h: 68px;
  --ease: cubic-bezier(0.32, 0.72, 0.3, 1);
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

/* ------------------------------------------------------------------ base - */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anything linked to by id clears the sticky header instead of hiding
     underneath it. Set once, here, so no anchor has to remember. */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 640px) {
  body {
    font-size: 18px;
  }
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 680;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.4em;
}

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

.on-dark :focus-visible {
  outline-color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--text);
}

/* --------------------------------------------------------------- helpers - */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 46rem;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
  z-index: 200;
}

.skip:focus {
  left: 0;
  top: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The one small-caps technical label, used for eyebrows and category chips.
   Monospace is reserved for this and for code; body copy never uses it. */
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin: 0 0 0.875rem;
}

.on-dark .label {
  color: var(--text-on-dark-muted);
}

.lede {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.on-dark .lede {
  color: var(--text-on-dark-muted);
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.9375rem;
}

.mono {
  font-family: var(--mono);
}

.mt-lg {
  margin-top: 1.75rem;
}

.mt-md {
  margin-top: 1.25rem;
}

/* ---------------------------------------------------------------- header - */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 16, 0.94);
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-on-dark);
}

@supports (backdrop-filter: blur(8px)) {
  .masthead {
    backdrop-filter: blur(10px);
  }
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

/* ------------------------------------------------------------- wordmark - */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 760;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text-on-dark);
}

.wordmark__mark {
  display: block;
  width: 26px;
  height: 26px;
  flex: none;
}

.wordmark__zero {
  color: var(--accent);
}

.wordmark--light {
  color: var(--text);
}

.wordmark--light .wordmark__zero {
  color: var(--accent-dark);
}

/* -------------------------------------------------------------------- nav - */

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-btn);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--text-on-dark-muted);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.nav a:hover {
  color: var(--text-on-dark);
}

.nav a[aria-current="page"] {
  color: var(--text-on-dark);
  border-bottom-color: var(--accent);
}

.nav .btn {
  border-bottom: 0;
}

/*
 * The mobile menu.
 *
 * Off-canvas panel rather than a nav that wraps onto three rows and eats a
 * third of a phone screen. It is a plain list in the markup, so with no
 * JavaScript at all the `.is-open` class never arrives — which is why the
 * no-js rule below puts the list back in the flow rather than leaving a menu
 * nobody can open.
 */
@media (max-width: 899.98px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    /* Closed by default, and genuinely unreachable while closed — a menu that
       is merely transparent still takes tab stops. */
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.875rem 0.25rem;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--border-dark);
  }

  .nav a[aria-current="page"] {
    border-bottom-color: var(--border-dark);
    color: var(--accent);
  }

  .nav .btn {
    margin-top: 1rem;
    justify-content: center;
    padding-block: 0.8125rem;
  }

  html.no-js .nav {
    display: flex;
    position: static;
    box-shadow: none;
  }

  html.no-js .nav-toggle {
    display: none;
  }
}

/* ---------------------------------------------------------------- button - */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  cursor: pointer;
  /* No `white-space: nowrap`. At 320px "Have MSP Reboot set this up" was two
     pixels wider than the viewport and got clipped; a button whose label wraps
     onto a second line is not a defect, a button with its last letter cut off
     is. `max-width` keeps it inside the gutter whatever the label becomes. */
  max-width: 100%;
  text-align: center;
  transition: background-color 0.17s var(--ease), border-color 0.17s var(--ease),
    color 0.17s var(--ease), transform 0.17s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

/* Dark text on the bright green: 12.7:1, and the only place the bright green
   carries text at all. */
.btn--primary {
  background: var(--accent);
  color: var(--text);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--dark {
  background: var(--text);
  color: var(--text-on-dark);
}

.btn--dark:hover {
  background: #1d3227;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: var(--surface);
}

.on-dark .btn--ghost {
  color: var(--text-on-dark);
  border-color: #33453c;
  background: transparent;
}

.on-dark .btn--ghost:hover {
  border-color: var(--text-on-dark-muted);
  background: rgba(255, 255, 255, 0.04);
}

.btn--sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* A text link that reads as an action. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  text-decoration: none;
  font-weight: 560;
  font-size: 0.9375rem;
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(33, 110, 57, 0.25);
  padding-bottom: 1px;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.link:hover {
  color: var(--accent-dark-hover);
  border-bottom-color: var(--accent-dark);
}

.on-dark .link {
  color: var(--accent);
  border-bottom-color: rgba(163, 246, 53, 0.3);
}

.on-dark .link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

.link svg {
  flex: none;
}

/* ------------------------------------------------------------------ hero - */

.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
}

/*
 * Two background layers, both confined to the hero and both decorative.
 *
 * Both carry an explicit `z-index: 0` against the content's `z-index: 1`. The
 * specification says a positioned pseudo-element with `z-index: auto` paints
 * below a sibling at `z-index: 1`, and relying on that was wrong here: in
 * software-rendered Chromium the green radial painted *over* the hero
 * screenshot and flattened it to a solid rectangle, which looked exactly like
 * an image that had failed to load. Stating the order costs one line and
 * cannot be got wrong by a renderer.
 *
 * A faint technical grid, which gives the dark field some structure without
 * becoming a pattern anybody notices; and one soft green radial behind the
 * product screenshot, which is what makes the screenshot read as lit rather
 * than pasted on. Masked at the edges so neither has a visible boundary.
 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(163, 246, 53, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(163, 246, 53, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: -10%;
  right: -12%;
  width: 70%;
  height: 90%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(163, 246, 53, 0.17) 0%,
    rgba(163, 246, 53, 0.07) 38%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    gap: 4rem;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 7.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero h1 .accent {
  color: var(--accent);
  display: block;
}

.hero__lede {
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-on-dark-muted);
  max-width: 34rem;
  margin-bottom: 1.875rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.hero__proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__proof span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ------------------------------------------------------- the app frame - */

/*
 * A screenshot presented as an application window: a title strip carrying the
 * product name, a crisp border and a layered shadow. It is what stops a
 * screenshot on a dark field from looking like a floating rectangle, and the
 * strip is where the product label lives so the image never has to be captioned
 * twice.
 */
.frame {
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.frame--dark {
  background: var(--surface-dark);
  border-color: var(--border-dark);
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.frame--dark .frame__bar {
  background: var(--surface-dark-2);
  border-bottom-color: var(--border-dark);
  color: var(--text-on-dark-muted);
}

.frame__dots {
  display: inline-flex;
  gap: 5px;
  flex: none;
}

.frame__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.frame--dark .frame__dots i {
  background: #33453c;
}

.frame__shot {
  display: block;
  line-height: 0;
  background: var(--surface-sunken);
}

.frame--dark .frame__shot {
  background: var(--surface-dark);
}

.frame__shot img {
  display: block;
  width: 100%;
}

.hero__art {
  display: grid;
  gap: 1rem;
}

/* The supporting screenshot only appears where there is room for it to be
   readable. Below that it would be a thumbnail of a dashboard, which tells
   nobody anything.

   Its `z-index: 2` is load-bearing, not decoration. Absolutely positioned with
   `z-index: auto` it overlaps a sibling that is clipped and shadowed, and this
   Chromium painted its frame but not the image inside it — a window with a
   title bar and an empty body, which reads as a broken asset. Naming the layer
   fixes it. */
.hero__art-second {
  display: none;
}

@media (min-width: 1140px) {
  .hero__art {
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    padding-bottom: 3.5rem;
  }

  .hero__art-second {
    display: block;
    position: absolute;
    left: -3rem;
    bottom: 0;
    width: 44%;
    max-width: 19rem;
    z-index: 2;
  }

  .hero__art-second .frame {
    box-shadow: var(--shadow-lg);
  }
}

/* -------------------------------------------------------------- sections - */

.section {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section--sunken {
  background: var(--surface-sunken);
  border-block: 1px solid var(--border);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--text-on-dark);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  margin-bottom: 0.875rem;
}

.section__head p {
  margin-bottom: 0;
}

/* --------------------------------------------------------------- strip - */

/* The compact benefit strip. Three facts, one line of support each, sitting
   directly under the hero so the tools are a short scroll away. */
.strip {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 2.25rem;
}

/* Two up first, three only when there is room for each heading to stay on one
   line. At 768 the three-column version broke every heading and clipped it. */
@media (min-width: 560px) {
  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2rem;
  }
}

@media (min-width: 940px) {
  .strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.strip__item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.strip__icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--accent-dark);
  border: 1px solid #d3efb4;
}

.strip h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.1875rem;
}

.strip p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- cards - */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

/* Lift on hover, and on keyboard focus of anything inside it — a card that
   only responds to a mouse tells a keyboard user nothing about where they are. */
.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card__media {
  position: relative;
  display: block;
  line-height: 0;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card__media--dark {
  background: var(--surface-dark);
}

.card__media img {
  display: block;
  width: 100%;
  /* The screenshot is shown top-aligned inside a fixed ratio so every card in
     a row starts at the same height, and the crop takes from the bottom — the
     part of an application that is usually a table continuing off-screen —
     rather than from the navigation at the top. */
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.015);
}

.card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--accent-dark);
  border: 1px solid #d3efb4;
}

.card h3 {
  font-size: 1.3125rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.card h3 a {
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--accent-dark);
}

.card__cat {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.card__desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  /* Pushed to the bottom so every card in a row lines its buttons up, however
     long the description runs. */
  margin-top: auto;
  padding-top: 1.25rem;
}

/* Feature highlights: three short facts, not sentences. */
.highlights {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.4375rem;
}

.highlights li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  margin: 0;
}

.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  border: 1px solid var(--accent-dark);
}

.on-dark .highlights li {
  color: var(--text-on-dark);
}

.card__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

/* ------------------------------------------------------- featured card - */

.card--featured .card__body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 900px) {
  .card--featured {
    display: grid;
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
    align-items: stretch;
  }

  .card--featured .card__media {
    order: 2;
    border-bottom: 0;
    border-left: 1px solid var(--border);
    display: flex;
    align-items: center;
  }

  .card--featured .card__media img {
    aspect-ratio: auto;
    height: 100%;
    object-fit: cover;
    object-position: left top;
  }

  .card--featured .card__body {
    order: 1;
    justify-content: center;
  }
}

.card--featured h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.card--featured .card__desc {
  font-size: 1.0625rem;
}

.badge-featured {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-tint);
  color: var(--accent-dark);
  border: 1px solid #d3efb4;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 1rem;
}

.tool-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1.5rem;
}

@media (min-width: 760px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------- showcase - */

.showcase {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 880px) {
  .showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.showcase figure {
  margin: 0;
}

.showcase figcaption {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  color: var(--text-on-dark-muted);
}

.showcase figcaption strong {
  display: block;
  color: var(--text-on-dark);
  font-weight: 620;
  margin-bottom: 0.1875rem;
}

/* --------------------------------------------------------------- panels - */

.split {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

@media (min-width: 840px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.panel {
  border-radius: var(--r-card);
  padding: clamp(1.75rem, 3.2vw, 2.5rem);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--surface);
}

.panel--managed {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-lg);
}

.panel h3 {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}

.panel__tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: block;
}

.panel--managed .panel__tag {
  color: var(--accent);
}

.panel ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.panel li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--border-strong);
}

.panel--managed li {
  color: var(--text-on-dark-muted);
}

.panel--managed li::before {
  background: var(--accent);
}

.panel .btn-row {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ------------------------------------------------------------------ faq - */

.faq {
  max-width: 48rem;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  padding: 1.125rem 2rem 1.125rem 0;
  font-weight: 620;
  font-size: 1.0625rem;
  position: relative;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 1.55em;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.18s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-20%) rotate(-135deg);
}

.faq summary:hover {
  color: var(--accent-dark);
}

.faq .faq__body {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 44rem;
}

.faq .faq__body p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------- cta band - */

.cta {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: clamp(3.5rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 130%;
  background: radial-gradient(circle at 50% 50%, rgba(163, 246, 53, 0.12) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  max-width: 24ch;
}

.cta p {
  color: var(--text-on-dark-muted);
  max-width: 44rem;
  font-size: 1.0625rem;
}

/* ---------------------------------------------------------------- table - */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 40rem;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.9375rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

thead th {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--surface-sunken);
}

tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}

td.handles {
  color: var(--text-muted);
}

.cell-need {
  font-weight: 600;
}

td.project a {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(33, 110, 57, 0.25);
}

td.project a:hover {
  border-bottom-color: var(--accent-dark);
}

/* ------------------------------------------------------------- page head - */

.pagehead {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(163, 246, 53, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(163, 246, 53, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 30% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 100% at 30% 0%, #000 20%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.pagehead > * {
  position: relative;
  z-index: 1;
}

.pagehead h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 0.875rem;
}

.pagehead .lede {
  color: var(--text-on-dark-muted);
  font-size: 1.125rem;
  max-width: 42rem;
}

.crumbs {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.25rem;
}

.crumbs a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  border-bottom: 1px solid #2f4239;
}

.crumbs a:hover {
  color: var(--text-on-dark);
}

.toolhead__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 960px) {
  .toolhead__grid {
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    gap: 3.5rem;
  }
}

.toolhead__id {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.toolhead__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(163, 246, 53, 0.12);
  color: var(--accent);
  border: 1px solid rgba(163, 246, 53, 0.28);
}

/* ------------------------------------------------------------------ prose */

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9375rem);
  margin: 2.75rem 0 0.875rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.1875rem;
  margin: 2rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.prose strong {
  color: var(--text);
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.75rem 0 2rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 0 1.25rem 3.25rem;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.35rem;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  background: var(--accent-tint);
  border: 1px solid #d3efb4;
  border-radius: 6px;
  padding: 3px 7px;
}

.steps strong {
  display: block;
  color: var(--text);
  font-weight: 640;
  margin-bottom: 0.25rem;
}

.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-dark);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 1.25rem 1.375rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout--warn {
  border-left-color: #b45309;
}

.factgrid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
  .factgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.factcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.factcard h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.factcard ul {
  padding-left: 1.1em;
  margin: 0;
}

.factcard li,
.factcard p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.factcard li:last-child,
.factcard p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------- gallery - */

.gallery {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 820px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery > .shot--wide {
    grid-column: 1 / -1;
  }
}

.shot {
  margin: 0;
}

.shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.on-dark .shot figcaption {
  color: var(--text-on-dark-muted);
}

.shot__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.on-dark .shot__label {
  color: var(--text-on-dark);
}

/* The enlarge control. A real button, so it is reachable and announced; it
   wraps the image and is the only focusable thing in the figure. */
.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface-sunken);
  cursor: zoom-in;
  line-height: 0;
  position: relative;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.zoom:hover {
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.on-dark .zoom {
  border-color: var(--border-dark);
  background: var(--surface-dark);
}

.on-dark .zoom:hover {
  border-color: var(--accent);
}

.zoom img {
  display: block;
  width: 100%;
}

.zoom__hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(11, 17, 16, 0.82);
  color: var(--text-on-dark);
  border-radius: 999px;
  padding: 5px 11px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.18s var(--ease);
}

.zoom:hover .zoom__hint,
.zoom:focus-visible .zoom__hint {
  opacity: 1;
}

/* JavaScript is what opens the lightbox, so with it off the hint would promise
   something that does not happen. */
html.no-js .zoom {
  cursor: default;
}

html.no-js .zoom__hint {
  display: none;
}

/* ------------------------------------------------------------- lightbox - */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(7, 12, 10, 0.92);
}

.lightbox[open],
.lightbox.is-open {
  display: flex;
}

.lightbox__inner {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  width: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-dark);
  background: var(--surface);
  object-fit: contain;
}

.lightbox__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--text-on-dark);
}

.lightbox__caption {
  font-size: 0.9375rem;
  color: var(--text-on-dark-muted);
  max-width: 60ch;
}

.lightbox__caption strong {
  display: block;
  color: var(--text-on-dark);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.lightbox__close {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid #33453c;
  border-radius: var(--r-btn);
  padding: 0.5rem 0.875rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.lightbox__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------------------------------------------------------------- form - */

.form {
  display: grid;
  gap: 1.375rem;
  max-width: 38rem;
}

.formcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 620;
  margin-bottom: 0.4375rem;
}

.field .hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.4375rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 0.6875rem 0.8125rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

textarea {
  min-height: 9.5rem;
  resize: vertical;
}

select {
  height: 2.875rem;
  padding-block: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(33, 110, 57, 0.14);
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: #b42318;
}

.error {
  color: #b42318;
  font-size: 0.875rem;
  margin: 0.4375rem 0 0;
}

.req {
  color: var(--text-muted);
  font-weight: 400;
}

/* Off-screen rather than display:none — something that fills in forms reads
   the DOM, and a field with a real label and a real position is the one it
   fills. Out of the tab order and hidden from assistive technology, so nobody
   using the site ever meets it. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-dark);
  border-radius: var(--r-sm);
  background: var(--accent-tint);
  padding: 1.25rem 1.375rem;
  margin-bottom: 2rem;
}

.notice--error {
  border-left-color: #b42318;
  background: #fdf2f1;
}

.notice--warn {
  border-left-color: #b45309;
  background: #fdf6ec;
}

.notice h2 {
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

.ref {
  font-family: var(--mono);
  font-size: 0.9375rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 2px 7px;
}

/* ---------------------------------------------------------------- footer - */

.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding-block: clamp(3rem, 6vw, 4rem);
  font-size: 0.9375rem;
  border-top: 1px solid var(--border-dark);
}

.footer a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.footer a:hover {
  color: var(--accent);
}

.footer__grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }
}

.footer h2 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.5625rem;
}

.footer__base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.875rem;
}

.footer .wordmark {
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------ error page - */

.errorpage {
  padding-block: clamp(4rem, 12vw, 7rem);
}

.errorpage .code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.errorpage h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------- entrance - */

/*
 * A single entrance, once, on first paint — not a scroll-triggered system.
 * `no-js` never gets it, so the content is visible whatever happens, and
 * reduced-motion turns it off below.
 */
/*
 * One entrance, once, at first paint — and it moves, it does not hide.
 *
 * The obvious version fades opacity from 0 to 1. Measured in a headless
 * Chromium on this machine, the animation clock never advanced: the hero
 * artwork reported `opacity: 0` indefinitely, which is a blank hero for anybody
 * whose browser behaves the same way. Fill modes do not save it — the failure
 * is the animation not progressing, not the state after it ends.
 *
 * So the animation touches `transform` and nothing else. If the clock freezes,
 * the worst outcome is a block sitting twelve pixels lower than intended, which
 * nobody will ever notice. Content cannot be hidden by an effect that has no
 * way to hide it.
 */
html.js .reveal {
  animation: reveal 0.45s var(--ease);
}

@keyframes reveal {
  from {
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .card:focus-within,
  .zoom:hover {
    transform: none;
  }

  .card:hover .card__media img {
    transform: none;
  }
}

@media print {
  .masthead,
  .footer,
  .cta,
  .lightbox {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
