/* ==========================================================================
   Canopy — landing page
   --------------------------------------------------------------------------
    1. Tokens          5. Hero             9. Developers
    2. Base            6. Platform        10. Early access
    3. Primitives      7. Network         11. Footer
    4. Navigation      8. Applications    12. Motion
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */

/* Metric-matched fallback so text does not shift when the webfont arrives. */
@font-face {
  font-family: "Jakarta Fallback";
  src: local("Arial");
  size-adjust: 105%;
  ascent-override: 98.8%;
  descent-override: 21.1%;
  line-gap-override: 0%;
}

:root {
  /* The accent: a deep violet, the same on both themes, with a white label.
     Change it here and the buttons, highlights and both animated figures
     follow. It has three roles:
       --accent       the fill of labelled controls, with --accent-ink on it
       --accent-text  the accent as small text: 4.5:1 or better on the page
       --accent-mark  the accent as a fine line or data mark: 3:1 or better
     On the dark page the accent itself is too deep for text and thin marks,
     so those take lighter tints of the same hue. On the light page it is its
     own mark colour, and text needs only a slightly deeper shade. */
  --accent: #9a43f6;
  --accent-ink: #ffffff;
  --accent-text: #bc91fd;
  --accent-mark: #aa69fd;

  /* One colour for each example network, in the order they are listed. Five
     steps of one chart palette, ordered so that neighbours in a stack stay
     apart for colour-blind readers, and chosen away from the accent so a
     network is never mistaken for Canopy itself. They are generic chart
     colours, not the carriers' brand colours. */
  --net-1: #0ca30c;
  --net-2: #d55181;
  --net-3: #c98500;
  --net-4: #199e70;
  --net-5: #d95926;

  /* Surfaces and text */
  --bg: #050708;
  --card: #0b0e0f;
  --card-hover: #0d1112;
  --fg: #fcfcfd;
  --fg-2: #a3a6a8;
  --fg-3: #7f8386;
  --danger: #ff7a70;

  /* The foreground as channels, for see-through lines and washes. */
  --ink: 252 252 254;
  --line: rgb(var(--ink) / 0.08);
  --line-2: rgb(var(--ink) / 0.14);
  --line-3: rgb(var(--ink) / 0.24);
  --wash: rgb(var(--ink) / 0.04);
  --glow: rgb(var(--ink) / 0.045);

  /* Code */
  --code: #b9bcbe;
  --code-strong: #e6e7e8;
  --code-dim: #5d6164;
  --code-faint: #474b4e;

  /* Solid shapes inside icons and the animated figures */
  --glyph: #101415;
  --figure-node: #0c1011;
  --figure-core: #20262a;
  --figure-core-2: #0a0d0e;

  --font-sans: "Plus Jakarta Sans", "Jakarta Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1232px;
  --gutter: clamp(20px, 5vw, 40px);
  --nav-h: 56px;
  --radius: 8px;
  --radius-sm: 6px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* The light version. The public page is always dark and does not use this;
   it is kept ready. Only colours change: to use it, set data-theme="light"
   on <html>. */
:root[data-theme="light"] {
  --accent-text: #8d4bdb;
  --accent-mark: var(--accent);

  /* The same hues, in the palette's steps for a light surface. */
  --net-1: #008300;
  --net-2: #e87ba4;
  --net-3: #eda100;
  --net-4: #1baf7a;
  --net-5: #eb6834;

  --bg: #f6f7f7;
  --card: #ffffff;
  --card-hover: #fafbfb;
  --fg: #0b0d0e;
  --fg-2: #50565b;
  --fg-3: #686e73;
  --danger: #c62f27;

  --ink: 8 10 12;
  --line: rgb(var(--ink) / 0.1);
  --line-2: rgb(var(--ink) / 0.16);
  --line-3: rgb(var(--ink) / 0.3);
  --wash: rgb(var(--ink) / 0.035);
  --glow: rgb(255 255 255 / 0.9);

  --code: #3d4347;
  --code-strong: #0b0d0e;
  --code-dim: #868c91;
  --code-faint: #a6abaf;

  --glyph: #f1f3f4;
  --figure-node: #ffffff;
  --figure-core: #ffffff;
  --figure-core-2: #e6e9eb;

  color-scheme: light;
}

/* 2. Base
   ========================================================================== */

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
figure,
ul,
ol,
dl,
dd,
pre {
  margin: 0;
}

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

a {
  color: inherit;
}

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

canvas,
svg {
  display: block;
}

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

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

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.25rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* 3. Primitives
   ========================================================================== */

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

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--fg);
}

