/* ===========================
   PDF Tool Site – Base Styles
   Theme: Clean, Modern, Professional
   Fonts: Sora (headings) + DM Sans (body)
=========================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --primary:        #1E88E5;
  --primary-dark:   #1565C0;
  --primary-light:  #E3F2FD;
  --accent:         #FF7043;
  --accent-dark:    #E64A19;
  --bg:             #F8F9FA;
  --surface:        #FFFFFF;
  --surface-2:      #F0F4F8;
  --text-primary:   #1A1F2E;
  --text-secondary: #5A6478;
  --text-muted:     #9AA3B2;
  --border:         #E2E8F0;
  --shadow-sm:      0 2px 8px rgba(30,136,229,.08);
  --shadow-md:      0 6px 24px rgba(30,136,229,.12);
  --shadow-lg:      0 16px 48px rgba(30,136,229,.16);
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --transition:     all .22s cubic-bezier(.4,0,.2,1);
  --nav-h:          68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Sora', sans-serif;
  line-height: 1.25;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--text-secondary); }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ════════════════════════════════
   NAVIGATION
════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: visible;   /* allow mega-menu panel to extend below */
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  flex-shrink: 0;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .9rem;
  box-shadow: 0 4px 12px rgba(30,136,229,.35);
}

.nav-logo span { color: var(--accent); }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30,136,229,.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(30,136,229,.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,112,67,.35);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,112,67,.45);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ════════════════════════════════
   HERO SECTION
════════════════════════════════ */
.hero {
  padding: 90px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(30,136,229,.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(30,136,229,.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.3); }
}

.hero h1 { margin-bottom: 20px; }

.hero h1 .highlight {
  position: relative;
  color: var(--primary);
}
.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 4px;
  opacity: .4;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.stat {
  text-align: center;
}
.stat .num {
  font-family: 'Sora', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
}
.stat .label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Divider */
.divider {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  margin: 0 auto 20px;
}

/* ════════════════════════════════
   SECTION HEADERS
════════════════════════════════ */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header p {
  max-width: 520px;
  margin: 12px auto 0;
  font-size: 1.05rem;
}

/* ════════════════════════════════
   TOOL CARDS
════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.tool-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.tool-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30,136,229,.3);
}
.tool-card:hover::after { transform: scaleX(1); }

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.tool-icon.blue   { background: #E3F2FD; color: var(--primary); }
.tool-icon.orange { background: #FBE9E7; color: var(--accent); }
.tool-icon.green  { background: #E8F5E9; color: #43A047; }
.tool-icon.purple { background: #F3E5F5; color: #8E24AA; }
.tool-icon.teal   { background: #E0F2F1; color: #00897B; }
.tool-icon.red    { background: #FFEBEE; color: #E53935; }

.tool-card h3 { font-size: 1.05rem; }
.tool-card p  { font-size: .88rem; line-height: 1.55; flex: 1; }

.tool-card-arrow {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

/* ════════════════════════════════
   HOW IT WORKS
════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.step-number {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(30,136,229,.35);
  position: relative;
}

.step h3 { font-size: 1rem; }
.step p   { font-size: .88rem; }

/* ════════════════════════════════
   FEATURES STRIP
════════════════════════════════ */
.features-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.features-strip::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}
.features-strip::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  color: #fff;
}

.feature-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  backdrop-filter: blur(8px);
}

.feature-item h3 { color: #fff; font-size: 1rem; }
.feature-item p  { color: rgba(255,255,255,.75); font-size: .86rem; }

/* ════════════════════════════════
   CTA SECTION
════════════════════════════════ */
.cta-section {
  padding: 80px 0;
  text-align: center;
}

.cta-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.cta-card h2 { margin-bottom: 14px; }
.cta-card p  { margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
/* ════════════════════════════════
   FOOTER — Premium redesign
════════════════════════════════ */

.ft {
  position: relative;
  background: #0f1623;
  color: rgba(255,255,255,.65);
  padding: 72px 0 0;
  margin-top: auto;
  overflow: hidden;
}

/* Subtle radial top-glow so it doesn't feel flat */
.ft-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(30,136,229,.13) 0%, transparent 70%);
  pointer-events: none;
}

/* ── TOP: brand + nav columns ── */
.ft-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
}

/* Brand column */
.ft-brand { display: flex; flex-direction: column; gap: 0; }

.ft-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 16px;
  width: fit-content;
  transition: opacity .2s ease;
}
.ft-logo:hover { opacity: .85; }

.ft-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(30,136,229,.4);
  flex-shrink: 0;
}

.ft-logo span { color: var(--accent); }

.ft-tagline {
  font-size: .88rem;
  line-height: 1.65;
  color: rgba(255,255,255,.45);
  max-width: 260px;
  margin-bottom: 22px;
}

/* Trust badges */
.ft-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ft-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 100px;
  padding: 4px 11px;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  letter-spacing: .02em;
  transition: var(--transition);
}
.ft-badge:hover {
  background: rgba(30,136,229,.12);
  border-color: rgba(30,136,229,.3);
  color: rgba(255,255,255,.7);
}
.ft-badge svg { color: var(--primary); flex-shrink: 0; }

/* Nav columns */
.ft-nav {
  display: contents; /* children (ft-col) flow directly into the parent grid */
}

.ft-col-head {
  font-family: 'Sora', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  margin-bottom: 20px;
}

.ft-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ft-col a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: color .2s ease, transform .2s ease;
}
.ft-col a svg {
  opacity: 0;
  color: var(--primary);
  flex-shrink: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.ft-col a:hover {
  color: #fff;
  transform: translateX(3px);
}
.ft-col a:hover svg {
  opacity: 1;
  transform: translateX(1px);
}

/* ── MIDDLE: social + newsletter ── */
.ft-middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding: 36px 0;
}

/* Social icons */
.ft-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ft-social-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.5);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.ft-social-btn:hover {
  background: rgba(30,136,229,.18);
  border-color: rgba(30,136,229,.4);
  color: #fff;
  transform: translateY(-2px);
}

/* Newsletter */
.ft-newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 280px;
  max-width: 360px;
}

.ft-newsletter-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  margin: 0;
}
.ft-newsletter-label svg { color: var(--primary); flex-shrink: 0; }

.ft-newsletter-input-wrap {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ft-newsletter-input-wrap:focus-within {
  border-color: rgba(30,136,229,.5);
  box-shadow: 0 0 0 3px rgba(30,136,229,.12);
}

.ft-newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  color: #fff;
  min-width: 0;
}
.ft-newsletter-input::placeholder { color: rgba(255,255,255,.3); }

.ft-newsletter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: var(--primary);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  transition: background .2s ease;
  border-left: 1px solid rgba(255,255,255,.08);
}
.ft-newsletter-btn:hover { background: var(--primary-dark); }

