@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/manrope-latin-ext-400-normal.72c5354a6f.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/manrope-latin-400-normal.849290ef12.woff2') format('woff2');
  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;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/manrope-latin-ext-500-normal.40787d0c2f.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/manrope-latin-500-normal.1987431874.woff2') format('woff2');
  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;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/manrope-latin-ext-600-normal.ff67941284.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/manrope-latin-600-normal.f7ac6258da.woff2') format('woff2');
  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;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/manrope-latin-ext-700-normal.dc7c46d7eb.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/manrope-latin-700-normal.d2a12c85a8.woff2') format('woff2');
  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;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-latin-ext-500-normal.879df9319f.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-latin-500-normal.cb182feeed.woff2') format('woff2');
  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;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-latin-ext-600-normal.90899aac1c.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-latin-600-normal.400c6bfda1.woff2') format('woff2');
  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;
}

:root {
  color-scheme: light dark;
  --lf-space-0: 0;
  --lf-space-1: 0.25rem;
  --lf-space-2: 0.5rem;
  --lf-space-3: 0.75rem;
  --lf-space-4: 1rem;
  --lf-space-5: 1.5rem;
  --lf-space-6: 2rem;
  --lf-space-7: 3rem;
  --lf-space-8: 4rem;
  --lf-font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --lf-font-family-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  --lf-font-size-micro: 0.6875rem;
  --lf-font-size-xs: 0.75rem;
  --lf-font-size-sm: 0.8125rem;
  --lf-font-size-md: 0.875rem;
  --lf-font-size-lg: 1.125rem;
  --lf-font-size-xl: 1.5rem;
  --lf-font-size-xxl: 2rem;
  --lf-font-weight-regular: 400;
  --lf-font-weight-medium: 500;
  --lf-font-weight-semibold: 600;
  --lf-font-weight-bold: 700;
  --lf-line-height-tight: 1.25;
  --lf-line-height-snug: 1.35;
  --lf-line-height-normal: 1.5;
  --lf-tracking-tight: -0.011em;
  --lf-tracking-tighter: -0.02em;
  --lf-tracking-micro: 1px;
  --lf-text-page-title: 600 1.5rem/1.25 var(--lf-font-family);
  --lf-text-section: 600 1.125rem/1.35 var(--lf-font-family);
  --lf-text-card-title: 500 0.8125rem/1.35 var(--lf-font-family);
  --lf-text-body: 400 0.875rem/1.5 var(--lf-font-family);
  --lf-text-label: 500 0.8125rem/1.35 var(--lf-font-family);
  --lf-text-caption: 400 0.75rem/1.35 var(--lf-font-family);
  --lf-text-micro-label: 500 0.6875rem/1.35 var(--lf-font-family-mono);
  --lf-text-micro-label-tracking: 1px;
  --lf-text-micro-label-transform: uppercase;
  --lf-layout-page: 76rem;
  --lf-layout-narrow: 48rem;
  --lf-layout-prose: 42rem;
  --lf-layout-sidebar: 15rem;
  --lf-layout-header: 3.5rem;
  --lf-layout-row: 2.75rem;
  --lf-layout-control: 2.25rem;
  --lf-layout-control-small: 1.875rem;
  --lf-layout-nav-item: 2rem;
  --lf-radius-card: 22px;
  --lf-radius-control: 14px;
  --lf-radius-chip: 12px;
  --lf-radius-pill: 999px;
  --lf-radius-sm: 12px;
  --lf-radius-md: 14px;
  --lf-radius-lg: 22px;
  --lf-tag-standing-bg: #1b2420;
  --lf-tag-standing-ring: #2c3a33;
  --lf-tag-standing-dot: #c9d1cc;
  --lf-tag-standing-muted: #9fb2a7;
  --lf-tag-felled-bg: #16402f;
  --lf-tag-felled-ring: #24533f;
  --lf-tag-felled-dot: #5ee29a;
  --lf-tag-felled-muted: #a9cdb9;
  --lf-tag-bucked-bg: #3a2c1d;
  --lf-tag-bucked-ring: #4e3d2a;
  --lf-tag-bucked-dot: #e7b66a;
  --lf-tag-bucked-muted: #d2bfa3;
  --lf-tag-on-truck-bg: #1c2b3b;
  --lf-tag-on-truck-ring: #2b3f55;
  --lf-tag-on-truck-dot: #8cbfef;
  --lf-tag-on-truck-muted: #a9bed3;
  --lf-tag-at-saw-bg: #3b2420;
  --lf-tag-at-saw-ring: #53332c;
  --lf-tag-at-saw-dot: #ee9877;
  --lf-tag-at-saw-muted: #d6b1a6;
  --lf-tag-text: #f2f5f3;
  --lf-focus-width: 3px;
  --lf-focus-offset: 2px;
  --lf-motion-duration: 150ms;
  --lf-color-bg: #f3f4f2;
  --lf-color-surface: #ffffff;
  --lf-color-surface-muted: #f0f2f0;
  --lf-color-raised: #f5f6f4;
  --lf-color-panel: #ffffff;
  --lf-color-sidebar: #eceeeb;
  --lf-color-card: #ffffff;
  --lf-color-text: #0b0e0c;
  --lf-color-text-secondary: #2f3a33;
  --lf-color-text-muted: #5f6b64;
  --lf-color-text-faint: #a3aca6;
  --lf-color-border: #e6e9e7;
  --lf-color-border-subtle: #f0f2f0;
  --lf-color-border-strong: #d5dad7;
  --lf-color-control-border: #7f8983;
  --lf-color-accent: #117b47;
  --lf-color-accent-hover: #0e6b3d;
  --lf-color-accent-text: #ffffff;
  --lf-color-primary: #0b0e0c;
  --lf-color-primary-text: #ffffff;
  --lf-color-selected: #e2f4ea;
  --lf-color-selected-text: #0e6b3d;
  --lf-color-nav-selected: #e3e7e4;
  --lf-color-focus: #117b47;
  --lf-color-danger: #b42318;
  --lf-color-danger-surface: #fce8e6;
  --lf-color-warning: #a65a00;
  --lf-color-warning-surface: #fdf0dc;
  --lf-color-success: #0e6b3d;
  --lf-color-success-surface: #e2f4ea;
  --lf-color-info: #1d4f91;
  --lf-color-info-surface: #e5eefa;
  --lf-color-neutral-surface: #ebeeec;
  --lf-color-banner: #a65a00;
  --lf-color-banner-text: #ffffff;
  --lf-shadow-raised: 0 1px 2px rgba(11, 14, 12, 0.06);
  --lf-shadow-hero: 0 1px 2px rgba(11, 14, 12, 0.06), 0 12px 32px rgba(11, 14, 12, 0.08);
  --lf-shadow-overlay: 0 12px 32px rgba(11, 14, 12, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --lf-color-bg: #0a0c0b;
    --lf-color-surface: #141816;
    --lf-color-surface-muted: #1f2522;
    --lf-color-raised: #1a1e1c;
    --lf-color-panel: #131715;
    --lf-color-sidebar: #0f1211;
    --lf-color-card: #141816;
    --lf-color-text: #f2f5f3;
    --lf-color-text-secondary: #c9d1cc;
    --lf-color-text-muted: #8b968f;
    --lf-color-text-faint: #5e6862;
    --lf-color-border: #1e2522;
    --lf-color-border-subtle: #181d1b;
    --lf-color-border-strong: #2e3632;
    --lf-color-control-border: #6b7570;
    --lf-color-accent: #5ee29a;
    --lf-color-accent-hover: #8bedb6;
    --lf-color-accent-text: #0a0c0b;
    --lf-color-primary: #f2f5f3;
    --lf-color-primary-text: #0a0c0b;
    --lf-color-selected: #233029;
    --lf-color-selected-text: #8bedb6;
    --lf-color-nav-selected: #1f2522;
    --lf-color-focus: #5ee29a;
    --lf-color-danger: #f08a7a;
    --lf-color-danger-surface: #3a1f1b;
    --lf-color-warning: #f2a33a;
    --lf-color-warning-surface: #33260f;
    --lf-color-success: #5ee29a;
    --lf-color-success-surface: #12301f;
    --lf-color-info: #8cbfef;
    --lf-color-info-surface: #16283b;
    --lf-color-neutral-surface: #1f2522;
    --lf-color-banner: #f2a33a;
    --lf-color-banner-text: #0a0c0b;
    --lf-shadow-raised: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --lf-shadow-hero: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 48px rgba(0, 0, 0, 0.55);
    --lf-shadow-overlay: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --lf-color-bg: #0a0c0b;
  --lf-color-surface: #141816;
  --lf-color-surface-muted: #1f2522;
  --lf-color-raised: #1a1e1c;
  --lf-color-panel: #131715;
  --lf-color-sidebar: #0f1211;
  --lf-color-card: #141816;
  --lf-color-text: #f2f5f3;
  --lf-color-text-secondary: #c9d1cc;
  --lf-color-text-muted: #8b968f;
  --lf-color-text-faint: #5e6862;
  --lf-color-border: #1e2522;
  --lf-color-border-subtle: #181d1b;
  --lf-color-border-strong: #2e3632;
  --lf-color-control-border: #6b7570;
  --lf-color-accent: #5ee29a;
  --lf-color-accent-hover: #8bedb6;
  --lf-color-accent-text: #0a0c0b;
  --lf-color-primary: #f2f5f3;
  --lf-color-primary-text: #0a0c0b;
  --lf-color-selected: #233029;
  --lf-color-selected-text: #8bedb6;
  --lf-color-nav-selected: #1f2522;
  --lf-color-focus: #5ee29a;
  --lf-color-danger: #f08a7a;
  --lf-color-danger-surface: #3a1f1b;
  --lf-color-warning: #f2a33a;
  --lf-color-warning-surface: #33260f;
  --lf-color-success: #5ee29a;
  --lf-color-success-surface: #12301f;
  --lf-color-info: #8cbfef;
  --lf-color-info-surface: #16283b;
  --lf-color-neutral-surface: #1f2522;
  --lf-color-banner: #f2a33a;
  --lf-color-banner-text: #0a0c0b;
  --lf-shadow-raised: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --lf-shadow-hero: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 48px rgba(0, 0, 0, 0.55);
  --lf-shadow-overlay: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.6);
}

:root[data-theme='light'] {
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --lf-motion-duration: 0ms;
  }
}

:root[data-text-size='large'] {
  font-size: 112.5%;
}

