/* ==============================================
   WALLET DEFENDER ADVERTORIAL — style.css
   Mobile-first, single-column editorial layout
   ============================================== */

/* ==============================================
   RESET & BASE
   ============================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Accent — vibrant CTA green */
    --accent: #2ECC71;
    --accent-hover: #27AE60;
    --accent-active: #1E8449;

    /* Neutrals */
    --bg-page: #F4F5F7;
    --bg-card: #FFFFFF;
    --text-primary: #1A1A2E;
    --text-secondary: #555770;
    --text-muted: #888A9E;
    --border-light: #E2E4EA;

    /* Typography scale (mobile base) */
    --fs-h1: 1.75rem;
    --fs-h2: 1.35rem;
    --fs-h3: 1.1rem;
    --fs-body: 1.05rem;
    --fs-small: 0.875rem;
    --fs-tiny: 0.8rem;

    --lh-body: 1.72;
    --lh-heading: 1.25;

    --content-max: 750px;
    --content-padding: 1.25rem;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text-primary);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent content from being hidden behind sticky CTA on mobile */
    padding-bottom: 80px;
}


/* ==============================================
   SITE HEADER
   ============================================== */
.site-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0.85rem var(--content-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.site-logo strong {
    color: var(--accent);
}

.logo-tld {
    color: var(--text-muted);
    font-weight: 400;
}


/* ==============================================
   ARTICLE CONTAINER
   ============================================== */
.article-container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

.article {
    background-color: var(--bg-card);
    margin-top: 1.25rem;
    padding: 1.5rem var(--content-padding);
    border-radius: 6px;
    border: 1px solid var(--border-light);
}


/* ==============================================
   ARTICLE META — Category & Sponsor label
   ============================================== */
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: var(--fs-tiny);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.article-category {
    color: var(--accent);
    font-weight: 600;
}

.article-separator {
    color: var(--border-light);
}

.article-label {
    background-color: var(--bg-page);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
}


/* ==============================================
   TYPOGRAPHY — Headings
   ============================================== */
h1 {
    font-size: var(--fs-h1);
    line-height: var(--lh-heading);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-heading);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    letter-spacing: -0.015em;
}

/* First h2 after the hero image doesn't need extra top spacing */
.article-hero + p + p + p + p + h2,
h2:first-of-type {
    /* Keep default styling */
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}


/* ==============================================
   TYPOGRAPHY — Body & Inline
   ============================================== */
p {
    margin-bottom: 1.15rem;
    color: var(--text-primary);
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}


/* ==============================================
   BYLINE
   ============================================== */
.article-byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.byline-publication {
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--accent);
}

.byline-date {
    font-size: var(--fs-tiny);
    color: var(--text-muted);
}


/* ==============================================
   IMAGES & FIGURES
   ============================================== */
.article-hero,
.article-image {
    margin: 1.25rem calc(-1 * var(--content-padding));
}

.article-hero img,
.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

figcaption {
    font-size: var(--fs-small);
    color: var(--text-muted);
    padding: 0.5rem var(--content-padding) 0;
    line-height: 1.4;
}

.product-image {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--content-padding);
}

.product-image img {
    border-radius: 8px;
}


/* ==============================================
   CALLOUT BOX — Pull-quote / highlight
   ============================================== */
.callout-box {
    background-color: #F8F9FA;
    border-left: 4px solid var(--accent);
    padding: 1.15rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.callout-box p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.callout-box p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text-primary);
}


/* ==============================================
   FEATURE LIST — Bullet benefits
   ============================================== */
.feature-list {
    list-style: none;
    margin: 1.25rem 0;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.75rem;
    border-bottom: 1px solid var(--border-light);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.6rem;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}


/* ==============================================
   STAT HIGHLIGHT — Standalone data point
   ============================================== */
.stat-highlight {
    text-align: center;
    padding: 1.75rem 1.25rem;
    margin: 1.75rem 0;
    background: linear-gradient(135deg, #1A1A2E 0%, #2D2D4E 100%);
    border-radius: 8px;
    color: #FFFFFF;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: var(--fs-small);
    color: #B0B0C8;
    line-height: 1.45;
}

.stat-label em {
    font-style: italic;
    color: #8A8AA8;
}


/* ==============================================
   CTA BUTTONS — All variants
   ============================================== */
.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    padding: 1rem 1.75rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 14px rgba(46, 204, 113, 0.35);
}

