/*
 * PPTX to Video — Site Styles
 * All selectors prefixed with .pv- to avoid conflicts with Google AdSense auto ads.
 * No universal resets (* {}), no body/html overflow:hidden, no viewport-blocking fixed elements.
 */

/* === CSS Custom Properties === */
.pv-header,
.pv-main,
.pv-footer,
.pv-hero,
.pv-section,
.pv-upload-card,
.pv-feature-card,
.pv-step,
.pv-faq-item {
    --pv-primary: #4f46e5;
    --pv-primary-hover: #4338ca;
    --pv-primary-light: #eef2ff;
    --pv-success: #059669;
    --pv-success-light: #ecfdf5;
    --pv-error: #dc2626;
    --pv-error-light: #fef2f2;
    --pv-text: #1e293b;
    --pv-text-light: #64748b;
    --pv-bg: #ffffff;
    --pv-bg-alt: #f8fafc;
    --pv-border: #e2e8f0;
    --pv-radius: 12px;
    --pv-radius-sm: 8px;
    --pv-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --pv-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --pv-shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
    --pv-container: 1100px;
    --pv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    box-sizing: border-box;
    font-family: var(--pv-font);
    color: var(--pv-text);
}

/* Scoped box-sizing for all pv- elements */
[class^="pv-"],
[class*=" pv-"] {
    box-sizing: border-box;
}

/* === Hidden utility === */
.pv-hidden {
    display: none;
}

.pv-mt-sm {
    margin-top: 12px;
}

/* === Container === */
.pv-container {
    max-width: var(--pv-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* === Header / Nav === */
.pv-header {
    background: var(--pv-bg);
    border-bottom: 1px solid var(--pv-border);
    position: relative;
    z-index: 10;
}

.pv-nav {
    max-width: var(--pv-container);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.pv-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--pv-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.pv-logo-icon {
    font-size: 1.5rem;
}

.pv-logo-text {
    letter-spacing: -0.02em;
}

.pv-nav-links {
    display: flex;
    gap: 24px;
}

.pv-nav-link {
    text-decoration: none;
    color: var(--pv-text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.pv-nav-link:hover {
    color: var(--pv-primary);
}

/* === Hero === */
.pv-hero {
    background: linear-gradient(135deg, var(--pv-primary-light) 0%, #f0f4ff 50%, #ffffff 100%);
    padding: 64px 0 56px;
    text-align: center;
}

.pv-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pv-text);
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.pv-hero-subtitle {
    font-size: 1.15rem;
    color: var(--pv-text-light);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.pv-hero-cta {
    display: inline-block;
}

/* === Buttons === */
.pv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: var(--pv-font);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--pv-radius-sm);
    padding: 10px 24px;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    line-height: 1.5;
}

.pv-btn-primary {
    background: var(--pv-primary);
    color: #fff;
    box-shadow: var(--pv-shadow);
}

.pv-btn-primary:hover {
    background: var(--pv-primary-hover);
    box-shadow: var(--pv-shadow-md);
}

.pv-btn-primary:active {
    transform: translateY(1px);
}

.pv-btn-outline {
    background: transparent;
    color: var(--pv-primary);
    border: 2px solid var(--pv-primary);
    cursor: pointer;
}

.pv-btn-outline:hover {
    background: var(--pv-primary-light);
}

.pv-btn-lg {
    padding: 14px 36px;
    font-size: 1.05rem;
}

.pv-btn-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--pv-text-light);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    font-family: var(--pv-font);
}

.pv-btn-icon:hover {
    color: var(--pv-error);
    background: var(--pv-error-light);
}

.pv-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === Sections === */
.pv-main {
    min-height: 60vh;
}

.pv-section {
    padding: 56px 0;
}

.pv-section-alt {
    background: var(--pv-bg-alt);
}

.pv-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 12px;
    color: var(--pv-text);
}

.pv-section-desc {
    text-align: center;
    color: var(--pv-text-light);
    margin: 0 0 32px;
    font-size: 1rem;
    line-height: 1.6;
}

/* === Upload Card === */
.pv-upload-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--pv-bg);
    border-radius: var(--pv-radius);
    box-shadow: var(--pv-shadow-lg);
    padding: 32px;
    border: 1px solid var(--pv-border);
}

