/* Guides + module landing pages.
   Extends styles.css — every colour, font and space below is a token already
   defined there. Nothing here introduces a new palette value. */

.guide { padding: calc(var(--bay) * 0.55) 0 var(--bay); }
.guide__shell { max-width: 72ch; }

.guide__crumb {
  font-size: var(--t-sm);
  color: var(--steel);
  margin-bottom: 1.25rem;
}
.guide__crumb a { color: var(--rust-ink); }
.guide__crumb span { margin: 0 0.4rem; color: var(--line); }

.guide h1 {
  font-size: var(--t-2xl);
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.guide__lede {
  font-size: var(--t-lg);
  color: var(--ink);
  margin-top: 1rem;
  max-width: 58ch;
  text-wrap: pretty;
}

.guide__meta {
  margin-top: 0.9rem;
  font-size: var(--t-sm);
  color: var(--steel);
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

/* ── numbered steps ─────────────────────────────────────────────────────── */
/* Counter rather than default markers so the number can sit in the gutter at
   a size that reads as structure, not decoration. */

.guide__steps {
  list-style: none;
  counter-reset: step;
  margin: 2.5rem 0 0;
  padding: 0;
}

.guide__steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  padding-bottom: 1.9rem;
}

.guide__steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.25rem;
  text-align: right;
  font-size: var(--t-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--rust-ink);
}

/* The spine. Stops at the last step rather than trailing into nothing. */
.guide__steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.08rem;
  top: 1.9rem;
  bottom: 0.35rem;
  width: 1px;
  background: var(--line);
}

.guide__steps h2 {
  font-size: var(--t-base);
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: 0;
  margin: 0 0 0.35rem;
}

.guide__steps p { margin: 0; color: var(--steel); }
.guide__steps b { color: var(--ink); font-weight: 700; }

/* ── the troubleshooting block ──────────────────────────────────────────── */

