/* ==========================================================================
   KKSuite - Smallpdf Exact Design System (FULL WIDTH FLUID EDITION)
   100% Full Width across monitor screen, Zero narrow constraints,
   Smallpdf Colored Icon Badges, Fluid Tool Workspaces, 0 Emojis, 100% Vector SVGs.
   ========================================================================== */

/* Font stylesheet is discovered in HTML with preconnected hosts. */

:root {
  /* Smallpdf Core Colors */
  --sp-primary: #0055ff;
  --sp-primary-hover: #0048d9;
  --sp-primary-active: #003cb2;
  --sp-primary-light: #e5eeff;
  --sp-focus-ring: rgba(204, 221, 255, 1);

  /* Typography & Surfaces */
  --sp-bg: #ffffff;
  --sp-card-bg: #fafafa;
  --sp-card-bg-hover: #f4f4f4;
  --sp-border: #e8e8e8;
  --sp-border-hover: #d1d5db;
  --sp-footer-bg: #f4f4f4;

  --sp-text-main: #1a1a1a;
  --sp-text-muted: #555555;
  --sp-text-subtle: #757575;

  /* Smallpdf Tool Icon Badges */
  --badge-red: #F23030;
  --badge-blue: #3D99F5;
  --badge-yellow: #FFB700;
  --badge-purple: #7961F2;
  --badge-teal: #0fc0c5;
  --badge-green: #059669;
  --badge-pink: #E667E6;
  --badge-orange: #FF6B4A;
  --badge-slate: #3D99F5;
  --badge-indigo: #6366F1;
  --badge-amber: #D97706;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--sp-bg);
  color: var(--sp-text-main);
  line-height: 1.45;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ==========================================================================
   HEADER (FULL WIDTH)
   ========================================================================== */
.sp-header {
  position: sticky;
  top: 0;
  z-index: 400;
  height: 60px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--sp-border);
  display: flex;
  align-items: center;
  width: 100%;
}

.sp-header-container {
  width: 100%;
  max-width: 100%;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .sp-header-container {
    padding: 0 16px;
  }
}

.sp-header-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Smallpdf Multi-Tile Logo */
.sp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--sp-text-main);
  letter-spacing: -0.4px;
}

.sp-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  grid-gap: 3px;
}

.sp-logo-tile {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.sp-tile-1 { background: #F23030; }
.sp-tile-2 { background: #3D99F5; }
.sp-tile-3 { background: #FFB700; }
.sp-tile-4 { background: #7961F2; }

/* Header Tools Dropdown & Nav Links */
.sp-tools-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid var(--sp-border);
  background: transparent;
  color: var(--sp-text-main);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.sp-tools-btn:hover {
  background: #f4f4f4;
  border-color: #d1d5db;
}

.sp-nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.sp-nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--sp-text-main);
  padding: 8px 0;
  transition: color 0.15s;
}

.sp-nav-link:hover {
  color: var(--sp-primary);
}

.sp-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-header-nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--sp-text-main);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.sp-header-nav-link:hover {
  color: var(--sp-primary);
  background-color: #f4f4f5;
}

/* Mobile Menu Button - Screenshot 3 style */
.sp-mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sp-mobile-menu-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.sp-mobile-menu-btn.is-active {
  background: #f3f4f6;
  border-color: #cbd5e1;
}

.sp-mobile-menu-btn.is-active .hamburger-icon {
  display: none !important;
}

.sp-mobile-menu-btn.is-active .close-icon {
  display: block !important;
}

/* Mobile Navigation Drawer */
.sp-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 399;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sp-mobile-menu.is-open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.sp-mobile-menu-content {
  background: #ffffff;
  width: 100%;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 24px 20px 36px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  border-bottom: 1px solid #e5e7eb;
  transform: translateY(-8px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-mobile-menu.is-open .sp-mobile-menu-content {
  transform: translateY(0);
}

.sp-mobile-section {
  margin-bottom: 22px;
}

.sp-mobile-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sp-text-muted);
  margin-bottom: 8px;
  padding-left: 6px;
}

.sp-mobile-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.sp-mobile-item:hover,
.sp-mobile-item:active {
  background: #f8fafc;
}

.sp-mobile-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #ffffff;
}

.sp-mobile-icon svg {
  width: 20px;
  height: 20px;
}

.sp-mobile-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.sp-mobile-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--sp-text-main);
  line-height: 1.3;
}

