/* ===========================================================================
   Workspace launcher — the root gate in front of the console.
   Standalone page: no sidebar shell, no topbar. Every value below comes from
   the tokens in app.css; nothing is hard-coded.
   =========================================================================== */

.launcher {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: var(--s-8) var(--s-4) var(--s-12);
}
@media (min-width: 900px) {
  .launcher { align-content: center; padding: var(--s-12) var(--s-8); }
}

.launcher-inner {
  --od-gap: var(--s-8);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
}

/* ---------- head -------------------------------------------------------- */

.launcher-brand { --od-gap: var(--s-3); margin-bottom: var(--s-6); }
.launcher-brand .brand-name { font-size: var(--fs-h3); }

.launcher-head { --od-gap: var(--s-3); max-width: 60ch; }
.launcher-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 700;
  letter-spacing: -.01em;
}
@media (min-width: 900px) {
  .launcher-title { font-size: var(--fs-display); line-height: var(--lh-display); }
}
.launcher-sub {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-muted);
}

/* ---------- the three cards --------------------------------------------- */

.launcher-grid { --od-cols: 1; --od-gap: var(--s-4); }
@media (min-width: 900px) { .launcher-grid { --od-cols: 3; } }

/* One card shape for both an <a> and a <button>: the live workspace navigates,
   an unbuilt one answers with a toast. Both reset their own UA styling so no
   default link or button chrome reaches the card. */
.launch-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--s-4);
  width: 100%;
  margin: 0;
  padding: var(--s-6);
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-state), box-shadow var(--t-state), border-color var(--t-state);
}
.launch-card > * { min-width: 0; }
.launch-card:hover {
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}
.launch-card:active { transform: translateY(0); }

.launch-card.is-soon {
  background: var(--surface-sunken);
  border-style: dashed;
  box-shadow: none;
}
.launch-card.is-soon:hover { box-shadow: var(--shadow-card); }

.launch-head { --od-gap: var(--s-3); }

.launch-body { --od-gap: var(--s-2); }
.launch-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 600;
  color: var(--ink);
}
.launch-note {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--ink-muted);
}

.launch-foot {
  --od-gap: var(--s-2);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
.launch-cta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: 600;
  color: var(--primary);
}
.launch-card:hover .launch-cta { color: var(--primary-hover); }
.launch-cta svg { transition: transform var(--t-state); }
.launch-card:hover .launch-cta svg { transform: translateX(2px); }
.launch-cta.is-quiet { color: var(--ink-muted); font-weight: 400; }
.launch-card.is-soon:hover .launch-cta.is-quiet { color: var(--ink-muted); }

/* ---------- foot note --------------------------------------------------- */

.launcher-foot {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  .launch-card:hover { transform: none; }
  .launch-card:hover .launch-cta svg { transform: none; }
}
