/* ============================================================
   PDFzelo Design System — pz.css
   Version 1.0 · Original design, built for PDFzelo
   Deep navy (#1a365d) + vibrant teal (#d9364f)
   All classes prefixed with `pz-` to avoid conflicts.
   Mobile-first, responsive.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --pz-navy-950: #0f2440;
  --pz-navy-900: #14305a;
  --pz-navy-800: #1a365d;   /* primary brand navy */
  --pz-navy-700: #224470;
  --pz-navy-600: #2c5487;

  --pz-teal-600: #d9364f;   /* primary accent */
  --pz-teal-500: #e65a68;
  --pz-teal-100: #ffd0d8;
  --pz-teal-50: #fff1f3;

  --pz-sky-600:  #0284c7;
  --pz-sky-100:  #e0f2fe;

  /* Neutrals */
  --pz-white: #ffffff;
  --pz-slate-50:  #f8fafc;
  --pz-slate-100: #f1f5f9;
  --pz-slate-200: #e2e8f0;
  --pz-slate-300: #cbd5e1;
  --pz-slate-400: #94a3b8;
  --pz-slate-500: #64748b;
  --pz-slate-600: #475569;
  --pz-slate-700: #334155;
  --pz-slate-800: #1e293b;
  --pz-slate-900: #0f172a;

  /* Feedback */
  --pz-success: #16a34a;
  --pz-warning: #d97706;
  --pz-danger:  #dc2626;

  /* Category dot colors (original PDFzelo set) */
  --pz-cat-organize:   #d9364f;  /* teal */
  --pz-cat-edit:       #8b5cf6;  /* violet */
  --pz-cat-to-pdf:     #0284c7;  /* sky */
  --pz-cat-from-pdf:   #f59e0b;  /* amber */
  --pz-cat-optimize:   #10b981;  /* emerald */
  --pz-cat-secure:     #1a365d;  /* navy */

  /* Typography */
  --pz-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pz-text-xs: 0.75rem;    /* 12px */
  --pz-text-sm: 0.875rem;   /* 14px */
  --pz-text-base: 1rem;     /* 16px */
  --pz-text-lg: 1.125rem;   /* 18px */
  --pz-text-xl: 1.25rem;    /* 20px */
  --pz-text-2xl: 1.5rem;    /* 24px */
  --pz-text-3xl: 1.875rem;  /* 30px */
  --pz-text-4xl: 2.25rem;   /* 36px */
  --pz-text-5xl: 3rem;      /* 48px */

  /* Shape + depth */
  --pz-radius-sm: 6px;
  --pz-radius-md: 10px;
  --pz-radius-lg: 16px;
  --pz-radius-full: 9999px;
  --pz-shadow-sm: 0 1px 2px rgba(15, 36, 64, 0.06);
  --pz-shadow-md: 0 4px 12px rgba(15, 36, 64, 0.10);
  --pz-shadow-lg: 0 12px 32px rgba(15, 36, 64, 0.16);
  --pz-shadow-pop: 0 20px 48px rgba(15, 36, 64, 0.22);

  /* Motion */
  --pz-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --pz-speed: 180ms;
}

/* ---------- 2. Reset (scoped) ---------- */
.pz-reset, .pz-reset *, .pz-reset *::before, .pz-reset *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- 3. Base ---------- */
body.pz-body {
  font-family: var(--pz-font);
  color: var(--pz-slate-800);
  background: var(--pz-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pz-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.pz-link { color: var(--pz-teal-600); text-decoration: none; }
.pz-link:hover { text-decoration: underline; }

/* ---------- 4. Type scale ---------- */
.pz-h1, .pz-h2, .pz-h3, .pz-h4 {
  color: var(--pz-navy-800);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.pz-h1 { font-size: var(--pz-text-3xl); }
.pz-h2 { font-size: var(--pz-text-2xl); }
.pz-h3 { font-size: var(--pz-text-xl); }
.pz-h4 { font-size: var(--pz-text-lg); }
.pz-lead { font-size: var(--pz-text-lg); color: var(--pz-slate-600); }
.pz-small { font-size: var(--pz-text-sm); color: var(--pz-slate-500); }
.pz-eyebrow {
  font-size: var(--pz-text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pz-teal-600);
}
@media (min-width: 768px) {
  .pz-h1 { font-size: var(--pz-text-5xl); }
  .pz-h2 { font-size: var(--pz-text-4xl); }
  .pz-h3 { font-size: var(--pz-text-2xl); }
}

/* ---------- 5. Buttons ---------- */
.pz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--pz-font);
  font-size: var(--pz-text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--pz-radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--pz-speed) var(--pz-ease), color var(--pz-speed) var(--pz-ease),
              border-color var(--pz-speed) var(--pz-ease), box-shadow var(--pz-speed) var(--pz-ease),
              transform var(--pz-speed) var(--pz-ease);
  white-space: nowrap;
}
.pz-btn:active { transform: translateY(1px); }
.pz-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.pz-btn--primary {
  background: var(--pz-teal-600);
  color: var(--pz-white);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.pz-btn--primary:hover { background: #0b837a; }
.pz-btn--primary:focus-visible { outline: 3px solid var(--pz-teal-100); outline-offset: 2px; }

.pz-btn--navy {
  background: var(--pz-navy-800);
  color: var(--pz-white);
}
.pz-btn--navy:hover { background: var(--pz-navy-900); }

.pz-btn--outline {
  background: var(--pz-white);
  border-color: var(--pz-slate-300);
  color: var(--pz-navy-800);
}
.pz-btn--outline:hover { border-color: var(--pz-teal-600); color: var(--pz-teal-600); }

.pz-btn--ghost {
  background: transparent;
  color: var(--pz-navy-800);
}
.pz-btn--ghost:hover { background: var(--pz-slate-100); }

.pz-btn--sm { padding: 0.55rem 1rem; font-size: var(--pz-text-xs); }
.pz-btn--lg { padding: 1rem 2rem; font-size: var(--pz-text-base); }
.pz-btn--block { display: flex; width: 100%; }

/* ---------- 6. Header ---------- */
.pz-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pz-white);
  border-bottom: 1px solid var(--pz-slate-200);
  box-shadow: 0 2px 12px rgba(15, 36, 64, 0.06);
}
.pz-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 64px;
}

