/*
 * FacilityDash public website. One stylesheet for every page, no build step.
 *
 * Design: "option B, the unit whiteboard". The page is a wall, the content sits on whiteboards,
 * and the status colors are the four markers in the tray (black, blue, green, red).
 *
 * Tokens: every color, type size and spacing step is a custom property in the first block below.
 * The dark theme ("the board at night") redefines the color tokens only. It appears twice with
 * the same values: once for a visitor's explicit choice (html[data-theme='dark']) and once for a
 * browser with JavaScript off that prefers dark. Change both together.
 *
 * Fonts: self-hosted in fonts/ (Latin subset, woff2, SIL Open Font License; see fonts/README.md).
 * Nothing is loaded from another company. Two of the three families are variable files.
 */

/* ---------- Fonts ---------- */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-latin-700-800.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: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/public-sans-latin-400-700.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: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-mono-latin-400.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: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-mono-latin-500.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;
}

/* ---------- Tokens: light theme (the board by day) ---------- */

:root {
  color-scheme: light;

  /* Surfaces */
  --c-wall: #e6eaee;
  --c-board: #fcfdfb;
  --c-grid: #e9edf0;
  --c-frame: #b8c1c9;
  --c-paper: #ffffff;

  /* Ink */
  --c-ink: #15181e;
  --c-ink-soft: #4a5160;
  --c-rule: #c5ccd3;
  --c-rule-strong: #b3bbc4;

  /* Blue marker: the accent */
  --c-accent: #1747c8;
  --c-on-accent: #ffffff;
  --c-accent-text: #1747c8;
  --c-accent-wash: #e3eafb;

  /* Green marker: open, ready */
  --c-green: #0b6b3f;
  --c-green-wash: #dff1e6;

  /* Red marker: held, refused, needs attention */
  --c-red: #c2261a;
  --c-red-wash: #fbe5e2;
  --c-red-fill: #c2261a;
  --c-on-red-fill: #ffffff;
  --c-alert-text: #a01d13;

  /* The dark slab sections (what owners tell us, privacy, footer) */
  --c-slab: #15181e;
  --c-slab-ink: #f3f5f7;
  --c-slab-ink-soft: #e4e8ed;
  --c-slab-strong: #ffffff;
  --c-slab-rule: #3a404b;
  --c-slab-rule-strong: #5a6270;
  --c-slab-footer-ink: #d3d9e0;
  --c-slab-edge: transparent;

  /* The closing field and its button */
  --c-cta-button: #ffffff;
  --c-cta-button-ink: #15181e;

  /* The markers in the tray */
  --c-marker-ink: #15181e;
  --c-marker-blue: #1747c8;
  --c-marker-green: #0b6b3f;
  --c-marker-red: #c2261a;

  /* Example brand colors (fixed samples, not theme colors) */
  --c-swatch-1: #1747c8;
  --c-swatch-2: #0b6b3f;
  --c-swatch-3: #5b2d82;
  --c-swatch-4: #9a4a00;
  --c-swatch-5: #15181e;
  --c-swatch-ring: transparent;

  /* Browser surfaces */
  --c-focus: #1747c8;
  --c-selection: #1747c8;
  --c-on-selection: #ffffff;
  --c-scroll-thumb: #9aa5b0;
  --c-scroll-track: #e6eaee;

  /* Type families */
  --font-display: 'Bricolage Grotesque', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Type sizes. Fluid steps run from the phone artboard (390 wide) to the web artboard (1280). */
  --fs-display-1: clamp(3.25rem, 2.154rem + 4.494vw, 5.75rem); /* 52 to 92 */
  --fs-display-2: clamp(3.125rem, 1.865rem + 5.169vw, 6rem); /* 50 to 96 */
  --fs-display-3: clamp(3.75rem, 2.764rem + 4.045vw, 6rem); /* 60 to 96 */
  --fs-title-1: clamp(2.75rem, 1.764rem + 4.045vw, 5rem); /* 44 to 80 */
  --fs-title-2: clamp(2.625rem, 1.694rem + 3.82vw, 4.75rem); /* 42 to 76 */
  --fs-title-3: clamp(2.5rem, 1.733rem + 3.146vw, 4.25rem); /* 40 to 68 */
  --fs-title-4: clamp(2.375rem, 1.772rem + 2.472vw, 3.75rem); /* 38 to 60 */
  --fs-number: clamp(2.75rem, 2.421rem + 1.348vw, 3.5rem); /* 44 to 56 */
  --fs-heading-1: clamp(1.75rem, 1.476rem + 1.124vw, 2.375rem); /* 28 to 38 */
  --fs-heading-2: clamp(1.875rem, 1.766rem + 0.449vw, 2.125rem); /* 30 to 34 */
  --fs-heading-3: clamp(1.5625rem, 1.371rem + 0.787vw, 2rem); /* 25 to 32 */
  --fs-heading-4: clamp(1.5625rem, 1.426rem + 0.562vw, 1.875rem); /* 25 to 30 */
  --fs-heading-5: clamp(1.3125rem, 1.23rem + 0.337vw, 1.5rem); /* 21 to 24 */
  --fs-heading-6: clamp(1.1875rem, 1.133rem + 0.225vw, 1.3125rem); /* 19 to 21 */
  --fs-count: clamp(1.5rem, 1.226rem + 1.124vw, 2.125rem); /* 24 to 34 */
  --fs-clock: clamp(2rem, 1.781rem + 0.899vw, 2.5rem); /* 32 to 40 */
  --fs-key: clamp(1.375rem, 1.265rem + 0.449vw, 1.625rem); /* 22 to 26 */
  --fs-logo: clamp(1.5625rem, 1.48rem + 0.337vw, 1.75rem); /* 25 to 28 */
  --fs-lead: clamp(1.125rem, 1.043rem + 0.337vw, 1.3125rem); /* 18 to 21 */
  --fs-body-lg: clamp(1.0625rem, 0.98rem + 0.337vw, 1.25rem); /* 17 to 20 */
  --fs-body: clamp(1.0625rem, 1.035rem + 0.112vw, 1.125rem); /* 17 to 18 */
  --fs-button: 1.0625rem; /* 17 */
  --fs-small: 0.9375rem; /* 15 */
  --fs-label: 0.875rem; /* 14 */
  --fs-note: 0.84375rem; /* 13.5 */
  --fs-chip: 0.8125rem; /* 13 */
  --fs-cell: 0.8125rem; /* 13 */
  --fs-cell-label: 0.75rem; /* 12 */

  /* Line heights and tracking */
  --lh-display: 0.94;
  --lh-title: 0.98;
  --lh-heading: 1.08;
  --lh-snug: 1.2;
  --lh-lead: 1.45;
  --lh-body: 1.55;
  --lh-loose: 1.6;
  --ls-display: -0.035em;
  --ls-title: -0.03em;
  --ls-heading: -0.02em;
  --ls-subhead: -0.012em;
  --ls-caps: 0.04em;

  /* Spacing steps */
  --space-1: 0.25rem; /* 4 */
  --space-2: 0.5rem; /* 8 */
  --space-3: 0.75rem; /* 12 */
  --space-4: 1rem; /* 16 */
  --space-5: 1.25rem; /* 20 */
  --space-6: 1.5rem; /* 24 */
  --space-7: 1.75rem; /* 28 */
  --space-8: 2rem; /* 32 */
  --space-9: 2.5rem; /* 40 */
  --space-10: 3rem; /* 48 */
  --space-11: 4rem; /* 64 */
  --space-12: 6rem; /* 96 */

  /* Layout */
  --page-max: 80rem; /* 1280 */
  --gutter: clamp(1.25rem, 0.702rem + 2.247vw, 2.5rem); /* 20 to 40 */
  --section-top: clamp(4.75rem, 3.326rem + 5.843vw, 8rem); /* 76 to 128 */
  --section-bottom: clamp(3.75rem, 2.326rem + 5.843vw, 7rem); /* 60 to 112 */
  --col-gap: var(--space-8);
  --grid-size: clamp(2rem, 1.781rem + 0.899vw, 2.5rem); /* 32 to 40, the board's ruled squares */
  --pad-zone-x: clamp(1.125rem, 0.303rem + 3.371vw, 3rem); /* 18 to 48 */
  --pad-zone-y: clamp(1.5rem, 0.404rem + 4.494vw, 4rem); /* 24 to 64 */
  --pad-card: clamp(1.125rem, 0.632rem + 2.022vw, 2.25rem); /* 18 to 36 */
  --tap: 2.75rem; /* 44, the smallest target */

  /* Lines and corners */
  --line-thin: 1px;
  --line: 2px;
  --line-thick: 3px;
  --line-frame: clamp(6px, 5.1px + 0.225vw, 8px);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-device: 2.5rem;
}

