/* ==========================================================================
   The Ultra Deep: homepage app cards (live and coming soon)
   Loaded only by index.html, after styles.css. Each card gets its own look (Central Peck is live in beta, the rest are coming soon):
     .card--glass     Cracked Glass (ice blue and black, same as its page)
     .card--ponytail  Glasses and a Ponytail (pink teen-movie sticker)
     .card--peck      Central Peck (warm coffeehouse)
     .card--gems      Untitled Uncut Gems Companion (black, opal edge, LED readout)
   ========================================================================== */

.slot--soon {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  min-height: 0;
}

.slot--soon .slot__label,
.slot--soon .slot__name,
.slot--soon .slot__line {
  position: relative;
  z-index: 1;
}

.card__glyph {
  display: block;
  height: 2.6rem;
  width: auto;
  margin-bottom: 0.35rem;
  align-self: flex-start;
  overflow: visible;
}

/* ---------- Cracked Glass ---------- */

.card--glass {
  border-color: rgba(10, 12, 14, 0.18);
  background: #d5e6f0;
  color: #0a0c0e;
}

.card--glass:hover {
  border-color: #0a0c0e;
  background: #c7dce9;
}

.card--glass:focus-visible {
  outline-color: #d5e6f0;
}

.card--glass .slot__label {
  color: #33424d;
}

.card--glass .slot__name {
  color: #0a0c0e;
}

.card--glass .slot__line {
  color: #33424d;
}

/* ---------- Glasses and a Ponytail ---------- */

.card--ponytail {
  border: 0;
  background: linear-gradient(145deg, #f9d9e8 0%, #f2bdd6 100%);
  color: #3b1d34;
  box-shadow: 0 0 0 1px rgba(59, 29, 52, 0.12), 0 14px 30px -18px rgba(242, 130, 180, 0.55);
}

.card--ponytail.slot--link:hover {
  background: linear-gradient(145deg, #fbe0ee 0%, #f5c8de 100%);
}

.card--ponytail .slot__label {
  align-self: flex-start;
  padding: 0.3rem 0.65rem 0.25rem;
  border-radius: 999px;
  background: #3b1d34;
  color: #fbe3ef;
  font-size: 0.6875rem;
  transform: rotate(-2deg);
}

.card--ponytail .slot__name {
  font-style: italic;
  color: #3b1d34;
}

.card--ponytail .slot__line {
  color: #6a3d5d;
}

.card__face {
  display: block;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.35rem;
  align-self: flex-start;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #3b1d34;
  box-shadow: 3px 3px 0 #e0508f;
  transform: rotate(-4deg);
}

/* ---------- Central Peck ---------- */

.card--peck {
  border-color: rgba(232, 160, 74, 0.35);
  background: linear-gradient(180deg, #34211a 0%, #22140f 100%);
  color: #f6ead6;
}

.card--peck.slot--link:hover {
  border-color: rgba(232, 160, 74, 0.7);
  background: linear-gradient(180deg, #3d2820 0%, #2a1912 100%);
}

.card--peck.slot--link:focus-visible {
  outline-color: #e8a04a;
}

.card--peck::after {
  /* a coffee-cup ring on the table */
  content: "";
  position: absolute;
  right: -2.2rem;
  bottom: -2.6rem;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  border: 5px solid rgba(232, 160, 74, 0.14);
  box-shadow: inset 0 0 0 9px rgba(232, 160, 74, 0.04);
  pointer-events: none;
}

.card--peck .slot__label {
  color: #e8a04a;
  letter-spacing: 0.3em;
}

.card--peck .slot__name {
  color: #f6ead6;
  letter-spacing: 0.01em;
}

.card--peck .slot__line {
  color: #cdb99b;
}

.card--peck .cp-arc {
  fill: none;
  stroke: #e8a04a;
  stroke-width: 2.5;
  stroke-dasharray: 1 6;
  stroke-linecap: round;
}

/* Live in beta badge (Central Peck) */

.card--peck .slot__label--live {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem 0.25rem;
  border-radius: 999px;
  background: rgba(232, 160, 74, 0.16);
  border: 1px solid rgba(232, 160, 74, 0.55);
  color: #f3b866;
  letter-spacing: 0.2em;
  font-size: 0.6875rem;
}

.live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fd68a;
}

@media (prefers-reduced-motion: no-preference) {
  .live__dot {
    animation: live-pulse 2.2s ease-out infinite;
  }
  @keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(127, 214, 138, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(127, 214, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(127, 214, 138, 0); }
  }
}

/* ---------- Untitled Uncut Gems Companion ---------- */

.card--gems {
  border: 1px solid transparent;
  background:
    linear-gradient(#08080b, #08080b) padding-box,
    linear-gradient(115deg, #7df9ff, #ff7de9 30%, #ffd27d 55%, #8cff9f 78%, #7d8cff) border-box;
  color: #f2f2f4;
}

.card--gems .slot__label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #ffb938;
  letter-spacing: 0.18em;
}

.card--gems .slot__name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.card--gems .slot__line {
  color: #a9a9b3;
}

.gems__readout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.6rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gems__track {
  position: relative;
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 10px);
  /* tick marks along a baseline */
  background-size: 100% 8px;
  background-repeat: repeat-x;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  height: 8px;
}

.gems__thumb {
  position: absolute;
  left: 62%;
  top: -3px;
  width: 11px;
  height: 11px;
  background: linear-gradient(135deg, #7df9ff, #ff7de9);
  transform: translateX(-50%) rotate(45deg);
}

.gems__danger {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #ff5a4a;
}

.gems__tag {
  margin-right: 0.45rem;
}

.gems__danger i {
  width: 5px;
  height: 11px;
  background: #ff5a4a;
}

.gems__danger i.off {
  background: rgba(255, 90, 74, 0.2);
}

/* ---------- Footer note and entrance timing ---------- */

.footer__note {
  margin-bottom: 0.5rem !important;
  max-width: 34rem;
}

@media (prefers-reduced-motion: no-preference) {
  .apps > :nth-child(1) { animation-delay: 0.24s; }
  .apps > :nth-child(2) { animation-delay: 0.30s; }
  .apps > :nth-child(3) { animation-delay: 0.36s; }
  .apps > :nth-child(4) { animation-delay: 0.42s; }
  .apps > :nth-child(5) { animation-delay: 0.48s; }
  .footer { animation-delay: 0.6s; }
}

@media (max-width: 30rem) {
  .slot--soon { min-height: 0; }
}

/* ---------- Desktop: brand block aligns to the top, level with the first card ---------- */

@media (min-width: 56rem) {
  .stage {
    align-items: start;
  }
  .stage .apps {
    align-self: start;
  }
}