/* Logo */
.pz-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}
.pz-logo__mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
}
.pz-logo__mark svg { width: 100%; height: 100%; display: block; }
.pz-logo__word {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pz-navy-800);
}
.pz-logo__word em { font-style: normal; color: var(--pz-teal-600); }

/* Main nav */
.pz-nav { display: none; align-items: center; gap: 0.25rem; margin-left: 0.5rem; }
.pz-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.8rem;
  font-size: var(--pz-text-sm);
  font-weight: 600;
  color: var(--pz-slate-700);
  text-decoration: none;
  border-radius: var(--pz-radius-md);
  transition: color var(--pz-speed) var(--pz-ease), background var(--pz-speed) var(--pz-ease);
}
.pz-nav__link:hover { color: var(--pz-teal-600); background: var(--pz-teal-50); }
.pz-nav__link--active { color: var(--pz-teal-600); }
.pz-nav__link--active::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 2px;
  height: 2px; border-radius: 2px;
  background: var(--pz-teal-600);
}
.pz-nav__caret { transition: transform var(--pz-speed) var(--pz-ease); }
.pz-nav__link[aria-expanded="true"] .pz-nav__caret { transform: rotate(180deg); }

/* Header right cluster */
.pz-header__actions {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 0.75rem;
}
.pz-header__login {
  font-size: var(--pz-text-sm);
  font-weight: 600;
  color: var(--pz-slate-700);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: var(--pz-radius-md);
}
.pz-header__login:hover { color: var(--pz-teal-600); background: var(--pz-teal-50); }
.pz-header__pricing {
  font-size: var(--pz-text-sm);
  font-weight: 600;
  color: var(--pz-slate-700);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: var(--pz-radius-md);
}
.pz-header__pricing:hover { color: var(--pz-teal-600); background: var(--pz-teal-50); }

/* Hamburger */
.pz-hamburger {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--pz-slate-200);
  border-radius: var(--pz-radius-md);
  cursor: pointer;
}
.pz-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--pz-navy-800);
  border-radius: 2px;
  transition: transform var(--pz-speed) var(--pz-ease), opacity var(--pz-speed) var(--pz-ease);
}
.pz-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pz-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pz-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mega dropdown (desktop) */
.pz-mega {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--pz-white);
  border-bottom: 1px solid var(--pz-slate-200);
  box-shadow: var(--pz-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--pz-speed) var(--pz-ease), transform var(--pz-speed) var(--pz-ease), visibility var(--pz-speed);
}
.pz-mega--open { opacity: 1; visibility: visible; transform: translateY(0); }
.pz-mega__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 1.75rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.pz-mega__col-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--pz-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pz-navy-800);
  margin-bottom: 0.75rem;
}
.pz-mega__col-title .pz-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pz-mega__list { list-style: none; }
.pz-mega__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--pz-radius-md);
  text-decoration: none;
  font-size: var(--pz-text-sm);
  font-weight: 500;
  color: var(--pz-slate-700);
  transition: background var(--pz-speed) var(--pz-ease), color var(--pz-speed) var(--pz-ease);
}
.pz-mega__link:hover { background: var(--pz-teal-50); color: var(--pz-teal-600); }
.pz-mega__link--active { background: var(--pz-teal-50); color: var(--pz-teal-600); font-weight: 700; }
.pz-mega__icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--pz-slate-400);
}
.pz-mega__link:hover .pz-mega__icon { color: var(--pz-teal-600); }

/* Mobile panel */
.pz-mobile {
  display: none;
  border-top: 1px solid var(--pz-slate-200);
  background: var(--pz-white);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.pz-mobile--open { display: block; }
.pz-mobile__group { border-bottom: 1px solid var(--pz-slate-100); }
.pz-mobile__group-title {
  width: 100%;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--pz-font);
  font-size: var(--pz-text-sm); font-weight: 700;
  color: var(--pz-navy-800);
  text-align: left;
}
.pz-mobile__group-title .pz-dot { width: 9px; height: 9px; border-radius: 50%; }
.pz-mobile__group-title .pz-caret { margin-left: auto; transition: transform var(--pz-speed) var(--pz-ease); }
.pz-mobile__group-title[aria-expanded="true"] .pz-caret { transform: rotate(180deg); }
.pz-mobile__list { list-style: none; display: none; padding: 0 0 0.75rem; }
.pz-mobile__group--open .pz-mobile__list { display: block; }
.pz-mobile__link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1.25rem 0.6rem 2.6rem;
  font-size: var(--pz-text-sm);
  color: var(--pz-slate-700);
  text-decoration: none;
}
.pz-mobile__link:hover { color: var(--pz-teal-600); }
.pz-mobile__foot {
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}