:root[data-text-size='larger'] {
  font-size: 125%;
}

/*
 * The marketing site's styles, over @logfrog/ui's tokens (prepended at build
 * time). Direction C, as the console: a white page, hairlines, generous
 * whitespace, one green accent for primary actions and selection; Linear's
 * calm hierarchy, Attio's soft cards and airy tables. Phone width first.
 * Light and dark follow the visitor's system through the tokens.
 */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

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

body {
  margin: 0;
  background: var(--lf-color-bg);
  color: var(--lf-color-text);
  font-family: var(--lf-font-family);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: 'kern';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

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

img {
  height: auto;
}

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

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

h1,
h2,
h3 {
  font-weight: var(--lf-font-weight-semibold);
  color: var(--lf-color-text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: var(--lf-tracking-tight);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--lf-color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: var(--lf-focus-width) solid var(--lf-color-focus);
  outline-offset: var(--lf-focus-offset);
  border-radius: var(--lf-radius-sm);
}

main:focus {
  outline: none;
}

.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.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  background: var(--lf-color-card);
  color: var(--lf-color-text);
  font-weight: var(--lf-font-weight-medium);
  border: 1px solid var(--lf-color-border-strong);
  border-radius: var(--lf-radius-md);
  transform: translateY(-200%);
}

.skip-link:focus {
  box-shadow: var(--lf-shadow-overlay);
  transform: none;
}

/* ── Layout ─────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.container.narrow {
  max-width: 48rem;
}

@media (min-width: 40rem) {
  .container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .container {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: 3.5rem;
}

.section-tight {
  padding-block: 2rem 4rem;
}

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

.section-alt {
  background: var(--lf-color-surface);
  border-block: 1px solid var(--lf-color-border-subtle);
}

@media (min-width: 64rem) {
  .section {
    padding-block: 5.5rem;
  }

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

  .section-tight {
    padding-block: 2rem 5.5rem;
  }
}

.section-head {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
  margin-bottom: 2rem;
}

@media (min-width: 64rem) {
  .section-head {
    margin-bottom: 2.75rem;
  }
}

.section-head .badge {
  justify-self: start;
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--lf-color-text-secondary);
  max-width: 42rem;
}

@media (min-width: 40rem) {
  .lead {
    font-size: 1.125rem;
  }
}

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

.eyebrow {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.25rem 0.625rem;
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-medium);
  line-height: 1.35;
  color: var(--lf-color-selected-text);
  background: var(--lf-color-selected);
  border-radius: var(--lf-radius-pill);
}

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

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

@media (min-width: 64rem) {
  .grid {
    gap: 1.25rem;
  }

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

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

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 64rem) {
  .split {
    gap: 4rem;
  }

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

  .split-offline {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .split-features {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }

  .split-even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .split-pilot {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.actions-center {
  justify-content: center;
  margin-top: 2.5rem;
}

/* ── Buttons, badges ────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: var(--lf-font-weight-medium);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--lf-radius-md);
  cursor: pointer;
  transition:
    background-color var(--lf-motion-duration),
    border-color var(--lf-motion-duration),
    color var(--lf-motion-duration);
}

.button-primary {
  background: var(--lf-color-accent);
  color: var(--lf-color-accent-text);
}

.button-primary:hover {
  background: var(--lf-color-accent-hover);
  color: var(--lf-color-accent-text);
}

.button-secondary {
  background: var(--lf-color-card);
  color: var(--lf-color-text);
  border-color: var(--lf-color-border-strong);
  box-shadow: var(--lf-shadow-raised);
}

.button-secondary:hover {
  background: var(--lf-color-surface-muted);
  color: var(--lf-color-text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  padding: 0.125rem 0.5rem;
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-medium);
  line-height: 1.5;
  white-space: nowrap;
  border-radius: var(--lf-radius-pill);
}

.badge-success {
  color: var(--lf-color-success);
  background: var(--lf-color-success-surface);
}

.badge-info {
  color: var(--lf-color-info);
  background: var(--lf-color-info-surface);
}

.badge-warning {
  color: var(--lf-color-warning);
  background: var(--lf-color-warning-surface);
}

.badge-neutral {
  color: var(--lf-color-text-secondary);
  background: var(--lf-color-neutral-surface);
}

.badge-count {
  font-variant-numeric: tabular-nums;
  font-weight: var(--lf-font-weight-semibold);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--lf-color-border);
  background: var(--lf-color-bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.25rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--lf-color-text);
  text-decoration: none;
  border-radius: var(--lf-radius-md);
}

.brand:hover {
  color: var(--lf-color-text);
}

/* The logo, side by side: the height sets its size, the width follows. */
.brand .logo {
  display: block;
  height: 1.875rem;
  width: auto;
  flex-shrink: 0;
}

/* The teardrop in the accent; the ring and the word take the text colour. */
.logo-drop {
  fill: var(--lf-color-accent);
}

.site-nav {
  order: 3;
  flex-basis: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-inline: -0.625rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.625rem;
  font-size: 0.9375rem;
  font-weight: var(--lf-font-weight-medium);
  color: var(--lf-color-text-secondary);
  text-decoration: none;
  border-radius: var(--lf-radius-md);
}

.site-nav a:hover {
  color: var(--lf-color-text);
  background: var(--lf-color-surface-muted);
}

.site-nav a[aria-current='page'] {
  color: var(--lf-color-text);
  background: var(--lf-color-nav-selected);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.header-actions .button {
  min-height: 2.5rem;
  padding-inline: 0.875rem;
  font-size: 0.875rem;
}

@media (min-width: 52rem) {
  .header-inner {
    flex-wrap: nowrap;
    min-height: 4rem;
    padding-block: 0.5rem;
  }

  .site-nav {
    order: 0;
    flex-basis: auto;
  }

  .site-nav ul {
    margin-inline: 0;
  }

  .site-nav a {
    min-height: 2.25rem;
    font-size: 0.875rem;
  }
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding-block: 3rem 3.5rem;
  overflow: hidden;
}

.hero-text {
  display: grid;
  gap: 1.25rem;
  max-width: 50rem;
}

.hero-text .actions {
  margin-top: 0.5rem;
}

.display {
  font-size: clamp(2.125rem, 1.3rem + 3.6vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

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

.hero-shot {
  margin-top: 3rem;
}

@media (min-width: 64rem) {
  .hero {
    padding-block: 5.5rem 5rem;
  }

  .hero-shot {
    margin-top: 4.5rem;
  }
}

.page-hero {
  padding-block: 3rem 2.5rem;
}

.page-hero .container {
  display: grid;
  gap: 1rem;
}

.page-hero h1 {
  max-width: 46rem;
}

@media (min-width: 64rem) {
  .page-hero {
    padding-block: 5rem 3.5rem;
  }
}

/* ── Lists ──────────────────────────────────────────────────────────── */

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.check-list {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.check-list li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  color: var(--lf-color-text);
}

.check-list .icon-check {
  margin-top: 0.15rem;
  color: var(--lf-color-accent);
}

.check-list-inline {
  margin-top: 0.75rem;
  gap: 0.5rem 1.5rem;
}

@media (min-width: 40rem) {
  .check-list-inline {
    display: flex;
    flex-wrap: wrap;
  }
}

.check-list-inline li {
  font-size: 0.9375rem;
  color: var(--lf-color-text-secondary);
}

.plain-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--lf-color-text-secondary);
}

.plain-list li::marker {
  color: var(--lf-color-text-muted);
}

/* ── Cards ──────────────────────────────────────────────────────────── */

.card {
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-lg);
  box-shadow: var(--lf-shadow-raised);
  padding: 1.5rem;
}

.card-list .card {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.card p {
  color: var(--lf-color-text-secondary);
}

.card h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

.card-title {
  font: var(--lf-text-card-title);
  color: var(--lf-color-text-secondary);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.5rem;
  color: var(--lf-color-accent);
  background: var(--lf-color-selected);
  border-radius: var(--lf-radius-md);
}

.card-callout {
  padding: 2rem 1.5rem;
  background: var(--lf-color-surface);
  box-shadow: none;
}

.card-callout .section-head {
  margin-bottom: 0;
}

.card-accent {
  border-color: var(--lf-color-accent);
  box-shadow: 0 0 0 1px var(--lf-color-accent);
}

@media (min-width: 40rem) {
  .card {
    padding: 1.75rem;
  }

  .card-callout {
    padding: 2.5rem;
  }
}

.caption,
.hint,
.note {
  font-size: var(--lf-font-size-sm);
  line-height: 1.5;
  color: var(--lf-color-text-muted);
}

.note {
  margin-top: 1rem;
  color: var(--lf-color-text-secondary);
}

/* ── How it works ───────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

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

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.step {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--lf-color-accent);
  background: var(--lf-color-selected);
  border-radius: var(--lf-radius-lg);
}

.step-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.step-place {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-medium);
  color: var(--lf-color-text-secondary);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--lf-color-text-secondary);
  background: var(--lf-color-neutral-surface);
  border-radius: var(--lf-radius-pill);
}

/* ── Tables (Attio-like) ────────────────────────────────────────────── */

.table-frame {
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-lg);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid var(--lf-color-border-subtle);
}

.data-table thead th {
  padding-block: 0.625rem;
  font: var(--lf-text-label);
  color: var(--lf-color-text-secondary);
  background: var(--lf-color-surface);
  border-top: 0;
  border-bottom: 1px solid var(--lf-color-border);
}

.data-table tbody th {
  font-weight: var(--lf-font-weight-regular);
}

.data-table tbody tr:hover {
  background: var(--lf-color-surface);
}

.data-table .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.data-table .center {
  text-align: center;
}

.data-table .center .icon {
  margin-inline: auto;
}

.cell-main {
  display: block;
  font-weight: var(--lf-font-weight-medium);
  color: var(--lf-color-text);
}

.cell-sub {
  display: block;
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-regular);
  color: var(--lf-color-text-muted);
}

.figure {
  font-weight: var(--lf-font-weight-medium);
  color: var(--lf-color-text);
}

.unit {
  font-size: var(--lf-font-size-sm);
  color: var(--lf-color-text-muted);
}

.editions-table {
  min-width: 40rem;
}

.editions-table tbody th {
  min-width: 14rem;
}

.editions-table tbody th .badge {
  margin-top: 0.375rem;
}

.editions-table thead th:not(:first-child) {
  min-width: 8rem;
}

.icon-check {
  color: var(--lf-color-accent);
}

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

