/* ==========================================================================
   Atoice — site stylesheet
   1. Font            5. Header and navigation
   2. Design tokens   6. Components
   3. Base            7. Page sections
   4. Layout          8. Motion
   ========================================================================== */

/* 1. Font ------------------------------------------------------------------ */

/* Instrument Sans (SIL Open Font License 1.1, see /assets/fonts/OFL.txt).
   Latin subset only; characters outside it, such as ₹, use the system font. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  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;
}

/* 2. Design tokens --------------------------------------------------------- */

:root {
  color-scheme: light dark;

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Neutrals */
  --paper: #f7f6f2;
  --surface: #ffffff;
  --sunken: #efede7;
  --ink: #15171b;
  --ink-hover: #2e3138;
  --ink-2: #41464f;
  --muted: #5c626c;
  --line: #e2e0d9;
  --line-strong: #878a91;

  /* Atoice accent */
  --ember: #b93d0b;
  --ember-soft: #fbe9df;
  --focus: #b93d0b;
  --on-accent: #ffffff;

  /* Product accents (each product's own brand colour) */
  --kd: #5b5bf7;
  --kd-hover: #4646e0;
  --kd-ink: #3b3bc4;
  --kd-soft: #eeeefe;
  --nt: #0066fc;
  --nt-hover: #0055d6;
  --nt-ink: #0050c8;
  --nt-soft: #e8f1ff;

  /* Inverse band */
  --band: #15171b;
  --band-ink: #f7f6f2;
  --band-muted: #a9aeb7;
  --band-line: #2f323a;

  /* Type scale */
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.0625rem, 1.04rem + 0.12vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.28rem + 0.75vw, 1.9rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.35vw, 2.6rem);
  --step-4: clamp(2.15rem, 1.65rem + 2.3vw, 3.6rem);
  --step-5: clamp(2.6rem, 1.75rem + 4.1vw, 5.2rem);

  /* Space */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --section-space: clamp(4rem, 2.6rem + 5.5vw, 7.5rem);
  --gutter: clamp(1rem, 0.55rem + 2vw, 2rem);

  /* Shape and depth */
  --container: 74rem;
  --container-narrow: 46rem;
  --radius-s: 0.5rem;
  --radius-m: 0.875rem;
  --radius-l: 1.375rem;
  --radius-xl: clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
  --radius-pill: 999px;
  --shadow-s: 0 1px 2px rgb(21 23 27 / 0.06);
  --shadow-m: 0 1px 2px rgb(21 23 27 / 0.05), 0 12px 32px -14px rgb(21 23 27 / 0.18);
  --shadow-l: 0 2px 6px rgb(21 23 27 / 0.05), 0 30px 64px -28px rgb(21 23 27 / 0.32);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 4.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0f12;
    --surface: #17191e;
    --sunken: #131418;
    --ink: #f1f0ec;
    --ink-hover: #ffffff;
    --ink-2: #c7cad1;
    --muted: #9a9fa9;
    --line: #272a31;
    --line-strong: #5d616b;

    --ember: #ff8a57;
    --ember-soft: #2b1b13;
    --focus: #ff8a57;
    --on-accent: #0e0f12;

    --kd: #9b9bff;
    --kd-hover: #b3b3ff;
    --kd-ink: #b4b4ff;
    --kd-soft: #1e1e3d;
    --nt: #5aa2ff;
    --nt-hover: #7fb7ff;
    --nt-ink: #8dbfff;
    --nt-soft: #10223c;

    --band: #1b1d23;
    --band-ink: #f1f0ec;
    --band-muted: #a9aeb7;
    --band-line: #30333b;

    --shadow-s: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-m: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -14px rgb(0 0 0 / 0.6);
    --shadow-l: 0 2px 6px rgb(0 0 0 / 0.4), 0 30px 64px -28px rgb(0 0 0 / 0.75);
  }
}

