/* Prototype chrome. Screen visuals live in styles.css. */

html, body { height: 100%; }
body { min-height: 100dvh; }

.card[hidden] { display: none !important; }
[data-go] { cursor: pointer; }
[data-go]:active { transform: scale(0.985); }
.btn.off, .btn.off[data-go] { pointer-events: none; cursor: default; }
.field .val svg { cursor: pointer; }

.toast {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  background: var(--brand-950);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  box-shadow: 0 12px 30px -16px rgba(20, 29, 66, 0.8);
}

.proto-tabs {
  flex: none;
  display: flex;
  gap: 4px;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
}
.proto-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: -0.01em;
  padding: 4px 0 2px;
  border-radius: 10px;
}
.proto-tabs button i {
  display: block;
  width: 14px;
  height: 3px;
  border-radius: 99px;
  margin: 0 auto 4px;
  background: transparent;
}
.proto-tabs button.on { color: var(--brand-700); background: var(--brand-50); }
.proto-tabs button.on i { background: var(--brand-600); }
.scr.night .proto-tabs { background: #14182e; border-top-color: rgba(255, 255, 255, 0.08); }
.scr.night .proto-tabs button { color: #a7aec4; }
.scr.night .proto-tabs button.on { color: #fff; background: rgba(62, 99, 221, 0.22); }

.app { overflow: auto; }
.app.bleed { overflow: hidden; }

/* Start page */
.catalog { max-width: 980px; margin: 0 auto; padding: 36px 22px 72px; }
.catalog h1 { margin: 0; font-size: 32px; letter-spacing: -0.04em; }
.catalog .lede { max-width: 62ch; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.catalog-actions a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}
.catalog-actions a.primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 30px -16px rgba(62, 99, 221, 0.95);
}
.catalog-actions a.ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.flow-block { margin-top: 26px; }
.flow-block h2 { margin: 0; font-size: 18px; letter-spacing: -0.03em; }
.flow-block .flow-note { margin: 4px 0 10px; color: var(--muted); font-size: 13px; }
.screen-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.screen-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.screen-list a:hover { box-shadow: inset 0 0 0 1px var(--brand-600); background: var(--brand-50); }
.screen-list a b { font-size: 13px; }
.screen-list a span { color: var(--muted); font-size: 11px; font-weight: 650; text-align: right; }
.kind-dot { width: 8px; height: 8px; border-radius: 99px; flex: none; background: var(--brand-600); }
.kind-dot.aspirational { background: #d97706; }
.kind-dot.gap { background: #94a3b8; }

/* Desktop phone */
.stage { min-height: 100dvh; display: flex; flex-direction: column; }
.deskbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  font-size: 13px;
}
.deskbar a { color: var(--brand-700); font-weight: 750; text-decoration: none; }
.deskbar strong { letter-spacing: -0.02em; }
.deskbar em { font-style: normal; color: var(--muted); font-size: 12px; }
.bezel {
  width: 390px;
  height: min(780px, calc(100dvh - 72px));
  margin: 0 auto 24px;
}
.bezel .phone { width: 100%; height: 100%; }

@media (max-width: 760px) {
  .catalog { padding: 22px 16px 48px; }
  .catalog h1 { font-size: 26px; }
  .deskbar { display: none; }
  .stage { min-height: 100dvh; }
  .bezel {
    width: 100%;
    height: 100dvh;
    margin: 0;
  }
  .bezel .phone {
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
  .bezel .scr { border-radius: 0; }
  .bezel .isl { display: none; }
  .bezel .sb {
    height: calc(18px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }
}
