/* =============================================================
   RoboPrenr webinar funnel
   - .rpf-nav  : minimal sticky navbar (brand + one CTA), every page
   - .rpf-page : webinar landing page (webinar_detail.html)
   Brand colours match rp-webinars.css (--rwd-orange / --rwd-navy).
============================================================= */

:root {
    --rpf-orange: #ff6b2c;
    --rpf-orange-dark: #e9561a;
    --rpf-orange-soft: #fff4ec;
    --rpf-navy: #17395f;
    --rpf-navy-deep: #0f2742;
    --rpf-ink: #14243a;
    --rpf-text: #4f5f75;
    --rpf-muted: #8592a3;
    --rpf-border: #e6e9ef;
    --rpf-surface: #ffffff;
    --rpf-tint: #f7f8fb;
    --rpf-radius: 18px;
    --rpf-shadow-sm: 0 2px 6px rgba(20, 36, 58, 0.06);
    --rpf-shadow: 0 18px 40px -18px rgba(20, 36, 58, 0.25);
    --rpf-nav-h: 72px;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* -------------------------------------------------------------
   Buttons
------------------------------------------------------------- */

.rpf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.rpf-btn:focus-visible {
    outline: 3px solid rgba(255, 107, 44, 0.45);
    outline-offset: 2px;
}

.rpf-btn__arrow {
    transition: transform 0.2s ease;
}

.rpf-btn:hover .rpf-btn__arrow {
    transform: translateX(3px);
}

.rpf-btn--primary {
    background: linear-gradient(135deg, var(--rpf-orange) 0%, var(--rpf-orange-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(255, 107, 44, 0.7);
}

.rpf-btn--primary:hover,
.rpf-btn--primary:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -10px rgba(255, 107, 44, 0.8);
}

.rpf-btn--ghost {
    background: transparent;
    border-color: var(--rpf-border);
    color: var(--rpf-navy);
}

.rpf-btn--ghost:hover,
.rpf-btn--ghost:focus {
    border-color: var(--rpf-navy);
    color: var(--rpf-navy);
}

.rpf-btn--light {
    background: #fff;
    color: var(--rpf-orange-dark);
    box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.35);
}

.rpf-btn--light:hover,
.rpf-btn--light:focus {
    color: var(--rpf-orange-dark);
    transform: translateY(-1px);
}

.rpf-btn--lg {
    padding: 16px 30px;
    font-size: 16px;
}

.rpf-btn--block {
    width: 100%;
}

/* -------------------------------------------------------------
   Navbar
------------------------------------------------------------- */

.rpf-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--rpf-border);
}

.rpf-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1200px;
    min-height: var(--rpf-nav-h);
    margin: 0 auto;
    padding: 0 24px;
}

.rpf-nav__brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.rpf-nav__brand img {
    display: block;
    height: 40px;
    width: auto;
}

@media (max-width: 575px) {
    :root {
        --rpf-nav-h: 60px;
    }

    .rpf-nav__inner {
        padding: 0 16px;
    }

    .rpf-nav__brand img {
        height: 32px;
    }

    .rpf-nav__cta {
        padding: 9px 16px;
        font-size: 14px;
    }
}

/* -------------------------------------------------------------
   Landing page: layout primitives
------------------------------------------------------------- */

.rpf-page {
    font-family: "Poppins", sans-serif;
    color: var(--rpf-text);
    overflow-x: hidden;
}

.rpf-page h1,
.rpf-page h2,
.rpf-page h3 {
    font-family: "Poppins", sans-serif;
    color: var(--rpf-ink);
    letter-spacing: -0.01em;
}

.rpf-page [id] {
    scroll-margin-top: calc(var(--rpf-nav-h) + 16px);
}

.rpf-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.rpf-container--narrow {
    max-width: 820px;
}

.rpf-section {
    padding: 96px 0;
}

.rpf-section--tint {
    background: var(--rpf-tint);
}

.rpf-section__head {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.rpf-section__title {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
}

.rpf-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--rpf-orange-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rpf-eyebrow--light {
    color: #ffd2bd;
}

.rpf-prose p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.75;
}

.rpf-prose p:last-child {
    margin-bottom: 0;
}

/* -------------------------------------------------------------
   Hero
------------------------------------------------------------- */

.rpf-hero {
    position: relative;
    padding: 72px 0 88px;
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 107, 44, 0.16), transparent 34%),
        radial-gradient(circle at 0% 100%, rgba(23, 57, 95, 0.08), transparent 40%),
        linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
}

