/* ==========================================================================
   Homepage showcase (see home-showcase.js)
   ========================================================================== */

/* ---------- Rotating hero word ---------- */
.hero-rotate { display: inline-block; transition: opacity .3s ease, transform .3s ease; }
.hero-rotate.is-out { opacity: 0; transform: translateY(.25em); }
@media (prefers-reduced-motion: reduce) { .hero-rotate { transition: none; } }

/* ---------- Shared phone (same module as the previews) ---------- */
.ivx-phone-col { display: flex; flex-direction: column; align-items: center; gap: 12px; position: sticky; top: 96px; }
.ivx-phone {
  height: var(--iv-phone-h, clamp(440px, 58vh, 560px));
  width: calc((var(--iv-phone-h, clamp(440px, 58vh, 560px)) - 16px) * 375 / 812 + 16px);
  padding: 8px; box-sizing: border-box; border-radius: 44px;
  background: #1c1718; box-shadow: 0 28px 60px -12px rgba(22, 16, 17, .35);
}
.ivx-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #070707; }
.ivx-screen iframe, .ivx-mock-inner {
  position: absolute; left: 0; top: 0; width: 375px; height: 812px; border: 0;
  transform-origin: 0 0; transform: scale(var(--ivx-scale, .55));
}
.ivx-phone-caption { margin: 0; font: 600 12px/1.4 'Manrope', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #756259; }

/* ---------- Feature showcase ---------- */
.ivx-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: start; }
.ivx-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ivx-feature {
  display: flex; gap: 14px; align-items: flex-start; text-align: left;
  padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(22, 16, 17, .08);
  background: #fff; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ivx-feature:hover { transform: translateY(-2px); border-color: rgba(22, 16, 17, .2); }
.ivx-feature.active { border-color: var(--b-accent, #c4917a); box-shadow: 0 0 0 2px var(--b-accent, #c4917a), 0 12px 30px rgba(22, 16, 17, .08); }
.ivx-feature:focus-visible { outline: 2px solid var(--b-accent, #c4917a); outline-offset: 3px; }
.ivx-feature-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: #f6efe9; }
.ivx-feature-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ivx-feature-text strong { font: 600 15px/1.3 'Fraunces', Georgia, serif; }
.ivx-feature-text span { font: 400 13px/1.5 'Manrope', sans-serif; color: #6b5d57; }

/* ---------- How it works ---------- */
.ivx-how { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: start; }
.ivx-how .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.ivx-how .step-card { cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.ivx-how .step-card.active { border-color: var(--b-accent, #c4917a) !important; box-shadow: 0 0 0 2px var(--b-accent, #c4917a), 0 12px 30px rgba(22, 16, 17, .08); }
.ivx-how .step-card:focus-visible { outline: 2px solid var(--b-accent, #c4917a); outline-offset: 3px; }

/* Step screens (drawn at 375×812) */
.ivx-mock { background: #faf7f3; }
.ivx-mock-inner { padding: 64px 24px 32px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; font-family: 'Manrope', sans-serif; color: #2b211f; background: #faf7f3; }
.m-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.m-head span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #9a7b6c; font-weight: 700; }
.m-head strong { font: 500 30px/1.15 'Fraunces', Georgia, serif; }
.m-chips { display: grid; gap: 10px; }
.m-chip { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid #eadfd7; font-size: 18px; font-weight: 600; }
.m-chip span { font-size: 22px; }
.m-chip b { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #2b211f; color: #fff; font-size: 14px; }
.m-chip.on { border-color: #c4917a; box-shadow: 0 0 0 2px #c4917a; }
.m-btn { margin-top: auto; padding: 18px; border-radius: 999px; background: #2b211f; color: #fff; text-align: center; font-weight: 700; font-size: 17px; }
.m-btn.m-ghost { background: transparent; border: 1.5px solid #2b211f; color: #2b211f; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-poster { position: relative; aspect-ratio: 9 / 14; border-radius: 16px; background: #ddd center / cover; overflow: hidden; display: flex; align-items: flex-end; }
.m-poster::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .7)); }
.m-poster span { position: relative; padding: 12px; color: #fff; font: 500 15px/1.2 'Fraunces', serif; }
.m-poster b { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #2b211f; }
.m-poster.on { box-shadow: 0 0 0 3px #c4917a; }
.m-form { display: grid; gap: 12px; }
.m-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9a7b6c; font-weight: 700; }
.m-form label span { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #eadfd7; color: #2b211f; font-size: 17px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.m-preview { position: relative; flex: 1; min-height: 220px; border-radius: 20px; background: #ccc center / cover; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 20px; overflow: hidden; }
.m-preview::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .65)); }
.m-preview span { position: relative; color: #fff; font: 400 34px/1 'Fraunces', serif; font-style: italic; }
.m-preview small { position: relative; color: #fff; opacity: .85; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-top: 8px; }
.m-card { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid #eadfd7; display: grid; gap: 12px; }
.m-row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.m-total { padding-top: 12px; border-top: 1px solid #eadfd7; font-weight: 700; }
.m-total strong { font-size: 24px; }
.m-iban small { font-size: 12px; letter-spacing: .18em; color: #9a7b6c; font-weight: 700; }
.m-iban span { font-size: 19px; letter-spacing: .08em; font-weight: 600; }
.m-ok { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px; border-radius: 20px; background: #eef7f0; }
.m-ok b { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #2e7d4f; color: #fff; font-size: 26px; margin-bottom: 6px; }
.m-ok strong { font: 500 24px/1.2 'Fraunces', serif; }
.m-ok span { font-size: 15px; color: #4c6b55; }
.m-chat { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; background: #e9e1d6; }
.m-bubble { align-self: flex-end; width: 82%; padding: 8px 8px 14px; border-radius: 16px 16px 4px 16px; background: #dcf8c6; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.m-link { height: 140px; border-radius: 12px; background: #ccc center / cover; }
.m-bubble strong { padding: 0 6px; font-size: 15px; }
.m-bubble span { padding: 0 6px; color: #3d4a3d; }
.m-wa { align-self: stretch; padding: 16px; border-radius: 999px; background: #25d366; color: #fff; text-align: center; font-weight: 700; font-size: 16px; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-stats div { padding: 16px 10px; border-radius: 16px; background: #fff; border: 1px solid #eadfd7; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.m-stats strong { font: 500 32px/1 'Fraunces', serif; }
.m-stats span { font-size: 12px; color: #7a6a62; font-weight: 600; }
.m-list { display: grid; gap: 4px; padding: 10px 16px; border-radius: 16px; background: #fff; border: 1px solid #eadfd7; }
.m-list .m-row { padding: 10px 0; border-bottom: 1px solid #f1e9e3; }
.m-list .m-row:last-child { border-bottom: 0; }
.m-list .yes { color: #2e7d4f; font-weight: 700; }
.m-list .no { color: #a14b42; font-weight: 700; }

/* ---------- Small screens: phone above, list below ---------- */
@media (max-width: 900px) {
  .ivx-layout, .ivx-how { grid-template-columns: 1fr; gap: 28px; }
  .ivx-phone-col { position: static; order: -1; }
  .ivx-features { grid-template-columns: 1fr; }
  .ivx-how .steps-grid { grid-template-columns: 1fr !important; }
}
.ivx-screen iframe { transition: opacity .18s ease; }
.ivx-screen.is-switching iframe { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ivx-screen iframe { transition: none; } }
