/* =========================================
   PDFPace — Design System
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── TOKENS ──────────────────────────────── */
:root {
  /* Brand */
  --red:        #E8001D;
  --red-dark:   #C0001A;
  --red-mid:    #FF1F3A;
  --red-light:  #FFF5F6;
  --red-lighter:#FFECEE;

  /* Neutrals */
  --ink:        #111827;
  --text:       #333333;
  --muted:      #777777;
  --light:      #AAAAAA;
  --border:     #E8E8E8;
  --bg:         #F7F7F7;
  --white:      #FFFFFF;

  /* Tool palette */
  --c-merge:     #4285F4; --bg-merge:     #EAF1FF;
  --c-split:     #F4A400; --bg-split:     #FFF8E6;
  --c-compress:  #0F9D58; --bg-compress:  #E6F4ED;
  --c-rotate:    #7B1FA2; --bg-rotate:    #F5EBF9;
  --c-watermark: #00897B; --bg-watermark: #E0F5F2;
  --c-pagenums:  #D84315; --bg-pagenums:  #FBE9E7;
  --c-pdf-jpg:   #FB8C00; --bg-pdf-jpg:   #FFF3E0;
  --c-jpg-pdf:   #8E24AA; --bg-jpg-pdf:   #F3E5F5;
  --c-word-pdf:  #1A73E8; --bg-word-pdf:  #E8F0FE;
  --c-organize:  #039BE5; --bg-organize:  #E1F5FE;
  --c-protect:   #B71C1C; --bg-protect:   #FFEBEE;
  --c-unlock:    #E65100; --bg-unlock:    #FFF3E0;

  /* Spacing / Radius / Shadow */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 9999px;

  --sh-xs: 0 1px 3px rgba(0,0,0,.06);
  --sh-sm: 0 2px 8px rgba(0,0,0,.08);
  --sh:    0 4px 16px rgba(0,0,0,.10);
  --sh-lg: 0 8px 32px rgba(0,0,0,.14);
  --sh-xl: 0 16px 48px rgba(0,0,0,.16);
  --sh-red:0 6px 20px rgba(232,0,29,.30);

  --transition: all .18s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ───────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  font-size:15px;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--red);text-decoration:none;transition:var(--transition)}
a:hover{color:var(--red-dark)}
img{max-width:100%;display:block}
button{font-family:inherit;cursor:pointer}

/* ── HEADER ──────────────────────────────── */
.site-header{
  background:var(--white);
  border-bottom:1px solid var(--border);
  height:62px;
  position:sticky;
  top:0;
  z-index:300;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.header-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
  height:100%;
  display:flex;
  align-items:center;
  gap:20px;
}

/* Logo */
.logo{
  display:flex;
  align-items:center;
  gap:9px;
  font-weight:800;
  font-size:1.19rem;
  color:var(--ink);
  letter-spacing:-.03em;
  flex-shrink:0;
}
.logo-icon{
  width:36px;
  height:36px;
  background:var(--red);
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:13px;
  font-weight:900;
  letter-spacing:-.04em;
  line-height:1;
}
.logo em{font-style:normal;color:var(--red)}

/* Logo tools-count pill */
.logo-pill{
  display:inline-flex;
  align-items:center;
  background:var(--red-lighter);
  color:var(--red);
  font-size:.65rem;
  font-weight:700;
  letter-spacing:.02em;
  padding:2px 8px;
  border-radius:var(--r-full);
  line-height:1.5;
  margin-left:2px;
  flex-shrink:0;
}

/* Nav */
/* ── HEADER NAV & MEGA MENU ──────────────── */
.header-nav{display:flex;align-items:center;gap:2px;flex:1}
.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}

.btn-outline-red{padding:7px 18px;border:1.5px solid var(--red);border-radius:var(--r-full);color:var(--red);font-size:.82rem;font-weight:600;background:none;transition:var(--transition)}
.btn-outline-red:hover{background:var(--red);color:white}
.btn-red{padding:8px 20px;background:var(--red);border:1.5px solid var(--red);border-radius:var(--r-full);color:white;font-size:.82rem;font-weight:600;transition:var(--transition);box-shadow:0 2px 8px rgba(232,0,29,.25)}
.btn-red:hover{background:var(--red-dark);border-color:var(--red-dark);box-shadow:0 4px 14px rgba(232,0,29,.35)}

