/*
 * "From first listing to final commission" bento grid (#ecosystem).
 * Presentation only. Each tile holds a small self-playing UI demo driven by landing-bento.js.
 * Default (no JS / reduced motion) = every demo shown in its finished state.
 */
.rd-bento {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0;
  background:
    radial-gradient(40% 50% at 8% 0%, rgba(25, 166, 108, 0.1), transparent 70%),
    radial-gradient(40% 50% at 96% 100%, rgba(96, 165, 250, 0.1), transparent 70%),
    #fff;
}

.rd-bento__container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }

.rd-bento__header { max-width: 720px; margin: 0 0 clamp(32px, 5vw, 56px); }
.rd-bento__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(25, 166, 108, 0.1);
  border: 1px solid rgba(25, 166, 108, 0.22);
  color: #0f6b46;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rd-bento__title {
  margin: 16px 0 14px;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0b1f18;
}
.rd-bento__title span {
  background: linear-gradient(120deg, #0f6b46, #19a66c 60%, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.rd-bento__lead { margin: 0; max-width: 58ch; color: #5f7a70; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.7; }

/* ---------- Grid ---------- */
.rd-bento__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.rd-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(11, 31, 24, 0.08);
  box-shadow: 0 1px 2px rgba(11, 31, 24, 0.04), 0 18px 44px rgba(11, 31, 24, 0.07);
  overflow: hidden;
}
.rd-tile--listing { grid-column: 1 / span 7; grid-row: span 2; background: linear-gradient(180deg, #f3fbf7, #fff 60%); }
.rd-tile--buyers { grid-column: 8 / span 5; }
.rd-tile--match { grid-column: 8 / span 5; background: linear-gradient(145deg, #0f6b46, #0b3b2a); color: #fff; border-color: transparent; }
.rd-tile--visits { grid-column: 1 / span 4; }
.rd-tile--money { grid-column: 5 / span 4; }
.rd-tile--share { grid-column: 9 / span 4; }

.rd-tile__copy h3 {
  margin: 0 0 6px;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: inherit;
}
.rd-tile__copy p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: #5f7a70; }
.rd-tile--match .rd-tile__copy p { color: rgba(232, 245, 239, 0.78); }
.rd-tile__viz { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 150px; }

/* ---------- 1. Listing form ---------- */
.rd-prop { width: min(100%, 440px); display: grid; gap: 12px; }
.rd-prop__photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rd-prop__photos i {
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(135deg, #cfeedd, #9bd9b8);
  position: relative;
}
.rd-prop__photos i::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 24%;
  height: 34%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.7);
  clip-path: polygon(0 100%, 35% 30%, 55% 65%, 75% 20%, 100% 100%);
}
.rd-prop__photos i:nth-child(2) { background: linear-gradient(135deg, #d6e9ff, #a9ccf5); }
.rd-prop__photos i:nth-child(3) { background: linear-gradient(135deg, #ffe7c2, #f8c97f); }
.rd-prop__photos i:nth-child(4) { background: linear-gradient(135deg, #f5d8ec, #e7a9d3); }
.rd-prop__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(11, 31, 24, 0.1);
  box-shadow: 0 4px 14px rgba(11, 31, 24, 0.05);
}
.rd-prop__field span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7b948a; }
.rd-prop__field b { font-size: 0.95rem; font-weight: 700; color: #0b1f18; min-height: 1.2em; }
.rd-prop__ok {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0f6b46, #19a66c);
  box-shadow: 0 8px 20px rgba(25, 166, 108, 0.35);
}

/* ---------- 2. Buyers list ---------- */
.rd-buyers { width: 100%; height: 188px; overflow: hidden; border-radius: 18px; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.rd-buyers__track { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.rd-buyer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(11, 31, 24, 0.08);
  box-shadow: 0 6px 16px rgba(11, 31, 24, 0.06);
}
.rd-buyer__av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 0.82rem; font-weight: 800; color: #0f6b46; background: #e3f6ec; }
.rd-buyer:nth-child(4n+2) .rd-buyer__av { color: #1d4ed8; background: #e0ecff; }
.rd-buyer:nth-child(4n+3) .rd-buyer__av { color: #b45309; background: #ffeccd; }
.rd-buyer:nth-child(4n+4) .rd-buyer__av { color: #a21caf; background: #f9e1f6; }
.rd-buyer__t { min-width: 0; flex: 1; }
.rd-buyer__t strong { display: block; font-size: 0.9rem; color: #0b1f18; }
.rd-buyer__t span { font-size: 0.78rem; color: #6a8379; }
.rd-buyer__tag { flex: none; font-size: 0.68rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; color: #0f6b46; background: #e3f6ec; }

/* ---------- 3. Auto-match ---------- */
.rd-match { position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.rd-chip {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rd-chip small { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8be9bf; margin-bottom: 3px; }
.rd-chip strong { font-size: 0.9rem; line-height: 1.3; color: #fff; }
.rd-match__core { position: relative; display: grid; place-items: center; width: 54px; height: 54px; }
.rd-match__badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #0f6b46;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.rd-match__badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rd-match__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(139, 233, 191, 0.8); opacity: 0; }
.rd-match__label {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0b3b2a;
  background: #8be9bf;
}

/* ---------- 4. Site visits ---------- */
.rd-visit { width: 100%; display: grid; gap: 12px; }
.rd-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.rd-week span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6a8379;
  background: #f3f7f5;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.rd-week span.is-on { color: #fff; background: linear-gradient(135deg, #0f6b46, #19a66c); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(25, 166, 108, 0.35); }
.rd-visit__row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #f3fbf7; border: 1px solid rgba(25, 166, 108, 0.2); }
.rd-visit__bell { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #0f6b46; box-shadow: 0 4px 12px rgba(11, 31, 24, 0.1); }
.rd-visit__bell svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rd-visit__row strong { display: block; font-size: 0.88rem; color: #0b1f18; }
.rd-visit__row span { font-size: 0.78rem; color: #6a8379; }

/* ---------- 5. Commissions ---------- */
.rd-money { width: 100%; display: grid; gap: 10px; }
.rd-money__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rd-money__top small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6a8379; }
.rd-money__top b { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: #0b1f18; }
.rd-bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; }
.rd-bars i { flex: 1; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #34d399, #19a66c); transform-origin: 50% 100%; }
.rd-bars i:nth-child(odd) { background: linear-gradient(180deg, #a7e8cb, #6fcf9f); }
.rd-money__legend { display: flex; gap: 14px; font-size: 0.76rem; font-weight: 600; color: #6a8379; }
.rd-money__legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #19a66c; }
.rd-money__legend span + span::before { background: #a7e8cb; }

/* ---------- 6. Share ---------- */
.rd-share { position: relative; width: 100%; display: grid; gap: 12px; }
.rd-share__chips { display: flex; gap: 8px; }
.rd-share__chips span {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4b635a;
  background: #f3f7f5;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.rd-share__chips span.is-on { color: #0f6b46; background: #e3f6ec; border-color: rgba(25, 166, 108, 0.5); transform: translateY(-2px); }
.rd-share__bubble {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0f6b46, #19a66c);
  box-shadow: 0 10px 24px rgba(25, 166, 108, 0.35);
}
.rd-share__bubble svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .rd-tile--listing { grid-column: 1 / -1; grid-row: auto; }
  .rd-tile--buyers,
  .rd-tile--match { grid-column: span 6; }
  .rd-tile--visits,
  .rd-tile--money { grid-column: span 6; }
  .rd-tile--share { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .rd-bento__grid { grid-template-columns: 1fr; }
  .rd-tile--listing,
  .rd-tile--buyers,
  .rd-tile--match,
  .rd-tile--visits,
  .rd-tile--money,
  .rd-tile--share { grid-column: 1 / -1; }
  .rd-match { grid-template-columns: 1fr; justify-items: stretch; }
  .rd-match__core { justify-self: center; }
}
