/*
 * Constellation marketing site.
 * Colour, radius and shadow tokens are copied from the app (src/app/globals.css) so the two stay one brand.
 */

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin-wght.3100e775e8.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback so text does not jump when Inter arrives. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Arimo"), local("Liberation Sans");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

:root {
  --font: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --navy: #0f172a;
  --navy-700: #1b2540;
  --navy-600: #26324f;
  --primary: #1e40af;
  --primary-hover: #1a3794;
  --primary-soft: #e9eefb;
  --star: #7ea2ff;
  --muted: #64748b;
  --subtle: #94a3b8;
  --bg: #f8f6f6;
  --surface: #ffffff;
  --border: #e6e2df;
  --border-strong: #d6d1cd;

  --success: #10b981;
  --success-soft: #e3f6ee;
  --success-ink: #047857;
  --warning: #f59e0b;
  --warning-soft: #fdf1d7;
  --warning-ink: #b45309;
  --danger: #ef4444;
  --danger-soft: #fde8e8;
  --danger-ink: #b91c1c;

  --radius: 14px;
  --shadow-card: 0 1px 2px rgb(15 23 42 / 0.04);
  --shadow-pop: 0 12px 32px rgb(15 23 42 / 0.16), 0 2px 6px rgb(15 23 42 / 0.08);
  --shadow-float: 0 30px 60px -20px rgb(15 23 42 / 0.35), 0 8px 20px -8px rgb(15 23 42 / 0.2);

  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
p {
  text-wrap: pretty;
}
:where(ul, ol)[role="list"] {
  list-style: none;
  padding: 0;
}
a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--primary-hover);
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
main:focus {
  outline: none;
}
.i {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}
.tabular {
  font-variant-numeric: tabular-nums;
}
.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--navy);
  font-weight: 600;
  box-shadow: var(--shadow-pop);
}
.skip:focus {
  top: 12px;
}
.eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn .i {
  width: 18px;
  height: 18px;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-hover);
  color: #fff;
}
.btn--secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  background: var(--bg);
  color: var(--navy);
}
.btn--ghost-dark {
  color: #fff;
  border-color: rgb(255 255 255 / 0.22);
}
.btn--ghost-dark:hover {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}
.btn--lg {
  min-height: 50px;
  padding: 0 22px;
  font-size: 16px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow .i {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}
.link-arrow:hover .i {
  transform: translateX(2px);
}

/* Single-column grids on small screens must never grow wider than the screen. */
.hero__grid,
.duo,
.feature,
.band,
.closing,
.chapter__head,
.tally,
.site-footer__grid,
.roadmap,
.cards,
.lane-list,
.rules,
.story {
  grid-template-columns: minmax(0, 1fr);
}

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

.site-header {
  position: relative;
  z-index: 50;
  background: var(--navy);
  color: #fff;
}
.site-header :focus-visible,
.dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--star);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover {
  color: #fff;
}
.brand__mark {
  width: 24px;
  height: 24px;
  color: var(--star);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand__sub {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.5);
}
.site-nav {
  display: none;
  gap: 4px;
}
.site-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  color: rgb(255 255 255 / 0.72);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.06);
}
.site-nav a[aria-current="page"] {
  color: #fff;
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -13px;
  height: 2px;
  border-radius: 2px;
  background: var(--star);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.site-header__actions .btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}
.site-header__early {
  display: none !important;
}
.menu {
  position: static;
}
.menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  list-style: none;
  cursor: pointer;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary:hover {
  background: rgb(255 255 255 / 0.08);
}
.menu summary .i {
  width: 22px;
  height: 22px;
}
.menu__close,
.menu[open] .menu__open {
  display: none;
}
.menu[open] .menu__close {
  display: inline-block;
}
.menu__panel {
  position: absolute;
  top: 64px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--navy-700);
  border: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: var(--shadow-pop);
}
.menu__panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  color: rgb(255 255 255 / 0.85);
  font-weight: 500;
  text-decoration: none;
}
.menu__panel a:hover,
.menu__panel a[aria-current="page"] {
  background: rgb(255 255 255 / 0.07);
  color: #fff;
}
@media (max-width: 359px) {
  .site-header__actions > .btn--primary {
    display: none;
  }
}
@media (min-width: 880px) {
  .site-nav {
    display: flex;
  }
  .site-header__early {
    display: inline-flex !important;
  }
  .menu {
    display: none;
  }
}

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