/* ---------- Tokens: dark theme (the board at night) ---------- */
/* A dark board under low light. The same four markers, re-tuned so text and status pairs keep
   at least 4.5:1. Not an inverted light theme: the wall goes darkest, the board sits above it,
   and the slab sections drop to black with a ruled edge. */

html[data-theme='dark'] {
  color-scheme: dark;
  --c-wall: #0d1014;
  --c-board: #171c23;
  --c-grid: #1f262e;
  --c-frame: #4a5562;
  --c-paper: #222933;
  --c-ink: #eef1f4;
  --c-ink-soft: #aab3be;
  --c-rule: #3a444f;
  --c-rule-strong: #4a5562;
  --c-accent: #3366e6;
  --c-on-accent: #ffffff;
  --c-accent-text: #9db9ff;
  --c-accent-wash: #1a2a52;
  --c-green: #7fe0a8;
  --c-green-wash: #12301f;
  --c-red: #ff9d92;
  --c-red-wash: #3a1714;
  --c-red-fill: #cf3527;
  --c-on-red-fill: #ffffff;
  --c-alert-text: #ffb8af;
  --c-slab: #05070a;
  --c-slab-ink: #f3f5f7;
  --c-slab-ink-soft: #e4e8ed;
  --c-slab-strong: #ffffff;
  --c-slab-rule: #2c343e;
  --c-slab-rule-strong: #5a6270;
  --c-slab-footer-ink: #d3d9e0;
  --c-slab-edge: #3a444f;
  --c-cta-button: #ffffff;
  --c-cta-button-ink: #15181e;
  --c-marker-ink: #eef1f4;
  --c-marker-blue: #3366e6;
  --c-marker-green: #2fa868;
  --c-marker-red: #cf3527;
  --c-swatch-ring: #aab3be;
  --c-focus: #9db9ff;
  --c-selection: #3366e6;
  --c-on-selection: #ffffff;
  --c-scroll-thumb: #4a5562;
  --c-scroll-track: #0d1014;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --c-wall: #0d1014;
    --c-board: #171c23;
    --c-grid: #1f262e;
    --c-frame: #4a5562;
    --c-paper: #222933;
    --c-ink: #eef1f4;
    --c-ink-soft: #aab3be;
    --c-rule: #3a444f;
    --c-rule-strong: #4a5562;
    --c-accent: #3366e6;
    --c-on-accent: #ffffff;
    --c-accent-text: #9db9ff;
    --c-accent-wash: #1a2a52;
    --c-green: #7fe0a8;
    --c-green-wash: #12301f;
    --c-red: #ff9d92;
    --c-red-wash: #3a1714;
    --c-red-fill: #cf3527;
    --c-on-red-fill: #ffffff;
    --c-alert-text: #ffb8af;
    --c-slab: #05070a;
    --c-slab-ink: #f3f5f7;
    --c-slab-ink-soft: #e4e8ed;
    --c-slab-strong: #ffffff;
    --c-slab-rule: #2c343e;
    --c-slab-rule-strong: #5a6270;
    --c-slab-footer-ink: #d3d9e0;
    --c-slab-edge: #3a444f;
    --c-cta-button: #ffffff;
    --c-cta-button-ink: #15181e;
    --c-marker-ink: #eef1f4;
    --c-marker-blue: #3366e6;
    --c-marker-green: #2fa868;
    --c-marker-red: #cf3527;
    --c-swatch-ring: #aab3be;
    --c-focus: #9db9ff;
    --c-selection: #3366e6;
    --c-on-selection: #ffffff;
    --c-scroll-thumb: #4a5562;
    --c-scroll-track: #0d1014;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--c-scroll-thumb) var(--c-scroll-track);
  accent-color: var(--c-accent);
  background: var(--c-wall);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-wall);
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