.ft-newsletter-success {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .83rem;
  font-weight: 600;
  color: #66BB6A;
  margin: 0;
  padding: 8px 0;
}
.ft-newsletter-success svg { color: #66BB6A; }

/* ── DIVIDER ── */
.ft-divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.08) 20%,
    rgba(255,255,255,.08) 80%,
    transparent 100%
  );
}

/* ── BOTTOM bar ── */
.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px 0 28px;
}

.ft-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.28);
  margin: 0;
}

.ft-bottom-nav {
  display: flex;
  gap: 22px;
}

.ft-bottom-nav a {
  font-size: .78rem;
  color: rgba(255,255,255,.28);
  transition: color .2s ease;
}
.ft-bottom-nav a:hover { color: rgba(255,255,255,.65); }

/* ════════════════════════════════
   PAGE HEADER (inner pages)
════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, #EBF4FD 0%, #FFF3EF 100%);
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 10px; }
.page-header p  { font-size: 1rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* ════════════════════════════════
   UPLOAD ZONE (tool pages)
════════════════════════════════ */
.upload-zone {
  border: 2.5px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  text-align: center;
  background: var(--surface);
  transition: var(--transition);
  cursor: pointer;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-zone .upload-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: .6;
}
.upload-zone h3 { margin-bottom: 8px; }
.upload-zone p  { font-size: .88rem; margin-bottom: 20px; }

/* ════════════════════════════════
   BLOG CARDS
════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light), rgba(255,112,67,.12));
  display: grid;
  place-items: center;
  font-size: 3rem;
}

.blog-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  width: fit-content;
}

.blog-card h3 { font-size: 1rem; }
.blog-card p  { font-size: .86rem; flex: 1; }

.blog-meta {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 900px) {
  .ft-top { grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
  .ft-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links,
  .nav-actions .btn-outline { display: none; }

  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    align-items: center;
  }

  /* Every item in the open drawer fills width and centers text */
  .nav-links.open a,
  .nav-links.open .mm-trigger {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
  }

  .nav-actions { gap: 6px; }

  .hero { padding: 56px 0 52px; }
  .hero-stats { gap: 20px; }
  .steps-grid { gap: 24px; }
}

@media (max-width: 600px) {
  .ft-top { grid-template-columns: 1fr; gap: 32px; }
  .ft-brand { grid-column: auto; }
  .ft-middle { flex-direction: column; align-items: flex-start; }
  .ft-newsletter { min-width: 100%; max-width: 100%; }
  .ft-bottom { flex-direction: column; text-align: center; align-items: center; }
  .cta-card { padding: 44px 24px; }
  .tools-grid { grid-template-columns: 1fr; }
  .blog-grid  { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ════════════════════════════════
   UTILITIES
════════════════════════════════ */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}


/* ════════════════════════════════════════════
   HOMEPAGE v2 — HERO2
════════════════════════════════════════════ */
.hero2 {
  position: relative;
  padding: 80px 0 64px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #EBF5FF 0%, var(--bg) 100%);
}

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  opacity: .55;
}
.blob-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(30,136,229,.18), transparent 70%);
  top: -140px; left: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,112,67,.14), transparent 70%);
  top: 40px; right: -80px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}
.blob-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(30,136,229,.1), transparent 70%);
  bottom: -60px; left: 40%;
  animation: blobFloat 12s ease-in-out infinite;
}
@keyframes blobFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-28px) scale(1.05); }
}

/* Hero badge */
.h-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(30,136,229,.08);
  border: 1px solid rgba(30,136,229,.18);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeSlideUp .6s ease both;
}
.h-badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

/* Title */
.h-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeSlideUp .65s .1s ease both;
}
.h-title-em {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}
.h-title-em::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 0;
  width: 100%; height: 8px;
  background: linear-gradient(90deg, rgba(255,112,67,.45), transparent);
  border-radius: 4px;
}

.h-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  animation: fadeSlideUp .65s .18s ease both;
}

/* Fade-slide animation */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BIG UPLOAD HERO BOX ── */
.upload-hero {
  position: relative;
  background: var(--surface);
  border: 2.5px dashed rgba(30,136,229,.35);
  border-radius: var(--radius-xl);
  padding: 56px 32px 44px;
  max-width: 700px;
  margin: 0 auto 32px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md), 0 0 0 6px rgba(30,136,229,.05);
  animation: fadeSlideUp .65s .26s ease both;
}
.upload-hero:hover,
.upload-hero.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(30,136,229,.08);
  transform: translateY(-3px);
}

/* Animated corner brackets */
.upload-corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--primary);
  border-style: solid;
  opacity: .5;
  transition: var(--transition);
}
.upload-hero:hover .upload-corner { opacity: 1; }
.upload-corner.tl { top: 12px;  left: 12px;  border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.upload-corner.tr { top: 12px;  right: 12px; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.upload-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.upload-corner.br { bottom: 12px; right: 12px;border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }

.upload-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Upload icon with pulse ring */
.uhi-icon-wrap { position: relative; display: grid; place-items: center; }
.uhi-pulse {
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(30,136,229,.25);
  border-radius: 50%;
  animation: ringPulse 2.4s ease-out infinite;
}
@keyframes ringPulse {
  0%   { transform: scale(.8);  opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.uhi-icon-bg {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary-light), rgba(30,136,229,.1));
  border: 1.5px solid rgba(30,136,229,.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
}

.uhi-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.uhi-text strong {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.uhi-text span {
  font-size: .88rem;
  color: var(--text-muted);
}

.uhi-btn { min-width: 200px; justify-content: center; }

.uhi-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-muted);
}
.uhi-hint svg { color: #43A047; flex-shrink: 0; }

/* Quick tools pills */
.quick-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  animation: fadeSlideUp .65s .34s ease both;
}
.qt-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.qt-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.qt-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30,136,229,.25);
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0 22px;
}
.trust-item svg { color: var(--primary); flex-shrink: 0; }
.trust-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   TOOL CATEGORIES SECTION
════════════════════════════════════════════ */
.cats-section {
  padding: 72px 0 80px;
}

.cats-header {
  text-align: center;
  margin-bottom: 56px;
}
.cats-header h2,
.cats-h1 {
  margin-bottom: 10px;
}
.cats-h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.cats-header p  { max-width: 480px; margin: 0 auto; font-size: 1.05rem; }

.section-pill {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(30,136,229,.18);
  border-radius: 100px;
  padding: 4px 16px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}

/* Category block */
.cat-block {
  margin-bottom: 44px;
}

