/* Levelog: the design system. Every page of the site loads this file.
   The world: a job site's inspection tag. Deep navy fields, off-white tag stock, hard edges, one grotesque across a
   width axis. Green, yellow and red mean status and nothing else. Brass is the visitor's own action.
   Order: tokens, base, type, layout, tag, status, buttons, fields, sign-on form, bar, tables, footer, utilities. */

/* ---- tokens ---------------------------------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* ground */
  --navy-950: #07131D;
  --navy-900: #0A1C2B;
  --navy-700: #1B3B55;
  --navy-brand: #0B3659;
  --stock: #F1F1EA;
  --stock-2: #E7E8E0;
  --face: #FBFBF7;
  --white: #fff;
  --navy-field: #12283A;
  --navy-thumb: #53687A;
  --glass: rgba(8, 22, 34, .92);
  --shade: 4, 12, 19;

  /* ink */
  --ink: #0A1620;
  --ink-2: #3A4B59;
  --on-navy: #F3F4EE;
  --on-navy-2: #B3C2CE;
  --line: rgba(10, 22, 32, .16);
  --line-strong: rgba(10, 22, 32, .34);
  --line-navy: rgba(243, 244, 238, .18);
  --line-navy-strong: rgba(243, 244, 238, .38);

  /* status: used for status and alerts only */
  --go: #0E774A;
  --go-on-navy: #58D398;
  --caution: #F4C20D;
  --stop: #B3261E;
  --stop-on-navy: #FF8A7A;

  /* the visitor's action */
  --brass: #D9A242;
  --brass-hi: #E8B55A;
  --brass-lo: #BF8B30;

  /* surface roles, re-pointed inside .on-navy */
  --bg: var(--stock);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --focus: var(--navy-brand);
  --field-bg: var(--face);
  --field-line: rgba(10, 22, 32, .58);
  --link-line: #8F6417;
  --ok: var(--go);
  --bad: var(--stop);

  /* type */
  --sans: "Archivo", "Archivo Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t-display: clamp(2.5rem, 1.55rem + 3.5vw, 4.5rem);
  --t-h2: clamp(1.95rem, 1.35rem + 2.3vw, 3.1rem);
  --t-h3: clamp(1.3rem, 1.12rem + .75vw, 1.7rem);
  --t-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-label: .75rem;

  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --pad: clamp(20px, 4vw, 56px);
  --wrap: 1240px;
  --bar-h: 64px;
  --band: clamp(72px, 9vw, 128px);

  /* shape and motion */
  --r: 3px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

.on-navy {
  color-scheme: dark;
  --bg: var(--navy-900);
  --fg: var(--on-navy);
  --fg-2: var(--on-navy-2);
  --rule: var(--line-navy);
  --rule-strong: var(--line-navy-strong);
  --focus: var(--brass-hi);
  --field-bg: rgba(243, 244, 238, .06);
  --field-line: rgba(243, 244, 238, .52);
  --link-line: var(--brass);
  --ok: var(--go-on-navy);
  --bad: var(--stop-on-navy);
  background: var(--bg);
  color: var(--fg);
}

/* a card of tag stock set down on a navy field: back to the light roles */
.on-stock {
  color-scheme: light;
  --bg: var(--face);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --focus: var(--navy-brand);
  --field-bg: var(--white);
  --field-line: rgba(10, 22, 32, .58);
  --link-line: #8F6417;
  --ok: var(--go);
  --bad: var(--stop);
  --tag-edge: var(--line-strong);
  --tag-face: var(--face);
  color: var(--fg);
}

/* Archivo arrives from Google Fonts. Until it does, Arial is set to its width and line, so nothing shifts when it lands. */
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 98.6%; ascent-override: 89%; descent-override: 21.3%; line-gap-override: 0%; }

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

html {
  background: var(--navy-950);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 20px);
  scrollbar-color: var(--navy-thumb) var(--navy-950);
}
/* a full-size screen is up: the page behind it stays where it is */
html:has(dialog[open]) { overflow: hidden; }
@media (pointer: fine) { html { overscroll-behavior-y: none; } }

