/**
 * PDFWin — Global Design System
 * Loaded on every page via admin/head.php.
 * World-class design — clean, fast, conversion-optimised.
 */

/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
    --pw-red:          #E5322D;
    --pw-red-dark:     #b52520;
    --pw-red-light:    #fce9e8;
    --pw-gold:         #FFBF00;
    --pw-ink:          #111827;
    --pw-ink-2:        #374151;
    --pw-muted:        #6b7280;
    --pw-surface:      #f9fafb;
    --pw-surface-2:    #f3f4f6;
    --pw-border:       #e5e7eb;
    --pw-border-light: #f0f0f0;
    --pw-white:        #ffffff;
    --pw-radius-xs:    6px;
    --pw-radius-sm:    10px;
    --pw-radius-md:    16px;
    --pw-radius-lg:    24px;
    --pw-radius-xl:    32px;
    --pw-shadow-xs:    0 1px 3px rgba(0,0,0,.08);
    --pw-shadow-sm:    0 2px 8px rgba(0,0,0,.08);
    --pw-shadow-md:    0 4px 20px rgba(0,0,0,.10);
    --pw-shadow-lg:    0 12px 40px rgba(0,0,0,.12);
    --pw-font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --pw-font-brand:   'Caveat', cursive;
    --pw-font-head:    'Poppins', system-ui, -apple-system, sans-serif;
    --pw-transition:   .2s cubic-bezier(.4,0,.2,1);
    --pw-header-h:     64px;
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--pw-font-body);
    color: var(--pw-ink);
    background: var(--pw-white);
    -webkit-font-smoothing: antialiased;
}

/* ─── Back-to-top ────────────────────────────────────────────────────────── */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--pw-red);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--pw-shadow-md);
    transition: background var(--pw-transition), transform var(--pw-transition);
}
#backToTopBtn.show  { display: flex; align-items: center; justify-content: center; }
#backToTopBtn:hover { background: var(--pw-red-dark); transform: translateY(-3px); }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pw-border);
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.header nav {
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: var(--pw-header-h);
}

/* ── Standalone logo (left of nav) ──────────────────────────────────────── */
.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
}
.header-logo svg {
    width: 48px;
    height: 48px;
    display: block;
    transition: transform .2s;
    /* drop-shadow makes the white document body visible on light backgrounds */
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.18));
}
.header-logo:hover svg { transform: scale(1.08); filter: drop-shadow(0 3px 8px rgba(0,0,0,.22)); }

/* ── Header search pill (search only, fills remaining space) ─────────────── */
.header-search {
    flex: 1;
    max-width: 440px;
    margin-left: auto;
    display: flex;
    align-items: center;
    height: 44px;
    background: var(--pw-surface);
    border: 1.5px solid var(--pw-border);
    border-radius: 50px;
    transition: border-color var(--pw-transition), box-shadow var(--pw-transition), background var(--pw-transition);
    position: relative;
    overflow: visible;
    padding: 0 12px;
    gap: 6px;
}
.header-search:focus-within {
    border-color: var(--pw-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(229,50,45,.12);
}

/* Search icon */
.header-search__icon {
    flex-shrink: 0;
    color: var(--pw-muted);
}

/* Input */
.header-search__input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    font-size: .9rem;
    color: var(--pw-ink);
    outline: none;
    font-family: var(--pw-font-body);
    min-width: 0;
    padding: 0;
}
.header-search__input::placeholder { color: var(--pw-muted); }

/* Keyboard shortcut badge */
.header-search__kbd {
    flex-shrink: 0;
    font-size: .68rem;
    color: var(--pw-muted);
    background: var(--pw-surface-2);
    border: 1px solid var(--pw-border);
    border-radius: 4px;
    padding: 1px 5px;
    pointer-events: none;
}

/* Separator no longer needed (was logo | search) */
.header-search__sep { display: none; }

