/* Convert mega-menu + landing pages */

.top-nav,
.nav-container,
.nav-left,
.nav-links-desktop {
    overflow: visible !important;
}

.nav-convert {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-convert-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    /* Match .nav-link hit/active area */
    padding: 0.5rem 1rem;
    margin: 0;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.25;
    height: 36px;
    color: inherit;
    cursor: pointer;
    border-radius: 6px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.nav-convert-btn:hover,
.nav-convert.is-open .nav-convert-btn,
.nav-convert-btn.active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-convert-btn .nav-convert-caret {
    width: 10px;
    height: 10px;
    opacity: 0.85;
    transition: transform 0.15s ease;
}

.nav-convert.is-open .nav-convert-caret {
    transform: rotate(180deg);
}

.nav-convert-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 420px;
    padding: 18px 8px;
    background: #fff;
    color: #1c1c1c !important;
    /* Kill generate-page top-nav text-shadow inheritance (causes blurry black-on-white type) */
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    z-index: 10050;
    filter: none !important;
    backdrop-filter: none !important;
    transform: none !important;
}

.nav-convert.is-open .nav-convert-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
}

body.generate-page .top-nav .nav-convert-panel,
body.generate-page .top-nav .nav-convert-panel a,
body.generate-page .top-nav .nav-convert-panel a:hover {
    color: #1c1c1c !important;
    text-shadow: none !important;
}

.nav-convert-panel a {
    display: block;
    padding: 10px 14px;
    color: #1c1c1c !important;
    text-shadow: none !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.nav-convert-panel a:hover {
    background: #f3f2ef;
    color: #1c1c1c !important;
}

.nav-drawer-convert {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 8px 0;
    padding: 8px 0;
}

.nav-drawer-convert-title {
    display: block;
    padding: 8px 16px 4px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.55;
}

.nav-drawer-convert a {
    display: block;
}

@media (max-width: 900px) {
    .nav-convert-panel {
        display: none !important;
    }
}

/* —— Convert landing (aligned with BGResize brand) —— */

.br-convert-page {
    --br-bg: #e6e4df;
    --br-surface: #f7f6f3;
    --br-panel: #ffffff;
    --br-ink: #1c1c1c;
    --br-muted: #5a5a5a;
    --br-line: #c8c4bc;
    --br-accent: #1f3d36;
    --br-accent-soft: #2d564c;
    --br-danger: #9b1c1c;
    --br-radius: 6px;
    --br-font: 'IBM Plex Sans', 'Segoe UI', sans-serif;
    --br-display: 'IBM Plex Serif', Georgia, serif;
    margin: 0;
    min-height: 100vh;
    font-family: var(--br-font);
    color: var(--br-ink);
    background-color: var(--br-bg);
    background-image: linear-gradient(180deg, #ebe9e4 0%, var(--br-bg) 180px);
}

body.br-convert-page.generate-page {
    background-color: var(--br-bg) !important;
    color: var(--br-ink);
}

.br-convert-main {
    padding: 96px 20px 80px;
    max-width: 880px;
    margin: 0 auto;
}

.br-convert-hero {
    text-align: center;
    margin-bottom: 28px;
}

.br-convert-hero h1 {
    margin: 0 0 10px;
    font-family: var(--br-display);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--br-ink);
}

.br-convert-hero p {
    margin: 0;
    color: var(--br-muted);
    font-size: 1.05rem;
}

.br-convert-drop {
    margin: 0 auto 40px;
    max-width: 640px;
    min-height: 220px;
    border: 1.5px dashed var(--br-line);
    border-radius: var(--br-radius);
    background: var(--br-panel);
    color: var(--br-ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 36px 20px;
    text-align: center;
    box-shadow: 0 1px 0 rgba(28, 28, 28, 0.04);
}

.br-convert-drop.is-dragover {
    border-color: var(--br-accent);
    background: var(--br-surface);
    outline: 2px solid rgba(31, 61, 54, 0.25);
    outline-offset: 2px;
}

.br-convert-drop-icon {
    color: var(--br-accent);
}

.br-convert-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.br-convert-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: var(--br-radius);
    background: var(--br-accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.br-convert-select:hover {
    background: var(--br-accent-soft);
}

.br-convert-drop-hint {
    margin: 0;
    font-size: 0.92rem;
    color: var(--br-muted);
}

.br-convert-drop-limits {
    margin: 0;
    font-size: 0.8rem;
    color: var(--br-muted);
}

.br-convert-status {
    text-align: center;
    min-height: 1.4em;
    margin: -24px 0 28px;
    color: var(--br-muted);
    font-size: 0.9rem;
}

.br-convert-status.is-error {
    color: var(--br-danger);
}

.br-convert-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 22px;
    margin: 0 0 40px;
}

@media (max-width: 720px) {
    .br-convert-features {
        grid-template-columns: 1fr;
    }
}

.br-convert-feature {
    text-align: left;
}

.br-convert-feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    color: var(--br-accent);
}

.br-convert-feature h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--br-ink);
}

