/* Interactive homepage pieces. Loaded after style.css. */

/* Hero search */
.search-card {
  background: #fff; color: var(--ink); border-radius: 24px; padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 10, 80, 0.3); margin-top: 28px; max-width: 560px;
}
.search-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label {
  display: block; font-size: 0.78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px;
}
.field select, .field input[type=text] {
  width: 100%; font: inherit; font-size: 0.98rem; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background-color: #fff; color: var(--ink); appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230b1033' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--blue); }
.budget { margin-top: 14px; }
.budget-top { display: flex; justify-content: space-between; align-items: baseline; }
.budget-value { font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--blue); }
input[type=range] { width: 100%; accent-color: var(--blue); margin: 8px 0 4px; height: 28px; }
.range-ends { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
.search-card .btn { width: 100%; justify-content: center; margin-top: 16px; }
.hint { font-size: 0.82rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
@media (max-width: 480px) { .search-card .row { grid-template-columns: 1fr; } }

/* Phone demo */
.phone {
  width: 300px; max-width: 100%; margin: 0 auto; background: #0b1033; border-radius: 42px; padding: 12px;
  box-shadow: 0 30px 70px rgba(0, 10, 80, 0.45);
}
.phone-screen { background: #fff; border-radius: 32px; overflow: hidden; }
.tour {
  position: relative; aspect-ratio: 9 / 11; width: 100%; border: 0; font: inherit; color: #fff; cursor: pointer;
  background: linear-gradient(160deg, #1b2a8f, #0225ff 60%, #8749fb); display: grid; place-items: center;
}
.tour .play {
  width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, 0.95);
  display: grid; place-items: center; transition: transform 0.2s ease, opacity 0.2s ease;
}
.tour:hover .play { transform: scale(1.08); }
.tour .play::after {
  content: ''; border-left: 20px solid var(--blue); border-top: 12px solid transparent;
  border-bottom: 12px solid transparent; margin-left: 5px;
}
.tour .badge {
  position: absolute; top: 14px; left: 14px; background: rgba(0, 0, 0, 0.35); padding: 5px 10px;
  border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
}
.tour .scene {
  position: absolute; bottom: 18px; left: 16px; right: 16px; font-weight: 700; font-size: 1.05rem;
  text-align: left; min-height: 1.4em;
}
.tour .progress { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--orange); width: 0; }
.tour.playing .play { opacity: 0; transform: scale(0.6); }
.listing-info { padding: 16px 18px 20px; }
.listing-info .ref { font-size: 0.75rem; font-weight: 700; color: var(--muted); letter-spacing: 0.05em; }
.listing-info h4 { font-family: var(--head); font-size: 1.15rem; margin: 4px 0 10px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 0.85rem; }
.checks li { display: flex; align-items: center; gap: 6px; color: #9aa0b8; transition: color 0.3s ease; }
.checks li::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; flex: none;
  transition: all 0.3s ease;
}
.checks li.done { color: var(--green); font-weight: 600; }
.checks li.done::before { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px #fff; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
.example-note { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* Tabs */
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 36px; }
.tab {
  border: 0; background: transparent; font: inherit; font-weight: 700; padding: 11px 22px; border-radius: 999px;
  color: var(--muted); cursor: pointer; transition: all 0.2s ease;
}
.tab[aria-selected=true] { background: var(--blue); color: #fff; }
.tab-panel[hidden] { display: none; }

/* Savings calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-inputs { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.calc-inputs .field + .field { margin-top: 22px; }
.calc-result { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.calc-result h3 { margin-bottom: 8px; }
.row-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.row-line span:last-child { font-weight: 700; white-space: nowrap; text-align: right; }
.row-line .was { text-decoration: line-through; opacity: 0.55; font-weight: 500; margin-right: 8px; }
.row-line .now { color: #7dffb8; }
.savings { margin-top: auto; padding-top: 22px; }
.savings small { color: rgba(255, 255, 255, 0.7); display: block; }
.savings strong { font-family: var(--head); font-size: clamp(2.2rem, 5vw, 3rem); color: var(--orange); line-height: 1.1; }
.calc-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* Area chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px;
  font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); transition: all 0.2s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.chip.soon { border-style: dashed; color: var(--muted); cursor: default; }
.chip.soon:hover { transform: none; border-color: var(--line); color: var(--muted); }

/* Landlord form */
.landlord-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--ink); color: #fff; border-radius: 32px; padding: 48px;
}
.landlord-box p { color: rgba(255, 255, 255, 0.8); }
.landlord-box .field label { color: rgba(255, 255, 255, 0.7); }
.landlord-box form {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px; padding: 24px; display: grid; gap: 14px;
}
.landlord-box .btn { justify-content: center; border: 0; cursor: pointer; font-family: inherit; }
@media (max-width: 860px) { .landlord-box { grid-template-columns: 1fr; padding: 32px 22px; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--blue); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 22px; }

/* Floating WhatsApp button */
.float-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); transition: transform 0.2s ease;
}
.float-wa:hover { transform: scale(1.07); }
.float-wa svg { width: 32px; height: 32px; }