/* Search results dropdown */
.header-search__results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-md);
    box-shadow: var(--pw-shadow-lg);
    max-height: 380px;
    overflow-y: auto;
    z-index: 999;
}
.header-search__results.open { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1rem;
    text-decoration: none;
    color: var(--pw-ink);
    font-size: .9rem;
    transition: background var(--pw-transition);
    border-radius: var(--pw-radius-xs);
}
.search-result-item:hover, .search-result-item.active {
    background: var(--pw-surface);
}
.search-result-icon {
    width: 28px;
    height: 28px;
    background: var(--pw-red-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .75rem;
    color: var(--pw-red);
}
.search-result-name { font-weight: 500; }
.search-result-cat  { font-size: .78rem; color: var(--pw-muted); margin-left: auto; }
.search-no-results  { padding: 1.25rem 1rem; color: var(--pw-muted); font-size: .9rem; text-align: center; }

/* Nav links */
.header .actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}
.header .actions a {
    text-decoration: none;
    color: var(--pw-ink-2);
    font-size: .875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: background var(--pw-transition), color var(--pw-transition);
}
.header .actions a:hover { background: var(--pw-surface); color: var(--pw-red); }
.header .actions .btn--header {
    background: var(--pw-red);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
}
.header .actions .btn--header:hover {
    background: var(--pw-red-dark);
    color: #fff;
}

/* Desktop nav + mega-menu */
.header-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex-shrink: 0;
}
.header-nav__item { position: relative; }
.header-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: none;
    border: none;
    font-family: var(--pw-font-body);
    font-size: .875rem;
    font-weight: 600;
    color: var(--pw-ink-2);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--pw-transition), color var(--pw-transition);
    white-space: nowrap;
}
.header-nav__btn:hover { background: var(--pw-surface); color: var(--pw-red); }
.header-nav__btn svg { transition: transform var(--pw-transition); }
.header-nav__item.is-open .header-nav__btn svg,
.header-nav__item:focus-within .header-nav__btn svg { transform: rotate(180deg); }

/* Mega-menu */
.mega-menu {
    position: absolute;
    top: calc(100% + 2px);   /* 2px gap so :hover doesn't snap shut */
    left: -1rem;
    background: #fff;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-md);
    box-shadow: var(--pw-shadow-lg);
    padding: 1.25rem;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 1.5rem;
    min-width: 680px;
    z-index: 999;
    /* hidden by default — JS adds/removes .is-open */
    display: grid;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .18s ease, visibility .18s, transform .18s ease;
}
.mega-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
/* Invisible bridge covering any gap between button and menu */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
/* keyboard / focus fallback */
.header-nav__item:focus-within .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mega-menu__col { display: flex; flex-direction: column; gap: .15rem; }
.mega-menu__label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pw-muted);
    margin: 0 0 .5rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--pw-border-light);
}
.mega-menu a {
    display: block;
    font-size: .835rem;
    color: var(--pw-ink-2);
    text-decoration: none;
    padding: .3rem .4rem;
    border-radius: 6px;
    transition: background var(--pw-transition), color var(--pw-transition);
    white-space: nowrap;
}
.mega-menu a:hover { background: var(--pw-surface); color: var(--pw-red); }

/* Mega-menu emoji icons */
.mm-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    font-size: .9rem;
    flex-shrink: 0;
}
.mega-menu a { gap: .4rem; }

/* Hamburger / mobile */
.menu { display: none; }
.menu--sm, .show--sm { display: none; }
@media (max-width: 900px) {
    .header-nav { display: none; }
}
@media (max-width: 768px) {
    .header-search { max-width: 100%; }
    .header-search__kbd { display: none; }
    .hide--sm  { display: none !important; }
    .header .actions .link--secondary { display: none; }
    .header-logo svg { width: 38px; height: 38px; }
}

/* Dropdown menus */
.has-dropdown { position: relative; }
.has-dropdown > .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-md);
    box-shadow: var(--pw-shadow-lg);
    min-width: 220px;
    z-index: 999;
    padding: .5rem;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: block; }
.dropdown ul { list-style: none; padding: 0; margin: 0; }
.dropdown li a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .75rem;
    color: var(--pw-ink-2);
    text-decoration: none;
    font-size: .875rem;
    border-radius: 6px;
    transition: background var(--pw-transition);
}
.dropdown li a:hover { background: var(--pw-surface); color: var(--pw-red); }
.nav__title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pw-muted);
    padding: .5rem .75rem .25rem;
}
.dropdown--full {
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
}
.dropdown--full ul { display: flex; flex-wrap: wrap; }
.dropdown--full > ul > li { flex: 0 0 25%; padding: .5rem; }
.dropdown--single { left: auto; right: 0; }
.divider { border-top: 1px solid var(--pw-border); margin: .4rem 0; }
.ico { display: inline-block; width: 16px; height: 16px; vertical-align: middle; }