/* The mark: one arc over the diamond from the figures. It appears once on
   the page, in the early-access card, and as the tab icon. */
.mark-bg {
  fill: var(--accent);
}

.mark-fg {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 3.1;
}

.mark-dot {
  fill: var(--accent-ink);
}

.brand-name {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-accent:hover {
  background: color-mix(in srgb, var(--accent) 86%, #000);
}

.btn-ghost {
  background: var(--bg);
  border-color: var(--line-2);
  color: var(--fg);
}

.btn-ghost:hover {
  background: var(--card);
  border-color: var(--line-3);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.icon {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

/* Small labels */
.kicker {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px 0 10px;
  background: var(--wash);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--fg-2);
}

.pill-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-mark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-mark) 22%, transparent);
  animation: pip 2.6s var(--ease) infinite;
}

.tag {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--fg-3);
}

/* Sections */
.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.feature-text,
.section-sub {
  max-width: 31rem;
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-2);
  text-wrap: pretty;
}

.section-head {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-sub {
  max-width: 41rem;
}

/* Panels: the product-style surfaces every feature is shown on. */
.panel {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--fg-2);
}

.panel-title,
.panel-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-foot {
  padding: 12px 16px 13px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--fg-3);
}

.panel-foot-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  color: var(--fg-2);
}

.panel-label {
  font-weight: 600;
  color: var(--fg);
}

.panel-meta {
  color: var(--fg-3);
}

/* Marks a figure inside a panel as made-up data. */
.sample {
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg-3);
}

.figure-value {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-text);
}

/* Code */
.code {
  padding: 16px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--code);
  scrollbar-width: thin;
}

.code:focus-visible {
  outline-offset: -2px;
}

.code code {
  display: grid;
  width: max-content;
  min-width: 100%;
  font: inherit;
  counter-reset: line;
}

.code-line {
  display: block;
  min-height: 1.7em;
  padding-right: 20px;
  white-space: pre;
  border-left: 2px solid transparent;
  transition: opacity 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.code-line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 3.2em;
  padding-right: 1.3em;
  text-align: right;
  color: var(--code-faint);
  -webkit-user-select: none;
  user-select: none;
}

.code-plain .code-line {
  padding-left: 16px;
}

.code-plain .code-line::before {
  content: none;
}

.code-sep {
  display: block;
  height: 1px;
  margin: 12px 16px;
  background: var(--line);
}

.code-copy {
  height: 28px;
  min-width: 58px;
  padding: 0 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-2);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.code-copy:hover {
  background: var(--wash);
  border-color: var(--line);
  color: var(--fg);
}

/* Syntax: structure recedes, the values you set come forward. */
.tk-k,
.tk-d {
  color: var(--fg-3);
}

.tk-p {
  color: var(--code-dim);
}

.tk-a {
  color: var(--fg-2);
}

.tk-f {
  color: var(--code-strong);
}

.tk-s {
  color: var(--fg);
}

.tk-m {
  color: var(--fg);
  font-weight: 500;
}

.tk-ok {
  color: var(--accent-text);
}

/* 4. Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--fg-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-links a:hover {
  background: var(--wash);
  color: var(--fg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 36px;
  margin-right: -11px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::after {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}

.nav-toggle-bars {
  top: 14px;
}

.nav-toggle-bars::after {
  content: "";
  left: 0;
  top: 7px;
}

.nav.is-open .nav-toggle-bars {
  transform: translateY(3.5px) rotate(45deg);
}

.nav.is-open .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-90deg);
}

@media (max-width: 767px) {
  .nav-inner {
    gap: 12px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px var(--gutter) 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
  }

  .nav.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav-links a {
    padding: 14px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    color: var(--fg);
  }

  .nav-links a:hover {
    background: none;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }
}

/* 5. Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(64% 72% at 72% 46%, var(--glow), transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(48px, 9vw, 72px) 8px;
}

.hero-copy {
  max-width: 37rem;
}

.hero-title {
  margin-top: 0;
  font-size: clamp(2.25rem, 11vw, 4.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-title-line {
  display: block;
}

.hero-sub {
  max-width: 34rem;
  margin-top: 20px;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--fg-2);
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Where a metrics row would go, three plain statements of what it is. */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin-top: 36px;
}

