/* MapKraken — plush register.
 *
 * Every colour in this file is a token from ../../../../docs/design/design-tokens.md,
 * vendored into tokens.css by `node build.js --sync-assets`. There is no hex
 * literal here and `build.js --check` (check 6) fails the build if one appears:
 * design-tokens.md §1 — "do not hand-edit a hex value in this document", and a
 * stylesheet is the same document with a different extension.
 *
 * ⬛ Type FAMILY is DB-05's and is not decided here. tokens.css binds the scale,
 * the leadings and tabular figures with the family left on the system stack in
 * one declaration. Binding a family is one line.
 * 🔴 When it lands it must be SELF-HOSTED. 22-F8: the trust page publishes, as a
 * checked fact, that there is no font CDN anywhere in the shipped product.
 */

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

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

body {
  margin: 0;
  font-family: var(--mk-type-family-text);
  font-size: var(--mk-type-size-md);
  line-height: var(--mk-type-leading-normal);
  color: var(--mk-text-body);
  background: var(--mk-surface-page);
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--mk-text-link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: none;
  box-shadow: var(--mk-focus-ring);
  border-radius: var(--mk-radius-sm);
}

.skip {
  position: absolute;
  left: -9999px;
  top: var(--mk-space-2);
  background: var(--mk-surface-page);
  padding: var(--mk-space-2) var(--mk-space-4);
  border-radius: var(--mk-radius-md);
  z-index: 10;
}
.skip:focus { left: var(--mk-space-4); }

h1, h2, h3 {
  font-family: var(--mk-type-family-display);
  color: var(--mk-text-primary);
  line-height: var(--mk-type-leading-tight);
  margin: 0 0 var(--mk-space-4);
  text-wrap: balance;
}
h1 { font-size: var(--mk-type-size-4xl); letter-spacing: var(--mk-type-tracking-tight); }
h2 { font-size: var(--mk-type-size-2xl); letter-spacing: var(--mk-type-tracking-tight); }
h3 { font-size: var(--mk-type-size-lg); }
p  { margin: 0 0 var(--mk-space-4); }

/* The masthead is sticky, so an in-page anchor must clear it. */
[id] { scroll-margin-top: var(--mk-space-9); }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--mk-space-5);
}

.band { padding-block: var(--mk-space-9); }
.band--tight { padding-block: var(--mk-space-7); }
.band--parchment { background: var(--mk-surface-parchment); color: var(--mk-color-deep-ink); }
.band--parchment h1,
.band--parchment h2,
.band--parchment h3 { color: var(--mk-color-deep-ink); }
.band--ink { background: var(--mk-surface-brand); color: var(--mk-color-parchment); }
.band--ink h2, .band--ink h3 { color: var(--mk-color-parchment); }
.band--ink a { color: var(--mk-color-mist-teal); }
.band--raised { background: var(--mk-surface-raised); }

.eyebrow {
  font-size: var(--mk-type-size-2xs);
  letter-spacing: var(--mk-type-tracking-wide);
  text-transform: uppercase;
  font-weight: var(--mk-type-weight-semibold);
  color: var(--mk-text-secondary);
  margin: 0 0 var(--mk-space-3);
}
.band--ink .eyebrow { color: var(--mk-color-mist-teal); }
.band--parchment .eyebrow { color: var(--mk-color-kraken-purple); }

.lede { font-size: var(--mk-type-size-lg); color: var(--mk-text-body); max-width: 62ch; }
.band--ink .lede,
.band--parchment .lede { color: inherit; }

/* ── Pre-release notice ─────────────────────────────────────────────────── */

.notice {
  background: var(--mk-color-deep-ink);
  color: var(--mk-color-parchment);
  font-size: var(--mk-type-size-sm);
  line-height: var(--mk-type-leading-snug);
  padding-block: var(--mk-space-2);
  text-align: center;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.masthead {
  border-bottom: 1px solid var(--mk-border-subtle);
  background: var(--mk-surface-page);
  position: sticky;
  top: 0;
  z-index: 5;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mk-space-5);
  padding-block: var(--mk-space-3);
}
.masthead__logo { display: inline-flex; }
/* 200 px is lockup-horizontal.svg's stated minimum — brand-assets §7.2. */
.masthead__logo img { width: 200px; display: block; }

