@layer ds.reset, ds.primitives, ds.theme, ds.base, ds.layout, ds.components, site.blocks;

@layer ds.reset {
/* Reset. Only the rules that earn their place. */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--ds-header-height) + var(--ds-space-sm));
}

body {
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

/*
 * One global escape hatch for people who asked their system to calm down. Components
 * are still expected to declare their own reduced-motion behavior where the static
 * state needs to differ — this only stops things moving.
 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

}

@layer ds.primitives {
/*
 * Primitives — the half of the design system a site never changes.
 *
 * Spacing rhythm, type scale, radii, motion and layout are identical on every
 * site. A site supplies color roles and optional font faces; the scales remain
 * library-owned.
 */

:root {
  /* Spacing. One scale, used for every margin, padding and gap on the site. */
  --ds-space-3xs: 0.25rem;
  --ds-space-2xs: 0.5rem;
  --ds-space-xs: 0.75rem;
  --ds-space-sm: 1rem;
  --ds-space-md: 1.25rem;
  --ds-space-lg: 1.5rem;
  --ds-space-xl: 2rem;
  --ds-space-2xl: 2.5rem;
  --ds-space-3xl: 3.5rem;
  --ds-space-4xl: 5rem;
  --ds-space-5xl: 7rem;

  /* Radii. Four steps. A rectangle that is not a control stays a rectangle. */
  --ds-radius-sm: 10px;
  --ds-radius-md: 16px;
  --ds-radius-lg: 22px;
  --ds-radius-pill: 999px;

  /* Type. Display and title scale with the viewport; body text does not. */
  --ds-font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ds-font-display: var(--ds-font-sans);
  --ds-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  --ds-text-display: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem);
  --ds-text-title: clamp(1.55rem, 1.3rem + 1.1vw, 2.25rem);
  --ds-text-subtitle: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  --ds-text-body: 1rem;
  --ds-text-small: 0.9375rem;
  --ds-text-caption: 0.8125rem;
  --ds-text-micro: 0.6875rem;

  /* Code sizes against the text it sits in, not against the root. */
  --ds-text-code: 0.9em;

  --ds-weight-regular: 400;
  --ds-weight-medium: 500;
  --ds-weight-semibold: 600;
  --ds-weight-bold: 700;

  --ds-leading-tight: 1.1;
  --ds-leading-snug: 1.35;
  --ds-leading-body: 1.6;
  --ds-tracking-tight: -0.02em;
  --ds-tracking-wide: 0.16em;

  /*
   * Two type-relative nudges. Both are `em` on purpose: an underline sitting under
   * 13px caption text and one under a 40px display heading are not the same distance.
   */
  --ds-underline-offset: 0.18em;
  --ds-align-nudge: 0.3em;

  /*
   * Motion. Content uses hover and focus feedback. The optional scroll-away Header
   * is the exception documented in docs/anti-patterns.md, `scroll-animation`.
   */
  --ds-motion-quick: 160ms;
  --ds-motion-settle: 320ms;
  --ds-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Layout. Breakpoints are 34rem / 52rem / 64rem, mobile-first. */
  --ds-content-max: 1120px;
  --ds-content-narrow: 720px;
  --ds-gutter: var(--ds-space-md);
  --ds-header-height: 3.75rem;
  --ds-section-space: var(--ds-space-4xl);

  /*
   * Measures. Every width, minimum width and minimum height in the system is a step
   * on this scale — a grid column before the grid drops one, a line of copy, the
   * frame a screenshot sits in. Values, not guesses, and the same ones twice.
   */
  --ds-measure-3xs: 9rem;
  --ds-measure-2xs: 12rem;
  --ds-measure-xs: 16rem;
  --ds-measure-sm: 18rem;
  --ds-measure-md: 20rem;
  --ds-measure-lg: 34rem;
  --ds-measure-xl: 36rem;
  --ds-measure-2xl: 40rem;

  /* Icons. Three sizes; --ds-icon-size is the one in force where an icon lands. */
  --ds-icon-sm: 1rem;
  --ds-icon-md: 1.125rem;
  --ds-icon-lg: 1.5rem;
  --ds-icon-size: var(--ds-icon-lg);
  --ds-icon-tile: 2.75rem;

  /*
   * Stacking order. Two things in the system leave the flow, and the gap between them
   * is deliberate: the chrome sits over the page, and the keyboard's route past the
   * chrome sits over that. A third number picked at the moment it was needed is how a
   * stylesheet ends up with 9999 in it, so this is a scale like any other.
   */
  --ds-layer-chrome: 20;
  --ds-layer-top: 100;

  /* Lines and rings. One hairline draws every boundary in the system. */
  --ds-hairline: 1px;
  --ds-focus-ring: 2px;
  --ds-focus-offset: 3px;

  --ds-tap-target: 44px;

  /*
   * The height of a one-line button: its line, its padding and its border. A control
   * that shares a row with a button, such as a store badge drawn from fixed artwork,
   * takes this height so the row lines up.
   */
  --ds-control-height: calc(
    var(--ds-text-small) * var(--ds-leading-body) + var(--ds-space-xs) * 2 + var(--ds-hairline) * 2
  );
}

@media (min-width: 52rem) {
  :root {
    --ds-gutter: var(--ds-space-xl);
    --ds-header-height: 4.25rem;
    --ds-section-space: var(--ds-space-5xl);
  }
}

}

@layer ds.theme {
:root {
  color-scheme: dark;

  --ds-bg: #07090d;
  --ds-surface: #11141b;
  --ds-surface-raised: #1a1e27;
  --ds-surface-sunken: #0b0e13;

  --ds-text: #eef1f7;
  --ds-text-muted: #a4adbd;
  --ds-text-faint: #8e98aa;

  --ds-accent: #5bc0de;
  --ds-accent-strong: #8ad7ec;
  --ds-on-accent: #04141b;

  --ds-border: rgb(238 241 247 / 0.1);
  --ds-border-strong: rgb(238 241 247 / 0.44);

  
  --wt-glass: rgb(30 34 43 / 0.97);
  --wt-quiet: #3ad16a;
  --wt-live: #ff8a2a;
  --wt-paused: #e6b450;
  --wt-wave: #ffa45c;
}
}

