/* What it does: zenpayoff's white cards, each scene in a green gradient panel; the short features as a ruled grid. */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 22px; padding: 28px; }
.tile:first-child { grid-column: span 2; flex-direction: row; align-items: center; }
.tile:first-child .tile__txt { flex: 1; }
.tile:first-child .tile__panel { flex: 1.15; }
.tile__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-green-tint); color: var(--c-green-text); font-size: 1.45rem; }
.tile h3 { margin-block: 14px 6px; font-weight: 600; font-size: var(--fs-title); line-height: 1.35; }
.tile p { color: var(--c-slate); font-size: 1.02rem; line-height: 1.85; }
.tile__panel { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 200px; padding: 22px; margin-block-start: auto; }

/* the white fragments inside a panel */
.duet__in, .duet__out, .duet__said, .toggle, .week, .doc, .snap, .leadcard, .hand__alert, .hand__m {
  position: relative;
  background: var(--c-white);
  border-radius: 14px;
  box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--c-ink) 55%, transparent);
}

/* voice: the customer's note, its words, the bot's voice reply */
.duet { display: grid; gap: 8px; }
.duet__in, .duet__out { display: flex; align-items: center; gap: 8px; padding: 8px 12px; max-width: 300px; }
.duet__in { justify-self: end; background: var(--c-bubble); }
.duet__out { justify-self: start; }
.duet__ava, .duet__play { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; font-size: .95rem; }
.duet__ava { background: color-mix(in srgb, var(--c-chat-meta) 70%, var(--c-white)); color: var(--c-white); }
.duet__play { background: var(--grad-btn); color: var(--c-white); }
.duet__len { font-size: .72rem; color: var(--c-chat-meta); }
.duet__said { justify-self: end; max-width: 300px; padding: 6px 12px; font-size: .86rem; color: var(--c-slate); }
.wave--grey { color: color-mix(in srgb, var(--c-chat-meta) 60%, transparent); }
.wave--blue { color: var(--c-green-text); }
.toggle { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; font-size: .86rem; }
.toggle__sw { position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--c-green-mid); }
.toggle__sw i { position: absolute; inset-block-start: 2px; inset-inline-end: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-white); }

/* booking: three days, the slot moved */
.week { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.week__col { display: grid; gap: 6px; align-content: start; }
.week__d { font-size: .82rem; font-weight: 600; text-align: center; }
.week__slot { display: block; height: 26px; border-radius: 8px; background: var(--c-paper); }
.week__slot.is-off { background: repeating-linear-gradient(135deg, var(--c-paper) 0 5px, var(--c-white) 5px 9px); }
.week__slot--from, .week__slot--to { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: .78rem; height: 26px; }
.week__slot--from { background: var(--c-paper); color: var(--c-mute); text-decoration: line-through; }
.week__slot--to { background: var(--grad-btn); color: var(--c-white); font-weight: 600; }
.week__slot--to .icon { font-size: .95rem; }
.week__path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.week__path path { fill: none; stroke: var(--c-green-text); stroke-width: 1.5; stroke-dasharray: .03 .02; vector-effect: non-scaling-stroke; }

/* reading: the photo, the PDF read */
.tile--read .tile__panel { flex-direction: row; align-items: center; }
.snap { flex: none; width: 46%; overflow: hidden; padding: 4px; }
.snap__img { display: block; width: 100%; height: auto; border-radius: 10px; }
.snap__ring { position: absolute; inset-block-start: 22%; inset-inline: 26%; height: 44%; border: 2px dashed var(--c-white); border-radius: 50%; }
.doc { flex: 1; display: grid; gap: 6px; padding: 12px; overflow: hidden; }
.doc__tag { justify-self: start; padding: 0 8px; border-radius: 5px; background: var(--c-red); color: var(--c-white); font-size: .7rem; font-weight: 600; line-height: 1.7; }
.doc i { display: block; height: 6px; border-radius: 3px; background: var(--c-paper); }
.doc i.is-hit { background: color-mix(in srgb, var(--c-green) 35%, var(--c-white)); }
.doc__beam { display: none; }
.doc__ok { display: inline-flex; align-items: center; gap: 4px; margin-block-start: 4px; color: var(--c-green-text); font-size: .82rem; font-weight: 600; }

/* the lead: fields gathered, one still missing */
.leadcard { margin: 0; padding: 6px 14px; }
.leadcard div { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; border-block-end: 1px solid var(--c-line); font-size: .9rem; }
.leadcard div:last-child { border: 0; }
.leadcard dt { color: var(--c-mute); }
.leadcard dd { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; }
.leadcard dd .icon { color: var(--c-green-text); }
.leadcard .is-missing dd { padding: 0 10px; border-radius: 8px; background: var(--c-amber-tint); color: var(--c-amber); }

/* hand-over: the alert, the customer's words, the team's reply */
.hand { display: grid; gap: 8px; }
.hand__alert { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: .86rem; }
.hand__alert b { display: block; font-weight: 600; }
.hand__ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--c-amber-tint); color: var(--c-amber); font-size: 1.1rem; }
.hand__m { padding: 7px 12px; font-size: .86rem; max-width: 90%; }
.hand__m--out { justify-self: end; background: var(--c-bubble); }
.hand__m--team { justify-self: start; }
.hand__tag { display: inline-block; margin-inline-end: 6px; padding: 0 8px; border-radius: var(--r-pill); background: var(--c-ink); color: var(--c-white); font-size: .68rem; line-height: 1.7; }

/* the short features: a ruled grid */
.ledger { margin-block-start: 56px; }
.ledger__h { margin-block-end: 22px; font-size: var(--fs-title); font-weight: 400; text-align: center; }
.ledger__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; border: 1px solid var(--c-line); border-radius: var(--r-card); background: var(--c-white); overflow: hidden; }
.row { display: flex; gap: 14px; padding: 22px; border-block-end: 1px solid var(--c-line); border-inline-end: 1px solid var(--c-line); }
.row:nth-child(4n) { border-inline-end: 0; }
.row:nth-last-child(-n + 4) { border-block-end: 0; }
.row__g { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--c-green-tint); color: var(--c-green-text); font-size: 1.25rem; }
.row__dots { display: inline-flex; gap: 3px; }
.row__dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.row__b { display: grid; gap: 4px; }
.row__t { font-weight: 600; font-size: 1.05rem; }
.row__p { color: var(--c-slate); font-size: .95rem; line-height: 1.8; }

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:first-child { grid-column: span 2; }
  .ledger__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row:nth-child(4n) { border-inline-end: 1px solid var(--c-line); }
  .row:nth-child(2n) { border-inline-end: 0; }
  .row:nth-last-child(-n + 4) { border-block-end: 1px solid var(--c-line); }
  .row:nth-last-child(-n + 2) { border-block-end: 0; }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile:first-child { grid-column: auto; flex-direction: column; align-items: stretch; padding: 20px; }
  .ledger__list { grid-template-columns: minmax(0, 1fr); }
  .row, .row:nth-child(2n), .row:nth-child(4n) { border-inline-end: 0; }
  .row:nth-last-child(-n + 2) { border-block-end: 1px solid var(--c-line); }
  .row:last-child { border-block-end: 0; }
}