.facts li {
  display: grid;
  gap: 3px;
}

.facts strong {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.facts span {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--fg-2);
}

.hero-visual {
  position: relative;
  z-index: 1;
  height: 340px;
}

.hero-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-legend-wrap {
  position: relative;
  z-index: 2;
  padding-bottom: 32px;
}

.hero-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--fg-2);
}

.hero-legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-legend svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.hero-legend .legend-pill {
  width: 20px;
}

.hero-legend-note {
  margin-top: 8px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--fg-3);
}

@media (max-width: 479px) {
  .hero-cta .btn {
    width: 100%;
  }

  /* Three even columns, so the row never leaves one fact on its own. */
  .facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 960px) {
  .hero-inner {
    display: flex;
    align-items: center;
    min-height: clamp(540px, 74vh, 640px);
    padding-block: 48px 88px;
  }

  .hero-title {
    font-size: clamp(3.25rem, 5.2vw, 4.5rem);
  }

  /* The figure fills the hero and fades out behind the copy. */
  .hero-visual {
    position: absolute;
    inset: 0;
    height: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 64%);
    mask-image: linear-gradient(90deg, transparent 40%, #000 64%);
  }

  .hero-legend-wrap {
    position: absolute;
    inset: auto 0 22px;
    padding-bottom: 0;
  }

  .hero-legend {
    justify-content: flex-end;
  }

  .hero-legend-note {
    text-align: right;
  }
}

/* 6. Platform
   ========================================================================== */

.steps {
  display: grid;
  gap: 6px;
  margin-top: 28px;
}

.step-btn {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  padding: 14px 16px 16px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.step-btn:hover {
  background: var(--wash);
}

.step.is-active .step-btn {
  background: var(--card);
  border-color: var(--line);
}

.step-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  color: var(--fg-2);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.step.is-active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.step-title {
  display: block;
  padding-top: 1px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fg-2);
  transition: color 0.3s var(--ease);
}

.step-desc {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--fg-3);
  transition: color 0.3s var(--ease);
}

.step-btn:hover .step-title,
.step.is-active .step-title {
  color: var(--fg);
}

.step.is-active .step-desc {
  color: var(--fg-2);
}

/* The active step's lower edge fills while it holds the stage. When the fill
   completes, the script advances to the next step. */
.step-progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--accent-mark);
  transform: scaleX(0);
  transform-origin: left;
}

.step.is-active .step-progress {
  animation: step-progress 4.6s linear forwards;
}

.steps.is-manual .step-progress {
  animation: none !important;
  transform: scaleX(0);
}

.steps.is-paused .step-progress {
  animation-play-state: paused;
}

/* Lines belonging to the active step come forward; the rest recede. */
.code[data-active-step] .code-line {
  opacity: 0.5;
}

.code[data-active-step="1"] .code-line[data-step="1"],
.code[data-active-step="2"] .code-line[data-step="2"],
.code[data-active-step="3"] .code-line[data-step="3"] {
  opacity: 1;
  background: var(--wash);
  border-left-color: var(--accent-mark);
}

@media (hover: hover) {
  .feature:hover .step-progress {
    animation-play-state: paused;
  }

  .code-window:hover .code[data-active-step] .code-line {
    opacity: 1;
  }
}

/* 7. Network
   ========================================================================== */

/* Routing: what the policy optimizes for, one choice at a time. */
.modes {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.mode {
  height: 28px;
  padding: 0 12px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--fg-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.mode:hover {
  border-color: var(--line-3);
  color: var(--fg);
}

.mode[aria-checked="true"],
.mode[aria-checked="true"]:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* The line under the choices fills while one holds the stage. When it
   completes, the script moves on to the next. */
.modes-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--accent-mark);
  transform: scaleX(0);
  transform-origin: left;
}

.modes-progress.is-running {
  animation: step-progress 7s linear forwards;
}

.modes.is-manual .modes-progress {
  animation: none;
}

.modes.is-paused .modes-progress {
  animation-play-state: paused;
}

@media (hover: hover) {
  .routing-panel:hover .modes-progress {
    animation-play-state: paused;
  }
}

/* The networks listed on the right, with a canvas behind them drawing the
   split of sessions toward each one. */
.routing {
  position: relative;
  padding: 10px 0;
}