.cell-addon {
  font-size: var(--lf-font-size-sm);
  color: var(--lf-color-text-secondary);
}

/* ── The proof card ─────────────────────────────────────────────────── */

.proof-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  box-shadow:
    var(--lf-shadow-raised),
    0 16px 40px rgb(16 24 40 / 8%);
}

@media (min-width: 40rem) {
  .proof-card {
    padding: 1.75rem;
  }
}

.proof-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.proof-lot {
  font-size: 1.125rem;
  font-weight: var(--lf-font-weight-semibold);
  letter-spacing: var(--lf-tracking-tight);
}

.proof-card .data-table th,
.proof-card .data-table td {
  padding-inline: 0.875rem;
}

.proof-flags {
  display: grid;
  gap: 0.625rem;
}

/* ── Screenshots ────────────────────────────────────────────────────── */

.screen-frame {
  overflow: hidden;
  background: var(--lf-color-surface);
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-lg);
  box-shadow:
    var(--lf-shadow-raised),
    0 24px 48px -12px rgb(16 24 40 / 14%);
}

.screen-frame img {
  width: 100%;
}

.device-frame {
  width: 100%;
  max-width: 17rem;
  justify-self: center;
  padding: 0.5rem;
  background: var(--lf-color-sidebar);
  border: 1px solid var(--lf-color-border-strong);
  border-radius: 1.75rem;
  box-shadow: 0 24px 48px -16px rgb(16 24 40 / 18%);
}

.device-frame img {
  width: 100%;
  border-radius: 1.25rem;
}

.device-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.wide-shot {
  margin-bottom: 2.5rem;
}

.shot-pair {
  margin-top: 2.5rem;
}

/* ── Features ───────────────────────────────────────────────────────── */

.feature-list {
  display: grid;
  gap: 1.5rem 2rem;
}

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

.feature-list li {
  display: grid;
  gap: 0.375rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lf-color-border);
}

.feature-list p {
  color: var(--lf-color-text-secondary);
}

/* ── Security ───────────────────────────────────────────────────────── */

.legend {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.legend div {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.legend dt {
  min-width: 5.5rem;
}

.legend dd {
  color: var(--lf-color-text-secondary);
}

.claim-group {
  margin-top: 3rem;
}

.claim-group:first-of-type {
  margin-top: 0;
}

.claim-group h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  margin-bottom: 1rem;
}

.claim-list {
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-lg);
  background: var(--lf-color-card);
  overflow: hidden;
}

.claim {
  display: grid;
  gap: 0.375rem;
  padding: 1.125rem 1.25rem;
}

.claim + .claim {
  border-top: 1px solid var(--lf-color-border-subtle);
}

.claim-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.claim h3 {
  font-size: 1rem;
}

.claim p {
  color: var(--lf-color-text-secondary);
}

.contact-line {
  margin-top: 3rem;
  color: var(--lf-color-text-secondary);
}

/* ── Pricing ────────────────────────────────────────────────────────── */

.faq {
  margin-top: 1.5rem;
  border-top: 1px solid var(--lf-color-border);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.75rem;
  font-weight: var(--lf-font-weight-medium);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: var(--lf-font-weight-regular);
  line-height: 1;
  color: var(--lf-color-text-muted);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  padding-bottom: 1.25rem;
  color: var(--lf-color-text-secondary);
}

/* ── Pilot ──────────────────────────────────────────────────────────── */

.timeline {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.timeline li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
}

.timeline .step-number {
  width: 2rem;
  height: 2rem;
  font-size: var(--lf-font-size-sm);
  color: var(--lf-color-selected-text);
  background: var(--lf-color-selected);
}

.timeline p {
  margin-top: 0.25rem;
  color: var(--lf-color-text-secondary);
}

.form-card {
  display: grid;
  gap: 0.75rem;
}

.form {
  display: grid;
  gap: 1.125rem;
  margin-block: 0.75rem 0.5rem;
}

.field {
  display: grid;
  gap: 0.375rem;
}

.field label {
  font: var(--lf-text-label);
  font-size: 0.875rem;
  color: var(--lf-color-text);
}

.field-optional {
  font-weight: var(--lf-font-weight-regular);
  color: var(--lf-color-text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: var(--lf-color-text);
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-control-border);
  border-radius: var(--lf-radius-md);
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--lf-color-focus);
  border-radius: var(--lf-radius-md);
}

.field-row {
  display: grid;
  gap: 1.125rem;
}

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

.form-actions {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  margin-top: 0.25rem;
}

/* ── Legal ──────────────────────────────────────────────────────────── */

.notice {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  margin-bottom: 2.5rem;
  background: var(--lf-color-surface);
  box-shadow: none;
}

/* The legal notice: one row per detail, the label above it on a narrow screen. */
.entity {
  display: grid;
  gap: 1rem;
}

.entity div {
  display: grid;
  gap: 0.25rem;
}

.entity dt {
  color: var(--lf-color-text-secondary);
  font-size: 0.875rem;
}

@media (min-width: 40rem) {
  .entity div {
    grid-template-columns: 12rem 1fr;
    gap: 1rem;
  }
}

.narrow h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

.narrow .notice + h2,
.narrow > h2:first-child {
  margin-top: 0;
}

/* ── Help centre: an article, from markdown (src/markdown.ts) ───────── */

.help-crumb {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.prose {
  display: grid;
  gap: 1rem;
  line-height: 1.65;
}

.prose h2 {
  margin-top: 1.75rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

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

.prose h3 {
  margin-top: 0.75rem;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.375rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li > ul,
.prose li > ol,
.prose li > p {
  margin-top: 0.375rem;
}

.prose li::marker {
  color: var(--lf-color-text-secondary);
}

.prose code {
  padding: 0.0625rem 0.3125rem;
  font-family: var(--lf-font-family-mono);
  font-size: 0.875em;
  background: var(--lf-color-surface);
  border: 1px solid var(--lf-color-border-subtle);
  border-radius: var(--lf-radius-sm);
  overflow-wrap: anywhere;
}

.prose hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--lf-color-border-subtle);
}

.prose .table-frame {
  margin-block: 0.25rem;
}

.prose .data-table td,
.prose .data-table th {
  vertical-align: top;
}

.help-contact {
  display: grid;
  gap: 0.5rem;
  margin-top: 3rem;
  background: var(--lf-color-surface);
  box-shadow: none;
}

.narrow .help-contact h2 {
  margin-top: 0;
  font-size: 1.0625rem;
}

/* ── Closing band ───────────────────────────────────────────────────── */

.cta-band {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding: 2rem 1.5rem;
  background: var(--lf-color-selected);
  border-radius: var(--lf-radius-lg);
}

.cta-band h2 {
  color: var(--lf-color-text);
}

.cta-band p {
  margin-top: 0.5rem;
  max-width: 40rem;
  color: var(--lf-color-text-secondary);
}

@media (min-width: 52rem) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 3rem;
  }
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: 3rem 2rem;
  background: var(--lf-color-sidebar);
  border-top: 1px solid var(--lf-color-border);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

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

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

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

  .footer-brand {
    grid-column: auto;
  }
}

.footer-brand p {
  margin-top: 0.75rem;
  max-width: 22rem;
  color: var(--lf-color-text-secondary);
}

.site-footer h2 {
  font: var(--lf-text-label);
  color: var(--lf-color-text);
  margin-bottom: 0.5rem;
}

.site-footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--lf-color-text-secondary);
  text-decoration: none;
}

.site-footer ul a:hover {
  color: var(--lf-color-text);
  text-decoration: underline;
}

.footer-meta {
  display: grid;
  gap: 0.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lf-color-border);
  font-size: var(--lf-font-size-sm);
  color: var(--lf-color-text-muted);
}

@media (min-width: 52rem) {
  .footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }
}

/* The page's SVG symbols (the logo), drawn elsewhere with <use>. */
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Tables at phone width: tighter cells, and headers that may wrap. */
@media (max-width: 39.99rem) {
  .data-table th,
  .data-table td {
    padding-inline: 0.75rem;
  }

  .data-table thead .num {
    white-space: normal;
  }
}

/* ── The language menu: a pill that opens a small panel (a <details>) ── */

.lang-menu {
  position: relative;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.75rem 0 0.625rem;
  font-size: 0.875rem;
  font-weight: var(--lf-font-weight-medium);
  color: var(--lf-color-text);
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-border-strong);
  border-radius: var(--lf-radius-pill);
  box-shadow: var(--lf-shadow-raised);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.lang-button::-webkit-details-marker {
  display: none;
}

.lang-button:hover {
  background: var(--lf-color-surface-muted);
}

.lang-button:focus-visible {
  border-radius: var(--lf-radius-pill);
}

.lang-chevron {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--lf-color-text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--lf-motion-duration);
}

.lang-menu[open] .lang-chevron {
  transform: rotate(180deg);
}

.flag-frame {
  display: inline-flex;
  flex-shrink: 0;
  width: 1.3125rem;
  height: 0.875rem;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--lf-color-border-strong);
}

.flag {
  width: 100%;
  height: 100%;
}

.lang-list {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 0.125rem;
  min-width: 11rem;
  padding: 0.375rem;
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-control);
  box-shadow: var(--lf-shadow-overlay);
}

.lang-list a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0 0.625rem;
  font-size: 0.9375rem;
  font-weight: var(--lf-font-weight-medium);
  color: var(--lf-color-text-secondary);
  text-decoration: none;
  border-radius: calc(var(--lf-radius-control) - 4px);
}

.lang-list a:hover {
  color: var(--lf-color-text);
  background: var(--lf-color-surface-muted);
}

.lang-list a[aria-current='true'] {
  color: var(--lf-color-selected-text);
  background: var(--lf-color-selected);
}

.lang-list a > span:not(.flag-frame) {
  flex: 1;
}

.lang-list .icon-check {
  width: 1.125rem;
  height: 1.125rem;
}

@media (min-width: 52rem) {
  .lang-button {
    min-height: 2.5rem;
  }

  .lang-list a {
    min-height: 2.5rem;
  }
}

/*
 * The pages' pictures (src/visuals.ts): the tree tag moving along the chain
 * in the hero, the four steps with their screens, paper or register, records
 * waiting for signal, and the security page's diagram. Motion is CSS only and
 * stops under prefers-reduced-motion, where each picture shows a still that
 * says the same.
 */

/* ── Status colours: the tree tag's (docs/plan/16-redesign.md §3) ─────── */

