/* ========================================
   Video Downloader — Design System
   ======================================== */

:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --secondary: #3B82F6;
    --success: #22C55E;
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --text: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --footer-bg: #F1F5F9;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);
    --radius: 12px;
    --radius-sm: 10px;
    --radius-lg: 14px;
    --space: 8px;
    --nav-height: 72px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: calc(var(--space) * 2);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto calc(var(--space) * 6);
}

.section-header {
    text-align: center;
    margin-bottom: calc(var(--space) * 2);
}

/* Buttons */
.btn-primary-custom,
.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--space) * 1);
    height: 50px;
    padding: 0 calc(var(--space) * 3);
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition),
                border-color var(--transition),
                color var(--transition),
                box-shadow var(--transition),
                transform var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary-custom {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus-visible {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-primary-custom:active {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
}

.btn-secondary-custom {
    background-color: #fff;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary-custom:hover,
.btn-secondary-custom:focus-visible {
    background-color: #EFF6FF;
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-nav {
    height: 44px;
    padding: 0 calc(var(--space) * 2.5);
    font-size: 0.875rem;
}

.btn-full-mobile {
    width: 100%;
}

@media (min-width: 576px) {
    .btn-full-mobile {
        width: auto;
    }
}

/* Forms */
.form-control-custom {
    width: 100%;
    height: 56px;
    padding: 0 calc(var(--space) * 2.5);
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control-custom::placeholder {
    color: #94A3B8;
}

.form-control-custom:hover {
    border-color: #CBD5E1;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Cards */
.card-custom {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: calc(var(--space) * 4);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card-custom:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Navbar
   ======================================== */
.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
    transition: box-shadow var(--transition);
}

.site-navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    gap: calc(var(--space) * 2);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space) * 1.25);
    color: var(--text);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    flex-shrink: 0;
}

.brand:hover {
    color: var(--text);
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.brand-icon svg {
    width: 20px;
    height: 20px;
}

.nav-links {
    display: none;
    align-items: center;
    gap: calc(var(--space) * 4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: calc(var(--space) * 0.5) 0;
    position: relative;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: calc(var(--space) * 1.5);
}

.nav-cta {
    display: none;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition);
}

.menu-toggle:hover {
    background: var(--bg);
    border-color: #CBD5E1;
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
}

.mobile-menu {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: calc(var(--space) * 2) 0 calc(var(--space) * 3);
}

.mobile-menu.open {
    display: block;
    animation: fadeSlideDown 0.2s ease;
}

.mobile-menu ul {
    list-style: none;
    margin: 0 0 calc(var(--space) * 2);
    padding: 0;
}

.mobile-menu li + li {
    margin-top: calc(var(--space) * 0.5);
}

.mobile-menu a {
    display: block;
    padding: calc(var(--space) * 1.5) 0;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
}

.mobile-menu a:hover {
    color: var(--primary);
}

.mobile-menu .btn-primary-custom {
    width: 100%;
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
    }

    .nav-cta {
        display: inline-flex;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-menu,
    .mobile-menu.open {
        display: none;
    }
}

/* ========================================
   Hero
   ======================================== */
.hero {
    padding: calc(var(--space) * 10) 0 calc(var(--space) * 8);
    text-align: center;
}

.hero-headline {
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: calc(var(--space) * 2.5);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1875rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto calc(var(--space) * 6);
    line-height: 1.65;
}

.download-form {
    max-width: 720px;
    margin: 0 auto calc(var(--space) * 4);
}

.download-form-row {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space) * 1.5);
}

.download-form .btn-primary-custom {
    height: 56px;
    padding: 0 calc(var(--space) * 4);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .download-form-row {
        flex-direction: row;
        align-items: stretch;
    }

    .download-form .form-control-custom {
        flex: 1;
    }
}

.platform-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--space) * 1.25);
    list-style: none;
    margin: 0;
    padding: 0;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space) * 0.75);
    padding: calc(var(--space) * 1) calc(var(--space) * 2);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