.masthead nav > ul {
  display: flex;
  align-items: center;
  gap: var(--mk-space-5);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--mk-type-size-sm);
  font-weight: var(--mk-type-weight-medium);
}
.masthead nav a { color: var(--mk-text-secondary); text-decoration: none; }
.masthead nav a:hover { color: var(--mk-text-link); text-decoration: underline; }
.masthead nav a[aria-current="page"] { color: var(--mk-text-primary); }

/* The Products menu exists with one item in it on purpose: a nav that reads
 * "Territory Mapper" has to be rebuilt when product two ships; a nav that reads
 * "Products" has to be appended to. Brand system §1. */
.menu { position: relative; }
.menu > button {
  font: inherit;
  color: var(--mk-text-secondary);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--mk-space-1);
}
.menu > button:hover { color: var(--mk-text-link); }
.masthead nav .menu__panel {
  position: absolute;
  top: calc(100% + var(--mk-space-3));
  left: 50%;
  translate: -50% 0;
  min-width: 260px;
  background: var(--mk-surface-page);
  border: 1px solid var(--mk-border-default);
  border-radius: var(--mk-radius-lg);
  box-shadow: var(--mk-elevation-3);
  padding: var(--mk-space-2);
  list-style: none;
  margin: 0;
  display: none;
}
.masthead nav .menu[data-open="true"] .menu__panel { display: block; }
.menu__panel a {
  display: block;
  padding: var(--mk-space-3);
  border-radius: var(--mk-radius-md);
  text-decoration: none;
  color: var(--mk-text-primary);
}
.menu__panel a:hover { background: var(--mk-surface-chrome); }
.menu__panel small { display: block; color: var(--mk-text-secondary); font-weight: var(--mk-type-weight-regular); }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { background: var(--mk-surface-parchment); color: var(--mk-color-deep-ink); overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--mk-space-8);
  align-items: center;
  padding-block: var(--mk-space-9);
}
.hero h1 {
  color: var(--mk-color-deep-ink);
  font-size: var(--mk-type-size-4xl);
  max-width: 18ch;
}
.hero p { color: var(--mk-color-deep-ink); }

/* THE LOCKUP. hero-lockup.svg carries the mark, the creature and the wordmark
 * and deliberately carries NO text — its own <desc> says why. The tagline is
 * set immediately below it, in the same visual field, which is the whole rule
 * in brand system §3.1. Do not move one without the other. */
.lockup { text-align: center; }
.lockup img { width: min(100%, 440px); margin-inline: auto; display: block; }
.lockup__tagline {
  font-family: var(--mk-type-family-display);
  font-size: var(--mk-type-size-xl);
  line-height: var(--mk-type-leading-tight);
  color: var(--mk-color-kraken-purple);
  /* brand-assets §7.4: one clear-space unit below the wordmark's baseline. */
  margin: var(--mk-space-4) 0 0;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.actions { display: flex; flex-wrap: wrap; gap: var(--mk-space-3); margin-top: var(--mk-space-6); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--mk-space-2);
  font-size: var(--mk-type-size-md);
  font-weight: var(--mk-type-weight-semibold);
  padding: var(--mk-space-3) var(--mk-space-5);
  border-radius: var(--mk-radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--mk-motion-fast) var(--mk-motion-ease),
              color var(--mk-motion-fast) var(--mk-motion-ease);
}
/* n-000 on kraken-purple = 6.40:1, AA. design-tokens.md §4.1. */
.btn--primary { background: var(--mk-action-primary-bg); color: var(--mk-action-primary-text); }
.btn--primary:hover { background: var(--mk-color-deep-ink); }
.btn--ghost {
  background: transparent;
  color: var(--mk-color-deep-ink);
  border-color: var(--mk-color-deep-ink);
}
.btn--ghost:hover { background: var(--mk-color-deep-ink); color: var(--mk-color-parchment); }
.band--ink .btn--ghost { color: var(--mk-color-parchment); border-color: var(--mk-color-parchment); }
.band--ink .btn--ghost:hover { background: var(--mk-color-parchment); color: var(--mk-color-deep-ink); }

