/* Mise marketing site.
 *
 * Same tokens as the product, loaded from the same symlinked files. A marketing
 * site that does not look like the product it sells is a promise the first
 * screenshot breaks.
 *
 * No framework, no build step. The whole job is to load fast and say true
 * things, and one less toolchain is one less thing to keep green.
 */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-ui, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--sp-5); }

/* ------------------------------------------------------------------ nav -- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface-0);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: 60px;
}

.site-brand {
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  text-decoration: none;
}

.site-brand span {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: var(--sp-2);
}

.site-nav a.navlink {
  color: var(--ink-700);
  text-decoration: none;
  font-size: var(--text-md);
  padding: var(--sp-2) 0;
  border-bottom: 2px solid transparent;
}
.site-nav a.navlink:hover { color: var(--ink-900); border-bottom-color: var(--line-strong); }
.site-nav a.navlink[aria-current="page"] { color: var(--accent-700); border-bottom-color: var(--accent-600); }

/* The one action in the nav. Not a brand flourish: this is the only link on the
 * site that leads anywhere other than another page of it, and until 2026-10-03
 * the thing in this slot was "Sign in" pointing at a development build (D-262).
 * It has to read as the action and not as a sixth navigation item.
 *
 * It comes AFTER the .navlink rules on purpose. `.site-nav a.navlink-strong` and
 * `.site-nav a.navlink` have IDENTICAL specificity, so source order is the only
 * thing that decides whose `border` wins -- move this block up and the pill
 * silently loses its border to .navlink's `border-bottom: 2px solid transparent`.
 *
 * NOT MEASURED: there is no browser on this machine, so this has never been
 * seen rendered and the contrast of --on-accent on --accent-600 has not been
 * computed here. The pair is the design system's own action pairing, used by
 * .cta below. */
.site-nav a.navlink-strong {
  color: var(--on-accent);
  background: var(--accent-600);
  border: 1px solid var(--accent-600);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  font-weight: 600;
  white-space: nowrap;
}
.site-nav a.navlink-strong:hover {
  color: var(--on-accent);
  background: var(--accent-700);
  border-color: var(--accent-700);
}

.nav-spacer { flex: 1; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------------- type -- */

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink-900); }
h1 { font-size: 40px; font-weight: 680; }
h2 { font-size: 26px; font-weight: 660; }
h3 { font-size: var(--text-lg); font-weight: 640; }
p  { margin: 0; }

.lede { font-size: var(--text-lg); color: var(--ink-700); line-height: 1.55; max-width: 62ch; }
.muted-text { color: var(--ink-500); }
.eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-600);
  font-weight: 600;
}

/* --------------------------------------------------------------- layout -- */

section { padding: var(--sp-8) 0; }
section + section { border-top: 1px solid var(--line); }

.stack-lg > * + * { margin-top: var(--sp-6); }
.stack-md > * + * { margin-top: var(--sp-4); }
.stack-sm > * + * { margin-top: var(--sp-2); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-5); }

.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.card-accent { border-color: var(--accent-500); }

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

.hero { padding: var(--sp-8) 0; }
.hero h1 { max-width: 20ch; margin-bottom: var(--sp-5); }

.btn-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }

.cta {
  display: inline-block;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  background: var(--accent-600);
  color: var(--surface-0);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-md);
  border: 1px solid var(--accent-600);
}
.cta:hover { background: var(--accent-700); border-color: var(--accent-700); }

.cta-quiet {
  background: transparent;
  color: var(--accent-700);
  border-color: var(--line-strong);
}
.cta-quiet:hover { background: var(--surface-2); color: var(--accent-700); }

/* ---------------------------------------------------- the market table --- */

.market-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.market-table th, .market-table td {
  text-align: left;
  padding: var(--sp-3);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.market-table th { color: var(--ink-500); font-weight: 600; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.06em; }
.market-table td:first-child { font-weight: 600; }
.market-table .mark-yes { color: var(--ok-600); font-weight: 700; }
.market-table .mark-no  { color: var(--ink-300); }
.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------------- the label ---- */

.label-demo {
  background: var(--surface-0);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: var(--sp-5);
  max-width: 360px;
}
.label-demo .ing { line-height: 1.7; }
.label-demo em {
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------- quotes -- */

.pull {
  border-left: 3px solid var(--accent-600);
  padding-left: var(--sp-5);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink-900);
  max-width: 56ch;
}

.finding {
  font-size: var(--text-xs);
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}

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

.site-foot {
  border-top: 1px solid var(--line);
  padding: var(--sp-8) 0;
  color: var(--ink-500);
  font-size: var(--text-sm);
  background: var(--surface-sunken);
}
.site-foot a { color: var(--ink-700); text-decoration: none; }
.site-foot a:hover { color: var(--accent-700); text-decoration: underline; }

.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-6); }
.foot-title { font-weight: 650; color: var(--ink-900); margin-bottom: var(--sp-2); }

/* --------------------------------------------------------------- 360px -- */

@media (max-width: 720px) {
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .site-nav .wrap { gap: var(--sp-3); overflow-x: auto; }
  .site-nav a.navlink { white-space: nowrap; }
  section { padding: var(--sp-6) 0; }
}