.cta-button:active {
    background-color: var(--accent-active);
    transform: scale(0.98);
}

/* In-content CTA block */
.cta-block {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem 1rem;
    background-color: #F8F9FA;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.cta-block .cta-button {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    font-size: 1.05rem;
    padding: 1.1rem 1.25rem;
}

.cta-subtext {
    display: block;
    margin-top: 0.65rem;
    font-size: var(--fs-small);
    color: var(--text-muted);
}

/* Final CTA — extra emphasis */
.cta-block--final {
    background: linear-gradient(135deg, #F0FFF4 0%, #F8F9FA 100%);
    border-color: #C8F7D5;
}


/* ==============================================
   FAQ SECTION
   ============================================== */
.faq-section {
    margin: 1rem 0;
}

.faq-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.faq-item p {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.65;
}


/* ==============================================
   TESTIMONIALS
   ============================================== */
.testimonials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.testimonial {
    background-color: #F8F9FA;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 0; /* Reset blockquote default */
}

.testimonial-stars {
    color: #F5A623;
    font-size: 1rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.testimonial p {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.testimonial footer {
    font-size: var(--fs-tiny);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.testimonial-location {
    color: var(--text-muted);
}

.testimonial-location::before {
    content: "—";
    margin-right: 0.25rem;
}

.testimonial-verified {
    background-color: #E8F5E9;
    color: var(--accent-hover);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
}


/* ==============================================
   ARTICLE DISCLAIMER
   ============================================== */
.article-disclaimer {
    margin-top: 1.5rem;
    padding: 1rem var(--content-padding);
    text-align: center;
}

.article-disclaimer p {
    font-size: var(--fs-tiny);
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}


/* ==============================================
   SITE FOOTER
   ============================================== */
.site-footer {
    margin-top: 1.5rem;
    padding-bottom: 5.5rem; /* Clear sticky CTA on mobile */
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-card);
}

.footer-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 1.25rem var(--content-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
}

.footer-brand {
    font-size: var(--fs-small);
    color: var(--text-muted);
}


/* ==============================================
   MOBILE STICKY CTA BAR
   Fixed to viewport bottom on small screens
   ============================================== */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.cta-button--sticky {
    display: block;
    width: 100%;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    text-align: center;
    /* Subtle pulse animation — runs twice then stops */
    animation: ctaPulse 2.5s ease-in-out 2;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
}


/* ==============================================
   DESKTOP STYLES — min-width: 768px
   ============================================== */
@media (min-width: 768px) {

    /* Hide sticky mobile CTA on desktop */
    .sticky-cta-bar {
        display: none;
    }

    /* Remove mobile bottom padding */
    body {
        padding-bottom: 0;
    }

    .site-footer {
        padding-bottom: 0;
    }

    /* Scale up typography */
    :root {
        --fs-h1: 2.35rem;
        --fs-h2: 1.55rem;
        --fs-h3: 1.2rem;
        --fs-body: 1.1rem;
        --content-padding: 2.25rem;
    }

    /* Article card gets more breathing room */
    .article {
        margin-top: 2rem;
        padding: 2.5rem var(--content-padding);
        border-radius: 8px;
    }

    /* Images extend to card edges */
    .article-hero,
    .article-image {
        margin-left: calc(-1 * var(--content-padding));
        margin-right: calc(-1 * var(--content-padding));
    }

    /* Product image can be wider on desktop */
    .product-image {
        max-width: 450px;
    }

    /* Stat highlight scales up */
    .stat-number {
        font-size: 2.75rem;
    }

    /* CTA block button doesn't need full width */
    .cta-block .cta-button {
        display: inline-block;
        width: auto;
        padding: 1.1rem 3rem;
        font-size: 1.15rem;
    }

    /* Footer row layout */
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}


/* ==============================================
   LARGE DESKTOP — min-width: 1024px
   ============================================== */
@media (min-width: 1024px) {

    :root {
        --fs-h1: 2.6rem;
    }

    .site-logo {
        font-size: 1.25rem;
    }
}


/* ==============================================
   PRINT STYLES — hide non-essential elements
   ============================================== */
@media print {
    .sticky-cta-bar,
    .site-header,
    .site-footer,
    .cta-block {
        display: none;
    }

    body {
        background: #fff;
        padding: 0;
    }

    .article {
        border: none;
        box-shadow: none;
    }
}
