/* Bellslate website — interactive widgets (fee counter, chat, phones) + responsive */

/* Months (shared) */
.months {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.months-sm {
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}

.months i,
.months button {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 10px;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--text-2);
}

.months-sm i {
  height: 34px;
  font-size: 12px;
}

.months .p {
  background: var(--mint);
  border-color: transparent;
  color: #1d6b4c;
}

.months .t {
  background: var(--brass);
  border-color: transparent;
  color: var(--ink);
}

/* Fee counter (dark section) */
.collect {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 28px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.7);
}

.collect-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.collect-head > div:nth-child(2) {
  margin-right: auto;
}

.collect-head b {
  display: block;
  font-size: 18px;
}

.collect-head small {
  color: var(--text-2);
  font-size: 15px;
}

.collect-head kbd {
  background: var(--white);
  border-color: var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--sky);
  color: var(--sky-deep);
  font-weight: 800;
}

.collect-hint {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-3);
}

.collect .months button {
  height: 52px;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}

.collect .months button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.collect .months button.o {
  border-color: var(--coral-deep);
  color: var(--coral-deep);
  background: #fff6f2;
}

.collect .months button.t {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}

.collect .months button.p {
  cursor: default;
}

.collect-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.collect-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.collect-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.collect-legend .p { background: var(--mint); }
.collect-legend .o { background: #fff6f2; box-shadow: inset 0 0 0 1.5px var(--coral-deep); }
.collect-legend .t { background: var(--brass); }

.collect-sum {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 15px;
}

.collect-sum .total b {
  font-family: var(--font-display);
  font-size: 26px;
}

.collect-btn {
  width: 100%;
  min-height: 56px;
  font-size: 17px;
}

.collect-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.collect-note {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}

.collect-note.done {
  color: var(--mint-deep);
}

/* Chat */
.chat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  height: 520px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.chat-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--brass);
}

.chat-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mint-deep);
}

.chat-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-deep);
  animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
  50% { opacity: 0.3; }
}

.chat-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.chat-body .bubble {
  animation: fadeUp 0.5s var(--ease) both;
}

.chat-body .bubble.q {
  align-self: flex-end;
}

.chat-body .bubble.a {
  align-self: flex-start;
}

.thinking {
  display: inline-flex;
  gap: 5px;
  padding: 16px 18px;
}

.thinking i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: blink 1.2s infinite;
}

.thinking i:nth-child(2) { animation-delay: 0.15s; }
.thinking i:nth-child(3) { animation-delay: 0.3s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.mini-table {
  margin-top: 10px;
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.mini-table div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--paper);
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 16px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: var(--cream);
  font-weight: 500;
  color: var(--text-2);
  min-height: 56px;
}

.chat-input span:first-child {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-send {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  flex: none;
}

/* Phones */
.phones {
  position: relative;
  height: 600px;
}

.phone {
  position: absolute;
  width: 280px;
  height: 570px;
  padding: 14px;
  border-radius: 44px;
  background: var(--cream);
  box-shadow: inset 0 0 0 9px #0b1f19, var(--shadow-lg);
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: hidden;
}

.phone::before {
  content: "";
  justify-self: center;
  width: 90px;
  height: 24px;
  border-radius: 20px;
  background: #000;
  margin-bottom: -4px;
}

.phone > * {
  margin-inline: 2px;
}

.phone-back {
  left: 0;
  top: 30px;
  rotate: -6deg;
  opacity: 0.95;
}

.phone-front {
  right: 0;
  top: 0;
  rotate: 4deg;
  animation: bob 7s ease-in-out infinite;
}

.ph-top {
  display: grid;
  gap: 2px;
  padding: 18px 16px;
  border-radius: 24px 24px 14px 14px;
  background: var(--sky-deep);
  color: var(--white);
}

.ph-top.ph-green {
  background: var(--ink-3);
}

.ph-top small {
  font-size: 13px;
  opacity: 0.85;
}

.ph-top b {
  font-size: 19px;
}

.ph-card {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--white);
  font-size: 14px;
}

.ph-card small {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.ph-card.ph-hl {
  background: var(--brass-soft);
}

.route-sm {
  padding: 10px 4px 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a {
    padding: 8px 10px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .india {
    grid-template-columns: 1fr;
  }

  .india ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .day-step {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 12px;
    font-size: 17px;
  }

  .nav-signin {
    display: none;
  }

  .nav-signin-mobile {
    display: block;
  }

  .nav-toggle {
    display: grid;
  }

  .hero-grid,
  .role-panel,
  .fees-grid,
  .ai-grid,
  .app-grid,
  .pricing-grid,
  .faq-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid .section-head {
    position: static;
  }

  .hero-art {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }

  .day-grid {
    grid-template-columns: 1fr;
  }

  .day-clock {
    top: 84px;
    z-index: 5;
    grid-template-columns: 1fr;
  }

  .clock-face {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
  }

  .clock-time {
    font-size: 40px;
  }

  .day-progress {
    display: none;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .b-card,
  .b-money,
  .b-people {
    grid-column: span 1;
  }

  .b-office {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }

  .phones {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .announce {
    font-size: 14px;
  }

  .nav-cta .btn-sm {
    padding: 0 14px;
  }

  .nav-logo img {
    height: 28px;
  }

  .hero-art {
    padding: 30px 0 70px;
  }

  .slate {
    transform: none;
    animation: none;
  }

  .slate-grid {
    grid-template-columns: 1fr;
  }

  .tile-bus,
  .tile-needs {
    display: none;
  }

  .toast {
    max-width: 250px;
    padding: 10px 12px 10px 10px;
  }

  .toast-1 {
    top: 0;
    right: 0;
  }

  .toast-3 {
    display: none;
  }

  .bell-badge {
    width: 50px;
    height: 50px;
    padding: 9px;
    top: 4px;
    left: -6px;
  }

  .role-visual {
    min-height: 240px;
    padding: 20px;
  }

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

  .mk-float.mk-2 {
    left: 12px;
    right: 12px;
  }

  .bento,
  .trust-grid,
  .india ul,
  .form-row {
    grid-template-columns: 1fr;
  }

  .b-card {
    padding: 24px;
  }

  .customer-wall:not(.scrolling) .customer {
    width: 100%;
    min-width: 0;
  }

  .months {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .phones {
    height: 520px;
  }

  .phone {
    width: 230px;
    height: 490px;
    border-radius: 36px;
  }

  .phone-back {
    left: 0;
  }

  .phone-front {
    right: 0;
  }

  .chat {
    height: 480px;
  }

  .steps li {
    grid-template-columns: 48px 1fr;
  }

  .steps > li > b {
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