@media (min-width: 1024px) {
  .pz-nav { display: flex; }
  .pz-header__actions { display: flex; }
  .pz-hamburger { display: none; }
  .pz-mega__inner { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- 7. Hero ---------- */
.pz-hero {
  background: linear-gradient(135deg, var(--pz-navy-950) 0%, var(--pz-navy-800) 55%, #155e75 100%);
  color: var(--pz-white);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.pz-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 10%, rgba(20, 184, 166, 0.25), transparent 60%);
  pointer-events: none;
}
.pz-hero .pz-h1 { color: var(--pz-white); }
.pz-hero .pz-lead { color: #cbd5e1; max-width: 36rem; }
.pz-hero__inner { position: relative; display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .pz-hero { padding: 5rem 0; }
  .pz-hero__inner { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}

/* ---------- 8. Tool cards / tool grid ---------- */
.pz-toolgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .pz-toolgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pz-toolgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .pz-toolgrid { grid-template-columns: repeat(4, 1fr); } }

.pz-toolcard {
  display: flex; align-items: flex-start; gap: 0.9rem;
  background: var(--pz-white);
  border: 1px solid var(--pz-slate-200);
  border-radius: var(--pz-radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--pz-speed) var(--pz-ease), box-shadow var(--pz-speed) var(--pz-ease), transform var(--pz-speed) var(--pz-ease);
}
.pz-toolcard:hover {
  border-color: var(--pz-teal-500);
  box-shadow: var(--pz-shadow-md);
  transform: translateY(-2px);
}
.pz-toolcard__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--pz-radius-md);
  background: var(--pz-teal-50);
  color: var(--pz-teal-600);
}
.pz-toolcard__icon svg { width: 24px; height: 24px; }
.pz-toolcard__name { font-size: var(--pz-text-base); font-weight: 700; color: var(--pz-navy-800); }
.pz-toolcard__desc { font-size: var(--pz-text-sm); color: var(--pz-slate-500); margin-top: 0.15rem; }

/* ---------- 9. Tool workspace (upload zone, chips, progress, preview) ---------- */
.pz-workspace {
  background: var(--pz-slate-50);
  border: 1px solid var(--pz-slate-200);
  border-radius: var(--pz-radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 768px) { .pz-workspace { padding: 2.5rem; } }

.pz-dropzone {
  border: 2px dashed var(--pz-slate-300);
  border-radius: var(--pz-radius-lg);
  background: var(--pz-white);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--pz-speed) var(--pz-ease), background var(--pz-speed) var(--pz-ease);
}
.pz-dropzone:hover, .pz-dropzone--over {
  border-color: var(--pz-teal-600);
  background: var(--pz-teal-50);
}
.pz-dropzone__icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--pz-teal-50);
  color: var(--pz-teal-600);
}
.pz-dropzone__icon svg { width: 28px; height: 28px; }
.pz-dropzone__title { font-size: var(--pz-text-lg); font-weight: 700; color: var(--pz-navy-800); }
.pz-dropzone__sub { font-size: var(--pz-text-sm); color: var(--pz-slate-500); margin-top: 0.35rem; }
.pz-dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* File chips */
.pz-filelist { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.pz-filechip {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--pz-white);
  border: 1px solid var(--pz-slate-200);
  border-radius: var(--pz-radius-md);
  padding: 0.7rem 0.9rem;
  box-shadow: var(--pz-shadow-sm);
}
.pz-filechip__icon {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--pz-radius-sm);
  background: var(--pz-sky-100);
  color: var(--pz-sky-600);
}
.pz-filechip__icon svg { width: 20px; height: 20px; }
.pz-filechip__name {
  font-size: var(--pz-text-sm); font-weight: 600; color: var(--pz-slate-800);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pz-filechip__meta { font-size: var(--pz-text-xs); color: var(--pz-slate-500); }
.pz-filechip__remove {
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  color: var(--pz-slate-400);
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--pz-radius-sm);
}
.pz-filechip__remove:hover { color: var(--pz-danger); background: var(--pz-slate-100); }

/* Progress */
.pz-progress { margin-top: 1.25rem; }
.pz-progress__label {
  display: flex; justify-content: space-between;
  font-size: var(--pz-text-sm); font-weight: 600; color: var(--pz-navy-800);
  margin-bottom: 0.5rem;
}
.pz-progress__bar {
  height: 10px;
  background: var(--pz-slate-200);
  border-radius: var(--pz-radius-full);
  overflow: hidden;
}
.pz-progress__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--pz-teal-500), var(--pz-sky-600));
  border-radius: var(--pz-radius-full);
  transition: width 300ms var(--pz-ease);
}

/* Preview */
.pz-preview {
  margin-top: 1.25rem;
  background: var(--pz-white);
  border: 1px solid var(--pz-slate-200);
  border-radius: var(--pz-radius-md);
  overflow: hidden;
}
.pz-preview__frame { width: 100%; min-height: 320px; background: var(--pz-slate-100); border: none; }
.pz-preview__bar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--pz-slate-200);
  background: var(--pz-white);
}

/* Status messages */
.pz-status {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--pz-text-sm); font-weight: 500;
  border-radius: var(--pz-radius-md);
  padding: 0.8rem 1rem;
  margin-top: 1rem;
}
.pz-status--success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.pz-status--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.pz-status--info { background: var(--pz-teal-50); color: var(--pz-teal-600); border: 1px solid var(--pz-teal-100); }

/* Privacy badge */
.pz-privacy {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--pz-text-xs); font-weight: 600;
  color: var(--pz-teal-600);
  background: var(--pz-teal-50);
  border: 1px solid var(--pz-teal-100);
  border-radius: var(--pz-radius-full);
  padding: 0.45rem 0.9rem;
}
.pz-privacy svg { width: 14px; height: 14px; }