.sp-mobile-sub {
  font-size: 12.5px;
  color: var(--sp-text-muted);
  line-height: 1.4;
}

.sp-mobile-arrow {
  color: #94a3b8;
  flex-shrink: 0;
}

.sp-mobile-actions {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.sp-mobile-all-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
}

body.sp-menu-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .sp-nav-list {
    display: none !important;
  }
  .desktop-only {
    display: none !important;
  }
  .sp-mobile-menu-btn {
    display: inline-flex !important;
  }
}

.sp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  background: var(--sp-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.sp-btn-primary:hover {
  background: var(--sp-primary-hover);
}

.sp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  background: transparent;
  color: var(--sp-primary);
  border: 1px solid var(--sp-primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.sp-btn-secondary:hover {
  background: var(--sp-primary-light);
}

/* ==========================================================================
   HERO SECTION (FULL WIDTH)
   ========================================================================== */
.sp-hero {
  width: 100%;
  max-width: 100%;
  padding: 56px 36px 36px;
  text-align: center;
}

@media (max-width: 640px) {
  .sp-hero {
    padding: 36px 16px 24px;
  }
}

.sp-hero-title {
  font-size: 52px;
  line-height: 60px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--sp-text-main);
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .sp-hero-title {
    font-size: 34px;
    line-height: 42px;
  }
}

.sp-hero-subtitle {
  font-size: 19px;
  line-height: 28px;
  color: var(--sp-text-muted);
  max-width: 740px;
  margin: 0 auto 32px;
  font-weight: 400;
}

/* Smallpdf Search Input */
.sp-search-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 28px;
  position: relative;
}

.sp-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--sp-text-subtle);
  pointer-events: none;
}

.sp-search-input {
  width: 100%;
  height: 50px;
  padding: 0 20px 0 48px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--sp-text-main);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sp-search-input:focus {
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 3px var(--sp-focus-ring);
}

/* Filter Pills */
.sp-filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sp-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 19px;
  border: 1px solid var(--sp-border);
  background: #ffffff;
  color: var(--sp-text-muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sp-filter-btn:hover {
  border-color: #c7c7c7;
  color: var(--sp-text-main);
}

.sp-filter-btn.active {
  background: var(--sp-text-main);
  color: #ffffff;
  border-color: var(--sp-text-main);
}

/* ==========================================================================
   TOOL CARDS GRID (FULL WIDTH FLUID GRID - 4 COLUMNS ON DESKTOP)
   ========================================================================== */
.sp-section-wrap {
  width: 100%;
  max-width: 100%;
  padding: 24px 36px 64px;
}

@media (max-width: 640px) {
  .sp-section-wrap {
    padding: 20px 16px 40px;
  }
}

.sp-section-header {
  text-align: center;
  margin-bottom: 32px;
}

.sp-section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--sp-text-main);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.sp-section-sub {
  font-size: 17px;
  color: var(--sp-text-muted);
}

/* Dynamic Full-Width 4 Columns on Wide Screens, 3 on Desktop, 2 on Tablet, 1 on Mobile */
.sp-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

@media (max-width: 1400px) {
  .sp-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 990px) {
  .sp-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .sp-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Smallpdf Exact Tool Card */
.sp-card {
  position: relative;
  display: block;
  min-height: 118px;
  padding: 20px 48px 20px 68px;
  background-color: var(--sp-card-bg);
  border: 1px solid var(--sp-border);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sp-card:hover {
  background-color: var(--sp-card-bg-hover);
  border-color: var(--sp-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Colored Icon Square at Top-Left */
.sp-icon-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  pointer-events: none;
}

.sp-icon-badge svg {
  width: 22px;
  height: 22px;
}

/* Chevron Right at Top-Right */
.sp-card-chevron {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  color: var(--sp-text-subtle);
  pointer-events: none;
  transition: transform 0.15s ease, color 0.15s ease;
}

.sp-card:hover .sp-card-chevron {
  color: var(--sp-text-main);
  transform: translateX(3px);
}

.sp-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--sp-text-main);
  margin-bottom: 5px;
  line-height: 22px;
}

.sp-card-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--sp-text-muted);
}

