/* ==========================================================================
   demo.css — página de demonstração (fieldbox.energy/demo)
   Topo: legal.css. Botões, animações e barras: waitlist.css.
   ========================================================================== */
.dm-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.dm-btn { width: auto; margin-top: 0; padding: 0.85rem 1.4rem; text-decoration: none; }

/* ---------- Vídeo: "leitor" com capítulos à esquerda e a fieldbox à direita ---------- */
.dm-video-wrap { position: relative; margin-top: -2rem; padding-bottom: 1rem; }

.dm-video {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 1rem;
    min-height: 26rem;
    max-width: 68rem;
    margin: 0 auto;
    padding: 2.5rem 2.75rem;
    overflow: hidden;
    border: 1px solid rgba(135, 230, 75, 0.25);
    border-radius: 24px;
    background:
        radial-gradient(34rem 22rem at 78% 75%, rgba(135, 230, 75, 0.22), transparent 60%),
        linear-gradient(150deg, #13201a 0%, #0b120f 55%);
    box-shadow: 0 40px 90px -40px rgba(11, 18, 15, 0.7);
    isolation: isolate;
    color: #c7d2cb;
}

/* Grelha fina, como no topo */
.dm-video__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 75% 60%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 75% 60%, #000 0%, transparent 70%);
}

.dm-video__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #87e64b;
}

.dm-video__title {
    margin: 0.6rem 0 0;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
}

.dm-chapters { display: grid; gap: 0.55rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.dm-chapters li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.97rem; }
.dm-chapters span {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid rgba(135, 230, 75, 0.35);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #87e64b;
    font-variant-numeric: tabular-nums;
}

/* Play: botão redondo com anel (o site força 6px nos botões; aqui ganha a regra mais específica) */
.dm-video .dm-play {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px !important;
    background: transparent;
    font: inherit;
    color: #fff;
    cursor: pointer;
}

.dm-video .dm-play__btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    padding-left: 0.25rem;
    border-radius: 50% !important;
    background: #87e64b;
    color: #0b120f;
    box-shadow: 0 18px 40px -12px rgba(135, 230, 75, 0.8);
    transition: transform 0.2s;
}

.dm-video .dm-play:hover .dm-play__btn { transform: scale(1.08); }
.dm-video .dm-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.dm-video .dm-play__ring {
    position: absolute;
    inset: 0;
    border: 3px solid #87e64b;
    border-radius: 50% !important;
    animation: dm-ring 2s ease-out infinite;
}

@keyframes dm-ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }

.dm-play__label { font-size: 1.05rem; font-weight: 800; }
.dm-play__label::after { content: " →"; color: #87e64b; }

.dm-video__soon { max-width: 30rem; margin: 1.5rem 0 0; font-size: 0.95rem; line-height: 1.6; }
.dm-video__soon a { font-weight: 700; color: #87e64b; text-decoration: underline; text-underline-offset: 3px; }

/* A fieldbox à direita, a flutuar */
.dm-video__product { position: relative; display: grid; place-items: center; height: 100%; min-height: 20rem; }

.dm-video__img {
    position: relative;
    z-index: 1;
    width: min(100%, 21rem);
    height: auto;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
    animation: dm-float 6s ease-in-out infinite;
}

@keyframes dm-float { 50% { transform: translateY(-10px); } }

.dm-video__glow {
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 6%;
    height: 22%;
    background: radial-gradient(ellipse at center, rgba(135, 230, 75, 0.45), transparent 70%);
    filter: blur(18px);
}

.dm-video__chip {
    position: absolute;
    z-index: 2;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(135, 230, 75, 0.35);
    border-radius: 999px;
    background: rgba(11, 18, 15, 0.8);
    backdrop-filter: blur(8px);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    animation: wlp-bob 4s ease-in-out infinite;
}

.dm-video__chip--1 { top: 12%; right: 2%; }
.dm-video__chip--2 { bottom: 14%; left: 0; animation-delay: 1.5s; }

/* A tocar: o vídeo ocupa o leitor todo */
.dm-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 5;
    background: #000;
    animation: wlp-up 0.4s ease-out both;
}

.dm-video.is-playing { aspect-ratio: 16 / 9; min-height: 0; }
.dm-video.is-playing > :not(iframe) { visibility: hidden; }

/* ---------- O que está dentro ---------- */
.dm-inside { padding: 4.5rem 0 3rem; }
.dm-head { max-width: 40rem; }

.dm-h2 {
    margin: 0.9rem 0 0;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--wl-ink);
}