/* 3. Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.2em;
}

strong {
  font-weight: 600;
}

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

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

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75rem 1.125rem;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

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

/* 4. Layout ---------------------------------------------------------------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2 * var(--gutter), var(--container-narrow));
}

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

.section--tight-top {
  padding-top: 0;
}

.section--sunken {
  background: var(--sunken);
}

.section--ruled {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: var(--space-s);
  max-width: 44rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section-head h2 {
  font-size: var(--step-3);
  letter-spacing: -0.03em;
}

.section-head p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.5;
}

.split {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 56em) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: var(--space-2xl);
    align-items: start;
  }
}

@media (min-width: 56em) {
  .split--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
}

.split__title {
  margin-top: var(--space-s);
  font-size: var(--step-3);
  letter-spacing: -0.03em;
}

.split__subtitle {
  font-size: var(--step-2);
  letter-spacing: -0.02em;
}

.split__intro {
  margin-top: var(--space-s);
  color: var(--ink-2);
}

.split__body {
  display: grid;
  gap: var(--space-m);
  align-content: start;
}

.split__body--large {
  gap: var(--space-s);
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.55;
}

.stack > * + * {
  margin-top: var(--space-s);
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* 5. Header and navigation ------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-s);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-decoration: none;
  text-transform: lowercase;
}

.brand__suffix {
  color: var(--ink-2);
  font-weight: 450;
}

.brand__mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.brand__mark path {
  stroke: var(--ink);
}

.brand__mark rect {
  fill: var(--ember);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.nav-toggle__close,
.site-header:has(.site-nav:popover-open) .nav-toggle__open {
  display: none;
}

.site-header:has(.site-nav:popover-open) .nav-toggle__close {
  display: block;
}

.site-nav__list {
  display: grid;
  gap: var(--space-3xs);
  list-style: none;
}

.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-s);
  color: var(--ink-2);
  font-size: 1.125rem;
  font-weight: 550;
  text-decoration: none;
}

.site-nav__link:hover {
  background: var(--sunken);
  color: var(--ink);
}

.site-nav__link[aria-current] {
  color: var(--ink);
  text-decoration: underline 2px var(--ember);
  text-underline-offset: 0.45em;
}

.site-nav__cta {
  margin-top: var(--space-2xs);
}

.site-nav__cta[aria-current] {
  box-shadow:
    0 0 0 2px var(--paper),
    0 0 0 4px var(--ember);
}

/* Mobile: the navigation is a native popover opened by the Menu button. */
.site-nav:popover-open {
  position: fixed;
  inset: var(--header-h) 0 auto;
  width: auto;
  max-height: calc(100dvh - var(--header-h));
  margin: 0;
  padding: var(--space-xs) var(--gutter) var(--space-m);
  overflow: auto;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-l);
}

/* Browsers without the Popover API show the links inline instead. */
@supports not selector(:popover-open) {
  .nav-toggle {
    display: none;
  }

  .site-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .site-nav__link {
    min-height: 2.75rem;
    font-size: 1rem;
  }

  .site-nav__cta {
    margin: 0 0 0 var(--space-2xs);
  }
}

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

  .site-nav,
  .site-nav:popover-open {
    display: block;
    position: static;
    inset: auto;
    width: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: none;
    box-shadow: none;
    color: inherit;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-3xs);
  }

  .site-nav__link {
    min-height: 2.75rem;
    padding: 0.5rem 0.875rem;
    font-size: 1rem;
  }

  .site-nav__cta {
    margin: 0 0 0 var(--space-xs);
  }
}

/* 6. Components ------------------------------------------------------------ */

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glyph {
  width: 3rem;
  height: 3rem;
  flex: none;
  color: var(--accent);
  fill: var(--on-accent);
  stroke: var(--on-accent);
}

.glyph--s {
  width: 1.75rem;
  height: 1.75rem;
}

.glyph--l {
  width: 4rem;
  height: 4rem;
}

/* Product accent scopes */
.is-kaamdesk {
  --accent: var(--kd);
  --accent-hover: var(--kd-hover);
  --accent-ink: var(--kd-ink);
  --accent-soft: var(--kd-soft);
}

.is-numtrans {
  --accent: var(--nt);
  --accent-hover: var(--nt-hover);
  --accent-ink: var(--nt-ink);
  --accent-soft: var(--nt-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-ink, var(--ember));
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 2px;
  background: var(--accent, var(--ember));
}

.lede {
  max-width: 38em;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.5;
}

.dot {
  color: var(--ember);
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn .icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.25s var(--ease);
}

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

.btn:hover .icon--external {
  transform: translate(2px, -2px);
}

.btn--s {
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
}

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

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

.btn--secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--secondary:hover {
  border-color: var(--ink);
  background: var(--surface);
}

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

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

