/* The unified landing page. Reuses the digitizer's tokens verbatim so the two
 * modules read as one product rather than two apps sharing a domain, which is
 * the whole premise of handoff 2.1. */
:root {
  --bg: #f5f6f3;
  --panel: #ffffff;
  --panel-soft: #f7f8f6;
  --ink: #323232;
  --ink-strong: #171717;
  --muted: #8f928c;
  --muted-strong: #60645f;
  --line: #e2e1dd;
  --line-strong: #d2d5cf;
  --accent: #8aaf92;
  --accent-deep: #667e6a;
  --accent-soft: #edf4ef;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.start-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.start-head { display: flex; flex-direction: column; gap: 10px; }
.start-logo { width: 132px; height: auto; margin-bottom: 6px; }
.start-head h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}
.start-lede { margin: 0; color: var(--muted-strong); max-width: 52ch; }

/* --- the two ways in --- */
.start-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.start-action {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.start-action:hover { border-color: var(--accent); background: var(--accent-soft); }
.start-action:active { transform: translateY(1px); }
.start-action:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.start-action-title { font-size: 17px; font-weight: 600; color: var(--ink-strong); }
.start-action-note { color: var(--muted-strong); font-size: 13.5px; }

/* --- recent projects --- */
.start-projects { display: flex; flex-direction: column; gap: 12px; }
.start-projects-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.start-projects-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-strong);
}
.start-hint { font-size: 12.5px; color: var(--muted); }

.start-project-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.start-project {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name actions" "meta actions";
  gap: 2px 16px;
  align-items: center;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.start-project.is-active { border-color: var(--accent); background: var(--accent-soft); }
.start-project-name { grid-area: name; font-weight: 600; color: var(--ink-strong); }
.start-project-meta { grid-area: meta; font-size: 12.5px; color: var(--muted); }
.start-project-actions { grid-area: actions; display: flex; gap: 6px; }
.start-project-open {
  font: inherit;
  font-size: 12.5px;
  padding: 5px 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted-strong);
  cursor: pointer;
}
.start-project-open:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.start-project-open:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

.start-empty { margin: 0; color: var(--muted); font-size: 13.5px; }

/* Shared with styles.css — landing shell only loads start.css, so the auth
 * overlay must live here too or Sign in renders as an unstyled box. */
.auth-required-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
}
.auth-required-card {
  width: min(420px, calc(100vw - 32px));
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  color: #17211b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  font-size: 15px;
}
.auth-required-card strong { font-size: 20px; }
.auth-required-card p { color: #526158; line-height: 1.5; }
.auth-required-card a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: #58745f;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .start-action { transition: none; }
}