.platform-badge svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.form-error {
    display: none;
    margin-top: calc(var(--space) * 1.5);
    color: #DC2626;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-error.visible {
    display: block;
}

.form-status {
    display: none;
    margin-top: calc(var(--space) * 1.5);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-status.visible {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--space) * 1);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ========================================
   Preview Card
   ======================================== */
.preview-section {
    padding: 0 0 calc(var(--space) * 8);
    display: none;
}

.preview-section.visible {
    display: block;
    animation: fadeSlideUp 0.4s ease;
}

.preview-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .preview-card {
        grid-template-columns: 240px 1fr;
    }
}

.preview-thumb {
    position: relative;
    background: #E2E8F0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

@media (min-width: 640px) {
    .preview-thumb {
        aspect-ratio: auto;
        min-height: 100%;
    }
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.preview-body {
    padding: calc(var(--space) * 3.5);
    display: flex;
    flex-direction: column;
    gap: calc(var(--space) * 2);
}

.preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--space) * 1);
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.meta-chip svg {
    width: 12px;
    height: 12px;
}

.preview-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.quality-heading {
    margin: 0 0 calc(var(--space) * 1.5);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.quality-options {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--space) * 1);
}

.quality-option {
    appearance: none;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background-color var(--transition);
}

.quality-option:hover {
    border-color: var(--secondary);
    color: var(--primary);
}

.quality-option.active,
.quality-option[aria-pressed="true"] {
    border-color: var(--primary);
    background: #EFF6FF;
    color: var(--primary);
}

.preview-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: calc(var(--space) * 1.5);
}

.preview-hint {
    margin: 0 0 calc(var(--space) * 2);
    padding: calc(var(--space) * 1.5) calc(var(--space) * 2);
    border-radius: var(--radius-sm);
    border: 1px solid #BFDBFE;
    background: #EFF6FF;
    color: #1E40AF;
    font-size: 0.875rem;
    line-height: 1.5;
}

.preview-error {
    margin: 0;
    color: #DC2626;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (min-width: 480px) {
    .preview-actions {
        flex-direction: row;
    }
}

.preview-actions .btn-primary-custom,
.preview-actions .btn-secondary-custom {
    flex: 1;
}

/* ========================================
   Features
   ======================================== */
.features {
    padding: calc(var(--space) * 10) 0;
}

.feature-card {
    height: 100%;
    text-align: center;
    padding: calc(var(--space) * 5) calc(var(--space) * 3.5);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto calc(var(--space) * 3);
    border-radius: 14px;
    background: #EFF6FF;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: calc(var(--space) * 1.5);
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ========================================
   How It Works
   ======================================== */
.how-it-works {
    padding: calc(var(--space) * 10) 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--space) * 4);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: calc(var(--space) * 3);
    }

    .steps::before {
        content: '';
        position: absolute;
        top: 36px;
        left: calc(16.66% + 28px);
        right: calc(16.66% + 28px);
        height: 2px;
        background: var(--border);
        z-index: 0;
    }
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto calc(var(--space) * 3);
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--border);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-icon svg {
    width: 28px;
    height: 28px;
}

.step-number {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: calc(var(--space) * 1);
}

.step p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ========================================
   FAQ
   ======================================== */
.faq {
    padding: calc(var(--space) * 10) 0;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: calc(var(--space) * 1.5);
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover,
.faq-item.open {
    box-shadow: var(--shadow);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--space) * 2);
    padding: calc(var(--space) * 2.5) calc(var(--space) * 3);
    background: transparent;
    border: none;
    text-align: left;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: color var(--transition);
}

.faq-trigger:hover {
    color: var(--primary);
}

.faq-trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), background-color var(--transition), color var(--transition);
}

.faq-icon svg {
    width: 16px;
    height: 16px;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    background: #EFF6FF;
    color: var(--primary);
}

.faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.faq-item.open .faq-panel {
    grid-template-rows: 1fr;
}