/* === Drop Zone === */
.pv-drop-zone {
    border: 2px dashed var(--pv-border);
    border-radius: var(--pv-radius-sm);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.pv-drop-zone:hover,
.pv-drop-zone:focus-visible {
    border-color: var(--pv-primary);
    background: var(--pv-primary-light);
}

.pv-drop-zone.pv-drag-over {
    border-color: var(--pv-primary);
    background: var(--pv-primary-light);
    border-style: solid;
}

.pv-drop-icon {
    color: var(--pv-text-light);
    margin-bottom: 12px;
}

.pv-drop-text {
    font-size: 1.05rem;
    color: var(--pv-text);
    margin: 0 0 8px;
}

.pv-drop-or {
    color: var(--pv-text-light);
    font-size: 0.875rem;
    margin: 0 0 12px;
}

.pv-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* === File Info === */
.pv-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--pv-primary-light);
    border: 1px solid #c7d2fe;
    border-radius: var(--pv-radius-sm);
    padding: 16px;
    margin-top: 16px;
}

.pv-file-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pv-file-icon {
    font-size: 2rem;
}

.pv-file-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 2px;
    color: var(--pv-text);
    word-break: break-all;
}

.pv-file-size {
    font-size: 0.85rem;
    color: var(--pv-text-light);
    margin: 0;
}

/* === Options === */
.pv-options {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pv-option-group {
    flex: 1;
    min-width: 200px;
}

.pv-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pv-text);
    margin-bottom: 8px;
}

.pv-range-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pv-range {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--pv-border);
    border-radius: 3px;
    outline: none;
}

.pv-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pv-primary);
    cursor: pointer;
    border: none;
    box-shadow: var(--pv-shadow);
}

.pv-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pv-primary);
    cursor: pointer;
    border: none;
    box-shadow: var(--pv-shadow);
}

.pv-range-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pv-primary);
    min-width: 36px;
    text-align: center;
}

.pv-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius-sm);
    font-size: 0.95rem;
    font-family: var(--pv-font);
    color: var(--pv-text);
    background: var(--pv-bg);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.pv-select:focus {
    border-color: var(--pv-primary);
}

/* === Convert Button === */
.pv-convert-wrap {
    margin-top: 24px;
    text-align: center;
}

/* === Progress === */
.pv-progress-section {
    margin-top: 24px;
}

.pv-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pv-progress-status {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pv-text);
}

.pv-progress-pct {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pv-primary);
}

.pv-progress-bar-track {
    height: 10px;
    background: var(--pv-border);
    border-radius: 5px;
    overflow: hidden;
}

.pv-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--pv-primary), #818cf8);
    border-radius: 5px;
    transition: width 0.4s ease;
}

.pv-progress-hint {
    font-size: 0.8rem;
    color: var(--pv-text-light);
    margin: 10px 0 0;
    text-align: center;
}

/* === Download === */
.pv-download-section {
    text-align: center;
    padding: 24px 0 0;
}

.pv-download-icon {
    color: var(--pv-success);
    margin-bottom: 12px;
}

.pv-download-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pv-success);
    margin: 0 0 16px;
}

/* === Error === */
.pv-error-section {
    text-align: center;
    padding: 24px 0 0;
}

.pv-error-icon {
    font-size: 2.5rem;
    color: var(--pv-error);
    margin: 0 0 8px;
}

.pv-error-msg {
    font-size: 0.95rem;
    color: var(--pv-error);
    margin: 0 0 16px;
    line-height: 1.5;
}

/* === Features Grid === */
.pv-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.pv-feature-card {
    background: var(--pv-bg);
    border-radius: var(--pv-radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--pv-shadow);
    border: 1px solid var(--pv-border);
    transition: box-shadow 0.2s, transform 0.2s;
}