/* Badge Color Classes */
.badge-compress { background-color: var(--badge-red); }
.badge-resize { background-color: var(--badge-blue); }
.badge-convert { background-color: var(--badge-yellow); }
.badge-color { background-color: var(--badge-pink); }
.badge-cutter { background-color: var(--badge-purple); }
.badge-record { background-color: var(--badge-teal); }
.badge-speed { background-color: var(--sp-primary); }
.badge-volume { background-color: var(--badge-orange); }
.badge-qr { background-color: var(--badge-green); }
.badge-password { background-color: var(--badge-slate); }
.badge-word { background-color: var(--badge-indigo); }
.badge-age { background-color: var(--badge-amber); }

/* ==========================================================================
   FEATURES SECTION (FULL WIDTH)
   ========================================================================== */
.sp-features-section {
  width: 100%;
  max-width: 100%;
  background-color: #fafafa;
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
  padding: 64px 36px;
}

.sp-features-grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 860px) {
  .sp-features-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.sp-feature-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sp-feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--sp-primary-light);
  color: var(--sp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-feature-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.sp-feature-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--sp-text-main);
}

.sp-feature-desc {
  font-size: 15px;
  line-height: 24px;
  color: var(--sp-text-muted);
}

/* ==========================================================================
   TOOL WORKSPACE PAGE (FULL WIDTH & ROOMY)
   ========================================================================== */
.sp-tool-page {
  width: 100%;
  max-width: 100%;
  padding: 32px 36px 64px;
  flex: 1;
}

@media (max-width: 640px) {
  .sp-tool-page {
    padding: 20px 16px 40px;
  }
}

.sp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--sp-text-subtle);
  margin-bottom: 28px;
}

.sp-breadcrumb a:hover {
  color: var(--sp-text-main);
  text-decoration: underline;
}

.sp-tool-header {
  text-align: center;
  margin-bottom: 36px;
}

.sp-tool-h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--sp-text-main);
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

@media (max-width: 640px) {
  .sp-tool-h1 {
    font-size: 30px;
  }
}

.sp-tool-subtitle {
  font-size: 18px;
  color: var(--sp-text-muted);
}

/* Full-Width / Generous Dropzone Box */
.sp-dropzone-box {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 36px;
  border: 2px dashed #c7d2fe;
  border-radius: 8px;
  background-color: #fafbfc;
  padding: 56px 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sp-dropzone-box:hover, .sp-dropzone-box.drag-over {
  border-color: var(--sp-primary);
  background-color: #f0f5ff;
}

.sp-dropzone-illustration {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  color: var(--sp-primary);
}

.sp-btn-choose-files {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 36px;
  border-radius: 4px;
  background: var(--sp-primary);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 85, 255, 0.25);
  transition: background-color 0.15s ease;
}

.sp-btn-choose-files:hover {
  background: var(--sp-primary-hover);
}

.sp-drop-hint {
  margin-top: 14px;
  font-size: 15px;
  color: var(--sp-text-subtle);
}

/* Full Width Tool Workspace Card */
.sp-workspace-card {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--sp-border);
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

@media (max-width: 640px) {
  .sp-workspace-card {
    padding: 20px;
  }
}

.sp-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.sp-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-form-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--sp-text-main);
}

.sp-input, .sp-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  outline: none;
  background: #ffffff;
  color: var(--sp-text-main);
  transition: border-color 0.15s;
}

.sp-input:focus, .sp-select:focus {
  border-color: var(--sp-primary);
}

/* Comparison / Preview Box */
.sp-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

@media (max-width: 680px) {
  .sp-preview-grid {
    grid-template-columns: 1fr;
  }
}

