/* Neatly web (NEA-132). Page defaults, from the app's base.css. Every color, font, size and time is a custom
   property of brand/tokens.css and brand/type.css, which the page links first. No color value is written here. */

/* under reduced motion a picture shows its end state at once: the app sets this at its head, the kit file of
   1.1.0 does not carry it yet */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-photo: 0ms;
  }
}

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

html {
  background: var(--canvas);
  scrollbar-color: var(--line-strong) transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* the browser's own scroll to a part (a focus by Tab, the caret, a find, an anchor) stops under the sticky bar: its
     height by the steps of layout.css (--bar-h). The window can be a scrollbar wider than the page container, so this
     step can come a few px early: more room, never less */
  scroll-padding-top: 48px;
}
@media (min-width: 600px) {
  html {
    scroll-padding-top: 72px;
  }
}
@media (min-width: 1104px) {
  html {
    scroll-padding-top: 84px;
  }
}

/* the page root is the container named shell: the Display steps of type.css and every layout step ask it */
body {
  container: shell / inline-size;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-synthesis: none;
  caret-color: var(--text);
  background: var(--canvas);
  color: var(--text);
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
}
ul,
ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
a {
  -webkit-tap-highlight-color: transparent;
}
/* an input under 16 px makes iOS zoom the page */
input {
  font-size: max(16px, 1em);
}
img,
video,
svg {
  display: block;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--selection);
}

/* one thin ring, keyboard only, at once (never animated) */
:focus {
  outline: none;
}
:focus-visible {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: 2px;
}

/* seen by a screen reader only */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion, as the app: no movement and no loop. Only fills, lines and opacity fade, in 100 ms at most
   (the time tokens step down in tokens.css). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-property: background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow !important;
    transition-delay: 0ms !important;
  }
}

/* ?still=1 (review pictures): nothing moves and nothing fades */
[data-still] *,
[data-still] *::before,
[data-still] *::after {
  transition: none !important;
  animation: none !important;
}

/* The Neatly kit parts that this site uses, with the app's class names (nk-). The values are the ones that win in the
   app's cascade (the token file wins over a comment). Source: zeus/src/kit, by way of the lane's design-system report,
   sections 5.1, 5.2, 5.3, 5.6, 5.7, 6. Word styles of the button come from brand/type.css. */

/* ---------- 5.1 the filled button: 48 high, radius 14, one per view ---------- */
.nk-btn {
  --t-scale: var(--t-select);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control-h);
  padding: calc((var(--control-h) - 1.5rem) / 2) var(--control-pad);
  border-radius: var(--r-control);
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  transition:
    background-color var(--t-hover) var(--ease),
    transform var(--t-scale, var(--t-select)) var(--ease);
}
.nk-btn > span {
  text-wrap: balance;
}
.nk-btn:active {
  --t-scale: var(--t-press);
  transform: scale(var(--press));
}
/* it comes back from the press on the flow curve */
.nk-btn:not(:active) {
  transition-timing-function: var(--ease-enter);
}
.nk-btn--primary {
  background: var(--action-bg);
  color: var(--action-fg);
}
.nk-btn--secondary {
  background: var(--tonal);
  color: var(--text);
}
.nk-btn--block {
  width: 100%;
}
@media (hover: hover) and (pointer: fine) {
  .nk-btn--primary:hover {
    background: color-mix(in oklch, var(--action-bg) 88%, var(--canvas));
  }
  .nk-btn--secondary:hover {
    background: var(--plate);
  }
}
@container shell (min-width: 600px) {
  .nk-btn {
    max-width: var(--button-w-max);
  }
  .nk-btn--primary {
    min-width: min(var(--button-w-min), 100%);
  }
}
/* while it sends: the words give way to the loader ring, and the button keeps its size. The words go by opacity, so
   the button keeps its name for a screen reader (visibility would take the name away) */
.nk-btn__ring {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
}
.nk-btn.is-loading .nk-btn__label {
  opacity: 0;
}
.nk-btn.is-loading .nk-btn__ring {
  display: grid;
}
.nk-btn__ring svg {
  animation: nk-spin var(--t-spin) linear infinite;
}
@keyframes nk-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 5.2 the text button. Tonal (a box in --tonal), plain (no box, the words on the column edge) and link
   (a quiet caption link). The target is 48 by 48 or more in each look. ---------- */
.nk-tb {
  --t-scale: var(--t-select);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control-h);
  padding: 0 var(--control-pad);
  border-radius: var(--r-control);
  background: var(--tonal);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: var(--control-w);
  letter-spacing: -0.005em;
  color: var(--text);
  text-align: center;
  transition:
    color var(--t-hover) var(--ease),
    background-color var(--t-hover) var(--ease),
    transform var(--t-scale, var(--t-select)) var(--ease);
}
.nk-tb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, var(--target));
  height: max(100%, var(--target));
  translate: -50% -50%;
}
.nk-tb__in {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  min-width: 0;
}
.nk-tb--quiet {
  color: var(--text-2);
}
/* tonal: its plate lies over its box (tonal under a pointer, plate under a press), and it presses like a button */
.nk-tb:not(.nk-tb--plain, .nk-tb--link)::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background-color: transparent;
  pointer-events: none;
  transition: background-color var(--t-hover) var(--ease);
}
.nk-tb:not(.nk-tb--plain, .nk-tb--link):active {
  --t-scale: var(--t-press);
  transform: scale(var(--press));
}
.nk-tb:not(.nk-tb--plain, .nk-tb--link):active::before {
  background-color: var(--plate);
}
/* plain and link: no box at rest */
.nk-tb--plain,
.nk-tb--link {
  background: none;
}
.nk-tb--plain {
  min-width: 44px;
  min-height: var(--target);
  padding: 0 var(--s-1);
  margin-inline: calc(-1 * var(--s-1));
  font-weight: 600;
}
.nk-tb--link {
  min-height: var(--tonal-h);
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-2);
}
.nk-tb--link:active {
  color: var(--text);
}
/* their plate hangs on the words: 48 high, 12 past the words at each side, radius 14 */
:is(.nk-tb--plain, .nk-tb--link) > .nk-tb__in::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-block: min(calc(50% - var(--target) / 2), calc(-1 * var(--s-3)));
  inset-inline: calc(-1 * var(--tb-plate-x));
  border-radius: var(--r-control);
  background-color: transparent;
  pointer-events: none;
  transition: background-color var(--t-hover) var(--ease);
}
:is(.nk-tb--plain, .nk-tb--link):active > .nk-tb__in::before {
  background-color: var(--plate);
}
@media (hover: hover) and (pointer: fine) {
  .nk-tb:not(.nk-tb--plain, .nk-tb--link):hover::before {
    background-color: var(--tonal);
  }
  .nk-tb:not(.nk-tb--plain, .nk-tb--link):hover:active::before {
    background-color: var(--plate);
  }
  .nk-tb--quiet:hover,
  .nk-tb--link:hover {
    color: var(--text);
  }
  :is(.nk-tb--plain, .nk-tb--link):hover > .nk-tb__in::before {
    background-color: var(--tonal);
  }
  :is(.nk-tb--plain, .nk-tb--link):hover:active > .nk-tb__in::before {
    background-color: var(--plate);
  }
}

