/*
The home page's own CSS (/ and /es/): animations, effects and background images. It loads
before utilities.css, so a utility class wins over a rule here of the same specificity.
*/

/* Inter v20 (Google Fonts' latin subset), served from this site. One variable file covers every
   weight the pages use (300 to 600) and the Portuguese and Spanish accents. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #030005;
}

/* Icons: <use href="/assets/icons.svg#i-name"/> (see that file) */
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* ----- Motion (see assets/js/motion.js) ----- */
:root {
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 200ms;
    --dur-base: 450ms;
}

/* Hidden only until motion.js reveals them (html.motion is dropped if it never runs) */
html.motion [data-reveal]:not(.is-in) { opacity: 0; }

/* Language switch crossfade */
[data-i18n].i18n-in { transition: opacity 220ms ease; }
[data-i18n].i18n-out { opacity: 0 !important; transition: opacity 140ms ease; }

/* Hero: nothing in it moves on load, so it paints right away. The largest paint (LCP) is text:
   the title on desktop, the paragraph under it on phones. */
.hero-line, .hero-line > span { display: inline-block; }
.hero-gradient {
    background-image: linear-gradient(to right, #fff, #d8b4fe, #7F35B2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero background: aurora */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-aurora span {
    position: absolute;
    border-radius: 9999px;
    filter: blur(90px);
    will-change: transform;
}
.hero-aurora span:nth-child(1) { width: 34rem; height: 34rem; left: 4%; top: -10%; background: #7F35B2; opacity: 0.32; }
.hero-aurora span:nth-child(2) { width: 26rem; height: 26rem; right: 2%; top: 6%; background: #c026d3; opacity: 0.16; }
.hero-aurora span:nth-child(3) { width: 38rem; height: 22rem; left: 28%; top: 38%; background: #4f46e5; opacity: 0.12; }
@media (max-width: 767px) {
    .hero-aurora span { filter: blur(70px); }
    .hero-aurora span:nth-child(1) { width: 20rem; height: 20rem; }
    .hero-aurora span:nth-child(2) { width: 16rem; height: 16rem; }
    .hero-aurora span:nth-child(3) { width: 22rem; height: 14rem; }
}
@keyframes aurora-a { to { transform: translate(22%, 14%) scale(1.15); } }
@keyframes aurora-b { to { transform: translate(-26%, 18%) scale(0.9); } }
@keyframes aurora-c { to { transform: translate(-14%, -20%) scale(1.2); } }

/* Dot grid behind the page; the dots around the cursor light up (motion.js) */
.page-dots-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.6px);
    background-size: 28px 28px;
}
.page-dots--lit {
    background-image: radial-gradient(rgba(216, 180, 254, 0.85) 1.2px, transparent 1.8px);
    -webkit-mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 70%);
    mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}
.page-dots--lit.is-on { opacity: 1; }

/* A beam of light running around a border (buttons, Pro plan) */
@property --beam-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
.beam::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--beam-angle), transparent 0deg 250deg, rgba(216, 180, 254, 0.7) 300deg, #fff 335deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.beam--card::before { padding: 2px; }
@keyframes beam-spin { to { --beam-angle: 360deg; } }

/* Border glow that follows the cursor across a group of cards */
.spot-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -300px), rgba(203, 162, 230, 0.6), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .spot-group:hover .spot-card::after { opacity: 1; }
}

/* Light sweep every few seconds */
.shine-loop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
    transform: translateX(-110%);
    pointer-events: none;
}
.shine-loop::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%); }
@keyframes shine-loop {
    0%, 55% { transform: translateX(-110%); }
    85%, 100% { transform: translateX(110%); }
}