@layer ds.base {
/* Element defaults. Everything here reads a token; nothing here declares a value. */

body {
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  font-size: var(--ds-text-body);
  line-height: var(--ds-leading-body);
}

h1,
h2,
h3,
h4 {
  font-family: var(--ds-font-display);
  font-weight: var(--ds-weight-semibold);
  line-height: var(--ds-leading-tight);
  letter-spacing: var(--ds-tracking-tight);
  text-wrap: balance;
}

h1 {
  font-size: var(--ds-text-display);
}

h2 {
  font-size: var(--ds-text-title);
}

h3 {
  font-size: var(--ds-text-subtitle);
}

em {
  font-style: normal;
  font-weight: var(--ds-weight-medium);
}

a {
  color: inherit;
  text-decoration-color: var(--ds-border-strong);
  text-underline-offset: var(--ds-underline-offset);
  transition: text-decoration-color var(--ds-motion-quick) var(--ds-ease-out);
}

a:hover {
  text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}

/*
 * An outline already follows the corners of whatever it is drawn around, so the ring
 * needs no radius of its own. Setting one would round the element itself for as long
 * as it had focus — a focused thing changing shape, not a focused thing getting a
 * ring. Anything that wants a rounded ring has a rounded corner.
 */
:focus-visible {
  outline: var(--ds-focus-ring) solid var(--ds-accent);
  outline-offset: var(--ds-focus-offset);
}

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

hr {
  height: var(--ds-hairline);
  border: 0;
  background: var(--ds-border);
}

code,
kbd,
samp {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-code);
}

/* Shared by icon() and the low-level inlineIcon() helper used inside components. */
.ds-icon {
  flex: none;
  width: var(--ds-icon-size);
  height: var(--ds-icon-size);
}

/*
 * Clipped to a hairline rather than hidden, so it is still read aloud. Shared by
 * visuallyHidden() and by any control whose accessible name is a state the reader is
 * shown as a glyph — the same reason .ds-icon lives here rather than in one atom.
 */
.ds-visually-hidden {
  position: absolute;
  width: var(--ds-hairline);
  height: var(--ds-hairline);
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/*
 * Shared styling keeps icon-only controls consistent. It lives in ds.base, below
 * component layers, so individual controls can override size or color states.
 */
.ds-icon-button {
  display: grid;
  place-items: center;
  width: var(--ds-tap-target);
  height: var(--ds-tap-target);
  border: 0;
  border-radius: var(--ds-radius-sm);
  background: transparent;
  color: var(--ds-text-muted);
  cursor: pointer;
}

.ds-icon-button:hover {
  color: var(--ds-text);
}

/* Keyboard-only route past the header, revealed on focus. */
.ds-skip-link {
  position: absolute;
  top: var(--ds-space-2xs);
  left: var(--ds-space-2xs);
  z-index: var(--ds-layer-top);
  padding: var(--ds-space-2xs) var(--ds-space-sm);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-accent);
  color: var(--ds-on-accent);
  text-decoration: none;
  transform: translateY(-200%);
}

/*
 * `:focus`, not `:focus-visible`: this is the one element whose whole purpose is to
 * appear when it is focused, and a link focused by script or by a touch-and-hold is
 * still a link somebody has to be able to see.
 */
.ds-skip-link:focus {
  transform: translateY(0);
}

}

@layer ds.layout {
.ds-cluster {
  --_cluster-space: var(--ds-space-sm);

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--_cluster-space);
}

.ds-cluster--xs {
  --_cluster-space: var(--ds-space-xs);
}

.ds-cluster--lg {
  --_cluster-space: var(--ds-space-lg);
}

.ds-cluster--between {
  justify-content: space-between;
}

.ds-container {
  width: 100%;
  max-width: calc(var(--ds-content-max) + var(--ds-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--ds-gutter);
}

.ds-container--narrow {
  max-width: calc(var(--ds-content-narrow) + var(--ds-gutter) * 2);
}

.ds-grid {
  --_grid-min: var(--ds-grid-min, var(--ds-measure-xs));
  --_grid-space: var(--ds-space-md);

  display: grid;
  gap: var(--_grid-space);
  grid-template-columns: repeat(auto-fit, minmax(min(var(--_grid-min), 100%), 1fr));
}

.ds-grid--lg {
  --_grid-space: var(--ds-space-lg);
}

.ds-grid--cell-md {
  --_grid-min: var(--ds-grid-min, var(--ds-measure-md));
}

.ds-split {
  display: grid;
  gap: var(--ds-space-2xl);
  align-items: center;
}

@media (min-width: 52rem) {
  .ds-split {
    grid-template-columns: var(--ds-split-columns, 1fr 1fr);
    gap: var(--ds-space-3xl);
  }
}

.ds-stack {
  --_stack-space: var(--ds-space-sm);

  display: flex;
  flex-direction: column;
  gap: var(--_stack-space);
}

.ds-stack--2xs {
  --_stack-space: var(--ds-space-2xs);
}

.ds-stack--xs {
  --_stack-space: var(--ds-space-xs);
}

.ds-stack--md {
  --_stack-space: var(--ds-space-md);
}

.ds-stack--lg {
  --_stack-space: var(--ds-space-lg);
}

.ds-stack--xl {
  --_stack-space: var(--ds-space-xl);
}

.ds-stack--2xl {
  --_stack-space: var(--ds-space-2xl);
}

}

@layer ds.components {
.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-3xs);
  padding: var(--ds-space-3xs) var(--ds-space-2xs);
  border: var(--ds-hairline) solid var(--ds-border-strong);
  border-radius: var(--ds-radius-pill);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-micro);
  font-weight: var(--ds-weight-semibold);
  letter-spacing: var(--ds-tracking-wide);
  text-transform: uppercase;
}

.ds-badge--accent {
  border-color: transparent;
  background: var(--ds-accent);
  color: var(--ds-on-accent);
}

.ds-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2xs);
  font-weight: var(--ds-weight-semibold);
  letter-spacing: var(--ds-tracking-tight);
  text-decoration: none;
}

.ds-brand__logo {
  width: var(--ds-space-4xl);
  height: auto;
}

.ds-brand__copy {
  display: flex;
  flex-direction: column;
}

.ds-brand__tagline {
  color: var(--ds-text-muted);
  font-size: var(--ds-text-caption);
  font-weight: var(--ds-weight-regular);
  letter-spacing: normal;
  line-height: var(--ds-leading-tight);
}

