/* ══════════════════════════════════════════════════════════════════════
   Pagelove landing page.
   ─────────────────────────────────────────────────────────────────────
   One wordmark, one button, centred (#173). The page's whole job is to
   get a signed-out visitor into the console, so everything that was not
   that — eyebrow, tagline, three feature pillars, footer — is gone, and
   with it the CSS that styled them.

   What is kept is the brand surface: the pastel backdrop with its dot
   grid, the display serif, the teal diamond, and the button's sliding
   arrow. "Simple" here means less on the page, not less finish.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #F1F5F9;
  --text: var(--text-body, #1D293D);
  --accent: var(--colours-blue-400, #0084D1);
  --accent-glow: rgba(0, 132, 209, 0.18);
  --font: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: var(--ls-body, -0.4px);
  -webkit-font-smoothing: antialiased;
}

body {
  /* Centred both ways. `dvh` so the content stays centred on mobile when
     the browser chrome collapses; `vh` first for anything without it. */
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;

  /* Signature pastel backdrop, full-bleed, with a light veil over it and a
     fine dot grid on top. Unchanged from the previous page — this is the
     brand surface, and it is the reason a two-element page still reads as
     designed rather than unfinished. */
  background:
    radial-gradient(circle, rgba(2, 6, 24, 0.035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(180deg,
      rgba(248, 250, 252, 0.32) 0%,
      rgba(241, 245, 249, 0.72) 52%,
      rgba(241, 245, 249, 0.94) 100%),
    url("/design-system/img/hero-bg.jpg") center center / cover no-repeat,
    var(--bg);
  background-attachment: fixed;
}

main.landing {
  display: grid;
  justify-items: center;
  row-gap: 32px;
  text-align: center;
  animation: landing-in 0.6s cubic-bezier(0.2, 0.85, 0.2, 1);
}

@keyframes landing-in {
  from { opacity: 0; transform: translateY(12px); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── Wordmark ───────────────────────────────────────────────────────── */
.landing-wordmark {
  margin: 0;
  font-family: var(--font-display, ui-serif, Georgia, "Times New Roman", serif);
  /* Fluid rather than a breakpoint: one line of text needs one rule. */
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  /* Not inherited. body sets 1.55, which at 4.5rem is ~25px of leading above
     and below the glyphs — the gap to the button then reads as ~55px rather
     than the declared 32px, and the pair's optical centre sits high. The
     heading this replaced set 1.05 for the same reason. */
  line-height: 1.1;
  /* Belt-and-braces, not load-bearing. Carried over from the old rule against
     Safari clipping a descender at a tight line-height — but that clipping
     needs a paint box to clip against (`background-clip: text`, `overflow`),
     and this page has neither any more. Kept because it costs nothing and the
     next person to add a clip will not think to restore it; noted because it
     is not free: it sits outside the flex content box, so the gap to the
     button renders ~41px against the 32px `row-gap` declares, and the centred
     pair sits a few pixels high. Sub-5px and invisible in practice. */
  padding-bottom: 0.12em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-display, #020618);
  /* `flex`, not `inline-flex`: this is a direct grid item of `main.landing`,
     and a grid item's display is blockified — `inline-flex` computes to `flex`
     anyway. Declaring the inline form was misleading rather than wrong, and
     suggested the centring depended on it when `justify-items` does that. */
  display: flex;
  align-items: baseline;
  gap: 0.12em;
}

.mark-glyph {
  font-size: 0.42em;
  color: var(--accent);
  text-shadow: 0 0 14px var(--accent-glow);
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Optical: the diamond sits high next to a baseline-aligned serif cap. */
  align-self: center;
}
.landing-wordmark:hover .mark-glyph { transform: rotate(180deg); }

/* ── Sign in ────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  font-family: var(--font-sans, -apple-system, sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--btn-primary-fg, #F8FAFC);
  text-decoration: none;
  background: var(--btn-primary-bg, #1D293D);
  border: 1px solid var(--btn-primary-bg, #1D293D);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(2, 6, 24, 0.06), 0 1px 2px rgba(2, 6, 24, 0.04));
  transition: transform 0.1s ease, box-shadow 0.25s ease,
              border-color 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--btn-primary-bg-hover, #45556C);
  border-color: var(--btn-primary-bg-hover, #45556C);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(2, 6, 24, 0.08));
}

.btn-primary:active { transform: translateY(0); }

/* The only focusable thing on the page, so it gets a ring you cannot miss.
   There was none before, when it was one of several links. */
.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary-arrow {
  font-size: 16px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-primary:hover .btn-primary-arrow { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  main.landing { animation: none; }
  .mark-glyph,
  .btn-primary,
  .btn-primary-arrow { transition: none; }
}