.tag-standing {
  --tag-bg: var(--lf-tag-standing-bg);
  --tag-ring: var(--lf-tag-standing-ring);
  --tag-dot: var(--lf-tag-standing-dot);
  --tag-muted: var(--lf-tag-standing-muted);
}

.tag-felled {
  --tag-bg: var(--lf-tag-felled-bg);
  --tag-ring: var(--lf-tag-felled-ring);
  --tag-dot: var(--lf-tag-felled-dot);
  --tag-muted: var(--lf-tag-felled-muted);
}

.tag-bucked {
  --tag-bg: var(--lf-tag-bucked-bg);
  --tag-ring: var(--lf-tag-bucked-ring);
  --tag-dot: var(--lf-tag-bucked-dot);
  --tag-muted: var(--lf-tag-bucked-muted);
}

.tag-onTruck {
  --tag-bg: var(--lf-tag-on-truck-bg);
  --tag-ring: var(--lf-tag-on-truck-ring);
  --tag-dot: var(--lf-tag-on-truck-dot);
  --tag-muted: var(--lf-tag-on-truck-muted);
}

.tag-atSaw {
  --tag-bg: var(--lf-tag-at-saw-bg);
  --tag-ring: var(--lf-tag-at-saw-ring);
  --tag-dot: var(--lf-tag-at-saw-dot);
  --tag-muted: var(--lf-tag-at-saw-muted);
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero .container {
  display: grid;
  gap: 3rem;
}

@media (min-width: 64rem) {
  .hero .container {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 4rem;
  }
}

.chain {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  width: 100%;
  max-width: 26rem;
  justify-self: center;
}

.chain-tag {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 320 / 196;
  padding: 1.25rem 1.375rem;
  overflow: hidden;
  color: var(--lf-tag-text);
  background: var(--lf-tag-standing-bg);
  border-radius: var(--lf-radius-card);
  box-shadow:
    var(--lf-shadow-hero),
    0 30px 60px -20px rgb(10 12 11 / 45%);
  animation: chain-tag 15s ease-in-out infinite;
}

.chain-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.chain-rings circle {
  fill: none;
  stroke: var(--lf-tag-standing-ring);
  stroke-width: 1.2;
  animation: chain-ring 15s ease-in-out infinite;
}

.chain-lot {
  position: relative;
  font: var(--lf-text-micro-label);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--lf-tag-standing-muted);
}

.chain-bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: auto;
}

.chain-id {
  display: grid;
  flex: 1;
  min-width: 0;
}

.chain-number {
  font-size: clamp(3.5rem, 2.6rem + 3vw, 4.5rem);
  font-weight: var(--lf-font-weight-semibold);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.chain-stamp {
  font-family: var(--lf-font-family-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgb(242 245 243 / 70%);
}

.chain-status {
  position: relative;
  display: grid;
  margin-bottom: 0.25rem;
}

.chain-word {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.4rem;
  height: 1.75rem;
  padding-inline: 0.7rem;
  font-size: 0.8125rem;
  font-weight: var(--lf-font-weight-semibold);
  white-space: nowrap;
  background: rgb(242 245 243 / 10%);
  border-radius: var(--lf-radius-pill);
  opacity: 0;
  animation: chain-show 15s linear infinite;
}

.chain-word i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}

.chain-word-1 i {
  background: var(--lf-tag-standing-dot);
}

.chain-word-2 i {
  background: var(--lf-tag-felled-dot);
}

.chain-word-3 i {
  background: var(--lf-tag-bucked-dot);
}

.chain-word-4 i {
  background: var(--lf-tag-on-truck-dot);
}

.chain-word-5 i {
  background: var(--lf-tag-at-saw-dot);
}

.chain-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
}

.chain-steps::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--lf-color-border-strong);
}

.chain-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.375rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--lf-color-text-muted);
  animation: chain-step 15s linear infinite;
}

.chain-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--lf-color-text-secondary);
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-border-strong);
  border-radius: 50%;
}

.chain-text {
  display: grid;
  font-weight: var(--lf-font-weight-medium);
}

.chain-place {
  font: var(--lf-text-micro-label);
  font-size: 0.625rem;
  letter-spacing: var(--lf-tracking-micro);
  text-transform: uppercase;
  color: var(--lf-color-text-muted);
}

.chain-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 24rem;
  font-size: var(--lf-font-size-sm);
  text-align: center;
  color: var(--lf-color-text-muted);
}

@keyframes chain-tag {
  0%,
  16% {
    background-color: var(--lf-tag-standing-bg);
  }
  20%,
  36% {
    background-color: var(--lf-tag-felled-bg);
  }
  40%,
  56% {
    background-color: var(--lf-tag-bucked-bg);
  }
  60%,
  76% {
    background-color: var(--lf-tag-on-truck-bg);
  }
  80%,
  96% {
    background-color: var(--lf-tag-at-saw-bg);
  }
  100% {
    background-color: var(--lf-tag-standing-bg);
  }
}

@keyframes chain-ring {
  0%,
  16% {
    stroke: var(--lf-tag-standing-ring);
  }
  20%,
  36% {
    stroke: var(--lf-tag-felled-ring);
  }
  40%,
  56% {
    stroke: var(--lf-tag-bucked-ring);
  }
  60%,
  76% {
    stroke: var(--lf-tag-on-truck-ring);
  }
  80%,
  96% {
    stroke: var(--lf-tag-at-saw-ring);
  }
  100% {
    stroke: var(--lf-tag-standing-ring);
  }
}

/* Each word shows for its fifth of the loop; the delays move it along. */
@keyframes chain-show {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  3%,
  17% {
    opacity: 1;
    transform: none;
  }
  20%,
  100% {
    opacity: 0;
  }
}

@keyframes chain-step {
  0% {
    color: var(--lf-color-text-muted);
  }
  3%,
  17% {
    color: var(--lf-color-text);
  }
  20%,
  100% {
    color: var(--lf-color-text-muted);
  }
}

.chain-step .chain-icon {
  animation: chain-icon 15s linear infinite;
  animation-delay: inherit;
}

@keyframes chain-icon {
  0%,
  20%,
  100% {
    color: var(--lf-color-text-secondary);
    background: var(--lf-color-card);
    border-color: var(--lf-color-border-strong);
    transform: none;
  }
  3%,
  17% {
    color: var(--lf-color-accent-text);
    background: var(--lf-color-accent);
    border-color: var(--lf-color-accent);
    transform: scale(1.08);
  }
}

/* After .chain-step and .chain-word, whose animation shorthand would reset them. */
.chain-word-2,
.chain-step-2 {
  animation-delay: -12s;
}

.chain-word-3,
.chain-step-3 {
  animation-delay: -9s;
}

.chain-word-4,
.chain-step-4 {
  animation-delay: -6s;
}

.chain-word-5,
.chain-step-5 {
  animation-delay: -3s;
}

@media (prefers-reduced-motion: reduce) {
  .chain-tag,
  .chain-rings circle,
  .chain-word,
  .chain-step,
  .chain-step .chain-icon {
    animation: none;
  }

  .chain-tag {
    background: var(--lf-tag-felled-bg);
  }

  .chain-rings circle {
    stroke: var(--lf-tag-felled-ring);
  }

  .chain-word-2 {
    opacity: 1;
  }
}

/* ── How it works: steps with their screens ─────────────────────────── */

.flow {
  display: grid;
  gap: 2rem 1.25rem;
  counter-reset: flow;
}

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

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

.flow-step {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.flow-step p:last-child {
  color: var(--lf-color-text-secondary);
}

.flow-shot {
  aspect-ratio: 4 / 5;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--lf-color-sidebar);
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-card);
  box-shadow: var(--lf-shadow-raised);
}

.flow-shot figure {
  width: 100%;
  max-width: none;
  height: 100%;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.flow-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
}

.flow-shot-console img {
  object-position: 26% 8%;
  transform: scale(1.35);
  transform-origin: 26% 8%;
}

.flow-place {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: var(--lf-text-micro-label);
  letter-spacing: var(--lf-tracking-micro);
  text-transform: uppercase;
  color: var(--lf-color-text-muted);
}

/* ── Paper or register ───────────────────────────────────────────────── */

.compare {
  padding: 0;
  overflow: hidden;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--lf-color-border-subtle);
}

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

.compare-table thead th {
  font: var(--lf-text-micro-label);
  letter-spacing: var(--lf-tracking-micro);
  text-transform: uppercase;
  color: var(--lf-color-text-muted);
  background: var(--lf-color-surface);
}

.compare-table tbody th {
  font-weight: var(--lf-font-weight-semibold);
}

.compare-table td {
  color: var(--lf-color-text-secondary);
}

.compare-table td .icon {
  float: left;
  margin: 0.15rem 0.5rem 0 0;
}

.compare-paper .icon {
  color: var(--lf-color-danger);
}

.compare-product .icon {
  color: var(--lf-color-accent);
}

.compare-table td.compare-product {
  color: var(--lf-color-text);
}

@media (min-width: 52rem) {
  .compare-table th:first-child {
    width: 30%;
  }

  .compare-table thead .compare-product {
    color: var(--lf-color-selected-text);
  }

  .compare-table td.compare-product {
    background: color-mix(in srgb, var(--lf-color-selected) 45%, transparent);
  }
}

/* At phone width each row is a small card: the problem, then both answers. */
@media (max-width: 51.99rem) {
  .compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .compare-table tr {
    display: grid;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--lf-color-border-subtle);
  }

  .compare-table tbody tr:last-child {
    border-bottom: 0;
  }

  .compare-table th,
  .compare-table td {
    display: block;
    padding: 0;
    border: 0;
  }

  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font: var(--lf-text-micro-label);
    letter-spacing: var(--lf-tracking-micro);
    text-transform: uppercase;
    color: var(--lf-color-text-muted);
  }

  .compare-table td .icon {
    display: none;
  }
}

/* ── Offline: records wait, then go ──────────────────────────────────── */

.offline-visual {
  display: grid;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 40rem) {
  .offline-visual {
    grid-template-columns: minmax(0, 1fr) 5.5rem minmax(0, 1fr);
  }
}

.ov-box {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-height: 15rem;
  padding: 1.25rem;
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-card);
  box-shadow: var(--lf-shadow-raised);
}

.ov-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--lf-font-weight-semibold);
}

.ov-chips {
  display: grid;
  min-height: 1.75rem;
}