body {
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, input, select, summary, label { touch-action: manipulation; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

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

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

/* ---- type ------------------------------------------------------------------------------------------------------ */
h1, h2, h3 { text-wrap: balance; font-stretch: 96%; }
p, li, td, th, dd, summary, figcaption { text-wrap: pretty; }

.t-display { font-size: var(--t-display); font-weight: 760; line-height: .98; letter-spacing: -.028em; }
.t-h2 { font-size: var(--t-h2); font-weight: 740; line-height: 1.03; letter-spacing: -.024em; }
.t-h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.12; letter-spacing: -.016em; }
.t-lead { font-size: var(--t-lead); line-height: 1.5; color: var(--fg-2); max-width: 62ch; }
.t-small { font-size: var(--t-small); line-height: 1.5; }
.t-note { font-size: .875rem; line-height: 1.5; color: var(--fg-2); }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* the small capitals of a printed form: field names and table heads, never section titles */
.t-label {
  font-size: var(--t-label);
  font-weight: 640;
  font-stretch: 84%;
  line-height: 1.2;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.link {
  color: inherit;
  font-weight: 620;
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.link:hover { text-decoration-color: currentColor; }

/* ---- layout ---------------------------------------------------------------------------------------------------- */
.wrap { width: min(var(--wrap), 100% - 2 * max(var(--pad), env(safe-area-inset-left), env(safe-area-inset-right))); margin-inline: auto; }

/* A band is one course of the page. Its head opens on the level line of the wordmark: a hairline with a short heavy mark. */
.band { position: relative; padding-block: var(--band); background: var(--bg); color: var(--fg); }
.band-head {
  position: relative;
  padding-top: var(--s-6);
  margin-bottom: clamp(32px, 4.5vw, 64px);
  border-top: 1px solid var(--rule-strong);
}
.band-head::before {
  content: "";
  position: absolute;
  left: 0; top: -2px;
  width: 48px; height: 3px;
  background: var(--fg);
}
.band-head .t-lead { margin-top: var(--s-4); }
.band-head--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-5) clamp(24px, 5vw, 80px); align-items: end; }
.band-head--split .t-lead { margin-top: 0; }

.skip {
  position: fixed; z-index: 200; left: 12px; top: -80px;
  padding: 12px 16px;
  background: var(--brass); color: var(--ink);
  font-weight: 680; text-decoration: none;
  border-radius: var(--r);
}
.skip:focus { top: 12px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- the tag ---------------------------------------------------------------------------------------------------
   The one object of this world: a die-cut card with one corner cut and an eyelet punched beside it, a band across its top,
   ruled fields below. `.tag` is the edge, `.tag-face` the card. On a navy field the face is navy and the edge is light. */
.tag {
  --cut: 16px;
  --hole-r: 36px;                          /* the eyelet's centre, measured from the right edge */
  --hole-y: 22px;
  --tag-pad: clamp(20px, 2.4vw, 32px);     /* the card's side margin: the band's words start where the body's do */
  --tag-edge: var(--rule-strong);
  --tag-face: var(--face);
  position: relative;
  padding: 1px;
  background: var(--tag-edge);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  -webkit-mask: radial-gradient(circle at calc(100% - var(--hole-r)) var(--hole-y), transparent 4px, #000 4.6px);
          mask: radial-gradient(circle at calc(100% - var(--hole-r)) var(--hole-y), transparent 4px, #000 4.6px);
}
.tag-face {
  position: relative;
  height: 100%;
  background: var(--tag-face);
  color: var(--fg);
  clip-path: polygon(0 0, calc(100% - var(--cut) + .4px) 0, 100% calc(var(--cut) - .4px), 100% 100%, 0 100%);
  -webkit-mask: radial-gradient(circle at calc(100% - var(--hole-r) + 1px) calc(var(--hole-y) - 1px), transparent 6.4px, #000 7px);
          mask: radial-gradient(circle at calc(100% - var(--hole-r) + 1px) calc(var(--hole-y) - 1px), transparent 6.4px, #000 7px);
}
.on-navy .tag:not(.on-stock) { --tag-edge: var(--line-navy-strong); --tag-face: var(--navy-900); }
.on-navy .tag.on-stock { --tag-edge: transparent; }

/* the status band: the first thing a tag says */
.tag-band {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 44px;
  padding: 0 calc(var(--hole-r) + 22px) 0 var(--tag-pad);
  font-size: .8125rem; font-weight: 800; font-stretch: 72%;
  letter-spacing: .08em; text-transform: uppercase;
  line-height: 1.1;
}
.tag-band i { flex: none; width: 1px; height: 14px; background: currentColor; opacity: .5; }
.tag-band--plain { background: transparent; color: var(--fg); border-bottom: 1px solid var(--rule-strong); }
.tag-band .st { vertical-align: 0; }
.tag-body { padding: var(--tag-pad); }

/* ruled fields of a form: a name over a value, a line under both */
.rows { border-top: 1px solid var(--rule); }
.rows > * {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-4); align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.rows dt, .rows .k { color: var(--fg-2); font-size: var(--t-small); }
.rows dd, .rows .v { font-weight: 620; text-align: right; font-variant-numeric: tabular-nums lining-nums; }
/* a long value sits under its name */
.rows--stack > * { grid-template-columns: minmax(0, 1fr); gap: 3px; }
.rows--stack dd { text-align: left; }
.rows--stack dt .st { margin-left: 6px; vertical-align: 1px; }

/* ---- status ---------------------------------------------------------------------------------------------------- */
.st {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  font-size: .75rem; font-weight: 800; font-stretch: 72%;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  white-space: nowrap; flex: none;
  border-radius: 2px;
  vertical-align: 2px;
}
.st--live { background: var(--go); color: var(--white); }
.st--beta, .st--in-pilot { background: var(--caution); color: var(--ink); }
/* in build: a ruled outline, no colour. Not in service yet, so it is not printed in a status colour; under construction, so its line is whole */
.st--in-build { background: transparent; color: inherit; border: 1px solid currentColor; }
.st--coming { background: transparent; color: var(--fg-2); border: 1px dashed currentColor; }

.legend { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); font-size: var(--t-small); color: var(--fg-2); }
.legend > * { display: inline-flex; align-items: center; gap: var(--s-2); }
.band-head .legend { margin-top: var(--s-4); }

/* ---- buttons --------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r);
  background: transparent; color: inherit;
  font-size: 1rem; font-weight: 700; font-stretch: 96%; line-height: 1;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--go { background: var(--brass); color: var(--ink); }
.btn--go:hover { background: var(--brass-hi); }
.btn--go:focus-visible { outline-color: var(--focus); }
.btn--line { border-color: var(--field-line); }
.btn--line:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 8%, transparent); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
@media (pointer: coarse) { .btn--small { min-height: 44px; } }
.btn--wide { width: 100%; }
.btn[aria-busy="true"] { cursor: progress; }

/* a text action with a drawn arrow: goes somewhere on the page */
.go {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 0; border: 0; background: none; color: inherit;
  font-weight: 680; font-size: 1rem; text-decoration: none; cursor: pointer;
}
.go svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.go:hover svg { transform: translateY(3px); }
.go--side:hover svg { transform: translateX(3px); }
.go span { text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---- fields ---------------------------------------------------------------------------------------------------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label { font-size: var(--t-label); font-weight: 640; font-stretch: 84%; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-2); }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--field-line); border-bottom-width: 2px; border-radius: var(--r);
  background-color: var(--field-bg); color: var(--fg);
  font-size: 1rem; line-height: 1.2;
  caret-color: var(--brass-lo);
}
.field input::placeholder { color: var(--fg-2); opacity: .9; }
.field input:hover, .field select:hover { border-color: var(--fg); }
.field input:focus-visible, .field select:focus-visible { outline-offset: 2px; border-color: var(--fg); }
.field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%230A1620' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
  cursor: pointer;
}
.on-navy .field select {
  background-color: var(--navy-field); color: var(--on-navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23F3F4EE' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}
.on-navy .field select option { background-color: var(--navy-field); color: var(--on-navy); }
/* a card of tag stock on a navy field has light fields again */
.on-stock .field select, .on-navy .on-stock .field select {
  background-color: var(--field-bg); color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%230A1620' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}
.on-stock .field select option, .on-navy .on-stock .field select option { background-color: var(--white); color: var(--ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field input[aria-invalid="true"]:hover, .field select[aria-invalid="true"]:hover, .field input[aria-invalid="true"]:focus-visible, .field select[aria-invalid="true"]:focus-visible { border-color: var(--bad); }

/* ---- the sign-on form: an email address and a role, signed like a tag --------------------------------------------- */
.signon { display: grid; gap: var(--s-3); }
.signon-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.signon .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signon-say { font-size: .875rem; line-height: 1.45; color: var(--fg-2); overflow-wrap: anywhere; }
.signon-say a { color: inherit; }
.signon-error { font-size: .9375rem; line-height: 1.45; color: var(--bad); font-weight: 600; }
.signon-error:empty { display: none; }
.signon-error a { color: inherit; }

/* what the form prints when the request is in: a dated line in the record, then two optional blanks */
.receipt { display: none; }
.is-sent > .signon { display: none; }
.is-sent > .receipt { display: grid; gap: var(--s-4); }
.is-sent > h2 { display: none; }
.receipt-line {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px var(--s-3); align-items: start;
  padding: 14px 0; border-block: 1px solid var(--rule-strong);
  font-size: var(--t-small); line-height: 1.45;
}
.receipt-line svg { width: 20px; height: 20px; margin-top: 1px; color: var(--ok); }
.receipt-line b { font-weight: 700; }
.receipt-line span { grid-column: 2; color: var(--fg-2); overflow-wrap: anywhere; }
.receipt-h { font-size: 1.25rem; font-weight: 720; line-height: 1.15; letter-spacing: -.012em; color: var(--fg); }
/* two small actions written as words: put a wrong address right, and (in the first screen) add the optional answers */
.receipt-fix { padding: 0; border: 0; background: none; color: var(--fg); font: inherit; font-weight: 620; cursor: pointer; text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.receipt-fix:hover { text-decoration-color: currentColor; }
@media (pointer: coarse) { .receipt-fix { min-height: 44px; } }
.receipt-more { display: grid; gap: var(--s-3); }
.receipt-more[data-done] .signon-row, .receipt-more[data-done] .btn { display: none; }

/* ---- the bar --------------------------------------------------------------------------------------------------- */
.bar {
  position: fixed; z-index: 50; inset: 0 0 auto 0;
  height: var(--bar-h);
  display: flex; align-items: center; gap: var(--s-3);
  padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
  background: var(--navy-950);
  border-bottom: 1px solid var(--line-navy);
  color: var(--on-navy);
  --focus: var(--brass-hi);
}
.bar-logo { display: inline-flex; align-items: center; height: 44px; flex: none; }
.bar-logo img { height: 1.375rem; width: auto; filter: brightness(0) invert(1); }
.bar-nav { display: flex; align-items: center; gap: var(--s-1); min-width: 0; margin-left: auto; }
.bar-nav a:not(.btn) {
  display: inline-flex; align-items: center; height: 40px; padding: 0 12px;
  font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--on-navy-2);
  border-radius: var(--r);
}
.bar-nav a:not(.btn):hover { color: var(--on-navy); background: rgba(243, 244, 238, .08); }
/* the section being read: the level line of the wordmark under its name */
.bar-nav a[aria-current] { color: var(--on-navy); box-shadow: inset 0 -3px 0 var(--brass); border-radius: 0; }
.bar-cta { flex: none; border: 1px solid transparent; }
.bar-cta-done { display: none; }
.is-joined .bar-cta-ask { display: none; }
.is-joined .bar-cta-done { display: inline; }
.is-joined .bar-cta { background: transparent; color: var(--on-navy); border-color: var(--line-navy-strong); }
.is-joined .bar-cta:hover { background: rgba(243, 244, 238, .08); border-color: var(--on-navy); }
/* a phone's menu: the sections of the page, and the way past the building */
.bar-menu { display: none; margin-left: auto; }
.bar-menu summary { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px; list-style: none; cursor: pointer; font-size: .9375rem; font-weight: 640; color: var(--on-navy); border-radius: var(--r); }
.bar-menu summary::-webkit-details-marker { display: none; }
.bar-menu summary::before { content: ""; width: 16px; height: 12px; border-block: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.bar-menu[open] summary { background: rgba(243, 244, 238, .1); }
.bar-menu nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 4px max(var(--pad), env(safe-area-inset-right)) 10px max(var(--pad), env(safe-area-inset-left)); background: var(--navy-950); border-bottom: 1px solid var(--line-navy-strong); box-shadow: 0 18px 30px rgba(var(--shade), .45); }
.bar-menu nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line-navy); font-size: 1.0625rem; font-weight: 620; text-decoration: none; color: var(--on-navy); }
.bar-menu nav a:last-child { border-bottom: 0; }
/* the narrowest phones (320px): the menu is its mark alone, so the button beside it stays whole */
@media (max-width: 350px) { .bar { gap: var(--s-2); } .bar-menu summary { font-size: 0; gap: 0; padding: 0 14px; } }
.bar-sep { width: 1px; height: 20px; margin-inline: var(--s-2); background: var(--line-navy); }

/* the sign-on tag that drops from the bar: not a modal, the page stays where it is */
.drop {
  position: fixed; z-index: 49; top: calc(var(--bar-h) + 10px); right: max(var(--pad), env(safe-area-inset-right));
  width: min(440px, calc(100vw - 2 * var(--pad)));
  filter: drop-shadow(0 18px 36px rgba(var(--shade), .5));
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity .2s ease, transform .28s var(--ease), visibility 0s linear .28s;
}
.drop.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
/* a panel, not a hung tag: no eyelet beside its close button, and one statement of depth (the shadow) */
.drop .tag { --tag-pad: 22px; --tag-edge: transparent; }
.drop .tag, .drop .tag-face { -webkit-mask: none; mask: none; }
.drop h2 { padding-right: 44px; }
.drop .tag-body { padding: 20px 22px 22px; display: grid; gap: var(--s-4); max-height: calc(100dvh - var(--bar-h) - 66px); overflow-y: auto; overscroll-behavior: contain; }
.drop h2 { font-size: 1.375rem; font-weight: 740; line-height: 1.1; letter-spacing: -.014em; }
.drop .signon-row { grid-template-columns: 1fr; }
.drop-close {
  position: absolute; z-index: 2; top: 14px; right: 18px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: var(--r); background: none; color: var(--ink); cursor: pointer;
}
.drop-close svg { width: 16px; height: 16px; }
.drop-close:hover { background: rgba(10, 22, 32, .12); }
@media (pointer: coarse) { .drop-close { top: 8px; right: 12px; width: 44px; height: 44px; } }

/* ---- tables ---------------------------------------------------------------------------------------------------- */
.table { width: 100%; font-size: var(--t-body); line-height: 1.42; }
.table th, .table td { padding: 16px 20px 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table thead th { padding-top: 0; border-bottom: 1px solid var(--rule-strong); font-size: var(--t-label); font-weight: 640; font-stretch: 84%; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-2); }
.table tbody th { font-weight: 680; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- footer ---------------------------------------------------------------------------------------------------- */
.foot { background: var(--navy-950); color: var(--on-navy-2); padding: clamp(48px, 6vw, 88px) 0 max(28px, env(safe-area-inset-bottom)); --focus: var(--brass-hi); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.foot-logo { display: inline-flex; align-items: center; min-height: 44px; }
.foot-logo img { height: 24px; width: auto; filter: brightness(0) invert(1); }
.foot-say { margin-top: var(--s-4); max-width: 34ch; color: var(--on-navy); }
.foot h2 { font-size: var(--t-label); font-weight: 640; font-stretch: 84%; letter-spacing: .07em; text-transform: uppercase; color: var(--on-navy-2); }
.foot ul { margin-top: var(--s-4); display: grid; gap: 10px; }
.foot a { color: var(--on-navy); text-decoration: none; font-size: 1rem; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
@media (pointer: coarse) { .foot ul { gap: 0; } .foot li a { display: block; padding-block: 11px; } }
.foot-legal {
  margin-top: clamp(40px, 5vw, 64px); padding-top: var(--s-5);
  border-top: 1px solid var(--line-navy);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between;
  font-size: .875rem; line-height: 1.5;
}
.foot-legal p { max-width: 84ch; }

/* ---- responsive ------------------------------------------------------------------------------------------------ */
@media (max-width: 980px) {
  .band-head--split { grid-template-columns: 1fr; align-items: start; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --bar-h: 56px; --t-body: 1rem; }
  .bar-nav { display: none; }
  .bar-menu { display: block; }
  .bar-logo img { height: 1.25rem; }
  .signon-row { grid-template-columns: 1fr; }
  .drop { left: 12px; right: 12px; width: auto; top: calc(var(--bar-h) + 8px); }
  .foot-grid { grid-template-columns: 1fr; }
  .table th, .table td { padding-right: 12px; }
}

/* a forced palette: what is told by a fill alone gets an edge */
@media (forced-colors: active) {
  .st, .tag, .btn { border: 1px solid; }
  .bar-nav a[aria-current] { outline: 2px solid Highlight; outline-offset: -2px; }
}

/* Less motion asked for: things still change state where they stand. They fade; they do not travel or press. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .go svg { transition: none; }
  .go:hover svg { transform: none; }
  .btn:active { transform: none; }
  .drop { transform: none; transition: opacity .15s linear, visibility 0s linear .15s; }
  .drop.is-open { transition-delay: 0s; }
}
/* the capture tools take pictures of settled frames */
html.is-capture *, html.is-capture *::before, html.is-capture *::after { transition: none !important; animation: none !important; }

/* ---- the app's soft surfaces (2026-11-19)) -----------------------------------------------------------------------------
   The owner, after walking the building: "i want a bit more of the actual app design added. the soft silicone look".
   These are the Levelog app's own surfaces (its frontend/scripts/build-soft-assets.py, the "Soft dish"), brought across:
   light from the top left; a raised part is the colour of the ground it stands on, its edge rolls over (lighter on the lit
   sides, darker on the far ones) and it casts a soft shade down and to the right; a field is pressed into its ground; what
   is pressed sinks. The recipes were measured against the app's own pictures of a card (card_light_full, card_dark_full):
   within 2 levels of 255 on paper, within 5 on navy, everywhere but the outermost pixel of the edge.
   With it the tag's cut corner and eyelet are gone: a card is a soft slab. Status colours and brass mean what they meant. */
:root {
  --paper: #ECEDE9;                        /* the app's ground and card */
  --paper-well: #E9EBE6;                   /* the floor of a part pressed in */
  --app-navy: #243746;                     /* the app's navy: its bar and its filled action */
  --soft-r: 20px;
  --soft-cast: 6px 9px 20px rgba(116, 120, 106, .26), 0 4px 14px rgba(116, 120, 106, .16), -5px -5px 12px rgba(255, 255, 255, .68);
  --soft-cast-air: 10px 16px 36px rgba(4, 12, 19, .36), 0 4px 14px rgba(4, 12, 19, .22);     /* over the picture of the building there is no ground of its own to light: only shade */
  --soft-cast-navy: 6px 9px 20px rgba(2, 8, 12, .34), 0 4px 14px rgba(2, 8, 12, .22), -5px -5px 12px rgba(255, 255, 255, .045);
  --soft-cast-on-navy: 8px 12px 26px rgba(2, 8, 12, .42), 0 4px 12px rgba(2, 8, 12, .3);      /* a paper card set down on navy */
  --soft-roll: inset -1px -1px 2px rgba(116, 120, 106, .5), inset -3px -3px 6px rgba(140, 143, 131, .3), inset -6px -7px 14px rgba(152, 155, 143, .28), inset 2px 2px 4px rgba(255, 255, 255, .6), inset 6px 6px 12px rgba(255, 255, 255, .3);
  --soft-roll-small: inset -1px -1px 2px rgba(116, 120, 106, .46), inset -2px -3px 5px rgba(140, 143, 131, .3), inset 1px 1px 2px rgba(255, 255, 255, .7), inset 3px 3px 6px rgba(255, 255, 255, .3);
  --soft-roll-navy: inset -1px -1px 2px rgba(3, 9, 14, .75), inset -3px -3px 6px rgba(3, 9, 14, .4), inset -6px -7px 14px rgba(3, 9, 14, .32), inset 1px 1px 1px rgba(104, 136, 162, .16), inset 3px 4px 7px rgba(104, 136, 162, .3), inset 8px 9px 18px rgba(104, 136, 162, .16);
  --soft-roll-navy-small: inset -1px -1px 2px rgba(3, 9, 14, .7), inset -2px -3px 5px rgba(3, 9, 14, .36), inset 1px 1px 1px rgba(124, 156, 182, .3), inset 3px 3px 6px rgba(104, 136, 162, .26);
  --soft-roll-brass: inset -1px -1px 2px rgba(96, 64, 8, .55), inset -3px -4px 8px rgba(132, 92, 20, .34), inset 1px 2px 3px rgba(255, 240, 200, .7), inset 5px 6px 12px rgba(255, 226, 160, .3);
  --soft-well: inset 4px 5px 10px rgba(116, 120, 106, .24), inset 1px 1px 2px rgba(116, 120, 106, .14), inset -2px -2px 4px rgba(255, 255, 255, .5), 0 1.5px 1px rgba(255, 255, 255, .75);
  --soft-well-navy: inset 4px 5px 10px rgba(2, 8, 12, .5), inset 1px 1px 2px rgba(2, 8, 12, .4), inset -2px -2px 4px rgba(104, 136, 162, .14), 0 1px 0 rgba(104, 136, 162, .16);
  /* a key (a button) on paper; .on-navy re-points these for a key on navy */
  --key-cast: 4px 6px 14px rgba(116, 120, 106, .32), 0 2px 6px rgba(116, 120, 106, .2), -3px -3px 8px rgba(255, 255, 255, .6);
  --key-cast-down: 2px 3px 7px rgba(116, 120, 106, .26), -2px -2px 5px rgba(255, 255, 255, .4);
  --key-roll: var(--soft-roll-small);
  --well-bg: var(--paper-well);
  --well: var(--soft-well);
}
.on-navy, .bar { --key-cast: 4px 6px 14px rgba(2, 8, 12, .42), 0 2px 6px rgba(2, 8, 12, .28); --key-cast-down: 2px 3px 7px rgba(2, 8, 12, .4); --key-roll: var(--soft-roll-navy-small); --well-bg: rgba(2, 8, 12, .3); --well: var(--soft-well-navy); }
.on-stock { --bg: var(--paper); --field-bg: var(--paper-well); --key-cast: 4px 6px 14px rgba(116, 120, 106, .32), 0 2px 6px rgba(116, 120, 106, .2), -3px -3px 8px rgba(255, 255, 255, .6); --key-cast-down: 2px 3px 7px rgba(116, 120, 106, .26), -2px -2px 5px rgba(255, 255, 255, .4); --key-roll: var(--soft-roll-small); --well-bg: var(--paper-well); --well: var(--soft-well); }

/* the card: a soft slab, raised from the ground it stands on */
.tag { clip-path: none; -webkit-mask: none; mask: none; padding: 0; background: none; border-radius: var(--soft-r); --tag-face: var(--paper); --tag-cast: var(--soft-cast); --tag-roll: var(--soft-roll); box-shadow: var(--tag-cast); }
.tag-face { clip-path: none; -webkit-mask: none; mask: none; border-radius: inherit; box-shadow: var(--tag-roll); }
.on-navy .tag:not(.on-stock) { --tag-face: var(--navy-900); --tag-cast: var(--soft-cast-navy); --tag-roll: var(--soft-roll-navy); }
.on-navy .tag.on-stock { --tag-face: var(--paper); --tag-cast: var(--soft-cast-on-navy); --tag-roll: var(--soft-roll); }
.tag-band { padding-right: var(--tag-pad); }

/* status: a small pill */
.st { height: 22px; padding: 0 10px; border-radius: 11px; }
.st--live, .st--beta, .st--in-pilot { box-shadow: inset 1px 1px 1px rgba(255, 255, 255, .34), inset -1px -1px 2px rgba(0, 0, 0, .2); }

/* a button is a key: raised, and it sinks under the finger (in over about a tenth of a second, back out more slowly, as in the app) */
.btn { border: 0; border-radius: 26px; transition: transform .26s var(--ease), box-shadow .26s ease-out, background-color .2s ease; }
.btn:active { transform: translateY(1px); transition-duration: .11s; }
.btn--go { box-shadow: var(--key-cast), var(--soft-roll-brass); }
.btn--go:active { box-shadow: var(--key-cast-down), inset -1px -1px 2px rgba(96, 64, 8, .4), inset 2px 2px 4px rgba(96, 64, 8, .22); }
.btn--line { border: 0; background: var(--bg); box-shadow: var(--key-cast), var(--key-roll); }
.btn--line:hover { background: color-mix(in srgb, var(--bg) 94%, var(--fg)); }
.btn--line:active { box-shadow: var(--key-cast-down); }

/* a blank to fill in is pressed into its ground */
.field input, .field select { border: 0; border-radius: 14px; background-color: var(--well-bg); box-shadow: var(--well); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field input[aria-invalid="true"]:hover, .field select[aria-invalid="true"]:hover { box-shadow: var(--well), 0 0 0 2px var(--bad); }

/* the bar on a phone (2026-11-20): the logo, the waitlist action, and the menu as its three lines alone at the far end.
   The word "Menu" stays in the page for a screen reader; the key is a full 44 px square for the thumb. */
@media (max-width: 760px) {
  .bar { gap: 6px; }
  .bar-cta { order: 2; margin-left: auto; }
  .bar-menu { order: 3; margin-left: 0; margin-right: -10px; }
  .bar-menu summary { font-size: 0; gap: 0; width: 44px; padding: 0; justify-content: center; }
  .bar-menu summary::before { width: 18px; height: 14px; }
}

/* ---- One status mark on every page (2026-11-21): a shape and a word in the page's own ink. Full dot: in the product. Half:
   in the product for a few companies. Ring: on pilot jobs. Dashed square: being built. The home page's v12.css says the same. ---- */
.st { height: auto; padding: 0; gap: 7px; border: 0; border-radius: 0; background: none !important; box-shadow: none !important; color: inherit; font-size: .8125rem; font-weight: 680; font-stretch: 88%; letter-spacing: .06em; vertical-align: 1px; }
.st::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--go); }
.on-navy .st::before { background: #3FBF86; }
.st--beta::before { background: linear-gradient(90deg, var(--go) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--go); }
.on-navy .st--beta::before { background: linear-gradient(90deg, #3FBF86 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px #3FBF86; }
.st--in-pilot::before, .on-navy .st--in-pilot::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.st--in-build::before, .st--coming::before, .on-navy .st--in-build::before, .on-navy .st--coming::before { background: transparent; box-shadow: none; border: 1.5px dashed currentColor; border-radius: 2px; }
.field input, .field select { box-shadow: var(--well), inset 0 0 0 1px rgba(10, 22, 32, .52); }

/* 2026-11-22: the legal line of the footer is read, not skimmed */
.foot-legal, .foot-legal p { font-size: .9375rem; line-height: 1.5; }

/* 2026-11-22: with Reports in the bar, the row of links needs 960 px; below that the menu takes over */
@media (max-width: 960px) { .bar-nav { display: none; } .bar-menu { display: block; } }
