/* Reseller apply page: partner marketing funnel (/reseller/apply). */
.rf {
    --rf-ink: #0b1733;
    --rf-muted: #5a6882;
    --rf-line: #dfe6f2;
    --rf-blue: #0057e6;
    --rf-blue-deep: #0a3fa8;
    --rf-mint: #0d9f6e;
    --rf-tint: #f4f7fd;
    --rf-navy: #071330;
    min-height: 100vh;
    background: #fff;
    color: var(--rf-ink);
    font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    scroll-behavior: smooth;
}
.rf *, .rf *::before, .rf *::after { box-sizing: border-box; }
.rf :where(section[id], [id="video"]) { scroll-margin-top: 5rem; }
.rf-wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.rf a { color: inherit; }

/* Bar */
.rf-bar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(223, 230, 242, .8); }
.rf-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.rf-logo img { display: block; height: 2.2rem; width: auto; }
.rf-bar-links { display: flex; align-items: center; gap: 1.4rem; font-size: .93rem; font-weight: 600; }
.rf-bar-links a { text-decoration: none; color: var(--rf-muted); }
.rf-bar-links a:hover { color: var(--rf-ink); }
.rf-bar-links a.rf-btn { color: #fff; }

/* Buttons */
.rf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 3rem; padding: .7rem 1.35rem; border: 1px solid transparent; border-radius: 999px;
    font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.rf-btn:hover { transform: translateY(-1px); }
.rf-btn:focus-visible, .rf a:focus-visible, .rf summary:focus-visible { outline: 3px solid #8fb5ff; outline-offset: 3px; }
.rf-btn-primary { background: linear-gradient(135deg, #1f6bff, var(--rf-blue)); color: #fff !important; box-shadow: 0 10px 24px -10px rgba(0, 87, 230, .7); }
.rf-btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(0, 87, 230, .8); }
.rf-btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.rf-btn-ghost { background: #fff; border-color: var(--rf-line); color: var(--rf-ink); }
.rf-btn-sm { min-height: 2.4rem; padding: .45rem 1rem; font-size: .9rem; }
.rf-btn-wide { width: 100%; }
.rf-play { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--rf-blue); position: relative; }
.rf-play::after { content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border-left: .5rem solid #fff; border-top: .32rem solid transparent; border-bottom: .32rem solid transparent; }

/* Typography */
.rf-kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rf-blue); }
.rf-kicker span { width: 1.6rem; height: 2px; background: currentColor; border-radius: 2px; }
.rf-kicker-light { color: #8fb5ff; }
.rf h1, .rf h2, .rf h3 { margin: 0; letter-spacing: -.02em; color: inherit; }
.rf h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.04; font-weight: 700; }
.rf h1 em { font-style: normal; background: linear-gradient(90deg, var(--rf-blue), var(--rf-mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rf h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; font-weight: 700; }
.rf h3 { font-size: 1.12rem; font-weight: 700; }
.rf-lead { margin: 1.25rem 0 0; font-size: 1.15rem; line-height: 1.6; color: var(--rf-muted); max-width: 36rem; }

/* Hero */
.rf-hero {
    position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(31, 107, 255, .14), transparent 60%),
        radial-gradient(40rem 24rem at -10% 110%, rgba(13, 159, 110, .10), transparent 60%),
        linear-gradient(180deg, #f7faff, #fff);
}
.rf-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.rf-cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.rf-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 600; color: var(--rf-muted); }
.rf-proof li { display: inline-flex; align-items: center; gap: .45rem; }
.rf-proof li::before { content: "\2713"; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #d9f5ea; color: var(--rf-mint); font-size: .7rem; font-weight: 800; }

.rf-video-card { margin: 0; padding: .6rem; border-radius: 1.4rem; background: var(--rf-navy); box-shadow: 0 40px 80px -30px rgba(7, 19, 48, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.rf-video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 1rem; background: #000; }
.rf-video-card p { margin: .7rem .6rem .35rem; font-size: .88rem; color: #aebbd6; }
.rf-video-card strong { color: #fff; }

/* Sections */
.rf-section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.rf-section-tint { background: var(--rf-tint); }
.rf-section-head { max-width: 40rem; margin-bottom: 2.5rem; }

.rf-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.rf-benefits article { padding: 1.5rem; border: 1px solid var(--rf-line); border-radius: 1.1rem; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rf-benefits article:hover { border-color: #b9cdf4; box-shadow: 0 18px 40px -26px rgba(0, 87, 230, .5); transform: translateY(-2px); }
.rf-benefits p { margin: .6rem 0 0; color: var(--rf-muted); line-height: 1.55; font-size: .95rem; }
.rf-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1.1rem; border-radius: .8rem; background: linear-gradient(135deg, #e6efff, #d9f5ea); color: var(--rf-blue); font-weight: 700; }

.rf-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.rf-steps li { position: relative; padding: 1.5rem; border-radius: 1.1rem; background: #fff; border: 1px solid var(--rf-line); }
.rf-steps li > span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: 1rem; border-radius: 50%; background: var(--rf-blue); color: #fff; font-weight: 700; }
.rf-steps li:not(:last-child)::after { content: ""; position: absolute; top: 2.6rem; right: -1.1rem; width: 1.1rem; height: 2px; background: #b9cdf4; }
.rf-steps p { margin: .5rem 0 0; color: var(--rf-muted); line-height: 1.55; font-size: .95rem; }

.rf-sell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.rf-sell .rf-btn { margin-top: 1.75rem; }
.rf-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.rf-products li { display: grid; gap: .4rem; padding: 1.3rem; border-radius: 1rem; background: linear-gradient(160deg, #f7faff, #fff); border: 1px solid var(--rf-line); }
.rf-products strong { font-size: 1.05rem; }
.rf-products span { color: var(--rf-muted); font-size: .93rem; line-height: 1.5; }

.rf-faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.rf-faq { display: grid; gap: .7rem; }
.rf-faq details { border: 1px solid var(--rf-line); border-radius: 1rem; background: #fff; padding: 0 1.25rem; }
.rf-faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 700; cursor: pointer; list-style: none; }
.rf-faq summary::-webkit-details-marker { display: none; }
.rf-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--rf-blue); transition: transform .2s; }
.rf-faq details[open] summary::after { transform: rotate(45deg); }
.rf-faq p { margin: 0 0 1.1rem; color: var(--rf-muted); line-height: 1.6; }
.rf-faq p a { color: var(--rf-blue); font-weight: 600; }

/* Apply */
.rf-apply-section { background: radial-gradient(50rem 30rem at 0% 0%, rgba(31, 107, 255, .35), transparent 60%), var(--rf-navy); color: #fff; }
.rf-apply-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.rf-apply-aside { position: sticky; top: 6rem; }
.rf-apply-aside > p:not(.rf-kicker) { margin: 1rem 0 0; color: #aebbd6; line-height: 1.6; font-size: 1.05rem; }
.rf-next { display: grid; gap: 1.1rem; margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: rfnext; }
.rf-next li { display: grid; grid-template-columns: 2rem 1fr; gap: .1rem .9rem; counter-increment: rfnext; }
.rf-next li::before { content: counter(rfnext); grid-row: span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid rgba(143, 181, 255, .5); color: #8fb5ff; font-weight: 700; font-size: .9rem; }
.rf-next span { color: #aebbd6; font-size: .92rem; }

.rf-form-card { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.4rem; background: #fff; color: var(--rf-ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.rf-form { display: grid; gap: 1.1rem; }
.rf-form fieldset { display: grid; gap: .9rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.rf-form fieldset + fieldset { padding-top: 1.1rem; border-top: 1px solid #eef2f8; }
.rf-form legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-bottom: .9rem; padding: 0; font-size: 1.05rem; font-weight: 700; }
.rf-form legend small, .rf-field label small { color: var(--rf-muted); font-weight: 500; font-size: .8rem; }
.rf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.rf-field { display: grid; gap: .35rem; min-width: 0; }
.rf-field label { font-size: .88rem; font-weight: 600; }
.rf-field .form-control { width: 100%; min-height: 2.9rem; padding: .6rem .85rem; border: 1px solid #cfd9ea; border-radius: .7rem; background: #fbfcff; font: inherit; color: inherit; }
.rf-field textarea.form-control { min-height: 5.5rem; resize: vertical; }
.rf-field .form-control:focus { outline: none; border-color: var(--rf-blue); box-shadow: 0 0 0 4px rgba(0, 87, 230, .14); background: #fff; }
.rf-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; line-height: 1.5; color: #33415c; cursor: pointer; }
.rf-check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--rf-blue); }
.rf-check a { color: var(--rf-blue); font-weight: 600; }
.rf-fine { margin: 0; text-align: center; font-size: .88rem; color: var(--rf-muted); }
.rf-fine a { color: var(--rf-blue); font-weight: 600; }
.rf-form .alert-message { margin: 0; }

.rf-done { display: grid; justify-items: start; gap: .8rem; }
.rf-done h2 { font-size: 1.8rem; }
.rf-done p { margin: 0; color: var(--rf-muted); line-height: 1.6; }
.rf-done-mark { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #d9f5ea; color: var(--rf-mint); font-size: 1.4rem; font-weight: 800; }

/* Footer */
.rf-footer { background: var(--rf-navy); border-top: 1px solid rgba(255, 255, 255, .08); color: #8a98b6; font-size: .88rem; }
.rf-footer-inner { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 1.5rem 0; }
.rf-footer-inner span { margin-right: auto; }
.rf-footer a { text-decoration: none; }
.rf-footer a:hover { color: #fff; }

@media (max-width: 1000px) {
    .rf-hero-grid, .rf-sell, .rf-faq-wrap, .rf-apply-grid { grid-template-columns: minmax(0, 1fr); }
    .rf-benefits, .rf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rf-steps li::after { display: none; }
    .rf-apply-aside { position: static; }
}

@media (max-width: 720px) {
    .rf-bar-links > a:not(.rf-btn):not(.rf-signin) { display: none; }
    .rf-bar-links { gap: .9rem; }
    .rf-logo img { height: 1.8rem; }
    .rf-benefits, .rf-steps, .rf-products, .rf-row { grid-template-columns: minmax(0, 1fr); }
    .rf-cta-row .rf-btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
    .rf-signin { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .rf { scroll-behavior: auto; }
    .rf-btn, .rf-benefits article { transition: none; }
    .rf-btn:hover, .rf-benefits article:hover { transform: none; }
}