.pv-feature-card:hover {
    box-shadow: var(--pv-shadow-md);
    transform: translateY(-2px);
}

.pv-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.pv-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--pv-text);
}

.pv-feature-desc {
    font-size: 0.9rem;
    color: var(--pv-text-light);
    margin: 0;
    line-height: 1.6;
}

/* === Steps === */
.pv-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pv-step {
    text-align: center;
    max-width: 240px;
    flex: 1;
    min-width: 180px;
}

.pv-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pv-primary);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.pv-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--pv-text);
}

.pv-step-desc {
    font-size: 0.9rem;
    color: var(--pv-text-light);
    margin: 0;
    line-height: 1.5;
}

.pv-step-arrow {
    font-size: 1.75rem;
    color: var(--pv-text-light);
    padding-top: 10px;
    flex-shrink: 0;
}

/* === FAQ === */
.pv-faq-list {
    max-width: 720px;
    margin: 32px auto 0;
}

.pv-faq-item {
    border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius-sm);
    margin-bottom: 12px;
    background: var(--pv-bg);
    overflow: hidden;
}

.pv-faq-question {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--pv-text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pv-faq-question::-webkit-details-marker {
    display: none;
}

.pv-faq-question::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--pv-text-light);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.pv-faq-item[open] .pv-faq-question::after {
    content: "\2212";
}

.pv-faq-answer {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: var(--pv-text-light);
    line-height: 1.65;
    margin: 0;
}

/* === Footer === */
.pv-footer {
    border-top: 1px solid var(--pv-border);
    padding: 32px 0;
    background: var(--pv-bg);
}

.pv-footer-inner {
    max-width: var(--pv-container);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.pv-footer-text {
    font-size: 0.875rem;
    color: var(--pv-text-light);
    margin: 0 0 8px;
}

.pv-footer-links {
    margin-bottom: 12px;
}

.pv-footer-link {
    font-size: 0.875rem;
    color: var(--pv-primary);
    text-decoration: none;
}

.pv-footer-link:hover {
    text-decoration: underline;
}

.pv-footer-disclaimer {
    font-size: 0.775rem;
    color: var(--pv-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    opacity: 0.8;
}

/* === Privacy Page === */
.pv-privacy {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

.pv-privacy h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.pv-privacy h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 32px 0 8px;
}

.pv-privacy p {
    font-size: 0.95rem;
    color: var(--pv-text-light);
    margin: 0 0 16px;
}

.pv-privacy ul {
    color: var(--pv-text-light);
    font-size: 0.95rem;
    padding-left: 24px;
    margin: 0 0 16px;
}

.pv-privacy li {
    margin-bottom: 6px;
}

/* === Error Page === */
.pv-error-page {
    text-align: center;
    padding: 64px 20px;
}

.pv-error-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--pv-text);
}

.pv-error-page p {
    font-size: 1rem;
    color: var(--pv-text-light);
    margin: 0 0 24px;
}

/* === Responsive === */

/* Small phones */
@media (max-width: 480px) {
    .pv-hero {
        padding: 40px 0 36px;
    }

    .pv-hero-title {
        font-size: 1.75rem;
    }

    .pv-hero-subtitle {
        font-size: 1rem;
    }

    .pv-section {
        padding: 40px 0;
    }

    .pv-section-title {
        font-size: 1.4rem;
    }

    .pv-upload-card {
        padding: 20px;
    }

    .pv-drop-zone {
        padding: 32px 16px;
    }

    .pv-steps {
        flex-direction: column;
        align-items: center;
    }

    .pv-step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .pv-step {
        max-width: none;
    }

    .pv-options {
        flex-direction: column;
    }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .pv-hero-title {
        font-size: 2rem;
    }

    .pv-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 769px) {
    .pv-hero-title {
        font-size: 2.75rem;
    }

    .pv-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}