/* ── Desafio 21 EU Superior – Landing Page CSS ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

.d21-wrap * { box-sizing: border-box; }
.d21-wrap {
    --bg:      #F5F5F5;
    --fg:      hsl(0,0%,20%);
    --card:    #FFFFFF;
    --primary: #00A86B;
    --prim-fg: #FFFFFF;
    --second:  #7B2CBF;
    --muted:   hsl(0,0%,45%);
    --border:  hsl(0,0%,85%);
    --gold:    #C8A45B;
    --gold-dk: #9A7D3A;

    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Utilities ──────────────────────────────────────────────────────────── */
.d21-gold {
    background: linear-gradient(135deg, #D4B36A, #C8A45B, #9A7D3A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.d21-center    { text-align: center; }
.d21-container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.d21-max-md    { max-width: 768px; margin: 0 auto; }
.d21-max-sm    { max-width: 640px; margin: 0 auto; }
.d21-bg-radial { background: radial-gradient(ellipse at center top, rgba(123,44,191,.06) 0%, transparent 60%); }

.d21-grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.d21-grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media(min-width:768px) {
    .d21-grid-2 { grid-template-columns: 1fr 1fr; }
    .d21-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.d21-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--prim-fg);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 20px 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: filter .3s;
    border: none;
    cursor: pointer;
}
.d21-btn:hover { filter: brightness(1.1); }
.d21-btn-full  { display: block; max-width: 400px; margin: 0 auto; text-align: center; }
.d21-btn-pulse { animation: d21PulseGlow 2s ease-in-out infinite; }

@keyframes d21PulseGlow {
    0%,100% { box-shadow: 0 0 20px -5px rgba(0,168,107,.4); }
    50%      { box-shadow: 0 0 40px -5px rgba(0,168,107,.7); }
}
@keyframes d21Float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ── Hero banner image ── réplica fiel do HeroSection.tsx ─────────────────
   Original React:
     <div className="relative mb-8 mx-auto max-w-4xl">
       <div className="absolute inset-0 rounded-2xl glow-violet opacity-30" />
       <img className="w-full rounded-2xl border border-border" />
     </div>
   glow-violet = box-shadow: 0 0 30px -5px hsl(275 65% 46% / .4),
                              0 0 60px -10px hsl(275 65% 46% / .2)
   opacity-30  = opacity: 0.3  (propriedade separada, valores do shadow intactos)
─────────────────────────────────────────────────────────────────────────── */
.d21-hero-banner {
    position: relative;       /* relative          */
    width: 100%;
    max-width: 896px;         /* max-w-4xl = 56rem */
    margin: 0 auto 32px;      /* mx-auto mb-8      */
}

/* Replica: <div className="absolute inset-0 rounded-2xl glow-violet opacity-30" /> */
.d21-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;                 /* inset-0           */
    border-radius: 1rem;      /* rounded-2xl       */
    /* glow-violet — valores ORIGINAIS intactos */
    box-shadow:
        0 0 30px -5px  rgba(123, 44, 191, 0.4),
        0 0 60px -10px rgba(123, 44, 191, 0.2);
    opacity: 0.3;             /* opacity-30        */
    pointer-events: none;
    z-index: 0;
}

/* Replica: className="w-full rounded-2xl border border-border" */
.d21-hero-banner-img {
    display: block;
    width: 100%;              /* w-full            */
    height: auto;
    border-radius: 1rem;      /* rounded-2xl       */
    border: 1px solid hsl(0, 0%, 85%); /* border border-border */
    position: relative;
    z-index: 1;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.d21-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.d21-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--bg), var(--bg), transparent);
}
.d21-hero-glow {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(123,44,191,.08);
    filter: blur(120px);
}
.d21-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 16px 32px;
    text-align: center;
}
.d21-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.02em;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--fg);
}
.d21-hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 16px;
    line-height: 1.7;
}
.d21-hero-sub strong { color: var(--fg); }
.d21-social-proof {
    font-size: .875rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 32px;
}
.d21-scroll-indicator {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    color: var(--second);
}
.d21-float { animation: d21Float 3s ease-in-out infinite; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.d21-section { padding: 80px 0; }
.d21-section-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 16px;
    color: var(--fg);
}
.d21-section-sub {
    text-align: center;
    color: var(--muted);
    margin-bottom: 48px;
    font-size: 1.125rem;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.d21-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color .3s, box-shadow .3s;
}
.d21-card-hover:hover {
    border-color: rgba(123,44,191,.4);
    box-shadow: 0 0 15px -3px rgba(123,44,191,.3);
}
.d21-card-inner { display: flex; align-items: flex-start; gap: 12px; }
.d21-check-icon {
    color: var(--primary);
    flex-shrink: 0;
    width: 24px; height: 24px;
    margin-top: 2px;
    transition: transform .3s;
}
.d21-card-hover:hover .d21-check-icon { transform: scale(1.1); }
.d21-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 4px;
    color: var(--fg);
}
.d21-card p { color: var(--muted); font-size: .875rem; line-height: 1.6; margin: 0; }