.site-footer {
  border-top: 1px solid rgb(255 255 255 / 0.08);
  background: var(--navy);
  color: rgb(255 255 255 / 0.62);
  font-size: 14px;
}
.site-footer__grid {
  display: grid;
  gap: 40px;
  padding-block: 56px 40px;
}
.site-footer__brand p {
  max-width: 34ch;
  margin-top: 16px;
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.site-footer__nav h2 {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.4);
}
.site-footer__nav a {
  display: block;
  padding: 6px 0;
  color: rgb(255 255 255 / 0.78);
  text-decoration: none;
}
.site-footer__nav a:hover {
  color: #fff;
}
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 13px;
  color: rgb(255 255 255 / 0.45);
}
.site-footer__base a {
  color: rgb(255 255 255 / 0.65);
}
@media (min-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* ------------------------------------------------------------------------------------- page parts */

.dark {
  background: var(--navy);
  color: #fff;
}
.section {
  padding-block: 72px;
}
@media (min-width: 1024px) {
  .section {
    padding-block: 112px;
  }
}
.section--white {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.875rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.section-head p {
  margin-top: 18px;
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--muted);
}
.dark .section-head p {
  color: rgb(255 255 255 / 0.68);
}
.dark .eyebrow {
  color: var(--star);
}
.num {
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  margin-right: 10px;
}
.dark .num {
  color: var(--star);
}

/* Figure captions: small, muted, labelled like an editorial figure. */
.fig figcaption {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.fig figcaption b {
  color: var(--navy);
  font-weight: 600;
}
.dark .fig figcaption {
  color: rgb(255 255 255 / 0.55);
}
.dark .fig figcaption b {
  color: #fff;
}

/* Status labels used on the roadmap and teasers. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tag--now {
  background: var(--success-soft);
  color: var(--success-ink);
}
.tag--soon {
  background: var(--primary-soft);
  color: var(--primary);
}
.tag--later {
  background: rgb(15 23 42 / 0.06);
  color: var(--navy);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero__sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: 56px;
  padding-block: 56px 72px;
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 7.2vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero h1 em {
  font-style: normal;
  color: var(--star);
}
.hero__lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.55;
  color: rgb(255 255 255 / 0.72);
}
.hero .btn-row {
  margin-top: 32px;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: rgb(255 255 255 / 0.6);
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__facts .i {
  width: 16px;
  height: 16px;
  color: var(--star);
}
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}
.hero__visual .ui-done {
  position: absolute;
  bottom: -12px;
  left: 0;
  width: min(280px, 86%);
  box-shadow: var(--shadow-float);
}
@media (min-width: 520px) {
  .hero__visual .ui-done {
    left: calc(50% - 230px);
  }
}
.hero__visual figcaption {
  position: absolute;
  bottom: -64px;
  left: 0;
  right: 0;
}
@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    padding-block: 88px 112px;
  }
  .hero__visual .ui-done {
    left: 0;
    bottom: 40px;
  }
}

/* Page hero for inner pages. */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.page-hero .wrap {
  position: relative;
  padding-block: 56px 64px;
}
.page-hero h1 {
  margin-top: 16px;
  max-width: 18ch;
  font-size: clamp(2.25rem, 5.6vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.page-hero p {
  margin-top: 20px;
  max-width: 40em;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: rgb(255 255 255 / 0.7);
}
.page-hero .eyebrow {
  color: var(--star);
}
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.2);
  color: rgb(255 255 255 / 0.85);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.jump a:hover {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}
@media (min-width: 1024px) {
  .page-hero .wrap {
    padding-block: 88px 96px;
  }
}

/* ------------------------------------------------------------------------------- story timeline */

.story {
  position: relative;
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0 0 0 36px;
  list-style: none;
  counter-reset: step;
}
.story::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 24px;
  left: 6px;
  width: 1.5px;
  background: linear-gradient(var(--primary), rgb(30 64 175 / 0.25));
  opacity: 0.5;
}
.story > li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.story__star {
  position: absolute;
  top: 2px;
  left: -36px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px rgb(30 64 175 / 0.25);
}
.story__when {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.story h3 {
  margin-top: 8px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.story p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}
.story .ui-chip {
  margin-top: 18px;
}
@media (min-width: 680px) {
  .story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 56px;
    padding: 36px 0 0;
  }
  .story::before {
    top: 6px;
    bottom: auto;
    left: 7px;
    right: 0;
    width: auto;
    height: 1.5px;
    background: linear-gradient(90deg, var(--primary), rgb(30 64 175 / 0.25));
  }
  .story > li:nth-child(n + 3) {
    padding-top: 0;
  }
  .story__star {
    top: -36px;
    left: 0;
  }
  .story > li:nth-child(n + 3) .story__star {
    display: none;
  }
}
@media (min-width: 1080px) {
  .story {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 32px;
  }
  .story > li:nth-child(n + 3) .story__star {
    display: block;
  }
}
/* The total, set large, under the timeline. */
.tally {
  display: grid;
  gap: 24px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.tally__figures {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: clamp(3.5rem, 11vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.tally__figures s {
  color: var(--subtle);
  text-decoration-thickness: 0.06em;
}
.tally__figures .i {
  width: 0.5em;
  height: 0.5em;
  color: var(--subtle);
  align-self: center;
}
.tally__figures span {
  color: var(--primary);
}
.tally__text {
  max-width: 46ch;
  font-size: 1.0625rem;
  color: var(--muted);
}
.tally__text b {
  color: var(--navy);
}
@media (min-width: 860px) {
  .tally {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 48px;
  }
}

/* ------------------------------------------------------------------------- office / field blocks */

.duo {
  display: grid;
  gap: 32px;
  align-items: start;
}
.duo h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
}
.duo__text > p,
.duo__text h3 + p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 52ch;
}
.ticks {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.ticks li {
  display: flex;
  gap: 12px;
}
.ticks .i {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--primary);
}
.dark .ticks .i {
  color: var(--star);
}
.duo + .duo {
  margin-top: 88px;
}
.duo__cols {
  display: grid;
  gap: 0 56px;
}
@media (min-width: 860px) {
  .duo__cols {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
  .duo__cols .ticks {
    margin-top: 6px;
  }
}
@media (min-width: 1024px) {
  .duo {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
  }
  .duo--flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .duo--flip .duo__text {
    order: 2;
  }
  .duo--wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .duo + .duo {
    margin-top: 120px;
  }
}
.duo__media--phones {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.duo__media--phones .ui-phone:nth-child(2) {
  display: none;
}
@media (min-width: 700px) {
  .duo__media--phones .ui-phone:nth-child(2) {
    display: flex;
    margin-top: 48px;
  }
}

/* --------------------------------------------------------------------------------------- rules */

.rules {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.rules li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 16px;
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
}
.rules .i {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  margin-top: 4px;
  color: var(--primary);
}
.rules h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  letter-spacing: -0.02em;
}
.rules p {
  grid-column: 2;
  max-width: 54ch;
  color: var(--muted);
}
@media (min-width: 860px) {
  .rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
    border-top: 0;
  }
  .rules li {
    border-top: 1px solid var(--border);
    border-bottom: 0;
    padding-block: 32px 8px;
  }
}

/* ---------------------------------------------------------------------------------- spec sheet */

.spec {
  display: grid;
  margin: 0;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}
.spec > div {
  display: grid;
  gap: 2px 24px;
  padding-block: 16px;
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
}
.spec dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.5);
}
.spec dd {
  margin: 0;
  color: #fff;
}
.spec dd span {
  display: block;
  font-size: 14px;
  color: rgb(255 255 255 / 0.6);
}
@media (min-width: 560px) {
  .spec > div {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .spec dt {
    padding-top: 3px;
  }
}
.band {
  display: grid;
  gap: 40px;
}
@media (min-width: 980px) {
  .band {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: start;
  }
  .band .section-head {
    margin-bottom: 0;
  }
}

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

.cards {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.card h3 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}
.card p {
  font-size: 15px;
  color: var(--muted);
}
.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}
.card__icon .i {
  width: 20px;
  height: 20px;
}
.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.section-foot {
  margin-top: 32px;
}

/* Closing call to action. */
.closing {
  display: grid;
  gap: 28px;
}
.closing h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.closing p {
  max-width: 44ch;
  color: rgb(255 255 255 / 0.7);
  font-size: 1.0625rem;
}
@media (min-width: 900px) {
  .closing {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
  }
}

/* ------------------------------------------------------------------------------- features page */

.chapter + .chapter {
  border-top: 1px solid var(--border);
}
.chapter__head {
  display: grid;
  gap: 16px;
  margin-bottom: 56px;
}
.chapter__head h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.chapter__head p {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}
@media (min-width: 980px) {
  .chapter__head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: end;
  }
}
.feature {
  display: grid;
  gap: 28px;
  padding-block: 40px;
  border-top: 1px solid var(--border);
}
.feature:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.feature h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  letter-spacing: -0.025em;
}
.feature h3 .i {
  width: 22px;
  height: 22px;
  color: var(--primary);
}
.feature__text > p {
  margin-top: 12px;
  max-width: 54ch;
  color: var(--muted);
}
.feature__text .ticks {
  margin-top: 18px;
}
@media (min-width: 980px) {
  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    padding-block: 56px;
  }
}

