/* =====================================================================
   WhatsApp giveaway landing (/en/apps/whatsapp-giveaway)
   Mirrors the WhatsApp giveaways intro of dashboard-spa
   (WhatsappGiveawaysIntro.vue) and its tokens (src/assets/main.css), so
   the page looks like the product it sells. Mobile layout below 768px,
   the SPA's single breakpoint. Everything is scoped under .wal so the
   site's Bootstrap styles around it stay untouched.
   ===================================================================== */

/* === Tokens === */
.wal {
    --wal-green-900: #075e54;
    --wal-green-700: #128c7e;
    --wal-green-ink: #0e7a5f;
    --wal-green-500: #25d366;
    --wal-green-50: #e8f9ef;
    --wal-cta-ink: #053b2f;
    --wal-gray-100: #f3f4f6;
    --wal-gray-500: #6b7280;
    --wal-gray-800: #1f2937;
    --wal-display: 'Montserrat', 'Inter', system-ui, sans-serif;
    --wal-sans: 'Inter', system-ui, sans-serif;
}

/* === Base === */
.wal {
    font-family: var(--wal-sans);
    color: var(--wal-gray-800);
}
.wal *, .wal *::before, .wal *::after { box-sizing: border-box; }
.wal-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* === Hero band (full width; content centered in .wal-container) === */
.wal-band {
    position: relative;
    overflow: hidden;
    background: var(--wal-green-900);
    color: #fff;
    padding-top: 64px;
}
.wal-band__circle {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
}
.wal-band__circle--a {
    top: -160px;
    right: -128px;
    width: 520px;
    height: 520px;
    background: var(--wal-green-700);
    opacity: .55;
}
.wal-band__circle--b {
    bottom: -224px;
    right: 112px;
    width: 360px;
    height: 360px;
    background: var(--wal-green-500);
    opacity: .25;
}
.wal-band__inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 32px;
}
.wal-band__copy {
    flex: 1 1 420px;
    min-width: 0;
    padding-bottom: 64px;
}
.wal-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9ef0bf;
}
.wal-title {
    margin: 0;
    font-family: var(--wal-display);
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: #fff;
}
.wal-subtitle {
    margin: 12px 0 0;
    max-width: 460px;
    font-size: 17px;
    line-height: 1.6;
    color: #cfeee6;
}
.wal-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    background: var(--wal-green-500);
    color: var(--wal-cta-ink);
    font-family: var(--wal-display);
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .15);
    transition: filter .15s ease;
}
.wal-cta:hover, .wal-cta:focus {
    color: var(--wal-cta-ink);
    text-decoration: none;
    filter: brightness(.95);
}
.wal-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wal-cta__icon { display: inline-flex; width: 20px; height: 20px; }
.wal-cta__icon svg { width: 100%; height: 100%; }
.wal-cta .fa-arrow-right { font-size: 14px; }

