/* The pages that work without signing in: the home page and the privacy policy (PRD "Home page", PRIV-6), sent by
   the server as finished HTML (app/server/src/site.ts, DESIGN.md "Public pages"). As in Figma "Home",
   "Home · Narrow" and "Privacy policy", with the web app's colors (app/web/src/styles.css). No script. */
:root {
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --subtle: #f7f8fa;
  --ink: #20252d;
  --muted: #68717f;
  --faint: #8a93a1;
  --line: #e2e6eb;
  --accent: #315bde;
  --highlight: #e8eefc;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.site { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); font: 14px/1.45 var(--font); }
body.site main { flex: 1; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header (Figma "Shared / Site header"): the symbol and wordmark, linking to `/`. */
.site-header { display: flex; align-items: center; padding: 16px 64px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand img { display: block; }

/* Hero: the promise and sign-in on the left, the list preview on the right (HOME-2). */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 96px; align-items: center; max-width: 1440px; margin: 0 auto; padding: 72px 64px; }
.hero h1 { font-size: 58px; line-height: 1.1; font-weight: 400; letter-spacing: -0.045em; margin: 0 0 24px; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0 0 24px; max-width: 640px; }
.providers { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 240px; height: 48px; padding: 0 16px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #cdd3db; }
.btn.dark { background: #20252d; border-color: #20252d; color: #ffffff; }
.btn.dark:hover { background: #343b46; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.btn .g { color: #315bde; font-size: 18px; font-weight: 700; }

/* A failed sign-in (AUTH-10, AUTH-15; Figma "Home · Cancelled", "Home · Error"): grey when cancelled, red otherwise. */
.notice { max-width: 492px; margin: 0 0 24px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2);
  color: var(--muted); font-size: 13px; line-height: 1.45; }
.notice.error { border-color: #b74439; background: #fbeceb; color: #b74439; }

/* The development sign-in (HOME-3), on a developer's own computer only. */
.dev-form { display: grid; gap: 10px; max-width: 492px; margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.dev-form .hint { color: var(--muted); font-size: 13px; }
.dev-form label { display: grid; gap: 4px; font-size: 13px; }
.dev-form input { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--surface); color: var(--ink); }
.dev-form .btn { width: auto; height: 40px; justify-self: start; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #ffffff; font-weight: 600; cursor: pointer; }

/* The list preview, like the Prioritized list's rows (LIST-42 chips). */
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.preview .tr { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; padding: 0 20px; min-height: 59px; border-bottom: 1px solid var(--line); }
.preview .tr:last-child { border-bottom: 0; }
.preview .tr:nth-child(2) { background: var(--highlight); }
.preview .thead { min-height: 43px; background: var(--surface-2); font-size: 12px; font-weight: 500; color: var(--muted); }
.preview .th.active { color: var(--accent); }
.rank { font-family: var(--mono); color: var(--muted); font-size: 13.5px; }
.issue { display: flex; gap: 14px; align-items: center; min-width: 0; }
.kind { color: var(--muted); flex: none; display: grid; }
.kind.pr { color: var(--accent); }
.issue-text { min-width: 0; display: block; }
.issue-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.issue-meta { display: flex; gap: 8px; align-items: center; min-width: 0; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.issue-meta .num { font-family: var(--mono); flex: none; }
.issue-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); flex: none; }
.issue-meta .reason { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.next-step { flex: none; display: inline-flex; align-items: center; height: 21px; padding: 0 9px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font); font-size: 12.5px; font-weight: 600; line-height: 1; }
.next-step.review { background: #2f55d4; color: #ffffff; }
.next-step.respond { background: #6b3fd1; color: #ffffff; }
.next-step.todo { background: #0f7a68; color: #ffffff; }
.next-step.backlog { background: #fff6dc; color: #8a5a00; border-color: #ecd28a; }
.next-step.waiting { background: #eceff3; color: #4a5260; }
.next-step.elsewhere { background: var(--surface); color: #4a5260; border-color: #c9cfd7; }
.next-step.not-yours { background: var(--surface); color: #6b7380; border: 1px dashed var(--line); }

/* "How it works" and "What Gitilizer uses, and why" (Figma "Home / Info block"). */
.band { padding: 64px; }
.band.subtle { background: var(--subtle); }
.band-inner { max-width: 1312px; margin: 0 auto; }
.band h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 24px; }
.blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.block h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.block p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }
.more { margin: 24px 0 0; }
.more a { font-size: 14px; font-weight: 600; text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* The privacy policy (PRIV-6): docs/privacy-policy.md in one column. */
.policy { width: 100%; max-width: 760px; margin: 0 auto; padding: 56px 20px 88px; font-size: 15px; line-height: 1.65; }
.policy h1 { font-size: 36px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.policy h1 + p { color: var(--muted); font-size: 13px; margin-top: 0; }
.policy h2 { font-size: 21px; line-height: 1.3; font-weight: 600; margin: 40px 0 12px; }
.policy p, .policy ul { margin: 0 0 12px; }
.policy ul { padding-left: 22px; }
.policy li { margin-bottom: 8px; }
.policy code { font-family: var(--mono); font-size: 13.5px; }

/* Footer (Figma "Shared / Footer"). On these pages its links open in the same tab (FOOT-2). */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding: 20px 56px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.site-footer nav { display: flex; gap: 28px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* HOME-5: below 900 px the preview moves under the promise, the buttons and blocks stack, and the preview shows five rows
   (Figma "Home · Narrow"). */
@media (max-width: 900px) {
  .site-header { padding: 14px 20px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 40px 20px 48px; }
  .hero h1 { font-size: 40px; letter-spacing: -0.04em; margin-bottom: 20px; }
  .lede { font-size: 15px; margin-bottom: 20px; }
  .providers { flex-direction: column; }
  .btn { width: 100%; }
  .preview .tr { grid-template-columns: 64px minmax(0, 1fr); padding: 0 16px; }
  .preview .tr:nth-child(n+7) { display: none; }
  .band { padding: 40px 20px; }
  .band h2 { font-size: 21px; margin-bottom: 16px; }
  .blocks { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .block { padding: 20px; }
  .policy { padding-top: 40px; }
  .policy h1 { font-size: 30px; }
  .site-footer { padding: 20px; justify-content: flex-start; }
}
