/* CrewEarned: a floor measured in square metres. Slab grey ground, chalk-line blue, hi-vis for the one action. */
:root {
  color-scheme: light;
  --slab: #e9ebe5;
  --sheet: #fbfcf9;
  --ink: #14222a;
  --mute: #48585f;
  --line: #c6ccc4;
  --control: #6b7a80;
  --chalk: #1c47c4;
  --hivis: #ddf247;
  --hold: #a23b12;
  --hold-bg: #fbe9df;
  --ok: #1f6b45;
  --ok-bg: #e1f1e7;
  --warn: #7a5200;
  --warn-bg: #fbefc9;
  --deep: #14222a;
  --deep-mute: #b4c3c9;
  --gap: clamp(3.5rem, 8vw, 6.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--slab); color: var(--ink); font: 400 1.0625rem/1.55 Archivo, "Helvetica Neue", Arial, sans-serif; }
.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 30; }
.skip:focus { top: 8px; }
a { color: var(--chalk); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--hivis); }

h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.35rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; line-height: 1; }
h1 em { font-style: normal; color: var(--chalk); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; font-stretch: 108%; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
.intro { font-size: 1.2rem; color: var(--mute); margin-top: .9rem; max-width: 34em; }
.fine { font-size: .875rem; color: var(--mute); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .7rem 1.4rem; background: var(--hivis); color: var(--ink); border: 2px solid var(--ink); border-radius: 3px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover:not(:disabled) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { background: var(--line); color: var(--mute); border-color: var(--control); box-shadow: none; cursor: not-allowed; }
.btn-small { min-height: 2.75rem; padding: .35rem .9rem; font-size: .95rem; box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; }
.link { font-weight: 650; display: inline-flex; align-items: center; min-height: 2.75rem; }

.top { position: sticky; top: 0; z-index: 20; background: var(--slab); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.word { font-size: 1.35rem; font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; color: var(--ink); text-decoration: none; margin: 0; }
.word span { color: var(--chalk); }
.tag { font-size: .8rem; font-weight: 650; border: 1px solid var(--control); border-radius: 99px; padding: .1rem .65rem; color: var(--mute); white-space: nowrap; }
.top nav { margin-left: auto; display: flex; gap: 1.5rem; }
.top nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 550; }
.top nav a:hover { text-decoration: underline; }

.hero { padding-block: clamp(1.5rem, 3vw, 2.25rem) var(--gap); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 33rem); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; position: sticky; top: 7rem; padding-block: 1rem; }
.kicker { font-weight: 700; background: var(--ink); color: #fff; padding: .25rem .7rem; font-size: .9rem; }
.lead { font-size: 1.25rem; max-width: 30em; background: var(--slab); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

.demo { margin: 0; background: var(--sheet); border: 2px solid var(--ink); border-radius: 4px; padding: clamp(1rem, 2vw, 1.35rem); display: grid; gap: .7rem; box-shadow: 10px 10px 0 rgb(20 34 42 / .14); }
.demo h2 { font-size: 1.3rem; }
.demo .fine { font-size: .8rem; line-height: 1.4; }
.demo figcaption p { font-size: .95rem; color: var(--mute); margin-top: .3rem; }
.slider { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .1rem 1rem; }
.slider label { font-weight: 650; }
.slider output { font-size: 1.7rem; font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.slider input { grid-column: 1 / -1; width: 100%; height: 2.25rem; margin: 0; accent-color: var(--chalk); cursor: pointer; }

.floor { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; min-height: 5rem; }
.floor i { aspect-ratio: 2.8; background: #dde1da; border-radius: 1px; position: relative; overflow: hidden; }
.floor i::before, .floor i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transition: transform .25s ease; }
.floor i::before { background: var(--chalk); transform: scaleX(var(--today-end, 0)); }
.floor i::after { background: var(--ink); transform: scaleX(var(--before, 0)); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .875rem; }
.legend li { display: flex; align-items: center; gap: .4rem; }
.legend i { width: .85rem; height: .85rem; background: #dde1da; border: 1px solid var(--control); }
.legend .k-before { background: var(--ink); }
.legend .k-today { background: var(--chalk); }
.legend b { font-variant-numeric: tabular-nums; }

.flag { line-height: 1.4; padding: .5rem .8rem; border: 2px dashed var(--hold); background: var(--hold-bg); font-size: .95rem; min-height: 3.9rem; }
.flag b { color: var(--hold); }
.flag[data-state="ok"] { border: 2px solid var(--ok); background: var(--ok-bg); }
.flag[data-state="ok"] b { color: var(--ok); }

.pay { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.pay th, .pay td { padding: .35rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.pay th[scope="row"] { font-weight: 650; }
.pay td { color: var(--mute); padding-inline-start: .5rem; }
.pay td:last-child { text-align: right; color: var(--ink); font-weight: 650; }
.pay tfoot th, .pay tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; }
.pay tfoot td { font-size: 1.5rem; font-weight: 800; }

main > section:not(.hero) { padding-block: var(--gap); }
.band { background: var(--sheet); border-block: 1px solid var(--line); }
.moments { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.moments li { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.moments li:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.moments p { margin-top: .5rem; color: var(--mute); }

.steps { list-style: none; counter-reset: step; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.steps li { counter-increment: step; border-top: 4px solid var(--chalk); padding-top: 1rem; display: flex; flex-direction: column; gap: .65rem; }
.steps li::before { content: counter(step); font-size: 2.6rem; font-weight: 800; font-stretch: 118%; line-height: 1; color: var(--chalk); }
.steps li > p:not(.chip) { color: var(--mute); }
.chip { margin-top: auto; font-size: .85rem; font-weight: 600; background: var(--sheet); border: 1px solid var(--control); border-radius: 3px; padding: .6rem .7rem; font-variant-numeric: tabular-nums; }
.chip-hold { background: var(--hold-bg); border: 2px dashed var(--hold); color: var(--hold); }
.chip-done { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split > div > p + p { margin-top: 1rem; }
.dark { background: var(--deep); color: #fff; }
.dark .intro { color: var(--deep-mute); }
.ticks, .crosses { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; }
.ticks li, .crosses li { position: relative; padding-left: 1.8rem; }
.ticks li::before { content: ""; position: absolute; left: .25rem; top: .3em; width: .4rem; height: .75rem; border: solid var(--chalk); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.dark .ticks li::before { border-color: var(--hivis); }
.crosses li::before { content: ""; position: absolute; left: .1rem; top: .7em; width: .9rem; height: 3px; background: var(--hold); }

.slip { margin: 0 auto; width: min(100%, 24rem); background: var(--sheet); color: var(--ink); border-radius: 18px; padding: 1.25rem; border: 6px solid #3a4b54; }
.slip figcaption { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.2rem; font-weight: 750; }
.slip figcaption span { font-size: .75rem; font-weight: 600; color: var(--mute); }
.slip ul { list-style: none; margin: 1rem 0; padding: 0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.slip li { display: flex; justify-content: space-between; gap: .75rem; padding: .75rem .5rem; border-top: 1px solid var(--line); }
.slip li b, .slip li em { display: block; }
.slip li em { font-style: normal; font-weight: 650; color: var(--hold); margin-top: .3rem; }
.slip .queried { background: var(--hold-bg); }
.slip > p { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: .75rem; }
.slip > p b { font-size: 1.5rem; }

.scroll { overflow-x: auto; margin-top: 2.5rem; margin-bottom: 1rem; }
.compare { width: 100%; border-collapse: collapse; background: var(--sheet); font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: .9rem 1rem; border: 1px solid var(--line); text-align: left; }
.compare thead th { background: var(--ink); color: #fff; border-color: var(--ink); }
.state { display: inline-block; padding: .15rem .6rem; border-radius: 3px; font-weight: 650; font-size: .9rem; }
.ok { background: var(--ok-bg); color: var(--ok); }
.bad { background: var(--hold-bg); color: var(--hold); }
.warn { background: var(--warn-bg); color: var(--warn); }

.lists { display: grid; gap: 2.5rem; }
.lists .ticks, .lists .crosses { margin-top: 1rem; }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 2rem; border-top: 2px solid var(--ink); }
summary { cursor: pointer; font-weight: 650; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font-size: 1.6rem; color: var(--chalk); }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 1.25rem; color: var(--mute); max-width: 38em; }

.pilot { background: var(--hivis); }
.pilot .intro, .pilot .fine { color: var(--ink); }
.pilot .split > div > .fine { margin-top: 2rem; }
.pilot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pilot-copy { display: grid; gap: 1rem; }
.pilot-copy .intro, .pilot-copy .ticks { margin: 0; }
.pilot .ticks li::before { border-color: var(--ink); }
.pilot a { color: var(--ink); }
.booking { display: grid; gap: 1.5rem; }
.cal { position: relative; min-height: 8rem; overflow: hidden; background: var(--sheet); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 10px 10px 0 var(--ink); }
.cal[data-loading] { min-height: 34rem; }
#cal-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; text-align: center; }
footer { background: var(--deep); color: var(--deep-mute); padding-block: 2.5rem; font-size: .9rem; }
footer .word { color: #fff; margin-bottom: .5rem; }
footer .word span { color: var(--hivis); }
footer a { color: #fff; display: inline-block; padding: .4rem .2rem; }

.doc { max-width: 760px; padding-block: 2.5rem 4rem; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .75rem; }
.doc h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
.doc p + p, .doc ul + p { margin-top: .75rem; }

@media (max-width: 960px) {
  .hero-grid, .split, .pilot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { position: static; }
  .demo { width: 100%; max-width: 36rem; justify-self: center; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .moments, .steps { grid-template-columns: minmax(0, 1fr); }
  .moments li:nth-child(even) { padding-left: 0; border-left: 0; }
  .hero { padding-top: 1.5rem; }
  .lead { font-size: 1.1rem; }
  .actions { width: 100%; gap: .5rem; }
  .actions .btn { width: 100%; }
  .top-row { gap: .6rem; }
  .word { font-size: 1.15rem; }
  .pay td { font-size: .85rem; }
  .compare th, .compare td { padding: .6rem; font-size: .9rem; }
}
@media (pointer: coarse), (max-width: 960px) { .slider input { height: 2.75rem; } }
@media (max-width: 420px) { .tag { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