/* Text links */
.link-arrow,
.link-external {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  color: var(--accent-ink, var(--ink));
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover,
.link-external:hover {
  text-decoration: underline;
}

.link-arrow .icon,
.link-external .icon {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.25s var(--ease);
}

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

.link-external:hover .icon {
  transform: translate(2px, -2px);
}

.inline-link {
  color: var(--accent-ink, var(--ink));
  font-weight: 550;
}

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft, var(--sunken));
  color: var(--accent-ink, var(--ink-2));
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.2;
}

/* Lists with ticks */
.ticks {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  color: var(--ink-2);
}

.ticks li {
  display: flex;
  gap: 0.75rem;
}

.ticks li::before {
  content: "";
  width: 0.4em;
  height: 0.75em;
  flex: none;
  margin: 0.3em 0.2em 0 0.25em;
  border: solid var(--accent, var(--ember));
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ticks--muted li::before {
  width: 0.75em;
  height: 0;
  margin: 0.8em 0 0 0.1em;
  border-width: 0 0 2px;
  border-color: var(--line-strong);
  transform: none;
}

/* Cards */
.card {
  display: grid;
  align-content: start;
  gap: var(--space-xs);
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.card h3 {
  font-size: var(--step-1);
  letter-spacing: -0.015em;
}

.card p {
  color: var(--ink-2);
}

.card .ticks {
  margin-top: var(--space-3xs);
  font-size: 0.975rem;
}

.icon-tile {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-3xs);
  place-items: center;
  border-radius: 0.8rem;
  background: var(--accent-soft, var(--ember-soft));
  color: var(--accent-ink, var(--ember));
}

.icon-tile .icon {
  width: 1.375rem;
  height: 1.375rem;
}

.icon-tile--s {
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  border-radius: 0.5rem;
}

.icon-tile--s .icon {
  width: 1rem;
  height: 1rem;
}

.card--row {
  margin-top: var(--space-m);
}

@media (min-width: 44em) {
  .card--row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-m);
    align-items: center;
  }

  .card--row .icon-tile {
    margin: 0;
  }
}

.card--row h3 {
  margin-bottom: var(--space-3xs);
}

.card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-m);
}

.grid {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 44em) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: var(--space-m);
  font-size: var(--step--1);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  list-style: none;
  color: var(--muted);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--line-strong);
}

.breadcrumbs a {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--ink-2);
}

/* Facts list */
.facts {
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  gap: 0.25rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-weight: 600;
}

.facts dd {
  color: var(--ink-2);
}

@media (min-width: 40em) {
  .facts > div {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: var(--space-m);
  }
}

/* Prose (legal and long-form text) */
.prose {
  max-width: 44rem;
  color: var(--ink-2);
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 2.25em;
  color: var(--ink);
  font-size: var(--step-2);
  letter-spacing: -0.02em;
}

.prose h3 {
  margin-top: 1.75em;
  color: var(--ink);
  font-size: var(--step-1);
}

.prose ul {
  display: grid;
  gap: 0.5em;
  padding-left: 1.25em;
}

.prose li::marker {
  color: var(--ember);
}

.prose a {
  color: var(--ink);
  font-weight: 550;
}

.callout {
  padding: var(--space-m) clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ember);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--ink-2);
}

.callout h2,
.callout h3 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: var(--step-1);
}

.callout ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.25em;
}

.callout li::marker {
  color: var(--ember);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.975rem;
}

.table-wrap th,
.table-wrap td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  text-align: left;
  vertical-align: top;
}

.table-wrap thead th {
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-wrap tbody th {
  color: var(--ink);
  font-weight: 600;
}

.table-wrap tbody tr:last-child > * {
  border-bottom: 0;
}

@media (max-width: 40em) {
  .table-wrap table {
    font-size: 0.875rem;
  }

  .table-wrap th,
  .table-wrap td {
    padding: 0.75rem 0.625rem;
  }

  .table-wrap thead th {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }
}

/* 7. Page sections --------------------------------------------------------- */

/* Home hero */
.hero {
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 6rem) clamp(3.5rem, 2rem + 5.5vw, 6.5rem);
}

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

@media (min-width: 62em) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.hero__copy .eyebrow {
  margin-bottom: var(--space-m);
}