/* Movements table on the features page. */
.moves {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.moves th,
.moves td {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.moves th {
  width: 9.5em;
  padding-right: 16px;
  font-weight: 600;
}
.moves td {
  color: var(--muted);
}
.moves tr:first-child th,
.moves tr:first-child td {
  border-top: 1px solid var(--border);
}

/* ------------------------------------------------------------------------------- roadmap page */

.roadmap {
  display: grid;
  gap: 64px;
}
.lane__head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.lane__head h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}
.lane__head p {
  max-width: 56ch;
  color: var(--muted);
}
.lane-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.lane-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 2px 14px;
  padding-block: 18px;
  border-bottom: 1px solid var(--border);
}
.lane-list .i {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--primary);
}
.lane-list b {
  font-weight: 600;
}
.lane-list p {
  grid-column: 2;
  font-size: 15px;
  color: var(--muted);
}
@media (min-width: 860px) {
  .lane-list--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
  .lane-list--2 li:nth-child(2) {
    border-top: 0;
  }
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* -------------------------------------------------------------------------- self-hosting page */

.terminal {
  overflow-x: auto;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #e2e8f0;
  font: 14px/1.6 ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}
.terminal .p {
  color: var(--star);
  user-select: none;
}
.terminal .c {
  color: #94a3b8;
}

/* ------------------------------------------------------------------------------------------ 404 */

.lost {
  padding-block: 96px 120px;
}
.lost h1 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: -0.035em;
}
.lost p {
  margin-top: 16px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.125rem;
}
.lost .btn-row {
  margin-top: 32px;
}
.lost .ui-empty {
  max-width: 420px;
  margin-top: 40px;
}