.ov-chip {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-medium);
  border-radius: var(--lf-radius-pill);
}

.ov-chip .icon {
  width: 1rem;
  height: 1rem;
}

.ov-chip-off {
  color: var(--lf-color-warning);
  background: var(--lf-color-warning-surface);
  animation: ov-early 10s ease-in-out infinite;
}

.ov-chip-on,
.ov-chip-new {
  color: var(--lf-color-success);
  background: var(--lf-color-success-surface);
  animation: ov-late 10s ease-in-out infinite;
}

.ov-records {
  display: grid;
  gap: 0.5rem;
}

.ov-record {
  padding: 0.5rem 0.75rem;
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-medium);
  background: var(--lf-color-raised);
  border-radius: var(--lf-radius-chip);
}

.ov-records-device .ov-record {
  animation: ov-leave 10s ease-in-out infinite;
}

.ov-records-office .ov-record {
  background: var(--lf-color-selected);
  color: var(--lf-color-selected-text);
  animation: ov-arrive 10s ease-in-out infinite;
}

.ov-record-2 {
  animation-delay: 0.25s !important;
}

.ov-record-3 {
  animation-delay: 0.5s !important;
}

.ov-link {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.ov-signal {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  font-size: var(--lf-font-size-xs);
  color: var(--lf-color-text-muted);
  animation: ov-signal 10s ease-in-out infinite;
}

.ov-signal .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--lf-color-accent);
}

.ov-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: var(--lf-color-border-strong);
  border-radius: 1px;
}

.ov-line i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--lf-color-accent);
  border-radius: 50%;
  opacity: 0;
  animation: ov-travel 10s ease-in-out infinite;
}

.ov-line i:nth-child(2) {
  animation-delay: 0.2s;
}

.ov-line i:nth-child(3) {
  animation-delay: 0.4s;
}

@media (max-width: 39.99rem) {
  .ov-box {
    min-height: 0;
  }

  .ov-line {
    width: 2px;
    height: 2.5rem;
  }

  .ov-line i {
    left: -3px;
    top: 0;
    animation-name: ov-travel-down;
  }
}

@keyframes ov-early {
  0%,
  50% {
    opacity: 1;
  }
  55%,
  94% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes ov-late {
  0%,
  55% {
    opacity: 0;
  }
  60%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes ov-leave {
  0%,
  46% {
    opacity: 1;
    transform: none;
  }
  56%,
  94% {
    opacity: 0.25;
    transform: translateX(0.5rem);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes ov-arrive {
  0%,
  54% {
    opacity: 0;
    transform: translateX(-0.5rem);
  }
  62%,
  94% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

@keyframes ov-signal {
  0%,
  40% {
    opacity: 0.3;
  }
  45%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

@keyframes ov-travel {
  0%,
  44% {
    left: 0;
    opacity: 0;
  }
  46% {
    opacity: 1;
  }
  56% {
    left: calc(100% - 8px);
    opacity: 1;
  }
  58%,
  100% {
    left: calc(100% - 8px);
    opacity: 0;
  }
}

@keyframes ov-travel-down {
  0%,
  44% {
    top: 0;
    opacity: 0;
  }
  46% {
    opacity: 1;
  }
  56% {
    top: calc(100% - 8px);
    opacity: 1;
  }
  58%,
  100% {
    top: calc(100% - 8px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ov-chip,
  .ov-record,
  .ov-signal,
  .ov-line i {
    animation: none !important;
  }

  .ov-chip-on {
    display: none;
  }
}

/* ── Security: where the data goes ───────────────────────────────────── */

.section-title {
  margin-bottom: 1.5rem;
}

.data-diagram {
  display: grid;
  gap: 1.5rem;
}

.dd-nodes {
  display: grid;
  gap: 1.25rem;
}

.dd-node {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.dd-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: var(--lf-font-weight-semibold);
}

.dd-title .card-icon {
  margin: 0;
}

.dd-node .check-list {
  font-size: var(--lf-font-size-md);
}

/* The service in the middle: the device sends to it, the console reads it, the backups copy it. */
.dd-node::after {
  content: '';
  position: absolute;
  background: var(--lf-color-accent);
}

.dd-node-4::after {
  content: none;
}

@media (max-width: 63.99rem) {
  .dd-node::after {
    left: 2.25rem;
    bottom: -1.25rem;
    width: 2px;
    height: 1.25rem;
  }
}

@media (min-width: 64rem) {
  .dd-nodes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      'device service console'
      '. backups .';
    gap: 2.5rem;
  }

  .dd-node-1 {
    grid-area: device;
  }

  .dd-node-2 {
    grid-area: service;
  }

  .dd-node-3 {
    grid-area: console;
  }

  .dd-node-4 {
    grid-area: backups;
  }

  .dd-node-1::after,
  .dd-node-3::after {
    top: 50%;
    right: -2.5rem;
    width: 2.5rem;
    height: 2px;
  }

  .dd-node-3::after {
    right: auto;
    left: -2.5rem;
  }

  .dd-node-2::after {
    left: 50%;
    bottom: -2.5rem;
    width: 2px;
    height: 2.5rem;
  }
}

/*
 * The interactive demo (src/demo): its frame and tour, the device app (dv-)
 * and the panel (pn-). The device and the panel are drawn with the product's
 * tokens, so they follow the visitor's light or dark setting as the product
 * does; the tree tags are dark in both, as in the app.
 */

.container-wide {
  max-width: 90rem;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: none;
}

.section-head-row .section-head {
  margin-bottom: 0;
}

.button-quiet {
  background: transparent;
  color: var(--lf-color-text-secondary);
}

.button-quiet:hover {
  background: var(--lf-color-surface-muted);
  color: var(--lf-color-text);
}

/* ── The frame ───────────────────────────────────────────────────────── */

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

.demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.demo-note {
  font-size: var(--lf-font-size-sm);
  color: var(--lf-color-text-muted);
}

.demo-fallback {
  display: grid;
  gap: 1rem;
  color: var(--lf-color-text-secondary);
}

.demo-fallback-shots {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 52rem) {
  .demo-fallback-shots {
    grid-template-columns: 16rem minmax(0, 1fr);
  }
}

.demo.is-live .demo-fallback {
  display: none;
}

.demo-shell {
  display: grid;
  gap: 1rem;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.demo-tabs {
  display: inline-flex;
  padding: 0.25rem;
  background: var(--lf-color-raised);
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-pill);
}

.demo-tab {
  min-height: 2.25rem;
  padding: 0 1rem;
  font: inherit;
  font-size: var(--lf-font-size-md);
  font-weight: var(--lf-font-weight-medium);
  color: var(--lf-color-text-secondary);
  background: none;
  border: 0;
  border-radius: var(--lf-radius-pill);
  cursor: pointer;
}

.demo-tab[aria-pressed='true'] {
  color: var(--lf-color-primary-text);
  background: var(--lf-color-primary);
}

.demo-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.875rem 0 0.5rem;
  font: inherit;
  font-size: var(--lf-font-size-md);
  color: var(--lf-color-text);
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-border-strong);
  border-radius: var(--lf-radius-pill);
  cursor: pointer;
}

.demo-switch-track {
  position: relative;
  width: 2.25rem;
  height: 1.375rem;
  background: var(--lf-color-control-border);
  border-radius: var(--lf-radius-pill);
  transition: background-color var(--lf-motion-duration);
}

.demo-switch-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1rem;
  height: 1rem;
  background: var(--lf-color-card);
  border-radius: 50%;
  transition: transform var(--lf-motion-duration);
}

.demo-switch[aria-checked='true'] .demo-switch-track {
  background: var(--lf-color-accent);
}

.demo-switch[aria-checked='true'] .demo-switch-track span {
  transform: translateX(0.875rem);
}

.demo-switch-label {
  font-weight: var(--lf-font-weight-medium);
}

.demo-switch-state {
  color: var(--lf-color-text-muted);
}

.demo-reset {
  margin-left: auto;
}

.demo-stage {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.demo-half {
  display: grid;
  gap: 0.625rem;
  min-width: 0;
}

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: var(--lf-font-size-sm);
  color: var(--lf-color-text-muted);
}

@media (max-width: 63.99rem) {
  .demo-stage[data-half='device'] .demo-half-panel,
  .demo-stage[data-half='panel'] .demo-half-device {
    display: none;
  }
}

@media (min-width: 64rem) {
  .demo-tabs {
    display: none;
  }

  .demo-reset {
    margin-left: 0;
  }

  .demo-stage {
    grid-template-columns: 22.5rem minmax(0, 1fr);
    gap: 2rem;
  }
}

/* What the tour points at. */
.is-hint {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--lf-color-accent) !important;
  outline-offset: 3px;
  animation: hint 1.6s ease-in-out infinite;
}

@keyframes hint {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--lf-color-accent) 45%, transparent);
  }
  50% {
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--lf-color-accent) 0%, transparent);
  }
}

/* ── The tour ────────────────────────────────────────────────────────── */

.demo-tour {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-border);
  border-left: 4px solid var(--lf-color-accent);
  border-radius: var(--lf-radius-lg);
  box-shadow: var(--lf-shadow-raised);
}

