/*
 * The landing page, set in the app's own palette and typeface.
 *
 * **Literals, not tokens.** Nothing here can load `tokens.css`, so the values are written
 * out — the same approach `summary-page.css.ts` and the admin panel take, for the same
 * reason. Every one of them is a token: `#1c1c1e` ink, `#555a6a` muted, `#8e91a0` tertiary,
 * `#4262ff` action, `#2a41b6` its pressed step, `#eef0f3` hairline, `#fff` canvas.
 *
 * One screen, and it does not scroll: `100svh` rather than `100vh`, because on iOS `vh`
 * counts the address bar that is about to disappear and the button lands under it.
 */
@font-face {
  font-family: 'Jakarta';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Jakarta';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600.woff2') format('woff2');
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

/*
 * `100svh`, not `100vh`: on iOS `vh` counts the address bar that is about to disappear, so
 * the button lands under it. `svh` is the small viewport — the one that is actually there.
 */
body {
  display: grid;
  place-items: center;
  min-height: 100svh;
  margin: 0;
  padding: 24px;
  font:
    500 16px/1.5 'Jakarta',
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #2c2c34;
  text-align: center;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/*
 * The dawn wash (DESIGN.md §2.1, §4.1a) — the one gradient this product allows.
 *
 * **It covers the whole viewport, not a band at the top.** Bounded to 62vh it ended in a
 * hard horizontal line straight across the page: the gradient runs at 112°, so it fades to
 * canvas along its own diagonal and never at the bottom edge of the box. On a screen with
 * nothing below the fold there is nothing for a band to be the top of.
 *
 * `fixed` so it stays put if a short window does scroll.
 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(112deg, #e4e9ff 0%, #fff6e3 62%, #fffdf8 100%);
  pointer-events: none;
}

main {
  position: relative;
  display: grid;
  gap: 28px;
  justify-items: center;
}

.lockup {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #1c1c1e;
}
.lockup svg {
  width: 52px;
  height: 52px;
}
.lockup span {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transform: translateY(0.04em);
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(30px, 5.4vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  color: #1c1c1e;
  letter-spacing: -0.03em;
}

/* `--control-lg` 44px and the wide button's own `--radius-sm` corner (DESIGN.md §3.1). */
.get {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  height: 52px;
  padding: 0 28px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: #4262ff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgb(5 0 56 / 8%);
  transition: background 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.get:hover {
  background: #2a41b6;
}
.get:focus-visible {
  outline: 2px solid #4262ff;
  outline-offset: 3px;
}
.get svg {
  width: 18px;
  height: 18px;
}

.meta {
  margin: 0;
  font-size: 13.5px;
  color: #8e91a0;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .get {
    transition: none;
  }
}
