/* Design tokens. The five status colours are fixed by the product spec:
   red = urgent, orange = high, yellow = normal, green = done, blue = cancelled. */
:root {
  --urgent: #d92d20;
  --high:   #f79009;
  --normal: #eaaa08;
  --done:   #12b76a;
  --closed: #2e90fa;

  --ink:      #101828;
  --ink-soft: #667085;
  --surface:  #ffffff;
  --page:     #f7f8fa;
  --line:     #e4e7ec;
  --brand:    #1f4e79;

  --space: clamp(1rem, 0.7rem + 1.5vw, 2rem);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
  /* Site phones are held in gloves and sunlight — bias large. */
  font-size: 18px;
  line-height: 1.5;
  display: grid;
  place-items: center;
  padding: var(--space);
  padding-block-end: calc(var(--space) + env(safe-area-inset-bottom));
}

.shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: calc(var(--space) * 1.5);
  width: min(100%, 30rem);
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
  color: var(--brand);
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0.25rem 0 1.75rem;
  color: var(--ink-soft);
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--page);
  border-radius: calc(var(--radius) - 4px);
  font-size: 1rem;
}

.dot {
  inline-size: 0.75rem;
  block-size: 0.75rem;
  border-radius: 50%;
  flex: none;
  background: var(--ink-soft);
}

.dot[data-state="checking"] { background: var(--normal); }
.dot[data-state="ok"]       { background: var(--done); }
.dot[data-state="error"]    { background: var(--urgent); }

.phase {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