.ds-brand--bottom {
  flex-direction: column;
  text-align: center;
}

/*
 * The lockup as a dense row of controls wants it — a page header, and anything else
 * that is a bar with a name at one end.
 *
 * Small and square, because at this size what reads is the app icon rather than the
 * artwork; and the tagline waits for a viewport wide enough to carry it, because on a
 * phone a second line here is the height of the whole bar spent on a subtitle nobody
 * came for. Both live on the atom, so the Header and any other bar get them from
 * `brand({ compact: true })`.
 */
.ds-brand--compact .ds-brand__logo {
  width: var(--ds-space-2xl);
  aspect-ratio: 1;
  border-radius: var(--ds-radius-sm);
}

.ds-brand--compact .ds-brand__tagline {
  display: none;
}

@media (min-width: 52rem) {
  .ds-brand--compact .ds-brand__tagline {
    display: block;
  }
}

.ds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2xs);
  /* control-height is this box's own height, stated once so a neighbor can match it. */
  min-height: max(var(--ds-tap-target), var(--ds-control-height));
  padding: var(--ds-space-xs) var(--ds-space-md);
  border: var(--ds-hairline) solid transparent;
  border-radius: var(--ds-button-radius, var(--ds-radius-pill));
  font-size: var(--ds-text-small);
  font-weight: var(--ds-button-weight, var(--ds-weight-medium));
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--ds-motion-quick) var(--ds-ease-out),
    border-color var(--ds-motion-quick) var(--ds-ease-out),
    color var(--ds-motion-quick) var(--ds-ease-out);
}

.ds-button--primary {
  background: var(--ds-accent);
  color: var(--ds-on-accent);
}

.ds-button--primary:hover {
  background: var(--ds-accent-strong);
}

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

.ds-button--ghost:hover {
  border-color: var(--ds-text-faint);
  background: var(--ds-surface-raised);
}

.ds-button__icon {
  display: contents;
  --ds-icon-size: var(--ds-icon-md);
}

@media (prefers-reduced-motion: reduce) {
  .ds-button {
    transition: none;
  }
}

/*
 * A chip is read, not scanned past, so it is drawn the way a surface is: a raised fill
 * that separates it from the page in every palette, with the hairline only as an edge.
 * A hairline alone, at the strength of --ds-border, disappears on a dark page.
 */
.ds-chip {
  display: inline-block;
  padding: var(--ds-space-3xs) var(--ds-space-xs);
  border: var(--ds-hairline) solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-surface-raised);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-caption);
  font-weight: var(--ds-weight-semibold);
}

.ds-eyebrow {
  margin-bottom: var(--ds-space-xs);
  color: var(--ds-text-faint);
  font-size: var(--ds-text-caption);
  font-weight: var(--ds-weight-medium);
  letter-spacing: var(--ds-tracking-wide);
  text-transform: uppercase;
}

.ds-icon-tile {
  display: grid;
  place-items: center;
  width: var(--ds-icon-tile);
  height: var(--ds-icon-tile);
  border: var(--ds-hairline) solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface-raised);
  color: var(--ds-accent);
}

/*
 * The shape is `.ds-icon-button` in src/styles/base.css. All this adds is the pull that sets
 * the glyph flush with the gutter, because this is the last control in the bar.
 */
.ds-nav-toggle {
  margin-right: calc(var(--ds-space-2xs) * -1);
}

/* One button, two icons: whichever one is not the current state is not drawn. */
.ds-nav-toggle[aria-expanded='true'] .ds-nav-toggle__menu,
.ds-nav-toggle[aria-expanded='false'] .ds-nav-toggle__close {
  display: none;
}

.ds-note {
  max-width: var(--ds-content-narrow);
  margin-top: var(--ds-space-lg);
  color: var(--ds-text-faint);
  font-size: var(--ds-text-caption);
}

.ds-prose {
  max-width: var(--ds-content-narrow);
  color: var(--ds-text-muted);
}

.ds-prose > * + * {
  margin-top: var(--ds-space-sm);
}

.ds-prose > * + h2 {
  margin-top: var(--ds-space-2xl);
}

/* h4 is here because a prose() inside a subsection() has its headings demoted. */
.ds-prose > * + :is(h3, h4) {
  margin-top: var(--ds-space-xl);
}

.ds-prose :is(h2, h3, h4) {
  color: var(--ds-text);
}

.ds-prose a {
  color: var(--ds-accent);
}

.ds-prose ul {
  padding-left: var(--ds-space-md);
  list-style: disc;
}

.ds-prose li + li {
  margin-top: var(--ds-space-2xs);
}

.ds-prose li::marker {
  color: var(--ds-text-faint);
}

.ds-prose strong {
  color: var(--ds-text);
  font-weight: var(--ds-weight-semibold);
}

/*
 * One button, every state: the one in force is drawn and the rest are not drawn and
 * not read aloud. Which one that is, is an attribute rather than a selector per
 * palette — a site with five palettes needs no more CSS than a site with two.
 */
.ds-theme-toggle__option {
  display: none;
}

.ds-theme-toggle__option[data-active] {
  display: grid;
  place-items: center;
}

.ds-card {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-xs);
  padding: var(--ds-card-padding, var(--ds-space-lg));
  border: var(--ds-hairline) solid var(--ds-border);
  border-radius: var(--ds-card-radius, var(--ds-radius-md));
  background: var(--ds-card-surface, var(--ds-surface));
}

/* The title and its supporting copy form one information group (proximity). */
.ds-card__copy {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3xs);
}

.ds-card__title {
  font-size: var(--ds-text-subtitle);
  font-weight: var(--ds-weight-semibold);
}

.ds-card__body {
  color: var(--ds-text-muted);
  font-size: var(--ds-text-small);
}

.ds-card__list {
  padding-left: var(--ds-space-md);
  list-style: disc;
}

.ds-card__list li + li {
  margin-top: var(--ds-space-3xs);
}

.ds-card__media {
  --_card-inset: var(--ds-card-padding, var(--ds-space-lg));

  overflow: hidden;
  margin: calc(var(--_card-inset) * -1) calc(var(--_card-inset) * -1) var(--ds-space-2xs);
  border-radius: var(--ds-card-radius, var(--ds-radius-md)) var(--ds-card-radius, var(--ds-radius-md)) 0 0;
  background: var(--ds-surface-sunken);
}