/* ============================================================================================ */
/* Product illustrations. Faithful recreations of the app's screens, drawn with the same tokens. */
/* They are decorative (aria-hidden); each figure has a caption describing it.                   */
/* ============================================================================================ */

.ui {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.35;
  text-align: left;
  user-select: none;
}
.ui .i {
  vertical-align: -0.15em;
}
.ui-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
  white-space: nowrap;
}
.ui-badge--neutral {
  background: rgb(15 23 42 / 0.06);
  color: var(--navy);
}
.ui-badge--primary {
  background: var(--primary-soft);
  color: var(--primary);
}
.ui-badge--success {
  background: var(--success-soft);
  color: var(--success-ink);
}
.ui-badge--warning {
  background: var(--warning-soft);
  color: var(--warning-ink);
}
.ui-badge--danger {
  background: var(--danger-soft);
  color: var(--danger-ink);
}
.ui-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.ui-muted {
  color: var(--muted);
}
.ui-strong {
  font-weight: 700;
}
.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.ui-btn .i {
  width: 14px;
  height: 14px;
}
.ui-btn--primary {
  background: var(--primary);
  color: #fff;
}
.ui-btn--secondary {
  background: var(--surface);
  border-color: var(--border-strong);
}
.ui-btn--ghost {
  color: var(--navy);
}