/* Typing demos: the data-i18n source stays for the static state and for translation */
.type-target, .type-caret { display: none; }
.demo-live .type-source { display: none; }
.demo-live .type-target { display: inline; }
.demo-live .type-caret {
    display: inline-block;
    width: 1px;
    height: 1em;
    margin-left: 1px;
    vertical-align: -0.15em;
    background: currentColor;
}
.demo-live.demo-done .type-caret { display: none; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* How it works: rail between the step dots, and stacked panels */
.steps-rail, .steps-fill { position: absolute; left: 11.5px; width: 1px; }
.steps-fill { background: linear-gradient(to bottom, #d8b4fe, #7F35B2); transform-origin: top; }
.step-panel { position: absolute; inset: 0; }
.step-panel + .step-panel { opacity: 0; visibility: hidden; }
/* The steps become buttons once motion.js runs */
[data-step][role="button"] { cursor: pointer; border-radius: 0.75rem; }
[data-step][role="button"]:not([aria-current]):hover { opacity: 0.75 !important; }
[data-step][role="button"]:focus-visible { outline: 2px solid #7F35B2; outline-offset: 6px; }
.beam-path { fill: none; stroke: #d8b4fe; stroke-width: 0.8; stroke-linecap: round; opacity: 0; }
@keyframes beam-flow {
    from { stroke-dashoffset: 0.2; }
    to { stroke-dashoffset: -1; }
}

/* Final section: the floor glow fades out before the section's top, where overflow-hidden would cut it in a line */
.dawn-layer {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%);
    mask-image: linear-gradient(to bottom, transparent, #000 55%);
}

/* Footer: the page dots fade into its solid background, so there's no edge line */
footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 112px;
    background: linear-gradient(to bottom, transparent, #020003);
    pointer-events: none;
}
/* The gradient fills the final section's bottom padding (pb-28, md:pb-40) */
@media (min-width: 768px) {
    footer::before { height: 160px; }
}

/* Nav */
nav.is-scrolled { background-color: rgba(3, 0, 5, 0.92); box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.9); }
.nav-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #7F35B2, #d8b4fe);
    transform: scaleX(0);
    transform-origin: left;
}
.nav-indicator {
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100px;
    height: 2px;
    border-radius: 2px;
    background: #b57ee0;
    transform-origin: left;
    opacity: 0;
}

/* CSS loops pause while their section is off screen */
.is-offscreen, .is-offscreen *, .is-offscreen::before, .is-offscreen::after,
.is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: no-preference) {
    .hero-aurora span:nth-child(1) { animation: aurora-a 26s var(--ease-in-out) infinite alternate; }
    .hero-aurora span:nth-child(2) { animation: aurora-b 32s var(--ease-in-out) infinite alternate; }
    .hero-aurora span:nth-child(3) { animation: aurora-c 38s var(--ease-in-out) infinite alternate; }
    .beam::before { opacity: 1; animation: beam-spin 7s linear infinite; }
    .beam--card::before { animation-duration: 10s; }
    .shine-loop::after { animation: shine-loop 8s var(--ease-in-out) infinite; }
    .store-skeleton .store-card-logo,
    .store-card.is-loading .store-card-logo { animation: store-shimmer 1.6s var(--ease-in-out) infinite; }
    .store-card-logo > * { transition: opacity 0.3s; }
    .demo-live .type-caret { animation: caret-blink 1s steps(1) infinite; }
    .beam-path { opacity: 1; stroke-dasharray: 0.2 1; animation: beam-flow 4s var(--ease-in-out) infinite; }
    .beam-path:nth-of-type(2) { animation-delay: 0.6s; }
    .beam-path:nth-of-type(3) { animation-delay: 1.2s; }
    .beam-path:nth-of-type(4) { animation-delay: 1.8s; }
}

/* Horizontal scrollers (pricing on phones) keep their swipe without a scrollbar */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Dropdown transition */
.lang-dropdown {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}
.lang-dropdown.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Stores grid: one card per store, each a link to it (page.js). The last row stays centered. */
.stores-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.stores-grid > li { width: calc((100% - 3 * 0.5rem) / 4); }
@media (min-width: 640px) {
    .stores-grid { gap: 0.75rem; max-width: 52rem; margin-inline: auto; }
    .stores-grid > li { width: calc((100% - 5 * 0.75rem) / 6); }
}
.store-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    background-color: rgba(23, 23, 23, 0.4);
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.store-card:hover {
    background-color: rgba(23, 23, 23, 0.6);
    border-color: rgba(127, 53, 178, 0.5);
}
.store-card:focus-visible {
    outline: 2px solid #cba2e6;
    outline-offset: 2px;
}
/* The page script sets the tile's background from the logo's own colors */
.store-card-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.03);
}
.store-card-logo img {
    position: absolute;
    top: 0.375rem;
    left: 0.375rem;
    width: calc(100% - 0.75rem);
    height: calc(100% - 0.75rem);
    object-fit: contain;
}
/* No logo to show: the store's initial */
.store-card-initial {
    font-size: 1.25rem;
    font-weight: 500;
    color: #cba2e6;
}
/* Always shown, since touch screens have no hover: the card opens the store in a new tab.
   Pinned to the card's corner, half outside, so it never covers the logo. */
