/* Bellslate website — product mockups (hero slate, cards, fee counter, chat, phones) */

/* Hero slate */
.hero-art {
  position: relative;
  padding: 40px 20px 60px 40px;
}

.slate {
  position: relative;
  border-radius: 26px;
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  color: var(--cream);
  padding: 18px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: perspective(1600px) rotateY(-9deg) rotateX(4deg);
  transform-origin: left center;
  animation: slateIn 1.4s var(--ease) both;
}

@keyframes slateIn {
  from {
    transform: perspective(1600px) rotateY(-24deg) rotateX(10deg) translateY(30px);
    opacity: 0;
  }
}

.slate-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 6px 14px;
}

.slate-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(247, 243, 232, 0.22);
}

.slate-bar span:first-child {
  background: var(--brass);
}

.slate-bar b {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--on-dark-2);
}

.slate-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
}

.tile {
  padding: 16px;
  border-radius: 16px;
  background: rgba(247, 243, 232, 0.07);
  border: 1px solid var(--line-dark);
  display: grid;
  gap: 6px;
  align-content: start;
}

.tile small,
.mk small {
  display: block;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
}

.tile strong {
  font-size: 16px;
}

.big {
  font-family: var(--font-display);
  font-size: 30px !important;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tile-att {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.ring {
  --p: 50;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--brass) calc(var(--p) * 1%), rgba(247, 243, 232, 0.12) 0);
  -webkit-mask: radial-gradient(circle, transparent 0 25px, #000 26px);
  mask: radial-gradient(circle, transparent 0 25px, #000 26px);
  position: relative;
}

.tile-att .ring + div {
  position: relative;
}

.ring b {
  display: none;
}

.bars {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 46px;
  margin-top: 6px;
}

.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: rgba(247, 243, 232, 0.2);
  transform-origin: bottom;
  animation: grow 1.2s var(--ease) both;
}

.bars i:nth-child(6) {
  background: var(--brass);
}

.bars i:nth-child(2) { animation-delay: 0.05s; }
.bars i:nth-child(3) { animation-delay: 0.1s; }
.bars i:nth-child(4) { animation-delay: 0.15s; }
.bars i:nth-child(5) { animation-delay: 0.2s; }
.bars i:nth-child(6) { animation-delay: 0.25s; }
.bars i:nth-child(7) { animation-delay: 0.3s; }

@keyframes grow {
  from {
    transform: scaleY(0);
  }
}

.tile-needs ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.tile-needs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.dot-brass { background: var(--brass); }
.dot-coral { background: #f08a62; }
.dot-mint { background: #6fcf9f; }

.tile-bus {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.tile-bus > .i {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 12px;
  background: var(--brass);
  color: var(--ink);
}

.toast {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  max-width: 300px;
  animation: toastIn 0.9s var(--ease) both, bob 6s ease-in-out infinite;
}

.toast b {
  display: block;
  font-size: 15px;
}

.toast small {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.toast-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
}

.ic-mint { background: var(--mint); color: var(--mint-deep); }
.ic-sky { background: var(--sky); color: var(--sky-deep); }
.ic-brass { background: var(--brass-soft); color: var(--brass-deep); }

.toast-1 { top: 0; right: 0; animation-delay: 0.6s, 1.5s; }
.toast-2 { bottom: 10px; left: 0; animation-delay: 0.9s, 2.2s; }
.toast-3 { bottom: -18px; right: 30px; animation-delay: 1.2s, 3s; }

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
  }
}

@keyframes bob {
  50% {
    translate: 0 -8px;
  }
}

.bell-badge {
  position: absolute;
  top: 18px;
  left: 0;
  width: 64px;
  height: 64px;
  padding: 12px;
  border-radius: 20px;
  background: var(--brass);
  box-shadow: 0 16px 30px -12px rgba(185, 122, 6, 0.8);
  animation: ring 4s ease-in-out 2s infinite;
}

@keyframes ring {
  0%, 80%, 100% { rotate: 0deg; }
  84% { rotate: 12deg; }
  88% { rotate: -10deg; }
  92% { rotate: 6deg; }
  96% { rotate: -3deg; }
}

/* Generic card mockup */
.mk {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 15px;
}

.mk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}

.mk-head .i {
  color: var(--brass-deep);
}

.mk-head kbd,
.kbd-light {
  margin-left: auto;
  background: var(--white);
  border-color: var(--line);
  height: 26px;
  font-size: 13px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.kv span {
  color: var(--text-2);
}

.kv.total {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  font-weight: 700;
}

.kv.total span {
  color: var(--text);
}

.ok {
  color: var(--mint-deep);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(16, 56, 45, 0.07);
  color: var(--ink);
}

.chip .i {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.c-mint { background: var(--mint); color: #1d6b4c; }
.c-sky { background: var(--sky); color: var(--sky-deep); }
.c-brass { background: var(--brass-soft); color: #8a5a00; }
.c-coral { background: var(--coral); color: var(--coral-deep); }

.meter {
  height: 10px;
  border-radius: 10px;
  background: rgba(16, 56, 45, 0.08);
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--mint-deep), var(--brass));
  border-radius: inherit;
}

/* Role visuals */
.role-visual {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: 32px;
  overflow: hidden;
}

.rv-principal { background: radial-gradient(circle at 30% 20%, var(--brass-soft), var(--cream)); }
.rv-office { background: radial-gradient(circle at 70% 30%, var(--mint), var(--cream)); }
.rv-teacher { background: radial-gradient(circle at 30% 70%, var(--sky), var(--cream)); }
.rv-family { background: radial-gradient(circle at 60% 40%, var(--coral), var(--cream)); }

.mk-float {
  width: min(340px, 100%);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border: 0;
  animation: bob 6s ease-in-out infinite;
}

.mk-float.mk-2 {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: auto;
  animation-delay: 1.4s;
}

.rv-principal .mk-float:first-child {
  margin: -60px 60px 0 0;
}

/* Roll call */
.roll {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
}

.roll i {
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--mint);
  position: relative;
}

.roll i.a {
  background: var(--coral-deep);
}

.roll i.a::after {
  content: "A";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--white);
  font-style: normal;
}

.roll-sm {
  grid-template-columns: repeat(8, 1fr);
}

/* Substitute ranking */
.rank {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.rank li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

.rank li:first-child {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-soft);
}

.rank > li > b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--cream);
  flex: none;
}

