/* Identidade Franclub. Tokens únicos e componentes compartilhados pelas páginas. */
:root {
    --purple: #2a2072;
    --lime: #b0fe76;
    --lavender: #7678ed;
    --forest: #036016;
    --paper: #f9f7f2;
    --ink: #191e19;
    --deep: #17103e;
    --surface: #251957;
    --surface-light: #dcd9f8;
    --text: #fff;
    --muted: #ded8f0;
    --line: 1px solid #ffffff38;
    --glass: #ffffff0e;
    --glass-shadow: inset 0 1px 0 #ffffff50, 0 20px 60px #130d3829;
    --radius-control: 16px;
    --radius-card: 28px;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-display: 'Archivo Black', 'IBM Plex Sans', sans-serif;
    --font-accent: 'Space Mono', monospace;
    --content-width: 1280px;
}

::selection {
    background: var(--lime);
    color: var(--deep);
}

html {
    scrollbar-color: var(--lavender) var(--deep);
}

input {
    caret-color: var(--purple);
}

.button {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 58px;
    padding: 16px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    font: 700 18px/1.35 var(--font-body);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.button.lime {
    background: var(--lime);
    color: var(--deep);
    box-shadow: inset 0 1px 0 #ffffffc0, 0 8px 24px #0001;
}

.button.purple-button {
    background: var(--purple);
    color: #fff;
}

.button.text-button {
    color: inherit;
    border: 0;
    background: transparent;
    padding: 12px 0;
    text-decoration: underline;
    text-underline-offset: 5px;
    box-shadow: none;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 2px #ffffff77, 0 12px 30px #b0fe7626;
}

.button.text-button:hover {
    box-shadow: none;
}

.button:active {
    transform: translateY(0) scale(.98);
}

.button:disabled {
    cursor: not-allowed;
    opacity: .65;
    transform: none;
    box-shadow: none;
}

.icon {
    width: 24px;
    height: 24px;
    flex: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 5px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    transform-origin: left center;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.brand img {
    display: block;
    filter: brightness(0) invert(1);
}

.brand-icon {
    flex: none;
    width: 35px;
    height: 35px;
    transform: rotate(0);
    transition: transform 3s cubic-bezier(.22, 1, .36, 1);
}

.brand .word {
    width: 139px;
    height: auto;
}

.brand:hover,
.brand:focus-visible {
    transform: scale(1.035);
}

.brand:hover .brand-icon,
.brand:focus-visible .brand-icon {
    transform: rotate(90deg);
}

/* Sinal de convite: borda luminosa, sem piscar o texto ou alterar o espaço ocupado. */
.button.lime::before {
    content: '';
    position: absolute;
    inset: -6px;
    z-index: -1;
    pointer-events: none;
    border: 2px solid #b0fe7680;
    border-radius: 22px;
    opacity: 0;
}

.button.lime[data-in-view=true]::before {
    animation: cta-signal 3.8s ease-out infinite;
}

@keyframes cta-signal {

    0%,
    15% {
        opacity: 0;
        transform: scale(.99)
    }

    26% {
        opacity: .85
    }

    65%,
    100% {
        opacity: 0;
        transform: scale(1.08, 1.2)
    }
}

/* Botão Y2K com relevo e uma camada WebGL opcional. O texto sempre permanece em HTML. */
.diagnostic-trigger {
    color: var(--deep);
    background: var(--lime);
    border: 1px solid #edffdf;
    border-radius: 30% 18px 28% 18px;
    box-shadow: inset 0 3px 0 #fff9, inset 0 -5px 0 #36801140, 0 7px 0 #10102c, 0 13px 28px #b0fe7626;
    font-size: 16px;
    padding: 13px 22px;
    min-height: 52px;
    overflow: visible;
}

.diagnostic-trigger>span,
.diagnostic-trigger>svg {
    position: relative;
    z-index: 2;
}

.diagnostic-trigger::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 1px solid var(--lime);
    border-radius: inherit;
    opacity: 0;
    animation: diagnostic-signal 3.4s ease-out infinite;
    pointer-events: none;
}

.cta-webgl {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    opacity: .42;
}

@keyframes diagnostic-signal {

    0%,
    12% {
        opacity: 0;
        transform: scale(.97)
    }

    32% {
        opacity: .8
    }

    75%,
    100% {
        opacity: 0;
        transform: scale(1.1, 1.3)
    }
}

.diagnostic-trigger:hover {
    transform: translateY(-3px) rotate(-2deg);
    box-shadow: inset 0 2px 0 #fffa, inset 0 -5px 0 #36801140, 0 10px 0 #10102c, 0 18px 30px #b0fe7640;
}

/* Controles do usuário prevalecem sobre todos os efeitos decorativos. */
html[data-page-hidden=true] *,
html[data-page-hidden=true] *::before,
html[data-page-hidden=true] *::after,
html[data-motion=paused] *,
html[data-motion=paused] *::before,
html[data-motion=paused] *::after,
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after {
    animation-play-state: paused !important;
}

html[data-motion=paused] {
    scroll-behavior: auto;
}

/* O ajuste manual de conforto recebe o mesmo tratamento da preferência do sistema. */
html[data-motion=paused] *,
html[data-motion=paused] *::before,
html[data-motion=paused] *::after {
    transition: none !important;
}

html[data-motion=paused] .brand:hover,
html[data-motion=paused] .brand:focus-visible,
html[data-motion=paused] .brand:hover .brand-icon,
html[data-motion=paused] .brand:focus-visible .brand-icon {
    transform: none;
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .brand:hover,
    .brand:focus-visible,
    .brand:hover .brand-icon,
    .brand:focus-visible .brand-icon {
        transform: none;
    }

    .button::before,
    .diagnostic-trigger::after {
        opacity: 0 !important;
    }
}