/* ---------- the keyboard ring: 1.5 px, 2 px out. On a plain or link text button it follows the plate. ---------- */
:is(.nk-btn, .nk-tb):focus-visible {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: 2px;
}
:is(.nk-tb--plain, .nk-tb--link):focus-visible {
  outline: none;
}
:is(.nk-tb--plain, .nk-tb--link):focus-visible > .nk-tb__in::before {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: calc(-1 * var(--focus-w));
}

/* ---------- 5.3 the text field: one box, 48 high. The label is the placeholder at rest and moves up to a 12 px
   caption inside the same box. The note under the field has its line at all times, so an error moves nothing: 4 over
   the line (the note belongs to its field), and the next control stands 8 under it. ---------- */
.nk-field {
  position: relative;
  display: block;
}
.nk-field__input {
  display: block;
  width: 100%;
  min-height: var(--control-h);
  /* ring 1 + 18 + 24 + 4 + ring 1: the value sits under the caption */
  padding: 18px var(--control-pad) 4px;
  border: var(--control-ring) solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--control-field);
  font-size: max(16px, 1rem);
  line-height: 1.5rem;
  font-weight: var(--control-w);
  color: var(--text);
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.nk-field__input::placeholder {
  opacity: 0;
}
.nk-field__label {
  position: absolute;
  left: calc(var(--control-pad) + var(--control-ring));
  top: calc((var(--control-h) - 1.5rem) / 2);
  max-width: calc(100% - 2 * (var(--control-pad) + var(--control-ring)));
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: var(--control-w);
  color: var(--text-2);
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transform-origin: left top;
  transition: transform var(--t-mid) var(--ease);
}
.nk-field__input:focus + .nk-field__label,
.nk-field__input:not(:placeholder-shown) + .nk-field__label {
  max-width: calc((100% - 2 * (var(--control-pad) + var(--control-ring))) / 0.75);
  transform: translateY(-9px) scale(0.75);
}
/* focus is one line: the border turns to the text color and gains half a pixel. No outer ring, no glow. */
.nk-field__input:focus,
.nk-field__input:focus-visible {
  outline: none;
  border-color: var(--text);
  box-shadow: inset 0 0 0 calc(var(--focus-w) - 1px) var(--text);
}
.nk-field--error .nk-field__input {
  border-color: var(--alert);
}
.nk-field--error .nk-field__input:focus,
.nk-field--error .nk-field__input:focus-visible {
  border-color: var(--alert);
  box-shadow: inset 0 0 0 calc(var(--focus-w) - 1px) var(--alert);
}
@media (hover: hover) {
  .nk-field:not(.nk-field--error) .nk-field__input:hover:not(:focus) {
    border-color: var(--text-2);
  }
}
@media (forced-colors: active) {
  .nk-field__input:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
}
.nk-field__note {
  min-height: 1.25rem;
  margin-top: var(--s-1);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--text-2);
}
.nk-field__note--error {
  color: var(--alert);
}
/* the phone field: a quiet +1 stands before the number once she is in the field */
.nk-field--phone .nk-field__input {
  padding-left: 40px;
  font-variant-numeric: lining-nums tabular-nums;
}
.nk-field__prefix {
  position: absolute;
  left: calc(var(--control-pad) + var(--control-ring));
  top: calc(18px + var(--control-ring));
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: var(--control-w);
  color: var(--text-2);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.nk-field--phone:focus-within .nk-field__prefix,
.nk-field--phone:has(.nk-field__input:not(:placeholder-shown)) .nk-field__prefix {
  opacity: 1;
}
/* the date field: a native date input in the same box. Its label stays up (the browser draws the day, or its own
   empty form, under it), and the day starts on the label's edge */
.nk-field--date .nk-field__label {
  max-width: calc((100% - 2 * (var(--control-pad) + var(--control-ring))) / 0.75);
  transform: translateY(-9px) scale(0.75);
}
.nk-field--date .nk-field__input {
  text-align: left;
  cursor: pointer;
}
.nk-field--date .nk-field__input::-webkit-date-and-time-value {
  margin: 0;
  text-align: left;
}
.nk-field--date .nk-field__input::-webkit-datetime-edit {
  padding: 0;
}
/* an empty date field shows no day: Safari on a Mac draws today's date in an empty field (11/26/2026, a day before the
   range), which read as a day she picked. The card script marks the empty field (is-empty); in the focus the parts
   show, so she sees what she types */
.nk-field--date.is-empty .nk-field__input:not(:focus)::-webkit-datetime-edit,
.nk-field--date.is-empty .nk-field__input:not(:focus)::-webkit-datetime-edit-month-field,
.nk-field--date.is-empty .nk-field__input:not(:focus)::-webkit-datetime-edit-day-field,
.nk-field--date.is-empty .nk-field__input:not(:focus)::-webkit-datetime-edit-year-field,
.nk-field--date.is-empty .nk-field__input:not(:focus)::-webkit-datetime-edit-text {
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* and, empty at rest, its label rests in the middle of the box as every other field's does */
.nk-field--date.is-empty .nk-field__input:not(:focus) + .nk-field__label {
  max-width: calc(100% - 2 * (var(--control-pad) + var(--control-ring)));
  transform: none;
}

/* ---------- the mark: a --text disc with a --canvas check, in the corner of a picked option. It draws in (scale 0.7
   to 1 and opacity in --t-select) and leaves by opacity only. ---------- */
.nk-mark {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  display: grid;
  place-items: center;
  width: var(--mark);
  height: var(--mark);
  border-radius: var(--r-disc);
  background: var(--text);
  color: var(--canvas);
  pointer-events: none;
  opacity: 0;
  transform: scale(var(--mark-from));
  transition:
    opacity var(--t-leave) var(--ease),
    transform 0s linear var(--t-leave);
}
.nk-mark--sm {
  top: var(--s-1);
  left: var(--s-1);
  width: var(--mark-sm);
  height: var(--mark-sm);
}
.is-on > .nk-mark {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--t-select) var(--ease),
    transform var(--t-select) var(--ease);
}
/* autofill keeps the brand colors (no :hover here: a hover tone lives only inside the fine-pointer query, and this
   rule holds the same values at rest) */
.nk-field__input:-webkit-autofill,
.nk-field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: inset 0 0 0 100px var(--surface);
  transition: background-color 99999s;
}