.rpf-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 56px;
}

.rpf-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--rpf-orange-soft);
    color: var(--rpf-orange-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rpf-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rpf-orange);
    box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.6);
    animation: rpf-pulse 1.8s infinite;
}

@keyframes rpf-pulse {
    70% { box-shadow: 0 0 0 8px rgba(255, 107, 44, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 44, 0); }
}

.rpf-hero__title {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.rpf-hero__lead {
    max-width: 560px;
    margin: 0 0 28px;
    font-size: 18px;
    line-height: 1.7;
}

.rpf-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.rpf-fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--rpf-border);
    border-radius: 14px;
    background: var(--rpf-surface);
    box-shadow: var(--rpf-shadow-sm);
}

.rpf-fact > i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--rpf-orange-soft);
    color: var(--rpf-orange-dark);
    font-size: 15px;
}

.rpf-fact small {
    display: block;
    color: var(--rpf-muted);
    font-size: 12px;
    line-height: 1.2;
}

.rpf-fact strong {
    display: block;
    color: var(--rpf-ink);
    font-size: 15px;
    font-weight: 600;
}

.rpf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rpf-countdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.rpf-countdown[hidden] {
    display: none;
}

.rpf-countdown__label {
    color: var(--rpf-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rpf-countdown__units {
    display: flex;
    gap: 8px;
}

.rpf-countdown__units > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    padding: 8px 6px;
    border-radius: 12px;
    background: var(--rpf-navy);
    color: #fff;
}

.rpf-countdown__units b {
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.rpf-countdown__units small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.rpf-hero__visual {
    position: relative;
}

.rpf-hero__visual::before {
    content: "";
    position: absolute;
    inset: 24px -16px -16px 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 107, 44, 0.22), rgba(23, 57, 95, 0.12));
}

.rpf-hero__frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--rpf-surface);
    box-shadow: var(--rpf-shadow);
}

.rpf-hero__image {
    display: block;
    width: 100%;
    height: auto;
}

.rpf-hero__frame--date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, var(--rpf-navy) 0%, var(--rpf-navy-deep) 100%);
    color: #fff;
}

.rpf-datecard__month {
    color: #ffb48f;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.rpf-datecard__day {
    font-size: clamp(88px, 12vw, 140px);
    font-weight: 800;
    line-height: 1;
}

.rpf-datecard__time {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

/* -------------------------------------------------------------
   Learning cards
------------------------------------------------------------- */

.rpf-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.rpf-card {
    padding: 28px;
    border: 1px solid var(--rpf-border);
    border-radius: var(--rpf-radius);
    background: var(--rpf-surface);
    box-shadow: var(--rpf-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rpf-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 44, 0.35);
    box-shadow: var(--rpf-shadow);
}

.rpf-card__num {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--rpf-orange-soft);
    color: var(--rpf-orange-dark);
    font-size: 15px;
    font-weight: 700;
}

.rpf-card__title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

.rpf-card__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

/* -------------------------------------------------------------
   About + highlights
------------------------------------------------------------- */

.rpf-about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 56px;
    align-items: start;
}

.rpf-about__copy .rpf-section__title {
    margin-bottom: 20px;
}

.rpf-about__list {
    padding: 32px;
    border-radius: var(--rpf-radius);
    background: var(--rpf-surface);
    box-shadow: var(--rpf-shadow);
}

.rpf-about__list-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
}

.rpf-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rpf-checklist li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--rpf-border);
}

.rpf-checklist li:first-child {
    padding-top: 0;
    border-top: 0;
}

.rpf-checklist li > i {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--rpf-orange);
    color: #fff;
    font-size: 12px;
}

.rpf-checklist strong {
    display: block;
    color: var(--rpf-ink);
    font-size: 16px;
    font-weight: 600;
}

.rpf-checklist small {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.6;
}

/* -------------------------------------------------------------
   Speaker
------------------------------------------------------------- */

.rpf-speaker {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    max-width: 980px;
    margin: 0 auto;
}

.rpf-speaker__photo {
    position: relative;
}

.rpf-speaker__photo::before {
    content: "";
    position: absolute;
    inset: 14px -14px -14px 14px;
    border-radius: 24px;
    background: var(--rpf-orange-soft);
}

.rpf-speaker__photo img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--rpf-shadow);
}

.rpf-speaker__name {
    margin: 0 0 16px;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
}