/* ---------- 10. SEO content ---------- */
/* How-to steps */
.pz-steps { list-style: none; counter-reset: pz-step; display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 768px) { .pz-steps { grid-template-columns: repeat(3, 1fr); } }
.pz-steps__item {
  position: relative;
  background: var(--pz-slate-50);
  border: 1px solid var(--pz-slate-200);
  border-radius: var(--pz-radius-lg);
  padding: 1.5rem 1.25rem 1.25rem 1.25rem;
}
.pz-steps__item::before {
  counter-increment: pz-step;
  content: counter(pz-step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--pz-navy-800);
  color: var(--pz-white);
  font-weight: 800; font-size: var(--pz-text-sm);
  margin-bottom: 0.75rem;
}
.pz-steps__title { font-size: var(--pz-text-base); font-weight: 700; color: var(--pz-navy-800); margin-bottom: 0.25rem; }
.pz-steps__text { font-size: var(--pz-text-sm); color: var(--pz-slate-600); }

/* FAQ accordion */
.pz-faq { margin: 1.5rem 0; display: grid; gap: 0.6rem; }
.pz-faq__item {
  border: 1px solid var(--pz-slate-200);
  border-radius: var(--pz-radius-md);
  background: var(--pz-white);
  overflow: hidden;
}
.pz-faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--pz-font);
  font-size: var(--pz-text-base); font-weight: 600; text-align: left;
  color: var(--pz-navy-800);
}
.pz-faq__q:hover { color: var(--pz-teal-600); }
.pz-faq__chev { flex-shrink: 0; transition: transform var(--pz-speed) var(--pz-ease); color: var(--pz-teal-600); }
.pz-faq__item--open .pz-faq__chev { transform: rotate(180deg); }
.pz-faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height 260ms var(--pz-ease);
}
.pz-faq__a-inner { padding: 0 1.25rem 1.25rem; font-size: var(--pz-text-sm); color: var(--pz-slate-600); }

/* Features grid */
.pz-features { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 640px) { .pz-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pz-features { grid-template-columns: repeat(4, 1fr); } }
.pz-feature {
  background: var(--pz-white);
  border: 1px solid var(--pz-slate-200);
  border-radius: var(--pz-radius-lg);
  padding: 1.5rem 1.25rem;
}
.pz-feature__icon {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--pz-radius-md);
  background: var(--pz-teal-50);
  color: var(--pz-teal-600);
  margin-bottom: 0.85rem;
}
.pz-feature__icon svg { width: 22px; height: 22px; }
.pz-feature__title { font-size: var(--pz-text-base); font-weight: 700; color: var(--pz-navy-800); margin-bottom: 0.3rem; }
.pz-feature__text { font-size: var(--pz-text-sm); color: var(--pz-slate-600); }

/* SEO article body */
.pz-article { max-width: 46rem; margin: 3rem auto; }
.pz-article h2 { margin: 2.25rem 0 1rem; }
.pz-article h3 { margin: 1.75rem 0 0.75rem; }
.pz-article p { margin-bottom: 1rem; color: var(--pz-slate-600); }
.pz-article ul, .pz-article ol { margin: 0 0 1.25rem 1.25rem; color: var(--pz-slate-600); }
.pz-article li { margin-bottom: 0.4rem; }
.pz-section { padding: 3rem 0; }
.pz-section--alt { background: var(--pz-slate-50); }

/* ---------- 11. Forms ---------- */
.pz-field { margin-bottom: 1rem; }
.pz-label { display: block; font-size: var(--pz-text-sm); font-weight: 600; color: var(--pz-navy-800); margin-bottom: 0.4rem; }
.pz-input, .pz-select, .pz-textarea {
  width: 100%;
  font-family: var(--pz-font);
  font-size: var(--pz-text-sm);
  color: var(--pz-slate-800);
  background: var(--pz-white);
  border: 1px solid var(--pz-slate-300);
  border-radius: var(--pz-radius-md);
  padding: 0.7rem 0.9rem;
  transition: border-color var(--pz-speed) var(--pz-ease), box-shadow var(--pz-speed) var(--pz-ease);
}
.pz-input:focus, .pz-select:focus, .pz-textarea:focus {
  outline: none;
  border-color: var(--pz-teal-600);
  box-shadow: 0 0 0 3px var(--pz-teal-100);
}
.pz-range { width: 100%; accent-color: var(--pz-teal-600); }

/* Option chips (e.g. compression levels) */
.pz-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pz-option {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--pz-slate-300);
  border-radius: var(--pz-radius-full);
  padding: 0.55rem 1.1rem;
  font-size: var(--pz-text-sm); font-weight: 600;
  color: var(--pz-slate-700);
  background: var(--pz-white);
  cursor: pointer;
  transition: all var(--pz-speed) var(--pz-ease);
}
.pz-option:hover { border-color: var(--pz-teal-600); }
.pz-option--selected { background: var(--pz-navy-800); border-color: var(--pz-navy-800); color: var(--pz-white); }

/* ---------- 12. Footer ---------- */
.pz-footer {
  background: var(--pz-navy-950);
  color: #cbd5e1;
  padding: 3.5rem 0 0;
  margin-top: 4rem;
}
.pz-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) { .pz-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pz-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; } }

.pz-footer__brand .pz-logo__word { color: var(--pz-white); }
.pz-footer__tag { font-size: var(--pz-text-sm); color: #94a3b8; margin: 0.9rem 0 1.25rem; max-width: 20rem; }
.pz-footer__shield {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--pz-text-xs); font-weight: 600;
  color: var(--pz-teal-500);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: var(--pz-radius-full);
  padding: 0.45rem 0.9rem;
}
.pz-footer__shield svg { width: 14px; height: 14px; }