/* ---------- 5.6 the card: solid, radius 24. Night has a 1 px edge, Day one soft shadow (the tokens pick). ---------- */
.nk-card {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow:
    var(--card-edge),
    var(--shadow-card);
}

/* ---------- 5.7 the Light: the one glow, inside the waitlist card. Idle is faint. Done blooms once, then holds. ---------- */
.nk-light {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.nk-light__glow {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 0;
  height: 75%;
  background: radial-gradient(55% 100% at var(--light-x, 50%) 0%, var(--glow), transparent 72%);
  opacity: var(--glow-o, 0.5);
  transition: opacity var(--t-light-fade) var(--ease);
}
.nk-light[data-level='idle'] {
  --glow-o: 0.45;
}
.nk-light[data-level='done'] {
  --glow-o: 1;
}
.nk-light[data-level='done'] .nk-light__glow {
  height: 100%;
  background: radial-gradient(70% 90% at var(--light-x, 50%) 0%, var(--glow), transparent 78%);
}
.nk-light[data-bloom] .nk-light__glow {
  animation: nk-bloom var(--t-light-bloom) var(--ease) both;
}
/* Day: the same Light, quieter (the glow token is stronger on a light ground) */
[data-theme='day'] .nk-light[data-level='idle'] {
  --glow-o: 0.22;
}
[data-theme='day'] .nk-light[data-level='done'] {
  --glow-o: 0.4;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .nk-light[data-level='idle'] {
    --glow-o: 0.22;
  }
  :root:not([data-theme]) .nk-light[data-level='done'] {
    --glow-o: 0.4;
  }
}
@keyframes nk-bloom {
  from {
    opacity: 0;
  }
  to {
    opacity: var(--glow-o, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nk-light .nk-light__glow {
    animation: none;
  }
}

/* ---------- 6 the wordmark (drawn artwork, inlined) and the icons ---------- */
.nk-wordmark {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--text);
}
/* as a link it is 24 or 28 high: its target is 48 */
a.nk-wordmark::after {
  content: '';
  position: absolute;
  inset: calc((100% - var(--target)) / 2) 0;
}
.nk-wordmark svg {
  display: block;
  width: auto;
  height: 100%;
}
.nk-wordmark .light {
  fill: var(--period);
}
@media (forced-colors: active) {
  .nk-wordmark .light {
    fill: CanvasText;
  }
}
svg.lucide {
  flex: none;
  shape-rendering: geometricPrecision;
}
svg.lucide[stroke-width='1.5'] {
  stroke-width: var(--icon-stroke);
}
svg.lucide[stroke-width='1.5'] > * {
  vector-effect: non-scaling-stroke;
}

/* The page: frame, top bar, hero, sections, footer. Steps ask the container named shell (the body), as the app does.
   Gaps come only from 4, 8, 12, 16, 20, 24, 32, 48, 64 (and 96 between sections from 860, the app's outer margin). */

/* ---------- the frame, from the app shell: one left edge for the wordmark, every headline and every card ---------- */
.page {
  --edge: clamp(16px, 13.333cqi - 32px, 32px);
  --bar-h: 48px;
  --logo-h: 24px;
  --sec-gap: 64px;
  --card-pad: 20px;
}
@container shell (min-width: 600px) {
  .page {
    /* the content is at most 1128 wide (the app Welcome measure) and centered */
    --edge: max(clamp(24px, 22.9px + 2.86cqi, 64px), (100cqi - 1128px) / 2);
    --bar-h: 72px;
    --logo-h: 28px;
    --card-pad: 24px;
  }
}
@container shell (min-width: 860px) {
  .page {
    --sec-gap: 96px;
    --card-pad: 32px;
  }
}
@container shell (min-width: 1104px) {
  .page {
    --bar-h: 84px;
  }
}
/* whole pixels, so no edge lands between two device pixels */
@supports (width: round(1px, 1px)) {
  .page {
    --edge: round(clamp(16px, 13.333cqi - 32px, 32px), 1px);
  }
  @container shell (min-width: 600px) {
    .page {
      --edge: round(max(clamp(24px, 22.9px + 2.86cqi, 64px), (100cqi - 1128px) / 2), 1px);
    }
  }
}

/* a short page (/privacy) still ends with its footer at the lower edge of the window */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.page > main {
  flex: 1 0 auto;
}

/* ---------- type that the kit file does not carry: the section headline is Display at one lower step ---------- */
.t-section {
  font-family: var(--font-display);
  font-variation-settings: var(--display-vs);
  font-weight: var(--display-w);
  font-size: 2rem;
  line-height: 2.25rem;
  letter-spacing: -0.015em;
  font-variant-numeric: lining-nums proportional-nums;
  text-wrap: balance;
}
@container shell (min-width: 600px) {
  .t-section {
    font-size: 2.5rem;
    line-height: 2.75rem;
  }
}

/* ---------- top bar: the page color, no line, a 12 px fade of the page color under it ---------- */
.bar {
  position: sticky;
  z-index: 10;
  top: 0;
  background: var(--canvas);
}
.bar::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(var(--canvas), transparent);
  pointer-events: none;
}
.bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: var(--bar-h);
  padding-inline: var(--edge);
}
.bar__logo {
  height: var(--logo-h);
}
/* the other page's link is quiet (Matt 2026-11-26: "too bold and big"): the kit's link text button, regular weight in
   the second text color, 14 on a phone and 16 from 600. Its target stays 48 by 48 (kit.css .nk-tb::after); a pointer
   or the keyboard turns its words to the text color over its plate. One loud thing per view: the wordmark and the
   filled button. It never wraps: at 320 it is 115 wide and stands 80 or more from the wordmark. */
