:root {
    --color-list: #AEB9C3;
    --ink: #5f5d6c;
    --ink-light: white;

    --font-display: 'Rufina', serif;
    --font-body: 'Average Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #fafafa;
    pointer-events: none;
}

.bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.container {
    width: min(100%, 640px);
    margin: 0 auto;
    padding: 0 1rem;
    min-height: calc(100vh - 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

main {
    flex: 1;
}

.card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    min-height: 530px;
    display: block;
    align-items: center;
    justify-content: center;
}

ul {
    padding-left: 0;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.15rem;
    justify-items: center;
}

li {
    background: var(--color-list);
    border-radius: 4px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
    padding: 0;
    margin-bottom: 0.8rem;
    list-style: none;
    width: 90%;
    min-height: 50px;
    height: 50px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

ul li a {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--ink-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    height: 100%;
    padding: 0.5rem;
    text-align: center;
}


h1 {
    font-size: 2.3rem;
    font-family: var(--font-display);
    text-align: center;
    margin-top: 1px;
    color: var(--ink);
}

.card p {
    font-size: 1.2rem;
    font-family: var(--font-body);
    line-height: 1.4;
    margin-bottom: 1.3rem;
    text-align: justify;
    padding: 0 1rem 0 1rem;
    color: var(--ink);
}

.ferramenta {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.ferramenta.premium::before {
    content: "";
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 0;

    opacity: 0;
    border-radius: inherit;
    background: var(--ink-light);
    color: var(--ink);
    top: 50%;
    left: 50%;
    width: 1em;
    height: 1em;
    transform-origin: center;
    transform: translate3d(-50%, -50%, 0) scale3d(0, 0, 0);
    transition: transform 0.45s ease-in-out;
}

.ferramenta.premium:hover::before {
    transform: translate3d(-50%, -50%, 0) scale3d(15, 15, 15);
    opacity: 1;
}

.premium-overlay {
    color: var(--ink);
    position: absolute;
    inset: 0;
    z-index: 1;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;

    opacity: 0;
    transition: opacity 0.25s ease;
}

.ferramenta.premium:hover .premium-overlay {
    opacity: 1;
}

footer {
    padding: 1rem;
    height: 3rem;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    font-family: var(--font-body);
    line-height: 1;
    color: var(--ink-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    .card {
        min-height: 0;
        padding: 0.875rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .card p {
        font-size: 1rem;
        padding: 0 0.25rem;
    }

    ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    li {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 50px;
        margin-bottom: 0;
    }

    ul li a {
        min-height: 50px;
        height: auto;
        font-size: 0.95rem;
        overflow-wrap: anywhere;
    }
}

/* -------------- Botão Flutuante -------------- */

.botao-flutuante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.botao-flutuante .lista {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.botao-flutuante .lista.aberto {
    display: flex;
}

.botao-flutuante .lista a {
    text-decoration: none;
    color: var(--ink-light);
    font-family: var(--font-body);
}

.botao-flutuante .item,
.botao-flutuante .item-flut {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    background-color: var(--color-list);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
    padding: 12px 15px;
    border-radius: 5px;
}

.botao-flutuante .botao {
    display: flex;
}

.botao-flutuante button {
    border: none;
    cursor: pointer;
    border-radius: 30px;
    background: var(--color-list);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    position: relative;
    padding: 5px;
}

.botao-flutuante button .icon {
    padding: 3px;
    display: flex;
    align-items: center;
    color: var(--ink-light);
}

.botao-flutuante button:active {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}