.demo-tour.is-closed {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.demo-tour.is-done {
  border-left-color: var(--lf-color-success);
}

@media (min-width: 52rem) {
  .demo-tour:not(.is-closed) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
  }

  .demo-tour.is-done {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.demo-tour-dots {
  display: flex;
  gap: 0.375rem;
}

.demo-tour-dots li {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--lf-color-border-strong);
  border-radius: 50%;
}

.demo-tour-dots .is-done {
  background: var(--lf-color-accent);
}

.demo-tour-dots .is-on {
  width: 1.5rem;
  background: var(--lf-color-accent);
  border-radius: var(--lf-radius-pill);
}

.demo-tour-text {
  display: grid;
  gap: 0.125rem;
}

.demo-tour-text p {
  font-size: var(--lf-font-size-md);
  color: var(--lf-color-text-secondary);
}

.demo-tour-text .demo-tour-step {
  font-size: 1rem;
  font-weight: var(--lf-font-weight-semibold);
  color: var(--lf-color-text);
}

.demo-tour-count {
  margin-right: 0.5rem;
  font: var(--lf-text-micro-label);
  letter-spacing: var(--lf-tracking-micro);
  text-transform: uppercase;
  color: var(--lf-color-accent);
}

.demo-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.demo-tour-actions .button {
  min-height: 2.5rem;
  padding-inline: 0.875rem;
  font-size: var(--lf-font-size-md);
}

/* ── The device ──────────────────────────────────────────────────────── */

.demo-device {
  position: relative;
  width: 100%;
  max-width: 22.5rem;
  height: min(46rem, calc(100svh - 9rem));
  min-height: 34rem;
  justify-self: center;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
  color: var(--lf-color-text);
  background: var(--lf-color-bg);
  border: 10px solid #0b0e0c;
  border-radius: 46px;
  outline: 1px solid var(--lf-color-border-strong);
  box-shadow:
    0 30px 60px -20px rgb(10 12 11 / 35%),
    0 12px 24px -12px rgb(10 12 11 / 25%);
}

@media (min-width: 64rem) {
  .demo-device {
    height: 46rem;
  }
}

.demo-device:focus-visible {
  outline: var(--lf-focus-width) solid var(--lf-color-focus);
}

.demo-device button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* The top of the frame is a status bar's room: no screen content goes under the rounded edge. */
.dv-screen {
  position: absolute;
  inset: 1.25rem 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.dv-screen::-webkit-scrollbar {
  display: none;
}

.demo-device.has-pad .dv-screen {
  padding-bottom: 20rem;
}

.dv-page {
  display: grid;
  /* One column no wider than the screen, whatever a long title asks for. */
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 0.875rem 1rem 1.5rem;
}

.dv-in-push {
  animation: dv-push 0.22s ease-out;
}

.dv-in-pop {
  animation: dv-pop 0.22s ease-out;
}

@keyframes dv-push {
  from {
    opacity: 0.3;
    transform: translateX(1.5rem);
  }
}

@keyframes dv-pop {
  from {
    opacity: 0.3;
    transform: translateX(-1.5rem);
  }
}

/* The header stays at the top while the page scrolls under it, as in the app. */
.dv-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3rem;
  margin: -0.875rem -1rem 0;
  padding: 0.5rem 1rem;
  background: var(--lf-color-bg);
}

.dv-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 1.1875rem;
  font-weight: var(--lf-font-weight-semibold);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dv-title:focus {
  outline: none;
}

.dv-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.875rem;
  font-weight: var(--lf-font-weight-semibold);
  color: var(--lf-color-selected-text);
  background: var(--lf-color-selected);
  border-radius: 50%;
}

.dv-lot {
  display: inline-flex;
  flex-shrink: 0;
  white-space: nowrap;
  align-items: center;
  gap: 0.375rem;
  height: 2.5rem;
  padding: 0 0.875rem;
  font-weight: var(--lf-font-weight-medium) !important;
  background: var(--lf-color-card);
  border: 0;
  border-radius: var(--lf-radius-pill);
  box-shadow: var(--lf-shadow-raised);
}

.dv-sync {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  padding: 0.25rem 0.55rem;
  font-family: var(--lf-font-family-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--lf-radius-pill);
}

.dv-sync.is-sent {
  color: var(--lf-color-success);
}

.dv-sync.is-waiting,
.dv-sync.is-sending {
  color: var(--lf-color-info);
  background: var(--lf-color-info-surface);
}

.dv-sync.is-sending .di {
  animation: blink 0.8s ease-in-out infinite;
}

.dv-sync.is-offline {
  color: var(--lf-color-warning);
  background: var(--lf-color-warning-surface);
}

@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

.di {
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
}

.di-sm {
  width: 1rem;
  height: 1rem;
}

.dv-round {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  color: var(--lf-color-text);
  background: var(--lf-color-card);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--lf-shadow-raised);
}

.dv-back {
  width: 2.75rem;
  height: 2.75rem;
}

.dv-round-sm {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--lf-color-raised);
  box-shadow: none;
}

.dv-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
}

.dv-action {
  display: grid;
  justify-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0;
  background: none;
  border: 0;
  border-radius: var(--lf-radius-control);
}

.dv-action-label {
  font-size: 0.8125rem;
  color: var(--lf-color-text-secondary);
}

.dv-action.is-on .dv-round {
  color: var(--lf-color-accent-text);
  background: var(--lf-color-accent);
}

.dv-action.is-on .dv-action-label {
  font-weight: var(--lf-font-weight-semibold);
  color: var(--lf-color-text);
}

.dv-lookup {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding-block: 1.25rem 0.5rem;
  text-align: center;
}

.dv-label {
  font-size: 0.9375rem;
  color: var(--lf-color-text-muted);
}

.dv-display {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 3.5rem;
  font-size: 3rem;
  font-weight: var(--lf-font-weight-semibold);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.dv-display.is-empty {
  font-size: 2rem;
  font-weight: var(--lf-font-weight-regular);
  letter-spacing: -0.01em;
  color: var(--lf-color-text-faint);
}

.dv-caret {
  width: 3px;
  height: 2.5rem;
  background: var(--lf-color-accent);
  border-radius: 2px;
  animation: blink 1.1s steps(1) infinite;
}

.dv-modes {
  display: flex;
  gap: 0.375rem;
}

.dv-modes span {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: var(--lf-font-weight-semibold);
  color: var(--lf-color-text-secondary);
  background: var(--lf-color-card);
  border-radius: var(--lf-radius-pill);
}

.dv-modes .is-on {
  color: var(--lf-color-primary-text);
  background: var(--lf-color-primary);
}

.dv-error {
  font-size: 0.875rem;
  color: var(--lf-color-danger);
}

.dv-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--lf-color-card);
  border-radius: var(--lf-radius-card);
}

.dv-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: var(--lf-font-weight-semibold);
}

.dv-muted {
  font-weight: var(--lf-font-weight-regular);
  color: var(--lf-color-text-muted);
}

.dv-accent-text {
  font-weight: var(--lf-font-weight-medium);
  color: var(--lf-color-accent);
}

.dv-need {
  font-size: 0.75rem;
  font-weight: var(--lf-font-weight-medium);
  color: var(--lf-color-warning);
}

.dv-hint,
.dv-body {
  font-size: 0.8125rem;
  color: var(--lf-color-text-muted);
}

.dv-body {
  font-size: 0.9375rem;
  color: var(--lf-color-text-secondary);
}

.dv-rows {
  display: grid;
}

.dv-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.5rem 0.25rem;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--lf-color-border-subtle);
  border-radius: 0;
}

.dv-rows li:first-child .dv-row {
  border-top: 0;
}

.dv-row-num {
  min-width: 3rem;
  font-size: 1.125rem;
  font-weight: var(--lf-font-weight-semibold);
  font-variant-numeric: tabular-nums;
}

.dv-row-word {
  display: inline-flex;
  flex: 1;
  align-items: center;
  gap: 0.4rem;
  color: var(--lf-color-text-secondary);
}

.dv-row-main {
  display: grid;
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
}

.dv-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--tag-dot);
  border-radius: 50%;
}

/* In light, the standing tag's grey dot needs a darker stand-in to show on white. */
.dv-dot.tag-standing {
  background: var(--lf-color-text-faint);
}

.dv-plate {
  padding: 0.25rem 0.5rem;
  font-family: var(--lf-font-family-mono);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--lf-color-raised);
  border: 1px solid var(--lf-color-border-strong);
  border-radius: 6px;
}

.dv-flash {
  display: grid;
  gap: 0.375rem;
  padding: 0.875rem 1rem;
  color: var(--lf-color-selected-text);
  background: var(--lf-color-selected);
  border-radius: var(--lf-radius-card);
}

.dv-flash-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: var(--lf-font-weight-semibold);
}

.dv-flash-sub {
  font-size: 0.8125rem;
}

.dv-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.25rem;
  padding: 0.375rem 0;
  font-weight: var(--lf-font-weight-semibold) !important;
  color: var(--lf-color-selected-text) !important;
  background: none;
  border: 0;
  border-radius: 6px;
}

.dv-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1.25rem;
  font-weight: var(--lf-font-weight-semibold) !important;
  border: 0;
  border-radius: var(--lf-radius-pill);
}

.dv-pill-primary {
  color: var(--lf-color-primary-text) !important;
  background: var(--lf-color-primary);
}

.dv-pill-accent {
  color: var(--lf-color-accent-text) !important;
  background: var(--lf-color-accent);
}

.dv-pill-raised {
  width: auto;
  min-height: 2.75rem;
  background: var(--lf-color-raised);
  border: 1px solid var(--lf-color-border-strong);
}

.dv-pill[aria-disabled='true'] {
  opacity: 0.38;
  cursor: default;
}

.dv-small {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: var(--lf-font-weight-medium) !important;
  background: var(--lf-color-raised);
  border: 0;
  border-radius: var(--lf-radius-pill);
}

.dv-save {
  padding-top: 0.25rem;
}

.dv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dv-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  font-weight: var(--lf-font-weight-medium) !important;
  background: var(--lf-color-raised);
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-chip);
}

.dv-chip.is-on {
  color: var(--lf-color-selected-text) !important;
  background: var(--lf-color-selected);
  border-color: var(--lf-color-accent);
}

.dv-code {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 0.875rem;
  font-family: var(--lf-font-family-mono) !important;
  font-weight: 600;
  color: var(--lf-color-selected-text) !important;
  background: var(--lf-color-selected);
  border: 1px solid var(--lf-color-accent);
  border-radius: var(--lf-radius-pill);
}

.dv-code.is-kept {
  color: var(--lf-color-text-secondary) !important;
  background: var(--lf-color-raised);
  border-color: var(--lf-color-border-strong);
}

.dv-tabs {
  margin-top: -0.25rem;
}

/* The tree's tag. */
.dv-tag {
  position: relative;
  display: block;
  width: 100%;
  min-height: 11.5rem;
  padding: 0;
  text-align: left;
  color: var(--lf-tag-text) !important;
  background: var(--tag-bg);
  border: 0;
  border-radius: var(--lf-radius-card);
  box-shadow: var(--lf-shadow-hero);
  overflow: hidden;
  perspective: 900px;
  transition: background-color 0.6s ease-out;
}

.dv-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.dv-rings circle {
  fill: none;
  stroke: var(--tag-ring);
  stroke-width: 1.2;
  transition: stroke 0.6s ease-out;
}

.dv-tag-inner {
  position: relative;
  display: grid;
  min-height: 11.5rem;
  transform-style: preserve-3d;
  transition: transform 0.42s ease-out;
}

.dv-tag.is-flipped .dv-tag-inner {
  transform: rotateY(180deg);
}

.dv-tag-face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  padding: 1.125rem 1.25rem;
  backface-visibility: hidden;
}