.bar__link {
  flex: none;
  white-space: nowrap;
}
.bar__link:focus-visible {
  color: var(--text);
}
@container shell (min-width: 600px) {
  .bar__link {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}
/* the ring of the wordmark stands off the letters, with the corner of a control */
.nk-wordmark:focus-visible {
  outline-offset: 6px;
  border-radius: var(--r-control);
}
/* the skip link shows only under the keyboard: a solid plate over the wordmark's place */
.skip {
  position: absolute;
  z-index: 20;
  top: calc((var(--bar-h) - var(--control-h)) / 2);
  left: var(--edge);
  background: var(--surface-2);
  color: var(--text);
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

/* ---------- hero, under 1024: one column, the picture band first, as in the app ---------- */
.hero {
  /* what stands in the first view beside the band: the bar, 8, [band], 24, the words, 24, the card down to its
     button and 16 under it. The words are a 2 line headline, 16 and a lead of at most 3 lines:
     2 x 44 + 16 + 3 x 24 = 176 on a phone, 2 x 56 + 16 + 3 x 24 = 200 from 600 (set below).
     The card top: padding, title 32, 16, field 48, note line 32, button 48, 16 under it.
     A longer headline or lead in the copy deck moves the button down: scripts/shots.mjs prints where it is. */
  --hero-words: 176px;
  --card-top: calc(var(--card-pad) + 192px);
  --rest: calc(var(--bar-h) + 8px + 24px + var(--hero-words) + 24px + var(--card-top));
  padding: var(--s-2) var(--edge) 0;
}
/* the cleaner card shows its first field in the first view: padding, title 32, 8, line 48, 16, field 48, 16 */
.hero--cleaner,
.hero--invite {
  --card-top: calc(var(--card-pad) + 168px);
}
/* the band takes a third of the window, and gives way so the filled button stays in the first view */
.hero__media {
  height: clamp(160px, 100vh - var(--rest), min(34vh, 440px));
  height: clamp(160px, 100svh - var(--rest), min(34svh, 440px));
}
.hero--cleaner .hero__media {
  height: clamp(140px, 100vh - var(--rest), min(24vh, 320px));
  height: clamp(140px, 100svh - var(--rest), min(24svh, 320px));
}
.hero__media > .media {
  height: 100%;
}
/* the happy picture (src/js/joy.js): over the video, a cross-fade of opacity only in --t-photo (the kit's picture fade;
   0 under reduced motion, base.css). It covers the box as the video does, from its own focal point (--joy-pos of the
   data-joy attribute), so nothing shifts. While it shows, the video's control steps away. */
.hero__media .media__joy > img {
  object-position: var(--joy-pos, 50% 40%);
  opacity: 0;
  transition: opacity var(--t-photo) var(--ease);
  pointer-events: none;
}
.hero__media .media[data-joy-on] .media__joy > img {
  opacity: 1;
}
.hero__media .media[data-joy-on] > .media__ctl {
  visibility: hidden;
}
/* the words and the card: one column from 1024 (below), their own boxes in the hero flow under 1024 */
.hero__text {
  display: contents;
}
.hero__words {
  margin-top: var(--s-6);
}
.hero__lead {
  max-width: 46ch;
  margin-top: var(--s-4);
  color: var(--text-2);
}
.hero__card {
  margin-top: var(--s-6);
}
@container shell (min-width: 600px) {
  .hero {
    --hero-words: 200px;
  }
  .hero__words,
  .hero__card {
    max-width: 560px;
  }
}

/* Under 1024 the hero is one column: the band, the words, the card under the lead (at most 560 wide, on the left
   edge). Side by side from 740 the tall cleaner form left an empty block under the lead (finding wide-05). */

/* ---------- hero, from 1024: two equal columns, the words and the card left, one tall panel right. One row, in the
   middle of the window. The panel is at least its window height and grows to the text column when that is taller, so
   the two lower edges meet (findings visual-cleaners-column-edges, wide-04: at 1024x768 the card ran past a panel
   capped at the first view; now the first view cuts the panel, a normal scroll). The text column stands in the middle
   of the panel. Its card box holds the card's tallest state and the state in view fills it (card.css), so the column
   is one solid block: no void under the card (finding wide-01). ---------- */
@container shell (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-content: center;
    column-gap: var(--s-8);
    min-height: calc(100vh - var(--bar-h));
    min-height: calc(100svh - var(--bar-h));
    padding-block: var(--s-6);
  }
  .hero__media,
  .hero--cleaner .hero__media {
    grid-area: 1 / 2;
    align-self: stretch;
    display: flex;
    height: auto;
    min-height: clamp(400px, 100vh - var(--bar-h) - 96px, 760px);
    min-height: clamp(400px, 100svh - var(--bar-h) - 96px, 760px);
  }
  /* the cleaner hero: its form makes the column tall, and the photo is exactly as tall as the column (top and lower
     edges meet at every width) */
  .hero--cleaner .hero__media {
    min-height: 400px;
  }
  .hero__media > .media {
    flex: 1 1 auto;
    height: auto;
  }
  .hero__text {
    grid-area: 1 / 1;
    align-self: start;
    display: block;
    max-width: 520px;
  }
  .hero__words {
    max-width: none;
    margin-top: 0;
  }
  /* the headline box starts at its cap line, so the cap meets the panel's top edge (where text-box is known) */
  .hero__words > h1 {
    text-box: trim-start cap alphabetic;
  }
  .hero__card {
    max-width: none;
    margin-top: var(--s-7);
  }
}

/* ---------- sections: the headline first, on the left edge. Never in a card. ---------- */
.sec {
  margin-top: var(--sec-gap);
  padding-inline: var(--edge);
}
.sec__lead {
  max-width: 46ch;
  margin-top: var(--s-4);
  color: var(--text-2);
}
.sec__note {
  max-width: 60ch;
  margin-top: var(--s-6);
  color: var(--text-2);
}
.sec__head + .rows,
.sec__head + .faq,
.sec__body > .t-section + .rows,
.sec__media + .sec__body {
  margin-top: var(--s-6);
}
.sec__body + .sec__media,
.sec__head + .sec__card {
  margin-top: var(--s-7);
}
.sec__media > .media {
  aspect-ratio: 16 / 9;
}
@container shell (min-width: 600px) {
  .sec__card {
    max-width: 560px;
  }
}

/* one quiet link after the last section of a short page (the invite pages): nearer than a section, 48 */
.sec--more {
  margin-top: var(--s-8);
}

/* a list of rows: a hairline between the rows only */
.row {
  padding-block: var(--s-6);
}
.row + .row,
.faq__row + .faq__row {
  border-top: var(--hairline) solid var(--line);
}
.row:first-child {
  padding-top: 0;
}
.row:last-child {
  padding-bottom: 0;
}
.row > .t-body {
  max-width: 60ch;
  margin-top: var(--s-1);
  color: var(--text-2);
  /* a row line is one or two lines: two even lines, never a lonely last word */
  text-wrap: balance;
}

/* questions: native details, no script. The row's plate (hover, press and the keyboard ring) is the plate of a
   text button: 12 past the words on every side, radius 14. The hairlines stay on the text edge. */
.faq__q {
  --pt: var(--s-6);
  --pb: var(--s-6);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--target);
  padding-block: var(--pt) var(--pb);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__q::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: calc(var(--pt) - var(--tb-plate-x)) calc(-1 * var(--tb-plate-x)) calc(var(--pb) - var(--tb-plate-x));
  border-radius: var(--r-control);
  background-color: transparent;
  pointer-events: none;
  transition: background-color var(--t-hover) var(--ease);
}
.faq__q:active::before {
  background-color: var(--plate);
}
.faq__q:focus-visible {
  outline: none;
}
.faq__q:focus-visible::before {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: calc(-1 * var(--focus-w));
}
.faq__q > svg {
  color: var(--text-2);
  transition:
    transform var(--t-select) var(--ease),
    color var(--t-hover) var(--ease);
}
.faq__row[open] > .faq__q {
  --pb: var(--s-3);
}
.faq__row[open] > .faq__q > svg {
  transform: rotate(180deg);
}
.faq__row:first-child > .faq__q {
  --pt: 0px;
}
.faq__row:last-child:not([open]) > .faq__q {
  --pb: 0px;
}
.faq__a {
  max-width: 60ch;
  padding-bottom: var(--s-6);
  color: var(--text-2);
}
.faq__row:last-child > .faq__a {
  padding-bottom: 0;
}
@media (hover: hover) and (pointer: fine) {
  .faq__q:hover::before {
    background-color: var(--tonal);
  }
  .faq__q:hover:active::before {
    background-color: var(--plate);
  }
  .faq__q:hover > svg {
    color: var(--text);
  }
}

