/* Rapid House Buyer additions on top of the vendored Properfy template
   (assets/properfy/css/main.css, reskinned light+orange but otherwise kept
   close to upstream). Kept deliberately small and namespaced, same pattern
   as the previous vendored system's rhb-extra.css. Loads after main.css. */

/* Hero pill's star-rating variant */
.pill--rating .i { color: var(--sun); }

/* Roofline brand mark (header logo, hero banner, thank-you page) */
.roofline { width: 1.8em; height: 1.8em; overflow: visible; }
.roofline__path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset 1.1s ease; }
.logo:hover .roofline__path { transition: none; }

/* ── Situation picker (hero "banner-card") ──────────────────────────────── */

.situation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.situation-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.1rem;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-radius: 14px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.situation-pill:hover { background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.situation-pill[aria-pressed="true"] { background: var(--coral); box-shadow: none; color: #fff; }

.situation-panel {
  margin-top: 1rem;
  padding: 1.5rem 1.6rem;
  border-radius: 18px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.situation-panel.is-visible { opacity: 1; transform: none; }
.situation-panel__title { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 0.5em; }
.situation-panel__text { color: var(--fg-2); line-height: 1.65; margin-bottom: 1.1em; }
.situation-panel__timeline { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.situation-panel__timeline span { font-size: 0.75rem; font-weight: 750; color: var(--coral-deep); background: rgba(234, 88, 12, 0.1); border-radius: 999px; padding: 0.35rem 0.8rem; }

@media (max-width: 480px) {
  .situation-grid { grid-template-columns: 1fr; }
}

/* ── Cookie banner ───────────────────────────────────────────────────────── */

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(24, 24, 27, 0.06);
  padding: 1em 1.5em;
  display: flex; align-items: center; gap: 1.5em; flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { flex: 1; min-width: 240px; font-size: 0.85rem; color: var(--fg-2); margin: 0; }
.cookie-banner a { color: var(--coral-deep); text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 0.6em; flex-shrink: 0; }

/* ── "Get My Free Cash Offer" modal (homepage/situation CTAs open the
   get-started.html flow as an iframe instead of navigating away) ────────── */

.flow-modal { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; padding: 2.5em 1.25em; }
.flow-modal[hidden] { display: none; }
.flow-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 21, 28, 0.55); backdrop-filter: blur(3px); }
.flow-modal__panel {
  position: relative; width: 100%; max-width: 60em; height: min(44em, 100%);
  background: #ffffff; border-radius: 20px; box-shadow: 0 2em 5em -1em rgba(24, 24, 27, 0.35);
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.flow-modal.is-visible .flow-modal__panel { opacity: 1; transform: none; }
.flow-modal__close {
  position: absolute; top: 0.9em; right: 0.9em; z-index: 2;
  width: 2.3em; height: 2.3em; padding: 0; border-radius: 50%;
  background: var(--tint-2); border: 0;
  color: var(--fg); display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color 0.2s ease;
}
.flow-modal__close:hover { background: var(--line-2); }
.flow-modal__close svg { width: 1em; height: 1em; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.flow-modal__frame { width: 100%; height: 100%; border: 0; display: block; background: #ffffff; }
body.flow-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .flow-modal { padding: 0; }
  .flow-modal__panel { max-width: none; width: 100%; height: 100%; border-radius: 0; }
}