.sp-preview-pane {
  background: #fafafa;
  border: 1px solid var(--sp-border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.sp-preview-pane img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 6px;
  margin-top: 12px;
}

.sp-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER (FULL WIDTH)
   ========================================================================== */
.sp-footer {
  margin-top: auto;
  background-color: var(--sp-footer-bg);
  border-top: 1px solid var(--sp-border);
  padding: 56px 36px 28px;
  width: 100%;
  max-width: 100%;
}

.sp-footer-inner {
  width: 100%;
  max-width: 100%;
}

.sp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 880px) {
  .sp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 520px) {
  .sp-footer-grid {
    grid-template-columns: 1fr;
  }
}


.sp-footer-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sp-text-main);
  margin-bottom: 14px;
}

.sp-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-footer-links a {
  font-size: 15px;
  color: var(--sp-text-muted);
  transition: color 0.15s;
}

.sp-footer-links a:hover {
  color: var(--sp-primary);
}

.sp-footer-bottom {
  border-top: 1px solid #e0e0e0;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--sp-text-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   HEADER CATEGORY DROPDOWNS (Image, Music, Utility)
   ========================================================================== */
.sp-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sp-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--sp-text-main);
  padding: 18px 4px;
  cursor: pointer;
  transition: color 0.15s ease;
  text-decoration: none;
}

.sp-nav-btn:hover, .sp-nav-item:hover .sp-nav-btn {
  color: var(--sp-primary);
}

.sp-nav-btn svg {
  transition: transform 0.2s ease;
}

.sp-nav-item:hover .sp-nav-btn svg {
  transform: rotate(180deg);
}

.sp-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--sp-border);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 600;
  animation: spFadeDown 0.18s ease-out;
}

@keyframes spFadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sp-nav-item:hover .sp-dropdown-menu,
.sp-nav-item:focus-within .sp-dropdown-menu,
.sp-dropdown-menu.active {
  display: flex;
}

.sp-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.sp-dropdown-item:hover {
  background-color: #f4f4f4;
}

.sp-dropdown-item .item-badge {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.sp-dropdown-item .item-badge svg {
  width: 18px;
  height: 18px;
}

.sp-dropdown-item .item-text {
  display: flex;
  flex-direction: column;
}

.sp-dropdown-item .item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--sp-text-main);
  line-height: 18px;
}

.sp-dropdown-item .item-sub {
  font-size: 12px;
  color: var(--sp-text-subtle);
  line-height: 16px;
}

/* Category Sections on Home */
.sp-category-block {
  margin-bottom: 44px;
  width: 100%;
}

.sp-category-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sp-border);
}

.sp-category-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--sp-text-main);
  letter-spacing: -0.3px;
}

.sp-category-count {
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--sp-primary-light);
  color: var(--sp-primary);
}

/* ==========================================================================
   SMALLPDF EXACT TOOL PAGE DESIGN (Matching Screenshots 1, 2, 3)
   Solid Colored Hero Dropzone, Inner Dashed Border, Split White Button,
   2-Column Overview with Green Checkmarks, 4-Block Features Grid, SEO FAQs
   ========================================================================== */

.sp-tool-wrapper {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

/* Breadcrumbs */
.sp-tool-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--sp-text-subtle);
  margin-bottom: 24px;
}

.sp-tool-breadcrumb a {
  color: var(--sp-text-muted);
  transition: color 0.15s;
}

.sp-tool-breadcrumb a:hover {
  color: var(--sp-primary);
  text-decoration: underline;
}