/* from 860: two columns, 5 and 7 of 12, and the picture changes its side from section to section */
@container shell (min-width: 860px) {
  .sec--split,
  .sec--media,
  .sec--close {
    display: grid;
    column-gap: clamp(24px, 4cqi, 48px);
  }
  .sec--split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: first baseline;
  }
  .sec--media {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }
  .sec--flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  /* the closing words stand in the middle of the card she sees: the card box is as tall as its state in view (no
     reserve, card.css), so a tall cleaner form leaves no empty block under the words (finding wide-02) */
  .sec--close {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
  .sec__head + .rows,
  .sec__head + .faq,
  .sec__media + .sec__body,
  .sec__body + .sec__media,
  .sec__head + .sec__card {
    margin-top: 0;
  }
  .sec__body > .t-section + .rows {
    margin-top: var(--s-7);
  }
  .sec__media > .media {
    aspect-ratio: 4 / 5;
  }
  .sec__card {
    justify-self: end;
    width: 100%;
    max-width: 520px;
  }
}

/* the cleaner band: one solid card, one quiet button */
.band {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: var(--card-pad);
}
.band__words > .t-body {
  margin-top: var(--s-2);
  color: var(--text-2);
}
@container shell (min-width: 600px) {
  .band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .band__go {
    flex: none;
    min-width: 200px;
  }
}

/* sections come in once: a fade and an 8 px rise. Only with script (html.js), so the page is whole without it. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--rise));
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--t-enter) var(--ease-enter),
    transform var(--t-enter) var(--ease-enter);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
.js[data-still] [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------- footer: the wordmark, then plain links. No line, no company name, no year. ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
  margin-top: var(--s-8);
  padding: 0 var(--edge) calc(var(--s-6) + env(safe-area-inset-bottom, 0px));
}
.foot__logo {
  height: 24px;
  color: var(--text-2);
}
.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-6);
}
@container shell (min-width: 860px) {
  .foot {
    margin-top: var(--s-9);
    padding-bottom: calc(var(--s-7) + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- /privacy: one text column ---------- */
.prose {
  padding: var(--s-6) var(--edge) 0;
}
.prose > * {
  max-width: 640px;
}
.prose__part {
  margin-top: var(--s-7);
}
.prose__part > .t-body {
  margin-top: var(--s-2);
  color: var(--text-2);
  /* a paragraph never ends on a lonely word or two ("we open." alone on its line at 1440). The paragraphs are one to
     three lines, so even lines read well; WebKit's "pretty" kept the two words alone. */
  text-wrap: balance;
}
@container shell (min-width: 860px) {
  .prose {
    padding-top: var(--s-8);
  }
  .prose__part {
    margin-top: var(--s-8);
  }
}

/* ---------- /film: the film in one wide panel, its line under it. One thing on the page: it stands in the middle of
   the room between the bar and the footer (on a phone the 16:9 film is short, and hung from the top it left half the
   screen empty above the footer). ---------- */
.film {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-2) var(--edge) 0;
}
.film__panel > .media {
  aspect-ratio: 16 / 9;
}
.film > .t-section {
  margin-top: var(--s-6);
}
.film__line {
  margin-top: var(--s-2);
  color: var(--text-2);
}
@container shell (min-width: 860px) {
  .film {
    padding-top: var(--s-6);
  }
  .film > .t-section {
    margin-top: var(--s-7);
  }
}

/* The waitlist card. Each state IS the card (its surface, its padding, its Light), and only the state in view is
   drawn: the card is as tall as its state, with no empty room inside it. A change of state is the zeus flow motion:
   the card edge changes at once (no height animation: the kit bans an animated height, and SPRINT2-SPEC "No height
   animation"), the old words fade out and lift 4 px on the exit curve, and the new words come after them, fade in and
   settle 4 px on the enter curve. The numbers are copied from the zeus app (READ ONLY there):
     --wl-out    120ms  --t-quick, zeus src/styles/tokens.css:158 (a part that leaves)
     --wl-in     200ms  --t-base, zeus src/styles/tokens.css:159; the 4 px settle of zeus src/kit/r4-flow.css:74-85
     --wl-after  100ms  --t-leave, zeus src/styles/tokens.css:147 (the new words wait for the old ones to go)
     --wl-settle 4px    zeus src/kit/r4-flow.css:76-80 (translate: 0 4px)
     --wl-enter  zeus src/styles/tokens.css:161 (--ease-enter), --wl-exit zeus src/styles/tokens.css:162 (--ease-exit)
   The new words move only after her own act (data-live, set by the card script): a reload that opens on "done", and
   the first paint, show the card at once. Reduced motion and ?still=1: no move, the states change at once. */
