/* The Marketing Site holding page.
 *
 * There is no build step here, so the design system arrives as literals rather
 * than as an import of `apps/web/app/tokens.css`. Only the five roles this page
 * actually uses are declared, each named against its origin in `docs/design.md`
 * — copying all 66 primitives to spend five of them would invite drift for no
 * benefit. If this site ever grows a build, these become real token imports.
 */

/* Inter, self-hosted. One variable file covers 400 and 700, which are the only
 * two weights `docs/design.md` defines — "there is no medium-weight heading and
 * no light weight anywhere". Latin only; this page is English. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  --color-surface: #ffffff;
  --color-ink: #0c1839; /* brand-slate-950 */
  --color-ink-muted: #3d4a6b; /* brand-slate-800 */
  --color-action-text: #5945bb; /* brand-purple-700 */
  --color-ink-subtle: #6b7399; /* brand-slate-600 — 4.63:1 on surface, clears AA */
  --color-line-focus: #6e5ae1; /* brand-purple-600 — design.md: "a focus ring is meaningful UI" */

  /* design.md Typography: Inter is the interface, every heading and sentence. */
  --font-sans:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  /* An unthemed page flashes white before the stylesheet lands; both layers
   * carry the ground so there is nothing to flash. */
  background-color: var(--color-surface);
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 20px; /* design.md spacing steps 10 and 5 */
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
}

/* The logo. The mark's height drives the lockup; the wordmark is set to a
 * fraction of it so the two scale together on one clamp rather than two. */
.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px; /* step 6 */
}

.mark {
  height: clamp(72px, 14vw, 104px);
  width: auto;
}

.wordmark {
  height: clamp(26px, 5vw, 38px);
  width: auto;
  color: var(--color-ink);
  animation: compliro-wordmark-in 200ms cubic-bezier(0.4, 0, 0.2, 1) 500ms both;
}

/* The wordmark arrives as the last arc lands: up 8px and in, over 200ms.
 * The keyframe and its timing are #67's `compliro-intro-wordmark`, transcribed
 * from `apps/web/app/globals.css` rather than shared — `packages/brand` holds
 * no code, and this page has no bundler to import CSS through. The mark's own
 * animation and its reduced-motion handling travel inside the inlined SVG.
 */
@keyframes compliro-wordmark-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* design.md Caption: 12/16, weight 700, uppercase. The scale says text below
 * 14px is "caption only, never a sentence a user has to read to act" — a status
 * label is exactly that, and the action lives further down the page. */
.status {
  margin: 24px 0 0; /* step 6 */
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-subtle);
}

.lede {
  /* design.md Body large: 18/28, weight 400. Left flat rather than scaled up
   * on wide viewports, because the scale has no 400-weight step above 18 and
   * "if a value is not on the scale, the design is wrong or the scale needs a
   * ticket". The logo carries the visual weight here instead. */
  margin: 12px 0 0; /* step 3 — the eyebrow above carries the gap from the logo */
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: var(--color-ink-muted);
  text-wrap: balance;
}

.contact {
  margin: 32px 0 0; /* step 8 */
  font-size: 16px; /* design.md Body, 16/24/400 */
  line-height: 24px;
}

.contact a {
  color: var(--color-action-text);
  /* Body weight 400: there is no 16/700 style on the scale. The colour and the
   * underline carry the affordance without inventing a step. */
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  border-radius: 4px;
}

.contact a:hover {
  text-decoration-thickness: 2px;
}

.contact a:focus-visible {
  outline: 2px solid var(--color-line-focus);
  outline-offset: 3px;
  text-decoration: none;
}

/* The entrance is the one brand moment on this page. Reduced motion renders
 * its final frame — nothing fades, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  .wordmark {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