/* ── CTA message ─────────────────────────────────────────────────────────── */
.d21-cta-msg {
    margin-top: 48px;
    text-align: center;
}
.d21-cta-msg p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.4;
    color: var(--fg);
    margin: 0;
}

/* ── Testimonials ───────────────────────────────────────────────────────── */
.d21-testimonial { position: relative; }
.d21-quote {
    position: absolute;
    top: -12px; left: 24px;
    color: var(--second);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}
.d21-testimonial p {
    font-size: .875rem;
    line-height: 1.7;
    margin: 16px 0 24px;
    color: var(--fg);
}
.d21-author {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.d21-author strong { font-weight: 600; text-transform: uppercase; font-size: .9rem; }
.d21-author span   { color: var(--muted); font-size: .75rem; }

/* ── Offer ───────────────────────────────────────────────────────────────── */
.d21-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--second);
    border-radius: 999px;
    padding: 8px 24px;
    margin-bottom: 32px;
    color: var(--second);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .875rem;
}
.d21-badge svg { width: 16px; height: 16px; }
.d21-urgency {
    color: var(--second);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 40px;
    font-weight: 700;
    animation: d21Pulse 2s ease-in-out infinite;
}
@keyframes d21Pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

.d21-guarantees { display: flex; flex-direction: column; gap: 16px; text-align: left; margin-top: 40px; }
.d21-guarantee-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.d21-guarantee-icon {
    width: 48px; height: 48px;
    border-radius: 8px;
    background: rgba(123,44,191,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.d21-guarantee-icon svg { width: 24px; height: 24px; color: var(--second); }
.d21-guarantee-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 4px;
    color: var(--fg);
}
.d21-guarantee-card p { color: var(--muted); font-size: .875rem; margin: 0; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.d21-faq-list  { display: flex; flex-direction: column; gap: 12px; margin-top: 56px; }
.d21-faq-item  {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .3s;
}
.d21-faq-item.is-open { border-color: rgba(123,44,191,.4); }
.d21-faq-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--fg);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    text-align: left;
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    gap: 12px;
}
.d21-faq-btn:hover { color: var(--second); }
.d21-faq-btn svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    transition: transform .3s;
}
.d21-faq-item.is-open .d21-faq-btn svg { transform: rotate(180deg); }
.d21-faq-answer { padding: 0 24px 20px; }
.d21-faq-answer p { color: var(--muted); font-size: .875rem; line-height: 1.7; margin: 0; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.d21-footer {
    padding: 40px 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.d21-footer-brand {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 8px;
    font-weight: 700;
    background: linear-gradient(135deg, #D4B36A, #C8A45B, #9A7D3A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.d21-footer p { color: var(--muted); font-size: .75rem; margin: 4px 0; }

/* ── Sales notification ─────────────────────────────────────────────────── */
.d21-notif {
    position: fixed;
    bottom: 24px; left: 24px;
    z-index: 9999;
    transition: all .5s ease;
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
}
.d21-notif.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.d21-notif-inner {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 40px 16px 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.15);
    max-width: 320px;
    position: relative;
}
.d21-notif-close {
    position: absolute;
    top: 8px; right: 8px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    font-size: 14px;
}
.d21-notif-close:hover { color: var(--fg); }
.d21-notif-content { display: flex; align-items: center; gap: 12px; }
.d21-notif-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(123,44,191,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.d21-notif-icon svg { width: 20px; height: 20px; color: var(--second); }
.d21-notif-name { font-size: .875rem; font-weight: 600; margin: 0 0 2px; }
.d21-notif-text { font-size: .75rem; color: var(--muted); margin: 0 0 2px; }
.d21-notif-text strong { color: var(--second); }
.d21-notif-meta { font-size: .7rem; color: rgba(0,0,0,.4); margin: 0; }
