:root {
  --primary: #1a56db;
  --primary-dark: #1340b0;
  --primary-light: #ebf0ff;
  --accent: #f05a28;
  --dark: #0d1117;
  --text: #1a1a2e;
  --text-2: #4a5568;
  --text-3: #718096;
  --border: #e2e8f0;
  --border-2: #cbd5e0;
  --white: #ffffff;
  --bg: #f7f9fc;
  --bg-2: #eef1f7;
  --success: #0d9488;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --font: 'Plus Jakarta Sans', sans-serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; }

/* NAV */
nav { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; padding: 0 1.5rem; }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 20px; height: 20px; fill: white; }
.logo-text { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.logo-text span { color: var(--primary); }
.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 0.875rem; font-weight: 500; padding: 0.4rem 0.8rem; border-radius: var(--radius-sm); transition: all 0.15s; }
.nav-links a:hover { background: var(--bg); color: var(--primary); }
.nav-cta { background: var(--primary); color: white !important; padding: 0.4rem 1rem !important; border-radius: var(--radius-sm) !important; }
.nav-cta:hover { background: var(--primary-dark) !important; color: white !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); -webkit-tap-highlight-color: transparent; }
.nav-toggle svg { width: 24px; height: 24px; display: block; }
.nav-toggle:active { background: var(--bg); }

