@font-face {
    font-family: 'Euclid Circular B';
    src: url('../fonts/EuclidCircularB-Regular.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('../fonts/EuclidCircularB-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('../fonts/EuclidCircularB-Bold.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}

/* Cores tiradas da logo: o roxo da capa e os três círculos da marca */
:root {
    --roxo: #4a1766;
    --roxo-escuro: #2a0b3b;
    --vermelho: #be1229;
    --verde: #a4bd33;
    --laranja: #d17a07;
    --branco: #fff;
    --texto1: hsl(0, 0%, 5%);
}

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

html {
    color-scheme: dark;
}

body {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 32px;
    overflow-x: hidden;
    font-family: 'Euclid Circular B', system-ui, sans-serif;
    color: var(--branco);
    background:
        radial-gradient(circle at 16% 24%, rgb(190 18 41 / 0.40), transparent 40%),
        radial-gradient(circle at 88% 16%, rgb(209 122 7 / 0.32), transparent 32%),
        radial-gradient(circle at 80% 88%, rgb(164 189 51 / 0.28), transparent 40%),
        radial-gradient(ellipse at 50% 40%, var(--roxo), var(--roxo-escuro) 88%);
    background-color: var(--roxo-escuro);
}

/* TRILHA DE FUNDO */
.trilha {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.trilha path {
    fill: none;
    stroke: rgb(255 255 255 / 0.12);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 8 16;
    animation: pedalar 24s linear infinite;
}

.trilha path + path {
    animation-direction: reverse;
    animation-duration: 32s;
}

@keyframes pedalar {
    to { stroke-dashoffset: -480; }
}

/* CONVITE */
.convite {
    position: relative;
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.convite > * {
    animation: surgir 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.convite > :nth-child(2) { animation-delay: 0.16s; }
.convite > :nth-child(3) { animation-delay: 0.24s; }
.convite > :nth-child(4) { animation-delay: 0.32s; }
.convite > :nth-child(5) { animation-delay: 0.40s; }

@keyframes surgir {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
}

.logo {
    width: 240px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 16px 32px rgb(0 0 0 / 0.32));
}

h1 {
    font-size: clamp(40px, 8vw, 64px);
    line-height: 1.1;
    font-weight: bold;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

h1 span {
    color: var(--verde);
}

.mensagem {
    max-width: 512px;
    font-size: 16px;
    line-height: 24px;
    color: rgb(255 255 255 / 0.80);
    margin-bottom: 40px;
}

/* BOTÕES DAS LOJAS */
.lojas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.loja {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 240px;
    height: 72px;
    padding: 0 24px;
    border-radius: 16px;
    background: var(--branco);
    color: var(--texto1);
    text-decoration: none;
    text-align: left;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.24);
    transition: transform 0.2s, box-shadow 0.2s;
}

.loja:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgb(0 0 0 / 0.32);
}

.loja:focus-visible {
    outline: 2px solid var(--verde);
    outline-offset: 8px;
}

.loja svg {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.loja span {
    display: flex;
    flex-direction: column;
}

.loja small {
    font-size: 16px;
    line-height: 16px;
    color: hsl(0, 0%, 30%);
}

.loja strong {
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
}

/* ABRIR NO APP: mesmo formato das lojas, em contorno para não competir com elas */
.loja.abrir-app {
    margin-bottom: 24px;
    border: 2px solid var(--branco);
    background: transparent;
    color: var(--branco);
}

.loja.abrir-app small {
    color: rgb(255 255 255 / 0.80);
}

/* O display: flex da .loja anula o [hidden] do navegador */
.loja.abrir-app[hidden] {
    display: none;
}

/* RODAPÉ */
.rodape {
    position: relative;
    margin-top: 48px;
    font-size: 16px;
    color: rgb(255 255 255 / 0.48);
}

@media (min-width: 768px) {
    .logo {
        width: 320px;
        animation: surgir 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both, flutuar 6s ease-in-out 0.8s infinite;
    }
}

@keyframes flutuar {
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    *, .logo, .trilha path {
        animation: none !important;
        transition: none !important;
    }
}