.pz-footer__title {
  font-size: var(--pz-text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pz-white);
  margin-bottom: 1rem;
}
.pz-footer__list { list-style: none; display: grid; gap: 0.55rem; }
.pz-footer__link {
  font-size: var(--pz-text-sm);
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--pz-speed) var(--pz-ease);
}
.pz-footer__link:hover { color: var(--pz-teal-500); }

.pz-footer__bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: var(--pz-text-xs);
  color: #64748b;
}
@media (min-width: 768px) {
  .pz-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.pz-footer__legal { display: flex; gap: 1.25rem; }
.pz-footer__legal .pz-footer__link { font-size: var(--pz-text-xs); }

/* ---------- 13. Misc ---------- */
.pz-badge {
  display: inline-flex; align-items: center;
  font-size: var(--pz-text-xs); font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--pz-radius-full);
}
.pz-badge--teal { background: var(--pz-teal-100); color: #b9233a; }
.pz-badge--navy { background: #dbe7f7; color: var(--pz-navy-800); }

.pz-divider { border: none; border-top: 1px solid var(--pz-slate-200); margin: 2rem 0; }

.pz-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Skip link */
.pz-skip {
  position: absolute; left: 1rem; top: -100px;
  background: var(--pz-navy-800); color: var(--pz-white);
  padding: 0.6rem 1rem; border-radius: var(--pz-radius-md);
  z-index: 200; text-decoration: none; font-size: var(--pz-text-sm); font-weight: 600;
  transition: top var(--pz-speed) var(--pz-ease);
}
.pz-skip:focus { top: 0.75rem; }

/* Focus visibility everywhere */
.pz-reset a:focus-visible, .pz-reset button:focus-visible {
  outline: 3px solid var(--pz-teal-100);
  outline-offset: 2px;
  border-radius: var(--pz-radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  .pz-reset *, .pz-reset *::before, .pz-reset *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   PDFzelo Critical Fix — Professional Design
   Fixes: body styles, tools grid, modern look
   ============================================================ */

/* Base body - apply to plain body tag */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #0f172a;
  line-height: 1.2;
}

/* Tools grid - professional card layout */
.pz-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 24px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.pz-tool-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  color: inherit;
}

.pz-tool-card:hover {
  border-color: #d9364f;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
  transform: translateY(-2px);
}

.pz-tool-card h3 {
  margin: 12px 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.pz-tool-card p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.pz-tool-card .pz-tool-icon {
  font-size: 32px;
  line-height: 1;
}

/* Main container */
.pz-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px 24px;
}

.pz-main h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 32px 0 12px 0;
}

.pz-lead {
  font-size: 18px;
  color: #475569;
  margin-bottom: 32px;
}

/* Breadcrumb */
.pz-breadcrumb {
  padding: 16px 24px;
  font-size: 14px;
  color: #64748b;
  max-width: 1200px;
  margin: 0 auto;
}

.pz-breadcrumb a {
  color: #d9364f;
  text-decoration: none;
}

.pz-breadcrumb a:hover {
  text-decoration: underline;
}

/* Dropzone - professional */
.pz-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  background: #f8fafc;
  transition: all 0.2s ease;
  cursor: pointer;
  margin: 24px 0;
}

.pz-dropzone:hover, .pz-dropzone--over {
  border-color: #d9364f;
  background: #fff1f3;
}

/* Buttons */
.pz-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pz-btn-primary {
  background: #d9364f;
  color: white;
}

.pz-btn-primary:hover {
  background: #b9233a;
}

/* FAQ */
.pz-faq {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin: 16px 0;
}

.pz-faq h3, .pz-faq h4 {
  margin-top: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .pz-tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .pz-main h1 {
    font-size: 28px;
  }
}

/* ============================================================
   PDFzelo Red Theme — Match /pdf-editor/ design
   Primary: #d9364f (crimson) | Dark: #b9233a | Light: #fff1f3
   ============================================================ */

:root {
  --pz-primary: #d9364f !important;
  --pz-primary-dark: #b9233a !important;
  --pz-primary-light: #fff1f3 !important;
  --pz-teal-600: #d9364f !important;
  --pz-teal-500: #e65a68 !important;
}

/* Override all teal with red */
.pz-btn-primary {
  background: #d9364f !important;
  color: white !important;
}
.pz-btn-primary:hover {
  background: #b9233a !important;
}

.pz-dropzone:hover, .pz-dropzone--over {
  border-color: #d9364f !important;
  background: #fff1f3 !important;
}

.pz-breadcrumb a {
  color: #d9364f !important;
}

.pz-tool-card:hover {
  border-color: #d9364f !important;
  box-shadow: 0 4px 12px rgba(217, 54, 79, 0.15) !important;
}

/* Header - match pdf-editor style */
#pz-header {
  background: white;
  border-bottom: 1px solid #e2e5ea;
  position: sticky;
  top: 0;
  z-index: 100;
}

.pz-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.pz-logo {
  font-size: 20px;
  font-weight: 800;
  color: #20242c;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pz-logo-icon {
  width: 32px;
  height: 32px;
  background: #d9364f;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
}

.pz-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.pz-nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  color: #566171;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}

.pz-nav-link:hover {
  background: #f5f6f8;
  color: #20242c;
}

.pz-nav-cta {
  background: #fff1f3;
  color: #d9364f;
  border: 1px solid #ffd0d8;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.pz-nav-cta:hover {
  background: #d9364f;
  color: white;
}

/* Tools dropdown */
.pz-tools-dropdown {
  position: relative;
}