/* HERO */
.hero { background: linear-gradient(135deg, #0d1117 0%, #1a1f2e 50%, #0f1923 100%); padding: 3.5rem 1.5rem 3rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(26,86,219,0.15) 0%, transparent 60%), radial-gradient(ellipse at 70% 30%, rgba(240,90,40,0.1) 0%, transparent 50%); }
.hero-content { max-width: 720px; margin: 0 auto; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(26,86,219,0.15); border: 1px solid rgba(26,86,219,0.3); color: #93c5fd; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 1.25rem; text-transform: uppercase; }
.hero-badge::before { content: '●'; font-size: 0.5rem; color: #60a5fa; }
.hero h1 { font-size: clamp(1.75rem, 4.5vw, 3rem); font-weight: 800; color: white; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 1rem; }
.hero h1 span { color: #60a5fa; }
.hero p { color: #94a3b8; font-size: 1.05rem; line-height: 1.7; max-width: 600px; margin: 0 auto 1.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem; color: #64748b; font-size: 0.78rem; }
.trust-item { display: flex; align-items: center; gap: 6px; }
.trust-icon { width: 15px; height: 15px; fill: #10b981; }

/* BREADCRUMB / SUBHERO for tool pages */
.tool-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 1.75rem 1.5rem; }
.tool-hero-inner { max-width: 900px; margin: 0 auto; }
.breadcrumb { font-size: 0.8rem; color: var(--text-3); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.tool-page-title { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; }
.tool-page-subtitle { color: var(--text-2); margin-top: 0.4rem; font-size: 1rem; }

/* AD UNITS - real adsbygoogle, fluid. Hidden by default and only revealed
   by JS once Google actually fills the slot, so unfilled/loading ads never
   show as an empty placeholder box. */
.ad-unit { text-align: center; margin: 0; max-height: 0; overflow: hidden; transition: max-height 0.2s ease; }
.ad-unit.ad-filled { margin: 1.5rem auto; max-height: 400px; }
.ad-unit ins.adsbygoogle { display: block; }
.ad-slot-leaderboard { max-width: 728px; margin: 0 auto; }
.ad-slot-rectangle { max-width: 336px; margin: 0 auto; }
.ad-slot-square { max-width: 250px; margin: 0 auto; }
.ad-slot-infeed { min-height: 0; }
.ad-label { font-size: 0.65rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; font-family: var(--mono); }

/* TOOLS GRID (homepage) */
.tools-section { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.section-header p { color: var(--text-2); margin-top: 0.5rem; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.tool-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.25rem; text-align: center; cursor: pointer; transition: all 0.2s; text-decoration: none; color: inherit; display: block; position: relative; overflow: hidden; }
.tool-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--card-color, var(--primary)); transform: scaleX(0); transition: transform 0.2s; border-radius: 0 0 3px 3px; transform-origin: left; }
.tool-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tool-card:hover::before { transform: scaleX(1); }
.tool-card-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.tool-card-icon svg { width: 26px; height: 26px; }
.tool-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.tool-card p { font-size: 0.8rem; color: var(--text-3); line-height: 1.5; }
.tool-card .tag { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px; margin-top: 0.75rem; }

/* TOOL WORKSPACE */
.tool-workspace { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; }
.tool-workspace.full { grid-template-columns: 1fr; max-width: 900px; }

/* DROP ZONE */
.drop-zone { border: 2px dashed var(--border-2); border-radius: var(--radius); padding: 3rem 2rem; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--white); position: relative; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--primary); background: var(--primary-light); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-icon { width: 64px; height: 64px; background: var(--primary-light); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.drop-icon svg { width: 32px; height: 32px; fill: var(--primary); }
.drop-zone h2 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.drop-zone p { color: var(--text-3); font-size: 0.85rem; }
.drop-zone .formats { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 1rem; }
.format-badge { background: var(--bg-2); border: 1px solid var(--border); font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; color: var(--text-2); font-family: var(--mono); }

/* FILE ITEM */
.file-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.file-item-icon { width: 40px; height: 40px; background: #fee2e2; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file-item-icon svg { width: 22px; height: 22px; }
.file-item-name { flex: 1; font-size: 0.9rem; font-weight: 600; }
.file-item-size { font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.65rem 1.4rem; border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.15s; text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #0f7a70; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius); width: 100%; justify-content: center; }

/* SIDEBAR */
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.sidebar-card h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; }
.feature-list { list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-2); padding: 0.3rem 0; }
.feature-list li::before { content: '✓'; color: var(--success); font-weight: 700; }
.related-tools-list a { display: block; font-size: 0.85rem; color: var(--primary); text-decoration: none; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.related-tools-list a:last-child { border-bottom: none; }
.related-tools-list a:hover { text-decoration: underline; }

/* PDF VIEWER */
.pdf-viewer { background: #525659; border-radius: var(--radius); overflow: hidden; min-height: 400px; position: relative; }
.pdf-toolbar { background: #404040; padding: 0.6rem 1rem; display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid #333; flex-wrap: wrap; }
.pdf-toolbar button { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; padding: 0.3rem 0.7rem; border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-family: var(--font); font-weight: 500; transition: all 0.15s; }
.pdf-toolbar button:hover { background: rgba(255,255,255,0.1); }
.pdf-toolbar .page-info { color: #ccc; font-size: 0.8rem; margin-left: auto; }
#pdf-canvas-container { overflow-y: auto; max-height: 600px; display: flex; flex-direction: column; align-items: center; padding: 1.5rem; gap: 1rem; }
#pdf-canvas-container canvas { box-shadow: 0 2px 10px rgba(0,0,0,0.4); border-radius: 2px; max-width: 100%; }

/* EDITOR */
.editor-canvas-wrap { position: relative; background: #525659; border-radius: var(--radius); overflow: hidden; }
.editor-toolbar { background: #2d2d2d; padding: 0.6rem 1rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.editor-tool-btn { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: #ccc; padding: 0.3rem 0.6rem; border-radius: 6px; cursor: pointer; font-size: 0.78rem; font-family: var(--font); font-weight: 500; transition: all 0.15s; display: flex; align-items: center; gap: 5px; }
.editor-tool-btn:hover, .editor-tool-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.editor-tool-sep { width: 1px; height: 24px; background: rgba(255,255,255,0.1); margin: 0 0.25rem; }
.signature-wrap { border: 2px dashed var(--border-2); border-radius: var(--radius); overflow: hidden; background: white; position: relative; margin: 1rem 0; }
#sig-canvas { display: block; width: 100%; cursor: crosshair; touch-action: none; }
.sig-controls { display: flex; gap: 0.5rem; padding: 0.75rem; background: var(--bg-2); border-top: 1px solid var(--border); }

/* STATUS */
.status-msg { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; margin: 1rem 0; display: none; }
.status-msg.show { display: flex; align-items: center; gap: 8px; }
.status-msg.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.status-msg.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status-msg.info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #bfdbfe; }
.result-box { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: var(--radius); padding: 1.5rem; text-align: center; margin: 1rem 0; }
.result-box h3 { color: #065f46; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.result-box p { color: #047857; font-size: 0.875rem; margin-bottom: 1rem; }

/* FORM ELEMENTS */
select, input[type="text"], input[type="number"], textarea { border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 0.6rem 0.9rem; font-family: var(--font); font-size: 0.875rem; background: var(--white); color: var(--text); width: 100%; transition: border-color 0.15s; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
label { font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 0.4rem; color: var(--text-2); }
.form-group { margin-bottom: 1rem; }

.merge-list { list-style: none; margin: 1rem 0; }
.merge-list li { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem 1rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.75rem; cursor: grab; }
.merge-list li .drag-handle { color: var(--text-3); cursor: grab; }
.merge-list li .fname { flex: 1; font-size: 0.875rem; font-weight: 500; }

/* ARTICLE / CONTENT (for SEO body text on each tool page) */
.article-content { max-width: 900px; margin: 0 auto; padding: 1rem 1.5rem 3rem; }
.article-content h2 { font-size: 1.35rem; font-weight: 800; margin: 2rem 0 0.75rem; letter-spacing: -0.01em; }
.article-content h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.article-content p { color: var(--text-2); margin-bottom: 0.9rem; font-size: 0.95rem; }
.article-content ul, .article-content ol { color: var(--text-2); margin: 0 0 0.9rem 1.25rem; font-size: 0.95rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content a { color: var(--primary); }

/* HOW IT WORKS */
.how-section { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3rem 1.5rem; }
.steps-grid { max-width: 900px; margin: 2rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { text-align: center; position: relative; }
.step:not(:last-child)::after { content: '→'; position: absolute; right: -1rem; top: 1.5rem; font-size: 1.25rem; color: var(--border-2); }
.step-num { width: 48px; height: 48px; border-radius: 999px; background: var(--primary); color: white; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.85rem; color: var(--text-3); }

/* FAQ */
.faq-section { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
.faq-q { padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--primary); }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 1.25rem 1rem; color: var(--text-2); font-size: 0.9rem; }
.faq-item.open .faq-a { display: block; }

/* FOOTER */
footer { background: var(--dark); color: #94a3b8; padding: 3rem 1.5rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { margin-bottom: 1rem; }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 0.75rem; }
.footer-logo-icon { width: 32px; height: 32px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.footer-logo-text { font-weight: 800; color: white; font-size: 1rem; }
.footer-tagline { font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 { color: white; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col a { display: block; color: #94a3b8; text-decoration: none; font-size: 0.85rem; padding: 0.25rem 0; transition: color 0.15s; }
.footer-col a:hover { color: #60a5fa; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.privacy-badge { display: flex; align-items: center; gap: 6px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: #34d399; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }

/* LEGAL PAGES */
.legal-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.legal-content h1 { font-size: 1.85rem; font-weight: 800; margin-bottom: 0.5rem; }
.legal-content .updated { color: var(--text-3); font-size: 0.85rem; margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.2rem; font-weight: 700; margin: 1.75rem 0 0.6rem; }
.legal-content p { color: var(--text-2); margin-bottom: 0.9rem; font-size: 0.95rem; }
.legal-content ul { color: var(--text-2); margin: 0 0 0.9rem 1.25rem; font-size: 0.95rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--primary); }

/* ARTICLE PAGES */
.article-page-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 3rem; display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
.article-page-main { min-width: 0; }
.article-meta { display: flex; align-items: center; gap: 0.5rem; color: var(--text-3); font-size: 0.85rem; margin-bottom: 1.5rem; }
.article-dot { opacity: 0.5; }
.article-body { padding: 0; }
.article-body h2 { font-size: 1.3rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body blockquote { border-left: 3px solid var(--primary); padding: 0.25rem 0 0.25rem 1rem; margin: 1.25rem 0; color: var(--text-2); font-style: italic; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.88rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; }
.article-body th { background: var(--bg-2); font-weight: 700; }

.cta-box { background: var(--primary-light); border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.75rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cta-box-text h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--primary-dark); }
.cta-box-text p { font-size: 0.85rem; color: var(--text-2); margin: 0; }

.author-bio { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.author-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.2rem; }
.author-desc { font-size: 0.85rem; color: var(--text-2); }
.author-desc a { color: var(--primary); }

/* BLOG INDEX */
.blog-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 2.5rem 1.5rem; text-align: center; }
.blog-hero h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.blog-hero p { color: var(--text-2); margin-top: 0.5rem; }
.blog-grid { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: inherit; transition: all 0.2s; display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.blog-card-tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 0.6rem; }
.blog-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.35; }
.blog-card p { font-size: 0.85rem; color: var(--text-3); line-height: 1.55; flex: 1; }
.blog-card-meta { font-size: 0.75rem; color: var(--text-3); margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-inner { height: 58px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links { position: fixed; top: 58px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem; max-height: 0; overflow: hidden; transition: max-height 0.2s ease; box-shadow: 0 8px 16px rgba(0,0,0,0.06); }
  .nav-links.mobile-open { max-height: 320px; }
  .nav-links a { padding: 0.75rem 1rem; border-radius: var(--radius-sm); width: 100%; }
  .nav-links a.nav-cta { margin-top: 0.25rem; text-align: center; }

  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero-trust { gap: 0.75rem 1rem; }

  .tool-workspace { grid-template-columns: 1fr; padding: 1.5rem 1rem; gap: 1.25rem; }
  .tool-workspace.full { padding: 1.5rem 1rem; }
  .tool-hero { padding: 1.25rem 1rem; }
  .tool-page-title { font-size: 1.4rem; }

  .steps-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .tools-section { padding: 2rem 1rem; }

  .drop-zone { padding: 2rem 1rem; }
  .drop-icon { width: 52px; height: 52px; }
  .drop-icon svg { width: 26px; height: 26px; }

  /* PDF editor toolbar: allow horizontal scroll instead of overflow/wrap chaos */
  .editor-toolbar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0.6rem 0.75rem; }
  .editor-toolbar::-webkit-scrollbar { height: 4px; }
  .editor-tool-btn { flex-shrink: 0; }
  .editor-tool-sep { flex-shrink: 0; }
  #tool-fontsize { flex-shrink: 0; }
  .editor-canvas-wrap > div { max-height: 60vh; }

  .pdf-toolbar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pdf-toolbar .page-info { margin-left: 0.5rem; white-space: nowrap; }

  .signature-wrap { width: 100%; }
  #sig-modal > div { padding: 1.25rem; width: 100%; max-width: 92vw; }

  .article-content { padding: 0.5rem 1rem 2rem; }
  .article-content h2 { font-size: 1.15rem; }
  .faq-section { padding: 2rem 1rem; }
  .how-section { padding: 2rem 1.25rem; }

  .ad-slot-leaderboard, .ad-slot-rectangle, .ad-slot-square { max-width: 100%; }

  .legal-content { padding: 2rem 1rem; }

  .article-page-wrap { grid-template-columns: 1fr; padding: 1.5rem 1rem 2rem; gap: 1.5rem; }
  .blog-hero { padding: 2rem 1.25rem; }
  .blog-hero h1 { font-size: 1.5rem; }
  .blog-grid { padding: 1.5rem 1rem; grid-template-columns: 1fr; gap: 1rem; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .author-bio { flex-direction: column; }
}

@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero h1 { font-size: 1.65rem; }
  .hero p { font-size: 0.95rem; }
  .hero-badge { font-size: 0.7rem; }
  .tool-card { padding: 1.1rem 0.85rem; }
  .tool-card-icon { width: 42px; height: 42px; margin-bottom: 0.6rem; }
  .tool-card-icon svg { width: 20px; height: 20px; }
  .tool-card h3 { font-size: 0.85rem; }
  .tool-card p { font-size: 0.72rem; }
  .merge-list li { flex-wrap: wrap; }
  .merge-list li .fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .file-item { padding: 0.85rem 1rem; }
  .file-item-name { font-size: 0.82rem; word-break: break-word; }
  .btn-lg { padding: 0.75rem 1.25rem; font-size: 0.92rem; }
}

@media (max-width: 380px) {
  .tools-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; gap: 0.5rem; align-items: flex-start; margin: 0 auto; width: fit-content; }
}

.tool-blue { --card-color: #1a56db; }
.tool-red { --card-color: #dc2626; }
.tool-green { --card-color: #059669; }
.tool-orange { --card-color: #d97706; }
.tool-purple { --card-color: #7c3aed; }
.tool-teal { --card-color: #0d9488; }
.tool-pink { --card-color: #db2777; }
.tool-indigo { --card-color: #4f46e5; }