ul,
ol {
  list-style: none;
}

strong {
  font-weight: 700;
}

a {
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-thickness: var(--line);
  text-underline-offset: 4px;
}

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

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

:focus-visible {
  outline: var(--line-thick) solid var(--c-focus);
  outline-offset: 3px;
}

input,
select,
textarea {
  caret-color: var(--c-accent-text);
}

[id] {
  scroll-margin-top: var(--space-6);
}

/* Slabs: the dark sections keep their own ink in both themes. */
.slab {
  background: var(--c-slab);
  color: var(--c-slab-ink);
  border-block: var(--line-thin) solid var(--c-slab-edge);
}

.slab a {
  color: var(--c-slab-footer-ink);
}

.slab a:hover {
  color: var(--c-slab-strong);
}

.slab :focus-visible,
.close :focus-visible {
  outline-color: var(--c-slab-strong);
}

.slab ::selection,
.close ::selection {
  background: var(--c-slab-strong);
  color: var(--c-cta-button-ink);
}

/* ---------- Utilities ---------- */

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-300%);
}

.skip-link:hover {
  color: var(--c-on-accent);
}

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

.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.board-surface {
  background-color: var(--c-board);
  background-image:
    linear-gradient(var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

.wall-surface {
  background: var(--c-wall);
}

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

/* Copy that differs between the web and the phone artboards. `phone` text replaces `wide`
   text at phone width; the unused one is display: none, so it is not read aloud either. */
.phone {
  display: none;
}

@media (max-width: 640px) {
  .wide {
    display: none !important;
  }

  .phone {
    display: revert;
  }
}

.chip {
  display: inline-block;
  border-radius: var(--radius-sm);
  padding: var(--space-1) 0.625rem;
  font-weight: 700;
}

.chip--red {
  background: var(--c-red-wash);
  color: var(--c-red);
}

.chip--green {
  background: var(--c-green-wash);
  color: var(--c-green);
}

.chip--caps {
  font-size: var(--fs-chip);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: var(--space-3) 1.125rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  color: var(--c-on-accent);
  text-decoration: underline;
  text-decoration-thickness: var(--line);
  text-underline-offset: 4px;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  min-height: 4.25rem;
  padding-block: var(--space-2);
}

.site-logo {
  padding-block: var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-logo);
  letter-spacing: var(--ls-heading);
  line-height: 1.2;
  text-decoration: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle,
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  border: var(--line) solid var(--c-ink);
  border-radius: var(--radius);
  background: var(--c-board);
  color: var(--c-ink);
  font: inherit;
  font-size: var(--fs-label);
  font-weight: 700;
  cursor: pointer;
}

.js .theme-toggle {
  display: inline-flex;
  padding: 0 var(--space-3);
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--c-paper);
}

.theme-toggle svg,
.menu-toggle svg {
  flex: none;
}

/* The icon shows where the switch leads: a moon by day, a sun at night. */
.theme-toggle .icon-sun,
html[data-theme='dark'] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme='dark'] .theme-toggle .icon-sun {
  display: block;
}

/* The visible words name the theme the switch leads to, in step with data-theme. */
.theme-toggle .when-dark,
html[data-theme='dark'] .theme-toggle .when-light {
  display: none;
}

html[data-theme='dark'] .theme-toggle .when-dark {
  display: inline;
}

.menu-toggle {
  width: 3rem;
  min-height: 3rem;
  padding: 0;
}

.menu-toggle[aria-expanded='true'] .icon-open,
.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 var(--space-6);
  flex-basis: 100%;
  font-size: var(--fs-small);
  font-weight: 600;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.375rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  text-decoration: none;
}

.site-nav a:hover,
.site-logo:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--line);
  text-underline-offset: 4px;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: auto;
  font-weight: 700;
}

.site-nav .button {
  color: var(--c-on-accent);
}

/* Narrow: the links sit behind the menu button when JavaScript is on. With it off they stay
   visible as a wrapped list, so the navigation always works. */
@media (max-width: 899px) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: var(--space-4);
    padding: var(--space-2) var(--space-4) var(--space-4);
    border: var(--line) solid var(--c-ink);
    border-radius: var(--radius-lg);
    background: var(--c-board);
    font-size: var(--fs-body);
  }

  .js .site-nav.is-open ul {
    flex-direction: column;
  }

  .js .site-nav.is-open li {
    border-bottom: var(--line-thin) solid var(--c-rule);
  }

  .js .site-nav.is-open a {
    display: flex;
    min-height: 3rem;
  }

  .js .site-nav.is-open .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    margin: var(--space-2) 0 0;
  }

  .js .site-nav.is-open .button {
    justify-content: center;
  }
}

@media (max-width: 379px) {
  .theme-toggle__word {
    display: none;
  }
}

/* From 900px up the header is two rows on the wall: the name and the theme switch, then the
   links with the two actions at the right. Seven links, two actions and the switch do not fit
   one row inside the page width. */
@media (min-width: 900px) {
  .site-header {
    padding-top: var(--space-4);
  }

  .site-nav {
    margin-bottom: var(--space-2);
  }
}

/* ---------- Opening: one whiteboard ---------- */

.hero {
  padding-top: var(--space-2);
}

.hero .wrap {
  padding-inline: clamp(0.625rem, -0.197rem + 3.371vw, 2.5rem);
}

.hero__board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: clip;
  border: var(--line-frame) solid var(--c-frame);
  border-radius: var(--radius-lg);
}

.hero__board > * {
  min-width: 0;
  border-bottom: var(--line-thick) solid var(--c-ink);
}

.hero__board > :last-child {
  border-bottom: 0;
}