/* Category label pill */
.cat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
}
.cat-label-icon {
  width: 24px; height: 24px;
  border-radius: 5px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.5);
}
.cat-label--blue   { background: #DBEAFE; color: #1D4ED8; }
.cat-label--orange { background: #FEE2D5; color: #C4460A; }
.cat-label--green  { background: #DCFCE7; color: #15803D; }
.cat-label--purple { background: #F3E8FF; color: #7E22CE; }

/* Tool cards row */
.tool-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Individual tool card */
.tc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px 18px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.tc::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.cat-block:nth-child(1) .tc::before { background: linear-gradient(90deg,#1E88E5,#42A5F5); }
.cat-block:nth-child(2) .tc::before { background: linear-gradient(90deg,#FF7043,#FFA726); }
.cat-block:nth-child(3) .tc::before { background: linear-gradient(90deg,#43A047,#26C6DA); }
.cat-block:nth-child(4) .tc::before { background: linear-gradient(90deg,#8E24AA,#5E35B1); }

.tc:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.tc:hover::before { transform: scaleX(1); }

/* Icon styles */
.tc-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.tc:hover .tc-icon { transform: scale(1.1); }
.tc-icon--blue   { background: #EFF6FF; color: #1E88E5; }
.tc-icon--orange { background: #FFF7ED; color: #FF7043; }
.tc-icon--green  { background: #F0FDF4; color: #43A047; }
.tc-icon--purple { background: #FAF5FF; color: #8E24AA; }

.tc-body { flex: 1; }
.tc-body h3 {
  font-size: .97rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-primary);
}
.tc-body p {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.tc-arrow {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
  align-self: flex-end;
}
.tc:hover .tc-arrow { color: var(--primary); transform: translateX(3px); }

/* See all link */
.cats-footer {
  text-align: center;
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.cats-footer .btn { gap: 8px; }

/* ════════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════════ */
.how-section {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #EEF4FB 100%);
}

.how-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.how-card {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  box-sizing: border-box;
}
.how-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.how-num {
  font-family: 'Sora', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(30,136,229,.08);
  line-height: 1;
  margin-bottom: -8px;
  letter-spacing: -.04em;
}

.how-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary-light), rgba(30,136,229,.06));
  border: 1.5px solid rgba(30,136,229,.15);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  margin: 0 auto 18px;
  color: var(--primary);
}

.how-card h3 { margin-bottom: 8px; font-size: 1rem; }
.how-card p  { font-size: .86rem; line-height: 1.6; }

.how-connector {
  padding: 0 8px;
  color: var(--text-muted);
  opacity: .5;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   FEATURES STRIP (horizontal, light bg)
════════════════════════════════════════════ */
.feat-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.feat-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 0;
}
.feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
}
.feat-item-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.feat-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feat-item-text strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.feat-item-text span {
  font-size: .78rem;
  color: var(--text-muted);
}
.feat-div {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   FINAL CTA BANNER
════════════════════════════════════════════ */
.cta2 {
  padding: 72px 0;
}
.cta2-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}
.cta2-deco {
  position: absolute;
  width: 320px; height: 320px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  top: -120px; right: -60px;
  pointer-events: none;
}
.cta2-deco::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: rgba(255,112,67,.12);
  border-radius: 50%;
  bottom: -80px; left: -40px;
}
.cta2-left { position: relative; z-index: 1; }
.cta2-left h2 {
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 8px;
}
.cta2-left p { color: rgba(255,255,255,.75); font-size: .95rem; }
.cta2-right {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.4);
  background: transparent;
  color: #fff;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.7);
}

/* ════════════════════════════════════════════
   AD PLACEHOLDERS
════════════════════════════════════════════ */
/* ════════════════════════════════════════════
   AD SLOTS — AdSense-ready, non-spammy
════════════════════════════════════════════ */
.ad-slot {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 100px;
  padding: 16px;
}
.ad-slot--leaderboard {
  min-height: 106px;
  margin: 0;
  width: 100%;
}
.ad-slot--rectangle {
  min-height: 296px;
  max-width: 400px;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border);
  margin: 80px auto;
}
.ad-slot--center {
  border-radius: 0;
}

/* Legacy ad classes kept for other pages */
.ad-banner,
.ad-rectangle {
  margin: 60px 0;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ad-banner  { min-height: 90px;  max-width: 728px; margin: 60px auto; }
.ad-rectangle { min-height: 280px; max-width: 336px; margin: 60px auto; }


/* ════════════════════════════════════════════
   SECTION 1: TRUST BAR — horizontal pill row
════════════════════════════════════════════ */
.hp-trust-bar {
  background: #F0F7FF;
  border-bottom: 1px solid rgba(30,136,229,.1);
  padding: 14px 0;
}
.hp-trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
}
.hp-trust-bar-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  background: var(--surface);
  border: 1.5px solid rgba(30,136,229,.15);
  border-radius: 100px;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.hp-trust-bar-pill svg {
  color: var(--primary);
  flex-shrink: 0;
}
.hp-trust-bar-sep {
  width: 1px;
  height: 18px;
  background: rgba(30,136,229,.15);
  margin: 0 10px;
  flex-shrink: 0;
}


/* ════════════════════════════════════════════
   SECTION 2: SHOWCASE
════════════════════════════════════════════ */
.hp-showcase {
  padding: 100px 0;
  background: var(--bg);
}
.hp-showcase-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}
.hp-showcase-header .section-pill { margin-bottom: 14px; }
.hp-showcase-header h2 { margin-bottom: 10px; }
.hp-showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.hp-showcase-row:last-child { border-bottom: none; }
.hp-showcase-row--flip .hp-showcase-text { order: 2; }
.hp-showcase-row--flip .hp-showcase-visual { order: 1; }

.hp-sc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 16px;
}
.hp-showcase-text h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.3;
}
.hp-showcase-text p {
  font-size: .93rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.hp-sc-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-top: 24px;
}
.hp-sc-points span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.hp-sc-points span svg { color: var(--primary); flex-shrink: 0; }

/* Browser mockup */
.hp-showcase-visual { display: flex; align-items: center; justify-content: center; }
.hp-sc-mockup {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
}
.hp-scm-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hp-scm-dots { display: flex; gap: 6px; }
.hp-scm-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  display: block;
}
.hp-scm-dots span:nth-child(1) { background: #FF605C; }
.hp-scm-dots span:nth-child(2) { background: #FFBD44; }
.hp-scm-dots span:nth-child(3) { background: #00CA4E; }
.hp-scm-url {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .72rem;
  color: var(--text-muted);
  font-family: monospace;
}
.hp-scm-body { padding: 20px; }
.hp-scm-dropzone {
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  background: var(--primary-light);
  margin-bottom: 16px;
}
.hp-scm-dz-icon {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: #fff;
  margin: 0 auto 12px;
  box-shadow: 0 6px 20px rgba(30,136,229,.3);
}
.hp-scm-dropzone p { font-size: .82rem; color: var(--text-secondary); margin: 0 0 12px; }
.hp-scm-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 700;
}
.hp-scm-files { display: flex; flex-direction: column; gap: 8px; }
.hp-scm-file {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: .78rem;
  color: var(--text-secondary);
}
.hp-scm-file svg { color: var(--accent); flex-shrink: 0; }
.hp-scm-size { margin-left: auto; color: var(--text-muted); }

/* Security visual */
.hp-sc-security {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  text-align: center;
  width: 100%;
  max-width: 380px;
}
.hp-scs-ring {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #E8F5E9);
  border: 3px solid rgba(30,136,229,.2);
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
}
.hp-scs-icon { color: var(--primary); }
.hp-scs-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.hp-scs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .83rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.hp-scs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #43A047;
  flex-shrink: 0;
}
.hp-scs-bar {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
}
.hp-scs-bar div { height: 100%; background: linear-gradient(90deg, var(--primary), #43A047); border-radius: 100px; }
.hp-scs-label { font-size: .75rem; color: var(--text-muted); font-weight: 600; margin: 0; }


/* ════════════════════════════════════════════
   SECTION 4: TRUST
════════════════════════════════════════════ */
.hp-trust {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #F0F7FF 100%);
}
.hp-trust-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.hp-trust-left .section-pill { margin-bottom: 16px; }
.hp-trust-left h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}
.hp-trust-left p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.hp-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hp-trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}
.hp-trust-item:hover {
  border-color: rgba(30,136,229,.25);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.hp-trust-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hp-trust-item h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.hp-trust-item p {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}


/* ════════════════════════════════════════════
   SECTION 5: SEO CONTENT
════════════════════════════════════════════ */
.hp-seo {
  padding: 96px 0 100px;
  background: var(--surface-2);
}
.hp-seo-inner { max-width: 1100px; margin: 0 auto; }
.hp-seo-header {
  text-align: center;
  margin-bottom: 56px;
}
.hp-seo-header .section-pill { margin-bottom: 16px; }
.hp-seo-header h2 { margin-bottom: 10px; }
.hp-seo-header p { max-width: 560px; margin: 0 auto; }
.hp-seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.hp-seo-article {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
}
.hp-seo-article:hover {
  border-color: rgba(30,136,229,.2);
  box-shadow: var(--shadow-md);
}
.hp-seo-art-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.hp-seo-article h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.4;
}
.hp-seo-article h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 8px;
}
.hp-seo-article p {
  font-size: .875rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.hp-seo-article p:last-of-type { margin-bottom: 18px; }
.hp-seo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
  margin-top: 4px;
}
.hp-seo-link:hover { color: var(--primary-dark); gap: 10px; }


/* ════════════════════════════════════════════
   SECTION 7: TRUST & SECURITY
════════════════════════════════════════════ */
.hp-security {
  padding: 96px 0;
  background: linear-gradient(160deg, #F8F9FA 0%, #EFF6FF 100%);
}
.hp-security-inner { max-width: 1100px; margin: 0 auto; }
.hp-security-header {
  text-align: center;
  margin-bottom: 60px;
}
.hp-security-header .section-pill { margin-bottom: 14px; }
.hp-security-header h2 { margin-bottom: 10px; }
.hp-security-header p  { max-width: 540px; margin: 0 auto; }

.hp-security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hp-sec-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 36px 28px 32px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.hp-sec-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.hp-sec-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.hp-sec-icon--blue   { background: #EFF6FF; color: var(--primary); }
.hp-sec-icon--green  { background: #F0FDF4; color: #43A047; }
.hp-sec-icon--orange { background: #FFF3EF; color: #FF7043; }
.hp-sec-icon--purple { background: #FAF5FF; color: #8E24AA; }

.hp-sec-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.hp-sec-card p {
  font-size: .88rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}


/* ════════════════════════════════════════════
   SECTION 8: FAQ ACCORDION
════════════════════════════════════════════ */
.hp-faq {
  padding: 80px 0;
  background: linear-gradient(180deg, #F0F7FF 0%, var(--bg) 100%);
}
.hp-faq-inner { max-width: 820px; margin: 0 auto; }
.hp-faq-header {
  text-align: center;
  margin-bottom: 48px;
}
.hp-faq-header .section-pill { margin-bottom: 14px; }
.hp-faq-header h2 { margin-bottom: 8px; }
.hp-faq-list { display: flex; flex-direction: column; gap: 0; }
.hp-faq-item {
  border: 1.5px solid var(--border);
  border-bottom: none;
  background: var(--surface);
  transition: var(--transition);
}
.hp-faq-item:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.hp-faq-item:last-child  { border-radius: 0 0 var(--radius-lg) var(--radius-lg); border-bottom: 1.5px solid var(--border); }
.hp-faq-item--open { background: var(--primary-light); border-color: rgba(30,136,229,.3); }

.hp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
}
.hp-faq-q span {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}
.hp-faq-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .25s ease;
}
.hp-faq-item--open .hp-faq-chevron { transform: rotate(180deg); color: var(--primary); }
.hp-faq-item--open .hp-faq-q span  { color: var(--primary); }

.hp-faq-a {
  padding: 0 24px 20px;
  animation: faqSlide .2s ease both;
}
.hp-faq-a p {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════════════════
   HOMEPAGE RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .tool-cards-row       { grid-template-columns: repeat(2, 1fr); }
  .hp-showcase-row      { gap: 40px; }
  .hp-trust-inner       { grid-template-columns: 1fr; gap: 36px; }
  .hp-security-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .how-connector          { display: none; }
  .how-grid               { gap: 16px; }
  /* FIX: was 240px min-width — 3 cards × 240px = 720px overflows mobile */
  .how-card               { min-width: 0; width: 100%; max-width: 100%; }
  .cta2-card              { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta2-right             { justify-content: center; }
  .hp-showcase-row        { grid-template-columns: 1fr; gap: 36px; }
  .hp-showcase-row--flip .hp-showcase-text  { order: 1; }
  .hp-showcase-row--flip .hp-showcase-visual { order: 2; }
  .hp-seo-grid            { grid-template-columns: 1fr; }
  .hp-trust-grid          { grid-template-columns: 1fr; }
  .hp-security-grid       { grid-template-columns: repeat(2, 1fr); }
}

/* ── 768px: Primary mobile breakpoint ─────────────────── */
@media (max-width: 768px) {
  /* Container: tighter padding on small screens */
  .container              { padding: 0 16px; }

  /* Typography: prevent oversized headings */
  h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  h2 { font-size: clamp(1.25rem, 5vw, 1.65rem); }
  h3 { font-size: 1.05rem; }

  /* Trust bar: wrap pills, hide separators */
  .hp-trust-bar-inner     { gap: 8px; justify-content: center; }
  .hp-trust-bar-sep       { display: none; }
  .hp-trust-bar-pill      { padding: 6px 14px; font-size: .78rem; }

  /* Tool grid: 2 columns on tablet/mobile */
  .tool-cards-row         { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Cats section: less vertical padding */
  .cats-section           { padding: 48px 0 56px; }
  .cats-h1                { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .cats-header            { margin-bottom: 36px; }

  /* Showcase: stack columns, reduce padding */
  .hp-showcase            { padding: 60px 0; }
  .hp-showcase-header     { margin-bottom: 44px; }
  .hp-showcase-row        { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .hp-showcase-row--flip .hp-showcase-text  { order: 1; }
  .hp-showcase-row--flip .hp-showcase-visual { order: 2; }
  .hp-sc-points           { grid-template-columns: 1fr; gap: 8px; }
  .hp-sc-mockup           { max-width: 100%; }

  /* How it works: full-width cards */
  .how-section            { padding: 56px 0; }
  .how-grid               { flex-direction: column; gap: 14px; align-items: stretch; }
  .how-card               { max-width: 100%; width: 100%; padding: 28px 20px 24px; }
  .how-connector          { display: none; }

  /* SEO articles: single column, less padding */
  .hp-seo                 { padding: 60px 0 64px; }
  .hp-seo-grid            { grid-template-columns: 1fr; }
  .hp-seo-article         { padding: 24px 20px; }
  .hp-seo-inner           { max-width: 100%; }

  /* Security grid: 2 columns */
  .hp-security            { padding: 56px 0; }
  .hp-security-inner      { max-width: 100%; }
  .hp-security-grid       { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hp-sec-card            { padding: 24px 18px 20px; }
  .hp-sec-icon            { width: 48px; height: 48px; }

  /* FAQ: tighter padding */
  .hp-faq                 { padding: 56px 0; }
  .hp-faq-inner           { max-width: 100%; }
  .hp-faq-q               { padding: 16px 18px; }
  .hp-faq-a               { padding: 0 18px 16px; }

  /* Features strip: column layout */
  .feat-strip-inner       { flex-direction: column; align-items: flex-start; gap: 18px; padding: 0 4px; }
  .feat-div               { display: none; }
  .feat-item              { padding: 0; }

  /* CTA card: column, smaller padding */
  .cta2                   { padding: 48px 0; }
  .cta2-card              { flex-direction: column; text-align: center; padding: 36px 24px; gap: 24px; }
  .cta2-right             { flex-direction: column; align-items: center; gap: 10px; width: 100%; }
  .cta2-right .btn        { width: 100%; justify-content: center; }

  /* Buttons: full width on mobile where needed */
  .btn-lg                 { padding: 13px 24px; font-size: .95rem; }

  /* Ad slots */
  .ad-slot--leaderboard   { min-height: 60px; }
  .ad-slot--rectangle     { margin: 40px auto; min-height: 200px; }
}

/* ── 480px: Small phones ───────────────────── */
@media (max-width: 480px) {
  .container              { padding: 0 14px; }

  /* Tool grid: single column on very small screens */
  .tool-cards-row         { grid-template-columns: 1fr; gap: 10px; }

  /* Security grid: single column */
  .hp-security-grid       { grid-template-columns: 1fr; }

  /* CTA */
  .cta2-card              { padding: 28px 18px; }

  /* Quick tools */
  .quick-tools            { gap: 6px; }
  .qt-pill                { font-size: .75rem; padding: 5px 12px; }
}



/* ════════════════════════════════════════════
   TOOL PAGE — HERO
════════════════════════════════════════════ */
.tool-hero {
  position: relative;
  padding: 56px 0 52px;
  background: linear-gradient(145deg, #EBF5FF 0%, #FFF3EF 60%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Subtle grid pattern */
.tool-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,136,229,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,136,229,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.tool-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

/* ── Copy side ── */
.tool-hero-copy { max-width: 600px; }

.tool-hero-badge {
  display: inline-flex;
  margin-bottom: 20px;
}
.tool-hero-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(30,136,229,.35);
}

.tool-hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.tool-hero-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 540px;
}

.tool-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.th-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30,136,229,.08);
  border: 1px solid rgba(30,136,229,.18);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
}
.th-pill svg { color: #43A047; flex-shrink: 0; }

/* ── Visual side (animated doc illustration) ── */
.tool-hero-visual {
  flex-shrink: 0;
}
.thv-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px;
}

.thv-doc {
  width: 88px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: var(--shadow-sm);
  animation: docFloat 4s ease-in-out infinite;
}
.thv-doc-2 { animation-delay: .8s; }

@keyframes docFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.thv-doc-line {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
}
.w-90 { width: 90%; } .w-80 { width: 80%; }
.w-70 { width: 70%; } .w-60 { width: 60%; }
.w-55 { width: 55%; } .w-75 { width: 75%; }
.w-85 { width: 85%; }

.thv-doc-icon {
  margin-top: 6px;
  font-size: .6rem;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 7px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: .04em;
  width: fit-content;
}
.thv-doc-icon--accent {
  color: var(--accent);
  background: #FBE9E7;
}

.thv-plus {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-muted);
}
.thv-arrow {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  animation: arrowPulse 2s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%,100% { transform: translateX(0); opacity: 1; }
  50%      { transform: translateX(5px); opacity: .7; }
}

.thv-result {
  width: 100px;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-md);
  animation: docFloat 5s 1.2s ease-in-out infinite;
}

/* ════════════════════════════════════════════
   UPLOAD SECTION
════════════════════════════════════════════ */
.upload-section {
  padding: 64px 0;
}

.upload-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Drop Zone ── */
.drop-zone {
  position: relative;
  background: var(--surface);
  border: 2.5px dashed rgba(30,136,229,.3);
  border-radius: var(--radius-xl);
  padding: 64px 32px 52px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm), 0 0 0 6px rgba(30,136,229,.04);
}
.drop-zone:hover,
.drop-zone:focus,
.drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow-md), 0 0 0 8px rgba(30,136,229,.07);
  outline: none;
  transform: translateY(-2px);
}

/* Animated corner brackets */
.dz-corner {
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--primary);
  border-style: solid;
  opacity: .4;
  transition: var(--transition);
  border-radius: 3px;
}
.drop-zone:hover .dz-corner,
.drop-zone.drag-over .dz-corner { opacity: 1; }
.dz-tl { top: 14px;  left: 14px;  border-width: 2.5px 0 0 2.5px; }
.dz-tr { top: 14px;  right: 14px; border-width: 2.5px 2.5px 0 0; }
.dz-bl { bottom: 14px; left: 14px; border-width: 0 0 2.5px 2.5px; }
.dz-br { bottom: 14px; right: 14px;border-width: 0 2.5px 2.5px 0; }

.dz-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Pulsing icon */
.dz-icon-wrap { position: relative; display: grid; place-items: center; }
.dz-icon-ring {
  position: absolute;
  inset: -14px;
  border: 2px solid rgba(30,136,229,.2);
  border-radius: 50%;
  animation: ringPulse 2.6s ease-out infinite;
}
.dz-icon {
  width: 78px; height: 78px;
  background: linear-gradient(135deg, var(--primary-light), rgba(30,136,229,.07));
  border: 1.5px solid rgba(30,136,229,.18);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--primary);
  transition: var(--transition);
}
.drop-zone:hover .dz-icon {
  background: linear-gradient(135deg, rgba(30,136,229,.18), rgba(30,136,229,.08));
  transform: scale(1.05);
}

.dz-text {
  display: flex; flex-direction: column; gap: 6px;
}
.dz-text strong {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.dz-text span { font-size: .88rem; color: var(--text-muted); }

/* Divider or */
.dz-divider {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 220px;
}
.dz-divider span {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.dz-divider em {
  font-style: normal;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dz-btn { min-width: 210px; justify-content: center; }

.dz-meta {
  display: flex; align-items: center;
  flex-wrap: wrap; justify-content: center;
  gap: 6px 16px;
}
.dz-meta span {
  display: flex; align-items: center; gap: 5px;
  font-size: .78rem; color: var(--text-muted);
}
.dz-meta svg { flex-shrink: 0; }

/* ── File List Panel ── */
.file-list-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.flp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex-wrap: wrap;
}
.flp-header h3 { font-size: 1rem; }
.flp-hint {
  font-size: .82rem;
  color: var(--text-muted);
  flex: 1;
}
.flp-add-btn {
  font-size: .82rem;
  padding: 7px 16px;
  cursor: pointer;
}

.flp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* File card */
.file-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
  cursor: grab;
  user-select: none;
}
.file-card:last-child { border-bottom: none; }
.file-card:hover { background: #F7FBFF; }
.file-card.dragging {
  opacity: .5;
  box-shadow: var(--shadow-md);
  cursor: grabbing;
}
.file-card.drag-target { border-top: 2px solid var(--primary); }

.fc-drag {
  color: var(--text-muted);
  cursor: grab;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}
.fc-drag:hover { color: var(--primary); background: var(--primary-light); }

.fc-icon {
  width: 38px; height: 38px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}

.fc-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.fc-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-size {
  font-size: .75rem;
  color: var(--text-muted);
}

.fc-order {
  width: 28px; height: 28px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  flex-shrink: 0;
}

.fc-remove {
  width: 30px; height: 30px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.fc-remove:hover {
  background: #FEE2E2;
  color: #DC2626;
}

/* Merge action bar */
.merge-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.mab-info {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; color: var(--text-muted);
}
.mab-dot { opacity: .5; }
.mab-btns { display: flex; align-items: center; gap: 10px; }
.mab-clear { padding: 9px 18px; font-size: .88rem; }
.mab-merge {
  min-width: 190px;
  box-shadow: 0 6px 20px rgba(255,112,67,.35);
}
.mab-merge:hover { box-shadow: 0 8px 28px rgba(255,112,67,.45); }

/* ════════════════════════════════════════════
   STEPS SECTION
════════════════════════════════════════════ */
.tool-steps-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #EEF4FB 100%);
}

.ts-header {
  text-align: center;
  margin-bottom: 56px;
}
.ts-header h2 { margin-bottom: 10px; }
.ts-header p  { font-size: 1.05rem; max-width: 440px; margin: 0 auto; }

.ts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.ts-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px 28px;
  transition: var(--transition);
  position: relative;
}
.ts-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30,136,229,.25);
}

.ts-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ts-num {
  font-family: 'Sora', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(30,136,229,.1);
  line-height: 1;
  letter-spacing: -.04em;
}
.ts-connector { color: var(--text-muted); opacity: .4; }

.ts-icon {
  width: 58px; height: 58px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: var(--transition);
}
.ts-card:hover .ts-icon { transform: scale(1.08); }
.ts-icon--blue   { background: #EFF6FF; color: var(--primary); }
.ts-icon--orange { background: #FFF7ED; color: var(--accent);  }
.ts-icon--green  { background: #F0FDF4; color: #43A047;         }

.ts-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.ts-card > p {
  font-size: .88rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.ts-tips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.ts-tips li {
  font-size: .8rem;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
}

/* ════════════════════════════════════════════
   TOOL FEATURE ROW
════════════════════════════════════════════ */
.tool-feat-row {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.tfr-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 0;
}
.tfr-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 36px;
}
.tfr-icon {
  width: 38px; height: 38px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.tfr-item > div {
  display: flex; flex-direction: column; gap: 3px;
}
.tfr-item strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.tfr-item span {
  font-size: .78rem;
  color: var(--text-muted);
  max-width: 200px;
}
.tfr-div {
  width: 1px; height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   FAQ SECTION
════════════════════════════════════════════ */
.faq-section {
  padding: 80px 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

/* Sidebar */
.faq-sidebar .section-pill { margin-bottom: 14px; display: inline-block; }
.faq-sidebar h2 { font-size: 1.8rem; margin-bottom: 14px; }
.faq-sidebar > p { font-size: .92rem; line-height: 1.7; margin-bottom: 32px; }

.faq-related {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.faq-related h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.faq-related-list { display: flex; flex-direction: column; gap: 8px; }
.frl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  border: 1px solid transparent;
}
.frl-item:hover {
  background: var(--primary-light);
  border-color: rgba(30,136,229,.15);
}
.frl-icon {
  font-size: 1.3rem;
  width: 36px; height: 36px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.frl-item strong { display: block; font-size: .88rem; font-weight: 700; }
.frl-item span   { display: block; font-size: .76rem; color: var(--text-muted); }

/* Accordion */
.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 20px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .97rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}
.faq-q:hover { color: var(--primary); }
.faq-q[aria-expanded="true"] { color: var(--primary); }

.faq-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .25s ease;
}
.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-a {
  overflow: hidden;
  transition: all .28s ease;
}
.faq-a[hidden] { display: block; max-height: 0; }
.faq-a:not([hidden]) { max-height: 400px; }

.faq-a-inner { padding: 0 4px 20px; }
.faq-a-inner p { font-size: .9rem; line-height: 1.75; color: var(--text-secondary); }

/* ════════════════════════════════════════════
   BOTTOM CTA
════════════════════════════════════════════ */
.tool-cta-bottom {
  padding: 64px 0 80px;
}
.tcb-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tcb-deco {
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  top: -180px; right: -80px;
  pointer-events: none;
}
.tcb-deco::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  background: rgba(255,112,67,.1);
  border-radius: 50%;
  bottom: -80px; left: -60px;
}
.tcb-card h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.tcb-card p {
  color: rgba(255,255,255,.78);
  font-size: .97rem;
  margin-bottom: 30px;
  position: relative; z-index: 1;
}
.tcb-card .btn { position: relative; z-index: 1; }

/* ════════════════════════════════════════════
   TOOL PAGE RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1050px) {
  .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .faq-sidebar { max-width: 600px; }
}

@media (max-width: 900px) {
  .tool-hero-inner { grid-template-columns: 1fr; }
  .tool-hero-visual { display: none; }
  .ts-grid { grid-template-columns: 1fr; gap: 16px; }
  .ts-connector { display: none; }
}

@media (max-width: 700px) {
  .tfr-inner { flex-direction: column; align-items: flex-start; padding: 0 16px; gap: 18px; }
  .tfr-div   { display: none; }
  .tfr-item  { padding: 0; }
  .drop-zone { padding: 44px 20px 36px; }
  .dz-icon   { width: 64px; height: 64px; }
  .flp-header { flex-direction: column; align-items: flex-start; }
  .merge-action-bar { flex-direction: column; align-items: stretch; }
  .mab-btns { flex-direction: column; }
  .mab-merge { width: 100%; justify-content: center; }
  .tcb-card  { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .tool-hero { padding: 36px 0 32px; }
  .dz-meta { gap: 4px 10px; }
  .file-card { gap: 10px; padding: 12px 14px; }
  .fc-size  { display: none; }
}


/* ════════════════════════════════════════════
   MERGE TOOL — FUNCTIONAL UI STATES
════════════════════════════════════════════ */

/* ── Error Banner ── */
.merge-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-left: 4px solid #EF4444;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 2px;
  color: #B91C1C;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.5;
}
.merge-error svg { color: #EF4444; flex-shrink: 0; margin-top: 1px; }
.merge-error span { flex: 1; }
.merge-error-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  color: #EF4444;
  cursor: pointer;
  padding: 0 4px;
  opacity: .7;
  flex-shrink: 0;
  transition: opacity .15s;
}
.merge-error-close:hover { opacity: 1; }

/* ── Merge Button disabled state ── */
.mab-merge:disabled,
.mab-merge[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── File card dragging states ── */
.file-card.dragging {
  opacity: .45;
  background: var(--primary-light);
  box-shadow: var(--shadow-md);
  cursor: grabbing;
}
.file-card.drag-target {
  border-top: 2.5px solid var(--primary);
  background: #F0F7FF;
}

/* Panel header responsive layout */
.flp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex-wrap: wrap;
}
.flp-header-left { flex: 1; min-width: 120px; }
.flp-header-left h3 { font-size: 1rem; margin-bottom: 2px; }
.flp-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.flp-reset-btn {
  font-size: .82rem;
  padding: 7px 14px;
  border-color: var(--border);
  color: var(--text-muted);
}
.flp-reset-btn:hover {
  border-color: #EF4444;
  color: #EF4444;
  background: #FEF2F2;
}

/* ── Processing Spinner ── */
.merge-processing {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 32px 56px;
  box-shadow: var(--shadow-md);
}
.mp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

/* Spinner ring */
.mp-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
}
.mp-spin {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spinRotate 1.2s linear infinite;
  transform-origin: center;
}
@keyframes spinRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.mp-spin-icon {
  position: relative;
  z-index: 1;
  color: var(--primary);
  animation: spinnerPulse 1.4s ease-in-out infinite;
}
@keyframes spinnerPulse {
  0%,100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: .6; transform: scale(.9); }
}

.mp-text { display: flex; flex-direction: column; gap: 5px; }
.mp-text strong {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.mp-text span { font-size: .88rem; color: var(--text-muted); }

/* Progress bar */
.mp-progress {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mp-progress-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.mp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  width: 0%;
  transition: width .35s ease;
}
.mp-progress-label {
  font-size: .8rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  color: var(--primary);
  min-width: 38px;
  text-align: right;
}

.mp-privacy {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
}
.mp-privacy svg { color: #43A047; flex-shrink: 0; }

/* ── Result Panel ── */
.merge-result {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.mr-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 52px 32px 44px;
  text-align: center;
}

/* Success checkmark icon */
.mr-success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
  border: 2px solid #86EFAC;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #16A34A;
  animation: successPop .45s cubic-bezier(.175,.885,.32,1.275) both;
}
@keyframes successPop {
  from { opacity: 0; transform: scale(.5); }
  to   { opacity: 1; transform: scale(1); }
}

.mr-text { display: flex; flex-direction: column; gap: 6px; }
.mr-text strong {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}
.mr-text span { font-size: .88rem; color: var(--text-muted); }

/* File preview card */
.mr-file-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  width: 100%;
  max-width: 400px;
}
.mr-file-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}
.mr-file-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.mr-file-name {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr-file-meta {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.mr-file-badge {
  background: var(--primary);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 4px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}

/* Action buttons */
.mr-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.mr-download-btn {
  min-width: 220px;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(30,136,229,.35);
}
.mr-download-btn:hover {
  box-shadow: 0 8px 28px rgba(30,136,229,.45);
}
.mr-new-btn {
  font-size: .9rem;
}

/* Next steps */
.mr-next-steps {
  width: 100%;
  max-width: 420px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.mr-next-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: left;
}
.mr-next-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mr-next-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}
.mr-next-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ── Responsive for new states ── */
@media (max-width: 540px) {
  .mr-inner         { padding: 36px 20px 32px; gap: 18px; }
  .mr-actions       { flex-direction: column; align-items: stretch; }
  .mr-download-btn  { min-width: unset; width: 100%; justify-content: center; }
  .mr-new-btn       { width: 100%; justify-content: center; }
  .mp-inner         { gap: 16px; }
  .merge-processing { padding: 44px 20px 36px; }
  .flp-header       { padding: 14px 16px; }
  .flp-header-right { gap: 6px; }
}


/* ════════════════════════════════════════════
   SPLIT PDF TOOL — UI STYLES
════════════════════════════════════════════ */

/* Accent-coloured drop zone */
.drop-zone--orange:hover,
.drop-zone--orange:focus,
.drop-zone--orange.drag-over {
  border-color: var(--accent) !important;
  background: #FFF3EF !important;
  box-shadow: var(--shadow-md), 0 0 0 8px rgba(255,112,67,.07) !important;
}

/* Orange pill variant */
.th-pill--orange {
  background: rgba(255,112,67,.08);
  border-color: rgba(255,112,67,.2);
  color: var(--accent);
}
.th-pill--orange svg { color: var(--accent-dark); }

/* ── Split Panel wrapper ── */
.split-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* File bar */
.sp-file-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.sp-file-icon {
  width: 40px; height: 40px;
  background: #FBE9E7;
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.sp-file-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.sp-file-name {
  font-size: .9rem; font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-file-meta { font-size: .76rem; color: var(--text-muted); }
.sp-change-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.sp-change-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #FFF3EF;
}

/* ── Mode cards ── */
.sp-modes { padding: 24px 24px 0; }
.sp-modes-label {
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.sp-mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sp-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.sp-mode-card input { display: none; } /* hidden radio */
.sp-mode-card:hover { border-color: rgba(255,112,67,.4); background: #FFF8F6; }
.sp-mode-card--active {
  border-color: var(--accent);
  background: #FFF3EF;
}
.sp-mode-icon {
  width: 38px; height: 38px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}
.sp-mode-card--active .sp-mode-icon { background: #FBE9E7; color: var(--accent); }
.sp-mode-text { flex: 1; }
.sp-mode-text strong {
  display: block; font-size: .88rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 3px;
}
.sp-mode-text span { font-size: .76rem; color: var(--text-muted); line-height: 1.4; }
.sp-mode-check {
  display: none;
  width: 20px; height: 20px;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.sp-mode-card--active .sp-mode-check { display: grid; }

/* ── Range / Page input ── */
.sp-range-wrap {
  padding: 20px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sp-range-inner { display: flex; flex-direction: column; gap: 8px; }
.sp-range-label {
  font-size: .88rem; font-weight: 600;
  color: var(--text-primary);
}
.sp-range-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sp-range-input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: var(--transition);
  outline: none;
}
.sp-range-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,112,67,.12); }
.sp-range-valid-icon {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
}
.sp-range-hint {
  font-size: .8rem;
  line-height: 1.5;
  min-height: 20px;
  transition: color .2s;
}
.hint-ok  { color: #16A34A; }
.hint-err { color: #DC2626; }

/* Page grid */
.sp-page-grid-wrap { display: flex; flex-direction: column; gap: 8px; }
.sp-page-grid-label {
  font-size: .8rem; font-weight: 600;
  color: var(--text-secondary);
}
.sp-page-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sp-page-btn {
  width: 38px; height: 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: 'Sora', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: grid; place-items: center;
}
.sp-page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #FFF3EF;
}
.sp-page-btn--selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 3px 8px rgba(255,112,67,.35);
}
.sp-page-grid-sub {
  font-size: .76rem; color: var(--text-muted);
  font-style: italic;
}

/* ── Preview chips ── */
.sp-preview { padding: 16px 24px 0; }
.sp-preview-label {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.sp-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px 4px 6px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.sp-chip-num {
  width: 18px; height: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .65rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  flex-shrink: 0;
}
.sp-chip--more {
  background: #FBE9E7;
  color: var(--accent);
  border-color: rgba(255,112,67,.2);
  font-weight: 700;
  padding: 4px 12px;
}

/* ── Action bar ── */
.sp-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  flex-wrap: wrap;
}
.sp-action-info {
  font-size: .88rem; color: var(--text-muted);
}
.sp-split-btn {
  box-shadow: 0 6px 20px rgba(255,112,67,.35);
  min-width: 160px; justify-content: center;
}
.sp-split-btn:not(:disabled):hover {
  box-shadow: 0 8px 28px rgba(255,112,67,.45);
}
.sp-split-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ── Result file rows ── */
.sr-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.sr-file-list::-webkit-scrollbar { width: 5px; }
.sr-file-list::-webkit-scrollbar-track { background: transparent; }
.sr-file-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }

.sr-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: var(--transition);
}
.sr-file-row:hover { border-color: var(--accent); background: #FFF8F6; }
.sr-file-icon {
  width: 36px; height: 36px;
  background: #FBE9E7;
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.sr-file-details {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.sr-fname {
  font-size: .84rem; font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sr-fsize { font-size: .72rem; color: var(--text-muted); }
.sr-dl-btn {
  padding: 6px 12px;
  font-size: .78rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Illustration — split output docs */
.thv-split-wrap { gap: 12px !important; }
.thv-split-out {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.thv-doc-sm {
  width: 68px;
  padding: 10px 10px 8px;
  animation: docFloat 4s ease-in-out infinite;
}
.thv-doc-sm--2 { animation-delay: .5s; }
.thv-doc-sm--3 { animation-delay: 1s; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .sp-mode-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sp-file-bar    { padding: 12px 16px; }
  .sp-modes       { padding: 16px 16px 0; }
  .sp-range-wrap  { padding: 16px 16px 0; }
  .sp-preview     { padding: 14px 16px 0; }
  .sp-action-bar  { padding: 14px 16px; flex-direction: column; align-items: stretch; }
  .sp-split-btn   { width: 100%; justify-content: center; }
  .sp-page-btn    { width: 34px; height: 34px; font-size: .72rem; }
  .sr-file-list   { max-height: 260px; }
}


/* ════════════════════════════════════════════
   COMPRESS PDF TOOL — LEVEL CARDS
════════════════════════════════════════════ */

/* Level cards container */
.cp-level-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 24px;
}

/* Individual level card */
.cp-level-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.cp-level-card:hover {
  border-color: rgba(67,160,71,.4);
  background: #F1F8F1;
}
.cp-level-card--active {
  border-color: #43A047;
  background: #F1F8F1;
}

/* Icon in level card */
.cp-level-icon {
  width: 38px; height: 38px;
  background: var(--surface-2);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.cp-level-card--active .cp-level-icon {
  background: #E8F5E9;
  color: #43A047;
}

/* Text in level card */
.cp-level-text { flex: 1; }
.cp-level-text strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.cp-level-text span {
  display: block;
  font-size: .76rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.cp-level-text em {
  display: block;
  font-style: normal;
  font-size: .72rem;
  color: var(--text-muted);
  opacity: .8;
  line-height: 1.4;
}

/* Checkmark badge */
.cp-level-check {
  display: none;
  width: 20px; height: 20px;
  background: #43A047;
  border-radius: 50%;
  color: #fff;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.cp-level-card--active .cp-level-check { display: grid; }

/* Compress panel responsive */
@media (max-width: 860px) {
  .cp-level-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cp-level-cards { padding: 12px 16px; }
}

/* ═══════════════════════════════════════════
   LANGUAGE SWITCHER
   ═══════════════════════════════════════════ */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: transparent;
  border: 1.5px solid rgba(30, 136, 229, 0.35);
  border-radius: 9px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  font-family: inherit;
}

.lang-trigger:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.12);
}

.lang-globe {
  flex-shrink: 0;
  color: var(--primary);
}

.lang-caret {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
}

.lang-switcher--open .lang-caret {
  transform: rotate(180deg);
}

/* Dropdown panel */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 310px;
  background: #fff;
  border: 1px solid rgba(30, 136, 229, 0.15);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(21, 101, 192, 0.14), 0 2px 8px rgba(0,0,0,0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.22s cubic-bezier(.4,0,.2,1),
              transform 0.22s cubic-bezier(.4,0,.2,1),
              visibility 0.22s;
  z-index: 9999;
}

.lang-switcher--open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-dropdown-inner {
  padding: 16px;
}

.lang-dropdown-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #90a4b8;
  margin: 0 0 12px 4px;
}

/* 3-column grid */
.lang-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: none;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: left;
  font-family: inherit;
  white-space: nowrap;
}

.lang-option:hover {
  background: var(--primary-light);
  border-color: rgba(30, 136, 229, 0.25);
  color: var(--primary);
}

.lang-option--active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.lang-option span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile responsive */
@media (max-width: 768px) {
  /* Fixed positioning — never clips off-screen */
  .lang-dropdown {
    position: fixed !important;
    top: var(--nav-h, 60px) !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    transform-origin: top center;
  }
  .lang-switcher--open .lang-dropdown {
    transform: translateY(0) scale(1);
  }

  /* Horizontal wrapping row of pills */
  .lang-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .lang-grid li {
    flex: 0 0 auto;
  }

  /* KEY FIX: override width:100% so pill shrinks to content */
  .lang-option {
    width: auto !important;
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
    border-radius: 20px !important;
    gap: 5px !important;
    white-space: nowrap !important;
  }

  /* Globe icon only on trigger button */
  .lang-label {
    display: none !important;
  }

  .lang-trigger {
    padding: 7px 9px;
    gap: 4px;
  }
}