/* ── Cards and grids ────────────────────────────────────────────────────── */

.grid { display: grid; gap: var(--mk-space-5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--mk-surface-page);
  border: 1px solid var(--mk-border-subtle);
  border-radius: var(--mk-radius-lg);
  padding: var(--mk-space-5);
  box-shadow: var(--mk-elevation-1);
}
.card h3 { margin-bottom: var(--mk-space-2); }
.card p { margin: 0; color: var(--mk-text-secondary); }

.icon {
  width: 32px;
  height: 32px;
  display: block;
  margin-bottom: var(--mk-space-4);
  color: var(--mk-color-kraken-purple);
}

/* Numbered steps. The number is the display face's only other job on this page. */
.step__n {
  font-family: var(--mk-type-family-display);
  font-size: var(--mk-type-size-2xl);
  font-weight: var(--mk-type-weight-bold);
  color: var(--mk-color-pale-lavender);
  line-height: 1;
}
.step h3 { margin: var(--mk-space-3) 0 var(--mk-space-2); }
.step p { color: var(--mk-text-secondary); margin: 0; }

/* ── Differentiators ────────────────────────────────────────────────────── */

.diff {
  background: var(--mk-surface-raised);
  border: 1px solid var(--mk-border-default);
  border-left: 4px solid var(--mk-color-kraken-purple);
  border-radius: var(--mk-radius-lg);
  padding: var(--mk-space-6);
}
.diff h3 { font-size: var(--mk-type-size-xl); }
.diff p { margin: 0; }

/* ── Product card and roadmap ───────────────────────────────────────────── */

.product-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: var(--mk-space-5);
  align-items: center;
  background: var(--mk-surface-page);
  border: 1px solid var(--mk-border-default);
  border-radius: var(--mk-radius-lg);
  padding: var(--mk-space-5);
  box-shadow: var(--mk-elevation-2);
  text-decoration: none;
}
.product-card:hover { box-shadow: var(--mk-elevation-3); }
/* The badge is raster; 96 px keeps it above the size its detail survives. */
.product-card img { width: 96px; }
.product-card h3 { margin: 0 0 var(--mk-space-1); }
.product-card p { margin: 0; color: var(--mk-text-secondary); }

.pill {
  display: inline-block;
  font-size: var(--mk-type-size-2xs);
  letter-spacing: var(--mk-type-tracking-wide);
  text-transform: uppercase;
  font-weight: var(--mk-type-weight-semibold);
  padding: var(--mk-space-1) var(--mk-space-3);
  border-radius: var(--mk-radius-full);
  background: var(--mk-color-mist-teal);
  color: var(--mk-color-deep-ink);
}

.roadmap { list-style: none; margin: var(--mk-space-6) 0 0; padding: 0; display: grid; gap: var(--mk-space-3); }
.roadmap li {
  display: flex;
  gap: var(--mk-space-4);
  align-items: baseline;
  padding: var(--mk-space-3) 0;
  border-top: 1px solid var(--mk-border-subtle);
  color: var(--mk-text-secondary);
}
.roadmap strong { color: var(--mk-text-primary); min-width: 15ch; }

/* ── Pricing ────────────────────────────────────────────────────────────── */

.quote-inputs { list-style: none; margin: var(--mk-space-6) 0 0; padding: 0; display: grid; gap: var(--mk-space-4); }
.quote-inputs li { border-left: 2px solid var(--mk-color-pale-lavender); padding-left: var(--mk-space-4); }
.quote-inputs strong { display: block; color: var(--mk-text-primary); }
.quote-inputs span { color: var(--mk-text-secondary); }

.footnote { font-size: var(--mk-type-size-sm); color: var(--mk-text-secondary); }
.band--ink .footnote { color: var(--mk-color-pale-lavender); }

