/* Public website only. The layout starts at the phone breakpoint. */
@media (max-width: 767px) {
    @font-face {
        font-family: "Lexend Mobile";
        src: url(/assets/fonts/lexend-regular.woff2) format("woff2");
        font-weight: 100 900;
        font-display: swap;
    }

    .rp-mobile-site {
        --mobile-paper: #fdfbf6;
        --mobile-base: #f5f2e9;
        --mobile-soft: #efedf0;
        --mobile-ink: #24242c;
        --mobile-muted: #585862;
        --mobile-line: #d9d8de;
        --mobile-dark: #1c1c24;
        --mobile-raised: #30303b;
        --mobile-dark-line: #41414b;
        --mobile-white: #f7f6f2;
        --mobile-light-muted: #d5d3dd;
        --mobile-gutter: clamp(.85rem, 4.1vw, 1.5rem);
        background: var(--mobile-base);
        color: var(--mobile-ink);
        font-family: Lexend, "Lexend Mobile", sans-serif;
        color-scheme: light;
    }

    .rp-mobile-site :is(.site-header, .product-header, .concept-ribbon, .site-footer, .site-footer-shared),
    .rp-mobile-site > :is(header.page, footer.page, footer) {
        display: none;
    }

    .rp-mobile-header,
    .rp-mobile-footer {
        box-sizing: border-box;
        padding-inline: var(--mobile-gutter);
        background: var(--mobile-dark);
        color: var(--mobile-white);
    }
    .rp-mobile-header[hidden] { display: block !important; }
    .rp-mobile-footer[hidden] { display: grid !important; }

    .rp-mobile-header {
        position: sticky;
        top: 0;
        z-index: 30;
    }

    .rp-mobile-brand-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 50px;
        border-bottom: 1px solid var(--mobile-dark-line);
    }

    .rp-mobile-brand {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .rp-mobile-brand img {
        display: block;
        width: 144px;
        height: auto;
    }

    .rp-mobile-header nav,
    .rp-mobile-footer nav {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        flex-wrap: wrap;
        column-gap: .12rem;
    }

    .rp-mobile-site :is(.rp-mobile-header, .rp-mobile-footer) :is(nav a, summary, .rp-mobile-brand-row > a:not(.rp-mobile-brand)) {
        display: flex;
        align-items: center;
        gap: .36rem;
        min-height: 44px;
        padding-inline: .24rem;
        font: 500 .75rem/1.25 Lexend, "Lexend Mobile", sans-serif;
        text-decoration: none;
        color: var(--mobile-white);
        background: none;
    }

    .rp-mobile-site :is(.rp-mobile-header, .rp-mobile-footer) :is(nav a:hover, nav a[aria-current], summary:hover, summary:focus-visible) {
        color: var(--mobile-white);
        background: var(--mobile-raised);
    }

    .rp-mobile-header details > summary {
        list-style: none;
        cursor: pointer;
    }

    .rp-mobile-header details > summary::-webkit-details-marker { display: none; }
    .rp-mobile-header details > summary::after {
        content: "";
        width: .33rem;
        height: .33rem;
        border-right: 1px solid currentColor;
        border-bottom: 1px solid currentColor;
        transform: rotate(-45deg);
    }
    .rp-mobile-header details[open] > summary::after { transform: rotate(45deg); }

    .rp-mobile-product-links {
        position: absolute;
        top: 100%;
        inset-inline: var(--mobile-gutter);
        max-height: min(62vh, 26rem);
        overflow-y: auto;
        padding: .3rem .65rem;
        border: 1px solid var(--mobile-dark-line);
        background: var(--mobile-dark);
    }

    .rp-mobile-site .rp-mobile-product-links a { font-size: .84rem; padding-inline: .35rem; }
    .rp-mobile-product-links a + a { border-top: 1px solid var(--mobile-dark-line); }

    .rp-mobile-footer {
        display: grid;
        justify-items: center;
        padding-block: .8rem 1rem;
        border-top: 1px solid var(--mobile-dark-line);
    }
    .rp-mobile-footer nav { justify-content: center; gap: 0 .5rem; }
    .rp-mobile-footer .rp-mobile-brand img { width: 136px; }

    .rp-mobile-site :is(main, .sales-shell) :where(img, video) { max-width: 100%; }
    .rp-mobile-site :is(main, .sales-shell) :where(input:not([type=checkbox], [type=radio]), select, textarea) {
        max-width: 100%;
        min-width: 0;
        color: var(--mobile-ink);
        background: var(--mobile-soft);
        border-color: var(--mobile-line);
        font-family: inherit;
    }

    .rp-mobile-site :is(.hero, .ref-hero, .sales-hero, .page-intro, .page-hero) {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.2rem;
    }
    .rp-mobile-site :is(.module-grid, .ref-module-grid, .whatsapp-grid, .ref-whatsapp-grid, .whatsapp-flow, .ref-whatsapp-flow) {
        grid-template-columns: minmax(0, 1fr);
    }
    .rp-mobile-site :is(.module-grid, .ref-module-grid, .whatsapp-grid, .ref-whatsapp-grid) > * {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .rp-mobile-site :is(.page-intro h1, .page-hero h1, .product-intro h1, .sales-shell h1, .hero h1, .ref-hero h1) {
        font-size: clamp(1.95rem, 8vw, 3.25rem);
        line-height: 1.12;
    }

    .rp-mobile-site :is(.hero, .ref-hero, .product-intro, .sales-hero, .page-intro, .page-hero) { padding-block: 1.65rem 1.2rem; }
    .rp-mobile-site :is(.hero, .ref-hero, .page-intro, .page-hero) {
        background: var(--mobile-base);
        color: var(--mobile-ink);
    }

    .rp-mobile-site :is(.hero-copy, .ref-hero-copy, .page-intro, .page-hero) :is(h1, h1 em, h1 strong, h1 span, .kicker, .eyebrow, .ref-eyebrow, .section-kicker) {
        color: var(--mobile-ink);
    }

    .rp-mobile-site :is(.page-intro, .page-hero) :is(p:not(.section-kicker, .kicker), .breadcrumb, .breadcrumbs, .crumbs, .breadcrumbs a) {
        color: var(--mobile-muted);
    }
    .rp-mobile-site :is(.hero-system, .ref-hero-system, .film-concept, .product-showcase) {
        background: var(--mobile-dark);
        border-color: var(--mobile-dark-line);
        box-shadow: none;
        color: var(--mobile-white);
    }

    .rp-mobile-site :is(.hero-copy, .ref-hero-copy) :is(h1, .hero-claim, .ref-hero-claim) { color: var(--mobile-ink); }
    .rp-mobile-site :is(.hero-copy, .ref-hero-copy) :is(.hero-lead, .ref-hero-lead, .hero-proof, .ref-hero-proof) { color: var(--mobile-muted); }
    .rp-mobile-site :is(.section-framed, .ref-section-framed) {
        background: var(--mobile-paper);
        border-color: var(--mobile-line);
        color: var(--mobile-ink);
    }

    .rp-mobile-site :is(.product-actions a, .guide-entry, .product-cta > a, .button, .ref-button, .rp-mobile-example-action,
        .sales-shell button, .sales-shell a[data-login], .activation .action, .page .action) {
        min-height: 44px;
        color: var(--mobile-white);
        background: var(--mobile-dark);
        border-color: var(--mobile-dark);
        border-radius: 0;
        box-shadow: none;
    }

    .rp-mobile-site :is(.product-actions a, .guide-entry, .product-cta > a, .button, .ref-button, .rp-mobile-example-action,
        .sales-shell button, .sales-shell a[data-login], .activation .action, .page .action):is(:hover, :focus-visible) {
        background: var(--mobile-raised);
        color: var(--mobile-white);
        border-color: var(--mobile-raised);
    }

    .rp-mobile-site :is(.button-outline, .button-ghost, .button-calm, .ref-button-outline, .button.outline) {
        min-height: 44px;
        color: var(--mobile-ink);
        background: var(--mobile-soft);
        border-color: var(--mobile-line);
        border-radius: 0;
        box-shadow: none;
    }

    .rp-mobile-site :is(.button-outline, .button-ghost, .button-calm):hover { background: #e5e4e9; }

    .rp-mobile-site :is(.skip, .back-to-top) {
        background: var(--mobile-dark);
        color: var(--mobile-white);
        border-color: var(--mobile-dark-line);
        box-shadow: none;
    }

    .rp-mobile-site :is(.access-note, .ref-access-note, .usage-pricing-note, .callout, .request-trust, .request-options label.selected,
        .tier-complete, .product-card.highlight, .packages-section, .ref-packages-section) {
        background: var(--mobile-soft);
        color: var(--mobile-ink);
        border-color: var(--mobile-line);
        box-shadow: none;
    }

    .rp-mobile-site :is(.module-featured, .ref-module-featured, .role-row.owner, .ref-role-row.ref-owner, .release-status-card,
        .conversion, .ref-conversion, .film-concept > .status) {
        background: var(--mobile-raised);
        color: var(--mobile-white);
        border-color: var(--mobile-dark-line);
        box-shadow: none;
    }

    .rp-mobile-site :is(.module-featured, .ref-module-featured, .conversion, .ref-conversion) :is(p, h2, h3, li, a:not(.button, .ref-button)) {
        color: var(--mobile-white);
    }

    .rp-mobile-site :is(.role-panel, .ref-role-panel, .whatsapp-panel, .ref-whatsapp-panel) { box-shadow: none; }
    .rp-mobile-site :is(.activity-chart, .ref-activity-chart) i { background: #777785; }
    .rp-mobile-site :is(.security-grid b, .release-status-card b, span.status) { background: var(--mobile-soft); color: var(--mobile-ink); }

    .rp-mobile-example {
        min-width: 0;
        margin-block: .75rem 1.35rem;
        padding: 1rem;
        background: var(--mobile-dark);
        color: var(--mobile-white);
    }

    .rp-mobile-example :is(h2,p) { margin: 0; }
    .rp-mobile-example h2 { font-size: 1.08rem; }
    .rp-mobile-example-head { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
    .rp-mobile-example-head span { padding: .22rem .45rem; background: var(--mobile-raised); font-size: .73rem; }
    .rp-mobile-example ol {
        display: flex;
        justify-content: space-between;
        gap: .4rem;
        list-style: none;
        margin: .85rem 0;
        padding: 0;
        color: var(--mobile-light-muted);
        font-size: .78rem;
    }
    .rp-mobile-example-result { padding: .72rem .8rem; background: var(--mobile-raised); border-left: 2px solid #848490; }
    .rp-mobile-example-result p { color: var(--mobile-light-muted); font-size: .8rem; }
    .rp-mobile-site .rp-mobile-example-action {
        display: inline-flex;
        align-items: center;
        margin-top: .55rem;
        padding-inline: .65rem;
        border: 1px solid var(--mobile-dark-line);
        background: var(--mobile-raised);
        text-decoration: none;
        font-size: .82rem;
    }

    .rp-mobile-site.product-guide {
        --gold: #53535f;
        --text: var(--mobile-ink);
        --muted: var(--mobile-muted);
        --line: var(--mobile-line);
    }

    .rp-mobile-site.product-guide :is(.product-category, .workguide, .sales-module-grid > a) {
        background: var(--mobile-paper);
        color: var(--mobile-ink);
    }

    .rp-mobile-site.product-guide :is(.product-search input, .product-search button, .product-notice, .guide-result) {
        background: var(--mobile-soft);
        border-color: var(--mobile-line);
        color: var(--mobile-ink);
    }

    .rp-mobile-site.product-guide :is(.product-category summary:hover, .product-category summary:focus-visible) { background: var(--mobile-soft); }
    .rp-mobile-site.product-guide .product-category summary { min-height: 52px; }
    .rp-mobile-site.product-guide .product-intro { padding-top: 1.65rem; }

    .rp-mobile-site .product-category summary::after {
        content: "";
        width: .5rem;
        height: .5rem;
        margin-inline: auto .2rem;
        border-bottom: 1.5px solid currentColor;
        border-right: 1.5px solid currentColor;
        transform: rotate(-45deg);
    }
    .rp-mobile-site .product-category[open] summary::after { transform: rotate(45deg); }

    .rp-mobile-site :is(.sales-shell, .activation, main.page) { color: var(--mobile-ink); }
    .rp-mobile-site :is(.activation p, main.page .lead, main.page .note) { color: var(--mobile-muted); }
    .rp-mobile-site :is(.activation section, .sales-notice, main.page section) {
        background: var(--mobile-paper);
        border-color: var(--mobile-line);
        color: var(--mobile-ink);
    }
    .rp-mobile-site .activation header { display: grid; }
    .rp-mobile-site .activation header img.brand, .rp-mobile-site a.sales-brand { display: none; }
    .rp-mobile-site :is(.sales-shell output, .notice, .warning, .success) { background: var(--mobile-soft); color: var(--mobile-ink); }
    .rp-mobile-site :is(.activation, main.page, .sales-shell) a:not(.action, [data-login]) { color: #454553; }
    .rp-mobile-site main.page .eyebrow { color: var(--mobile-muted); }
    .rp-mobile-site main.page .note { border-color: var(--mobile-line); }

    .rp-mobile-site :focus-visible {
        outline: 0;
        box-shadow: inset 0 -2px #777785;
    }
    .rp-mobile-site :is(.rp-mobile-header, .rp-mobile-footer) :focus-visible { box-shadow: inset 0 -2px var(--mobile-light-muted); }
    .rp-mobile-site :is(main, .sales-shell) :where([id]) { scroll-margin-top: 6.5rem; }
}