/* -------------------------------------------------------------
   Registration
------------------------------------------------------------- */

.rpf-register {
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 107, 44, 0.28), transparent 38%),
        linear-gradient(150deg, var(--rpf-navy) 0%, var(--rpf-navy-deep) 100%);
    color: rgba(255, 255, 255, 0.82);
}

.rpf-register__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    align-items: center;
    gap: 56px;
}

.rpf-page .rpf-register__title {
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.rpf-register__facts {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.rpf-register__facts li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 16px;
}

.rpf-register__facts i {
    width: 18px;
    color: #ffb48f;
}

.rpf-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rpf-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.rpf-steps li span {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.rpf-form-card {
    padding: 36px;
    border-radius: 22px;
    background: var(--rpf-surface);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
    color: var(--rpf-text);
}

.rpf-form-card__title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
}

.rpf-form-card__sub {
    margin: 0 0 24px;
    color: var(--rpf-muted);
    font-size: 15px;
}

.rpf-field {
    margin-bottom: 16px;
}

.rpf-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--rpf-ink);
    font-size: 14px;
    font-weight: 600;
}

.rpf-field input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid var(--rpf-border);
    border-radius: 12px;
    background: var(--rpf-tint);
    color: var(--rpf-ink);
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.rpf-field input:focus {
    outline: 0;
    border-color: var(--rpf-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 107, 44, 0.15);
}

.rpf-form .rpf-btn {
    margin-top: 8px;
}

/* -------------------------------------------------------------
   FAQ
------------------------------------------------------------- */

.rpf-faq {
    display: grid;
    gap: 12px;
}

.rpf-faq__item {
    border: 1px solid var(--rpf-border);
    border-radius: 14px;
    background: var(--rpf-surface);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.rpf-faq__item[open] {
    border-color: rgba(255, 107, 44, 0.35);
    box-shadow: var(--rpf-shadow-sm);
}

.rpf-faq__item summary {
    position: relative;
    padding: 20px 56px 20px 24px;
    color: var(--rpf-ink);
    font-size: 17px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.rpf-faq__item summary::-webkit-details-marker {
    display: none;
}

.rpf-faq__item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    color: var(--rpf-orange-dark);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
}

.rpf-faq__item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.rpf-faq__answer {
    padding: 0 24px 20px;
}

.rpf-faq__answer p {
    margin: 0 0 10px;
    line-height: 1.7;
}

.rpf-faq__answer p:last-child {
    margin-bottom: 0;
}

/* -------------------------------------------------------------
   Final CTA
------------------------------------------------------------- */

.rpf-final {
    padding: 88px 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 35%),
        linear-gradient(135deg, var(--rpf-orange) 0%, var(--rpf-orange-dark) 100%);
    color: #fff;
    text-align: center;
}

.rpf-final__inner {
    max-width: 760px;
}

.rpf-page .rpf-final__title {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.rpf-final__text {
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
}

/* -------------------------------------------------------------
   Scroll reveal (only armed when IntersectionObserver exists)
------------------------------------------------------------- */

.rpf-reveal--armed {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rpf-reveal--armed.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .rpf-reveal--armed {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .rpf-badge__dot {
        animation: none;
    }
}

/* -------------------------------------------------------------
   Responsive
------------------------------------------------------------- */

@media (max-width: 991px) {
    .rpf-section {
        padding: 72px 0;
    }

    .rpf-hero {
        padding: 48px 0 64px;
    }

    .rpf-hero__grid,
    .rpf-register__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .rpf-hero__visual {
        max-width: 560px;
    }

    .rpf-speaker {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        text-align: center;
    }

    .rpf-speaker__photo {
        width: 220px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .rpf-container {
        padding: 0 16px;
    }

    .rpf-section {
        padding: 56px 0;
    }

    .rpf-section__head {
        margin-bottom: 32px;
    }

    .rpf-hero__lead {
        font-size: 16px;
    }

    .rpf-facts {
        flex-direction: column;
    }

    .rpf-hero__actions .rpf-btn {
        width: 100%;
    }

    .rpf-hero__visual::before {
        inset: 12px -8px -8px 12px;
    }

    .rpf-countdown__units > span {
        min-width: 52px;
    }

    .rpf-about__list,
    .rpf-form-card {
        padding: 24px 20px;
    }

    .rpf-card {
        padding: 22px;
    }

    .rpf-final {
        padding: 64px 0;
    }
}