/* ─── Homepage Hero ───────────────────────────────────────────────────────── */
.pw-hero {
    background: linear-gradient(150deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: clamp(3.5rem, 8vw, 6rem) 1.5rem clamp(2.5rem, 6vw, 5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.pw-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #fff);
}
.pw-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}
.pw-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(229,50,45,.2);
    border: 1px solid rgba(229,50,45,.35);
    color: #ff8a87;
    font-size: .8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: .03em;
}
.pw-hero__badge-dot {
    width: 7px; height: 7px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(1.3); }
}
.pw-hero h1 {
    font-family: var(--pw-font-head);
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 1.25rem;
}
.pw-hero h1 span {
    background: linear-gradient(135deg, #ff6b6b, #E5322D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pw-hero__sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,.72);
    line-height: 1.65;
    margin: 0 0 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
/* Hero search */
.pw-hero__search {
    position: relative;
    max-width: 520px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
}
.pw-hero__search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pw-muted);
    pointer-events: none;
    font-size: 1rem;
}
.pw-hero__search input {
    width: 100%;
    height: 52px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 1rem;
    padding: 0 50px 0 50px;
    outline: none;
    transition: border-color var(--pw-transition), background var(--pw-transition);
    font-family: var(--pw-font-body);
}
.pw-hero__search input::placeholder { color: rgba(255,255,255,.5); }
.pw-hero__search input:focus {
    border-color: rgba(229,50,45,.6);
    background: rgba(255,255,255,.15);
}
.pw-hero__search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    padding: 0 18px;
    background: var(--pw-red);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--pw-transition);
    white-space: nowrap;
}
.pw-hero__search-btn:hover { background: var(--pw-red-dark); }

/* Hero search results dropdown */
.pw-hero__results {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--pw-radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    max-height: 380px;
    overflow-y: auto;
    z-index: 999;
    text-align: left;
    border: 1px solid var(--pw-border);
}
.pw-hero__results.open { display: block; }
.pw-hero__results .search-result-item { border-radius: 0; }
.pw-hero__results .search-result-item:first-child { border-radius: var(--pw-radius-md) var(--pw-radius-md) 0 0; }
.pw-hero__results .search-result-item:last-child  { border-radius: 0 0 var(--pw-radius-md) var(--pw-radius-md); }

/* Hero trust row */
.pw-hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
}
.pw-hero__trust-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.65);
    font-size: .85rem;
}
.pw-hero__trust-item svg { flex-shrink: 0; }

/* ─── Homepage tool sections ─────────────────────────────────────────────── */
.home-title {
    max-width: 1280px;
    margin: 2.5rem auto .5rem;
    padding: 0 1.5rem;
}
.home-title__title {
    font-family: var(--pw-font-head);
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 700;
    color: var(--pw-ink);
    margin: 0 0 .35rem;
}
.home-title__subtitle {
    color: var(--pw-muted);
    font-size: .95rem;
    margin: 0;
}

/* Tool grid */
.tools {
    max-width: 1280px;
    margin: 0 auto;
    padding: .75rem 1.5rem 1.5rem;
}
.tools__container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.tools__item {
    position: relative;
}
.tools__item a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1rem;
    background: var(--pw-white);
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-md);
    text-decoration: none;
    color: var(--pw-ink);
    transition: border-color var(--pw-transition), box-shadow var(--pw-transition), transform var(--pw-transition);
    height: 100%;
    gap: .75rem;
    box-shadow: var(--pw-shadow-xs);
}
.tools__item a:hover {
    border-color: var(--pw-red);
    box-shadow: 0 4px 20px rgba(229,50,45,.12);
    transform: translateY(-2px);
}
.tools__item__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--pw-red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.tools__item__icon svg {
    width: 28px !important;
    height: 28px !important;
}
.tools__item h3 {
    font-family: var(--pw-font-head);
    font-size: .875rem;
    font-weight: 600;
    margin: 0;
    color: var(--pw-ink);
    line-height: 1.35;
}
.tools__item a:hover h3 { color: var(--pw-red); }
.tools__item__content { display: none; }