.ds-definitions {
  display: grid;
  gap: var(--ds-space-xs);
}

.ds-definitions__row {
  display: grid;
  gap: var(--ds-space-3xs);
  padding-block: var(--ds-space-xs);
  border-top: var(--ds-hairline) solid var(--ds-border);
}

.ds-definitions__term {
  color: var(--ds-text-faint);
  font-size: var(--ds-text-caption);
  letter-spacing: var(--ds-tracking-wide);
  text-transform: uppercase;
}

@media (min-width: 34rem) {
  .ds-definitions__row {
    grid-template-columns: var(--ds-measure-2xs) 1fr;
    gap: var(--ds-space-md);
    align-items: baseline;
  }
}

.ds-faq {
  max-width: var(--ds-content-narrow);
  padding-inline: var(--ds-space-md);
  background: var(--ds-surface);
  border: var(--ds-hairline) solid var(--ds-border);
}

.ds-faq__item {
  border-bottom: var(--ds-hairline) solid var(--ds-border);
}

.ds-faq__item:last-child {
  border-bottom: none;
}

.ds-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-sm);
  padding-block: var(--ds-space-md);
  cursor: pointer;
  list-style: none;
}

/*
 * The question carries a heading element for the outline, and the type of the line it
 * always was: an FAQ is a list of questions, not a run of subtitles.
 */
.ds-faq__title {
  font-size: var(--ds-text-body);
  font-weight: var(--ds-weight-semibold);
  line-height: var(--ds-leading-snug);
  letter-spacing: normal;
}

.ds-faq__question::-webkit-details-marker {
  display: none;
}

.ds-faq__icon {
  display: flex;
  --ds-icon-size: var(--ds-icon-md);
  color: var(--ds-text-faint);
  transition: transform var(--ds-motion-quick) var(--ds-ease-out);
}

.ds-faq__item[open] .ds-faq__icon {
  transform: rotate(180deg);
}

.ds-faq__answer {
  margin-bottom: var(--ds-space-md);
  padding-left: var(--ds-space-sm);
  padding-bottom: var(--ds-space-md);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-small);
  max-width: var(--ds-measure-lg);
}

@media (min-width: 52rem) {
  .ds-faq {
    padding-inline: var(--ds-space-xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds-faq__icon {
    transition: none;
  }
}

.ds-figure {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2xs);
}

.ds-figure__frame {
  overflow: hidden;
  border: var(--ds-hairline) solid var(--ds-border);
  border-radius: var(--ds-figure-radius, var(--ds-radius-md));
  background: var(--ds-surface-sunken);
}

.ds-figure__frame img {
  width: 100%;
  height: auto;
}

.ds-figure__empty {
  display: grid;
  place-items: center;
  min-height: var(--ds-measure-2xs);
  padding: var(--ds-space-md);
  color: var(--ds-text-faint);
  font-size: var(--ds-text-caption);
  text-align: center;
}

.ds-figure__caption {
  color: var(--ds-text-faint);
  font-size: var(--ds-text-caption);
}

.ds-plan {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-lg);
  padding: var(--ds-space-lg);
  border: var(--ds-hairline) solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
}

.ds-plan--featured {
  border-color: var(--ds-accent);
}

.ds-plan__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: var(--ds-space-xl);
  align-items: center;
  column-gap: var(--ds-space-sm);
}

.ds-plan__name {
  font-size: var(--ds-text-subtitle);
  font-weight: var(--ds-weight-semibold);
}

.ds-plan__cost {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-xs);
}

.ds-plan__price-group {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3xs);
}

.ds-plan__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--ds-space-xs);
}

.ds-plan__previous-price {
  color: var(--ds-text-faint);
  font-size: var(--ds-text-subtitle);
  font-variant-numeric: tabular-nums;
  line-height: var(--ds-leading-tight);
  text-decoration: line-through;
}

.ds-plan__price {
  font-size: var(--ds-text-title);
  font-variant-numeric: tabular-nums;
  font-weight: var(--ds-weight-semibold);
  letter-spacing: var(--ds-tracking-tight);
  line-height: var(--ds-leading-tight);
}

.ds-plan__price-note {
  color: var(--ds-text-faint);
  font-size: var(--ds-text-caption);
  line-height: var(--ds-leading-snug);
}

.ds-plan__lead {
  color: var(--ds-text-muted);
  font-size: var(--ds-text-small);
}

.ds-plan__features {
  padding-top: var(--ds-space-md);
  border-top: var(--ds-hairline) solid var(--ds-border);
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2xs);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-small);
}

.ds-plan__features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--ds-space-2xs);
  align-items: start;
}

.ds-plan__feature-icon {
  display: flex;
  --ds-icon-size: var(--ds-icon-sm);

  margin-top: var(--ds-align-nudge);
  color: var(--ds-accent);
}

.ds-plan__action {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2xs);
  padding-top: var(--ds-space-md);
  border-top: var(--ds-hairline) solid var(--ds-border);
  color: var(--ds-accent);
  font-size: var(--ds-text-caption);
  font-weight: var(--ds-weight-semibold);
  text-decoration: none;
}

.ds-plan__action:hover {
  color: var(--ds-accent-strong);
}

.ds-plan__action-icon {
  display: flex;
  --ds-icon-size: var(--ds-icon-sm);
}

.ds-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-lg) var(--ds-space-2xl);
}

.ds-proof__item {
  max-width: var(--ds-measure-sm);
}

.ds-proof__term {
  font-size: var(--ds-text-small);
  font-weight: var(--ds-weight-semibold);
}

.ds-proof__text {
  margin-top: var(--ds-space-3xs);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-caption);
  line-height: var(--ds-leading-snug);
}

.ds-proof--pills {
  padding: 0;
  list-style: none;
  gap: var(--ds-space-2xs);
}

.ds-steps {
  border-bottom: var(--ds-hairline) solid var(--ds-border);
}

.ds-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--ds-space-sm) var(--ds-space-md);
  padding-block: var(--ds-space-md);
  border-top: var(--ds-hairline) solid var(--ds-border);
}

.ds-step__index {
  grid-row: span 2;
  color: var(--ds-accent);
  font-size: var(--ds-text-subtitle);
  font-variant-numeric: tabular-nums;
  font-weight: var(--ds-weight-semibold);
}

