/*
 * 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;
}

/*
 * Links inside body copy.
 *
 * The page had no anchor styling at all until the setup steps needed to point at Google's and
 * Anthropic's key consoles — so any link added here would have rendered in the browser's default
 * blue on a #05090c background, which is both wrong and close to unreadable. The accent is the
 * same cyan as the orb; the underline is the hairline rule rather than a text-decoration so it
 * sits below the baseline instead of cutting through the descenders.
 */
.steps a,
.steps-note a,
article a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.steps a:hover,
.steps-note a:hover,
article a:hover {
  border-bottom-color: var(--accent);
}

/* The way back to the start screen. Quieter than a step, because it is not one. */
.steps-note {
  margin: 14px 0 0;
  max-width: 68ch;
  font-size: 14px;
  color: var(--dim);
}

.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;
  }
}

/* ===================================================================== *
 * The pricing page.
 *
 * Reuses the landing page's shell — the same bar, the same `.plain` sections, the same
 * `.grid` — because it is the same site and a second visual language for a second page is
 * how a two-page site starts looking like two products. Everything below is what pricing
 * needs and the landing page does not.
 * ===================================================================== */

/* The wordmark is a link here, and has to not look like one. */
.home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

/*
 * "These prices are not final", above the numbers.
 *
 * Deliberately loud. A quiet disclaimer under a price is a disclaimer nobody reads, and the
 * difference between a placeholder and a misrepresentation is whether the reader knew before
 * they started planning around it.
 */
.notice {
  margin: 0 0 22px;
  max-width: 62ch;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #f0d9b0;
  background: rgba(255, 176, 58, 0.08);
  border: 1px solid rgba(255, 176, 58, 0.4);
  border-radius: 3px;
}
.notice strong {
  color: #ffb03a;
}

/*
 * Three plans in one row, where the four explanation cards elsewhere sit two-by-two.
 *
 * A narrower minimum than `.grid`, and only here: three plans breaking to 2+1 reads as one of
 * them having been added late, and a price row is the place on a site where the eye compares
 * across rather than down. Still `auto-fit`, so it stacks on a phone like everything else.
 */
.grid--plans {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.plan {
  display: flex;
  flex-direction: column;
}
/* The one being sold. A border rather than a scale or a shadow: this page is read on a laptop
   in a browser, and a card that is physically bigger than its neighbours breaks the row. */
.plan--lead {
  border-color: rgba(61, 240, 166, 0.4);
}
.plan .primary {
  /* Pushed to the bottom so the three buttons line up however long the prose above them is. */
  margin-top: auto;
  align-self: flex-start;
}
.price {
  margin: 4px 0 12px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #eef2f4;
}
/* The blank where a decided number goes. Visible as a blank on purpose — an invented figure
   in a placeholder is the thing somebody screenshots. */
.tbc {
  color: #7f8c93;
  letter-spacing: 0.06em;
}
.per {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #8b979d;
}