/* === How it works (steps inside the hero) === */
.wal-steps {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.wal-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.wal-step__num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .14);
    color: #9ef0bf;
    font-family: var(--wal-display);
    font-size: 14px;
    font-weight: 800;
}
.wal-step__body { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.wal-step__title { font-size: 15px; font-weight: 700; color: #fff; }
.wal-step__text { font-size: 14px; line-height: 1.45; color: #cfeee6; }

/* === Phone mock === */
.wal-phone {
    margin-left: auto;
    flex-shrink: 0;
    width: 340px;
    height: 500px;
    padding: 14px 14px 0;
    border-radius: 40px 40px 0 0;
    background: #111b21;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}
.wal-phone__screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    background: #efe7dd;
}
.wal-phone__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--wal-green-900);
    color: #fff;
    font-size: 14px;
}
.wal-phone__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    background: #fff;
    color: var(--wal-green-900);
}
.wal-phone__avatar svg { width: 17px; height: 17px; }
.wal-chat {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 14px;
    font-size: 13.5px;
    line-height: 1.38;
    color: #111827;
}
.wal-chat__day {
    align-self: center;
    padding: 2px 8px;
    border-radius: 6px;
    background: #fff;
    font-size: 11px;
    color: #54656f;
}
.wal-msg { padding: 6px 10px 4px; }
.wal-msg--out {
    align-self: flex-end;
    border-radius: 9px 9px 2px 9px;
    background: #d9fdd3;
}
.wal-msg--in {
    align-self: flex-start;
    max-width: 88%;
    border-radius: 9px 9px 9px 2px;
    background: #fff;
}
.wal-msg__time { margin-left: 4px; font-size: 10px; color: #8696a0; }
.wal-msg__time--read { color: #53bdeb; }

/* Promo sent after the entry: image message with its caption */
.wal-msg--media { padding: 4px 4px 5px; width: 230px; }
.wal-promo {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 118px;
    border-radius: 7px;
    background: linear-gradient(135deg, #ff8a3d 0%, #f5367a 100%);
    color: #fff;
    text-align: center;
}
.wal-promo::before, .wal-promo::after {
    content: '';
    position: absolute;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .16);
}
.wal-promo::before { width: 120px; height: 120px; top: -48px; left: -36px; }
.wal-promo::after { width: 90px; height: 90px; bottom: -40px; right: -20px; }
.wal-promo__label {
    position: relative;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.wal-promo__value {
    position: relative;
    font-family: var(--wal-display);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.05;
}
.wal-msg__caption { display: block; padding: 6px 6px 0; }
.wal-code {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: #f0f2f5;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
    letter-spacing: .04em;
}

.wal-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .12);
    color: #c9f7da;
    font-size: 13px;
    font-weight: 600;
}

/* === Content sections (below the hero) === */
.wal-section { padding: 88px 0; background: #fff; }
.wal-section--alt { background: #f4faf7; }
.wal-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--wal-green-ink);
}
.wal-h2 {
    margin: 0;
    max-width: 640px;
    font-family: var(--wal-display);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: #111827;
}
.wal-lead {
    margin: 14px 0 0;
    max-width: 620px;
    font-size: 17px;
    line-height: 1.6;
    color: #4b5563;
}
.wal-lead a { color: var(--wal-green-ink); text-decoration: underline; }
.wal-lead a:hover { color: var(--wal-green-900); }

/* === Cards (benefits, ideas, how-to) === */
.wal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.wal-card {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}
.wal-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--wal-green-50);
    color: var(--wal-green-ink);
}
.wal-card__icon svg { width: 22px; height: 22px; }
.wal-card__title {
    margin: 16px 0 6px;
    font-family: var(--wal-sans);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
}
.wal-card__text { margin: 0; font-size: 15px; line-height: 1.55; color: #4b5563; }
.wal-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 9999px;
    background: var(--wal-green-50);
    color: var(--wal-green-ink);
    font-size: 12px;
    font-weight: 700;
}
.wal-tag + .wal-card__title { margin-top: 12px; }

/* === How to === */
.wal-howto {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}
.wal-howto__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: var(--wal-green-900);
    color: #fff;
    font-family: var(--wal-display);
    font-weight: 800;
}