/* Scroll reveal (only when JavaScript is running) */
/* .reveal-on is set by app.js once the observer is running, so a script error never hides content. */
.reveal-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Hero search card v3: tabs, pickers, live WhatsApp preview */
.search-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-alt); border-radius: 14px; padding: 4px; margin-bottom: 18px; }
.stab {
  border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 0.95rem; padding: 11px 8px;
  border-radius: 11px; color: var(--muted); cursor: pointer; transition: all 0.2s ease;
}
.stab[aria-selected=true] { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(11, 16, 51, 0.08); }
.area-pill {
  display: inline-flex; align-items: center; gap: 4px; background: var(--blue-soft); color: var(--blue);
  font-weight: 700; font-size: 0.9rem; padding: 8px 14px; border-radius: 999px; margin-bottom: 16px;
}
.area-pill span { color: var(--muted); font-weight: 500; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button, .quick button {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 0.88rem; font-weight: 600;
  padding: 8px 13px; border-radius: 999px; cursor: pointer; transition: all 0.15s ease;
}
.pick button:hover, .quick button:hover { border-color: var(--blue); color: var(--blue); }
.pick button[aria-checked=true], .quick button.on { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.03); }
.quick { display: flex; gap: 8px; margin-top: 6px; }
.quick button { flex: 1; padding: 7px 6px; font-size: 0.82rem; }
.wa-preview { margin-top: 16px; background: #efeae2; border-radius: 14px; padding: 12px 12px 14px; }
.wa-label { display: block; font-size: 0.72rem; font-weight: 700; color: #667; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.bubble {
  position: relative; margin-left: auto; max-width: 92%; width: fit-content; background: #d9fdd3; color: #111b21;
  border-radius: 10px 0 10px 10px; padding: 8px 12px; font-size: 0.9rem; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); transition: transform 0.15s ease;
}
.bubble::after { content: ''; position: absolute; right: -8px; top: 0; border-left: 8px solid #d9fdd3; border-bottom: 8px solid transparent; }
.bubble.pop { transform: scale(1.03); }
.list-intro { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
#find-panel .btn, #list-panel .btn { width: 100%; justify-content: center; margin-top: 14px; }

/* Hero visual with floating badges */
.hero-visual { position: relative; transition: transform 0.3s ease-out; transform-style: preserve-3d; }
.float-badge {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink);
  font-weight: 700; font-size: 0.9rem; padding: 10px 14px 10px 10px; border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 10, 80, 0.28); animation: bob 5s ease-in-out infinite; white-space: nowrap;
}
.float-badge .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 0.8rem; }
.float-badge.b1 { top: 9%; left: -34px; }
.float-badge.b2 { top: 46%; right: -26px; animation-delay: -1.7s; }
.float-badge.b3 { bottom: 9%; left: -18px; animation-delay: -3.3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 860px) {
  .float-badge.b1 { left: 8px; } .float-badge.b2 { right: 8px; } .float-badge.b3 { left: 8px; }
  .hero-visual { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .float-badge { animation: none; } .hero-visual { transition: none; } }

/* WhatsApp chat demo */
.wa-phone { width: 340px; }
.wa-screen { background: #efeae2; border-radius: 32px; overflow: hidden; height: 600px; display: flex; flex-direction: column; }
.wa-bar { background: #008069; color: #fff; display: flex; align-items: center; gap: 10px; padding: 14px 14px; }
.wa-bar img { width: 36px; height: 36px; border-radius: 50%; }
.wa-back { font-size: 26px; line-height: 1; }
.wa-name { font-weight: 700; font-size: 15px; }
.wa-status { font-size: 11.5px; opacity: 0.9; min-height: 1.2em; }
.wa-chat { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.5px; line-height: 1.42; color: #111b21; scroll-behavior: smooth; }
.wa-chat[hidden] { display: none; }
.wa-day { align-self: center; background: #fff; padding: 3px 10px; border-radius: 7px; font-size: 11px; color: #54656f; margin-bottom: 4px; }
.m { max-width: 84%; padding: 7px 10px; border-radius: 9px; box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13); }
.m.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0; }
.m.in { align-self: flex-start; background: #fff; border-top-left-radius: 0; }
.m.media { padding: 4px 4px 6px; font-size: 12.5px; }
.wa-btn { margin: 8px -10px -7px; border-top: 1px solid #e9edef; padding: 8px; text-align: center; color: #027eb5; font-weight: 600; }
.wa-video { width: 220px; height: 124px; border-radius: 6px; background: linear-gradient(160deg, #1b2a8f, #0225ff 60%, #8749fb); color: #fff; display: grid; place-items: center; font-size: 34px; margin-bottom: 4px; }
.wa-map { width: 200px; height: 100px; border-radius: 6px; background: linear-gradient(135deg, #cfe8c9, #e9e4d0 50%, #c9dfef); display: grid; place-items: center; font-size: 28px; margin-bottom: 4px; }
.wa-voice { display: inline-flex; align-items: center; gap: 8px; width: 190px; color: #54656f; }
.wa-voice i { flex: 1; height: 16px; background: repeating-linear-gradient(90deg, #8696a0 0 2px, transparent 2px 5px); }
.typing { align-self: flex-start; background: #fff; border-radius: 9px; padding: 10px 12px; display: inline-flex; gap: 4px; box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13); }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; } .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.js .wa-chat .m.wait { display: none; }
.wa-chat .m.show { animation: pop 0.25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.replay { cursor: pointer; background: transparent; font-family: inherit; }
@media (max-width: 400px) { .wa-phone { width: 100%; } .wa-screen { height: 560px; } }

/* Hero v4: WhatsApp chat is the main visual */
.hero .hero-grid {
  grid-template-columns: 1.1fr 0.9fr; grid-template-areas: 'text visual' 'search visual';
  row-gap: 0; align-items: start;
}
.hero-text { grid-area: text; align-self: end; }
.hero-search { grid-area: search; }
.hero-visual { grid-area: visual; justify-self: center; align-self: center; width: 340px; max-width: 100%; }
.hero-visual .wa-screen { height: 560px; }
.chat-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; }
.mini-tabs { display: inline-flex; background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 4px; }
.mtab {
  border: 0; background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: 0.9rem;
  padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: all 0.2s ease;
}
.mtab[aria-selected=true] { background: #fff; color: var(--blue); }
.replay-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.5); background: transparent; color: #fff; font: inherit; font-weight: 700;
  font-size: 0.9rem; padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.replay-btn:hover { background: rgba(255, 255, 255, 0.12); }
.hero-note { text-align: center; color: rgba(255, 255, 255, 0.7); font-size: 0.78rem; margin: 10px 0 0; }
.hero-visual .float-badge.b1 { top: 16%; left: -70px; }
.hero-visual .float-badge.b2 { top: 44%; right: -80px; }
.hero-visual .float-badge.b3 { top: 70%; left: -60px; bottom: auto; }
@media (max-width: 1100px) {
  .hero-visual .float-badge.b1, .hero-visual .float-badge.b3 { left: -24px; }
  .hero-visual .float-badge.b2 { right: -24px; }
}
@media (max-width: 860px) {
  .hero .hero-grid { grid-template-columns: 1fr; grid-template-areas: 'text' 'visual' 'search'; row-gap: 28px; }
  .hero-visual .wa-screen { height: 480px; }
  .hero-visual .float-badge { display: none; }
}

/* Why Rentleey: photo beside the cards */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: stretch; }
.why-photo { border-radius: 28px; overflow: hidden; min-height: 360px; }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-cards { display: grid; gap: 18px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } .why-photo { max-height: 420px; } }

/* Hero v4.1: badges under the headline, phone at the top */
.hero-visual { align-self: start; margin-top: 8px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hbadge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-weight: 700;
  font-size: 0.88rem; padding: 7px 14px 7px 7px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0, 10, 80, 0.25);
}
.hbadge .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 0.75rem; }
.hero .hero-grid { padding-top: 56px; }

/* Hero badges float gently, one after another */
.hbadge { animation: bob 4.5s ease-in-out infinite; }
.hbadge:nth-child(2) { animation-delay: -1.5s; }
.hbadge:nth-child(3) { animation-delay: -3s; }
@media (prefers-reduced-motion: reduce) { .hbadge { animation: none; } }

/* Line above the hero chat */
.wa-intro { text-align: center; color: #fff; margin-bottom: 16px; }
.wa-intro strong { display: block; font-family: var(--head); font-size: 1.45rem; line-height: 1.15; }
.wa-intro span { display: block; font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); margin-top: 6px; }

/* Hero spacing: headline starts at the top, no empty band */
.hero .hero-grid { padding-top: 40px; padding-bottom: 56px; }
.hero-text { align-self: start; }
.hero-visual { margin-top: 0; }
.wa-chat { scrollbar-width: none; }
.wa-chat::-webkit-scrollbar { display: none; }

/* The hero sets its own spacing; skip the general section padding */
section.hero { padding: 0; }

/* Video tour checklist: keep each item on one line */
.listing-info .checks { font-size: 0.8rem; gap: 6px 8px; }
.listing-info .checks li { white-space: nowrap; }

/* Landlord section pickers on the dark background */
.pick-dark button { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.pick-dark button:hover { border-color: #fff; color: #fff; }
.pick-dark button[aria-checked=true] { background: #fff; border-color: #fff; color: var(--blue); }
.landlord-box .wa-preview { margin-top: 2px; }
.landlord-box .wa-label { color: #667; }

/* ── How it works: sliding tab pill + steps that play 1 → 2 → 3 (app.js adds the classes) ── */
.tabs.has-pill { position: relative; }
.tabs.has-pill .tab { position: relative; z-index: 1; background: transparent; }
.tabs.has-pill .tab[aria-selected=true] { background: transparent; color: #fff; }
.tab-pill {
  position: absolute; top: 5px; bottom: 5px; left: 0; z-index: 0; border-radius: 999px; background: var(--blue);
  box-shadow: 0 6px 18px rgba(2, 37, 255, 0.25); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#how-it-works .steps-anim .card {
  position: relative; overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease, border-color 0.45s ease, opacity 0.6s ease;
}
#how-it-works .steps-anim .card.active { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(11, 16, 51, 0.12); border-color: transparent; }
#how-it-works .steps-anim .step-num { position: relative; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
#how-it-works .steps-anim .card.active .step-num { transform: scale(1.12) rotate(-6deg); }
#how-it-works .steps-anim .card.active .step-num::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; z-index: -1;
  animation: step-ring 1.6s ease-out infinite;
}
#how-it-works .step-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; transform: scaleX(0); transform-origin: left; }
#how-it-works .card.active .step-bar { animation: step-fill var(--step-ms, 3200ms) linear forwards; }
#how-it-works .steps-anim.paused .card.active .step-bar { animation-play-state: paused; }
#how-it-works .steps-anim .card.enter { animation: step-enter 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes step-ring { from { transform: scale(1); opacity: 0.45; } to { transform: scale(1.9); opacity: 0; } }
@keyframes step-fill { to { transform: scaleX(1); } }
@keyframes step-enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tab-pill { transition: none; }
  #how-it-works .steps-anim .card, #how-it-works .steps-anim .step-num { transition: none; }
  #how-it-works .steps-anim .card.active { transform: none; }
  #how-it-works .steps-anim .card.active .step-num { transform: none; }
  #how-it-works .steps-anim .card.active .step-num::after, #how-it-works .card.active .step-bar, #how-it-works .steps-anim .card.enter { animation: none; }
}

/* ── Why Rentleey: living photo, cards take turns, and a matching badge pops up on the photo (app.js) ── */
.why-anim .why-photo { position: relative; }
.why-anim .why-photo img { animation: why-zoom 14s ease-in-out infinite alternate; transform-origin: 60% 45%; }
@keyframes why-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.why-badge {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1;
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.94); color: var(--ink); font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 12px 30px rgba(11, 16, 51, 0.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(14px) scale(0.97); transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.why-badge.on { opacity: 1; transform: none; }
.why-badge .dot { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1rem; }
.why-badge small { display: block; color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.why-anim .why-cards .card {
  position: relative; overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.why-anim .why-cards .card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--blue));
  transform: scaleY(0); transform-origin: top; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.why-anim .why-cards .card.active { transform: translateX(6px); box-shadow: 0 16px 36px rgba(11, 16, 51, 0.1); border-color: transparent; }
.why-anim .why-cards .card.active::before { transform: scaleY(1); }
.why-anim .why-cards .card.active .step-num { animation: var(--icon-anim) 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.why-anim .why-cards .card.slide-in { animation: why-slide 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes why-slide { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
/* ✓ lands like a stamp, ₦ flips like a coin, ⌂ bounces with a glow */
@keyframes icon-stamp { 0% { transform: scale(1.6) rotate(-12deg); opacity: 0.4; } 60% { transform: scale(0.92) rotate(2deg); opacity: 1; } 100% { transform: none; } }
@keyframes icon-coin { from { transform: perspective(200px) rotateY(0); } to { transform: perspective(200px) rotateY(360deg); } }
@keyframes icon-home { 0%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(2, 37, 255, 0.35); } 35% { transform: translateY(-8px); } 60% { transform: none; box-shadow: 0 0 0 12px rgba(2, 37, 255, 0); } 80% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .why-anim .why-photo img, .why-anim .why-cards .card.active .step-num, .why-anim .why-cards .card.slide-in { animation: none; }
  .why-anim .why-cards .card, .why-anim .why-cards .card::before, .why-badge { transition: none; }
  .why-anim .why-cards .card.active { transform: none; }
}
.why-anim .why-cards .card.why-wait { opacity: 0; }

/* ── Savings calculator demo: the sliders move by themselves until the visitor takes over (app.js) ── */
.calc-hint {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-dark); font-size: 0.8rem; font-weight: 600;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.calc-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: hint-pulse 1.4s ease-in-out infinite; }
.calc-hint.off { opacity: 0; transform: translateY(-4px); }
@keyframes hint-pulse { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }

/* ── Video tour demo: a drawing for each checklist step; plays by itself when it scrolls into view (app.js) ── */
.tour-art { position: absolute; inset: 48px 0 64px; display: grid; place-items: center; pointer-events: none; }
.tour-art svg {
  grid-area: 1 / 1; width: 46%; max-width: 170px; overflow: visible;
  fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: scale(0.85); transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tour-art svg.on { opacity: 1; transform: none; }
.tour-art .solid { fill: #fff; stroke: none; }
.tour-art .soft { fill: rgba(255, 255, 255, 0.28); stroke: none; }
/* 1 gate swings open, road markings move */
.tour-art .gate-l { transform-origin: 22px 68px; }
.tour-art .gate-r { transform-origin: 98px 68px; }
.tour-art .on .gate-l, .tour-art .on .gate-r { animation: gate-open 1.6s ease-in-out infinite alternate; }
.tour-art .on .road { animation: road-move 0.8s linear infinite; }
@keyframes gate-open { from { transform: scaleX(1); } to { transform: scaleX(0.25); } }
@keyframes road-move { to { stroke-dashoffset: -22; } }
/* 2 highlight walks through the rooms */
.tour-art .on .room-light { animation: rooms 2.4s steps(1) infinite; }
@keyframes rooms { 0% { transform: translate(0, 0); } 25% { transform: translate(50px, 0); } 50% { transform: translate(50px, 40px); } 75% { transform: translate(0, 40px); } }
/* 3 handle dips, water swirls */
.tour-art .flush { transform-origin: 74px 26px; }
.tour-art .on .flush { animation: flush 1.6s ease-in-out infinite; }
.tour-art .swirl { transform-origin: 60px 62px; }
.tour-art .on .swirl { animation: swirl 1s linear infinite; }
@keyframes flush { 0%, 60%, 100% { transform: rotate(0); } 20%, 40% { transform: rotate(28deg); } }
@keyframes swirl { to { transform: rotate(360deg); } }
/* 4 drops fall from the tap */
.tour-art .on .drop { animation: drop 1.2s ease-in infinite; }
.tour-art .on .drop:nth-of-type(2) { animation-delay: 0.4s; }
.tour-art .on .drop:nth-of-type(3) { animation-delay: 0.8s; }
@keyframes drop { from { transform: translateY(0); opacity: 1; } to { transform: translateY(34px); opacity: 0; } }
/* 5 magnifier checks along the roof */
.tour-art .on .lens { animation: lens 2.4s ease-in-out infinite; }
@keyframes lens { 0%, 100% { transform: translate(30px, 54px); } 50% { transform: translate(60px, 30px); } 75% { transform: translate(88px, 54px); } }
/* 6 bolt pulses, light blinks */
.tour-art .bolt { transform-origin: 62px 80px; }
.tour-art .on .bolt { animation: bolt 1s ease-in-out infinite; }
.tour-art .on .led { animation: led 0.8s steps(1) infinite; }
@keyframes bolt { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes led { 50% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) {
  .tour-art svg { transition: none; }
  .tour-art .on * { animation: none !important; }
}