.routing canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.routes {
  position: relative;
  width: min(54%, 300px);
  margin-left: auto;
}

.route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 46px;
  padding: 0 16px 0 2px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-2);
  transition: color 0.4s var(--ease);
}

.route:first-child {
  border-top: 0;
}

.route-share {
  min-width: 4ch;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-align: right;
  transition: color 0.4s var(--ease);
}

.route.is-top {
  color: var(--fg);
}

.route.is-top .route-share {
  color: var(--accent-text);
}

/* Marks our own network among the others. */
.route-tag {
  margin: 0 auto 0 -4px;
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg-3);
}

@media (max-width: 479px) {
  .route-tag {
    display: none;
  }
}

/* One line of explanation per choice. They share a grid cell, so the panel
   keeps the height of the longest and never jumps as they change. */
.mode-notes {
  display: grid;
  padding: 13px 16px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--fg-2);
}

.mode-note {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}

.mode-note.is-active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.mode-note b {
  font-weight: 600;
  color: var(--fg);
}

/* Failover: a strip of recent time slices per network, and one for the
   connection as a whole. */
.uptime-row {
  padding: 13px 16px 15px;
}

.uptime-row + .uptime-row {
  border-top: 1px solid var(--line);
}

.uptime-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  font-weight: 500;
}

.uptime-name {
  transition: color 0.3s var(--ease);
}

.uptime-state {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--fg-3);
}

.uptime-row[data-state="down"] .uptime-name {
  color: var(--fg-3);
}

.uptime-total .uptime-state {
  color: var(--accent-text);
}

.ticks {
  display: flex;
  gap: 3px;
  height: 8px;
  overflow: hidden;
}

/* Before the script fills the strip, show a neutral one. */
.ticks:empty {
  background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 11px);
}

/* Each network keeps one colour wherever it appears: in these strips, in
   the usage chart and in the policy panel. */
.uptime-row:nth-child(1),
.chips .chip:nth-child(1) {
  --net: var(--net-1);
}

.uptime-row:nth-child(2),
.chips .chip:nth-child(2) {
  --net: var(--net-2);
}

.uptime-row:nth-child(3),
.chips .chip:nth-child(3) {
  --net: var(--net-3);
}

.uptime-row:nth-child(4),
.chips .chip:nth-child(4) {
  --net: var(--net-4);
}

.uptime-row:nth-child(5),
.chips .chip:nth-child(5) {
  --net: var(--net-5);
}

/* A time slice in its network's colour, fading as the network degrades. */
.tick {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2px;
  background: var(--net, rgb(var(--ink) / 0.3));
}

.tick[data-level="weak"] {
  background: color-mix(in srgb, var(--net, rgb(var(--ink) / 0.4)) 34%, transparent);
}

.tick[data-level="down"] {
  background: rgb(var(--ink) / 0.045);
}

.uptime-total .tick {
  background: var(--accent-mark);
}

.tick.is-new {
  animation: tick-in 0.5s var(--ease-out) both;
}

/* Usage dashboard */
.dash {
  padding: 18px 16px 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats dt {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--fg-2);
}

.stats dd {
  margin-top: 3px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.delta {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent-text);
}

.chart {
  width: 100%;
  height: 132px;
  margin-top: 20px;
  overflow: visible;
}

.chart rect {
  stroke: var(--card);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* One series per network, with a clear gap between neighbours in a stack. */
.s1 {
  fill: var(--net-1);
  background: var(--net-1);
}

.s2 {
  fill: var(--net-2);
  background: var(--net-2);
}

.s3 {
  fill: var(--net-3);
  background: var(--net-3);
}

.s4 {
  fill: var(--net-4);
  background: var(--net-4);
}

.s5 {
  fill: var(--net-5);
  background: var(--net-5);
}

.chart .bar {
  transform-box: fill-box;
  transform-origin: bottom;
}

.will-reveal:not(.is-revealed) .chart .bar,
.will-reveal:not(.is-revealed) .meter-fill {
  transform: scale(1, 0.05);
}

.will-reveal:not(.is-revealed) .meter-fill {
  transform: scale(0.02, 1);
}

.is-revealed .chart .bar,
.is-revealed .meter-fill {
  transition: transform 1s var(--ease-out) 0.15s;
}

.is-revealed .chart .bar:nth-child(3n + 2) {
  transition-delay: 0.23s;
}

.is-revealed .chart .bar:nth-child(3n + 3) {
  transition-delay: 0.31s;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--fg-2);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.budget {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.budget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.budget-amount {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fg-2);
}

.meter {
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgb(var(--ink) / 0.07);
  overflow: hidden;
}

.meter-fill {
  display: block;
  width: 69.15%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-mark);
  transform-origin: left;
}