.ds-step__title {
  font-size: var(--ds-text-subtitle);
  font-weight: var(--ds-weight-semibold);
}

.ds-step__body {
  grid-column: 2;
  color: var(--ds-text-muted);
  font-size: var(--ds-text-small);
}

.ds-table-scroll {
  overflow-x: auto;
  margin-block: var(--ds-space-md);
  border: var(--ds-hairline) solid var(--ds-border);
  border-radius: var(--ds-radius-md);
}

.ds-table__caption {
  padding: var(--ds-space-xs) var(--ds-space-sm);
  border-bottom: var(--ds-hairline) solid var(--ds-border);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-caption);
  text-align: left;
}

.ds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ds-text-caption);
  text-align: left;
}

.ds-table th,
.ds-table td {
  padding: var(--ds-space-xs) var(--ds-space-sm);
  vertical-align: top;
}

.ds-table thead th {
  border-bottom: var(--ds-hairline) solid var(--ds-border-strong);
  color: var(--ds-text);
  font-weight: var(--ds-weight-semibold);
  white-space: nowrap;
}

.ds-table tbody tr + tr td {
  border-top: var(--ds-hairline) solid var(--ds-border);
}

.ds-cta {
  padding-block: var(--ds-section-space);
  border-top: var(--ds-hairline) solid var(--ds-border);
}

.ds-cta__inner {
  max-width: var(--ds-content-narrow);
}

.ds-cta__lead {
  margin-top: var(--ds-space-sm);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-subtitle);
  line-height: var(--ds-leading-snug);
}

.ds-cta__actions {
  margin-top: var(--ds-space-xl);
}

.ds-cta__note {
  margin-top: var(--ds-space-md);
  color: var(--ds-text-faint);
  font-size: var(--ds-text-caption);
}

.ds-cta__note a {
  color: var(--ds-accent);
}

.ds-footer {
  padding-block: var(--ds-space-3xl) var(--ds-space-xl);
  border-top: var(--ds-hairline) solid var(--ds-border);
  background: var(--ds-surface-sunken);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-small);
}

.ds-footer__top {
  display: grid;
  gap: var(--ds-space-2xl);
}

.ds-footer__blurb {
  max-width: var(--ds-measure-lg);
}

.ds-footer__contact {
  margin-top: var(--ds-space-sm);
}

.ds-footer__contact a {
  color: var(--ds-accent);
  text-decoration: none;
}

.ds-footer__columns {
  display: grid;
  gap: var(--ds-space-lg);
  grid-template-columns: repeat(auto-fit, minmax(var(--ds-measure-3xs), 1fr));
}

.ds-footer__column-title {
  margin-bottom: var(--ds-space-2xs);
  color: var(--ds-text);
  font-size: var(--ds-text-caption);
  font-weight: var(--ds-weight-semibold);
  letter-spacing: var(--ds-tracking-wide);
  text-transform: uppercase;
}

.ds-footer__column li + li {
  margin-top: var(--ds-space-3xs);
}

.ds-footer__column a {
  text-decoration: none;
}

.ds-footer__column a:hover {
  color: var(--ds-text);
}

.ds-footer__legal {
  margin-top: var(--ds-space-2xl);
  padding-top: var(--ds-space-md);
  border-top: var(--ds-hairline) solid var(--ds-border);
  color: var(--ds-text-faint);
  font-size: var(--ds-text-caption);
}

.ds-footer__legal p + p {
  margin-top: var(--ds-space-3xs);
}

@media (min-width: 52rem) {
  .ds-footer__top--with-intro {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--ds-space-4xl);
  }
}

.ds-header {
  position: sticky;
  top: 0;
  z-index: var(--ds-layer-chrome);
  border-bottom: var(--ds-hairline) solid var(--ds-border);
  background: var(--ds-bg);
}

.ds-header[data-hide-on-scroll] {
  transition: transform var(--ds-motion-quick) var(--ds-ease-out);
}

.ds-header[data-scroll-hidden]:not(:focus-within) {
  transform: translateY(-100%);
}

/* A keyboard user must see the newly focused control immediately. */
.ds-header:focus-within {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .ds-header[data-hide-on-scroll] {
    transition: none;
  }
}

.ds-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-sm);
  min-height: var(--ds-header-height);
}

/* The lockup is `brand({ compact: true })`; the header places it and styles none of it. */

.ds-header__end {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2xs);
}

.ds-header__toggle {
  display: contents;
}

.ds-header__nav {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  display: none;
  flex-direction: column;
  gap: var(--ds-space-2xs);
  padding: var(--ds-space-sm) var(--ds-gutter) var(--ds-space-md);
  border-bottom: var(--ds-hairline) solid var(--ds-border);
  background: var(--ds-bg);
}

.ds-header__nav[data-open] {
  display: flex;
}

.ds-header__link {
  padding-block: var(--ds-space-2xs);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-small);
  text-decoration: none;
}

.ds-header__link:hover,
.ds-header__link[aria-current] {
  color: var(--ds-text);
}

@media (min-width: 52rem) {
  .ds-header__end {
    gap: var(--ds-space-lg);
  }

  .ds-header__toggle {
    display: none;
  }

  .ds-header__nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--ds-space-lg);
    padding: 0;
    border-bottom: 0;
  }
}

/*
 * Centered between the header and the first section: the space above the copy is one
 * section-space, and the space below it is the next section's own padding, so the
 * hero adds none at the bottom. Its visual may cast a shadow past that edge, so only
 * the horizontal overflow is clipped — that is the one that would scroll the page.
 */
.ds-hero {
  position: relative;
  padding-block: var(--ds-section-space) 0;
  overflow-x: clip;
}

.ds-hero__inner {
  display: grid;
  gap: var(--ds-space-3xl);
  align-items: center;
}

.ds-hero__copy {
  max-width: var(--ds-measure-2xl);
}

.ds-hero__title {
  margin-top: var(--ds-space-xs);
}

.ds-hero__lead {
  margin-top: var(--ds-space-md);
  max-width: var(--ds-measure-xl);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-subtitle);
  line-height: var(--ds-leading-snug);
}

.ds-hero__actions {
  margin-top: var(--ds-space-xl);
}

.ds-hero__proof {
  margin-top: var(--ds-space-2xl);
}