.display {
  font-size: clamp(2.5rem, 1.65rem + 3.5vw, 4.75rem);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero .lede {
  margin-top: var(--space-m);
}

.hero .actions {
  margin-top: var(--space-l);
}

/* Illustration panel: schematic, not a screenshot. */
.art {
  container-type: inline-size;
  position: relative;
  display: grid;
  gap: var(--space-s);
  padding: clamp(1rem, 0.6rem + 2vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background-color: var(--sunken);
  background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0);
  background-size: 18px 18px;
}

.vignette {
  container-type: inline-size;
  padding: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-m);
}

/* Offset the stacked cards only when the panel is wide enough. */
@container (min-width: 30rem) {
  .art--stacked .vignette:first-child {
    margin-right: 12%;
  }

  .art--stacked .vignette:last-child {
    margin-left: 12%;
  }
}

.vignette__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-s);
}

.vignette__name {
  color: var(--ink);
  font-size: 0.975rem;
  font-weight: 600;
}

.vignette__meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Status track (KaamDesk illustration) */
.track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  font-size: 0.75rem;
  line-height: 1.25;
}

.track li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-align: center;
}

.track li::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.track li::after {
  content: "";
  position: absolute;
  top: calc(0.5rem - 1px);
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}

.track li:last-child::after {
  display: none;
}

.track .is-done {
  color: var(--ink-2);
}

.track .is-done::before {
  border-color: var(--kd);
  background: var(--kd);
}

.track .is-done::after {
  background: var(--kd);
}

.track .is-current {
  color: var(--ink);
  font-weight: 600;
}

.track .is-current::before {
  border-color: var(--kd);
  box-shadow: 0 0 0 4px var(--kd-soft);
}

@container (max-width: 20rem) {
  .track {
    font-size: 0.6875rem;
  }
}

/* In the narrowest cards only the current stage is labelled. */
@container (max-width: 18.5rem) {
  .track li:not(.is-current) {
    color: transparent;
  }
}

.vignette__rows {
  display: grid;
  gap: 0.5rem;
  margin-top: var(--space-s);
  padding-top: var(--space-s);
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.8125rem;
}

.vignette__rows li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-2);
}

.vignette__rows .bar {
  flex: 1;
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--sunken);
}

.vignette__rows .bar--short {
  flex: 0.6;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--sunken);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

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

/* Hover conversion (NumTrans illustration) */
.convert {
  padding-top: 2.6rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.amount {
  position: relative;
  padding: 0 0.15em;
  border-radius: 0.3em;
  background: var(--nt-soft);
  color: var(--nt-ink);
  font-weight: 600;
  text-decoration: underline dotted 2px;
  text-underline-offset: 0.25em;
}

.amount__inr {
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 50%;
  padding: 0.35rem 0.7rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: var(--shadow-m);
}

.amount__inr::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 6px solid transparent;
  border-top-color: var(--ink);
  transform: translateX(-50%);
}

.vignette__note {
  margin-top: var(--space-xs);
  color: var(--muted);
  font-size: 0.75rem;
}

.vignette__rows--plain {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  gap: 0.75rem;
}

.vignette__label {
  flex: 0 0 clamp(5.5rem, 34%, 7.5rem);
  color: var(--ink-2);
}

/* Schematic browser window (NumTrans illustration) */
.browser {
  padding: 0;
  overflow: hidden;
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--sunken);
}

.browser__dots {
  display: flex;
  gap: 0.35rem;
}

.browser__dots span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--line-strong);
  opacity: 0.55;
}

.browser__address {
  flex: 1;
  height: 1.375rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.browser__page {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.browser__page .bar {
  display: block;
  height: 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--sunken);
}

.browser__page .bar--title {
  width: 55%;
  height: 0.9rem;
  margin-bottom: 0.25rem;
  background: var(--line);
}

.browser__page .bar--short {
  width: 65%;
}

.browser__page .convert {
  padding-top: 2.5rem;
}

.product-figure .figure-note {
  margin-top: var(--space-s);
}

/* Conversion examples (NumTrans formats) */
.conversions {
  display: grid;
  list-style: none;
  border-top: 1px solid var(--line);
}

.conversions li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr);
  gap: var(--space-s);
  align-items: baseline;
  padding-block: var(--space-m);
  border-bottom: 1px solid var(--line);
}