/* Tool Title */
.sp-tool-h1-center {
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  color: var(--sp-text-main);
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

/* The Signature Smallpdf Colored Dropzone */
.sp-tool-dropzone-hero {
  position: relative;
  width: 100%;
  min-height: 290px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.sp-tool-dropzone-hero:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Inner Dashed White Border (from Screenshot 1) */
.sp-dropzone-inner-border {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 1.5px dashed rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  pointer-events: none;
}

/* Dropzone Themes based on Tool */
.hero-theme-red { background-color: #F23030; }
.hero-theme-blue { background-color: #3D99F5; }
.hero-theme-yellow { background-color: #FFB700; }
.hero-theme-purple { background-color: #7961F2; }
.hero-theme-green { background-color: #059669; }
.hero-theme-teal { background-color: #0fc0c5; }
.hero-theme-orange { background-color: #FF6B4A; }
.hero-theme-indigo { background-color: #6366F1; }
.hero-theme-slate { background-color: #3D99F5; }
.hero-theme-pink { background-color: #E667E6; }
.hero-theme-amber { background-color: #D97706; }

/* White Vector Graphic */
.sp-hero-file-icon {
  width: 72px;
  height: 52px;
  color: #ffffff;
  margin-bottom: 20px;
  z-index: 2;
}

.sp-hero-file-icon svg {
  width: 100%;
  height: 100%;
}

/* Big White Choose Files Button with Split Dropdown Arrow (Screenshot 1) */
.sp-btn-split-wrap {
  display: inline-flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  z-index: 2;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sp-btn-split-wrap:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.sp-btn-split-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 28px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--sp-text-main);
  cursor: pointer;
}

.sp-btn-split-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  border-left: 1px solid #e5e7eb;
  background: transparent;
  border-top: none;
  border-right: none;
  border-bottom: none;
  color: var(--sp-text-main);
  cursor: pointer;
}

.sp-hero-drop-text {
  margin-top: 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  z-index: 2;
}

/* ==========================================================================
   2-COLUMN OVERVIEW ROW (Screenshot 1)
   Left: Intro Paragraph | Right: Green Checkmark Bullet Points
   ========================================================================== */
.sp-tool-overview-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 36px;
  padding: 20px 0 36px;
  border-bottom: 1px solid var(--sp-border);
}

@media (max-width: 768px) {
  .sp-tool-overview-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.sp-overview-desc {
  font-size: 16px;
  line-height: 26px;
  color: var(--sp-text-muted);
}

.sp-checkmarks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 22px;
  color: var(--sp-text-main);
  font-weight: 500;
}

.sp-check-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #10b981;
  margin-top: 1px;
}

/* ==========================================================================
   4-FEATURE HIGHLIGHTS GRID (Screenshot 2)
   How it Works, Security, Multi-Platform, File Support
   ========================================================================== */
.sp-features-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--sp-border);
}

@media (max-width: 768px) {
  .sp-features-grid-4 {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0;
  }
}

.sp-feature-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-feature-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-feature-head-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--sp-text-main);
}

.sp-feature-head-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--sp-text-main);
}

.sp-feature-body {
  font-size: 15px;
  line-height: 24px;
  color: var(--sp-text-muted);
}

/* ==========================================================================
   FAQ ACCORDION SECTION (Screenshot 3 - Top Tier SEO)
   ========================================================================== */
.sp-faq-section {
  padding: 56px 0 32px;
  max-width: 860px;
  margin: 0 auto;
}

.sp-faq-h2 {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  color: var(--sp-text-main);
  margin-bottom: 40px;
  letter-spacing: -0.4px;
}

.sp-faq-list {
  display: flex;
  flex-direction: column;
}

.sp-faq-item {
  border-bottom: 1px solid var(--sp-border);
}

.sp-faq-question {
  width: 100%;
  padding: 20px 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: var(--sp-text-main);
  cursor: pointer;
  transition: color 0.15s;
}

.sp-faq-question:hover {
  color: var(--sp-primary);
}

.sp-faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--sp-text-subtle);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.sp-faq-item.active .sp-faq-chevron {
  transform: rotate(180deg);
}

.sp-faq-answer {
  display: none;
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 25px;
  color: var(--sp-text-muted);
}

.sp-faq-item.active .sp-faq-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   KKSuite Custom Global Toast (Replaces native browser Chrome popups)
   -------------------------------------------------------------------------- */
.sp-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px) scale(0.96);
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 20px;
  background: #181818;
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  z-index: 999999;
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-family: var(--sp-font, system-ui, -apple-system, sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  pointer-events: none;
}

.sp-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.sp-toast-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #34d399;
}

.sp-toast[data-type="error"] .sp-toast-icon {
  color: #f87171;
}

.sp-toast[data-type="info"] .sp-toast-icon {
  color: #60a5fa;
}

.sp-toast-text {
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