.store-card-arrow {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    background-color: #17151a;
    color: #cba2e6;
    transition: background-color 0.3s, color 0.3s;
}
.store-card-arrow svg {
    width: 0.625rem;
    height: 0.625rem;
    transition: transform 0.3s var(--ease-out);
}
.store-card:hover .store-card-arrow {
    background-color: #7F35B2;
    color: #fff;
}
@media (min-width: 768px) {
    .store-card {
        padding: 0.375rem;
        border-radius: 0.875rem;
    }
    .store-card-arrow {
        top: -0.375rem;
        right: -0.375rem;
        width: 1.375rem;
        height: 1.375rem;
    }
    .store-card-arrow svg {
        width: 0.75rem;
        height: 0.75rem;
    }
}
/* Placeholders (page.js): the skeleton cards the grid opens with, and a real card until its logo is
   painted. The skeleton is a .store-card for its exact size; three rows of it are 12 cards on a phone. */
.store-skeleton { pointer-events: none; }
@media (max-width: 639px) {
    .store-skeleton:nth-child(n+13) { display: none; }
}
.store-skeleton .store-card-logo,
.store-card.is-loading .store-card-logo {
    background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    background-size: 200% 100%;
    background-repeat: no-repeat;
}
.store-card.is-loading .store-card-logo > * { opacity: 0; }
@keyframes store-shimmer {
    from { background-position: 150% 0; }
    to { background-position: -50% 0; }
}
/* Holds its room while the grid loads, so the cards' arrival doesn't push the page */
.stores-grid[aria-busy="true"] + .stores-more-wrap { visibility: hidden; }

@media (prefers-reduced-motion: no-preference) {
    .store-card:hover { transform: translateY(-2px); }
    .store-card:hover .store-card-arrow svg,
    .store-card:focus-visible .store-card-arrow svg { transform: translate(1px, -1px); }
}

/* "Ver mais": shows two more rows of the stores grid (page.js) */
.stores-more-wrap {
    margin-top: 1.5rem;
    text-align: center;
}
.stores-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 2.25rem;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: #cbd5e1;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.stores-more:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(127, 53, 178, 0.5);
    color: #fff;
}
.stores-more:focus-visible {
    outline: 2px solid #cba2e6;
    outline-offset: 2px;
}
.stores-more svg {
    width: 1rem;
    height: 1rem;
}

/* The Zoe in action (#in-action): the store's WhatsApp, drawn like the app store screenshot. The
   site chat screen that stood next to it, and its own rules, are kept in _guardado/chat-site/;
   side by side, .chat-figure grows both screens to the taller one's height. */
