/* ===========================================================================
   LeadFuel Console — LAYOUT ONLY.

   Brand tokens (colour, font, radius, shadow) all come from intake.css's :root
   --vars and flip automatically in light mode via theme.css. This file only
   adds the console's structural layout: header bar, launcher tiles, cards,
   forms and tables. Keep it token-driven so the look stays in lockstep with
   the marketing pages + onboard.
   =========================================================================== */

/* The console is a long scrolling document, not the fixed-height chat shell, so
   relax the body height intake.css sets to 100% and let the page grow. */
html, body.console-body { height: auto; min-height: 100%; }

/* ── Header ────────────────────────────────────────────────────────────────
   Reuses onboard .hdr / .brand / .logo-img / .brand-sub. Make it a full-width
   bar with a centred nav, capped to the console content width. */
.console-hdr {
  position: sticky; top: 0; z-index: 20;
  max-width: 1040px; margin: 0 auto;
  background: var(--bg);
}
.brand { text-decoration: none; }

.console-nav {
  display: flex; align-items: center; gap: 24px;
  flex: 1; justify-content: center;
}
.console-nav a {
  font-size: 14px; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  letter-spacing: .01em;
  transition: color .15s;
}
.console-nav a:hover { color: var(--text); }

.console-badge {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(225, 11, 11, 0.30);
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .06em;
}

/* ── Page layout ───────────────────────────────────────────────────────────*/
.console-container {
  max-width: 1040px; margin: 0 auto;
  padding: 36px 24px 64px;
}
.console-footer {
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.console-h1 {
  margin: 0 0 8px;
  font-size: 32px; font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.console-lead {
  margin: 0;
  font-size: 16px; line-height: 1.6;
  color: var(--text-muted);
}
.console-lead strong { color: var(--text); font-weight: 600; }
.console-muted { color: var(--text-muted); }
.console-inline-link { color: var(--brand); font-weight: 600; text-decoration: none; }
.console-inline-link:hover { text-decoration: underline; }

.console-hero { margin-bottom: 32px; }
.console-page-head { margin-bottom: 28px; }

/* ── Launcher tiles ────────────────────────────────────────────────────────
   Each tile uses the onboard .welcome card surface (elevated bg + border +
   large radius), arranged in a responsive grid. */
.console-tiles {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.console-tile {
  display: flex; flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .12s;
}
.console-tile:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.console-tile-soon { opacity: .65; }
.console-tile-soon:hover { transform: none; border-color: var(--border); }
.console-tile-title {
  margin: 0 0 8px;
  font-size: 19px; font-weight: 700;
  color: var(--text);
}
.console-tile-blurb {
  margin: 0 0 20px;
  flex: 1;
  font-size: 14px; line-height: 1.55;
  color: var(--text-muted);
}
.console-tile-action { margin-top: auto; }

/* Launch button = the brand red .start-btn, sized inline rather than block. */
.start-btn.console-btn-launch {
  display: inline-block; width: auto;
  padding: 11px 22px; font-size: 14px;
}
.start-btn.console-form-submit {
  display: inline-block; width: auto;
  padding: 12px 24px; font-size: 14px;
  justify-self: start;
}

/* Non-launch states (ghost / buy) — neutral pills off the brand tokens. */
.console-btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px; font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.console-btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-muted);
}
a.console-btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.console-btn-buy {
  background: var(--brand-soft);
  border-color: rgba(225, 11, 11, 0.30);
  color: var(--brand);
}

/* ── Cards ─────────────────────────────────────────────────────────────────*/
.console-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.console-card-title {
  margin: 0 0 18px;
  font-size: 18px; font-weight: 700;
  color: var(--text);
}

/* ── Forms ─────────────────────────────────────────────────────────────────
   Inputs sit on --bg-subtle with a faint border that turns brand-red on focus,
   matching the onboard intake inputs. */
.console-form {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}
.console-form label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
}
.console-form label.full { grid-column: 1 / -1; }
.console-form input,
.console-form select,
.console-form textarea {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 13px;
  font-family: inherit; font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.console-form textarea { resize: vertical; line-height: 1.5; }
.console-form input::placeholder,
.console-form textarea::placeholder { color: var(--text-faint); }
.console-form input:focus,
.console-form select:focus,
.console-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(225, 11, 11, 0.18);
}
.console-form .console-form-submit { grid-column: 1 / -1; }

/* ── Tables ────────────────────────────────────────────────────────────────*/
.console-table-wrap { overflow-x: auto; }
.console-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.console-table th,
.console-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.console-table thead th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-strong);
}
.console-table tbody td { color: var(--text); word-break: break-word; }
.console-table tbody tr:last-child td { border-bottom: none; }
.console-table a { color: var(--brand); text-decoration: none; font-weight: 600; }
.console-table a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────────────────────*/
@media (max-width: 760px) {
  .console-hdr { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
  .console-nav { order: 3; width: 100%; justify-content: flex-start; gap: 18px; }
  .console-container { padding: 24px 16px 48px; }
  .console-h1 { font-size: 26px; }
  .console-form { grid-template-columns: 1fr; }
  .console-tiles { grid-template-columns: 1fr; }
  .console-card { padding: 20px; }
}
