/* Typography and viewport sizing for the homepage. */
#page-top {
    --index-title: var(--site-type-title);
    --index-body: var(--site-type-body);
    --index-info: var(--site-type-info);
    --index-caption: var(--site-type-caption);
    --index-gutter: clamp(12px, 3vw, 32px);
    font-size: var(--index-body);
    overflow-wrap: anywhere;
}

#page-top .wrap {
    width: calc(100% - 2 * var(--index-gutter));
    max-width: 1180px;
    margin-inline: auto;
}

#page-top :is(.heroGrid, .serviceShowcase, .serviceTabs, .detailBody, .newsGrid) > *,
#page-top :is(.aboutCopy, .visual, .companyNoticeOffers) {
    min-width: 0;
}

#page-top :is(h1, h2, h3:not(:where(.indexVideoCopy h3)), .hero h1 span, .companyNoticeBrand, .companyNoticeTitle) {
    font-size: var(--index-title);
    line-height: 1.25;
}

#page-top .indexVideoCopy h3 {
    font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.125rem);
    line-height: 1.4;
}

#page-top :is(p, .lead, .offerList li, .offerMain, .detailIntro, .detailBody li,
    .partnerLead, .benefits li, .benefits b, .footerMission, .footText,
    .companyNoticeOffers, .companyNoticeWish) {
    font-size: var(--index-body);
    line-height: 1.55;
}

#page-top :is(.brand strong, .link, .dropbtn, .contact strong, .offerTitle,
    .btn, .more, .serviceTierLabel, .serviceShowcase a, .serviceTierHeadingLink,
    .serviceDetail summary strong, .detailAction, .profileGroupTitle,
    .profileItem span, .postMore, .businessStatus, .footerNav a, .foot ul,
    .footerExplore li a, .footerSupport li, .toast, .commission, .partnerButtons a,
    .partnerButtons button, .serviceReview, .serviceReviewCheck, .proofButton,
    .companyNoticeCompany, .companyNoticeMeta, .companyNoticeOfferAction,
    .orbitXcodeLink) {
    font-size: var(--index-info);
    line-height: 1.35;
}

#page-top .serviceTab strong {
    font-size: var(--index-info) !important;
    line-height: 1.35;
}

#page-top :is(small, .contact span, .tag, .status, .float, .orbitHint,
    .meta, .indexVideoCopy span, .actionNumber, .serviceNumber,
    .legalItem, .legalRow, .licenseInfo, .copy, .copy > span:last-child,
    .copy .copyright, .visitorCounts, .aiPetBadge) {
    font-size: var(--index-caption);
    line-height: 1.35;
}

/* The existing trust badge sets its size with !important. */
#page-top .trust {
    font-size: var(--index-caption) !important;
    line-height: 1.35;
}

#page-top .serviceReview > span {
    font-size: inherit;
}

@media (max-width: 480px) {
    #page-top :is(.serviceReview, .trust, .legalRow) {
        flex-wrap: wrap;
    }

    #page-top .orbitActions .btn {
        white-space: normal;
    }

    #page-top .serviceShowcase a {
        white-space: normal;
    }
}

#page-top .trust .authPopupOpen { color: inherit; text-decoration: none; }
#page-top .trust .authPopupOpen:hover,
#page-top .trust .authPopupOpen:focus-visible { text-decoration: underline; }

#page-top .floatingSupportLink {
    position: fixed;
    z-index: 1050;
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: inline-grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    min-height: 44px;
    padding: 5px 10px;
    border: 1px solid #b9e0fc;
    border-radius: 12px;
    color: #fff;
    background: #0869c9;
    box-shadow: 0 4px 14px #124c8050;
    font-size: max(.875rem, var(--index-info));
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
}

#page-top .floatingSupportTop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#page-top .floatingSupportTop i {
    animation: support-icon-sway 1.25s ease-in-out infinite alternate;
}
@keyframes support-icon-sway {
    from { transform: translateX(-11px); }
    to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    #page-top .floatingSupportTop i { animation: none; }
}

#page-top .floatingSupportLink:is(:hover, :focus-visible) { background: #0754a2; }
#page-top .backToTop { bottom: calc(64px + env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
    #page-top .floatingSupportLink { right: calc(28px + env(safe-area-inset-right)); }
    #page-top .backToTop { right: max(32px, env(safe-area-inset-right)); }
}