.wl {
  --wl-out: 120ms;
  --wl-in: 200ms;
  --wl-after: 100ms;
  --wl-settle: 4px;
  --wl-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --wl-exit: cubic-bezier(0.4, 0, 1, 1);
  position: relative;
  display: grid;
}
.wl__state {
  grid-area: 1 / 1;
  align-self: start;
  /* not in view: out of the flow, so the box is as tall as the state in view, and cut at that edge while it fades */
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  padding: var(--card-pad);
  border-radius: var(--r-card);
  visibility: hidden;
  transition: visibility 0s linear var(--wl-out);
}
/* the state that leaves lies over the one that comes (its words fade out on the new surface; a later state in the
   page order painted its surface over them, so the way out showed an empty card for --wl-out). It has no surface of
   its own and is inert, so a tap goes through it */
.wl__state:not(.is-on) {
  z-index: 1;
}
.wl__state.is-on {
  position: relative;
  inset: auto;
  overflow: visible;
  visibility: visible;
  background: var(--surface);
  box-shadow:
    var(--card-edge),
    var(--shadow-card);
  transition: none;
}
/* a shorter state follows: the old words go at once (they would hang under the new edge of the card) */
.wl__state.is-cut {
  visibility: hidden;
  transition: none;
}
.wl__state:not(.is-on) > .nk-light {
  display: none;
}
.wl__in {
  display: flex;
  flex-direction: column;
  min-width: 0;
  opacity: 0;
  translate: 0 calc(-1 * var(--wl-settle));
  transition:
    opacity var(--wl-out) var(--wl-exit),
    translate var(--wl-out) var(--wl-exit);
}
.wl__state.is-on > .wl__in {
  opacity: 1;
  translate: none;
  transition: none;
}
/* the words of the new state: after the old ones, a fade and a 4 px settle. Keyframes give only "from" (fill
   backwards), so no transform stays on the words at rest (zeus r4-flow.css:6-8) */
@keyframes wl-in {
  from {
    opacity: 0;
    translate: 0 var(--wl-settle);
  }
}
.wl[data-live] > .wl__state.is-on > .wl__in {
  animation: wl-in var(--wl-in) var(--wl-enter) var(--wl-after) backwards;
}
/* the old words went at once (a shorter state: they would hang under the new edge): the new ones come at once too, so
   the card is never an empty surface for a moment */
.wl[data-live][data-cut] > .wl__state.is-on > .wl__in {
  animation-delay: 0ms;
}
/* the day wish changes inside done (saved, or "Pick another day"): the part that comes settles the same way. The
   part that goes leaves at once (the card edge moves at once, and a fade would hang under it) */
.wl[data-wish-live][data-wish='saved'] .wl__saved,
.wl[data-wish-live][data-wish='pick'] .wl__pick {
  animation: wl-in var(--wl-in) var(--wl-enter) backwards;
}
@media (prefers-reduced-motion: reduce) {
  .wl__state,
  .wl__in,
  .wl__state.is-on > .wl__in {
    translate: none;
    transition: none;
  }
  .wl[data-live] > .wl__state.is-on > .wl__in,
  .wl[data-wish-live] .wl__saved,
  .wl[data-wish-live] .wl__pick {
    animation: none;
  }
}

/* In the hero from 1024 the card stands beside the tall picture. No reserve and no stretch: the card is as tall as its
   state, the text column starts at the top edge of the picture (layout.css), so the headline never moves and no empty
   room sits inside the card (Matt: "so much white space", findings wide-01). */


/* inside a state, top to bottom: title, (8, one line), 16, field with its note line, the filled button, 12, small print */
.wl__title:focus-visible {
  outline: none;
}
/* the browser's own scroll to a part of the card (a focus, the caret, a find) stops a calm 16 under the sticky bar (the
   bar's own height is the page's scroll-padding, base.css), and a field keeps its note line and 16 more over the lower
   edge (or the keys): the bar never covers a field */
.wl :is(.nk-field__input, .nk-btn, .nk-tb, .wl__title, .wl__day-name) {
  scroll-margin-top: var(--s-4);
  scroll-margin-bottom: var(--s-4);
}
.wl .nk-field__input {
  scroll-margin-bottom: calc(var(--s-1) + 1.25rem + var(--s-4));
}
.wl__body {
  margin-top: var(--s-2);
  color: var(--text-2);
}
.wl__in > .nk-field {
  margin-top: var(--s-4);
}
/* a field keeps a 20 px line for its note (4 above it). 8 more, and the next control stands 32 under the field. */
.wl__in > .nk-field + .nk-field,
.wl__in > .nk-btn {
  margin-top: var(--s-2);
}
.wl__msg {
  min-height: 0;
  margin-top: var(--s-2);
}
.wl__msg:empty {
  display: none;
}
/* a line that is not an error ("We sent a new code.") */
.wl__msg--quiet {
  color: var(--text-2);
}
.wl__legal,
.wl__noscript,
.wl__foot {
  margin-top: var(--s-3);
}
.wl__age {
  margin-top: var(--s-1);
}
/* small print holds no lonely last word */
.wl .t-caption {
  text-wrap: balance;
}
/* the words of the text button stand on the card's lower edge: its 48 px target reaches 12 into the padding */
.wl__back {
  align-self: flex-start;
  margin-bottom: calc(-1 * var(--s-3));
}
/* the bot trap: off the screen, out of the tab order */
.wl__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* the code step: its two text buttons share one line under the button (they wrap at a narrow card), and their words
   stand on the card's lower edge as the back link does */
.wl__acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: var(--s-6);
  margin-top: var(--s-3);
  margin-bottom: calc(-1 * var(--s-3));
}

/* done: two calm lines under the bloom. The customer card holds two wordings, and shows the one of her area. */
.wl__done {
  display: none;
}
.wl__done[data-reason='any'],
.wl[data-reason='pre_launch'] .wl__done[data-reason='pre_launch'],
.wl[data-reason='away'] .wl__done[data-reason='away'] {
  display: block;
}

/* ---------- the day wish, under the two lines of done (only with a live ticket: data-wish on the card) ----------
   32 of space sets it apart from "You're on the list." (no hairline: the kit keeps hairlines between list rows,
   finding phone-07): the join is done, the day is a free extra. Pick: the prompt,
   4, the hint, 16, the strip of days, 12, the Day field with its note line, 8, the filled button. Saved: the day, 4,
   the saved line, the text button on the card's lower edge. */