.rank strong {
  display: block;
}

.rank small {
  font-size: 13px !important;
  color: var(--text-2);
}

/* Gate */
.gate {
  display: flex;
  gap: 16px;
  align-items: center;
}

.gate > div:last-child {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.qr {
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 10px;
  border: 6px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
  background:
    conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 16px 16px,
    var(--white);
  position: relative;
}

.qr::before,
.qr::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 5px solid var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 9px var(--ink);
}

.qr::before { top: 0; left: 0; }
.qr::after { bottom: 0; right: 0; }

/* Diary */
.diary {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 14px;
  border-radius: 12px;
  background: var(--white);
  border-left: 4px solid var(--brass);
}

/* Route */
.route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 14px 4px;
}

.route::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--mint-deep) 55%, rgba(16, 56, 45, 0.12) 55%);
}

.route i {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid rgba(16, 56, 45, 0.25);
}

.route i.done {
  border-color: var(--mint-deep);
  background: var(--mint-deep);
}

.route i.bus {
  width: 26px;
  height: 26px;
  border: 0;
  background: var(--brass);
  box-shadow: 0 0 0 6px rgba(245, 184, 46, 0.3);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 12px rgba(245, 184, 46, 0);
  }
}

/* Chat bubbles */
.bubble {
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 92%;
  font-size: 15px;
  line-height: 1.5;
}

.bubble.q {
  justify-self: end;
  background: var(--ink);
  color: var(--cream);
  border-bottom-right-radius: 4px;
}

.bubble.a {
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.bubble.a b {
  color: var(--ink);
  background: var(--brass-soft);
  padding: 0 4px;
  border-radius: 4px;
}