.hero__offer {
  display: flex;
  flex-direction: column;
  gap: clamp(1.125rem, 0.851rem + 1.124vw, 1.75rem);
  padding: var(--pad-zone-y) var(--pad-zone-x) clamp(1.75rem, 0.983rem + 3.146vw, 3.5rem);
}

.hero__offer h1 {
  font-size: var(--fs-display-1);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}

.hero__offer p {
  max-width: 31em;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

/* The walkthrough form */
.book {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-4);
  padding: clamp(1.5rem, 1.062rem + 1.798vw, 2.5rem) clamp(1.125rem, 0.632rem + 2.022vw, 2.25rem);
  background: var(--c-board);
}

.book h2 {
  font-size: var(--fs-heading-2);
  line-height: 1.02;
  letter-spacing: var(--ls-heading);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field label {
  font-size: var(--fs-label);
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 3.125rem;
  padding: var(--space-3);
  border: var(--line) solid var(--c-ink);
  border-radius: var(--radius);
  background: var(--c-paper);
  color: var(--c-ink);
  font: inherit;
  font-size: var(--fs-button);
}

.field input[aria-invalid='true'] {
  border-color: var(--c-alert-text);
  border-width: var(--line-thick);
}

.field-error {
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--c-alert-text);
}

.field-error::before {
  content: 'Error: ';
  font-weight: 700;
}

.book .button {
  min-height: 3.375rem;
  padding: 0.875rem;
  font-size: var(--fs-button);
}

.book__note,
.book__status {
  font-size: var(--fs-note);
  line-height: var(--lh-lead);
  color: var(--c-ink-soft);
}

.book__status {
  padding: var(--space-3);
  border: var(--line) solid var(--c-ink);
  border-radius: var(--radius);
  background: var(--c-paper);
  color: var(--c-ink);
  font-size: var(--fs-small);
}

.book__status:empty {
  display: none;
}

/* The bed board */
.bedboard {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 0.476rem + 1.124vw, 1.375rem);
  padding: clamp(1.375rem, 0.991rem + 1.573vw, 2.25rem) var(--pad-zone-x)
    clamp(1.375rem, 0.772rem + 2.472vw, 2.75rem);
}

.bedboard figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-heading-6);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.stamp {
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  background: var(--c-red-fill);
  color: var(--c-on-red-fill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-chip);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.units {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 0.585rem + 0.674vw, 1.125rem);
}

.unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'name count' 'beds beds';
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
}

.unit__name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-heading-5);
}

.unit__count {
  grid-area: count;
  font-size: var(--fs-small);
  font-weight: 600;
  text-align: right;
}

.unit__count b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-count);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.unit__beds {
  grid-area: beds;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.bed {
  display: block;
  border-radius: var(--radius-sm);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-family: var(--font-mono);
  font-size: var(--fs-cell);
  line-height: 2.25rem;
  text-align: center;
}

.bed--open,
.bed--held {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-cell-label);
  line-height: calc(2.25rem - 2 * var(--line));
}

.bed--open {
  border: var(--line) dashed var(--c-green);
  background: var(--c-green-wash);
  color: var(--c-green);
}

.bed--held {
  border: var(--line) solid var(--c-red);
  background: var(--c-red-wash);
  color: var(--c-red);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-7);
  padding-top: clamp(0.875rem, 0.765rem + 0.449vw, 1.125rem);
  border-top: var(--line-thick) solid var(--c-ink);
  font-size: var(--fs-small);
  font-weight: 600;
}

.legend li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.legend__key {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 5px;
  background: var(--c-accent);
}

.legend__key--open {
  border: var(--line) dashed var(--c-green);
  background: var(--c-green-wash);
}

.legend__key--held {
  border: var(--line) solid var(--c-red);
  background: var(--c-red-wash);
}

/* The same count, read in four places */
.proof ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-2);
}

.proof {
  display: flex;
  flex-direction: column;
  padding: clamp(0.625rem, -0.087rem + 2.921vw, 2.25rem) var(--pad-card)
    clamp(0.875rem, 0.163rem + 2.921vw, 2.5rem);
  background: var(--c-board);
}

.proof li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: var(--line-thin) solid var(--c-rule);
}

.proof li:last-child {
  border-bottom: 0;
}

.proof__where {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-heading-6);
  line-height: var(--lh-snug);
}

.proof__where small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--c-ink-soft);
}

.proof__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-number);
  line-height: 1;
  letter-spacing: var(--ls-heading);
  font-variant-numeric: tabular-nums;
}

/* The marker tray under the board */
.tray {
  display: flex;
  flex-direction: column;
  margin-inline: clamp(0.25rem, -0.188rem + 1.798vw, 1.25rem);
}

.tray__markers {
  display: flex;
  justify-content: flex-end;
  gap: clamp(0.5rem, 0.336rem + 0.674vw, 0.875rem);
  margin-top: 6px;
  padding-inline: clamp(1rem, 0.342rem + 2.697vw, 2.5rem);
}

.tray__markers span {
  width: clamp(3rem, 2.014rem + 4.045vw, 5.25rem);
  height: clamp(0.625rem, 0.57rem + 0.225vw, 0.75rem);
  border-radius: var(--radius-sm);
}

.tray__markers span:nth-child(1) {
  background: var(--c-marker-ink);
}

.tray__markers span:nth-child(2) {
  background: var(--c-marker-blue);
}

.tray__markers span:nth-child(3) {
  background: var(--c-marker-green);
}

.tray__markers span:nth-child(4) {
  background: var(--c-marker-red);
}

.tray__ledge {
  height: clamp(0.625rem, 0.57rem + 0.225vw, 0.75rem);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--c-frame);
}

@media (min-width: 720px) {
  .unit {
    grid-template-columns: 4.75rem minmax(0, 1fr) 7.5rem;
    grid-template-areas: 'name beds count';
    align-items: center;
    gap: var(--space-5);
  }

  .unit__beds {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 6px;
  }

  .bed {
    line-height: 2.625rem;
  }

  .bed--open,
  .bed--held {
    line-height: calc(2.625rem - 2 * var(--line));
  }
}