.wl__wish {
  display: none;
}
.wl[data-wish] .wl__wish {
  display: block;
  margin-top: var(--s-7);
}
.wl__pick,
.wl__saved {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wl[data-wish='saved'] .wl__pick,
.wl[data-wish='pick'] .wl__saved {
  display: none;
}
.wl__hint {
  margin-top: var(--s-1);
}
.wl__pick > .nk-field {
  margin-top: var(--s-2);
}
.wl__pick > .nk-btn {
  margin-top: var(--s-2);
}
/* the day is written by the script (Intl): its line is there before, so nothing moves when it comes */
.wl__day-name {
  min-height: 1.5rem;
  outline: none;
}
.wl__saved > .wl__body {
  margin-top: var(--s-1);
}
.wl__saved > .wl__back {
  margin-top: var(--s-1);
}

/* the strip of days (the zeus TimePicker strip): it runs to both card edges and scrolls inside the card. Each day
   snaps on the text edge; the part of the day before it lies under a soft start edge that ends before the text edge.
   The tiles share the strip so the last one in view is a half tile, the hint that it scrolls. */
.wl__strip {
  position: relative;
  margin: var(--s-3) calc(-1 * var(--card-pad)) 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--card-pad);
  scrollbar-width: none;
  container: wl-strip / inline-size;
  -webkit-mask-image: linear-gradient(to right, transparent calc(var(--card-pad) - var(--s-2)), black calc(var(--card-pad) - var(--s-1)));
  mask-image: linear-gradient(to right, transparent calc(var(--card-pad) - var(--s-2)), black calc(var(--card-pad) - var(--s-1)));
}
.wl__strip::-webkit-scrollbar {
  display: none;
}
/* 76 high before the days are drawn too, so the script that draws them moves nothing; room for the focus ring */
.wl__days {
  display: flex;
  gap: var(--s-2);
  width: max-content;
  min-height: 76px;
  padding: var(--s-1) var(--card-pad);
  box-sizing: content-box;
}
.wl__day {
  --in-view: 4.5;
  position: relative;
  isolation: isolate;
  display: grid;
  flex: none;
  align-content: center;
  justify-items: center;
  gap: var(--s-1);
  width: clamp(52px, calc((100cqi - var(--card-pad) - (var(--in-view) - 0.5) * var(--s-2)) / var(--in-view)), 76px);
  height: 76px;
  border-radius: var(--r-control);
  background-color: var(--surface-2);
  color: var(--text-2);
  font-variant-numeric: tabular-nums lining-nums;
  scroll-snap-align: start;
  transition:
    background-color var(--t-hover) var(--ease),
    color var(--t-select) var(--ease),
    filter var(--t-quick) var(--ease-enter);
}
@container wl-strip (min-width: 360px) {
  .wl__day {
    --in-view: 5.5;
  }
}
@container wl-strip (min-width: 460px) {
  .wl__day {
    --in-view: 6.5;
  }
}
@container wl-strip (min-width: 540px) {
  .wl__day {
    --in-view: 7.5;
  }
}
/* the --pick plate under the words: a pick changes paint only, never a size */
.wl__day::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--pick);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-select) var(--ease);
}
.wl__day.is-on {
  color: var(--text);
}
.wl__day.is-on::before {
  opacity: 1;
}
.wl__num {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
}
.wl__day > .nk-mark--sm {
  top: var(--s-1);
  right: var(--s-1);
  left: auto;
}
/* the zeus press of a tile (src/kit/r4-flow.css:11-34, and src/kit/TimePicker.css:283 "a tint, never a scale"): the
   tone goes down at once under the finger and comes back in --t-quick on the enter curve. A day never changes size */
.wl__day:active {
  filter: var(--press-tone);
  transition-duration: var(--t-hover), var(--t-select), 0ms;
}
.wl__day:focus-visible {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .wl__day:not(.is-on):hover {
    background-color: color-mix(in oklch, var(--surface-2), var(--text) 6%);
  }
}
@media (forced-colors: active) {
  .wl__day {
    outline: 1px solid CanvasText;
    outline-offset: -1px;
  }
  .wl__day.is-on {
    outline-width: 2px;
    outline-offset: -2px;
  }
}

/* A picture or a video panel. The tiny picture of the manifest is the background (a blur while the file loads), the
   picture fades in over --t-photo. No text over it, no border, no ring. */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface-2);
}
/* the tiny picture, blurred: 32 px wide, drawn as is it shows its pixels as blocks while the file loads on a slow
   phone. A soft blur reads as the photo coming into focus. Scaled a touch, so the blur has no pale rim. */
.media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tiny, none) center / cover no-repeat;
  filter: blur(16px);
  transform: scale(1.1);
}
.media img,
.media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
/* A panel whose shape changes with the window (the hero) names where its frame starts: --top is how far down the source
   the frame begins (0 to 1), --ratio is the source height over its width. A wide band shows the source from --top
   down, as far as the band reaches (the head first, then as much of the work as fits). A band that would run past the
   lower edge of the source keeps its lower edge on the source's lower edge. A tall panel shows the full height.
   The y offset: min(0, max(band height - source height, -top x source height)), source height = ratio x band width. */
.media--top {
  container-type: size;
}
.media--top img,
.media--top video {
  object-position: 50% min(0px, max(100cqh - var(--ratio) * 100cqw, -1 * var(--top) * var(--ratio) * 100cqw));
}
/* A picture under the first view fades in when its file is there, and only when script runs (html.js): without
   script it shows at once. A first-view picture (media--now) never waits for the script: it draws as its file
   arrives, over its tiny picture (finding front-03). */
.js .media:not(.media--now) img {
  opacity: 0;
  transition: opacity var(--t-photo) var(--ease);
}
.js .media:not(.media--now) img.is-loaded {
  opacity: 1;
}
/* a picture whose file failed shows its tiny picture, not the browser's broken mark; a first-view picture is never
   hidden (findings phone-01, speed-03) */
.media:not(.media--now) img.is-broken {
  visibility: hidden;
}
.media video {
  opacity: 0;
  transition: opacity var(--t-photo) var(--ease);
}
.media video.is-on {
  opacity: 1;
}

/* the one control: a solid disc, 32, 16 from the lower right corner, with a 48 target. It stands on the picture, not
   on the page, so its colors are the photo mark pair of the tokens (a dark disc and a light mark in Night and in Day):
   the page's own text color is a light disc in Night, and a light disc on a light room has no contrast (open point of
   the 5a69dd4 review). */