/* ── Spec table ─────────────────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--mk-type-size-sm);
  font-variant-numeric: var(--mk-type-numeric-tabular);
}
th, td { text-align: left; padding: var(--mk-space-3) var(--mk-space-4); border-bottom: 1px solid var(--mk-border-subtle); vertical-align: top; }
th { font-weight: var(--mk-type-weight-semibold); color: var(--mk-text-primary); white-space: nowrap; }

/* ── Limits ─────────────────────────────────────────────────────────────── */

.limits { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--mk-space-3); }
.limits li { padding-left: var(--mk-space-5); position: relative; color: var(--mk-text-secondary); }
.limits li::before { content: "—"; position: absolute; left: 0; color: var(--mk-color-sea-teal-deep); }

/* ── Contact ────────────────────────────────────────────────────────────── */

/* ⛔ H-18. There is no security/contact mailbox. Until there is, the build
 * emits no mailto: (check 11) and this block renders in its place. The
 * publication gate in build.js refuses --publish while it is showing. */
.gate {
  border: 2px dashed var(--mk-color-warning);
  border-radius: var(--mk-radius-lg);
  padding: var(--mk-space-5);
  background: var(--mk-surface-raised);
  color: var(--mk-text-body);
}
.gate h3 { color: var(--mk-color-warning); }
.gate code { font-family: var(--mk-type-family-mono); font-size: var(--mk-type-size-xs); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.colophon { background: var(--mk-surface-inverse); color: var(--mk-color-parchment); padding-block: var(--mk-space-8); }
.colophon a { color: var(--mk-color-mist-teal); }
.colophon__top { display: flex; flex-wrap: wrap; gap: var(--mk-space-7); justify-content: space-between; align-items: flex-start; }
/* wordmark.svg's floor is 120 px wide — brand-assets §7.2. The footer is
 * chrome, so it takes the wordmark and not the character. */
.colophon__mark img { width: 160px; display: block; }
.colophon nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--mk-space-2); font-size: var(--mk-type-size-sm); }
.colophon__legal {
  margin-top: var(--mk-space-7);
  padding-top: var(--mk-space-5);
  border-top: 1px solid var(--mk-color-n-700);
  font-size: var(--mk-type-size-sm);
  color: var(--mk-color-pale-lavender);
  display: flex;
  flex-wrap: wrap;
  gap: var(--mk-space-5);
  justify-content: space-between;
}

/* The Salesforce partner badge sits BESIDE the MapKraken mark and is never
 * locked up with it — brand-assets misuse rule 7, and the badge's own
 * clear-space rule (Partner Branding Guidelines p.9). Minimum 80 px wide,
 * unaltered, never inverted. The slot is empty by design: the badge is ours to
 * place and not ours to draw or store. See assets/partner-badge/README.md. */
.partner-slot { min-width: 80px; }

/* ── 404 ────────────────────────────────────────────────────────────────── */

.lost { text-align: center; padding-block: var(--mk-space-9); }
.lost img { width: min(100%, 280px); margin-inline: auto; display: block; }
.lost h1 { font-size: var(--mk-type-size-5xl); margin-top: var(--mk-space-6); }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: var(--mk-space-7); }
  .lockup { order: -1; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  h1, .hero h1 { font-size: var(--mk-type-size-3xl); }
  h2 { font-size: var(--mk-type-size-xl); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .band { padding-block: var(--mk-space-7); }
  .masthead .wrap { flex-wrap: wrap; }
  .masthead__logo img { width: 200px; }
  .product-card { grid-template-columns: 64px 1fr; }
  .product-card > :last-child { grid-column: 1 / -1; }
}

/* The product name, set as TEXT. It replaced a drawn-lettering image when that
   lettering was retired on 2026-08-11; sized to sit where the image sat so the
   hero's rhythm is unchanged. */
.product-name {
  font-size: var(--mk-type-size-3xl);
  line-height: var(--mk-type-leading-tight);
  letter-spacing: var(--mk-type-tracking-tight);
  color: var(--mk-color-deep-ink);
  margin: 0 0 var(--mk-space-5);
}