.br-convert-feature p {
    margin: 0;
    color: var(--br-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.br-convert-results {
    margin: 0 auto 32px;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.br-convert-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--br-panel);
    border: 1px solid var(--br-line);
    border-radius: var(--br-radius);
}

.br-convert-result-name {
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.br-convert-result button {
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    border-radius: var(--br-radius);
    border: 1px solid var(--br-accent);
    background: var(--br-accent);
    color: #fff;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.br-convert-result button:hover {
    background: var(--br-accent-soft);
    border-color: var(--br-accent-soft);
}

/* —— How to —— */
.br-convert-how {
    width: 100vw;
    margin: 48px 0 0;
    margin-left: calc(50% - 50vw);
    padding: 56px 20px;
    background: #ebe9e4;
    border-top: 1px solid var(--br-line);
    border-bottom: 1px solid var(--br-line);
}

.br-convert-how-inner {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    gap: 40px 48px;
    align-items: center;
}

.br-convert-how-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--br-accent);
}

.br-convert-how-card {
    width: 88px;
    height: 104px;
    border-radius: 8px;
    border: 2px solid var(--br-accent);
    background: var(--br-panel);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(28, 28, 28, 0.06);
}

.br-convert-how-card span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--br-ink);
}

.br-convert-how-arrow {
    flex-shrink: 0;
    color: var(--br-muted);
}

.br-convert-how-steps h2 {
    margin: 0 0 20px;
    font-family: var(--br-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--br-ink);
}

.br-convert-how-steps ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: br-how;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.br-convert-how-steps li {
    position: relative;
    padding-left: 40px;
    color: var(--br-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    counter-increment: br-how;
}

.br-convert-how-steps li::before {
    content: counter(br-how);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--br-accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.br-convert-how-steps strong {
    display: block;
    color: var(--br-ink);
    font-weight: 600;
    margin-bottom: 2px;
}

/* —— Batch promo —— */
.br-convert-batch {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.1fr);
    gap: 36px 48px;
    align-items: center;
    margin: 64px 0 24px;
}

.br-convert-batch-visual {
    position: relative;
    border-radius: var(--br-radius);
    overflow: hidden;
    background: var(--br-surface);
    border: 1px solid var(--br-line);
    aspect-ratio: 4 / 3;
}

.br-convert-batch-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.br-convert-batch-badges {
    position: absolute;
    inset: auto 12px 12px auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.br-convert-batch-badges span {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--br-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 8px rgba(28, 28, 28, 0.12);
}

.br-convert-batch-copy h2 {
    margin: 0 0 12px;
    font-family: var(--br-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--br-ink);
}

.br-convert-batch-copy p {
    margin: 0;
    color: var(--br-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* —— FAQ —— */
.br-convert-faq {
    margin: 56px 0 40px;
}

.br-convert-faq > h2 {
    margin: 0 0 8px;
    font-family: var(--br-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--br-ink);
}

.br-convert-faq-lead {
    margin: 0 0 20px;
    color: var(--br-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.br-convert-faq details {
    border-bottom: 1px solid var(--br-line);
    padding: 0;
}

.br-convert-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 4px;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--br-ink);
}

.br-convert-faq summary::-webkit-details-marker {
    display: none;
}

.br-convert-faq summary::after {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--br-muted);
    border-bottom: 2px solid var(--br-muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    margin-top: -4px;
}

.br-convert-faq details[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.br-convert-faq details p {
    margin: 0 0 16px;
    padding: 0 4px 4px;
    color: var(--br-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 65ch;
}

@media (max-width: 720px) {
    .br-convert-how-inner,
    .br-convert-batch {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .br-convert-how-visual {
        order: -1;
    }
}