@media (min-width: 1000px) {
  .hero__board {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }

  .hero__offer,
  .bedboard {
    border-right: var(--line-thick) solid var(--c-ink);
  }

  .hero__board > .bedboard {
    border-bottom: 0;
  }
}

/* ---------- Shared section type ---------- */

.display {
  font-size: var(--fs-display-2);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}

.title {
  font-size: var(--fs-title-3);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
}

.lead {
  font-size: var(--fs-body-lg);
}

.grid12 {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 1000px) {
  .grid12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }

  .grid12 > * {
    min-width: 0;
  }
}

/* ---------- What owners tell us ---------- */

.heard {
  margin-top: clamp(3.5rem, 2.405rem + 4.494vw, 6rem);
}

.heard .grid12 {
  gap: clamp(1.75rem, 0.983rem + 3.146vw, 3.5rem) var(--col-gap);
}

.heard h2 {
  font-size: var(--fs-title-1);
  line-height: 0.96;
  letter-spacing: var(--ls-display);
}

.heard__table {
  display: block;
  border-top: var(--line-thick) solid var(--c-slab-ink);
}

.heard__table [role='rowgroup'] {
  display: block;
}

.heard__row {
  display: block;
  padding-block: 1.125rem;
  border-bottom: var(--line-thin) solid var(--c-slab-rule);
}

.heard__table [role='rowgroup']:last-child .heard__row:last-child {
  border-bottom: var(--line-thick) solid var(--c-slab-ink);
}

.heard__row > * {
  display: block;
  padding: 0;
  text-align: left;
  font-weight: 400;
}

.heard__head {
  display: none;
  padding-block: var(--space-4);
  border-bottom-color: var(--c-slab-rule-strong);
}

.heard__said {
  margin-bottom: 0.375rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-heading-4);
  line-height: 1.1;
  letter-spacing: var(--ls-subhead);
  color: var(--c-slab-strong);
}

.heard__answer {
  color: var(--c-slab-ink-soft);
}

@media (min-width: 760px) {
  .heard__row {
    display: grid;
    grid-template-columns: 5fr 6fr;
    column-gap: var(--space-9);
    padding-block: 1.625rem;
  }

  .heard__head {
    display: grid;
    padding-block: var(--space-4);
  }

  .heard__said {
    margin-bottom: 0;
  }
}

@media (min-width: 1000px) {
  .heard h2 {
    grid-column: 1 / span 10;
  }

  .heard__table {
    grid-column: 2 / span 11;
  }
}

/* ---------- A stay, start to finish ---------- */

.stay .grid12 {
  gap: var(--space-5) var(--col-gap);
}

.stay__steps {
  --dot: clamp(1.375rem, 1.211rem + 0.674vw, 1.75rem);
  margin-top: var(--space-4);
}

.stay__step {
  position: relative;
  padding-left: calc(var(--dot) + clamp(1rem, 0.562rem + 1.798vw, 2rem));
  padding-bottom: clamp(1.625rem, 1.242rem + 1.573vw, 2.5rem);
}

/* The marker line down the board: a dot for each step and one rule joining them. */
.stay__step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--c-accent);
}

.stay__step::after {
  content: '';
  position: absolute;
  left: calc(var(--dot) / 2 - 2px);
  top: var(--dot);
  bottom: 0;
  width: 4px;
  background: var(--c-ink);
}

.stay__step:last-child {
  padding-bottom: 0;
}

.stay__step:last-child::before {
  background: var(--c-ink);
}

.stay__step:last-child::after {
  display: none;
}

.stay__step dt {
  padding-bottom: 0.375rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-heading-3);
  line-height: 1;
  letter-spacing: var(--ls-heading);
}

.stay__who {
  margin-top: var(--space-3);
  font-size: var(--fs-label);
  font-weight: 700;
}

.stay__who span {
  display: inline-block;
  padding: 3px 0.625rem;
  border: var(--line) solid var(--c-ink);
  border-radius: var(--radius-sm);
  background: var(--c-paper);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .stay__step dd {
    font-size: 1rem;
  }
}

@media (min-width: 1000px) {
  .stay .grid12 {
    row-gap: var(--space-11);
  }

  .stay h2 {
    grid-column: 1 / span 7;
  }

  .stay__intro {
    grid-column: 8 / span 5;
    align-self: end;
  }

  .stay__steps {
    grid-column: 1 / span 11;
    margin-top: 0;
  }

  .stay__step {
    display: grid;
    grid-template-columns: 4fr 6fr 2fr;
    column-gap: var(--col-gap);
    padding-left: calc(var(--dot) + var(--col-gap));
  }

  .stay__step dt {
    padding-bottom: 0;
  }

  .stay__who {
    margin-top: 0;
  }
}

/* ---------- What it covers ---------- */

.covers .wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(1.625rem, 1.023rem + 2.472vw, 3rem);
}

.covers__board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: var(--line-thick) solid var(--c-ink);
  border-radius: var(--radius-lg);
  background: var(--c-board);
}

.covers__zone {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: clamp(1.375rem, 0.991rem + 1.573vw, 2.25rem) var(--pad-card)
    clamp(0.75rem, -0.017rem + 3.146vw, 2.5rem);
  border-bottom: var(--line-thick) solid var(--c-ink);
}

.covers__zone:last-child {
  border-bottom: 0;
}

.covers__zone h3 {
  font-size: var(--fs-heading-1);
  line-height: 1;
  letter-spacing: var(--ls-heading);
}

.covers__zone p {
  max-width: 30em;
}

.ruled li {
  padding-block: 0.6875rem;
  border-top: var(--line-thin) solid var(--c-rule);
}

.covers__note {
  max-width: 36em;
  margin-left: auto;
  font-size: var(--fs-body-lg);
}

@media (max-width: 640px) {
  .ruled li {
    font-size: 1rem;
  }

  .covers__note {
    font-size: var(--fs-body);
  }
}

@media (min-width: 1000px) {
  .covers__board {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  }

  .covers__zone {
    border-bottom: 0;
    border-right: var(--line-thick) solid var(--c-ink);
  }

  .covers__zone:last-child {
    border-right: 0;
  }
}

