/* ZenouMath, doorways.
 * A plain launcher. The previous version wrapped a third-party menu in a
 * srcdoc frame and opened the apps through window.open(); both layers were
 * failure points, and a proxy cannot run inside either. This page just links.
 */

.dw-main {
  max-width: var(--maxw, 1320px);
  margin: 0 auto;
  padding: 44px var(--gutter, 28px) 90px;
}

.dw-head { max-width: 70ch; margin-bottom: 30px; }

.dw-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.dw-head h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.03em;
  font-stretch: 106%;
}

.dw-head p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.dw-note {
  margin: 22px 0 34px;
  padding: 14px 16px;
  border-left: 3px solid rgb(var(--accent-rgb) / .7);
  border-radius: 10px;
  background: rgb(var(--accent-rgb) / .06);
  font-size: 13px;
  line-height: 1.65;
  color: #c8cfdd;
  max-width: 72ch;
}

.dw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.dw-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 20px);
  background: var(--surface);
  min-width: 0;
}

.dw-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.dw-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.dw-role {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

.dw-host {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--muted);
  word-break: break-all;
}

.dw-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #b9c1d1;
  flex: 1;
}

.dw-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.dw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  flex: 0 0 auto;
}

.dw-status[data-state="ok"] { color: var(--success); }
.dw-status[data-state="ok"] .dw-dot { background: var(--success); }
.dw-status[data-state="bad"] { color: var(--danger); }
.dw-status[data-state="bad"] .dw-dot { background: var(--danger); }
.dw-status[data-state="checking"] .dw-dot { animation: dw-blink .9s ease-in-out infinite; }

@keyframes dw-blink { 50% { opacity: .25; } }

.dw-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.dw-actions .btn { font-size: 12.5px; padding: 8px 14px; }

.dw-foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-2);
  max-width: 78ch;
}

.dw-foot a { color: var(--muted); }

@media (max-width: 560px) {
  .dw-main { padding: 30px 18px 70px; }
  .dw-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .dw-status[data-state="checking"] .dw-dot { animation: none; }
}
