/* ══════════════════════════════════════════════════════════════════
   pdf-to-word.html — page-specific styles (loaded after base.css).
   Font-face, reset, .uz upload zone, and .rts-* related-tools-strip
   are now covered by base.css — do not redefine them here.
   ══════════════════════════════════════════════════════════════════ */

:root {
    --slate-800: #1e293b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-50: #f8fafc;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);
    --shadow-blue: 0 8px 24px rgba(99, 102, 241, .25);
    --radius-sm: .5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --font-head: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ── Utility ── */
.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 50rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-md {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.grad-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section spacing ── */
.section {
    padding: 3rem 1.5rem;
}

.section-sm {
    padding: 2rem 1.5rem;
}

/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, .25);
    padding: .3rem .9rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 700;
    font-family: var(--font-head);
    color: var(--slate-700);
    letter-spacing: .03em;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
}

/* ── Headings ── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    line-height: 1.2;
    letter-spacing: -.015em;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .875rem;
    padding: .75rem 2rem;
    border-radius: 9999px;
    cursor: pointer;
    border: none;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    text-decoration: none;
}

.btn:hover {
    transform: scale(1.04);
}

.btn:active {
    transform: scale(.98);
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    box-shadow: 0 12px 28px rgba(99, 102, 241, .35);
}

.btn-green {
    background: linear-gradient(135deg, var(--green), #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, .3);
}

.btn-ghost {
    background: var(--slate-100);
    color: var(--slate-600);
    border: 1px solid var(--slate-200);
}

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    color: var(--slate-600);
    font-family: var(--font-head);
    font-weight: 500;
}

.breadcrumb a {
    color: var(--slate-600);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--indigo);
}

.breadcrumb span {
    color: var(--slate-800);
    font-weight: 700;
}

/* ── Result / Error / Progress states ── */
.result-box {
    display: none;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.result-box.success {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.result-box.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

/* ── Change file button hover — CSS only, no inline JS ── */
.change-file-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-400);
    padding: .25rem;
    border-radius: .375rem;
    flex-shrink: 0;
    transition: color .2s ease;
}

.change-file-btn:hover {
    color: var(--red);
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
    .section {
        padding: 2rem 1rem;
    }

    .section-lg {
        padding: 3rem 1rem;
    }

    h1 {
        font-size: 1.65rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}

@media(max-width:680px) {
    #how-it-works [role="list"] {
        grid-template-columns: 1fr !important;
    }
}
