/*
  crm4smb — holding page
  ----------------------------------------------------------------------------
  Palette is drawn from the subject rather than a template: the deep teal-black
  of enamelled desk equipment, a patinated copper for the one warm note, and a
  signal teal for the thing that is working. Neither neutral is pure grey —
  both carry a few degrees of the teal so they read as chosen.

  Typography is a system stack on purpose, not as a fallback. A holding page
  that pulls a webfont spends its entire load budget on 40 words, and the CSP
  here forbids third-party origins anyway. Hierarchy comes from size, weight
  and tracking instead.
*/

:root {
  --ink:      #0e2630;
  --ink-soft: #3d555c;
  --muted:    #67797d;
  --paper:    #f2f5f4;
  --card:     #ffffff;
  --line:     #d5dedc;
  --signal:   #11706c;
  --copper:   #a9633c;

  --measure: 34rem;
  --step: clamp(1rem, 0.6rem + 1.4vw, 1.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:      #e7efed;
    --ink-soft: #a8bcbb;
    --muted:    #7d9392;
    --paper:    #0a1b21;
    --card:     #112a31;
    --line:     #22434b;
    --signal:   #43b3a8;
    --copper:   #d28b5e;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* The page composites over whatever the browser paints, so this is set
     explicitly rather than inherited. */
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* One outer wrapper owns the side gutter, so nothing below can collapse it. */
.page {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.5rem;
  padding-block: clamp(3.5rem, 12vh, 7rem);
  display: flex;
  flex-direction: column;
  gap: var(--step);
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 650;
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 32rem;
}

/* ------------------------------------------------------------ ring cadence */

.cadence {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-block: 0.5rem;
}

.cadence span {
  display: block;
  height: 100%;
  width: 34%;
  background: var(--signal);
  /* 2s travelling, 4s dark — the North American ring cadence. */
  animation: ring 6s linear infinite;
}

@keyframes ring {
  0%              { transform: translateX(-100%); opacity: 1; }
  33.333%         { transform: translateX(294%);  opacity: 1; }
  33.334%, 100%   { transform: translateX(294%);  opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cadence span { animation: none; transform: none; width: 34%; }
}

/* ------------------------------------------------------------------ status */

.status {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 1.25rem;
}

.status li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.7rem;
  align-items: baseline;
}

.status strong { font-weight: 600; font-size: 0.9375rem; }

.status .note {
  grid-column: 2;
  font-size: 0.875rem;
  color: var(--muted);
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--line);
  /* Nudged down so a round dot sits on the text baseline rather than above it. */
  transform: translateY(-0.1em);
}

.dot--done { background: var(--signal); }
.dot--now  { background: var(--copper); }

/* -------------------------------------------------------------------- foot */

.foot {
  margin: 0;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.foot a { color: var(--signal); }

a:focus-visible, :focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

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