.dm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.25rem;
}

.dm-item {
    position: relative;
    padding: 1.5rem 1.4rem;
    border: 1px solid var(--wl-line);
    border-radius: 18px;
    background: var(--wl-surface);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dm-item:hover { transform: translateY(-4px); border-color: #87e64b; box-shadow: 0 22px 45px -30px rgba(11, 18, 15, 0.5); }

.dm-item__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    background: rgba(135, 230, 75, 0.14);
    color: var(--wl-green-ink);
    transition: background 0.25s, color 0.25s, transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.dm-item:hover .dm-item__icon { background: #87e64b; color: #0b120f; transform: rotate(-6deg) scale(1.06); }
.dm-item__icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.dm-item h3 { margin: 1.1rem 0 0; font-size: 1.08rem; font-weight: 800; color: var(--wl-ink); }
.dm-item p { margin: 0.4rem 0 0; font-size: 0.95rem; line-height: 1.6; color: var(--wl-muted); }

.wlp-js .dm-grid.wlp-reveal { opacity: 1; transform: none; }
.wlp-js .dm-grid .dm-item { opacity: 0; transform: translateY(16px); }
.wlp-js .dm-grid.is-visible .dm-item { animation: wlp-up 0.55s ease-out both; }
.wlp-js .dm-grid.is-visible .dm-item:nth-child(2) { animation-delay: 0.08s; }
.wlp-js .dm-grid.is-visible .dm-item:nth-child(3) { animation-delay: 0.16s; }
.wlp-js .dm-grid.is-visible .dm-item:nth-child(4) { animation-delay: 0.24s; }
.wlp-js .dm-grid.is-visible .dm-item:nth-child(5) { animation-delay: 0.32s; }
.wlp-js .dm-grid.is-visible .dm-item:nth-child(6) { animation-delay: 0.4s; }

/* ---------- Oferta de lançamento ---------- */
.dm-offer-wrap { padding: 1.5rem 0 5.5rem; }

.dm-offer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(30rem 18rem at 100% 0%, rgba(135, 230, 75, 0.22), transparent 60%),
        #0b120f;
    color: #c7d2cb;
}

.dm-offer::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(105deg, transparent, rgba(135, 230, 75, 0.12), transparent);
    transform: skewX(-12deg);
    animation: wlp-sweep 6s ease-in-out 1s infinite;
    pointer-events: none;
}

.dm-offer__kicker { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #87e64b; }
.dm-offer__title { margin: 0.6rem 0 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15; color: #fff; }
.dm-offer__list { display: grid; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.dm-offer__list li { position: relative; padding-left: 1.7rem; line-height: 1.5; }
.dm-offer__list li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: #87e64b; }
.dm-offer__note { margin: 1.25rem 0 0; font-size: 0.9rem; color: #8e9a93; }

.dm-offer__slots {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    border: 1px solid rgba(135, 230, 75, 0.35);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.dm-offer__num { margin: 0; line-height: 1; color: #fff; }
.dm-offer__num strong { font-size: 4rem; font-weight: 800; letter-spacing: -0.04em; color: #87e64b; font-variant-numeric: tabular-nums; }
.dm-offer__num span { margin-left: 0.3rem; font-size: 1.25rem; font-weight: 700; color: #8e9a93; }
.dm-offer__left { margin: 0.5rem 0 0; font-size: 0.92rem; }
.dm-offer__slots .wlp-fact__bar { margin: 1rem 0 0; }
.dm-offer__slots .dm-btn { width: 100%; margin-top: 1.25rem; }

@media (max-width: 960px) {
    .dm-video { grid-template-columns: 1fr; padding: 2rem 1.5rem 1rem; }
    .dm-video__product { min-height: 16rem; }
    .dm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dm-offer { grid-template-columns: 1fr; padding: 2rem; }
}

@media (max-width: 560px) {
    .dm-grid { grid-template-columns: 1fr; }
    .dm-video { border-radius: 18px; }
    .dm-offer { padding: 1.5rem; }
    .dm-cta .dm-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .dm-video__img, .dm-video .dm-play__ring, .dm-video__chip, .dm-offer::after, .dm-video iframe { animation: none; }
    .wlp-js .dm-grid .dm-item { opacity: 1 !important; transform: none !important; animation: none !important; }
}