/* Badge */
.badge {
    position: absolute;
    top: -8px;
    right: 10px;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    z-index: 2;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.badge--new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

/* Section separator */
.tools-divider {
    max-width: 1280px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
    border: 0;
    border-top: 1px solid var(--pw-border-light);
}

/* ─── Features section ───────────────────────────────────────────────────── */
.features-section {
    background: var(--pw-surface);
    padding: 5rem 1.5rem;
    border-top: 1px solid var(--pw-border);
}
.features-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.features-title {
    font-family: var(--pw-font-head);
    font-size: clamp(1.4rem, 3.5vw, 2.1rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: .6rem;
    color: var(--pw-ink);
}
.features-description {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 3rem;
    color: var(--pw-muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.feature-box {
    background: var(--pw-white);
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-md);
    padding: 2rem 1.5rem;
    box-shadow: var(--pw-shadow-sm);
    text-align: center;
    transition: transform var(--pw-transition), box-shadow var(--pw-transition);
    height: 100%;
}
.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--pw-shadow-md);
}
.feature-icon {
    font-size: 2.25rem;
    margin-bottom: .9rem;
    display: block;
    line-height: 1;
}
.feature-title {
    font-family: var(--pw-font-head);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 .5rem;
    color: var(--pw-ink);
}
.feature-description {
    font-size: .92rem;
    color: var(--pw-muted);
    line-height: 1.6;
    margin: 0;
}

/* ─── CTA section ────────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--pw-red) 0%, #b52520 100%);
    color: #fff;
    padding: 5rem 1.5rem;
    text-align: center;
}
.cta-title {
    font-family: var(--pw-font-head);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -.02em;
}
.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2.25rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: .88;
    line-height: 1.6;
}
.cta-button {
    display: inline-block;
    background: #fff;
    color: var(--pw-red);
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--pw-transition), color var(--pw-transition), transform var(--pw-transition);
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
}
.cta-button:hover {
    background: var(--pw-red-dark);
    color: #fff;
    transform: scale(1.04);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer-main {
    background: #111827;
    padding: 4rem 1.5rem 2.5rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
}
.footer-main__title {
    font-family: var(--pw-font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: rgba(255,255,255,.4);
}
/* Footer brand */
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .85rem;
    text-decoration: none;
}
.footer-brand__icon {
    width: 44px;
    height: 44px;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.4));
    transition: transform .2s;
}
.footer-brand:hover .footer-brand__icon { transform: scale(1.07); }
.footer-brand__word {
    font-family: var(--pw-font-head);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    white-space: nowrap;
}
.footer-about {
    font-size: .875rem;
    color: rgba(255,255,255,.5);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.footer-main__nav { list-style: none; padding-left: 0; margin: 0; }
.footer-main__nav li { margin-bottom: .55rem; }
.footer-main__nav a {
    text-decoration: none;
    color: rgba(255,255,255,.55);
    font-size: .875rem;
    transition: color var(--pw-transition);
}
.footer-main__nav a:hover { color: #fff; }

.footer-bottom {
    background: #0d1117;
    padding: 1.25rem 1.5rem;
    color: rgba(255,255,255,.4);
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    max-width: 1100px;
    margin: 0 auto;
}
.footer-menu ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.footer-menu a {
    color: rgba(255,255,255,.4);
    text-decoration: none;
    font-size: .8rem;
    transition: color var(--pw-transition);
}
.footer-menu a:hover { color: rgba(255,255,255,.75); }
.copyright { font-size: .8rem; }

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* ─── Format conversion badges ───────────────────────────────────────────── */
.format-badges {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto 1.75rem;
}
.format-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}
.format-badge__icon {
    width: 60px;
    height: 72px;
    position: relative;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.15));
}
.format-badge__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pw-muted);
}
.format-badge__arrow {
    font-size: 1.5rem;
    color: var(--pw-muted);
    margin-top: -8px;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .format-badge__icon { width: 46px; height: 56px; }
    .format-badges { gap: .65rem; }
}