.budget p {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--fg-3);
}

/* Policy editor */
.policy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--fg-2);
}

.policy-row + .policy-row {
  border-top: 1px solid var(--line);
}

.policy-row code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg);
}

.policy-row-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-block: 14px 16px;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 2px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
}

.segmented button {
  height: 26px;
  padding: 0 10px;
  background: none;
  border: 0;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-2);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.segmented button:hover {
  color: var(--fg);
}

.segmented [aria-checked="true"],
.segmented [aria-checked="true"]:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* On a phone the choices wrap to two rows and share each row evenly. */
@media (max-width: 479px) {
  .policy-row-stack .segmented {
    display: flex;
    width: 100%;
  }

  .policy-row-stack .segmented button {
    flex: 1 1 auto;
  }
}

.switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex: none;
  padding: 0;
  background: rgb(var(--ink) / 0.16);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fg);
  transition: transform 0.25s var(--ease-out), background-color 0.2s var(--ease);
}

.switch[aria-checked="true"] {
  background: var(--accent);
}

.switch[aria-checked="true"] .switch-thumb {
  background: var(--accent-ink);
  transform: translateX(16px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-3);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

/* A dot of the network's colour, dimmed while the network is switched off. */
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--net, var(--accent-mark));
  opacity: 0.35;
  transition: opacity 0.2s var(--ease);
}

.chip:hover {
  color: var(--fg);
}

.chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--net, var(--accent-mark)) 13%, transparent);
  border-color: color-mix(in srgb, var(--net, var(--accent-mark)) 55%, transparent);
  color: var(--fg);
}

.chip[aria-pressed="true"]::before {
  opacity: 1;
}

/* A plain checklist of short labels. */
.ticklist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 24px;
  margin-top: 28px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.ticklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ticklist .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  stroke-width: 1.9;
  color: var(--accent-text);
}

.checks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 32px;
  margin-top: 32px;
}

.check {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
}

.check .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  stroke-width: 1.9;
  color: var(--accent-text);
}

.check p {
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--fg-2);
}

/* 8. Applications
   ========================================================================== */

.apps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.app {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.app:hover {
  background: var(--card-hover);
  border-color: var(--line-2);
}

.app-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.glyph {
  width: 24px;
  height: 24px;
  fill: var(--glyph);
  stroke: var(--fg);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glyph .open {
  fill: none;
}

.glyph .solid {
  fill: var(--fg);
  stroke: none;
}

.app > p {
  margin-top: 14px;
  padding-bottom: 18px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--fg-2);
}

/* Same call, different device: every application is the one platform. */
.app-slug {
  margin: auto -20px 0;
  padding: 11px 20px 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg-3);
}

.app-slug span {
  color: var(--fg-2);
  transition: color 0.25s var(--ease);
}

.app:hover .app-slug span {
  color: var(--accent-text);
}

/* 9. Developers
   ========================================================================== */

.spec {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.spec-row {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}

.spec-row dt {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.spec-row dd {
  max-width: 33rem;
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--fg-2);
}

.reference .panel-bar {
  padding-left: 4px;
}

.ref-tabs {
  display: flex;
  align-self: stretch;
}

.ref-tab {
  position: relative;
  padding: 0 12px;
  background: none;
  border: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-2);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.ref-tab::after {
  content: "";
  position: absolute;
  inset: auto 12px -1px;
  height: 2px;
  background: var(--accent-mark);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}

.ref-tab:hover,
.ref-tab[aria-selected="true"] {
  color: var(--fg);
}

.ref-tab[aria-selected="true"]::after {
  transform: none;
}

.ref-tab:focus-visible {
  outline-offset: -4px;
}

.ref-panel {
  min-height: 26.5rem;
}

.ref-panel[hidden] {
  display: none;
}

.ref-panel:focus-visible {
  outline-offset: -2px;
}

/* The event stream's lines sit directly in the code grid. */
.stream {
  display: contents;
}

.stream .is-new {
  animation: stream-in 0.6s var(--ease-out) both;
}

/* 10. Early access
   ========================================================================== */

.cta {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding: clamp(24px, 4.6vw, 56px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.cta-copy {
  display: flex;
  flex-direction: column;
}

/* Concentric rings around the mark, echoing the hero figure. */
.cta-orbit {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin: auto 0 28px 18%;
}

.cta-orbit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 1100px;
  height: 660px;
  transform: translate(-50%, -50%);
  background: repeating-radial-gradient(ellipse at center, transparent 0 51px, rgb(var(--ink) / 0.055) 51px 52px);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 8%, transparent 62%);
  mask-image: radial-gradient(ellipse at center, #000 8%, transparent 62%);
  pointer-events: none;
}

.cta-mark {
  position: relative;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--accent) 45%, transparent));
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg-2);
}