/* ---------- Built new ---------- */

.new .grid12 {
  gap: var(--space-5) var(--col-gap);
}

.new__intro {
  max-width: 34em;
  font-size: var(--fs-body-lg);
}

.pairs {
  border-top: var(--line-thick) solid var(--c-ink);
  border-bottom: var(--line-thick) solid var(--c-ink);
}

.pairs > div {
  padding-block: clamp(1.125rem, 0.851rem + 1.124vw, 1.75rem);
  border-top: var(--line-thin) solid var(--c-rule);
}

.pairs > div:first-child {
  border-top: 0;
}

.pairs dt {
  padding-bottom: var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-heading-1);
  line-height: 1;
  letter-spacing: -0.025em;
}

@media (max-width: 640px) {
  .new__intro {
    font-size: var(--fs-body);
  }

  .pairs dd {
    font-size: 1.03125rem;
  }
}

@media (min-width: 760px) {
  .pairs > div {
    display: grid;
    grid-template-columns: 5fr 6fr;
    column-gap: var(--space-9);
  }

  .pairs dt {
    padding-bottom: 0;
  }
}

@media (min-width: 1000px) {
  .new .grid12 {
    row-gap: var(--space-7);
  }

  .new h2 {
    grid-column: 1 / span 11;
  }

  .new__intro {
    grid-column: 1 / span 7;
  }

  .new .pairs {
    grid-column: 3 / span 10;
    margin-top: var(--space-8);
  }
}

/* ---------- Privacy ---------- */

.privacy .grid12 {
  gap: 1.375rem var(--col-gap);
}

.privacy h2 {
  margin-bottom: 0.375rem;
  font-size: var(--fs-title-2);
  line-height: 0.96;
  letter-spacing: var(--ls-display);
}

.privacy__points {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  line-height: var(--lh-loose);
  color: var(--c-slab-ink-soft);
}

.privacy__points strong {
  color: var(--c-slab-strong);
}

.privacy__opening {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--c-slab-strong);
}

.log {
  overflow: hidden;
  border: var(--line-thin) solid var(--c-slab-edge);
  border-radius: var(--radius-lg);
  background: var(--c-board);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 0.848rem + 0.112vw, 0.9375rem);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.log figcaption {
  padding: clamp(0.875rem, 0.765rem + 0.449vw, 1.125rem) var(--log-pad);
  border-bottom: var(--line-thick) solid var(--c-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.375rem, 1.265rem + 0.449vw, 1.625rem);
  letter-spacing: -0.015em;
}

.log {
  --log-pad: clamp(1rem, 0.781rem + 0.899vw, 1.5rem);
}

.log__table,
.log__table [role='rowgroup'] {
  display: block;
}

.log__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-3);
  padding: clamp(0.75rem, 0.64rem + 0.449vw, 1rem) var(--log-pad);
  border-bottom: var(--line-thin) solid var(--c-rule);
}

.log__table [role='rowgroup']:last-child .log__row:last-child {
  border-bottom: 0;
}

.log__row > * {
  display: block;
  padding: 0;
  font-weight: inherit;
  text-align: left;
}

.log__event {
  grid-column: 1 / -1;
}

/* A refused entry is marked by its words ("Export refused"), a heavier weight and a rule on the
   leading edge, never by color alone. */
.log__row--refused {
  box-shadow: inset 4px 0 0 var(--c-alert-text);
  background: var(--c-red-wash);
  color: var(--c-alert-text);
  font-weight: 500;
}

@media (max-width: 640px) {
  .privacy h2 {
    order: -2;
  }

  .privacy .log {
    order: -1;
  }
}

@media (min-width: 641px) {
  .log__row {
    grid-template-columns: 5em 6em minmax(0, 1fr);
    column-gap: var(--space-4);
  }

  .log__event {
    grid-column: auto;
  }
}

@media (min-width: 1000px) {
  .privacy .grid12 {
    row-gap: var(--space-11);
    align-items: start;
  }

  .privacy h2 {
    grid-column: 1 / span 10;
    margin-bottom: 0;
  }

  .privacy__points {
    grid-column: 1 / span 5;
  }

  .privacy .log {
    grid-column: 7 / span 6;
  }
}

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

.apps .grid12 {
  gap: 1.375rem var(--col-gap);
}

.device {
  border: 4px solid var(--c-ink);
  background: var(--c-paper);
  color: var(--c-ink);
}

.phone-sample {
  display: flex;
  flex-direction: column;
  align-self: center;
  width: min(100%, 19.375rem);
  min-height: clamp(26rem, 20.63rem + 22.03vw, 37.5rem);
  padding: clamp(1.625rem, 1.515rem + 0.449vw, 1.875rem) clamp(1.125rem, 1.07rem + 0.225vw, 1.25rem)
    1.375rem;
  border-radius: var(--radius-device);
  font-size: var(--fs-small);
}

.phone-sample__title {
  padding-bottom: 0.875rem;
  border-bottom: var(--line-thick) solid var(--c-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.625rem, 1.57rem + 0.225vw, 1.75rem);
  line-height: 1.05;
  letter-spacing: var(--ls-heading);
}

.phone-sample__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 0.875rem;
  border-bottom: var(--line-thin) solid var(--c-rule);
}

.tally {
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
  background: var(--c-accent-wash);
  color: var(--c-accent-text);
  font-family: var(--font-mono);
  font-weight: 500;
  white-space: nowrap;
}

.tally--red {
  background: var(--c-red-wash);
  color: var(--c-red);
}

.tally--green {
  background: var(--c-green-wash);
  color: var(--c-green);
}

.phone-sample__action {
  margin-top: auto;
  padding: 0.9375rem;
  border-radius: var(--radius);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-weight: 700;
  text-align: center;
}

.phone-sample__rows {
  margin-bottom: var(--space-7);
}

.apps__lead {
  max-width: 32em;
  font-size: var(--fs-body-lg);
}