/* Mega trigger button */
.mega-item{position:relative}
.mega-trigger{display:flex;align-items:center;gap:5px;padding:6px 13px;border-radius:var(--r-sm);color:var(--muted);font-size:.84rem;font-weight:500;background:none;border:none;cursor:pointer;transition:var(--transition);white-space:nowrap}
.mega-trigger:hover,.mega-item.open .mega-trigger{color:var(--ink);background:#F3F4F6}
.mega-item.open .mega-trigger{color:var(--red);background:var(--red-lighter)}
.mm-chevron{transition:transform .2s;flex-shrink:0}
.mega-item.open .mm-chevron{transform:rotate(180deg)}

/* Mega panel */
.mega-panel{display:none;position:fixed;top:62px;left:0;right:0;z-index:400;padding:0 24px}
.mega-item.open .mega-panel{display:block}
.mega-panel-inner{max-width:1200px;margin:0 auto;background:#fff;border:1px solid #e8e8e8;border-top:none;border-radius:0 0 16px 16px;box-shadow:0 16px 40px rgba(0,0,0,.12);overflow:hidden}

/* Mega header row */
.mm-header{display:flex;align-items:center;gap:12px;padding:16px 24px;border-bottom:1px solid #f0f0f0;background:#fafafa}
.mm-cat-icon{font-size:1.6rem}
.mm-header strong{display:block;font-size:1rem;font-weight:700;color:#111}
.mm-header span{font-size:.8rem;color:#999}
.mm-see-all{margin-left:auto;font-size:.85rem;font-weight:600;color:var(--red);text-decoration:none;padding:6px 14px;border-radius:20px;border:1.5px solid var(--red);transition:.2s;white-space:nowrap}
.mm-see-all:hover{background:var(--red);color:#fff}

/* Tool grid inside panel */
.mm-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:12px}
.mm-tool{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;text-decoration:none;color:var(--text);transition:background .15s;position:relative}
.mm-tool:hover{background:#f5f5f5}
.mm-ico{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0}
.mm-info{flex:1;min-width:0}
.mm-name{display:block;font-size:.85rem;font-weight:600;color:#222;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-desc{display:block;font-size:.75rem;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-badge{position:absolute;top:8px;right:8px;font-size:.65rem;font-weight:700;padding:2px 6px;border-radius:8px;background:#fff0f0;color:var(--red)}

/* Overlay */
.mega-overlay{display:none;position:fixed;inset:62px 0 0 0;z-index:399;background:rgba(0,0,0,.25)}
.mega-overlay.visible{display:block}

/* Hamburger */
.hamburger{display:none;background:none;border:1px solid var(--border);border-radius:var(--r-sm);width:36px;height:36px;align-items:center;justify-content:center;color:var(--text);font-size:1rem;transition:var(--transition)}
.hamburger:hover{background:var(--bg)}

/* ── MOBILE NAV ───────────────────────────── */
.mobile-nav{display:none;position:fixed;top:62px;left:0;right:0;bottom:0;background:#fff;z-index:500;overflow-y:auto;border-top:1px solid #eee}
.mobile-nav.open{display:block}
.mob-nav-inner{padding:12px 16px 40px}
.mob-cat{border-bottom:1px solid #f0f0f0}
.mob-cat-btn{width:100%;display:flex;align-items:center;justify-content:space-between;padding:14px 4px;background:none;border:none;font-size:.95rem;font-weight:700;color:#222;cursor:pointer;text-align:left}
.mob-cat-btn.open svg{transform:rotate(180deg)}
.mob-cat-btn svg{transition:transform .2s;flex-shrink:0}
.mob-cat-tools{display:none;flex-direction:column;gap:2px;padding-bottom:8px}
.mob-cat-tools.open{display:flex}
.mob-tool-link{display:flex;align-items:center;gap:10px;padding:9px 12px;font-size:.88rem;color:#444;border-radius:8px;text-decoration:none;transition:background .15s}
.mob-tool-link:hover{background:#f5f5f5;color:var(--red)}

/* ── AD ZONES ────────────────────────────── */
.ad-zone{
  background:#F0F0F0;
  border:1.5px dashed #D0D0D0;
  border-radius:var(--r);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  color:#AAAAAA;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  position:relative;
  overflow:hidden;
}
.ad-zone ins{display:block!important;width:100%;height:100%}

.ad-728x90{height:90px;width:100%;max-width:728px;margin:0 auto}
.ad-300x250{width:300px;height:250px;flex-shrink:0;}
.ad-300x600{width:300px;height:600px;flex-shrink:0;}
.ad-320x50{height:50px;width:320px;max-width:100%;}

/* ad placeholder styling (dev mode) */
.ad-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;height:100%;}
.ad-ph-icon{font-size:1.4rem;}
.ad-ph-lbl{font-size:.65rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#AAA;}
.ad-ph-hint{font-size:.6rem;color:#CCC;}

.ad-label{
  font-size:.68rem;
  color:#BBBBBB;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:600;
  text-align:center;
  margin-bottom:5px;
}

/* ── PAIR OF 300×250 ADS (between sections) ── */
.ad-rect-strip{
  background:#fafafa;
  border-top:1px solid #f0f0f0;
  border-bottom:1px solid #f0f0f0;
  padding:24px 16px;
}
.ad-rect-pair{
  display:flex;
  justify-content:center;
  gap:32px;
  flex-wrap:wrap;
}
.ad-rect-unit{
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* ── STICKY MOBILE BOTTOM AD ─────────────── */
.ad-sticky-mobile{
  display:none;
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  z-index:9999;
  background:#fff;
  border-top:1.5px solid #e0e0e0;
  padding:6px 12px 10px;
  text-align:center;
  box-shadow:0 -2px 12px rgba(0,0,0,.12);
}
.ad-sticky-close{
  position:absolute;
  top:6px;right:8px;
  background:none;border:none;
  font-size:.9rem;color:#aaa;cursor:pointer;
  line-height:1;padding:2px 5px;
}
.ad-sticky-close:hover{color:#E8001D;}
@media(max-width:768px){
  .ad-sticky-mobile{display:block;}
}

/* ── RESULT AREA AD ──────────────────────── */
.ad-result-wrap{
  margin-top:24px;
  padding-top:20px;
  border-top:1.5px dashed #f0f0f0;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* ── SIDEBAR AD ON TOOL PAGES ────────────── */
.tool-main-outer{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:24px;
  padding:0 24px;
  max-width:1260px;
  margin:0 auto;
  box-sizing:border-box;
}
.ad-sidebar-wrap{
  display:none;
  flex:0 0 300px;
  width:300px;
}
.ad-sidebar-sticky{
  position:sticky;
  top:90px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
@media(min-width:1280px){
  .ad-sidebar-wrap{display:block;}
}

/* ── FOOTER AD BOX ───────────────────────── */
.footer-ad-box{
  margin-top:20px;
}
@media(max-width:768px){
  .footer-ad-box{display:none;}
  .ad-rect-strip{display:none;}
}

/* ── HOMEPAGE HERO ───────────────────────── */
.home-hero{
  background:linear-gradient(160deg,#ffffff 0%,#fff5f5 45%,#ffffff 100%);
  padding:80px 24px 64px;
  text-align:center;
  border-bottom:1px solid var(--border);
  position:relative;
  overflow:hidden;
}

/* Radial glow from top */
.home-hero::before{
  content:'';
  position:absolute;
  top:-80px;
  left:50%;
  transform:translateX(-50%);
  width:700px;
  height:500px;
  background:radial-gradient(ellipse at center,rgba(232,0,29,.08) 0%,transparent 70%);
  pointer-events:none;
}

/* Hero badge chip */
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--red);
  color:white;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.04em;
  padding:5px 14px;
  border-radius:var(--r-full);
  margin-bottom:18px;
  position:relative;
  z-index:1;
}
.hero-badge::before{
  content:'';
  display:inline-block;
  width:6px;
  height:6px;
  background:rgba(255,255,255,.7);
  border-radius:50%;
}

.home-hero h1{
  font-size:clamp(2rem,5vw,3.2rem);
  font-weight:800;
  color:var(--ink);
  letter-spacing:-.04em;
  line-height:1.15;
  margin-bottom:16px;
  position:relative;
  z-index:1;
}
.home-hero h1 span{color:var(--red)}
.home-hero p{
  font-size:1.05rem;
  color:var(--muted);
  max-width:520px;
  margin:0 auto 28px;
  line-height:1.75;
  position:relative;
  z-index:1;
}

/* Hero trust pills */
.hero-pills{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom:36px;
  position:relative;
  z-index:1;
}
.hero-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 16px;
  border-radius:var(--r-full);
  border:1px solid var(--border);
  background:var(--white);
  font-size:.8rem;
  font-weight:500;
  color:var(--muted);
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.hero-pill::before{
  content:'✓';
  color:#10B981;
  font-weight:700;
  font-size:.78rem;
}

/* Hero stats strip */
.hero-stats{
  display:flex;
  max-width:580px;
  margin:0 auto;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 2px 12px rgba(0,0,0,.07);
  position:relative;
  z-index:1;
}
.hero-stat{
  flex:1;
  padding:18px 12px;
  border-right:1px solid var(--border);
  text-align:center;
}
.hero-stat:last-child{border-right:none}
.hero-stat-num{
  font-size:1.5rem;
  font-weight:800;
  color:var(--red);
  letter-spacing:-.03em;
  line-height:1;
  margin-bottom:4px;
}
.hero-stat-label{
  font-size:.72rem;
  color:#888888;
  font-weight:500;
  line-height:1.3;
}

/* ── TRUST STRIP ─────────────────────────── */
.trust-strip{
  background:var(--white);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:16px 24px;
  display:flex;
  justify-content:center;
  gap:40px;
  flex-wrap:wrap;
}
.trust-item{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:.83rem;
  color:#555555;
  font-weight:500;
}
.trust-item .ti-icon{
  font-size:1rem;
  line-height:1;
}

/* ── CATEGORY TABS ───────────────────────── */
.cat-bar{
  background:var(--white);
  border-bottom:1px solid var(--border);
  padding:12px 24px;
  position:sticky;
  top:62px;
  z-index:200;
}
.cat-bar-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  gap:8px;
  overflow-x:auto;
  scrollbar-width:none;
  align-items:center;
}
.cat-bar-inner::-webkit-scrollbar{display:none}
.cat-btn{
  padding:8px 22px;
  border-radius:99px;
  border:1.5px solid var(--border);
  background:white;
  color:#555555;
  font-size:.83rem;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
  transition:var(--transition);
  line-height:1;
}
.cat-btn:hover{background:#f5f5f5;border-color:#cccccc;color:var(--ink)}
.cat-btn.active{background:var(--red);border-color:var(--red);color:white;box-shadow:0 2px 8px rgba(232,0,29,.25)}

/* ── TOOLS GRID ──────────────────────────── */
.tools-section{
  max-width:1200px;
  margin:0 auto;
  padding:40px 24px 20px;
}
.tools-section+.tools-section{padding-top:0}

.group-label{
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--light);
  margin-bottom:16px;
  margin-top:8px;
  display:flex;
  align-items:center;
  gap:8px;
}
/* Subtle separator — lighter than before */
.group-label::after{content:'';flex:1;height:1px;background:#F0F0F0}

.tools-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:16px;
  margin-bottom:32px;
}

/* Tool card */
.tool-card{
  background:var(--white);
  border-radius:var(--r-lg);
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  border:1.5px solid var(--border);
  transition:var(--transition);
  display:block;
  text-decoration:none;
  position:relative;
}
.tool-card:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 36px rgba(0,0,0,.13);
  border-color:transparent;
}
.tool-card:hover .tc-icon-wrap{filter:brightness(.97)}

.tc-icon-wrap{
  height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:var(--transition);
  position:relative;
}

.tc-ico{
  width:60px;
  height:60px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  background:rgba(255,255,255,.6);
  backdrop-filter:blur(4px);
}
/* Lucide SVG inside tc-ico inherits the color */
.tc-ico svg,.tc-ico i[data-lucide]{
  width:32px;height:32px;
  stroke:currentColor;
  stroke-width:1.75;
  fill:none;
  display:block;
}

/* Badge inside icon area */
.tc-badge{
  position:absolute;
  top:8px;
  right:8px;
  font-size:.6rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:3px 8px;
  border-radius:var(--r-full);
  line-height:1.4;
}
.tc-badge-hot{background:#FFF3CD;color:#856404}
.tc-badge-new{background:#D1FAE5;color:#065F46}
/* legacy aliases */
.tc-pop{background:#FFF3CD;color:#856404;position:absolute;top:8px;right:8px;font-size:.58rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:3px 8px;border-radius:var(--r-full)}
.tc-new{background:#D1FAE5;color:#065F46;position:absolute;top:8px;right:8px;font-size:.58rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:3px 8px;border-radius:var(--r-full)}

.tc-body{padding:14px 16px 20px}
.tc-body h3{
  font-size:.9rem;
  font-weight:700;
  color:var(--ink);
  margin-bottom:5px;
  letter-spacing:-.01em;
}
.tc-body p{
  font-size:.76rem;
  color:var(--muted);
  line-height:1.5;
}

/* ── AD STRIP (between sections) ─────────── */
.ad-strip{
  background:var(--white);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:20px 24px;
  text-align:center;
}

/* ── FEATURES SECTION ────────────────────── */
.features-section{
  background:var(--white);
  border-top:1px solid var(--border);
  padding:72px 24px;
}
.features-inner{max-width:1200px;margin:0 auto}

.section-eyebrow{
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--red);
  text-align:center;
  margin-bottom:10px;
}
.section-heading{
  font-size:clamp(1.6rem,3vw,2.1rem);
  font-weight:800;
  text-align:center;
  letter-spacing:-.03em;
  color:var(--ink);
  margin-bottom:10px;
}
.section-sub{
  text-align:center;
  color:var(--muted);
  font-size:.92rem;
  max-width:500px;
  margin:0 auto 52px;
  line-height:1.75;
}

.features-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
}
.feat-card{
  padding:28px 24px;
  border:1.5px solid var(--border);
  border-radius:var(--r-lg);
  background:var(--white);
  transition:var(--transition);
  border-left:3px solid var(--red);
}
.feat-card:hover{
  box-shadow:0 6px 24px rgba(0,0,0,.09);
  transform:translateY(-3px);
  border-color:var(--red);
}
.feat-icon{
  width:48px;height:48px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;
  margin-bottom:16px;
  background:var(--red-lighter);
}
.feat-card h3{font-size:1rem;font-weight:700;margin-bottom:8px;color:var(--ink);letter-spacing:-.01em}
.feat-card p{font-size:.86rem;color:var(--muted);line-height:1.7}

/* ── FOOTER ──────────────────────────────── */
.site-footer{background:#111827;color:#8899AA}

.footer-top{
  max-width:1200px;
  margin:0 auto;
  padding:60px 24px 48px;
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:48px;
}
.footer-brand .logo{color:white;margin-bottom:14px}
.footer-brand .logo em{color:#FF6B7A}
.footer-brand p{font-size:.82rem;line-height:1.8;max-width:270px;color:#6B7280}

.footer-col h4{
  font-size:.71rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#D1D5DB;
  margin-bottom:16px;
}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:10px}
.footer-col a{font-size:.83rem;color:#6B7280;transition:var(--transition)}
.footer-col a:hover{color:white}

.footer-bottom{
  border-top:1px solid #1F2937;
  padding:18px 24px;
}
.footer-bottom-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}
.footer-bottom p{font-size:.75rem;color:#4B5563}
.footer-badges{display:flex;gap:8px}
.f-badge{
  background:#1F2937;
  color:#6B7280;
  font-size:.68rem;
  font-weight:600;
  padding:4px 10px;
  border-radius:6px;
  display:flex;
  align-items:center;
  gap:4px;
}

/* ═══════════════════════════════════════════
   TOOL PAGE STYLES
═══════════════════════════════════════════ */

/* Tool page body has light bg */
.tool-body{background:var(--bg)}

/* Tool hero banner — horizontal on desktop */
.tool-hero{
  background:var(--white);
  border-bottom:1px solid var(--border);
  padding:32px 24px 28px;
}
.tool-hero-inner{
  max-width:920px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:20px;
}
.tool-hero-icon{
  width:64px;
  height:64px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  box-shadow:var(--sh);
  flex-shrink:0;
}
.tool-hero-icon svg,.tool-hero-icon i[data-lucide]{
  width:36px;height:36px;
  stroke:currentColor;
  stroke-width:1.75;
  fill:none;
  display:block;
}
.tool-hero-text{text-align:left}
.tool-hero h1{
  font-size:clamp(1.4rem,2.5vw,1.9rem);
  font-weight:800;
  color:var(--ink);
  letter-spacing:-.03em;
  line-height:1.2;
  margin-bottom:4px;
}
.tool-hero p{
  font-size:.88rem;
  color:var(--muted);
  max-width:500px;
  line-height:1.65;
}

/* Main work area */
.tool-main{
  flex:1;
  min-width:0;
  max-width:920px;
  padding:28px 24px 60px;
  margin:0 auto;
}
/* Inside flex outer wrapper, padding is on outer; override margin */
.tool-main-outer > .tool-main{
  margin:0;
  padding:28px 0 60px;
}

/* Breadcrumb */
.breadcrumb{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:.77rem;
  color:var(--light);
  margin-bottom:20px;
  flex-wrap:wrap;
}
.breadcrumb a{
  color:var(--muted);
  font-weight:500;
  transition:var(--transition);
}
.breadcrumb a:hover{color:var(--red)}
.breadcrumb .sep{color:var(--border)}
.breadcrumb .current{color:var(--text);font-weight:600}

/* ── UPLOAD ZONE ─────────────────────────── */
.upload-zone{
  background:var(--white);
  border:2px dashed #CCCCCC;
  border-radius:var(--r-xl);
  padding:60px 40px;
  text-align:center;
  cursor:pointer;
  transition:var(--transition);
  position:relative;
}
.upload-zone:hover,.upload-zone.dragover{
  border-color:var(--red);
  background:#FFFBFB;
}
.upload-zone.dragover{
  transform:scale(1.005);
  box-shadow:0 0 0 6px rgba(232,0,29,.06);
}

.upload-cloud{
  width:72px;
  height:72px;
  margin:0 auto 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
/* Styled cloud shape */
.upload-cloud-svg{
  width:64px;
  height:48px;
  background:#E8E8E8;
  border-radius:50px;
  position:relative;
  transition:var(--transition);
}
.upload-cloud-svg::before{
  content:'';
  position:absolute;
  top:-16px;
  left:10px;
  width:28px;
  height:28px;
  background:#E8E8E8;
  border-radius:50%;
}
.upload-cloud-svg::after{
  content:'';
  position:absolute;
  top:-8px;
  right:6px;
  width:22px;
  height:22px;
  background:#E8E8E8;
  border-radius:50%;
}
.upload-zone:hover .upload-cloud-svg,
.upload-zone.dragover .upload-cloud-svg{background:rgba(232,0,29,.12)}
.upload-zone:hover .upload-cloud-svg::before,
.upload-zone:hover .upload-cloud-svg::after,
.upload-zone.dragover .upload-cloud-svg::before,
.upload-zone.dragover .upload-cloud-svg::after{background:rgba(232,0,29,.12)}

.upload-zone h2{
  font-size:1.15rem;
  font-weight:700;
  color:var(--ink);
  margin-bottom:6px;
}
.upload-zone .uz-sub{
  font-size:.87rem;
  color:var(--muted);
  margin-bottom:24px;
}
#file-input{display:none}

.btn-select{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--red);
  color:white;
  padding:13px 32px;
  border-radius:var(--r-full);
  font-size:.97rem;
  font-weight:700;
  border:none;
  cursor:pointer;
  transition:var(--transition);
  box-shadow:var(--sh-red);
  letter-spacing:-.01em;
}
.btn-select:hover{background:var(--red-dark);transform:translateY(-2px);box-shadow:0 8px 24px rgba(232,0,29,.35)}

.uz-or{
  margin:18px 0 14px;
  font-size:.8rem;
  color:var(--light);
  text-transform:uppercase;
  letter-spacing:.06em;
}
.cloud-icons{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.cloud-btn{
  display:flex;
  align-items:center;
  gap:6px;
  background:var(--white);
  border:1.5px solid var(--border);
  border-radius:var(--r-full);
  padding:7px 16px;
  font-size:.8rem;
  font-weight:500;
  color:var(--muted);
  cursor:pointer;
  transition:var(--transition);
}
.cloud-btn:hover{border-color:var(--red);color:var(--red)}
.uz-formats{
  margin-top:16px;
  font-size:.75rem;
  color:var(--light);
}

/* ── FILE THUMBNAILS ─────────────────────── */
.file-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:14px;
  margin-top:20px;
}
.file-thumb{
  background:var(--white);
  border:1.5px solid var(--border);
  border-radius:var(--r);
  overflow:hidden;
  position:relative;
  cursor:grab;
  transition:var(--transition);
  animation:thumbIn .2s ease;
}
@keyframes thumbIn{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
.file-thumb:hover{border-color:var(--red);box-shadow:var(--sh)}
.file-thumb.dragging{opacity:.5;border-style:dashed}

.thumb-canvas-wrap{
  width:100%;
  aspect-ratio:3/4;
  background:#F5F5F5;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position:relative;
}
.thumb-canvas-wrap canvas{width:100%!important;height:auto!important}
.thumb-placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  height:100%;
  color:var(--light);
  font-size:2rem;
}
.thumb-canvas-wrap .thumb-overlay{
  position:absolute;
  inset:0;
  background:rgba(232,0,29,.0);
  transition:var(--transition);
}
.file-thumb:hover .thumb-overlay{background:rgba(232,0,29,.04)}

.thumb-info{padding:8px 10px}
.thumb-name{
  font-size:.72rem;
  font-weight:600;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.thumb-size{font-size:.68rem;color:var(--light);margin-top:2px}

.thumb-del{
  position:absolute;
  top:6px;
  right:6px;
  width:22px;
  height:22px;
  background:rgba(0,0,0,.55);
  border:none;
  border-radius:50%;
  color:white;
  font-size:.7rem;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  transition:var(--transition);
}
.file-thumb:hover .thumb-del{opacity:1}
.thumb-del:hover{background:var(--red)}

.thumb-num{
  position:absolute;
  top:6px;
  left:6px;
  background:rgba(0,0,0,.55);
  color:white;
  font-size:.65rem;
  font-weight:700;
  padding:2px 6px;
  border-radius:4px;
  line-height:1.4;
}

/* Add-more button in file grid */
.add-more-thumb{
  background:var(--bg);
  border:2px dashed var(--border);
  border-radius:var(--r);
  aspect-ratio:3/4;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
  transition:var(--transition);
  color:var(--light);
  font-size:.8rem;
  font-weight:600;
}
.add-more-thumb:hover{border-color:var(--red);color:var(--red)}
.add-more-thumb .plus{font-size:1.8rem;font-weight:300}

/* ── OPTIONS PANEL ───────────────────────── */
.options-card{
  background:var(--white);
  border:1.5px solid var(--border);
  border-radius:var(--r-lg);
  padding:22px 24px;
  margin-top:20px;
}
.options-title{
  font-size:.87rem;
  font-weight:700;
  color:var(--ink);
  margin-bottom:18px;
  display:flex;
  align-items:center;
  gap:8px;
  padding-bottom:14px;
  border-bottom:1px solid var(--border);
}
.opt-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:11px 0;
  border-bottom:1px solid #F5F5F5;
  gap:16px;
}
.opt-row:last-child{border-bottom:none;padding-bottom:0}
.opt-lbl{font-size:.875rem;color:var(--text)}
.opt-lbl small{display:block;font-size:.75rem;color:var(--muted);margin-top:2px;font-weight:400}
.opt-ctrl{display:flex;align-items:center;gap:8px;flex-shrink:0}

input[type=range]{
  -webkit-appearance:none;
  width:130px;height:4px;
  border-radius:2px;
  background:var(--border);
  outline:none;
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:16px;height:16px;
  border-radius:50%;
  background:var(--red);
  cursor:pointer;
  box-shadow:0 0 0 3px rgba(232,0,29,.15);
}
.opt-val{
  font-size:.8rem;font-weight:600;
  color:var(--red);min-width:36px;text-align:right;
}
input[type=number],input[type=text],select{
  border:1.5px solid var(--border);
  border-radius:var(--r-sm);
  padding:6px 10px;
  font-size:.85rem;
  outline:none;
  background:white;
  color:var(--text);
  font-family:inherit;
  transition:var(--transition);
}
input[type=number]:focus,input[type=text]:focus,select:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(232,0,29,.10)}
input[type=number]{width:90px}
select{padding-right:8px}
input[type=color]{
  width:40px;height:34px;
  border:1.5px solid var(--border);
  border-radius:8px;padding:2px;
  cursor:pointer;background:white;
}
input[type=checkbox]{
  width:18px;height:18px;
  cursor:pointer;
  accent-color:var(--red);
}
.seg-ctrl{
  display:flex;
  border:1.5px solid var(--border);
  border-radius:var(--r-sm);
  overflow:hidden;
}
.seg-btn{
  padding:6px 14px;
  border:none;
  background:none;
  font-size:.8rem;
  font-weight:600;
  color:var(--muted);
  cursor:pointer;
  transition:var(--transition);
  border-right:1px solid var(--border);
}
.seg-btn:last-child{border-right:none}
.seg-btn.active,.seg-btn:hover{background:var(--red);color:white}

/* ── ACTION AREA ─────────────────────────── */
.action-area{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin-top:28px;
  padding-top:4px;
}

.btn-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  background:var(--red);
  color:white;
  padding:15px 52px;
  border-radius:var(--r-full);
  font-size:1.05rem;
  font-weight:700;
  border:none;
  cursor:pointer;
  transition:var(--transition);
  box-shadow:var(--sh-red);
  letter-spacing:-.01em;
  min-width:220px;
}
.btn-action:hover{background:var(--red-dark);transform:translateY(-2px);box-shadow:0 10px 28px rgba(232,0,29,.4)}
.btn-action:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}

.btn-ghost{
  background:none;
  border:1.5px solid var(--border);
  border-radius:var(--r-full);
  padding:9px 22px;
  font-size:.875rem;
  font-weight:600;
  color:var(--muted);
  cursor:pointer;
  transition:var(--transition);
}
.btn-ghost:hover{border-color:var(--text);color:var(--text)}

/* ── PROGRESS ────────────────────────────── */
.progress-area{
  background:var(--white);
  border:1.5px solid var(--border);
  border-radius:var(--r-lg);
  padding:36px;
  text-align:center;
  margin-top:20px;
}
.spinner{
  width:44px;height:44px;
  border:3px solid var(--border);
  border-top-color:var(--red);
  border-radius:50%;
  animation:spin 1s linear infinite;
  margin:0 auto 16px;
}
@keyframes spin{to{transform:rotate(360deg)}}
.prog-title{font-size:.95rem;font-weight:700;color:var(--ink);margin-bottom:14px}
.prog-track{
  background:var(--bg);
  border-radius:var(--r-full);
  height:6px;
  overflow:hidden;
  margin-bottom:8px;
}
.prog-fill{
  height:100%;
  background:var(--red);
  border-radius:var(--r-full);
  transition:width .35s ease;
}
.prog-sub{font-size:.8rem;color:var(--muted)}

/* ── RESULT AREA ─────────────────────────── */
.result-area{
  background:var(--white);
  border:1.5px solid var(--border);
  border-radius:var(--r-lg);
  overflow:hidden;
  margin-top:20px;
  animation:fadeUp .3s ease;
}
@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}

.result-success-banner{
  background:linear-gradient(135deg,#00C853,#00897B);
  padding:32px 24px;
  text-align:center;
  color:white;
}
.result-success-banner .check{font-size:3rem;margin-bottom:10px}
.result-success-banner h3{font-size:1.15rem;font-weight:800;margin-bottom:6px;letter-spacing:-.02em}
.result-success-banner p{font-size:.88rem;opacity:.9}

.result-actions{
  padding:24px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.btn-download{
  display:inline-flex;
  align-items:center;
  gap:9px;
  background:var(--red);
  color:white;
  padding:14px 44px;
  border-radius:var(--r-full);
  font-size:1.05rem;
  font-weight:700;
  border:none;
  cursor:pointer;
  transition:var(--transition);
  box-shadow:var(--sh-red);
  letter-spacing:-.01em;
}
.btn-download:hover{background:var(--red-dark);transform:translateY(-2px);color:white;box-shadow:0 10px 28px rgba(232,0,29,.4)}

.result-list{padding:0 20px 16px;display:flex;flex-direction:column;gap:10px}
.res-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  background:var(--bg);
  border-radius:var(--r);
  animation:fadeUp .2s ease;
}
.res-thumb{
  width:44px;height:44px;
  border-radius:6px;
  object-fit:cover;
  border:1px solid var(--border);
  flex-shrink:0;
}
.res-meta{flex:1;min-width:0}
.res-name{font-size:.875rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.res-info{font-size:.75rem;color:var(--muted);margin-top:2px}
.res-dl{
  background:var(--red);
  color:white;
  border:none;
  padding:7px 14px;
  border-radius:var(--r-full);
  font-size:.78rem;
  font-weight:700;
  cursor:pointer;
  transition:var(--transition);
  flex-shrink:0;
}
.res-dl:hover{background:var(--red-dark)}

/* ── TOAST ───────────────────────────────── */
.toast-wrap{
  position:fixed;
  bottom:24px;
  right:24px;
  z-index:9999;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.toast{
  background:var(--ink);
  color:white;
  padding:12px 18px;
  border-radius:var(--r);
  font-size:.85rem;
  font-weight:500;
  box-shadow:var(--sh-lg);
  display:flex;
  align-items:center;
  gap:9px;
  max-width:320px;
  animation:toastIn .25s ease;
}
.toast.success{background:#166534}
.toast.error{background:#991B1B}
@keyframes toastIn{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:translateX(0)}}

/* ── RELATED TOOLS ───────────────────────── */
.related-section{
  max-width:920px;
  margin:0 auto;
  padding:0 24px 60px;
}
.related-title{
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--light);
  margin-bottom:14px;
  display:flex;
  align-items:center;
  gap:8px;
}
.related-title::after{content:'';flex:1;height:1px;background:var(--border)}

.related-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:10px;
}
.related-card{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--white);
  border:1.5px solid var(--border);
  border-radius:var(--r);
  padding:12px 14px;
  color:var(--text);
  transition:var(--transition);
}
.related-card:hover{border-color:var(--red);color:var(--red);transform:translateY(-1px);box-shadow:var(--sh-sm)}
.rel-icon{font-size:1.4rem;flex-shrink:0}
.rel-label{font-size:.82rem;font-weight:600}

/* ── TOP TOOLS STRIP ─────────────────────── */
.tools-strip{
  background:var(--white);
  border-bottom:1px solid var(--border);
}
.tools-strip-inner{
  position:relative;
  max-width:1260px;
  margin:0 auto;
  padding:0 40px;
}
.tools-strip-scroll{
  display:flex;
  gap:2px;
  overflow-x:auto;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  padding:6px 0;
  scrollbar-width:none;
  align-items:center;
}
.tools-strip-scroll::-webkit-scrollbar{display:none}
.strip-item{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:var(--r-full);
  color:var(--muted);
  text-decoration:none;
  transition:var(--transition);
  white-space:nowrap;
  border:1.5px solid transparent;
}
.strip-item:hover{background:var(--bg);color:var(--text);border-color:var(--border)}
.strip-item--active{background:var(--red-lighter);color:var(--red);border-color:var(--red-light)}
.strip-icon{
  width:26px;height:26px;
  border-radius:6px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
/* Lucide SVG inside strip-icon */
.strip-icon svg,.strip-icon i[data-lucide]{
  width:14px;height:14px;
  stroke:currentColor;
  stroke-width:2;
  fill:none;
  display:block;
}
.strip-label{
  font-size:.75rem;
  font-weight:600;
  color:inherit;
}
.strip-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:28px;height:28px;
  border-radius:50%;
  background:var(--white);
  border:1.5px solid var(--border);
  color:var(--text);
  font-size:1.2rem;
  line-height:1;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--sh-xs);
  transition:var(--transition);
  z-index:2;
}
.strip-arrow:hover{background:var(--red);border-color:var(--red);color:#fff}
.strip-left{left:4px}
.strip-right{right:4px}
@media(max-width:600px){
  .tools-strip-inner{padding:0 34px}
  .strip-item{padding:5px 8px;gap:5px}
  .strip-icon{width:20px;height:20px;font-size:.8rem}
  .strip-label{font-size:.7rem}
}

/* ── UTILITY ─────────────────────────────── */
.hidden{display:none!important}
.center{text-align:center}

/* ── TOOLS WRAPPER ───────────────────────── */
.tools-wrapper{
  background:var(--white);
  padding-bottom:16px;
  border-bottom:1px solid var(--border);
}

/* ── HOW IT WORKS ────────────────────────── */
.how-section{
  background:var(--bg);
  padding:72px 24px 80px;
  border-top:1px solid var(--border);
}
.how-inner{max-width:1000px;margin:0 auto}
.how-steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
  margin-top:48px;
  position:relative;
}
.how-connector{
  position:absolute;
  top:36px;
  left:calc(16.67% + 20px);
  right:calc(16.67% + 20px);
  height:2px;
  background:linear-gradient(90deg,var(--red-lighter),var(--red-light),var(--red-lighter));
  z-index:0;
}
.how-step{
  text-align:center;
  position:relative;
  z-index:1;
}
.how-num{
  width:72px;
  height:72px;
  background:var(--red);
  color:white;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.7rem;
  font-weight:800;
  margin:0 auto 16px;
  border:4px solid var(--bg);
  box-shadow:var(--sh-red);
}
.how-icon{
  font-size:2rem;
  margin-bottom:12px;
  display:block;
}
.how-step h3{
  font-size:1rem;
  font-weight:700;
  color:var(--ink);
  margin-bottom:8px;
}
.how-step p{
  font-size:.875rem;
  color:var(--muted);
  line-height:1.7;
  max-width:220px;
  margin:0 auto;
}

/* ── CTA STRIP ───────────────────────────── */
.cta-strip{
  background:linear-gradient(135deg,#111827 0%,#1f2937 100%);
  padding:48px 24px;
}
.cta-strip-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:48px;
  flex-wrap:wrap;
}
.cta-strip-text{flex:1;min-width:240px}
.cta-strip-text h2{
  font-size:1.5rem;
  font-weight:800;
  color:white;
  letter-spacing:-.025em;
  margin-bottom:6px;
}
.cta-strip-text p{
  font-size:.9rem;
  color:#9CA3AF;
}
.cta-strip-tools{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.cta-tool-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 20px;
  border-radius:var(--r-full);
  background:var(--bg, #EAF1FF);
  color:var(--c, #4285F4);
  font-size:.875rem;
  font-weight:700;
  border:none;
  cursor:pointer;
  transition:var(--transition);
  white-space:nowrap;
  text-decoration:none;
}
.cta-tool-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  color:var(--c);
}

/* ── FAQ SECTION ─────────────────────────── */
.faq-section{
  background:var(--white);
  padding:72px 24px 80px;
  border-top:1px solid var(--border);
}
.faq-inner{max-width:760px;margin:0 auto}
.faq-list{margin-top:36px;display:flex;flex-direction:column;gap:10px}
.faq-item{
  border:1.5px solid var(--border);
  border-radius:var(--r-lg);
  overflow:hidden;
  background:var(--white);
  transition:var(--transition);
}
.faq-item:hover{border-color:#ccc}
.faq-item.open{border-color:var(--red)}
.faq-q{
  padding:18px 20px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  font-weight:600;
  font-size:.925rem;
  color:var(--ink);
  user-select:none;
}
.faq-chevron{
  width:18px;
  height:18px;
  flex-shrink:0;
  color:var(--muted);
  transition:transform .25s ease;
}
.faq-item.open .faq-chevron{transform:rotate(180deg);color:var(--red)}
.faq-a{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease, padding .3s ease;
  font-size:.875rem;
  color:var(--muted);
  line-height:1.75;
  padding:0 20px;
}
.faq-item.open .faq-a{max-height:300px;padding:0 20px 18px}

/* ── RESPONSIVE ──────────────────────────── */
@media(max-width:1024px){
  .footer-top{grid-template-columns:1fr 1fr;gap:32px}
}
@media(max-width:768px){
  .header-nav,.header-actions .btn-outline-red,.mega-overlay{display:none!important}
  .hamburger{display:flex}
  .mm-grid{grid-template-columns:1fr 1fr}
  .cat-bar{top:62px;padding:10px 16px}
  .home-hero{padding:48px 20px 40px}
  .home-hero h1{font-size:clamp(1.7rem,6vw,2.4rem)}
  .hero-stats{max-width:100%}
  .trust-strip{gap:20px;padding:14px 20px}
  .footer-top{grid-template-columns:1fr 1fr}
  .tools-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .tool-hero-inner{flex-direction:column;text-align:center;gap:14px}
  .tool-hero-text{text-align:center}
  .tool-hero{padding:24px 20px 20px}
  .btn-action{padding:13px 32px;font-size:.95rem;min-width:180px}
  .how-steps{grid-template-columns:1fr;gap:32px}
  .how-connector{display:none}
  .cta-strip-inner{flex-direction:column;gap:24px;text-align:center}
  .cta-strip-tools{justify-content:center}
  .how-section{padding:52px 20px 60px}
  .faq-section{padding:52px 20px 60px}
}
@media(max-width:480px){
  .footer-top{grid-template-columns:1fr}
  .file-grid{grid-template-columns:repeat(2,1fr)}
  .upload-zone{padding:40px 20px}
  .tool-hero{padding:20px 16px 16px}
  .tools-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .hero-stats{flex-direction:column}
  .hero-stat{border-right:none;border-bottom:1px solid var(--border);padding:14px 12px}
  .hero-stat:last-child{border-bottom:none}
  .cta-tool-btn{font-size:.8rem;padding:10px 16px}
}

/* ── STATIC PAGES ─────────────────────────── */
.static-page{min-height:70vh;padding:60px 20px 80px;background:#fff}
.static-page-inner{max-width:760px;margin:0 auto}
.static-page h1{font-size:2.2rem;font-weight:800;color:#111;margin-bottom:8px}
.static-page .lead{font-size:1.1rem;color:#555;margin-bottom:36px;border-bottom:1px solid #eee;padding-bottom:24px}
.static-page h2{font-size:1.2rem;font-weight:700;color:#222;margin:32px 0 10px}
.static-page p,.static-page li{font-size:1rem;color:#444;line-height:1.75}
.static-page ul{padding-left:20px;margin:0 0 16px}
.static-page ul li{margin-bottom:6px}
.static-page a{color:var(--primary);text-decoration:underline}
.contact-form{display:flex;flex-direction:column;gap:18px;margin-top:8px}
.form-group{display:flex;flex-direction:column;gap:6px}
.form-group label{font-weight:600;font-size:.9rem;color:#333}
.form-group input,.form-group textarea{border:1px solid #ddd;border-radius:8px;padding:10px 14px;font-size:1rem;font-family:inherit;outline:none;transition:border .2s}
.form-group input:focus,.form-group textarea:focus{border-color:var(--primary)}
.form-group textarea{resize:vertical}
.form-success{margin-top:20px;padding:14px 18px;background:#e8f5e9;color:#2e7d32;border-radius:8px;font-weight:600}
.blog-empty{padding:60px 0;text-align:center;color:#888;font-size:1.1rem}

/* ── CONTACT PAGE ─────────────────────────── */
.contact-page{background:#f8f9fb;min-height:80vh;padding-bottom:80px}
.contact-hero{text-align:center;padding:60px 20px 40px;background:#fff;border-bottom:1px solid #eee}
.contact-hero h1{font-size:2.4rem;font-weight:800;color:#111;margin-bottom:10px}
.contact-hero p{font-size:1.1rem;color:#666;max-width:500px;margin:0 auto}
.contact-wrap{max-width:1000px;margin:48px auto;padding:0 20px;display:grid;grid-template-columns:280px 1fr;gap:32px;align-items:start}
.contact-info{display:flex;flex-direction:column;gap:16px}
.contact-info-card{background:#fff;border:1px solid #eee;border-radius:14px;padding:22px 20px;display:flex;flex-direction:column;gap:8px}
.ci-icon{font-size:1.8rem}
.contact-info-card h3{font-size:1rem;font-weight:700;color:#222;margin:0}
.contact-info-card p{font-size:.9rem;color:#666;margin:0;line-height:1.5}
.contact-form-card{background:#fff;border:1px solid #eee;border-radius:16px;padding:36px 32px}
.contact-form{display:flex;flex-direction:column;gap:20px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.form-group{display:flex;flex-direction:column;gap:6px}
.form-group label{font-size:.875rem;font-weight:600;color:#333}
.req{color:var(--primary)}
.form-group input,.form-group textarea{border:1.5px solid #e0e0e0;border-radius:10px;padding:11px 14px;font-size:.95rem;font-family:inherit;color:#222;outline:none;transition:border-color .2s,box-shadow .2s;background:#fafafa}
.form-group input:focus,.form-group textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(232,0,29,.08);background:#fff}
.form-group textarea{resize:vertical;min-height:140px}
.field-error{font-size:.8rem;color:#e53935;margin-top:2px}
.form-submit-row{display:flex;align-items:center;padding-top:8px}
.contact-submit-btn{display:inline-flex;align-items:center;gap:8px;background:var(--primary);color:#fff;border:none;border-radius:10px;padding:14px 32px;font-size:1rem;font-weight:700;cursor:pointer;transition:background .2s,transform .1s}
.contact-submit-btn:hover{background:#c0001a;transform:translateY(-1px)}
.form-success{display:flex;align-items:center;gap:10px;background:#e8f5e9;color:#2e7d32;border-radius:10px;padding:14px 18px;font-weight:600;margin-bottom:8px}

/* ── BLOG PAGE ────────────────────────────── */
.blog-page{background:#f8f9fb;min-height:80vh;padding-bottom:80px}
.blog-hero{text-align:center;padding:60px 20px 40px;background:#fff;border-bottom:1px solid #eee}
.blog-hero h1{font-size:2.4rem;font-weight:800;color:#111;margin-bottom:10px}
.blog-hero p{font-size:1.1rem;color:#666}
.blog-wrap{max-width:860px;margin:48px auto;padding:0 20px;display:grid;grid-template-columns:1fr;gap:24px}
.blog-card{background:#fff;border:1px solid #eee;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.blog-card:hover{box-shadow:0 8px 32px rgba(0,0,0,.08);transform:translateY(-2px)}
.blog-card-img{height:200px;overflow:hidden}
.blog-card-img img{width:100%;height:100%;object-fit:cover}
.blog-card-body{padding:28px 28px 24px;display:flex;flex-direction:column;gap:10px}
.blog-card-meta{display:flex;align-items:center;gap:12px}
.blog-date{font-size:.8rem;color:#999;font-weight:500}
.blog-card-title{font-size:1.4rem;font-weight:800;color:#111;margin:0;line-height:1.3}
.blog-card-excerpt{font-size:.95rem;color:#555;line-height:1.65;margin:0}
.blog-read-more{display:inline-flex;align-items:center;gap:4px;color:var(--primary);font-weight:700;font-size:.9rem;text-decoration:none;margin-top:4px}
.blog-read-more:hover{text-decoration:underline}
.blog-empty{text-align:center;padding:80px 20px;color:#aaa;display:flex;flex-direction:column;align-items:center;gap:12px}
.blog-empty span{font-size:3rem}
.blog-empty p{font-size:1.1rem}
@media(max-width:700px){
  .contact-wrap{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .contact-form-card{padding:24px 18px}
}
