/*
 * The site is painted from the same tokens as the product — see docs/look.md, which is the
 * authority. Two rules from that document carry over and are not a matter of taste here
 * either: the neutrals are neutral rather than blue-tinted, and there is no coloured bloom.
 * A 26px glow is what makes a colour read as neon, and this product deliberately is not.
 *
 * The palette in the app is measured against the bar composited over a white document. That
 * problem does not exist here — the page owns its own background — so these are ordinary
 * contrast ratios against #05090c, all comfortably past WCAG AA.
 */
:root {
  --bg: #05090c;
  --panel: #0b1116;
  --fg: #e6e4e0; /* not #fff: maximum contrast on a dark surface halates */
  --dim: #c2bfba;
  --dimmer: #b2afaa;
  --line: rgba(192, 188, 182, 0.22);
  --line-soft: rgba(192, 188, 182, 0.12);
  --accent: #63d9ff; /* the identity mark, same as the orb */
  --live: #3df0a6;
  --off: #ff5566;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  /* A single wide, very soft wash rather than a gradient with a visible seam. */
  background-image: radial-gradient(1200px 600px at 50% -10%, rgba(99, 217, 255, 0.06), transparent 70%);
  background-repeat: no-repeat;
}

/* ------------------------------------------------------------------ the bar */

/*
 * A nod to the product's own bar rather than a copy of it: same near-opaque ground, same
 * hairline, same order of marks. Someone who has seen the app should recognise this.
 */
.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 9, 12, 0.9);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(18px);
}

.mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.wordmark {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.platform {
  margin-left: auto;
  font-size: 12px;
  color: var(--dimmer);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- the hero */

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 22px 80px;
}

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line-soft);
}

h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 650;
}

.lede {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--dim);
  margin: 0 0 36px;
  max-width: 62ch;
}

/* ------------------------------------------------------------------ the gate */

/*
 * Fixed minimum height across all three states. The button is the only thing on the page
 * anyone came for, and having it jump as sign-in resolves is the cheapest possible way to
 * make a page feel broken.
 */
.gate {
  min-height: 118px;
}

.stage[hidden] {
  display: none;
}

.primary {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 600;
  color: #05090c;
  background: var(--fg);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, transform 120ms ease;
}

.primary:hover:not(:disabled) {
  background: #fff;
}

.primary:active:not(:disabled) {
  transform: translateY(1px);
}

.primary:disabled {
  background: transparent;
  color: var(--dimmer);
  border-color: var(--line);
  cursor: default;
}

.primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.g {
  width: 18px;
  height: 18px;
  flex: none;
}

.meta {
  font-weight: 400;
  font-size: 13px;
  color: rgba(5, 9, 12, 0.62);
  font-family: var(--mono);
}

.why {
  margin: 13px 0 0;
  font-size: 13px;
  color: var(--dimmer);
  max-width: 54ch;
}

.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--dim);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.link:hover {
  color: var(--fg);
}

/*
 * Faults get the product's own "everything off" red, and they get it as ink on a tinted
 * block rather than as bare coloured text — the same reason the app's OFF annunciator is a
 * block: it survives being glanced at.
 */
.fault {
  margin: 16px 0 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 85, 102, 0.4);
  border-radius: 4px;
  background: rgba(255, 85, 102, 0.1);
  color: #ffd0d5;
  font-size: 14px;
  max-width: 60ch;
}

/* ---------------------------------------------------------------- the prose */

.plain {
  padding: 48px 0 8px;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

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

article {
  padding: 20px 21px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--panel);
}

h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 9px;
  color: var(--fg);
}

article p {
  margin: 0;
  font-size: 14.5px;
  color: var(--dim);
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--dim);
  max-width: 68ch;
}

.steps li {
  margin-bottom: 9px;
}

.steps strong,
article strong {
  color: var(--fg);
  font-weight: 600;
}

kbd {
  font-family: var(--mono);
  font-size: 12px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  white-space: nowrap;
}

em {
  font-style: normal;
  color: var(--fg);
}

/* ---------------------------------------------------------------- the footer */

footer {
  border-top: 1px solid var(--line-soft);
  padding: 24px 22px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--dimmer);
}

.sep {
  margin: 0 8px;
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
