/* ==================================================
   RESELLER PAGE (/reseller) — home-page design with a minimal header (logo + Login + Signup).
   Hero copy + a white-labelled panel illustration; the signup/login flow lives in #resellerModal (same shell
   and input classes as #loginSignupModal, one column). Shared .pv-* pieces come from product-v3.css.
   ================================================== */

.rs-page { font-family: 'Inter', sans-serif; }

/* ---------- hero illustration: a browser window with the reseller's own brand ---------- */
.rs-demo { position: relative; width: 100%; max-width: 560px; min-height: 520px; margin: 0 auto; }
.rs-demo__frame { position: relative; width: 460px; max-width: 100%; margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(127, 86, 217, 0.16)); }
.rs-demo__frame svg { display: block; width: 100%; height: auto; }

/* the brand bar, wallet card, bars and users pop in one after another; 10 s loop (same timing idea as the product pages) */
/* entrance plays once and fast: delays in the markup are scaled down so the whole mock is on screen within ~1 s */
.rs-pop { opacity: 0; transform: translateY(8px); transform-box: fill-box; animation: rs-pop 0.5s ease-out forwards; animation-delay: calc(var(--d, 0s) * 0.35); }
@keyframes rs-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.rs-bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0.15); animation: rs-bar 0.9s ease-out forwards; animation-delay: calc(var(--d, 0s) * 0.35); }
@keyframes rs-bar { from { transform: scaleY(0.15); } to { transform: scaleY(1); } }
.rs-ping { transform-box: fill-box; transform-origin: center; animation: rs-ping 1.6s ease-out infinite; }
@keyframes rs-ping { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }

/* floating cards around the window, like the product pages */
.rs-float {
    position: absolute; display: flex; align-items: center; gap: 10px;
    padding: 10px 14px 10px 10px; border-radius: 14px;
    background: #FFFFFF; border: 1px solid #EEF0F4; box-shadow: 0 12px 30px rgba(16, 24, 40, 0.10);
    opacity: 0; transform: translateY(8px); animation: rs-float-in 0.6s ease-out forwards;
}
@keyframes rs-float-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.rs-float__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; color: var(--f2h-purple); }
.rs-float__icon--brand { background: #F4F3FF; }
.rs-float__icon--price { background: #E6F7EE; color: #16803C; }
.rs-float__icon--api { background: #FFF7E8; color: #D97706; }
.rs-float__icon svg { width: 20px; height: 20px; }
.rs-float__body { display: flex; flex-direction: column; line-height: 1.25; }
.rs-float__body strong { font-size: 13px; font-weight: 600; color: var(--f2h-ink); }
.rs-float__body em { font-size: 12px; font-style: normal; color: var(--f2h-muted); }
.rs-float--brand { left: -14px; top: 118px; animation-delay: 0.5s; }
.rs-float--price { right: -10px; bottom: 8px; animation-delay: 0.8s; }
.rs-float--api { left: -6px; top: 262px; animation-delay: 1.1s; }

/* desktop: the window follows the viewport height so the hero fits the first screen (same clamp idea as the phones) */
@media (min-width: 1025px) {
    .pv-page .rs-demo { min-height: 0; max-width: min(560px, 100%); }
    .pv-page .rs-demo__frame { width: clamp(280px, calc((100vh - 270px) * 0.72), 440px); }
    .rs-hero .f2h-hero__title { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.08; }
    .rs-hero .f2h-hero__lead { margin-top: 12px; font-size: 16.5px; line-height: 26px; max-width: 520px; }
    .rs-hero .f2h-hero__cta { margin-top: 22px; }
    .rs-hero .f2h-hero__ticks, .rs-hero .f2h-ticks { margin-top: 18px; }
    .pv-page .rs-float--brand, .pv-page .rs-float--api { left: 0; }
    .pv-page .rs-float--price { right: 0; }
}

/* ---------- popup (#resellerModal) ---------- */
body.f2h-page #resellerModal .modal-dialog { max-width: 960px; }
body.f2h-page #resellerModal .loginSignupModal-grid .form-block { width: 50%; height: auto; max-height: calc(100vh - 80px); overflow-y: auto; }
@media (max-width: 991.98px) { body.f2h-page #resellerModal .loginSignupModal-grid .form-block { width: 100%; } }
body.f2h-page #resellerModal .rs-box { padding: 32px 36px 28px; }
@media (max-width: 575.98px) { body.f2h-page #resellerModal .rs-box { padding: 24px 18px 22px; } }
body.f2h-page #resellerModal .rs-box__text { margin: -6px 0 16px; font-size: 13.5px; line-height: 19px; color: var(--f2h-muted); }
body.f2h-page #resellerModal .form-check-label { font-weight: 600; font-size: 13.5px; color: var(--f2h-ink); margin-bottom: 6px; display: block; }
body.f2h-page #resellerModal .form-control { height: 45px; }
body.f2h-page #resellerModal .icon-input-group .form-control.has-inline-btn { padding-right: 95px; }

/* tabs */
.rs-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin: 0 0 18px; border-radius: 12px; background: #F2F4F7; }
body.f2h-page #resellerModal .rs-tab { height: 40px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: #475467; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
body.f2h-page #resellerModal .rs-tab.is-on { background: #FFFFFF; color: var(--f2h-ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }

/* inline errors: red, in flow, under the field (hidden until text is set) */
body.f2h-page #resellerModal .rs-err { display: none; margin-top: 6px; font-size: 12px; font-weight: 500; line-height: 1.4; color: #DC3545; position: static; }
body.f2h-page #resellerModal .rs-err.is-on { display: block; }
body.f2h-page #resellerModal .form-group.has-error .form-control { border-color: #DC3545; }
body.f2h-page #resellerModal .username-status { display: none; margin-top: 6px; font-size: 12px; font-weight: 600; }

/* OTP step under a field */
body.f2h-page #resellerModal .rs-otp { padding: 12px; border-radius: 12px; background: #F8F9FC; border: 1px solid #EEF0F4; }
body.f2h-page #resellerModal .rs-otp .form-check-label { font-size: 12.5px; color: #475467; }
body.f2h-page #resellerModal .rs-otp__meta { font-size: 12px; color: #667085; }
body.f2h-page #resellerModal .rs-otp__meta span { color: var(--f2h-purple); font-weight: 600; }
body.f2h-page #resellerModal .rs-link { padding: 0; border: 0; background: none; font: inherit; font-size: inherit; font-weight: 600; color: var(--f2h-purple); cursor: pointer; text-decoration: none; }
body.f2h-page #resellerModal .rs-link:hover, body.f2h-page #resellerModal .rs-link:focus { text-decoration: underline; }

body.f2h-page #resellerModal .rs-terms { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13px; line-height: 19px; color: #475467; cursor: pointer; }
body.f2h-page #resellerModal .rs-terms input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--f2h-purple); }
body.f2h-page #resellerModal .rs-terms a { color: var(--f2h-purple); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

body.f2h-page #resellerModal .rs-switch { margin: 0 0 4px; font-size: 13.5px; color: #475467; }
body.f2h-page #resellerModal .rs-switch--muted { font-size: 12.5px; }
body.f2h-page #resellerModal .rs-switch--muted a { color: #98A2B3; text-decoration: none; }
body.f2h-page #resellerModal .rs-switch--muted a:hover { color: var(--f2h-purple); text-decoration: underline; }

/* ---------- sections ---------- */
.rs-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rs-video { max-width: 860px; margin: 0 auto; padding: 12px; border-radius: 20px; }
.rs-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; background: #000; }

@media (max-width: 1200px) {
    .rs-demo { max-width: 500px; min-height: 480px; }
    .rs-float--brand, .rs-float--api { left: 0; }
    .rs-float--price { right: 0; }
    .rs-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .rs-demo { min-height: 0; padding: 24px 0 12px; }
    .rs-demo__frame { width: 420px; }
    .rs-float--brand { top: 110px; }
    .rs-float--price { bottom: 10px; }
    .rs-float--api { top: 240px; }
}
@media (max-width: 767px) {
    .rs-demo { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0 0; }
    .rs-demo__frame { width: min(360px, 100%); }
    .rs-float { position: static; width: 100%; max-width: 360px; padding: 8px 12px 8px 8px; opacity: 1; transform: none; animation: none; }
    .rs-steps { grid-template-columns: 1fr; }
    .rs-video { padding: 8px; }
    body.f2h-page #resellerModal .rs-box { padding: 26px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .rs-pop, .rs-float { opacity: 1; transform: none; animation: none; }
    .rs-bar { transform: none; animation: none; }
    .rs-ping { animation: none; }
}

/* short desktop viewports (zoomed browsers, small laptops): tighten the hero so the card still ends in the first screen */
@media (min-width: 1025px) and (max-height: 760px) {
    .rs-hero .f2h-hero__card { padding-top: 28px; padding-bottom: 28px; }
    .rs-hero .f2h-hero__title { font-size: clamp(30px, 3vw, 42px); }
    .rs-hero .f2h-hero__lead { margin-top: 10px; font-size: 15.5px; line-height: 24px; }
    .rs-hero .f2h-hero__cta { margin-top: 16px; }
    .rs-hero .f2h-pill { margin-bottom: 10px; }
}
