/* ─────────────────────────────────────────────────────────────
   Shopfloor marketing site.

   The page is built like the thing it sells: ruled rows, a mono
   gutter carrying labels, and the product's own indigo used once
   per screen. Amber and green appear only as work states — never
   as decoration — so a colour on this page means the same thing
   it means on the board.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper:    #f6f7f9;
  --card:     #ffffff;
  --ink:      #12161f;
  --ink-2:    #55607a;
  --ink-3:    #838da3;
  --rule:     #dfe3ea;
  --rule-2:   #eceff4;
  --indigo:   #3f76ff;
  --indigo-soft: #ecf1ff;
  --amber:    #d97706;
  --green:    #0f9d63;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;

  --gutter: 88px;
  --pad: 32px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:  #0d1015;
    --card:   #141922;
    --ink:    #e7eaf1;
    --ink-2:  #8b96ae;
    --ink-3:  #6b7690;
    --rule:   #242b38;
    --rule-2: #1b212b;
    --indigo: #6e93ff;
    --indigo-soft: #17203a;
    --amber:  #f0a63c;
    --green:  #3ec98c;
  }
}

/* The viewer's own toggle wins over the OS in both directions. */
:root[data-theme="dark"] {
  --paper:  #0d1015;
  --card:   #141922;
  --ink:    #e7eaf1;
  --ink-2:  #8b96ae;
  --ink-3:  #6b7690;
  --rule:   #242b38;
  --rule-2: #1b212b;
  --indigo: #6e93ff;
  --indigo-soft: #17203a;
  --amber:  #f0a63c;
  --green:  #3ec98c;
}
:root[data-theme="light"] {
  --paper:  #f6f7f9;
  --card:   #ffffff;
  --ink:    #12161f;
  --ink-2:  #55607a;
  --ink-3:  #838da3;
  --rule:   #dfe3ea;
  --rule-2: #eceff4;
  --indigo: #3f76ff;
  --indigo-soft: #ecf1ff;
  --amber:  #d97706;
  --green:  #0f9d63;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

:where(a, button):focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── the sheet ─────────────────────────────────────────────── */

.sheet {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Every band is a ruled row with a mono label set into the rule,
   the way a rota sheet names its columns down the left edge. */
.band {
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr);
  gap: 0 28px;
  padding: 64px 0;
  border-top: 1px solid var(--rule);
}

.band__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 5px;
}

.band__body > * + * { margin-top: 18px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }

h1 {
  font-size: clamp(38px, 6.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 680;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 660;
  max-width: 20ch;
}

h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 640;
}

.lede {
  font-size: clamp(17px, 2vw, 19.5px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}

p { margin: 0; max-width: 62ch; }
.muted { color: var(--ink-2); }
.small { font-size: 14.5px; }

/* ── masthead ──────────────────────────────────────────────── */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 660;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* The board mark: three columns of cards, one of them the accent.
   Filled from the tokens so it inverts with the page. */
.mark__ground { fill: var(--ink); }
.mark__card { fill: var(--paper); }
.mark__card--accent { fill: var(--indigo); }

.masthead__status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── hero ──────────────────────────────────────────────────── */

.hero { padding-top: 46px; padding-bottom: 12px; border-top: 0; }
.hero .band__label { padding-top: 12px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 620;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--indigo);
  border-color: transparent;
  color: #fff;
}
.btn--primary:hover { border-color: transparent; opacity: 0.92; }

/* ── the board fragment ────────────────────────────────────── */

.board {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
  margin-top: 30px;
}

.board__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid var(--rule-2);
}

.row:first-of-type { border-top: 0; }

.row__key {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.row__title {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row__who {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}

.pip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* The three states, drawn the way the product draws them: an empty ring,
   a half-filled one, a full one. Half-filled reads as "started" without
   needing a legend. */
.dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; }
.dot--todo { color: var(--ink-3); }
.dot--doing {
  color: var(--amber);
  background: conic-gradient(currentColor 0 50%, transparent 50%);
}
.dot--done { color: var(--green); background: currentColor; }

/* Rows arrive the way a list loads — once, on entry, then still. */
.row { animation: row-in 0.5s ease both; }
.row:nth-of-type(1) { animation-delay: 0.05s; }
.row:nth-of-type(2) { animation-delay: 0.12s; }
.row:nth-of-type(3) { animation-delay: 0.19s; }
.row:nth-of-type(4) { animation-delay: 0.26s; }
.row:nth-of-type(5) { animation-delay: 0.33s; }

@keyframes row-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .row { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ── the zero ──────────────────────────────────────────────── */

.zero {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

/* Set in the sans, not the mono: at this size a slashed zero reads as Ø,
   and the one number that carries the argument has to be unmistakable. */
.zero__figure {
  font-size: clamp(96px, 17vw, 168px);
  line-height: 0.78;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
}

.zero__caption {
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 22ch;
}

.plans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.plans-table th,
.plans-table td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--rule-2);
}

.plans-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
}