.conversions__from {
  color: var(--ink-2);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.conversions__arrow {
  color: var(--accent, var(--ember));
  font-size: var(--step-1);
}

.conversions__to {
  color: var(--ink);
  font-size: var(--step-2);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.figure-note {
  margin-top: var(--space-xs);
  color: var(--muted);
  font-size: var(--step--1);
}

/* Product cards */
.product-grid {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 52em) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  transition:
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: var(--shadow-m);
}

.product-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
}

.product-card h3 {
  font-size: var(--step-3);
  letter-spacing: -0.035em;
}

.product-card__summary {
  margin-top: var(--space-2xs);
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.product-card .ticks {
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}

.product-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs) var(--space-m);
  margin-top: auto;
  padding-top: var(--space-2xs);
}

/* Principles */
.principles {
  display: grid;
  gap: 0 var(--space-l);
  list-style: none;
}

@media (min-width: 40em) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .principles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.principle {
  padding-block: var(--space-m) var(--space-l);
  border-top: 1px solid var(--line-strong);
}

.principle__num {
  display: block;
  color: var(--ember);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.principle h3 {
  margin: var(--space-s) 0 var(--space-2xs);
  font-size: var(--step-1);
}

.principle p {
  color: var(--ink-2);
}

/* Product chooser */
.chooser {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 60em) {
  .chooser {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: var(--space-2xl);
    align-items: start;
  }

  .chooser .section-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.choices {
  display: grid;
  gap: var(--space-s);
  list-style: none;
}

.choice {
  display: grid;
  gap: var(--space-2xs);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  text-decoration: none;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.choice:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-m);
}

.choice__who {
  color: var(--ink);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.choice__what {
  color: var(--ink-2);
}

.choice__go {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--space-2xs);
  color: var(--accent-ink);
  font-weight: 600;
}

.choice__go .icon {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.25s var(--ease);
}

.choice:hover .choice__go .icon {
  transform: translateX(4px);
}

/* About summary */
.about-summary h2 {
  font-size: var(--step-3);
  letter-spacing: -0.03em;
}

.about-summary .eyebrow {
  margin-bottom: var(--space-s);
}

.about-summary__body {
  display: grid;
  gap: var(--space-s);
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.55;
}

/* Inverse call-to-action band */
.cta-band {
  --ink: var(--band-ink);
  --ink-hover: #ffffff;
  --paper: var(--band);
  --ink-2: var(--band-muted);
  --line-strong: #6b6f78;
  --surface: #23262d;
  --focus: #ff8a57;

  position: relative;
  display: grid;
  gap: var(--space-l);
  padding: clamp(2rem, 1.25rem + 3.5vw, 4.5rem);
  overflow: hidden;
  border: 1px solid var(--band-line);
  border-radius: var(--radius-xl);
  background: var(--band);
  color: var(--band-ink);
}

.cta-band::after {
  content: none;
  position: absolute;
  right: clamp(-6rem, -4rem - 4vw, -3rem);
  bottom: clamp(-7rem, -5rem - 4vw, -4rem);
  width: clamp(14rem, 10rem + 14vw, 24rem);
  aspect-ratio: 1;
  border: 2.75rem solid var(--band-line);
  border-radius: 50%;
  pointer-events: none;
}

@media (min-width: 40em) {
  .cta-band::after {
    content: "";
  }
}

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

.cta-band h2 {
  max-width: 18ch;
  font-size: var(--step-4);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.cta-band p {
  max-width: 36em;
  color: var(--band-muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

.cta-band .btn--accent {
  --accent: #ff8a57;
  --accent-hover: #ffa47c;
  --on-accent: #15171b;
}

@media (min-width: 60em) {
  .cta-band {
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: end;
  }
}

/* Inner page hero */
.page-hero {
  padding-block: clamp(2.25rem, 1.25rem + 4vw, 4.75rem) clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);
}

.page-hero h1 {
  max-width: 20ch;
  font-size: var(--step-4);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.page-hero .eyebrow {
  margin-bottom: var(--space-m);
}

.page-hero .lede {
  margin-top: var(--space-m);
}

.page-hero .actions {
  margin-top: var(--space-l);
}

.page-hero--product .page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  align-items: center;
}

@media (min-width: 62em) {
  .page-hero--product .page-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.product-title {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-bottom: var(--space-m);
}

.product-title .eyebrow {
  margin: 0;
}

.product-title__name {
  display: block;
  color: var(--ink);
  font-size: var(--step-1);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-title__by {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
}

/* Product overview rows (Products page) */
.product-row {
  display: grid;
  gap: var(--space-l);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.product-row + .product-row {
  margin-top: var(--space-m);
}

@media (min-width: 60em) {
  .product-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: center;
  }
}

.product-row h2 {
  font-size: var(--step-3);
  letter-spacing: -0.035em;
}

.product-row__body {
  display: grid;
  gap: var(--space-m);
  justify-items: start;
}

.product-row__body > p {
  color: var(--ink-2);
}

.product-row .facts {
  width: 100%;
}

@media (min-width: 40em) {
  .product-row .facts > div {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }
}

/* Pipeline (KaamDesk workflow) */
.pipeline {
  display: grid;
  list-style: none;
  counter-reset: stage;
}

.pipeline li {
  position: relative;
  padding: 0 0 var(--space-l) 2.75rem;
  counter-increment: stage;
}

.pipeline li::before {
  content: counter(stage);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  width: 1.875rem;
  height: 1.875rem;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 650;
}

.pipeline li:last-child::before {
  background: var(--accent);
  color: var(--on-accent);
}

.pipeline li::after {
  content: "";
  position: absolute;
  top: 1.875rem;
  bottom: 0;
  left: calc(0.9375rem - 1px);
  width: 2px;
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}

.pipeline li:last-child {
  padding-bottom: 0;
}

.pipeline li:last-child::after {
  display: none;
}

.pipeline h3 {
  padding-top: 0.2rem;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.pipeline p {
  margin-top: 0.3rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

@media (min-width: 62em) {
  .pipeline {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-s);
  }

  .pipeline li {
    padding: 2.75rem 0 0;
  }

  .pipeline li::after {
    top: calc(0.9375rem - 1px);
    right: calc(-1 * var(--space-s));
    bottom: auto;
    left: 1.875rem;
    width: auto;
    height: 2px;
  }
}

/* Steps (NumTrans how-to) */
.steps {
  display: grid;
  gap: var(--space-m);
  list-style: none;
  counter-reset: step;
}

@media (min-width: 52em) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps li {
  counter-increment: step;
}

.steps .icon-tile {
  margin-bottom: var(--space-2xs);
}

.steps h3::before {
  content: counter(step) ". ";
  color: var(--accent-ink);
}

/* Fit (who it's for) */
.fit {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 48em) {
  .fit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fit .card--quiet {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}

/* Contact */
.contact-card {
  display: grid;
  gap: var(--space-m);
  justify-items: start;
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-s);
}

.contact-card__label {
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card__email {
  font-size: var(--step-3);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.1;
  overflow-wrap: break-word;
}

.contact-card__email a {
  text-decoration-color: var(--ember);
  text-decoration-thickness: 0.06em;
}

.contact-card p {
  color: var(--ink-2);
}

.contact-card__postal {
  display: grid;
  gap: var(--space-2xs);
  justify-self: stretch;
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}

.contact-card address {
  color: var(--ink-2);
  font-style: normal;
}

/* 404 */
.not-found {
  display: grid;
  gap: var(--space-m);
  justify-items: start;
  padding-block: clamp(3rem, 2rem + 6vw, 8rem);
}

.not-found__code {
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.not-found__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-l);
  margin-top: var(--space-s);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
  list-style: none;
}

.not-found h1 {
  max-width: 16ch;
  font-size: var(--step-5);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

/* Footer */
.site-footer {
  padding-block: var(--space-2xl) var(--space-l);
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.975rem;
}

.site-footer__grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 52em) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }
}

.site-footer__brand {
  display: grid;
  gap: var(--space-2xs);
  align-content: start;
  justify-items: start;
}

.site-footer__brand p {
  max-width: 24rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--space-l);
}

.footer-nav h2 {
  margin-bottom: var(--space-2xs);
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  list-style: none;
}

.footer-nav a,
.site-footer__email {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer__address {
  max-width: 24rem;
  color: var(--ink-2);
  font-style: normal;
}

.footer-nav a:hover,
.site-footer__email:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-m);
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
}

/* 8. Motion ---------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .rise {
    animation: rise 0.7s var(--ease) both;
  }

  .rise--2 {
    animation-delay: 0.08s;
  }

  .rise--3 {
    animation-delay: 0.16s;
  }

  .rise--4 {
    animation-delay: 0.24s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