.label-hint {
  font-size: 0.75rem;
  font-weight: 450;
  color: var(--fg-3);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--fg);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  height: auto;
  min-height: 96px;
  padding: 11px 12px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--line-3);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent-mark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-mark) 22%, transparent);
}

.field input:-webkit-autofill,
.field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--fg);
  caret-color: var(--fg);
  box-shadow: 0 0 0 1000px var(--bg) inset;
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field [aria-invalid="true"]:focus-visible {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent);
}

.field-error {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--danger);
}

.field-error[hidden] {
  display: none;
}

/* Honeypot: off-screen for people, present for bots. */
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.access-form .btn {
  margin-top: 6px;
}

.form-status {
  min-height: 1.4em;
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--danger);
}

.form-success:focus {
  outline: none;
}

.form-success-title {
  margin-top: 20px;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.form-success-body {
  margin-top: 10px;
  color: var(--fg-2);
}

/* Without JavaScript the server redirects to #request-received. */
.form-success:target {
  display: block;
}

.form-success:target + .access-form {
  display: none;
}

/* 11. Footer
   ========================================================================== */

.footer {
  padding: 44px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--fg-2);
}

.footer-inner {
  display: grid;
  gap: 28px 48px;
}

.footer-brand {
  display: grid;
  gap: 12px;
  justify-items: start;
  color: var(--fg-3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  font-weight: 500;
  text-decoration: none;
  color: var(--fg-2);
  transition: color 0.2s var(--ease);
}

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

.footer-note {
  max-width: 46rem;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--fg-3);
}

/* Layout: tablet and up
   ========================================================================== */

@media (max-width: 479px) {
  /* Keep the widest code line inside a phone-width panel. */
  .code {
    font-size: 0.75rem;
  }

  .code-line::before {
    width: 2.7em;
    padding-right: 1em;
  }

  .code-line {
    padding-right: 14px;
  }

  .panel-bar .tag {
    display: none;
  }

  .panel-bar .code-copy {
    margin-left: auto;
  }
}

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

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

@media (min-width: 960px) {
  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(48px, 7vw, 96px);
  }

  .feature-flip {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  /* Copy always comes first in the source. A flipped feature shows it on
     the right, so the panels alternate sides down the page. */
  .feature-flip .feature-copy {
    order: 1;
  }

  .feature-top {
    align-items: start;
  }

  .reference {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
  }

  .apps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(48px, 7vw, 96px);
  }

  .cta-orbit {
    display: block;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

/* 12. Motion
   ========================================================================== */

/* Hero entrance — plain CSS, so it plays without waiting for script. */
.hero [data-enter] {
  animation: enter 0.9s var(--ease-out) both;
}

.hero [data-enter="1"] {
  animation-delay: 0.06s;
}

.hero [data-enter="2"] {
  animation-delay: 0.14s;
}

.hero [data-enter="3"] {
  animation-delay: 0.22s;
}

.hero [data-enter="4"] {
  animation-delay: 0.3s;
}

.hero [data-enter="fade"] {
  animation-name: fade;
  animation-duration: 1.6s;
  animation-delay: 0.25s;
}

/* Scroll reveal — the script only hides what is still below the fold. */
.will-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.will-reveal.is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.8s var(--ease-out) var(--reveal-delay, 0ms);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes pip {
  50% {
    opacity: 0.35;
  }
}

@keyframes step-progress {
  to {
    transform: none;
  }
}

@keyframes stream-in {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
}

@keyframes tick-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .step-progress,
  .modes-progress {
    animation: none !important;
  }
}