.media__ctl {
  position: absolute;
  z-index: 1;
  right: var(--s-4);
  bottom: var(--s-4);
  display: grid;
  place-items: center;
  width: var(--disc);
  height: var(--disc);
  border-radius: var(--r-disc);
  background: var(--mark-photo);
  color: var(--mark-photo-ink);
}
.media__ctl::after {
  content: '';
  position: absolute;
  inset: calc((var(--disc) - var(--target)) / 2);
}
/* the icon says what a tap does: pause while it plays (data-playing), else play */
.media__ctl:not([data-playing]) > .i-pause,
.media__ctl[data-playing] > .i-play {
  display: none;
}
/* the play mark sits a touch right of its box center, as every play mark does */
.media__ctl > .i-play {
  translate: 1px 0;
}
.media__ctl:focus-visible {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--canvas);
}
/* under a mouse it shows on hover or focus of the panel. On touch it always shows. */
@media (hover: hover) and (pointer: fine) {
  .media__ctl {
    opacity: 0;
    transition: opacity var(--t-hover) var(--ease);
  }
  .media:hover > .media__ctl,
  .media__ctl:focus-visible {
    opacity: 1;
  }
}

/* The film: its frame is the Night canvas, the same color as the page, so the panel draws its edge (the Night edge of
   a card; Day shows the dark film on the light page by itself). Its corner is canvas dark, so the control turns the
   photo mark pair round: a light disc with a dark mark. */
.film__panel > .media::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--card-edge);
  pointer-events: none;
}
.film__panel .media__ctl {
  z-index: 2;
  background: var(--mark-photo-ink);
  color: var(--mark-photo);
}

/* a picture that the manifest does not hold yet (local work only: check.mjs fails on it) */
.media--missing {
  background: var(--surface-2);
}

/* The action bar on the lower edge (src/partials/sticky.html, src/js/sticky.js): the page color, one hairline on top,
   the line in the caption style on the left, the one filled button on the right (from 600 the kit's 240 px least
   width of a filled button). On a phone it is 64 px (the hairline and 7, the 48 px button, 8) plus the safe area. Its
   sides follow the page edge (--edge of .page): the partial goes inside .page. Off: inert, one bar height down and clear. On: it slides in on the enter curve
   (transform and opacity only, the --t-base step of --wl-in); it goes on the exit curve (--t-quick, the step of
   --wl-out). Reduced motion and ?still=1: it changes at once. It sits over the page and under nothing. */
.sticky {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  /* the hairline is part of the 64: 7 + 1 on top */
  padding: calc(var(--s-2) - var(--hairline)) var(--edge, var(--s-4)) calc(var(--s-2) + env(safe-area-inset-bottom, 0px));
  background: var(--canvas);
  border-top: var(--hairline) solid var(--line);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--t-quick) var(--ease-exit),
    opacity var(--t-quick) var(--ease-exit),
    visibility 0s linear var(--t-quick);
}
.sticky.is-on {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition:
    transform var(--t-base) var(--ease-enter),
    opacity var(--t-base) var(--ease-enter),
    visibility 0s;
}
.sticky__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-width: 0;
}
.sticky__line {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  text-wrap: balance;
}
.sticky__btn {
  flex: none;
  width: auto;
}
@media (prefers-reduced-motion: reduce) {
  .sticky,
  .sticky.is-on {
    transition: none;
  }
}
[data-still] .sticky,
[data-still] .sticky.is-on {
  transition: none;
}

/* ---------- the share step in done (card-wish.html): a hairline, the prompt, the quiet text button, the polite
   line that says the link is copied ---------- */
.wl__share {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: var(--hairline) solid var(--line);
}
.wl__share[hidden] {
  display: none;
}
.wl__share > .wl__back {
  margin-top: var(--s-1);
}
.wl__share-say {
  margin-top: var(--s-4);
}
.wl__share-say:empty {
  display: none;
}
/* the line of done when the day wish could not go on (the ticket ended): under the join words */
.wl__gone {
  margin-top: var(--s-2);
}
.wl__gone:empty {
  display: none;
}

/* The swipe pictures of the home page (NEA-132): the headline, one strip of three photos, the hint on a touch screen.
   On a phone the strip runs to both page edges and each photo takes 82 of the line, so the next one peeks; the first
   photo stands on the page edge under the headline (scroll-padding = the page edge). From 860 the three stand side by side
   on the measure. The strip scrolls inside itself: the page never moves
   sideways, and a swipe at the end of the strip does not hand over to the page (overscroll-behavior). */
.gal > .t-section + .gal__strip {
  margin-top: var(--s-6);
}
.gal__strip {
  display: flex;
  gap: var(--s-3);
  margin-inline: calc(-1 * var(--edge));
  padding-left: var(--edge);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  /* the focus ring of the strip lies inside its box: the box runs to the window edge */
  outline: none;
}
.gal__strip::-webkit-scrollbar {
  display: none;
}
/* the room after the last photo: one page edge with the gap before it (a flex end padding is not in the scroll area
   of every browser). The photo widths come from the shell width, so they do not lean on the strip padding. */
.gal__strip::after {
  content: '';
  flex: none;
  width: calc(var(--edge) - var(--s-3));
}
.gal__strip:focus-visible {
  box-shadow: inset 0 0 0 var(--focus-w) var(--focus);
  border-radius: var(--r-card);
}
.gal__slide {
  flex: none;
  width: calc(0.82 * (100cqi - 2 * var(--edge)));
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  scroll-snap-align: start;
}
.gal__hint {
  margin-top: var(--s-3);
}
/* a mouse and a trackpad: no "swipe" words */
@media (hover: hover) and (pointer: fine) {
  .gal__hint {
    display: none;
  }
}
@container shell (min-width: 600px) {
  .gal__strip {
    gap: var(--s-4);
  }
  .gal__slide {
    width: calc((100cqi - 2 * var(--edge) - var(--s-4)) / 2);
  }
  .gal__strip::after {
    width: calc(var(--edge) - var(--s-4));
  }
}
@container shell (min-width: 860px) {
  .gal__strip {
    gap: var(--s-6);
  }
  .gal__slide {
    width: calc((100cqi - 2 * var(--edge) - 2 * var(--s-6)) / 3);
  }
  .gal__strip::after {
    width: calc(var(--edge) - var(--s-6));
  }
}