.faq-panel-inner {
    overflow: hidden;
}

.faq-panel p {
    margin: 0;
    padding: 0 calc(var(--space) * 3) calc(var(--space) * 3);
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
    padding: calc(var(--space) * 8) 0 calc(var(--space) * 4);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--space) * 5);
    margin-bottom: calc(var(--space) * 6);
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: calc(var(--space) * 4);
    }
}

.footer-brand p {
    margin: calc(var(--space) * 2) 0 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    max-width: 280px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: calc(var(--space) * 2);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li + li {
    margin-top: calc(var(--space) * 1.25);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: calc(var(--space) * 1.25);
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    border-color: var(--secondary);
    background: #EFF6FF;
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding-top: calc(var(--space) * 4);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: calc(var(--space) * 2);
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--space) * 2.5);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* ========================================
   Utilities & Animations
   ======================================== */
.section-platforms {
    padding: calc(var(--space) * 2) 0 calc(var(--space) * 6);
}

.animate-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.wau-tracker {
    display: none !important;
}

/* ========================================
   Advertisement placements
   Reserved sizes avoid layout shift (CLS)
   ======================================== */
.ad-banner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.ad-banner--top {
    padding: calc(var(--space) * 2) 0 calc(var(--space) * 1);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.ad-banner--middle {
    margin: calc(var(--space) * 3) 0 calc(var(--space) * 3.5);
}

.ad-banner--footer {
    padding: calc(var(--space) * 4) 0;
    background: var(--bg);
}

.ad-banner--faq {
    margin: calc(var(--space) * 2.5) 0;
}

.ad-banner--result {
    margin: calc(var(--space) * 2.5) 0;
}

.ad-banner--result-before-download {
    margin-bottom: calc(var(--space) * 3);
}

.ad-slot {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.ad-slot__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

.ad-slot__frame {
    position: relative;
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
    min-height: 90px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(135deg, #ffffff 0%, #F1F5F9 55%, #E2E8F0 100%);
    overflow: hidden;
    contain: layout paint;
}

.ad-slot--leaderboard .ad-slot__frame {
    aspect-ratio: 728 / 90;
    min-height: 90px;
    max-height: 120px;
}

.ad-slot--inline .ad-slot__frame,
.ad-slot--result .ad-slot__frame,
.ad-slot--footer .ad-slot__frame,
.ad-slot--faq .ad-slot__frame {
    aspect-ratio: 16 / 3;
    min-height: 90px;
    max-height: 140px;
}

.ad-slot__unit {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    text-align: center;
    transition: background-color var(--transition), color var(--transition);
}

.ad-slot__unit:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary);
}

.ad-slot__unit-title {
    font-size: clamp(0.9375rem, 2.4vw, 1.125rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.ad-slot__unit-sub {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    color: var(--text-muted);
    line-height: 1.35;
    max-width: 36ch;
}

.ad-slot__unit:hover .ad-slot__unit-sub {
    color: var(--secondary);
}

.preview-body .ad-banner--result .ad-slot__frame {
    max-width: 100%;
}

.faq-list > .ad-banner--faq {
    list-style: none;
}

@media (max-width: 767.98px) {
    .ad-banner--top {
        padding: calc(var(--space) * 1.5) 0;
    }

    .ad-banner--middle {
        margin: calc(var(--space) * 2.5) 0;
    }

    .ad-slot__frame {
        min-height: 70px;
        border-radius: 10px;
    }

    .ad-slot--leaderboard .ad-slot__frame,
    .ad-slot--inline .ad-slot__frame,
    .ad-slot--result .ad-slot__frame,
    .ad-slot--footer .ad-slot__frame,
    .ad-slot--faq .ad-slot__frame {
        aspect-ratio: 32 / 9;
        min-height: 70px;
        max-height: 110px;
    }

    .ad-slot__unit {
        padding: 10px 12px;
    }
}

@media (max-width: 419.98px) {
    .ad-slot__unit-sub {
        display: none;
    }
}