.dv-tag-back {
  flex-direction: row;
  gap: 1rem;
  transform: rotateY(180deg);
}

.dv-tag-lot {
  font-family: var(--lf-font-family-mono);
  font-size: 0.6875rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--tag-muted);
}

.dv-tag-bottom {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: auto;
}

.dv-tag-id {
  display: grid;
  flex: 1;
  min-width: 0;
}

.dv-tag-num {
  font-size: 4rem;
  font-weight: var(--lf-font-weight-semibold);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.dv-tag-codes {
  font-family: var(--lf-font-family-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--tag-muted);
}

.dv-tag-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 1.75rem;
  margin-bottom: 0.25rem;
  padding: 0 0.7rem;
  font-size: 0.8125rem;
  font-weight: var(--lf-font-weight-semibold);
  white-space: nowrap;
  background: rgb(242 245 243 / 10%);
  border-radius: var(--lf-radius-pill);
}

.dv-tag-status i {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--tag-dot);
  border-radius: 50%;
}

.dv-tag-photo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 5.5rem;
  overflow: hidden;
  font-size: 0.75rem;
  text-align: center;
  color: var(--tag-muted);
  border: 1.2px dashed var(--tag-ring);
  border-radius: 14px;
}

.dv-tag-photo svg {
  width: 100%;
  height: 100%;
}

.dv-tag-text {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.8125rem;
}

.dv-tag-place {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: var(--lf-font-weight-medium);
}

.dv-tag-log {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.dv-tag-log span {
  flex: 1;
  color: var(--tag-muted);
}

.dv-tag-log b:first-child {
  font-family: var(--lf-font-family-mono);
}

.dv-tag-muted {
  color: var(--tag-muted);
}

.dv-figure {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  text-align: center;
}

.dv-figure-label,
.dv-figure-sub {
  font-size: 0.875rem;
  color: var(--lf-color-text-muted);
}

.dv-hero {
  font-size: 3.25rem;
  font-weight: var(--lf-font-weight-semibold);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.dv-faint {
  color: var(--lf-color-text-faint);
}

.dv-unit {
  margin-left: 0.25rem;
  font-size: 1.375rem;
  font-weight: var(--lf-font-weight-medium);
  letter-spacing: 0;
  color: var(--lf-color-text-muted);
}

.dv-bar {
  width: 80%;
  height: 6px;
  margin-top: 0.375rem;
  overflow: hidden;
  background: var(--lf-color-raised);
  border-radius: 3px;
}

.dv-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lf-color-accent);
  border-radius: 3px;
}

/* Steps on the tree's page. */
.dv-steps {
  display: grid;
  gap: 1rem;
}

.dv-step {
  display: flex;
  gap: 0.875rem;
}

.dv-step-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  font-weight: var(--lf-font-weight-medium);
  color: var(--lf-color-text-muted);
  border: 1.5px solid var(--lf-color-border-strong);
  border-radius: 50%;
}

.dv-step.is-done .dv-step-mark {
  color: var(--lf-color-accent-text);
  background: var(--lf-color-accent);
  border-color: var(--lf-color-accent);
}

.dv-step.is-next .dv-step-mark {
  color: var(--lf-color-accent);
  border-color: var(--lf-color-accent);
}

.dv-step-body {
  display: grid;
  flex: 1;
  gap: 0.375rem;
  min-width: 0;
}

.dv-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.25rem;
}

.dv-step-name {
  font-size: 1.0625rem;
}

.dv-step-sub {
  font-size: 0.8125rem;
  color: var(--lf-color-text-muted);
}

.dv-next {
  font-size: 0.875rem;
  font-weight: var(--lf-font-weight-semibold);
  color: var(--lf-color-accent);
}

.dv-later {
  font-size: 0.8125rem;
  text-align: right;
  color: var(--lf-color-text-muted);
}

/* Felling. */
.dv-photo-empty {
  display: grid;
  justify-items: center;
  gap: 0.625rem;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--lf-color-text-muted);
  border: 1.5px dashed var(--lf-color-border-strong);
  border-radius: var(--lf-radius-control);
}

.dv-photo-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.dv-photo {
  display: grid;
  gap: 0.25rem;
  width: 6rem;
  font-size: 0.6875rem;
  color: var(--lf-color-text-muted);
}

.dv-photo svg {
  width: 6rem;
  height: 8rem;
  border-radius: var(--lf-radius-control);
}

.dv-photo-art .pa-sky {
  fill: #2e4537;
}

.dv-photo-art .pa-far {
  fill: #243a2d;
}

.dv-photo-art .pa-ground {
  fill: #4a3a28;
}

.dv-photo-art .pa-trunk {
  fill: #8a6744;
}

.dv-photo-art .pa-bark {
  fill: none;
  stroke: #6b4f33;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.dv-photo-art .pa-stamp {
  fill: none;
  stroke: #f2f5f3;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.dv-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--lf-font-weight-medium);
  color: var(--lf-color-text-muted);
}

.dv-location.is-done {
  color: var(--lf-color-success);
}

.dv-location:not(.is-done) .di {
  animation: blink 0.9s ease-in-out infinite;
}

.dv-missing {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--lf-color-warning);
  background: var(--lf-color-warning-surface);
  border-radius: var(--lf-radius-control);
}

.dv-missing ul {
  padding-left: 1.125rem;
  list-style: disc;
}

/* Bucking. */
.dv-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.dv-stepper b {
  min-width: 1.25rem;
  font-size: 1.125rem;
  text-align: center;
}

.dv-logs {
  display: grid;
  gap: 0.5rem;
}

.dv-log {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1fr) 3.25rem;
  align-items: center;
  gap: 0.375rem;
}

.dv-log-head {
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--lf-color-text-muted);
}

.dv-log-code {
  font-family: var(--lf-font-family-mono);
  font-size: 0.8125rem;
  font-weight: 600;
}

.dv-log-vol {
  font-size: 0.8125rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dv-box {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.625rem;
  font-size: 1.0625rem !important;
  font-weight: var(--lf-font-weight-semibold) !important;
  text-align: left;
  font-variant-numeric: tabular-nums;
  background: var(--lf-color-raised);
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-chip);
}

.dv-box.is-empty {
  font-weight: var(--lf-font-weight-regular) !important;
  color: var(--lf-color-text-faint) !important;
}

.dv-box.is-focus {
  background: var(--lf-color-card);
  border: 2px solid var(--lf-color-accent);
}

/* A load. */
.dv-ticket {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  color: var(--lf-tag-text);
  background: var(--lf-tag-on-truck-bg);
  border-radius: var(--lf-radius-card);
  box-shadow: var(--lf-shadow-hero);
}

.dv-ticket-when {
  font-family: var(--lf-font-family-mono);
  font-size: 0.75rem;
  color: var(--lf-tag-on-truck-muted);
}

.dv-ticket-plate {
  justify-self: start;
  padding: 0.25rem 0.875rem;
  font-family: var(--lf-font-family-mono);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0b0e0c;
  background: #f2f5f3;
  border-radius: 8px;
}

.dv-ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  font-weight: var(--lf-font-weight-medium);
}

.dv-ticket-grid span {
  display: grid;
}

.dv-ticket-grid small {
  font-size: 0.75rem;
  font-weight: var(--lf-font-weight-regular);
  color: var(--lf-tag-on-truck-muted);
}

.dv-plate-line {
  font-size: 0.875rem;
}

/* The keypad, floating digits on a raised panel (docs/plan/16-redesign.md §3). */
.dv-pad-slot {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.dv-pad {
  display: grid;
  gap: 0.5rem;
  padding: 0.5rem 1rem 1rem;
  background: var(--lf-color-panel);
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -12px 32px rgb(11 14 12 / 10%);
}

.dv-grip {
  justify-self: center;
  width: 2.5rem;
  height: 4px;
  margin-bottom: 0.25rem;
  background: var(--lf-color-border-strong);
  border-radius: 2px;
}

.dv-keys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.125rem;
}

.dv-key {
  position: relative;
  display: grid;
  place-items: center;
  height: 3.125rem;
  padding: 0;
  font-size: 1.625rem !important;
  font-weight: var(--lf-font-weight-regular);
  background: none;
  border: 0;
  border-radius: var(--lf-radius-control);
  isolation: isolate;
}

.dv-key::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--lf-color-surface-muted);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.12s,
    transform 0.12s;
}

.dv-key:active::before,
.dv-key:hover::before {
  opacity: 1;
  transform: none;
}

.dv-notice {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--lf-color-primary-text);
  background: var(--lf-color-primary);
  border-radius: var(--lf-radius-control);
  box-shadow: var(--lf-shadow-overlay);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.5rem);
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.dv-notice.is-on,
.pn-notice.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.demo-device.has-pad .dv-notice {
  bottom: 21rem;
}

/* ── The panel ───────────────────────────────────────────────────────── */

.demo-browser {
  position: relative;
  display: flex;
  flex-direction: column;
  height: min(46rem, calc(100svh - 9rem));
  min-height: 34rem;
  overflow: hidden;
  background: var(--lf-color-bg);
  border: 1px solid var(--lf-color-border-strong);
  border-radius: 1rem;
  box-shadow:
    0 30px 60px -24px rgb(10 12 11 / 28%),
    var(--lf-shadow-raised);
}

@media (min-width: 64rem) {
  .demo-browser {
    height: 46rem;
  }
}

.demo-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.25rem;
  padding: 0 0.875rem;
  background: var(--lf-color-sidebar);
  border-bottom: 1px solid var(--lf-color-border);
}

.demo-browser-bar i {
  width: 0.625rem;
  height: 0.625rem;
  background: var(--lf-color-border-strong);
  border-radius: 50%;
}

.demo-browser-bar span {
  margin: 0 auto;
  padding: 0.125rem 1.25rem;
  font-size: 0.75rem;
  color: var(--lf-color-text-muted);
  background: var(--lf-color-bg);
  border-radius: var(--lf-radius-pill);
}

.demo-panel {
  flex: 1;
  min-height: 0;
  container-type: inline-size;
}

.pn {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  height: 100%;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.pn button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.pn-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.875rem 0.625rem;
  overflow-y: auto;
  background: var(--lf-color-sidebar);
  border-right: 1px solid var(--lf-color-border);
}

.pn-logo {
  padding: 0.125rem 0.5rem;
  color: var(--lf-color-text);
}

.pn-logo .logo {
  width: 6.5rem;
  height: 1.375rem;
}

