/* CueKey marketing page styles — builds on ../showcase.css */

.ck-hero-pill {
  background: linear-gradient(155deg, #0b222c 0%, #071319 100%);
  border: 1px solid rgba(56, 214, 255, 0.28);
  border-radius: 22px;
  padding: 26px 24px;
  color: #e8f7fc;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 18px;
}

.ck-pill-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 29, 38, 0.92);
  border: 1px solid rgba(56, 214, 255, 0.55);
  border-radius: 999px;
  padding: 8px 18px;
  min-height: 44px;
  width: fit-content;
  margin: 0 auto;
  box-shadow: 0 0 28px rgba(56, 214, 255, 0.2);
}

.ck-pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38d6ff;
  box-shadow: 0 0 12px #38d6ff;
  flex-shrink: 0;
}

.ck-pill-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.ck-pill-wave span {
  width: 3px;
  border-radius: 2px;
  background: #38d6ff;
  height: var(--h, 10px);
}

.ck-pill-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f0fbff;
}

.ck-pill-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ck-pill-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.ck-pill-stat small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8cc9da;
}

.ck-pill-stat strong {
  display: block;
  font-size: 14px;
  margin-top: 3px;
  color: #f4fcff;
}

/* Interactive Dry-Run Simulator */
.ck-window {
  background: #0d181e;
  color: #e6f5fa;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(56, 214, 255, 0.22);
}

.ck-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #a9ccd7;
}

.ck-state-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(56, 214, 255, 0.14);
  color: #7ee3ff;
}

.ck-demo-body {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: 0;
}

.ck-demo-side {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
  align-content: start;
}

.ck-side-label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8cc9da;
}

.ck-presets {
  display: grid;
  gap: 8px;
}

.ck-presets button {
  text-align: left;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #e6f5fa;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ck-presets button:hover {
  background: rgba(56, 214, 255, 0.1);
}

.ck-presets button[aria-pressed="true"] {
  border-color: #38d6ff;
  background: rgba(56, 214, 255, 0.16);
}

.ck-tier-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.ck-tier-0 { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.ck-tier-1 { background: rgba(56, 214, 255, 0.2); color: #7ee3ff; }
.ck-tier-2 { background: rgba(251, 191, 36, 0.2); color: #fde047; }
.ck-tier-blocked { background: rgba(248, 113, 113, 0.22); color: #fca5a5; }

.ck-custom-row {
  display: grid;
  gap: 6px;
}

.ck-custom-row label {
  font-size: 12px;
  color: #9ec3cf;
}

.ck-custom-row input {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #071015;
  color: #f2fbff;
  font: inherit;
  font-size: 14px;
}

.ck-run-btn {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  background: #38d6ff;
  color: #06131a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ck-run-btn:hover {
  background: #6de2ff;
}

.ck-note {
  margin: 0;
  font-size: 12px;
  color: #90b8c5;
  line-height: 1.45;
}

.ck-demo-main {
  padding: 22px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.ck-live-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #071319;
  border: 1.5px solid rgba(56, 214, 255, 0.45);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.ck-live-pill.is-listening {
  border-color: #38d6ff;
  box-shadow: 0 0 24px rgba(56, 214, 255, 0.35);
}

.ck-live-pill.is-tier-2 {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.ck-live-pill.is-blocked {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}

.ck-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ck-kv {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.ck-kv dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8cc9da;
}

.ck-kv dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #f4fcff;
  word-break: break-word;
}

.ck-json {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: #060f14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #b8e4f0;
  overflow-x: auto;
}

/* Screenshots stage */
.ck-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ck-shot-card {
  margin: 0;
  background: var(--panel, #fff);
  border: 1px solid var(--line, #e4dfd4);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  align-content: start;
}

.ck-shot-card.wide {
  grid-column: 1 / -1;
}

.ck-shot-card img {
  display: block;
  width: 100%;
  height: auto;
}

.ck-shot-card figcaption {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted, #5c574d);
  border-top: 1px solid var(--line, #e4dfd4);
}

.ck-shot-card figcaption strong {
  color: var(--ink, #1f1c17);
  display: block;
  margin-bottom: 2px;
}

/* Surfaces grid */
.ck-surfaces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ck-surface {
  background: var(--panel, #fff);
  border: 1px solid var(--line, #e4dfd4);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.ck-surface-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ck-surface h3 {
  margin: 0;
  font-size: 16px;
}

.ck-surface p {
  margin: 0;
  font-size: 14px;
  color: var(--muted, #5c574d);
}

.ck-pill-status {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--tint, #dff4fa);
  color: #00546e;
  white-space: nowrap;
}

.ck-pill-status.is-muted {
  background: rgba(120, 113, 100, 0.14);
  color: var(--muted, #5c574d);
}

@media (prefers-color-scheme: dark) {
  .ck-pill-status {
    background: rgba(56, 214, 255, 0.18);
    color: #7ee3ff;
  }
}

@media (max-width: 820px) {
  .ck-demo-body,
  .ck-shots,
  .ck-surfaces,
  .ck-result-grid,
  .ck-pill-meta {
    grid-template-columns: 1fr;
  }

  .ck-demo-side {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Keep brand name "CueKey" untruncated on 390px mobile viewports */
@media (max-width: 480px) {
  .site-header .nav {
    gap: 8px;
  }

  .site-header .project-back span {
    display: none;
  }

  .site-header .nav-divider {
    display: none;
  }

  .site-header .brand {
    min-width: auto;
    flex-shrink: 0;
    gap: 8px;
  }

  .site-header .brand-copy strong {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .site-header .brand-copy small {
    display: none;
  }

  .site-header .nav-cta {
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ck-live-pill {
    transition: none;
  }
}