.guide__notes {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.guide__notes h2 {
  font-size: var(--t-base);
  font-weight: 700;
  margin: 0 0 0.9rem;
}
.guide__notes ul { margin: 0; padding-left: 1.1rem; }
.guide__notes li { color: var(--steel); margin-bottom: 0.7rem; }
.guide__notes li:last-child { margin-bottom: 0; }
.guide__notes b { color: var(--ink); }

.guide__ask, .guide__back { margin-top: 2rem; font-size: var(--t-sm); color: var(--steel); }
.guide__ask a, .guide__back a { color: var(--rust-ink); }

/* ── index ──────────────────────────────────────────────────────────────── */

.guide-cols {
  margin-top: 3rem;
  display: grid;
  gap: 3rem;
}
@media (min-width: 62rem) {
  .guide__shell:has(.guide-cols) { max-width: 92ch; }
  .guide-cols { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

.guide-col > h2 { font-size: var(--t-xl); font-stretch: 108%; letter-spacing: -0.015em; }
.guide-col > p { color: var(--steel); margin-top: 0.4rem; font-size: var(--t-sm); }

.guide-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.guide-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.guide-list a { text-decoration: none; flex: 1; }
.guide-list__title {
  display: block;
  font-weight: 700;
  color: var(--ink);
}
.guide-list a:hover .guide-list__title { color: var(--rust-ink); }
.guide-list__lede {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--t-sm);
  color: var(--steel);
}
.guide-list__mins {
  flex: none;
  font-size: var(--t-xs);
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}

/* ── module landing pages ───────────────────────────────────────────────── */

.lander__shell { max-width: 74ch; }

.lander__kicker {
  font-size: var(--t-sm);
  font-weight: 650;
  color: var(--rust-ink);
  letter-spacing: 0.01em;
}

.lander h1 { margin-top: 0.5rem; }

.lander__sub {
  font-size: var(--t-lg);
  margin-top: 1.1rem;
  max-width: 56ch;
  color: var(--steel);
  text-wrap: pretty;
}

.lander__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.lander__cta-note { font-size: var(--t-sm); color: var(--steel); }

.lander__pain {
  margin: 3rem 0 0;
  padding: 1.5rem 1.75rem;
  border-left: 0;
  background: var(--deep);
  color: var(--ink-on-deep);
  border-radius: var(--r-lg);
}
.lander__pain p { color: var(--ink-on-deep); margin: 0; font-size: var(--t-lg); text-wrap: pretty; }
.lander__pain p + p { margin-top: 0.9rem; color: var(--steel-dim); font-size: var(--t-base); }

.lander h2 {
  font-size: var(--t-xl);
  font-stretch: 108%;
  letter-spacing: -0.015em;
  margin: 3rem 0 1rem;
}

.lander__does { list-style: none; margin: 0; padding: 0; }
.lander__does li {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}
.lander__does b { display: block; font-weight: 700; color: var(--ink); }
.lander__does span { display: block; margin-top: 0.25rem; color: var(--steel); }

/* A recorded clip of the product under "How it works". Framed like .pcard so it
   reads as the app itself rather than an ad. The clip is square, so it's capped:
   full column width would push the list below it off a laptop screen. */
.lander__video {
  margin: 0 0 1.5rem;
  max-width: 30rem;
  border: 1px solid var(--line-deep);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--deep);
}
.lander__video video { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }

.lander__with {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.lander__with ul { margin: 0.75rem 0 0; padding-left: 1.1rem; }
.lander__with li { color: var(--steel); margin-bottom: 0.55rem; }
.lander__with li:last-child { margin-bottom: 0; }
.lander__with b { color: var(--ink); }

.lander__proof {
  margin-top: 1.25rem;
  font-size: var(--t-sm);
  color: var(--steel);
}

.lander__foot-cta {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* ── module lander hero — a bespoke product shot per module ──────────────── */
/* Full-bleed dark band (a touch lighter than --deep so the product panel it
   carries reads as a recessed screen), the pitch above, the real thing below. */
.lhero {
  background: var(--deep-raised);
  color: var(--ink-on-deep);
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
.lhero__pitch { max-width: 60ch; }
/* The module name is the orientation on an ad destination — make it a real
   title, not a whisper above a slogan. */
.lhero .lander__kicker {
  color: var(--rust-bright);
  font-size: var(--t-lg);
  font-variation-settings: 'wdth' 100, 'wght' 700;
  margin-bottom: 0.45rem;
}
.lhero__h1 {
  font-size: var(--t-3xl);
  color: #fff;
  max-width: 18ch;
  margin-top: 0.6rem;
}
.lhero__sub {
  font-size: var(--t-lg);
  margin-top: 1.3rem;
  max-width: 54ch;
  color: var(--steel-dim);
  line-height: 1.6;
  text-wrap: pretty;
}
.lhero .lander__cta { margin-top: 1.9rem; }
.lhero .lander__cta-note { color: var(--steel-dim); }
/* The rota panel lifts off the band with a soft shadow + hairline. */
.lhero__rota {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  box-shadow: 0 24px 70px oklch(0 0 0 / 0.45);
  border: 1px solid var(--line-deep);
}

/* A generic product panel for the other module heroes — HACCP checks, leave
   requests, the onboard-once flow, a training certificate. One dark screen-like
   card echoing the app, so each module SHOWS the thing rather than describing it.
   Semantic status colours (green/amber) here are STATE, distinct from the blue
   brand accent — same rule as the app. */
.lhero__panel {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 70px oklch(0 0 0 / 0.45);
  max-width: 60rem;
}
.pcard {
  background: var(--deep);
  border: 1px solid var(--line-deep);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--ink-on-deep);
  font-size: var(--t-sm);
}
.pcard__bar, .pcard__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.6rem 0.85rem; flex-wrap: wrap;
  padding: 0.95rem 1.15rem;
  background: var(--deep-raised);
}
.pcard__bar  { border-bottom: 1px solid var(--line-deep); }
.pcard__foot { border-top: 1px solid var(--line-deep); color: var(--steel-dim); }
.pcard__title { font-variation-settings: 'wdth' 100, 'wght' 650; }
.pcard__title span {
  display: block; margin-top: 0.15rem;
  font-size: var(--t-xs); color: var(--steel-dim);
  font-variation-settings: 'wdth' 100, 'wght' 400;
}
.pcard__row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.75rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--line-deep);
}
.pcard__rows > .pcard__row:first-child { border-top: 0; }
.pcard__row b { font-variation-settings: 'wdth' 100, 'wght' 620; }
.pcard__row .muted { color: var(--steel-dim); }
.pcard__spacer { flex: 1 1 0.5rem; }
.pdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.pdot--ok   { background: var(--status-pass); }
.pdot--warn { background: var(--status-warn); }
.ppill {
  font-size: var(--t-xs); white-space: nowrap;
  font-variation-settings: 'wdth' 100, 'wght' 620;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--line-deep); color: var(--steel-dim);
}
.ppill--ok   { color: var(--status-pass); border-color: color-mix(in oklab, var(--status-pass) 45%, transparent); background: color-mix(in oklab, var(--status-pass) 15%, transparent); }
.ppill--warn { color: var(--status-warn); border-color: color-mix(in oklab, var(--status-warn) 52%, transparent); background: color-mix(in oklab, var(--status-warn) 17%, transparent); }
.ppill--info { color: var(--rust-bright); border-color: color-mix(in oklab, var(--rust-bright) 45%, transparent); background: color-mix(in oklab, var(--rust-bright) 14%, transparent); }
.pcard__flow { padding: 0.95rem 1.15rem; border-top: 1px solid var(--line-deep); display: grid; gap: 0.65rem; }
.pcard__flow > .muted { color: var(--steel-dim); font-size: var(--t-xs); }
.pcard__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Secondary link out of a suite card to its full page. Sits under the primary
   CTA — someone ready to sign up shouldn't have to step past a "read more". */
