/* Whop Integration — landing page canvas and furniture blocks.
 *
 * Same token-following approach as checkout.css: colours come from the host
 * theme's own custom properties, which GG re-declares under [data-theme=dark],
 * so light/dark needs no JS here. The fallbacks keep this legible on a theme
 * that defines no such tokens. */

.whopint-landing,
.whopint-hero,
.whopint-assurances {
    --whopint-text: var(--vc-body-color, #202223);
    --whopint-muted: var(--vc-color-neutral-6, #8c8c8c);
    --whopint-accent: var(--vc-color-primary-0, #d93c09);
    --whopint-accent-text: var(--vc-color-primary-2, #fffbf8);
    --whopint-surface: var(--vc-background-2, #f5f5f5);
    --whopint-border: var(--vc-color-neutral-3, #f0f0f0);
}

/* GG spaces <main> away from the header; a full-bleed canvas must not be.
   A no-op on themes without that element. */
.whopint-landing-page .vc-page__main {
    margin: 0;
}

/* ---------------------------------------------------------------- canvas -- */

.whopint-landing {
    position: relative;

    /* Fill the viewport when the content is short — a welcome page is a panel
       and little else, and looks stranded above the footer otherwise.
       Deliberately NOT 100vh: the theme's header and footer sit outside this
       element, so a full viewport height here would always overflow, and on
       mobile `vh` ignores the browser chrome. `dvh` tracks the visible area,
       and min-height means longer pages (a checkout landing page) just grow. */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 68dvh;
    padding-block: clamp(2rem, 5vw, 4rem);
    padding-inline: 16px;
    color: var(--whopint-text);
    /* --vc-body-bg is the page background (#fff light / #070709 dark).
       NOT --vc-background-1: that is GG's navy header/footer colour. */
    background-color: var(--vc-body-bg, #fff);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.whopint-landing__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 2, 45, 0.78), rgba(0, 2, 45, 0.88));
}

.whopint-landing__inner {
    position: relative; /* above the overlay */
    z-index: 1;
    max-width: 1140px;
    margin-inline: auto;
}

.whopint-landing__inner > * + * {
    margin-block-start: clamp(1.5rem, 4vw, 2.5rem);
}

/* Over a background image the theme's own light/dark text colours would be
   unreadable, so the canvas fixes its palette regardless of mode. */
.whopint-landing--has-bg,
.whopint-landing--has-bg .whopint-hero,
.whopint-landing--has-bg .whopint-assurances {
    --whopint-text: #fff;
    --whopint-muted: rgba(255, 255, 255, 0.72);
    --whopint-surface: rgba(255, 255, 255, 0.08);
    --whopint-border: rgba(255, 255, 255, 0.16);
}

/* ------------------------------------------------------------------ hero -- */

.whopint-hero {
    max-width: 720px;
    margin-inline: auto;
    color: var(--whopint-text);
    text-align: center;
}

.whopint-hero__logo {
    margin-bottom: 1.5rem;
}

.whopint-hero__logo img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    max-height: 64px;
}

.whopint-hero__heading {
    margin: 0 0 1rem;
    color: inherit;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
}

.whopint-hero__highlight {
    color: var(--whopint-accent);
}

.whopint-hero__description {
    margin: 0;
    color: var(--whopint-muted);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.5;
}

/* ------------------------------------------------------------ assurances -- */

.whopint-assurances {
    max-width: 760px;
    margin-inline: auto;
    color: var(--whopint-text);
    text-align: center;
}

.whopint-assurances__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.whopint-assurances__item {
    position: relative;
    padding-inline-start: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    text-align: start;
}

.whopint-assurances__item::before {
    position: absolute;
    inset-inline-start: 0;
    color: var(--whopint-accent);
    font-weight: 700;
    content: "\2713";
}

.whopint-assurances__upsell {
    margin-block-start: 1.75rem;
    padding: 1.25rem;
    border: 1px solid var(--whopint-border);
    border-radius: 12px;
    background: var(--whopint-surface);
}

.whopint-assurances__upsell-text {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    line-height: 1.4;
}

.whopint-assurances__cta:not(.whopint-btn--themed) {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--whopint-accent);
    color: var(--whopint-accent-text);
    font-weight: 600;
    text-decoration: none;
}

.whopint-assurances__cta:hover,
.whopint-assurances__cta:focus-visible {
    color: var(--whopint-accent-text);
    text-decoration: none;
    filter: brightness(1.08);
}

.whopint-assurances__terms {
    margin-block-start: 1.5rem;
    color: var(--whopint-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.whopint-assurances__terms p {
    margin: 0 0 0.5rem;
    font-size: inherit;
    line-height: inherit;
}

.whopint-assurances__terms p:last-child {
    margin-bottom: 0;
}

.whopint-assurances__terms a {
    color: inherit;
    text-decoration: underline;
}