.pz-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f5f6f8;
  border: none;
  color: #20242c;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.pz-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: white;
  border: 1px solid #e2e5ea;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 24px;
  display: none;
  width: 900px;
  max-width: 90vw;
  z-index: 1000;
}

.pz-tools-dropdown.open .pz-dropdown-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pz-dropdown-cat h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #788494;
  margin: 0 0 12px 0;
}

.pz-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #20242c;
  font-size: 14px;
}

.pz-dropdown-item:hover {
  background: #fff1f3;
}

.pz-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: #fff1f3;
}

/* ============================================================
   PDF-Editor Style Hero — Centered layout matching /pdf-editor/
   ============================================================ */

/* Centered hero like pdf-editor */
.pz-main > h1:first-of-type,
.pz-hero h1 {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  color: #20242c;
  margin: 48px 0 16px 0;
  letter-spacing: -0.5px;
}

.pz-lead,
.pz-main > p:first-of-type {
  text-align: center;
  font-size: 17px;
  color: #566171;
  max-width: 640px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

/* Breadcrumb - subtle, centered like pdf-editor */
.pz-breadcrumb {
  text-align: center;
  padding: 20px 24px 0 24px;
  font-size: 13px;
  color: #788494;
  max-width: 1200px;
  margin: 0 auto;
}

.pz-breadcrumb a {
  color: #566171;
  text-decoration: none;
}

.pz-breadcrumb a:hover {
  color: #d9364f;
  text-decoration: none;
}

/* Dropzone - prominent CTA like pdf-editor Upload button area */
.pz-dropzone {
  border: 2px dashed #e2e5ea;
  border-radius: 16px;
  padding: 56px 32px;
  text-align: center;
  background: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
  margin: 32px auto;
  max-width: 720px;
}

.pz-dropzone:hover,
.pz-dropzone--over {
  border-color: #d9364f;
  background: #fff1f3;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(217, 54, 79, 0.08);
}

/* Primary buttons - pdf-editor red */
.pz-btn-primary,
.pz-btn--primary {
  background: #d9364f !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 36px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  box-shadow: 0 4px 14px rgba(217, 54, 79, 0.25) !important;
  transition: all 0.2s ease !important;
}

.pz-btn-primary:hover,
.pz-btn--primary:hover {
  background: #b9233a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(217, 54, 79, 0.35) !important;
}

/* Action buttons row - centered */
.pz-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}

/* Content sections - clean like pdf-editor */
.pz-main h2 {
  font-size: 28px;
  font-weight: 700;
  color: #20242c;
  margin: 48px 0 16px 0;
  text-align: center;
}

.pz-main h3 {
  font-size: 20px;
  font-weight: 600;
  color: #20242c;
  margin: 32px 0 12px 0;
}

/* FAQ cards - subtle like pdf-editor */
.pz-faq {
  background: #f7f9fc;
  border: 1px solid #e2e5ea;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 16px auto;
  max-width: 800px;
}

.pz-faq h3, .pz-faq h4 {
  margin-top: 0;
  text-align: left;
  font-size: 17px;
}

/* Features grid */
.pz-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px auto;
  max-width: 1000px;
}

.pz-feature {
  text-align: center;
  padding: 24px;
}

.pz-feature h3 {
  font-size: 17px;
  margin: 12px 0 8px 0;
}

.pz-feature p {
  font-size: 14px;
  color: #566171;
  margin: 0;
}

/* Related tools - clean cards */
.pz-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px auto;
  max-width: 1000px;
}

.pz-rel-card {
  display: block;
  padding: 16px 20px;
  border: 1px solid #e2e5ea;
  border-radius: 10px;
  text-decoration: none;
  color: #20242c;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: all 0.15s ease;
  background: #fff;
}

.pz-rel-card:hover {
  border-color: #d9364f;
  color: #d9364f;
  background: #fff1f3;
}