.ds-hero__visual {
  position: relative;
  min-height: var(--ds-hero-visual-height, var(--ds-measure-md));
}

@media (min-width: 64rem) {
  .ds-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.ds-document {
  padding-block: var(--ds-space-2xl) var(--ds-section-space);
}

.ds-document__section + .ds-document__section {
  margin-top: var(--ds-space-2xl);
}

.ds-document__section h2 {
  font-size: var(--ds-text-subtitle);
}

.ds-document__section h2 a {
  color: inherit;
  text-decoration: none;
}

.ds-document__body {
  margin-top: var(--ds-space-2xs);
}

.ds-page-header {
  padding-top: var(--ds-space-3xl);
}

.ds-page-header__content {
  padding-bottom: var(--ds-space-xl);
  border-bottom: calc(var(--ds-hairline) * 2) solid var(--ds-border-strong);
}

.ds-page-header__byline {
  margin-top: var(--ds-space-2xs);
  color: var(--ds-text-faint);
  font-size: var(--ds-text-caption);
}

.ds-section {
  padding-block: var(--ds-section-space);
}

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

.ds-section__head {
  max-width: var(--ds-content-narrow);
  margin-bottom: var(--ds-space-2xl);
}

.ds-section__head:empty {
  display: none;
}

.ds-section__lead {
  margin-top: var(--ds-space-sm);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-subtitle);
  line-height: var(--ds-leading-snug);
}

.ds-section__cta {
  margin-top: var(--ds-space-xl);
}

/* By class, not by element: a nested group's own title is an h4, or lower. */
.ds-subsection__title {
  margin-bottom: var(--ds-space-md);
}

}

@layer site.blocks {
/*
 * Apple's artwork is 40px tall and a button is taller, so the badge is drawn at the
 * button's height and the row lines up. Width follows, so the artwork keeps its
 * proportions.
 */
.wt-app-store-badge,
.wt-app-store-badge img {
  display: block;
}

.wt-app-store-badge img {
  width: auto;
  height: var(--ds-control-height);
}

/*
 * The hero scene: WireTrap's menu bar panel, drawn in CSS, cycling through the app's
 * three states — quiet, then a microphone going live, then monitoring paused. This is
 * WireTrap's one decorative motif; no other page uses it.
 *
 * One --wt-cycle drives every keyframe, so the menu bar item, the panel and the
 * notification stay in step. There is no script: the states are layers stacked in one
 * grid cell, and the keyframes fade between them.
 */

.wt-scene {
  --wt-cycle: 13s;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-md);
  padding: var(--ds-space-md);
  overflow: hidden;
  border: var(--ds-hairline) solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface-sunken);
  font-size: var(--ds-text-small);
  line-height: var(--ds-leading-snug);
}

/* Each state's words share a cell, so the panel never resizes as the words change. */
.wt-layers {
  display: grid;
  min-width: 0;
}

.wt-layers > * {
  grid-area: 1 / 1;
}

/*
 * The resting state is quiet. Every layer that belongs to another state starts
 * transparent, which is also what reduced motion leaves on screen.
 */
.wt-phase--live,
.wt-phase--paused {
  opacity: 0;
}

.wt-phase--quiet {
  animation: wt-quiet var(--wt-cycle) infinite;
}

.wt-phase--live {
  animation: wt-live var(--wt-cycle) infinite;
}

.wt-phase--paused {
  animation: wt-paused var(--wt-cycle) infinite;
}

.wt-phase--on {
  animation: wt-on var(--wt-cycle) infinite;
}

.wt-phase--rest {
  animation: wt-rest var(--wt-cycle) infinite;
}

/* --- the menu bar ------------------------------------------------------------ */

/*
 * App menus on the left, WireTrap and the clock on the right — enough for the strip to
 * read as a menu bar rather than as placeholder bars waiting to load.
 */
.wt-menubar {
  display: flex;
  align-items: center;
  gap: var(--ds-space-sm);
  padding: var(--ds-space-3xs) var(--ds-space-sm);
  border-radius: var(--ds-radius-pill);
  background: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 var(--ds-hairline) rgb(255 255 255 / 0.08);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-caption);
  line-height: var(--ds-leading-tight);
  white-space: nowrap;
}

.wt-menubar__app {
  color: var(--ds-text);
  font-weight: var(--ds-weight-bold);
}

/* A small phone has no slack in the strip, so the last menu title steps out. */
.wt-menubar__menu--wide {
  display: none;
}

@media (min-width: 34rem) {
  .wt-menubar__menu--wide {
    display: inline;
  }
}

/* The status item highlights the way one does when its app has something to say. */
.wt-menubar__item {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-inline-start: auto;
  border-radius: var(--ds-radius-pill);
  color: var(--ds-text);
  --ds-icon-size: var(--ds-icon-sm);
  animation: wt-menubar-tint var(--wt-cycle) infinite;
}

.wt-menubar__glyph {
  place-items: center;
  font-weight: var(--ds-weight-semibold);
}

.wt-menubar__ping {
  position: absolute;
  inset: 0;
  border-radius: var(--ds-radius-pill);
  box-shadow: 0 0 0 var(--ds-hairline) currentColor;
  opacity: 0;
  animation: wt-ping var(--wt-cycle) infinite;
}

.wt-menubar__clock {
  font-variant-numeric: tabular-nums;
}

/* --- the panel --------------------------------------------------------------- */

/* It drops from the status item, so it hangs from the right of the menu bar. */
.wt-panel {
  align-self: flex-end;
  width: 100%;
  max-width: var(--ds-measure-md);
  padding: var(--ds-space-md);
  border-radius: var(--ds-radius-md);
  background: var(--wt-glass);
  box-shadow:
    0 1.5rem 3.5rem rgb(0 0 0 / 0.6),
    inset 0 0 0 var(--ds-hairline) rgb(255 255 255 / 0.12);
}

/*
 * Spacing is a margin on the following row rather than a gap, because the "Active now"
 * row collapses to nothing while no device is live — a gap would leave its empty slot
 * behind. That row carries its spacing inside itself, so it shuts with it.
 */
.wt-panel > * + * {
  margin-block-start: var(--ds-space-sm);
}

.wt-panel > .wt-panel__active {
  margin-block-start: 0;
}

.wt-panel__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--ds-space-xs);
}

