/* The welcome page before Google sign-in (app/templates/auth/welcome.html). Self-contained: no script, no inline
   style, no third-party font; it reads the design tokens of tokens.css. Calm like the UI brief: Mist canvas, one
   white card, a serif headline, one teal pill, brass only as identity. */
/* The app's own type (design audit of 4 Nov): the serif headline is Newsreader, the brand kit's wordmark face the
   shell uses (the same self-hosted file and @font-face as shell/shell.css), and the body is the shell's system stack.
   tokens.css still names Georgia and Inter for the classic pages, which this page does not follow. */
@font-face {
  font-family: "Newsreader";
  src: url("/static/shell/fonts/newsreader-latin.woff") format("woff");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.welcome {
  --font-serif: "Newsreader", Georgia, Cambria, "Times New Roman", serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-4);
  background: var(--mist);
  color: var(--text);
  font: 400 16px/24px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
.welcome-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  padding: var(--space-12) var(--space-8) var(--space-8);
  text-align: center;
}
.welcome-logo { display: block; width: 116px; height: auto; margin: 0 auto var(--space-6); }
/* No logo for this product name (BRAND_LOGO_PATH empty, another BRAND_PRODUCT_NAME): the name is the wordmark. */
.welcome-wordmark {
  margin: 0 0 var(--space-6);
  font: 500 32px/40px var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.welcome-rule { width: 32px; height: 2px; border: 0; margin: 0 auto var(--space-6); background: var(--brass); }
.welcome-title {
  margin: 0 0 var(--space-3);
  font: 500 28px/36px var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.welcome-lede { margin: 0 0 var(--space-8); color: var(--muted); text-wrap: pretty; }
.welcome-notice {
  margin: 0 0 var(--space-6);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-input);
  background: var(--teal-subtle);
  color: var(--teal-hover);
  font-weight: 500;
}
.welcome-button {
  display: block;
  min-height: 48px;
  padding: 12px var(--space-6);
  border-radius: var(--r-pill);
  background: var(--teal);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.welcome-button:hover { background: var(--teal-hover); }
.welcome-button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.welcome-hint { margin: var(--space-3) 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.welcome-trust {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  text-align: left;
}
.welcome-trust h2 {
  margin: 0 0 var(--space-3);
  font: 500 12px/16px var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.welcome-trust ul { margin: 0; padding: 0; list-style: none; }
.welcome-trust li {
  position: relative;
  margin: 0 0 var(--space-3);
  padding-left: var(--space-5);
  font-size: 14px;
  line-height: 20px;
}
.welcome-trust li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}
.welcome-env {
  display: inline-block;
  margin: 0 0 var(--space-6);
  padding: 2px var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 100%;
  overflow-wrap: anywhere; /* review W7: a long host name wraps inside the card at 320 px instead of overflowing */
}
.welcome-env[data-env="development"], .welcome-env[data-env="test"], .welcome-env[data-env="other"] {
  border-color: #b45309;
  background: #fffbeb;
  color: #92400e;
}
.welcome-foot { font-size: 12px; line-height: 16px; color: var(--muted); }
@media (max-width: 480px) {
  .welcome-card { padding: var(--space-8) var(--space-5) var(--space-6); }
  .welcome-title { font-size: 24px; line-height: 32px; }
}
@media (forced-colors: active) {
  .welcome-button { border: 2px solid ButtonText; }
}
/* Review W4 (16 Oct): the sign-out question reuses the card, with a real <button> and a quiet Cancel link. */
button.welcome-button { width: 100%; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.welcome-cancel { color: var(--teal); font-weight: 500; }
.welcome-cancel:hover { color: var(--teal-hover); }
.welcome-cancel:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
@media (forced-colors: active) {
  button.welcome-button { border: 2px solid ButtonText; }
}