/* Small floating fragments in the story timeline. */
.ui-chip {
  padding: 12px 14px;
  font-size: 12.5px;
}
.ui-chip__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ui-chip__name {
  margin-top: 8px;
  font-weight: 600;
  font-size: 13px;
}
.ui-chip__path {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.ui-chip__qty {
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.ui-chip__split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.ui-chip__split b {
  display: block;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.ui-chip__split small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Phone ---- */

.ui-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: min(300px, 100%);
  height: 610px;
  overflow: hidden;
  border: 7px solid #0b1120;
  border-radius: 38px;
  background: var(--bg);
  box-shadow: var(--shadow-float), 0 0 0 1px rgb(255 255 255 / 0.06);
  font-size: 13px;
}
.ui-phone__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 46px;
  padding: 0 14px;
  background: var(--navy);
  color: #fff;
}
.ui-phone__top .brand__mark {
  width: 18px;
  height: 18px;
}
.ui-phone__top .brand {
  gap: 8px;
}
.ui-phone__top .brand__name {
  font-size: 10px;
}
.ui-phone__top .brand__sub {
  margin-top: 3px;
  font-size: 7.5px;
}
.ui-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
}
.ui-avatar .i {
  width: 14px;
  height: 14px;
}
.ui-phone__body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 14px 12px 0;
}
.ui-phone__body--fade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(rgb(248 246 246 / 0), var(--bg));
}
.ui-phone__nav {
  display: flex;
  flex-shrink: 0;
  height: 54px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.ui-phone__nav span {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
}
.ui-phone__nav span .i {
  width: 18px;
  height: 18px;
}
.ui-phone__nav .on {
  color: var(--primary);
}
.ui-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ui-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.ui-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}
.ui-back .i {
  width: 12px;
  height: 12px;
}
.ui-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
}
.ui-loc .i {
  width: 11px;
  height: 11px;
}
.ui-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}
.ui-actions span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  font-size: 9.5px;
  font-weight: 600;
}
.ui-actions .i {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.ui-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin-top: 12px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--subtle);
  font-size: 11.5px;
}
.ui-search .i {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.ui-label {
  margin: 14px 2px 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ui-rows {
  display: grid;
  gap: 6px;
}
.ui-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}
.ui-row--hl {
  border-color: rgb(30 64 175 / 0.45);
  box-shadow: 0 0 0 3px rgb(30 64 175 / 0.1);
}
.ui-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
}
.ui-tile .i {
  width: 15px;
  height: 15px;
}
.ui-tile--neutral {
  background: rgb(15 23 42 / 0.06);
  color: var(--navy);
}
.ui-row__main {
  flex: 1;
  min-width: 0;
}
.ui-row__name {
  display: block;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ui-row__meta {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ui-row__qty {
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ui-row > .i {
  width: 12px;
  height: 12px;
  color: var(--subtle);
}
.ui-panel {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.ui-panel + .ui-panel,
.ui-panel + .ui-label,
.ui-scanrow + .ui-panel {
  margin-top: 8px;
}
.ui-field-label {
  margin-bottom: 5px;
  font-size: 10.5px;
  font-weight: 600;
}
.ui-field-label i {
  font-style: normal;
  color: var(--danger);
}
.ui-input {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  font-size: 11.5px;
}
.ui-input--focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(30 64 175 / 0.15);
}
.ui-hint {
  margin-top: 4px;
  font-size: 9.5px;
  color: var(--muted);
}
.ui-line__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.ui-line__head .i {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.ui-stepper {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 6px;
  margin-top: 9px;
}
.ui-stepper span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
}
.ui-stepper .i {
  width: 14px;
  height: 14px;
}
.ui-scanrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-top: 8px;
}
.ui-scanrow .ui-search {
  margin-top: 0;
  height: 34px;
}
.ui-scanrow .ui-btn {
  height: 34px;
  font-size: 11px;
}
.ui-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  margin-top: 10px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.ui-submit .i {
  width: 15px;
  height: 15px;
}
.ui-submit--secondary {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--navy);
}

/* Success panel ("Consumption recorded"). */
.ui-done {
  padding: 13px 14px;
  border: 1px solid rgb(16 185 129 / 0.25);
  border-radius: var(--radius);
  background: var(--success-soft);
  font-size: 12px;
}
.ui-done__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--success-ink);
}
.ui-done__title .i {
  width: 16px;
  height: 16px;
}
.ui-done__sub {
  margin-top: 2px;
  color: rgb(4 120 87 / 0.9);
  font-size: 11.5px;
}
.ui-done__line {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgb(16 185 129 / 0.2);
}
.ui-done__line > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
}
.ui-done__line > div:last-child {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
.ui-done__line b {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* ---- Desktop browser (admin) ---- */

.ui-browser {
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-float);
}
.ui-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: #f3f1f0;
}
.ui-browser__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}
.ui-browser__url {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--surface);
  font-size: 11px;
  color: var(--muted);
}
.ui-browser__url .i {
  width: 11px;
  height: 11px;
}
.ui-admin {
  display: grid;
  grid-template-columns: 1fr;
  font-size: 12px;
}
.ui-admin__side {
  display: none;
  flex-direction: column;
  padding: 0 10px 14px;
  background: var(--navy);
  color: #fff;
}
.ui-admin__side .brand {
  height: 52px;
  padding-left: 6px;
}
.ui-admin__side .brand__mark {
  width: 20px;
  height: 20px;
}
.ui-admin__side .brand__name {
  font-size: 11px;
}
.ui-admin__side .brand__sub {
  font-size: 8.5px;
}
.ui-admin__group {
  margin: 10px 8px 6px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.4);
}
.ui-admin__nav {
  display: grid;
  gap: 2px;
}
.ui-admin__nav span {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  color: rgb(255 255 255 / 0.7);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.ui-admin__nav .i {
  width: 14px;
  height: 14px;
}
.ui-admin__nav .on {
  background: var(--primary);
  color: #fff;
}
.ui-admin__nav em {
  margin-left: auto;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--warning);
  color: var(--navy);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 15px;
}
.ui-admin__main {
  min-width: 0;
  background: var(--bg);
}
.ui-admin__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.ui-admin__top .ui-search {
  width: min(260px, 70%);
  height: 30px;
  margin: 0;
  border-color: var(--border);
  background: var(--bg);
  font-size: 11px;
}
.ui-admin__me {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}
.ui-admin__me .i {
  width: 14px;
  height: 14px;
}
.ui-admin__content {
  padding: 18px;
}
.ui-crumbs {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ui-pagehead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.ui-pagehead h4 {
  font-size: 19px;
  letter-spacing: -0.015em;
}
.ui-pagehead p {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}
.ui-pagehead > div:last-child {
  display: flex;
  gap: 6px;
}
.ui-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.ui-stat {
  padding: 11px 13px;
}
.ui-stat small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ui-stat b {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ui-stat span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}
.ui-warn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 13px;
  border: 1px solid rgb(245 158 11 / 0.35);
  border-radius: 12px;
  background: var(--warning-soft);
  color: var(--warning-ink);
  font-size: 11px;
}
.ui-warn b {
  font-weight: 600;
}
.ui-warn > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.ui-warn .i {
  width: 12px;
  height: 12px;
}
.ui-cols {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.ui-cardhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px 10px;
}
.ui-cardhead h5 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
}
.ui-cardhead p {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}
.ui-cardhead .ui-btn {
  height: 26px;
  padding: 0 9px;
  font-size: 10.5px;
}
.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.ui-table th {
  padding: 7px 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ui-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.ui-table tr:last-child td {
  border-bottom: 0;
}
.ui-table .r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ui-table td small {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
}
.ui-table .name {
  font-weight: 600;
}
.ui-table .note {
  padding-top: 0;
  font-size: 10px;
  color: var(--warning-ink);
}
.ui-table .hide-sm {
  display: none;
}
.ui-loclist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.ui-loclist li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}
.ui-loclist li:last-child {
  border-bottom: 0;
}
.ui-loclist .ui-tile {
  width: 26px;
  height: 26px;
}
.ui-loclist .ui-tile .i {
  width: 13px;
  height: 13px;
}
.ui-loclist b {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.ui-loclist span span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
}
.ui-loclist li > .i {
  width: 11px;
  height: 11px;
  margin-left: auto;
  color: var(--subtle);
}
.ui-admin__aside {
  display: none;
}
@container (min-width: 560px) {
  .ui-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ui-table .hide-sm {
    display: table-cell;
  }
}
@container (min-width: 760px) {
  .ui-admin {
    grid-template-columns: 172px minmax(0, 1fr);
  }
  .ui-admin__side {
    display: flex;
  }
}
@container (min-width: 900px) {
  .ui-cols {
    grid-template-columns: minmax(0, 1fr) 200px;
  }
  .ui-admin__aside {
    display: block;
    align-self: start;
  }
}
@container (max-width: 420px) {
  .ui-pagehead > div:last-child {
    display: none;
  }
  .ui-warn > span:last-child {
    display: none;
  }
  .ui-admin__content {
    padding: 14px;
  }
}