.suite-card__more {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: var(--t-sm);
  color: var(--rust-ink);
}

/* Live-usage ticker. Absent until build-ticker.mjs decides the numbers are
   true, so this may style nothing for a while — that is intended. */
.venues__ticker {
  margin: 0;
  font-size: var(--t-lg);
  color: var(--ink-on-deep);
}
.venues__ticker b { color: var(--rust-bright); font-variant-numeric: tabular-nums; }
.venues__asof {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: var(--t-xs);
  color: var(--steel-dim);
}

/* Legal documents. Long-form, table-heavy, read once under pressure. */
.doc .guide__shell { max-width: 78ch; }
.doc h1 { margin-top: 0.5rem; }
.doc h2 { font-size: var(--t-xl); font-stretch: 108%; letter-spacing: -0.015em; margin: 2.5rem 0 0.75rem; }
.doc h3 { font-size: var(--t-lg); font-weight: 700; margin: 1.75rem 0 0.5rem; }
.doc p  { color: var(--steel); margin: 0 0 1rem; }
.doc strong { color: var(--ink); }
.doc ul { margin: 0 0 1.25rem; padding-left: 1.15rem; }
.doc li { color: var(--steel); margin-bottom: 0.5rem; }
.doc blockquote {
  margin: 1.25rem 0; padding: 1rem 1.25rem;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--steel);
}
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.doc code { font-size: 0.9em; background: var(--bg-raised); padding: 0.1em 0.35em; border-radius: var(--r-sm); }
/* Wide tables scroll inside their own box; the page never scrolls sideways. */
.doc-table { overflow-x: auto; margin: 0 0 1.5rem; }
.doc-table table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.doc-table th { background: var(--bg-raised); color: var(--ink); font-weight: 700; }
.doc-table td { color: var(--steel); }
