/* ============================================================
   About Advertiser Page — Scoped Styles
   ============================================================ */
:root {
    --adv-blue:   #0D66C9;
    --adv-purple: #9747FF;
    --adv-pink:   #DA4DDE;
    --adv-deep:   #5C41EE;
    --adv-lime:   #FFF000;
    --adv-dark:   #000d36;
}

/* ---- Hero Banner ---- */
.hero-banner {
    width: 100%;
    overflow: hidden;
    max-height: 420px;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* ---- Shared Section Helpers ---- */
.aav-section {
    padding: 80px 0;
}

.aav-section-eyebrow {
    display: inline-block;
    padding: 5px 18px;
    border: 1.5px solid var(--adv-blue);
    border-radius: 50px;
    color: var(--adv-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.aav-section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--adv-dark);
    line-height: 1.15;
    margin-bottom: 14px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.aav-section-sub {
    font-size: 1rem;
    color: #555;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Benefits Section ---- */
.aav-benefits {
    background: #f4f7fc;
}

.aav-benefits-header {
    text-align: center;
    margin-bottom: 56px;
}

.aav-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.aav-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 2px 16px rgba(13, 102, 201, 0.07);
    border: 1.5px solid #eef0f8;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aav-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(13, 102, 201, 0.13);
    border-color: var(--adv-blue);
}

.aav-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--adv-blue), var(--adv-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}

.aav-card--accent .aav-card-icon {
    background: linear-gradient(135deg, var(--adv-purple), var(--adv-pink));
}

.aav-card-stat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--adv-blue);
    line-height: 1;
}

.aav-card--accent .aav-card-stat {
    color: var(--adv-purple);
}

.aav-card-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--adv-dark);
    margin: 0;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.aav-card-desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: break-word;
}

/* Wide card spans full row */
.aav-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.aav-card--wide .aav-card-body {
    flex: 1;
}

.aav-card-icon--wide {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
    flex-shrink: 0;
    align-self: flex-start;
}

/* ---- Demo Section ---- */
.aav-demo {
    background: #fff;
}

.aav-demo-header {
    text-align: center;
    margin-bottom: 56px;
}

.aav-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: linear-gradient(135deg, var(--adv-blue), var(--adv-deep));
    border-radius: 16px;
    overflow: hidden;
}

.aav-video-wrapper iframe,
.aav-video-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

.aav-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Fredoka', sans-serif;
}

.aav-video-placeholder i {
    font-size: 3.5rem;
    color: #fff;
    opacity: 0.8;
}

.aav-video-placeholder span {
    font-size: 1rem;
    opacity: 0.7;
}

.aav-form-card {
    background: #f8faff;
    border: 1.5px solid #e6ecf8;
    border-radius: 20px;
    padding: 36px 32px;
}

.aav-form-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--adv-dark);
    margin-bottom: 6px;
}

.aav-form-sub {
    font-size: 0.88rem;
    color: #777;
    margin-bottom: 24px;
}

.aav-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.aav-input,
.aav-textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #dde3f0;
    border-radius: 10px;
    font-size: 0.93rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--adv-dark);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.aav-input::placeholder,
.aav-textarea::placeholder {
    color: #bbb;
}

.aav-input:focus,
.aav-textarea:focus {
    border-color: var(--adv-blue);
    box-shadow: 0 0 0 3px rgba(13, 102, 201, 0.09);
}

.aav-textarea {
    resize: vertical;
    min-height: 100px;
}

.aav-error {
    font-size: 0.77rem;
    color: #dc3545;
    margin-top: 4px;
}

.aav-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--adv-blue);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 6px 20px rgba(13, 102, 201, 0.28);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: 4px;
}

.aav-submit-btn:hover:not(:disabled) {
    background: var(--adv-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(92, 65, 238, 0.3);
}

.aav-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---- Caveat Section ---- */
.aav-caveat {
    background: #f4f7fc;
    padding: 32px 0;
    text-align: center;
}

.aav-caveat p {
    font-size: 0.75rem;
    color: #999;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Responsive ---- */

/* Tablet: 768px – 991px */
@media (max-width: 991.98px) {
    .hero-banner {
        max-height: 300px;
    }

    .aav-section {
        padding: 64px 0;
    }

    .aav-benefits-header,
    .aav-demo-header {
        text-align: center;
    }

    .aav-section-title {
        font-size: 2rem;
    }

    .aav-section-sub {
        text-align: center;
    }

    .aav-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Wide card stays full row; stack icon + text vertically at this size */
    .aav-card--wide {
        grid-column: span 2;
        flex-direction: column;
    }
}

/* Mobile: < 768px */
@media (max-width: 767.98px) {
    .hero-banner {
        max-height: 200px;
    }

    .aav-section {
        padding: 48px 0;
    }

    .aav-benefits-header,
    .aav-demo-header {
        text-align: center;
        margin-bottom: 32px;
    }

    .aav-section-title {
        font-size: 1.75rem;
    }

    /* Suppress <br> tags so long titles reflow naturally */
    .aav-section-title br {
        display: none;
    }

    .aav-section-sub {
        text-align: center;
        font-size: 0.95rem;
    }

    .aav-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .aav-card--wide {
        grid-column: span 1;
        flex-direction: column;
    }

    .aav-card-stat {
        font-size: 1.6rem;
    }

    .aav-form-card {
        padding: 28px 20px;
        margin-top: 8px;
    }

    .aav-submit-btn {
        font-size: 0.95rem;
        padding: 13px 20px;
    }
}

/* Very small screens: < 480px */
@media (max-width: 479.98px) {
    .hero-banner {
        max-height: 160px;
    }

    .aav-section {
        padding: 36px 0;
    }

    .aav-section-title {
        font-size: 1.5rem;
    }

    .aav-section-eyebrow {
        font-size: 0.65rem;
        padding: 4px 14px;
    }

    .aav-card {
        padding: 22px 18px;
    }

    .aav-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        border-radius: 12px;
    }

    .aav-card-stat {
        font-size: 1.4rem;
    }

    .aav-card-title {
        font-size: 1rem;
    }

    .aav-form-card {
        padding: 22px 16px;
    }

    .aav-form-title {
        font-size: 1.3rem;
    }

    .aav-video-placeholder i {
        font-size: 2.5rem;
    }

    .aav-video-placeholder span {
        font-size: 0.85rem;
    }
}