.plans-table th:last-child,
.plans-table td:last-child {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  padding-right: 0;
}

.plans-table tr[data-highlight] td { color: var(--indigo); font-weight: 600; }

.note {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 58ch;
  padding-left: 16px;
  border-left: 2px solid var(--rule);
}

/* ── steps ─────────────────────────────────────────────────── */

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

.step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--rule-2);
}

.step:first-child { border-top: 0; padding-top: 4px; }

.step__n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

.step p { margin-top: 5px; color: var(--ink-2); font-size: 15px; }

.code-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--indigo-soft);
  color: var(--indigo);
}

/* ── feature list ──────────────────────────────────────────── */

.features { display: grid; gap: 0; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 17px 0;
  border-top: 1px solid var(--rule-2);
}
.feature:first-child { border-top: 0; }
.feature p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }

/* ── pricing ───────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.plan {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan__name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.plan__price {
  font-size: 34px;
  font-weight: 660;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plan__price span { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

.plan__seats { font-size: 15px; color: var(--ink-2); }
.plan__year { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.plan[data-featured] { border-color: var(--indigo); }

/* ── faq ───────────────────────────────────────────────────── */

.qa { border-top: 1px solid var(--rule-2); padding: 18px 0; }
.qa:first-child { border-top: 0; }
.qa p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* ── footer ────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--rule);
  padding: 40px 0 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: baseline;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-2);
}

.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

.foot__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── narrow ────────────────────────────────────────────────── */

@media (max-width: 720px) {
  :root { --pad: 20px; }

  .band {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 44px 0;
  }

  .band__label { padding-top: 0; }
  .row { grid-template-columns: 16px minmax(0, 1fr); }
  .row__who { display: none; }
  h2 { max-width: none; }

  /* "in review" is the part that's news. The venue can go. */
  .masthead__where { display: none; }
}

/* ── site chrome (multi-page) ──────────────────────────────── */

.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { min-height: 36px; padding: 0 14px; font-size: 14px; color: #fff; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

.crumbs { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-3); padding-top: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ── article pages ─────────────────────────────────────────── */

.article { max-width: 760px; padding: 18px 0 64px; }
.article h1 { font-size: clamp(32px, 4.8vw, 48px); line-height: 1.06; margin-top: 10px; }
.article .answer { font-size: clamp(17px, 2vw, 19px); color: var(--ink); line-height: 1.55; margin-top: 18px; max-width: 62ch; }
.article h2 { font-size: clamp(22px, 2.8vw, 28px); max-width: none; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--rule); }
.article h3 { margin-top: 26px; }
.article p, .article ul, .article ol { margin-top: 12px; }
.article ul, .article ol { padding-left: 20px; max-width: 62ch; }
.article li + li { margin-top: 6px; }
.article p, .article li { color: var(--ink-2); }
.article strong { color: var(--ink); font-weight: 620; }
.article a:not(.btn) { color: var(--indigo); text-underline-offset: 2px; }
.article .faq { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--rule); }
.article .faq h2 { margin-top: 0; padding-top: 0; border-top: 0; }

.byline { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; }
.byline time { font-variant-numeric: tabular-nums; }

.callout {
  border: 1px solid var(--rule); border-left: 3px solid var(--indigo);
  background: var(--card); border-radius: 8px; padding: 14px 16px; margin-top: 18px;
  font-size: 15px; color: var(--ink-2); max-width: 66ch;
}
.callout strong { color: var(--ink); }

.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule-2); }
table.data thead th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td { color: var(--ink-2); }
table.data td:first-child { color: var(--ink); font-weight: 560; }
table.data tr[data-us] td { background: var(--indigo-soft); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.shot { margin: 22px 0 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.shot figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

.cta {
  margin-top: 40px; padding: 22px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.cta p { margin: 0; color: var(--ink); font-weight: 560; }

.plan__list { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.plan__list li + li { margin-top: 4px; }

.related { margin-top: 40px; display: grid; gap: 10px; }
.related a { color: var(--indigo); }

@media (max-width: 720px) {
  .nav { gap: 12px; font-size: 14px; }
  .nav .nav__extra { display: none; }
  .masthead { flex-wrap: wrap; }
}