/* ---- Standalone cards on the features page ---- */

.ui-spec {
  overflow: hidden;
}
.ui-spec__head {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.ui-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef1f6, #dfe4ec);
  color: var(--muted);
}
.ui-photo .i {
  width: 26px;
  height: 26px;
}
.ui-spec__head h4 {
  font-size: 15px;
  letter-spacing: -0.01em;
}
.ui-spec__head p {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}
.ui-spec__head .ui-badge {
  margin-top: 8px;
}
.ui-spec dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.ui-spec dl > div {
  min-width: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.ui-spec dl > div:nth-child(odd) {
  border-right: 1px solid var(--border);
}
.ui-spec dl > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.ui-spec dt {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ui-spec dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.ui-tree {
  padding: 8px;
  font-size: 12.5px;
}
.ui-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ui-tree ul ul {
  margin-left: 15px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.ui-tree li > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: 9px;
}
.ui-tree .ui-tile {
  width: 26px;
  height: 26px;
}
.ui-tree .ui-tile .i {
  width: 13px;
  height: 13px;
}
.ui-tree b {
  font-weight: 600;
}
.ui-tree small {
  margin-left: auto;
  padding-left: 8px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.ui-tree .hl {
  background: var(--primary-soft);
}
.ui-tree .who {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgb(15 23 42 / 0.06);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ui-tree .who .i {
  width: 11px;
  height: 11px;
}

.ui-count__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 16px;
}
.ui-count__head h4 {
  font-size: 15px;
}
.ui-count__head p {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
.ui-count .ui-table {
  font-size: 12px;
}
.ui-count .diff {
  color: var(--warning-ink);
  font-weight: 700;
}
.ui-count__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #fbfaf9;
  border-radius: 0 0 var(--radius) var(--radius);
}
.ui-count__note {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--muted);
}

.ui-empty {
  padding: 28px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.6);
  text-align: center;
}
.ui-empty b {
  display: block;
  font-size: 14px;
}
.ui-empty span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* Media column that holds a stack of small cards. */
.stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

/* ----------------------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.ui-gap {
  margin-top: 12px;
}
.ui-ink {
  color: var(--navy);
}
.ui-warnink {
  color: var(--warning-ink);
}
.ui-chip__path .i {
  width: 11px;
  height: 11px;
  vertical-align: -0.1em;
}
.ui-table .hide-xs {
  display: none;
}
@media (min-width: 420px) {
  .ui-table .hide-xs {
    display: table-cell;
  }
}
.page-hero a,
.dark a:not(.btn) {
  color: var(--star);
}
.page-hero a:hover,
.dark a:not(.btn):hover {
  color: #fff;
}
.page-hero .jump a {
  color: rgb(255 255 255 / 0.85);
}
.lane__head > span {
  display: block;
}
.spec--light {
  border-top-color: var(--border);
}
.spec--light > div {
  border-bottom-color: var(--border);
}
.spec--light dt {
  color: var(--muted);
}
.spec--light dd {
  color: var(--navy);
  font-weight: 600;
}
.spec--light dd span {
  color: var(--muted);
  font-weight: 400;
}
.duo__text > p + .terminal {
  margin-top: 12px;
}
.card .btn {
  margin-top: 8px;
}

.ui-tree li > div {
  white-space: nowrap;
}
.ui-tree small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 420px) {
  .ui-count .ui-table th,
  .ui-count .ui-table td {
    padding-inline: 7px;
  }
  .ui-count .ui-table th:first-child,
  .ui-count .ui-table td:first-child {
    padding-left: 14px;
  }
}
.page-hero .tag--later,
.dark .tag--later {
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}

/* "Powers inventory in" strip under the hero. */
.powers {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.powers__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-block: 32px;
}
.powers__intro h2 {
  color: var(--primary);
}
.powers__intro p {
  margin-top: 6px;
  max-width: 38ch;
  font-size: 15px;
  color: var(--muted);
}
.powers__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.powers__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.powers__list b {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.powers__list span {
  font-size: 14px;
  color: var(--muted);
}
@media (min-width: 760px) {
  .powers__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
  }
  .powers__list li {
    padding: 4px 24px;
    border-bottom: 0;
    border-left: 1px solid var(--border);
  }
}
@media (min-width: 1024px) {
  .powers__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: center;
    gap: 40px;
    padding-block: 40px;
  }
}

/* Example cards (truck, display case, fridge). */
.example .ui-chip {
  margin-top: auto;
}
.example h3 {
  margin-top: -2px;
}
.example > p {
  margin-bottom: 12px;
}
.ui-flat {
  margin-top: 0;
}
.ui-chip__rule {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.fine {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.section--white .story__star {
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px rgb(30 64 175 / 0.25);
}
