/* ==========================================================================
   /realtors — page-specific styles. Loaded after base.css and future.css.
   ========================================================================== */


/* Hero ------------------------------------------------------------------ */
.rl-hero { padding-bottom: clamp(3rem, 6vw, 5rem); }
.rl-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.page-realtors .rl-hero h1 { font-size: clamp(2.6rem, 4.7vw, 4.4rem); max-width: 13ch; }
.rl-hero .lede { max-width: 46ch; }
.rl-hero .hero-cta { margin-top: 1.8rem; gap: 1rem; flex-wrap: wrap; }
.rl-hero .hero-cta .btn-ghost { border: 1px solid var(--border-strong); padding-inline: 1.35rem; margin-left: 0; }
.rl-hero .hero-note { margin-top: 1rem; }

.rl-facts {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 1rem clamp(1.25rem, 3vw, 2.25rem);
  margin: 2rem 0 0; padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}
.rl-facts li { display: grid; gap: .2rem; }
.rl-facts b { font-size: 1.55rem; font-weight: 550; letter-spacing: -.045em; line-height: 1.1; }
.rl-facts li > span { font: .68rem/1.4 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); }

/* Device frames ---------------------------------------------------------- */
.rl-device { position: relative; padding: 0 0 2.5rem; min-width: 0; }
.rl-laptop {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
}
.rl-laptop__bar {
  display: flex; align-items: center; gap: 6px;
  padding: .55rem .8rem;
  border-bottom: 1px solid var(--border);
  font: .66rem var(--font-mono);
  color: var(--text-dim);
}
.rl-laptop__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex: none; }
.rl-laptop__bar span {
  margin-left: .6rem; flex: 1; min-width: 0;
  background: var(--surface-2); padding: .15rem .6rem; border-radius: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rl-laptop img { display: block; width: 100%; height: auto; }
.rl-phone {
  position: absolute; right: -.75rem; bottom: 0;
  width: 29%; max-width: 190px;
  border: 5px solid var(--bg-elev);
  outline: 1px solid var(--border-strong);
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.rl-phone img { display: block; width: 100%; height: auto; }

/* Examples --------------------------------------------------------------- */
.rl-example { display: flex; flex-direction: column; padding: 0; color: inherit; text-decoration: none; }
.rl-example img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid var(--border); }
.rl-example__body { display: grid; gap: .55rem; padding: 1.5rem 1.6rem 1.75rem; }
.rl-example__body .tag { margin: 0; }
.rl-example__body h3 { margin: 0; }
.rl-example__body p { color: var(--text-muted); font-size: .95rem; }
.rl-example__body .link-arrow { margin-top: .4rem; }

/* Examples: one column on a phone, two across from a tablet up. The photos have
   their titles baked in, so they must not be cropped. The columns are explicit
   because auto-fit lands on different counts depending on the width. */
.rl-examples { grid-template-columns: 1fr; }
@media (min-width: 700px) { .rl-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Features --------------------------------------------------------------- */
.rl-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rl-features .card h3 { margin-top: 1.1rem; }
.rl-features .card-list { margin-top: 1rem; }

/* Upgrade ---------------------------------------------------------------- */
.rl-upgrade {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.rl-upgrade:hover { transform: none; }
.rl-upgrade h2 { margin: .9rem 0 1rem; max-width: 14ch; }
/* At 320px the nowrap button label made this column wider than the card and clipped the text. */
.rl-upgrade__copy { min-width: 0; }
.rl-upgrade .btn { white-space: normal; }
.rl-order h2 { text-wrap: balance; }
.rl-upgrade .checks { margin-top: 1.4rem; }
.rl-upgrade .row { gap: .9rem; flex-wrap: wrap; }
.rl-equation { display: grid; gap: .7rem; min-width: 0; }
.rl-equation__box { border: 1px solid var(--border-strong); border-radius: 8px; padding: 1rem 1.15rem; background: var(--surface); }
.rl-equation__box .tag { display: block; margin: 0; }
.rl-equation__box b { display: block; margin-top: .35rem; font-weight: 500; font-size: .98rem; line-height: 1.45; }
.rl-equation__box--result { border-color: var(--accent-line); background: linear-gradient(140deg, var(--accent-soft), transparent 70%), var(--surface); }
.rl-equation__op { text-align: center; font: 500 1.6rem/1 var(--font-mono); color: var(--accent-2); }

/* Pricing + order -------------------------------------------------------- */
.rl-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.rl-order .price-card .price { margin: .9rem 0 .3rem; }
.rl-badge {
  justify-self: start; align-self: start; width: fit-content;
  display: inline-flex; align-items: center; gap: .5rem;
  margin: .25rem 0 .2rem; padding: .4rem .85rem;
  border: 1px solid var(--accent-line); border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-2);
  font-size: .8rem; font-weight: 600; line-height: 1.3;
}
.rl-badge svg { width: 15px; height: 15px; flex: none; }
.rl-order .card-foot { margin-top: 1.75rem; }

.rl-consent { grid-template-columns: auto 1fr; column-gap: .7rem; align-items: start; }
.rl-consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--accent-2); }
.rl-consent label { font-size: .9rem; font-weight: 450; line-height: 1.5; }
.rl-consent .field-error { grid-column: 1 / -1; }

/* Small screens ---------------------------------------------------------- */
@media (max-width: 1040px) { .rl-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 940px) {
  .rl-hero__grid, .rl-upgrade, .rl-order { grid-template-columns: 1fr; }
  .rl-device { max-width: 640px; }
  .rl-phone { right: 0; width: 26%; }
}
@media (max-width: 680px) {
  .rl-features { grid-template-columns: 1fr; }
  .page-realtors .rl-hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); max-width: 100%; }
  .rl-hero .hero-cta { flex-direction: column; align-items: stretch; }
  .rl-hero .hero-cta .btn { width: 100%; justify-content: center; }
  .rl-device { padding-bottom: 1.5rem; }
  .rl-phone { width: 30%; border-width: 4px; border-radius: 20px; }
}

/* Grid children may shrink below their content, so a long label cannot widen the page on a phone. */
.rl-order > * { min-width: 0; }