.chat-figure {
    display: flex;
    flex-direction: column;
}
.chat-mock {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.75rem;
    box-shadow: 0 30px 60px -30px rgba(127, 53, 178, 0.45);
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: left;
    /* Drawn at the screenshots' size and shown smaller: zoom scales the text, photos and corners
       together, and the layout takes the smaller size */
    zoom: 0.88;
}
@media (min-width: 768px) {
    .chat-mock { zoom: 0.84; }
}
.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* On WhatsApp: the store's business account, on the customer's phone, in WhatsApp's own dark
   mode, which sits with the dark page */
.chat-wa {
    background-color: #0b141a;
    color: #e9edef;
}
.chat-wa-bar {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background-color: #202c33;
}
.chat-wa-avatar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background-image: linear-gradient(135deg, #e8a07a, #c2643f);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}
.chat-wa-name {
    font-size: 0.9375rem;
    font-weight: 600;
}
.chat-wa-status {
    font-size: 0.75rem;
    color: #8696a0;
}
.chat-wa-body {
    flex: 1;
    padding: 0.875rem 0.875rem 1.25rem;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
    background-size: 18px 18px;
}
.chat-wa-day {
    width: fit-content;
    margin: 0 auto 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    background-color: #182229;
    font-size: 0.75rem;
    color: #8696a0;
}
.chat-wa .chat-thread { gap: 0.5rem; }
.chat-wa-bubble {
    max-width: 85%;
    padding: 0.4375rem 0.625rem 0.375rem;
    border-radius: 0.625rem;
    background-color: #202c33;
}
.chat-wa-bubble--customer {
    align-self: flex-end;
    background-color: #005c4b;
}
/* Holds the floated time, above a button */
.chat-wa-bubble p { display: flow-root; }
/* The product carousel: one card and the edge of the next */
.chat-wa-cards {
    display: flex;
    gap: 0.5rem;
    margin-right: -0.875rem;
    padding-bottom: 2px;
    overflow: hidden;
}
.chat-wa-card {
    display: flex;
    flex: 0 0 52%;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.625rem;
    background-color: #202c33;
}
.chat-wa-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: #fff;
}
.chat-wa-card-name {
    padding: 0.5rem 0.625rem 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.chat-wa-card-price { padding: 0 0.625rem 0.5rem; }
/* A message's link button: "Ver produto" under a card, "Finalizar compra" under the text */
.chat-wa-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem;
    border-top: 1px solid rgba(134, 150, 160, 0.2);
    font-weight: 500;
    color: #53bdeb;
}
.chat-wa-bubble .chat-wa-button { margin: 0.375rem -0.625rem -0.375rem; }
.chat-wa-button svg {
    width: 1rem;
    height: 1rem;
}
/* The time sits at the end of the text, as in WhatsApp */
.chat-wa-time {
    display: inline-flex;
    float: right;
    align-items: center;
    gap: 0.1875rem;
    margin: 0.375rem 0 -0.125rem 0.625rem;
    font-size: 0.6875rem;
    color: rgba(233, 237, 239, 0.6);
}
.chat-wa-time svg {
    width: 0.875rem;
    height: 0.875rem;
    color: #53bdeb;
}
.chat-wa-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem 0.875rem;
    background-color: #202c33;
    color: #8696a0;
}
.chat-wa-input svg {
    width: 1.25rem;
    height: 1.25rem;
}
.chat-wa-input span {
    flex: 1;
    height: 2.25rem;
    border-radius: 9999px;
    background-color: #2a3942;
}

/* FAQ (#faq): native <details>, so the answers open without JS. page.js re-measures the page on toggle. */
.faq-list { padding: 0 1.5rem; }
.faq-answer { padding-bottom: 1.25rem; }
@media (min-width: 768px) {
    .faq-list { padding: 0 2rem; }
    .faq-answer { padding-right: 2.25rem; }
}
.faq-item + .faq-item { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
    .faq-chevron { transition: transform 0.3s var(--ease-out); }
}