/* ─── Tool page hero (.bg-tool) ──────────────────────────────────────────── */
.bg-tool {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 60%);
    text-align: center;
    color: var(--pw-ink);
    padding: clamp(2.5rem, 7vw, 5rem) 1.5rem 1.5rem;
    max-width: 60rem;
    margin: 0 auto;
}
.bg-tool h1 {
    font-family: var(--pw-font-head);
    color: var(--pw-red);
    font-size: clamp(1.65rem, 4.5vw, 2.5rem);
    margin: 0 auto .6rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.18;
}
.bg-tool__lead {
    margin: 0 auto 0;
    max-width: 32rem;
    font-size: clamp(.95rem, 2vw, 1.1rem);
    color: var(--pw-muted);
    line-height: 1.55;
}
@media (max-width: 480px) {
    .bg-tool { padding-top: 2.5rem; }
}

/* ─── Tool stage containers ──────────────────────────────────────────────── */
.toolarea-pdf1 {
    width: 100%;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
    background: linear-gradient(180deg, #f3f4f6 0%, #e9eaee 100%);
    text-align: center;
}
.toolarea-pdf,
.toolarea-pdf-gradio {
    max-width: min(96%, 1100px);
    margin: 2rem auto;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: #fff;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-lg);
    box-shadow: var(--pw-shadow-md);
    text-align: center;
}
.toolarea {
    max-width: min(90%, 1000px);
    margin: 2rem auto;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: #fff;
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-lg);
    box-shadow: var(--pw-shadow-md);
    text-align: center;
}

/* ─── Tool content section ───────────────────────────────────────────────── */
.tool-content {
    max-width: 780px;
    margin: 2.5rem auto 3rem;
    padding: 0 1.5rem;
    color: var(--pw-ink);
    font-size: 1rem;
    line-height: 1.75;
}
.tool-content h2 {
    font-family: var(--pw-font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pw-ink);
    margin: 2.25rem 0 .65rem;
    padding-bottom: .35rem;
    border-bottom: 2px solid var(--pw-border);
}
.tool-content h2:first-child { margin-top: 0; }
.tool-content p  { margin: 0 0 1rem; color: var(--pw-ink-2); }
.tool-content ul { padding-left: 1.4rem; margin: 0 0 1rem; color: var(--pw-ink-2); }
.tool-content ul li { margin-bottom: .45rem; }

/* FAQ */
.tool-faq { margin: 0 0 1rem; }
.tool-faq dt {
    font-weight: 600;
    color: var(--pw-ink);
    margin-top: 1.1rem;
}
.tool-faq dd {
    margin: .35rem 0 0;
    color: #555;
    padding-left: .5rem;
    border-left: 3px solid var(--pw-border);
}

/* ─── Homepage hero (old .bg-main-1 kept for compat) ────────────────────── */
.bg-main-1 {
    background: linear-gradient(150deg, #1a1a2e, #0f3460);
    padding: 4rem 0 2rem;
}
.text-section h1 {
    font-family: var(--pw-font-head);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}
.text-section h1 span { color: #ff8a87; }
.text-section { padding-right: 2rem; }
.lead {
    font-size: 1.1rem;
    margin-top: 1rem;
    color: rgba(255,255,255,.8);
    line-height: 1.65;
}
.image-section img { width: 100%; height: auto; max-height: 380px; object-fit: contain; }
@media (min-width: 768px) {
    .text-section  { flex: 0 0 58%; max-width: 58%; }
    .image-section { flex: 0 0 42%; max-width: 42%; }
}
@media (max-width: 767px) {
    .text-section, .image-section { flex: 0 0 100%; max-width: 100%; text-align: center; }
    .text-section  { padding-right: 0; }
    .image-section { margin-top: 1.5rem; }
    .bg-main-1     { padding: 2.5rem 0 1.5rem; }
}

/* ─── Responsive utilities ───────────────────────────────────────────────── */
.hide--md { display: none; }
@media (min-width: 769px) { .hide--md { display: block; } }
@media (max-width: 900px) {
    .tools__container { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 600px) {
    .tools__container { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; }
    .tools { padding: .5rem 1rem 1rem; }
    .home-title { padding: 0 1rem; }
}