/* The status disc carries the state: its colour, and a halo while a device is live. */
.wt-panel__status {
  place-items: center;
  width: var(--ds-icon-tile);
  height: var(--ds-icon-tile);
  border-radius: var(--ds-radius-pill);
  background: rgb(255 255 255 / 0.07);
  color: var(--wt-quiet);
  --ds-icon-size: var(--ds-icon-md);
  animation: wt-status-tint var(--wt-cycle) infinite;
}

.wt-panel__titles {
  display: grid;
  gap: var(--ds-space-3xs);
  min-width: 0;
}

.wt-panel__title {
  color: var(--ds-text);
  font-weight: var(--ds-weight-bold);
}

.wt-panel__detail {
  color: var(--ds-text-muted);
  font-size: var(--ds-text-micro);
}

.wt-panel__toggle {
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--ds-radius-pill);
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 var(--ds-hairline) rgb(255 255 255 / 0.12);
  color: var(--ds-text);
  --ds-icon-size: 0.75rem;
}

.wt-panel__badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-2xs);
}

.wt-badge {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2xs);
  min-width: 0;
  padding: var(--ds-space-xs);
  border-radius: var(--ds-radius-sm);
  background-color: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 var(--ds-hairline) rgb(255 255 255 / 0.07);
  color: var(--ds-text-muted);
  --ds-icon-size: var(--ds-icon-md);
}

.wt-badge--mic {
  animation: wt-badge-tint var(--wt-cycle) infinite;
}

.wt-badge__text {
  display: grid;
  gap: var(--ds-space-3xs);
  min-width: 0;
}

.wt-badge__label {
  font-size: var(--ds-text-micro);
  line-height: var(--ds-leading-tight);
}

.wt-badge__state {
  color: var(--ds-text);
  font-size: var(--ds-text-caption);
  font-weight: var(--ds-weight-semibold);
  line-height: var(--ds-leading-tight);
}

/*
 * The real panel lists active devices only while something is active, so the row
 * shuts with them — a quiet panel that keeps an empty slot open reads as half-loaded.
 * It shuts by its grid track rather than a guessed height, so the copy can be any
 * length. The scene's frame is a fixed box, so nothing outside it moves either way.
 */
.wt-panel__active {
  display: grid;
  grid-template-rows: 0fr;
  animation: wt-collapse var(--wt-cycle) infinite;
}

.wt-panel__active-inner {
  display: grid;
  gap: var(--ds-space-2xs);
  min-height: 0;
  padding-block-start: var(--ds-space-sm);
  overflow: hidden;
  opacity: 0;
  animation: wt-rise var(--wt-cycle) infinite;
}

.wt-panel__active-label {
  color: var(--ds-text-muted);
  font-size: var(--ds-text-micro);
  font-weight: var(--ds-weight-bold);
  letter-spacing: var(--ds-tracking-wide);
  text-transform: uppercase;
}

.wt-panel__active-row {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2xs);
  color: var(--ds-text);
  font-size: var(--ds-text-caption);
  font-weight: var(--ds-weight-semibold);
}

.wt-wave {
  display: flex;
  align-items: flex-end;
  gap: var(--ds-space-3xs);
  height: 0.9rem;
}

.wt-wave i {
  width: 0.15rem;
  height: 0.25rem;
  border-radius: var(--ds-radius-pill);
  background: var(--wt-wave);
  animation: wt-wave 1s ease-in-out infinite;
}

.wt-wave i:nth-child(2) {
  animation-delay: 0.12s;
}

.wt-wave i:nth-child(3) {
  animation-delay: 0.26s;
}

.wt-wave i:nth-child(4) {
  animation-delay: 0.38s;
}

/* Drawn, not a link: the whole scene is a picture of the app. */
.wt-panel__button {
  display: grid;
  place-items: center;
  min-height: 2.25rem;
  padding: var(--ds-space-2xs) var(--ds-space-sm);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-accent);
  color: var(--ds-on-accent);
  font-size: var(--ds-text-caption);
  font-weight: var(--ds-weight-semibold);
}

/* --- the notification -------------------------------------------------------- */

/* Pinned to the bottom of the frame, clear of the panel's button in every state. */
.wt-alert {
  position: absolute;
  inset-inline-start: var(--ds-space-md);
  inset-block-end: var(--ds-space-md);
  display: flex;
  align-items: center;
  gap: var(--ds-space-xs);
  width: min(18.5rem, calc(100% - var(--ds-space-md) * 2));
  padding: var(--ds-space-xs) var(--ds-space-sm);
  border-radius: var(--ds-radius-md);
  background: var(--wt-glass);
  box-shadow:
    0 1.2rem 2.6rem rgb(0 0 0 / 0.7),
    inset 0 0 0 var(--ds-hairline) rgb(255 255 255 / 0.14);
  opacity: 0;
  animation: wt-alert-in var(--wt-cycle) infinite;
}

.wt-alert__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--ds-radius-pill);
  background: color-mix(in srgb, var(--wt-live) 18%, transparent);
  color: var(--wt-live);
  --ds-icon-size: var(--ds-icon-sm);
}

.wt-alert__text {
  display: grid;
  gap: var(--ds-space-3xs);
  min-width: 0;
  line-height: var(--ds-leading-tight);
}

.wt-alert__text b {
  color: var(--ds-text);
  font-size: var(--ds-text-caption);
}

.wt-alert__text span {
  color: var(--ds-text-muted);
  font-size: var(--ds-text-micro);
}

/* --- the cycle --------------------------------------------------------------- */

@keyframes wt-quiet {
  0%, 30% { opacity: 1; }
  32%, 96% { opacity: 0; }
  98%, 100% { opacity: 1; }
}

@keyframes wt-live {
  0%, 31% { opacity: 0; }
  33%, 63% { opacity: 1; }
  65%, 100% { opacity: 0; }
}

@keyframes wt-paused {
  0%, 65% { opacity: 0; }
  67%, 95% { opacity: 1; }
  97%, 100% { opacity: 0; }
}

@keyframes wt-on {
  0%, 64% { opacity: 1; }
  66%, 96% { opacity: 0; }
  98%, 100% { opacity: 1; }
}

@keyframes wt-rest {
  0%, 31% { opacity: 1; }
  33%, 63% { opacity: 0; }
  65%, 100% { opacity: 1; }
}