/* Trust badges */
.pz-trust {
  text-align: center;
  color: #788494;
  font-size: 13px;
  margin: 16px 0 32px 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .pz-main > h1:first-of-type,
  .pz-hero h1 {
    font-size: 32px;
    margin: 32px 0 12px 0;
  }
  
  .pz-dropzone {
    padding: 40px 20px;
    margin: 24px 16px;
  }
  
  .pz-main h2 {
    font-size: 24px;
  }
  
  .pz-features {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   PDFzelo MOBILE-FIRST OVERHAUL
   Makes pdfzelo.com feel like a native app on mobile.
   - Touch targets min 44px
   - No horizontal scroll
   - App-like transitions & spacing
   - Responsive typography with clamp()
   ============================================================ */

/* ---------- 1. Base: prevent horizontal scroll, app-like feel ---------- */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  min-width: 0;
  /* Safe-area for notched phones */
  padding-bottom: env(safe-area-inset-bottom, 0);
}
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* ---------- 2. Typography: fluid + readable minimums ---------- */
.pz-main h1,
main h1 {
  font-size: clamp(1.6rem, 6vw, 2.6rem) !important;
  line-height: 1.15 !important;
  margin: 1.25rem 0 0.75rem !important;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  hyphens: auto;
}
.pz-main h2,
main h2 {
  font-size: clamp(1.25rem, 4.5vw, 1.75rem) !important;
  line-height: 1.25 !important;
  margin: 2rem 0 0.75rem !important;
}
.pz-main h3,
main h3 {
  font-size: clamp(1.05rem, 4vw, 1.3rem) !important;
}
.pz-main p, main p,
.pz-lead {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
}
.pz-lead {
  font-size: clamp(1rem, 4vw, 1.15rem) !important;
}

/* ---------- 3. Layout containers: comfortable mobile padding ---------- */
.pz-main,
main {
  padding-left: max(1rem, env(safe-area-inset-left)) !important;
  padding-right: max(1rem, env(safe-area-inset-right)) !important;
  padding-bottom: 5rem !important; /* thumb-reach breathing room */
  width: 100%;
  max-width: 100%;
}
.pz-breadcrumb {
  padding: 0.75rem max(1rem, env(safe-area-inset-left)) !important;
  font-size: 0.8rem !important;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pz-breadcrumb::-webkit-scrollbar { display: none; }

/* ---------- 4. Dropzone: big touch target ---------- */
.pz-dropzone {
  min-height: 200px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  padding: 2rem 1.25rem !important;
  border-width: 2px !important;
  border-radius: 16px !important;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.pz-dropzone:active {
  transform: scale(0.99);
}
.pz-drop-icon {
  font-size: 2.5rem !important;
}
/* Browse button inside dropzone: big tap target */
.pz-browse, .pz-dropzone button, .pz-dropzone .pz-btn {
  min-height: 48px !important;
  padding: 0.75rem 1.75rem !important;
  font-size: 1rem !important;
  border-radius: 12px !important;
}

/* ---------- 5. Buttons: full-width, thumb-friendly on mobile ---------- */
.pz-btn {
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  touch-action: manipulation;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}
.pz-btn:active {
  transform: scale(0.97) !important;
}
/* Action row: stack buttons full-width on small screens */
.pz-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  margin: 1.25rem 0 !important;
}
.pz-actions .pz-btn {
  width: 100% !important;
  margin: 0 !important;
}
/* Two-up on slightly larger phones */
@media (min-width: 480px) {
  .pz-actions {
    flex-direction: row !important;
  }
  .pz-actions .pz-btn {
    width: auto !important;
    flex: 1 !important;
  }
}

/* ---------- 6. File list chips: wrap nicely ---------- */
.pz-files, .pz-filelist {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}
.pz-filechip {
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0.6rem 0.9rem !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  overflow: hidden;
}
.pz-filechip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 7. Progress bar: visible & chunky ---------- */
.pz-progress, .pz-bar {
  height: 10px !important;
  border-radius: 999px !important;
  overflow: hidden;
}
.pz-fill {
  border-radius: 999px !important;
  transition: width 0.3s ease !important;
}

/* ---------- 8. FAQ: accordion, big tap targets ---------- */
.pz-faq {
  border-radius: 14px !important;
  padding: 0 !important;
  overflow: hidden;
}
.pz-faq > div, .pz-faq details {
  border-bottom: 1px solid #e2e8f0;
}
.pz-faq > div:last-child, .pz-faq details:last-child {
  border-bottom: none;
}
.pz-faq h3, .pz-faq h4,
.pz-faq summary {
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  padding: 1rem 1.25rem !important;
  margin: 0 !important;
  font-size: 1rem !important;
  cursor: pointer;
  touch-action: manipulation;
  list-style: none;
}
.pz-faq summary::-webkit-details-marker { display: none; }
.pz-faq p, .pz-faq > div > div {
  padding: 0 1.25rem 1.25rem !important;
  font-size: 0.92rem !important;
  color: #475569;
}

/* ---------- 9. Features grid: 1 col mobile, 2 col small tablet ---------- */
.pz-features {
  grid-template-columns: 1fr !important;
  gap: 0.75rem !important;
}
@media (min-width: 560px) {
  .pz-features { grid-template-columns: repeat(2, 1fr) !important; }
}
.pz-feature {
  padding: 1.1rem !important;
  border-radius: 14px !important;
}

/* ---------- 10. Steps: vertical timeline on mobile ---------- */
.pz-steps {
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

/* ---------- 11. Related tools: 2-col thumb grid ---------- */
.pz-related-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.75rem !important;
}
.pz-rel-card {
  min-height: 88px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 0.9rem !important;
  border-radius: 12px !important;
  font-size: 0.88rem !important;
  text-decoration: none;
  touch-action: manipulation;
}
.pz-rel-card:active { transform: scale(0.97); }
@media (min-width: 640px) {
  .pz-related-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ---------- 12. Tools index grid: 2 cols mobile ---------- */
.pz-tools-grid, .pz-toolgrid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.75rem !important;
  padding: 1rem 0 !important;
}
.pz-tool-card {
  padding: 1rem !important;
  border-radius: 14px !important;
  min-height: 120px !important;
}
.pz-tool-card h3 {
  font-size: 0.92rem !important;
  margin: 0.6rem 0 0.3rem !important;
  line-height: 1.3 !important;
}
.pz-tool-card p {
  display: none; /* hide descriptions on small screens for density */
}
@media (min-width: 560px) {
  .pz-tool-card p { display: block; }
}
@media (min-width: 768px) {
  .pz-tools-grid, .pz-toolgrid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (min-width: 1024px) {
  .pz-tools-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .pz-toolgrid { grid-template-columns: repeat(4, 1fr) !important; }
}

/* ---------- 13. HEADER: mobile-first navigation ---------- */
.pz-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  /* extend into notch */
  padding-top: env(safe-area-inset-top, 0);
}
.pz-header__inner, .pz-container.pz-header__inner {
  min-height: 60px !important;
  padding: 0.6rem max(1rem, env(safe-area-inset-left)) !important;
  gap: 0.75rem !important;
}
/* Hide desktop nav + actions on mobile */
@media (max-width: 1023.98px) {
  .pz-nav { display: none !important; }
  .pz-header__actions { display: none !important; }
  .pz-mega { display: none !important; }
  .pz-hamburger { display: flex !important; }
}
.pz-hamburger {
  min-width: 48px !important;
  min-height: 48px !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  margin-left: auto;
  touch-action: manipulation;
}
.pz-hamburger:active { background: #f1f5f9; }

/* Mobile drawer: slide-in from right, app-like */
.pz-mobile {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(88vw, 380px) !important;
  max-height: none !important;
  height: 100dvh !important;
  background: #fff !important;
  z-index: 1200 !important;
  border-top: none !important;
  border-left: 1px solid #e2e8f0 !important;
  box-shadow: -12px 0 40px rgba(0,0,0,0.12) !important;
  transform: translateX(105%) !important;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1) !important;
  display: block !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top, 0) !important;
  padding-bottom: env(safe-area-inset-bottom, 0) !important;
}
.pz-mobile--open {
  transform: translateX(0) !important;
}
/* Scrim behind drawer */
.pz-mobile-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.pz-mobile-scrim--show {
  opacity: 1;
  pointer-events: auto;
}
/* Drawer header */
.pz-mobile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.pz-mobile__close {
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: #f1f5f9;
  border-radius: 12px;
  font-size: 1.25rem;
  cursor: pointer;
  touch-action: manipulation;
}
/* Bigger tap targets in drawer */
.pz-mobile__group-title {
  min-height: 52px !important;
  font-size: 1rem !important;
  padding: 0.9rem 1.25rem !important;
  touch-action: manipulation;
}
.pz-mobile__link {
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  font-size: 0.95rem !important;
  padding: 0.7rem 1.25rem 0.7rem 2.5rem !important;
  touch-action: manipulation;
}
.pz-mobile__link:active { background: #fff1f3; }
.pz-mobile__foot {
  padding: 1.25rem !important;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0)) !important;
}
.pz-mobile__foot .pz-btn {
  width: 100% !important;
  min-height: 52px !important;
}