.pn-org {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  font-size: 0.75rem;
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-control);
}

.pn-org-mark {
  font-family: var(--lf-font-family-mono);
  font-size: 0.6875rem;
  color: var(--lf-color-text-muted);
}

.pn-group {
  padding: 0.75rem 0.5rem 0.25rem;
  font: var(--lf-text-micro-label);
  font-size: 0.625rem;
  letter-spacing: var(--lf-tracking-micro);
  text-transform: uppercase;
  color: var(--lf-color-text-muted);
}

.pn-nav {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 2rem;
  padding: 0 0.5rem;
  text-align: left;
  color: var(--lf-color-text-secondary) !important;
  background: none;
  border: 0;
  border-radius: 10px;
}

.pn-nav:hover {
  background: var(--lf-color-surface-muted);
}

.pn-nav.is-on {
  font-weight: var(--lf-font-weight-medium);
  color: var(--lf-color-text) !important;
  background: var(--lf-color-nav-selected);
}

.pn-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}

.pn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 3rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--lf-color-border);
}

.pn-search {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 12rem;
  height: 2rem;
  padding: 0 0.75rem;
  color: var(--lf-color-text-muted) !important;
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-border-strong);
  border-radius: var(--lf-radius-pill);
}

.pn-search kbd {
  margin-left: auto;
  font-family: var(--lf-font-family-mono);
  font-size: 0.6875rem;
}

.pn-me {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.pn-avatar {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.6875rem;
  font-weight: var(--lf-font-weight-semibold);
  color: var(--lf-color-selected-text);
  background: var(--lf-color-selected);
  border-radius: 50%;
}

.pn-body {
  display: grid;
  align-content: start;
  gap: 0.875rem;
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pn-h1 {
  font-size: 1.375rem;
  font-weight: var(--lf-font-weight-semibold);
  letter-spacing: -0.02em;
}

.pn-h1:focus {
  outline: none;
}

.pn-h2 {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: var(--lf-font-weight-semibold);
}

.pn-h3 {
  font-size: 0.875rem;
  font-weight: var(--lf-font-weight-semibold);
}

.pn-muted {
  font-weight: var(--lf-font-weight-regular);
  color: var(--lf-color-text-muted);
}

.pn-things {
  font-size: 1.625rem;
  font-weight: var(--lf-font-weight-semibold);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.pn-card {
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-border);
  border-radius: 16px;
}

.pn-pad {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
}

.pn-todo li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0.875rem;
}

.pn-todo li + li {
  border-top: 1px solid var(--lf-color-border-subtle);
}

.pn-todo li > span:nth-child(2) {
  flex: 1;
}

.pn-count {
  display: grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.375rem;
  font-weight: var(--lf-font-weight-semibold);
  border-radius: 10px;
}

.pn-count.is-warning {
  color: var(--lf-color-warning);
  background: var(--lf-color-warning-surface);
}

.pn-button {
  padding: 0.375rem 0.875rem;
  font-weight: var(--lf-font-weight-medium);
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-border-strong);
  border-radius: var(--lf-radius-pill);
}

.pn-link {
  padding: 0;
  font-weight: var(--lf-font-weight-medium);
  color: var(--lf-color-accent) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  background: none;
  border: 0;
}

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

.pn-metrics,
.pn-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.625rem;
}

.pn-metric {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.pn-metrics .pn-metric {
  padding: 0.875rem 1rem;
  background: var(--lf-color-card);
  border: 1px solid var(--lf-color-border);
  border-radius: 16px;
}

.pn-micro {
  font: var(--lf-text-micro-label);
  font-size: 0.625rem;
  letter-spacing: var(--lf-tracking-micro);
  text-transform: uppercase;
  color: var(--lf-color-text-muted);
}

.pn-metric-value {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.pn-metric.is-big .pn-metric-value {
  font-size: 1.75rem;
  font-weight: var(--lf-font-weight-medium);
  line-height: 1.1;
}

.pn-chart {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.125rem;
}

.pn-chart figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.pn-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--lf-color-text-muted);
}

.pn-legend i {
  width: 0.625rem;
  height: 0.625rem;
  background: var(--lf-color-accent);
  border-radius: 2px;
}

.pn-chart svg {
  width: 100%;
  height: auto;
}

.pn-axis {
  stroke: var(--lf-color-border-strong);
}

.pn-bar {
  fill: var(--lf-color-accent);
  opacity: 0.55;
}

.pn-bar.is-today {
  opacity: 1;
}

.pn-tick {
  font-family: var(--lf-font-family-mono);
  font-size: 10px;
  text-anchor: middle;
  fill: var(--lf-color-text-muted);
}

.pn-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--lf-color-border);
}

.pn-tab {
  padding: 0.375rem 0.875rem;
  color: var(--lf-color-text-secondary) !important;
  background: none;
  border: 0;
  border-radius: var(--lf-radius-pill);
}

.pn-tab.is-on {
  font-weight: var(--lf-font-weight-semibold);
  color: var(--lf-color-text) !important;
  background: var(--lf-color-nav-selected);
}

.pn-table-wrap {
  overflow-x: auto;
}

.pn-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.pn-table th,
.pn-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--lf-color-border-subtle);
}

.pn-table thead th {
  font: var(--lf-text-micro-label);
  font-size: 0.625rem;
  letter-spacing: var(--lf-tracking-micro);
  text-transform: uppercase;
  color: var(--lf-color-text-muted);
}

.pn-table tbody th {
  font-weight: var(--lf-font-weight-medium);
}

.pn-table .num {
  text-align: right;
}

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

.pn-table-compact th,
.pn-table-compact td {
  padding: 0.375rem 0.5rem;
}

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

.is-fresh {
  animation: fresh 4s ease-out;
}

@keyframes fresh {
  0%,
  40% {
    background-color: var(--lf-color-selected);
  }
}

.pn-table tr.is-own td:first-child {
  box-shadow: inset 3px 0 var(--lf-color-accent);
}

.pn-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.5rem 0.125rem 0.4375rem;
  font-size: 0.75rem;
  font-weight: var(--lf-font-weight-medium);
  color: var(--lf-tag-text);
  background: var(--tag-bg);
  border-radius: var(--lf-radius-pill);
}

.pn-status i {
  width: 0.4375rem;
  height: 0.4375rem;
  background: var(--tag-dot);
  border-radius: 50%;
}

.pn-badge {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  color: var(--lf-color-success);
  background: var(--lf-color-success-surface);
  border-radius: var(--lf-radius-pill);
}

.pn-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
}

.pn-recon {
  display: grid;
  gap: 0.625rem;
}

.pn-recon-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) 7.5rem;
  align-items: center;
  gap: 0.75rem;
}

.pn-recon-bar {
  height: 0.5rem;
  overflow: hidden;
  background: var(--lf-color-raised);
  border-radius: 4px;
}

.pn-recon-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lf-color-accent);
  border-radius: 4px;
}

.pn-recon-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.pn-chip {
  padding: 0.25rem 0.75rem;
  font-weight: var(--lf-font-weight-medium);
  background: var(--lf-color-raised);
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-pill);
}

.pn-tree-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.pn-tree-head .pn-figures {
  flex: 1;
  min-width: 14rem;
}

.pn-tag {
  display: grid;
  gap: 0.125rem;
  width: 9.5rem;
  padding: 0.75rem 0.875rem;
  color: var(--lf-tag-text);
  background: var(--tag-bg);
  border-radius: 14px;
}

.pn-tag .pn-micro {
  color: var(--tag-muted);
}

.pn-tag b {
  font-size: 2rem;
  font-weight: var(--lf-font-weight-semibold);
  line-height: 1.1;
}

.pn-tag .pn-status {
  justify-self: start;
  padding-left: 0;
  background: none;
}

.pn-history {
  display: grid;
  gap: 0.875rem;
}

.pn-history li {
  display: grid;
  gap: 0.375rem;
  padding: 0.5rem 0 0.5rem 0.875rem;
  border-left: 2px solid var(--lf-color-accent);
}

.pn-history-what {
  font-weight: var(--lf-font-weight-semibold);
}

.pn-figures-4 {
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
}

.pn-ok {
  color: var(--lf-color-success);
}

.pn-warn {
  color: var(--lf-color-warning);
}

.pn-notice {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  z-index: 3;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  color: var(--lf-color-primary-text);
  background: var(--lf-color-primary);
  border-radius: var(--lf-radius-control);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.5rem);
  transition:
    opacity 0.2s,
    transform 0.2s;
}

/* A narrow panel (a device in portrait): the menu as icons only. */
@container (max-width: 40rem) {
  .pn {
    grid-template-columns: 3.25rem minmax(0, 1fr);
  }

  .pn-side {
    padding-inline: 0.375rem;
  }

  .pn-org,
  .pn-group,
  .pn-nav span,
  .pn-me span:last-child,
  .pn-search span,
  .pn-search kbd {
    display: none;
  }

  .pn-logo {
    overflow: hidden;
    width: 2.25rem;
    padding: 0.25rem;
  }

  .pn-nav {
    justify-content: center;
    padding: 0;
    min-height: 2.5rem;
  }

  .pn-search {
    min-width: 0;
  }

  .pn-top,
  .pn-body {
    padding-inline: 0.875rem;
  }

  .pn-recon-row {
    grid-template-columns: minmax(0, 1fr) 7rem;
  }

  .pn-recon-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-hint,
  .dv-in-push,
  .dv-in-pop,
  .dv-caret,
  .dv-sync .di,
  .dv-location .di,
  .is-fresh {
    animation: none;
  }

  .dv-tag,
  .dv-rings circle,
  .dv-tag-inner,
  .dv-notice,
  .pn-notice,
  .dv-key::before {
    transition: none;
  }
}

/* At phone width: less above the device, so it starts near the top of the screen. */
@media (max-width: 39.99rem) {
  .section-head-row > .button,
  .demo-note,
  .demo-switch-state {
    display: none;
  }

  .demo-reset {
    padding-inline: 0.5rem;
  }

  .demo-tour {
    gap: 0.5rem;
    padding: 0.75rem 0.875rem;
  }

  .demo-tour-text p {
    font-size: var(--lf-font-size-sm);
  }

  .demo-tour-text .demo-tour-step {
    font-size: 0.9375rem;
  }

  .demo-tour-actions .button {
    min-height: 2.75rem;
    padding-inline: 0.625rem;
  }

  .dv-sync span {
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