.apps__list {
  max-width: 36em;
  border-top: var(--line-thick) solid var(--c-ink);
  border-bottom: var(--line-thick) solid var(--c-ink);
}

.apps__list li {
  padding-block: 0.875rem;
  border-top: var(--line-thin) solid var(--c-rule);
}

.apps__list li:first-child {
  border-top: 0;
}

.apps__stores {
  font-size: var(--fs-small);
  color: var(--c-ink-soft);
}

@media (max-width: 640px) {
  .apps__list li {
    font-size: 1.03125rem;
  }
}

@media (min-width: 1000px) {
  .apps .grid12 {
    row-gap: var(--space-6);
    align-content: center;
  }

  .phone-sample {
    grid-column: 1 / span 4;
    grid-row: 1 / span 4;
    justify-self: center;
  }

  .apps h2,
  .apps__lead,
  .apps__list,
  .apps__stores {
    grid-column: 6 / span 7;
  }

  .apps__list {
    border-top: var(--line-thin) solid var(--c-rule);
    border-bottom: var(--line-thin) solid var(--c-rule);
  }
}

/* ---------- Staff: schedule, clock, payroll ---------- */

.staff .grid12 {
  gap: var(--space-6) var(--col-gap);
}

.staff__list {
  border-top: var(--line-thick) solid var(--c-ink);
  border-bottom: var(--line-thick) solid var(--c-ink);
}

.staff__list li {
  padding-block: 0.9375rem;
  border-top: var(--line-thin) solid var(--c-rule-strong);
}

.staff__list li:first-child {
  border-top: 0;
}

.tablet-sample {
  display: flex;
  flex-direction: column;
  gap: clamp(0.875rem, 0.765rem + 0.449vw, 1.125rem);
  padding: clamp(1.25rem, 1.031rem + 0.899vw, 1.75rem);
  border-radius: 1.25rem;
  background: var(--c-board);
}

.tablet-sample__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: var(--line-thick) solid var(--c-ink);
}

.tablet-sample__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-clock);
  line-height: 1;
  letter-spacing: -0.025em;
}

.tablet-sample__time {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(0.9375rem, 0.883rem + 0.225vw, 1.0625rem);
}

.tablet-sample__hint {
  font-size: var(--fs-small);
  color: var(--c-ink-soft);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 0.445rem + 0.225vw, 0.625rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-key);
  text-align: center;
}

.keypad span {
  padding-block: clamp(0.5rem, 0.39rem + 0.449vw, 0.75rem);
  border: var(--line) solid var(--c-ink);
  border-radius: 10px;
  background: var(--c-paper);
}

.tablet-sample__shift {
  font-size: var(--fs-small);
  font-weight: 600;
}

@media (max-width: 640px) {
  .staff__list li {
    font-size: 1.03125rem;
  }
}

@media (min-width: 1000px) {
  .staff .grid12 {
    row-gap: var(--space-10);
    align-items: start;
  }

  .staff h2 {
    grid-column: 1 / span 11;
  }

  .staff__list {
    grid-column: 1 / span 6;
    grid-row: 2;
  }

  .tablet-sample {
    grid-column: 8 / span 5;
    grid-row: 2;
  }
}

/* ---------- Assistant, and your name ---------- */

.assistant .grid12 {
  gap: var(--space-7) var(--col-gap);
}

.assistant__main {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 0.89rem + 0.449vw, 1.25rem);
}

.assistant__main h2 {
  font-size: var(--fs-title-4);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
}

.assistant__main p {
  max-width: 34em;
  font-size: var(--fs-body-lg);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding-top: var(--space-5);
  border-top: var(--line-thick) solid var(--c-ink);
}

.brand h3 {
  font-size: var(--fs-heading-3);
  line-height: 1.02;
  letter-spacing: var(--ls-heading);
}

.swatches {
  display: flex;
  gap: clamp(0.625rem, 0.57rem + 0.225vw, 0.75rem);
  padding-top: 0.375rem;
}

.swatches span {
  width: clamp(2.875rem, 2.711rem + 0.674vw, 3.25rem);
  height: clamp(2.875rem, 2.711rem + 0.674vw, 3.25rem);
  border-radius: 50%;
  box-shadow: 0 0 0 var(--line) var(--c-swatch-ring);
}

.swatches span:nth-child(1) {
  background: var(--c-swatch-1);
}

.swatches span:nth-child(2) {
  background: var(--c-swatch-2);
}

.swatches span:nth-child(3) {
  background: var(--c-swatch-3);
}

.swatches span:nth-child(4) {
  background: var(--c-swatch-4);
}

.swatches span:nth-child(5) {
  background: var(--c-swatch-5);
}

@media (max-width: 640px) {
  .assistant__main p {
    font-size: var(--fs-body);
  }
}

@media (min-width: 1000px) {
  .assistant .grid12 {
    align-items: end;
  }

  .assistant__main {
    grid-column: 1 / span 7;
  }

  .brand {
    grid-column: 9 / span 4;
  }
}

/* ---------- Questions ---------- */

.questions .grid12 {
  gap: var(--space-6) var(--col-gap);
}

.faq {
  display: flex;
  flex-direction: column;
  border-top: var(--line-thick) solid var(--c-ink);
  border-bottom: var(--line-thick) solid var(--c-ink);
}

.faq > div {
  padding-block: clamp(1.125rem, 1.015rem + 0.449vw, 1.375rem);
  border-top: var(--line-thin) solid var(--c-rule-strong);
}

.faq > div:first-child {
  border-top: 0;
}

.faq dt {
  padding-bottom: 0.375rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-heading-5);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* The phone artboard asks "Which features cost extra?" third. No control sits inside the list,
   so the visual order can differ from the source order without moving the focus order. */
@media (max-width: 640px) {
  .faq > div:nth-child(1),
  .faq > div:nth-child(2) {
    order: 1;
  }

  .faq > .faq__extra {
    order: 2;
  }

  .faq > div {
    order: 3;
  }
}

@media (min-width: 1000px) {
  .questions .grid12 {
    align-items: start;
  }

  .questions h2 {
    grid-column: 1 / span 5;
  }

  .faq {
    grid-column: 7 / span 6;
  }
}