/* === Features list === */
.wal-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.wal-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}
.wal-feature__icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--wal-green-ink); }
.wal-feature__icon svg { width: 100%; height: 100%; }
.wal-feature__title { display: block; font-size: 15px; color: #111827; }
.wal-feature__text { font-size: 14px; line-height: 1.5; color: #4b5563; }

/* === Comparison table (scrolls inside its box on small screens) === */
.wal-table {
    margin-top: 36px;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}
.wal-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.wal-table th, .wal-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #eef0f2;
    text-align: left;
    vertical-align: top;
    color: #4b5563;
}
.wal-table tbody th { font-weight: 600; color: #111827; }
.wal-table thead th {
    background: #f9fafb;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.wal-table thead th.wal-table__wa { color: var(--wal-green-ink); }
.wal-table td.wal-table__wa { font-weight: 600; color: #111827; }
.wal-table tr:last-child th, .wal-table tr:last-child td { border-bottom: 0; }

/* === FAQ === */
.wal-faq { max-width: 760px; margin-top: 28px; border-top: 1px solid #e5e7eb; }
.wal-faq__item { padding: 22px 0; border-bottom: 1px solid #e5e7eb; }
.wal-faq__q { margin: 0; font-family: var(--wal-sans); font-size: 17px; font-weight: 700; color: #111827; }
.wal-faq__a { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: #4b5563; }

/* === Final CTA === */
.wal-final {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 56px;
    border-radius: 28px;
    background: var(--wal-green-900);
    color: #fff;
}
.wal-final__circle {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 9999px;
    background: var(--wal-green-700);
    opacity: .6;
    pointer-events: none;
}
.wal-final__copy { position: relative; max-width: 560px; }
.wal-final__title {
    margin: 0;
    font-family: var(--wal-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}
.wal-final__text { margin: 10px 0 0; font-size: 16px; color: #cfeee6; }
.wal-final__cta { position: relative; margin-top: 0; }

/* === Tablet (< 992px): the phone no longer fits beside the copy === */
@media (max-width: 991.98px) {
    .wal-phone { display: none; }
    .wal-grid, .wal-howto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* === Mobile (< 768px) === */
@media (max-width: 767.98px) {
    .wal-container { padding: 0 16px; }
    .wal-band { padding-top: 40px; }
    .wal-band__copy { padding-bottom: 40px; }
    .wal-title { font-size: 32px; }
    .wal-subtitle { font-size: 16px; }
    .wal-cta { width: 100%; justify-content: center; gap: 8px; padding: 0 14px; font-size: 15px; white-space: nowrap; }
    .wal-phone { display: none; }
    .wal-section { padding: 56px 0; }
    .wal-h2 { font-size: 26px; }
    .wal-lead { font-size: 16px; }
    .wal-grid, .wal-howto, .wal-features { grid-template-columns: minmax(0, 1fr); }
    .wal-grid, .wal-howto { margin-top: 28px; gap: 14px; }
    .wal-final { padding: 32px 22px; border-radius: 20px; }
    .wal-final__title { font-size: 24px; }
}
@media (max-width: 359.98px) {
    .wal-cta { font-size: 14px; }
    .wal-cta .fa-arrow-right { display: none; }
}

/* === Two kinds of giveaway (chat / group) with animated demos === */
.wal-modes { display: grid; gap: 24px; margin-top: 36px; }
@media (min-width: 992px) { .wal-modes { grid-template-columns: 1fr 1fr; } }
.wal-mode {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid #e5e7eb; border-radius: 24px; background: #fff;
}
.wal-mode__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.wal-mode__title { margin: 12px 0 8px; font-family: var(--wal-display); font-size: 22px; font-weight: 800; line-height: 1.25; color: #111827; }
.wal-mode__pros { margin: 16px 0 0; padding: 0; list-style: none; }
.wal-mode__pros li { display: flex; gap: 10px; margin-bottom: 8px; font-size: 15px; line-height: 1.45; color: #374151; }
.wal-mode__best { margin: 8px 0 20px; font-size: 14px; font-weight: 700; color: var(--wal-green-ink); }
.wal-mode__cta {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto;
    padding: 12px 20px; border-radius: 999px; background: var(--wal-green-900);
    font-family: var(--wal-display); font-size: 15px; font-weight: 800; color: #fff; text-decoration: none;
}
.wal-mode__cta:hover, .wal-mode__cta:focus { color: #fff; background: var(--wal-green-700); text-decoration: none; }
.wal-mode--group .wal-mode__cta { background: var(--wal-green-500); color: var(--wal-cta-ink); }
.wal-mode--group .wal-mode__cta:hover { color: var(--wal-cta-ink); background: #1ebe5a; }
.wal-h3 { margin: 56px 0 0; font-family: var(--wal-display); font-size: 22px; font-weight: 800; color: #111827; }
.wal-note { max-width: 760px; margin: 24px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--wal-green-50); font-size: 14px; line-height: 1.55; color: #134e3f; }
.wal-final__links { margin: 12px 0 0; font-size: 14px; color: #cfeee6; }
.wal-final__links a { color: #fff; text-decoration: underline; }

/* Demo: a WhatsApp screen whose messages appear one by one (whatsapp-landing.js) */
.wal-demo { display: flex; flex-direction: column; height: 520px; background: #efeae2; }
.wal-demo__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--wal-green-900); color: #fff; }
.wal-demo__avatar { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 12px; font-weight: 800; }
.wal-demo__avatar svg { width: 18px; height: 18px; }
.wal-demo__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.wal-demo__who strong { font-size: 14px; }
.wal-demo__who small { overflow: hidden; font-size: 12px; color: rgba(255, 255, 255, .75); white-space: nowrap; text-overflow: ellipsis; }
.wal-demo__chat { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; padding: 16px; }
.wal-demo__msg {
    position: relative; align-self: flex-start; max-width: 82%; padding: 7px 11px;
    border-radius: 12px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
    font-size: 14px; line-height: 1.4; color: #111827;
}
.wal-demo__msg--out { align-self: flex-end; background: #d9fdd3; }
.wal-demo__msg--react { margin-bottom: 14px; }
.wal-demo__msg--promo { max-width: 88%; }
.wal-demo__coupon { display: block; margin-bottom: 6px; padding: 10px; border-radius: 8px; background: linear-gradient(135deg, #ff7a59, #f43f5e); text-align: center; font-family: var(--wal-display); font-size: 22px; font-weight: 800; color: #fff; }
.wal-demo__name { display: block; font-size: 12px; font-weight: 800; }
.wal-demo__name--a { color: #a3236f; }
.wal-demo__name--b { color: #2456b8; }
.wal-demo__name--c { color: #a85a00; }
.wal-demo__reaction {
    position: absolute; bottom: -18px; left: 8px; display: flex; align-items: center; justify-content: center;
    min-width: 28px; height: 28px; border: 2px solid #efeae2; border-radius: 999px; background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .15); font-size: 14px;
}
.wal-demo__note { align-self: flex-start; padding-left: 4px; font-size: 12px; color: #6b7280; }
.wal-demo__typing { display: flex; align-self: flex-start; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #fff; }
.wal-demo__typing span { width: 6px; height: 6px; border-radius: 50%; background: #9ca3af; animation: wal-typing 1s infinite; }
.wal-demo__typing span:nth-child(2) { animation-delay: .15s; }
.wal-demo__typing span:nth-child(3) { animation-delay: .3s; }
.wal-demo__foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; font-size: 13px; font-weight: 700; color: var(--wal-green-ink); }
.wal-demo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wal-green-500); }

/* Steps hidden until the script reveals them; without JS or with reduced motion all show */
.wal-demo.is-animated [data-step] { display: none; }
.wal-demo.is-animated [data-step].is-on { display: flex; animation: wal-pop .35s ease-out both; }
.wal-demo.is-animated .wal-demo__msg.is-on { display: block; }
.wal-demo.is-animated [data-step].is-on .wal-demo__reaction { animation: wal-react .5s .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.wal-demo__typing:not(.is-on) { display: none; }
.wal-demo:not(.is-animated) .wal-demo__typing { display: none; }
@keyframes wal-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes wal-react { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes wal-typing { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .wal-demo [data-step], .wal-demo [data-step] .wal-demo__reaction { animation: none !important; }
}
.wal-demo__poster {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    height: 78px; margin: 4px 0 6px; border-radius: 8px;
    background: radial-gradient(circle at 20% 20%, #ffd166 0 18%, transparent 19%), linear-gradient(135deg, #f97316, #db2777);
    color: #fff; text-align: center;
}
.wal-demo__poster small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.wal-demo__poster strong { font-family: var(--wal-display); font-size: 19px; font-weight: 800; line-height: 1.1; }
