/* Standalone front door, served from the bare kaizy.app. It is deliberately not
   part of the Next app, so it has no Tailwind and no design-system tokens to
   reach for. The values below are the brand guide's own, declared once as
   variables and laid out like the app's sign-in card. Keep them in step with
   app/globals.css if the guide's values move.

   The fonts are served from this project rather than Google, so the page makes
   no third-party request at all. It is the front door of a product that sells
   data residency. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-500.woff2") format("woff2");
}

:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #f2eee7;
  --border: #e4ded3;
  --text-1: #131b2d;
  --text-3: #8b8f9b;
  /* The darker light-theme bronze, so the code tiles still meet contrast. */
  --accent: #8a6a3c;
  --accent-soft: #f1e8da;
  --focus: #131b2d;
  --shadow: 0 1px 2px rgba(19, 27, 45, 0.04), 0 8px 24px -12px rgba(19, 27, 45, 0.12);
  --logo-on-light: block;
  --logo-on-dark: none;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --headline: "Plus Jakarta Sans", var(--body);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131b2d;
    --surface: #1b2438;
    --surface-2: #25314a;
    --border: #2e3a53;
    --text-1: #f7f4ef;
    --text-3: #8c93a3;
    --accent: #c4a074;
    --accent-soft: rgba(196, 160, 116, 0.14);
    --focus: #c4a074;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 32px -16px rgba(0, 0, 0, 0.5);
    --logo-on-light: none;
    --logo-on-dark: block;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font: 400 14px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 16px;
  padding-block: 48px;
}

.stack {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.lockup {
  display: flex;
  justify-content: center;
  align-self: center;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 140ms ease;
}

.lockup:hover {
  opacity: 0.8;
}

.lockup:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 6px;
}

/* The link takes every pointer event, so the hand shows over the whole logo
   rather than only at its edges in Safari. */
.lockup img {
  height: 44px;
  width: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.lockup .on-light {
  display: var(--logo-on-light);
}

.lockup .on-dark {
  display: var(--logo-on-dark);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

h1 {
  margin: 0;
  font: 700 24px/1.3 var(--headline);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.regions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.region {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.region:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.region:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.code {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.04em;
}

.meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.name {
  font: 600 15px/1.3 var(--headline);
}

.host {
  font: 500 12px/1.5 var(--mono);
  color: var(--text-3);
}

.go {
  display: flex;
  color: var(--text-3);
  transition: color 140ms ease, transform 140ms ease;
}

.region:hover .go {
  color: var(--accent);
  transform: translateX(2px);
}

.foot {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

@media (max-width: 420px) {
  .card {
    padding: 24px 20px;
  }

  .lockup img {
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lockup,
  .region,
  .go {
    transition: none;
  }

  .region:hover .go {
    transform: none;
  }
}