/* ---------- Close: the marker color owns the field ---------- */

.close {
  padding-block: clamp(5.25rem, 3.826rem + 5.843vw, 8.5rem) clamp(4.75rem, 3.326rem + 5.843vw, 8rem);
  background: var(--c-accent);
  color: var(--c-on-accent);
}

.close h2 {
  font-size: var(--fs-display-3);
  line-height: 0.92;
  letter-spacing: var(--ls-display);
}

.close__side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-6);
}

.close__side p {
  font-size: var(--fs-body-lg);
}

.close .button {
  padding: clamp(1rem, 0.945rem + 0.225vw, 1.125rem) var(--space-7);
  background: var(--c-cta-button);
  color: var(--c-cta-button-ink);
  font-size: clamp(1.125rem, 1.098rem + 0.112vw, 1.1875rem);
}

@media (min-width: 641px) {
  .close__side {
    align-items: flex-start;
    gap: var(--space-7);
  }
}

@media (min-width: 1000px) {
  .close .grid12 {
    align-items: end;
  }

  .close h2 {
    grid-column: 1 / span 8;
  }

  .close__side {
    grid-column: 9 / span 4;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(3rem, 2.562rem + 1.798vw, 4rem) clamp(2rem, 1.781rem + 0.899vw, 2.5rem);
  border-bottom: 0;
  color: var(--c-slab-footer-ink);
  font-size: var(--fs-small);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.site-footer__brand {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.site-footer__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-logo);
  letter-spacing: var(--ls-heading);
  color: var(--c-slab-strong);
}

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

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

.site-footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem var(--space-3);
  padding-top: var(--space-4);
  border-top: var(--line-thin) solid var(--c-slab-rule-strong);
}

.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

@media (max-width: 640px) {
  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1000px) {
  .site-footer__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-9) var(--col-gap);
  }

  .site-footer__brand {
    grid-column: 1 / span 5;
  }

  .site-footer__grid > nav:nth-of-type(1) {
    grid-column: 7 / span 3;
  }

  .site-footer__grid > nav:nth-of-type(2) {
    grid-column: 10 / span 3;
  }

  .site-footer li a {
    min-height: 2.125rem;
  }

  .site-footer__legal {
    padding-top: var(--space-5);
  }
}

/* ---------- Document pages: privacy, terms, account deletion, support, 404 ---------- */

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

.doc .wrap {
  padding-inline: clamp(0.625rem, -0.197rem + 3.371vw, 2.5rem);
}

/* One sheet pinned to the wall: the board surface without the ruled squares, so long text
   stays easy to read. */
.sheet {
  max-width: 54rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 0.764rem + 4.045vw, 4rem) clamp(1.125rem, 0.084rem + 4.27vw, 3.5rem);
  border: var(--line-frame) solid var(--c-frame);
  border-radius: var(--radius-lg);
  background: var(--c-board);
}

.sheet > header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-bottom: var(--space-7);
  border-bottom: var(--line-thick) solid var(--c-ink);
}

.sheet h1 {
  font-size: clamp(2.5rem, 1.952rem + 2.247vw, 3.75rem);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
}

.sheet__lead {
  max-width: 38em;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.sheet__meta {
  font-size: var(--fs-small);
  color: var(--c-ink-soft);
}

.toc {
  margin-block: var(--space-7);
  padding: var(--space-5) var(--space-6);
  border: var(--line) solid var(--c-ink);
  border-radius: var(--radius-lg);
  background: var(--c-paper);
}

.toc h2 {
  margin-bottom: var(--space-2);
  font-size: var(--fs-heading-6);
  letter-spacing: -0.01em;
}

.toc ol {
  columns: 2 16rem;
  column-gap: var(--space-8);
  list-style: decimal;
  padding-left: 1.5rem;
  font-size: var(--fs-small);
  font-weight: 600;
}

.toc li {
  break-inside: avoid;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  text-decoration-thickness: var(--line-thin);
}

.prose {
  max-width: 42rem;
}

.prose section {
  padding-top: var(--space-8);
}

.prose h2 {
  margin-bottom: var(--space-3);
  font-size: clamp(1.5rem, 1.39rem + 0.449vw, 1.75rem);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
}

.prose h3 {
  margin-block: var(--space-5) var(--space-2);
  font-size: var(--fs-heading-6);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
}

.prose p,
.prose ul,
.prose ol,
.prose .table-scroll,
.prose .callout {
  margin-bottom: var(--space-4);
}

.prose ul,
.prose ol {
  padding-left: 1.375rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose li::marker {
  color: var(--c-ink-soft);
}

.callout {
  padding: var(--space-4) var(--space-5);
  border: var(--line) solid var(--c-ink);
  border-left-width: var(--radius);
  border-radius: var(--radius);
  background: var(--c-paper);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout--never {
  border-color: var(--c-alert-text);
}

.callout__label {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-heading-6);
  letter-spacing: -0.01em;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  border-top: var(--line-thick) solid var(--c-ink);
  border-bottom: var(--line-thick) solid var(--c-ink);
  font-size: var(--fs-small);
}

.prose caption {
  padding-bottom: var(--space-2);
  font-weight: 700;
  text-align: left;
}

.prose th,
.prose td {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-top: var(--line-thin) solid var(--c-rule);
  text-align: left;
  vertical-align: top;
}

.prose thead th {
  border-top: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-body);
}

.prose tbody th {
  width: 34%;
  font-weight: 700;
}

.legal-caps {
  font-size: var(--fs-small);
}

.notfound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.notfound__code {
  font-family: var(--font-mono);
  font-weight: 500;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  font-weight: 700;
}

.link-row a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

/* ---------- Motion and print ---------- */

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

  .skip-link {
    transition: transform 120ms ease-out;
  }

  .button,
  .theme-toggle,
  .menu-toggle,
  a {
    transition:
      color 120ms ease-out,
      background-color 120ms ease-out;
  }
}

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

@media print {
  .site-header nav,
  .header-tools,
  .skip-link,
  .tray {
    display: none !important;
  }
}
