/*
 * Control-plane door stylesheet — standalone, no build step, served as-is.
 * Palette values are LIFTED one-for-one from the review app's
 * apps/web/src/styles/tokens.css (the Plannotator brand: hue-260 blue-slate
 * spine, violet primary) so the door reads as family without importing
 * product CSS. Light theme is default; dark follows the OS.
 */
:root {
  color-scheme: light dark;

  /* ---- brand palette (light), lifted from review tokens.css ---- */
  --background: oklch(0.97 0.005 260);
  --foreground: oklch(0.18 0.02 260);
  --card: oklch(1 0 0);
  --primary: oklch(0.5 0.25 280);
  --primary-foreground: oklch(0.97 0.005 260);
  --muted-surface: oklch(0.92 0.01 260);
  --muted-foreground: oklch(0.4 0.02 260);
  --destructive: oklch(0.5 0.25 25);
  --border: oklch(0.88 0.01 260);
  --ring: oklch(0.5 0.25 280);
  --success: oklch(0.45 0.2 150);
  --warning: oklch(0.55 0.18 85);
  --code-bg: oklch(0.92 0.01 260);

  --card-ring: rgba(0, 0, 0, 0.06);
  --card-shadow:
    0 0 0 1px var(--card-ring), 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 2px 8px -2px rgba(0, 0, 0, 0.06);

  /* type + shape, same values as the review tokens */
  --font-ui: "Inter Variable", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono Variable", "SF Mono", ui-monospace, monospace;
  --radius: 6px;
  --radius-lg: 0.625rem;
  --radius-pill: 999px;
  --transition-colors:
    color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 150ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.15 0.02 260);
    --foreground: oklch(0.9 0.01 260);
    --card: oklch(0.22 0.02 260);
    --primary: oklch(0.75 0.18 280);
    --primary-foreground: oklch(0.15 0.02 260);
    --muted-surface: oklch(0.26 0.02 260);
    --muted-foreground: oklch(0.72 0.02 260);
    --destructive: oklch(0.65 0.2 25);
    --border: oklch(0.35 0.02 260);
    --ring: oklch(0.75 0.18 280);
    --success: oklch(0.72 0.17 150);
    --warning: oklch(0.75 0.15 85);
    --code-bg: oklch(0.26 0.02 260);
    --card-ring: rgba(255, 255, 255, 0.08);
    --card-shadow:
      0 0 0 1px var(--card-ring), 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 8px -2px rgba(0, 0, 0, 0.3);
  }
}

/* ---- quiet door chrome ---- */
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

a,
button {
  transition: var(--transition-colors);
}

@media (prefers-reduced-motion: reduce) {
  a,
  button {
    transition: none;
  }
}

.shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.masthead .brand {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
  text-decoration: none;
}

.masthead .who {
  color: var(--muted-foreground);
  font-size: 12px;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
}

h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

p.lede {
  color: var(--muted-foreground);
  margin: 0 0 1.5rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 1.25rem 1.5rem;
}

.card + .card {
  margin-top: 0.75rem;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tile-title {
  font-weight: 600;
}

.tile-note {
  color: var(--muted-foreground);
  font-size: 13px;
  margin-top: 0.15rem;
}

.button,
button.button {
  display: inline-block;
  border: 0;
  border-radius: var(--radius);
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  background: var(--primary);
  color: var(--primary-foreground);
}

.button.quiet {
  background: var(--muted-surface);
  color: var(--foreground);
}

.badge {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.6rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--muted-surface);
  color: var(--muted-foreground);
}

.badge.active {
  background: color-mix(in oklch, var(--success) 14%, transparent);
  color: var(--success);
}

.badge.provisioning,
.badge.waking {
  background: color-mix(in oklch, var(--warning) 16%, transparent);
  color: var(--warning);
}

.badge.suspended,
.badge.deleting {
  background: color-mix(in oklch, var(--destructive) 12%, transparent);
  color: var(--destructive);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  padding: 0.4rem 0.75rem 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.45rem 0.75rem 0.45rem 0;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 55%, transparent);
  vertical-align: top;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--code-bg);
  border-radius: var(--radius);
  padding: 0.05rem 0.35rem;
}

.muted {
  color: var(--muted-foreground);
}

form.inline {
  display: inline;
}

/* ---- welcoming landing + two-panel navigator ---- */
.hero {
  margin: 1.5rem 0 1.75rem;
}

.hero h1 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.hero .lede {
  max-width: 34rem;
  margin-bottom: 0;
}

.card.signin {
  margin-bottom: 0.5rem;
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .panels {
    grid-template-columns: 1fr;
  }
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.panel .tile-note {
  margin-top: 0;
}

.panel-action {
  margin-top: 0.85rem;
}

/* A quiet product mark: the brand primary, one per panel, no imagery. */
.panel-mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--primary) 18%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklch, var(--primary) 55%, transparent);
  margin-bottom: 0.35rem;
}

.panel[data-product="code_context"] .panel-mark {
  border-radius: var(--radius-pill);
}