@keyframes wt-status-tint {
  0%, 30% {
    background-color: rgb(255 255 255 / 0.07);
    box-shadow: 0 0 0 0 transparent;
    color: var(--wt-quiet);
  }
  33%, 63% {
    background-color: color-mix(in srgb, var(--wt-live) 18%, transparent);
    box-shadow: 0 0 1.4rem -0.1rem color-mix(in srgb, var(--wt-live) 40%, transparent);
    color: var(--wt-live);
  }
  67%, 95% {
    background-color: color-mix(in srgb, var(--wt-paused) 14%, transparent);
    box-shadow: 0 0 0 0 transparent;
    color: var(--wt-paused);
  }
  100% {
    background-color: rgb(255 255 255 / 0.07);
    box-shadow: 0 0 0 0 transparent;
    color: var(--wt-quiet);
  }
}

@keyframes wt-menubar-tint {
  0%, 30% { background-color: transparent; color: var(--ds-text); }
  33%, 63% { background-color: color-mix(in srgb, var(--wt-live) 18%, transparent); color: var(--wt-live); }
  67%, 95% { background-color: transparent; color: var(--ds-text-muted); }
  100% { background-color: transparent; color: var(--ds-text); }
}

@keyframes wt-badge-tint {
  0%, 31% {
    background-color: rgb(255 255 255 / 0.04);
    box-shadow: inset 0 0 0 var(--ds-hairline) rgb(255 255 255 / 0.07);
    color: var(--ds-text-muted);
  }
  34%, 63% {
    background-color: color-mix(in srgb, var(--wt-live) 15%, transparent);
    box-shadow: inset 0 0 0 var(--ds-hairline) color-mix(in srgb, var(--wt-live) 36%, transparent);
    color: var(--wt-live);
  }
  66%, 100% {
    background-color: rgb(255 255 255 / 0.04);
    box-shadow: inset 0 0 0 var(--ds-hairline) rgb(255 255 255 / 0.07);
    color: var(--ds-text-muted);
  }
}

@keyframes wt-collapse {
  0%, 31% { grid-template-rows: 0fr; }
  34%, 63% { grid-template-rows: 1fr; }
  66%, 100% { grid-template-rows: 0fr; }
}

@keyframes wt-rise {
  0%, 32% { opacity: 0; transform: translateY(0.35rem); }
  36%, 62% { opacity: 1; transform: none; }
  65%, 100% { opacity: 0; transform: translateY(0.35rem); }
}

@keyframes wt-alert-in {
  0%, 34% { opacity: 0; transform: translate(1.1rem, 0.3rem) scale(0.97); }
  40% { opacity: 1; transform: translate(-0.12rem, 0) scale(1.01); }
  44%, 58% { opacity: 1; transform: none; }
  64%, 100% { opacity: 0; transform: translate(1.1rem, 0.3rem) scale(0.97); }
}

@keyframes wt-ping {
  0%, 33% { opacity: 0; transform: scale(0.5); }
  36% { opacity: 0.8; transform: scale(0.9); }
  46%, 100% { opacity: 0; transform: scale(1.8); }
}

@keyframes wt-wave {
  50% { height: 0.85rem; }
}

/*
 * Reduced motion rests on the quiet state: every layer's own opacity, the active row
 * shut and the notification hidden — a complete panel, not a frozen frame of a fade.
 */
@media (prefers-reduced-motion: reduce) {
  .wt-scene,
  .wt-scene *,
  .wt-scene .wt-wave i {
    animation: none;
  }
}

/*
 * The frame is a fixed box sized for the tallest state, so the cycle never moves the
 * page: the hero reserves exactly this much room whichever state is showing.
 */
.ds-hero__visual:has(.wt-scene) {
  --ds-hero-visual-height: 28rem;
}

@media (min-width: 34rem) {
  .wt-scene {
    padding: var(--ds-space-lg);
  }

  .wt-alert {
    inset-inline-start: var(--ds-space-lg);
    inset-block-end: var(--ds-space-lg);
  }
}

/*
 * The product tour. Static, it is a row of links and four screens one under another;
 * tour.client.js makes the row a tablist and shows one screen at a time. Both states
 * are styled here from the same classes, so the upgrade changes behaviour, not layout.
 *
 * The row wraps rather than scrolls: a tab hidden past the edge of a phone is a tab
 * nobody finds.
 */

.wt-tour {
  display: grid;
  gap: var(--ds-space-xl);
}

.wt-tour__list,
.wt-tour__tabs[role='tablist'] {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2xs);
}

.wt-tour__list {
  padding: 0;
  list-style: none;
}

.wt-tour__tab {
  display: inline-flex;
  align-items: center;
  min-height: var(--ds-tap-target);
  padding: var(--ds-space-2xs) var(--ds-space-sm);
  border: var(--ds-hairline) solid var(--ds-border-strong);
  border-radius: var(--ds-radius-pill);
  background: transparent;
  color: var(--ds-text);
  font: inherit;
  font-size: var(--ds-text-small);
  font-weight: var(--ds-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--ds-motion-quick) var(--ds-ease-out),
    border-color var(--ds-motion-quick) var(--ds-ease-out),
    color var(--ds-motion-quick) var(--ds-ease-out);
}

.wt-tour__tab:hover {
  border-color: var(--ds-accent-strong);
}

.wt-tour__tab[aria-selected='true'] {
  border-color: var(--ds-accent);
  background: var(--ds-accent);
  color: var(--ds-on-accent);
}

@media (prefers-reduced-motion: reduce) {
  .wt-tour__tab {
    transition: none;
  }
}

/* Read without script, the screens are a list of their own, a step apart. */
.wt-tour__panes {
  display: grid;
  gap: var(--ds-space-3xl);
}

.wt-tour__pane {
  display: grid;
  gap: var(--ds-space-md);
}

/* `display: grid` above would otherwise outrank the browser's own rule for [hidden]. */
.wt-tour__pane[hidden] {
  display: none;
}

.wt-tour__title {
  font-size: var(--ds-text-subtitle);
  font-weight: var(--ds-weight-semibold);
}

.wt-tour__body {
  max-width: var(--ds-measure-2xl);
  color: var(--ds-text-muted);
}

}

@layer ds.theme {
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/IBMPlexSans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/IBMPlexSans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/IBMPlexSans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/IBMPlexSans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ds-font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
}