/* Desktop: hide hamburger, show nav */
@media (min-width: 1024px) {
  .pz-mobile, .pz-mobile-scrim { display: none !important; }
}

/* ---------- 14. Options form controls: thumb-friendly ---------- */
.pz-options label, .pz-field label {
  font-size: 0.92rem !important;
  margin-bottom: 0.4rem !important;
  display: block;
}
.pz-options input[type="text"],
.pz-options input[type="number"],
.pz-options select,
.pz-field input, .pz-field select {
  min-height: 48px !important;
  font-size: 1rem !important; /* prevents iOS zoom */
  border-radius: 12px !important;
  padding: 0.7rem 1rem !important;
  width: 100%;
}
.pz-options input[type="checkbox"],
.pz-options input[type="radio"] {
  width: 24px !important;
  height: 24px !important;
  accent-color: #d9364f;
}
.pz-options .pz-field,
.pz-field {
  margin-bottom: 1rem !important;
}

/* ---------- 15. Result/download area ---------- */
.pz-result {
  border-radius: 16px !important;
  padding: 1.25rem !important;
  margin: 1.25rem 0 !important;
}
.pz-result .pz-btn {
  width: 100% !important;
  min-height: 54px !important;
  font-size: 1.05rem !important;
}

/* ---------- 16. Sticky bottom action bar (app-like) ---------- */
@media (max-width: 768px) {
  .pz-actions--sticky {
    position: sticky;
    bottom: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem max(1rem, env(safe-area-inset-left));
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    margin: 0 calc(-1 * max(1rem, env(safe-area-inset-left))) !important;
    border-top: 1px solid #e2e8f0;
    z-index: 50;
  }
}

/* ---------- 17. Footer: compact on mobile ---------- */
.pz-footer__grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem !important;
}
@media (min-width: 768px) {
  .pz-footer__grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---------- 18. Tables: scroll containers ---------- */
.pz-main table, main table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* ---------- 19. Long URLs / code: wrap ---------- */
.pz-main a, main a {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ---------- 20. Reduced motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 21. Landscape phones: tighten hero ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .pz-dropzone { min-height: 140px !important; padding: 1.25rem !important; }
  .pz-main h1 { margin-top: 0.75rem !important; }
}

/* === Mobile Drawer Navigation === */
@media (max-width: 1023px) {
  .pz-nav { display: none !important; }
  .pz-hamburger { display: flex !important; }
  
  .pz-mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 88vw;
    max-width: 380px;
    height: 100dvh;
    background: #fff;
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
  }
  .pz-mobile-drawer.open { right: 0; }
  
  .pz-drawer-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .pz-drawer-scrim.open { opacity: 1; pointer-events: auto; }
  
  .pz-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e5ea;
    position: sticky;
    top: 0;
    background: #fff;
  }
  .pz-drawer-close {
    width: 44px;
    height: 44px;
    border: none;
    background: #f5f6f8;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
  }
  .pz-drawer-cat { border-bottom: 1px solid #f1f5f9; }
  .pz-drawer-cat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #20242c;
    cursor: pointer;
    min-height: 56px;
  }
  .pz-drawer-tools {
    display: none;
    padding: 0 20px 12px 20px;
  }
  .pz-drawer-cat.expanded .pz-drawer-tools { display: block; }
  .pz-drawer-tool {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
    color: #20242c;
    font-size: 15px;
    min-height: 48px;
  }
  
  /* Tool pages mobile */
  .pz-main { padding: 0 16px 32px 16px !important; }
  .pz-main h1 { font-size: 28px !important; }
  .pz-dropzone { padding: 32px 16px !important; }
  .pz-btn { width: 100%; margin-bottom: 8px; }
  body { overflow-x: hidden; }
}
