/* ============================================================
   FastFileTools.online — Main Stylesheet
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --bg: #f4f6ff;
  --surface: #ffffff;
  --surface-soft: #eef2ff;
  --text: #0f172a;
  --muted: #5b6475;
  --line: #dde3f2;
  --p1: #5b21b6;
  --p2: #4338ca;
  --b1: #2563eb;
  --b2: #3b82f6;
  --success: #059669;
  --error: #dc2626;
  --warning: #d97706;
  --shadow: 0 14px 38px rgba(46, 48, 146, 0.12);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 16px 40px rgba(46, 48, 146, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(91, 33, 182, 0.18), transparent 45%),
    radial-gradient(circle at 85% 8%, rgba(37, 99, 235, 0.1), transparent 30%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; transition: color 0.15s; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { letter-spacing: -0.025em; margin: 0 0 0.5em; line-height: 1.2; }
p { margin: 0 0 0.6em; }
ul, ol { margin: 0; padding: 0 0 0 1.4em; }
li { margin-bottom: 0.35em; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  background: rgba(248, 250, 255, 0.88);
  border-bottom: 1px solid rgba(221, 227, 242, 0.7);
}

.topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: contain;
}

/* ---- Mega Navigation ---- */
.mega-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.menu-item { position: relative; }

.menu-trigger {
  border: 0;
  background: transparent;
  color: #1f2a44;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.menu-trigger:hover,
.menu-item.open .menu-trigger {
  background: var(--surface-soft);
  color: var(--p2);
}

.caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
  transition: transform 0.2s;
}

.menu-item.open .caret {
  transform: rotate(-135deg) translateY(-1px);
}

.mega-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 94vw);
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  padding: 18px;
  z-index: 60;
}

.menu-item.open .mega-panel { display: block; }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
}

.panel-group-title {
  font-size: 0.75rem;
  color: #8492aa;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
  font-weight: 700;
  padding: 0 4px;
}

.panel-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  border-radius: 10px;
  color: #1f2a44;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.panel-link::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--b1));
  flex-shrink: 0;
  opacity: 0.6;
}

.panel-link:hover {
  background: #eef3ff;
  color: var(--p2);
}

.panel-link:hover::before { opacity: 1; }

.panel-link.soon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9ca3af;
  cursor: default;
  pointer-events: none;
}

.panel-link.soon::before { opacity: 0.3; }

.panel-link.soon em {
  font-style: normal;
  font-size: 0.72rem;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
}

/* ---- Right Actions ---- */
.right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---- Language Picker ---- */
.lang-picker {
  position: relative;
  flex-shrink: 0;
}

.lang-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  background: transparent;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.lang-picker-btn:hover,
.lang-picker.open .lang-picker-btn {
  border-color: var(--accent);
  background: var(--b2);
  color: var(--accent);
}

.lang-flag { font-size: 1.1rem; line-height: 1; }
.lang-code { letter-spacing: 0.04em; }

.lang-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  transition: transform 0.2s;
}

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

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
  z-index: 9999;
  overflow: hidden;
  padding: 6px;
}

.lang-picker.open .lang-dropdown {
  display: block;
  animation: fadeDown 0.14s ease;
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.1s;
  cursor: pointer;
}

.lang-option:hover { background: var(--b2); }

.lang-option.lang-active {
  background: var(--b2);
  color: var(--accent);
  font-weight: 600;
}

.lang-native { flex: 1; }

.lang-check {
  font-size: 0.78rem;
  color: var(--accent);
  margin-left: auto;
  flex-shrink: 0;
}

/* RTL support inside dropdown */
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--p1), var(--b1));
  color: #fff;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 6px 20px rgba(67, 56, 202, 0.3);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(67, 56, 202, 0.38);
}

.btn:active { transform: translateY(0); }

.btn-ghost {
  background: #fff;
  color: #1f2a44;
  border-color: var(--line);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.btn-ghost:hover {
  background: var(--surface-soft);
  border-color: #b9c3e0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.28);
}

.btn-success:hover {
  box-shadow: 0 10px 28px rgba(5, 150, 105, 0.36);
}

/* ---- Menu Plain Link ---- */
.menu-link-plain {
  text-decoration: none;
  color: #1f2a44;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.menu-link-plain:hover {
  background: var(--surface-soft);
  color: var(--p2);
}

/* ---- Hero ---- */
/* ================================================================
   HERO — Redesigned
   ================================================================ */
.hero-wrap {
  margin-top: 24px;
  position: relative;
}

/* Glow blobs outside hero card */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}

.hero-blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(139,92,246,0.28), transparent 70%);
  top: -80px; left: -60px;
}

.hero-blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(59,130,246,0.22), transparent 70%);
  bottom: -60px; right: -40px;
}

.hero-blob-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(167,139,250,0.18), transparent 70%);
  top: 30%; left: 40%;
}

.hero-main {
  background: linear-gradient(135deg, #1e1045 0%, #1e3a7a 55%, #1a3fa8 100%);
  border-radius: 28px;
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: 44px;
  align-items: center;
  color: #fff;
  box-shadow: 0 28px 80px rgba(20,15,60,0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Dot grid texture */
.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* Inner glow orb */
.hero-main::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.18) 0%, transparent 65%);
  top: -120px; left: 28%;
  pointer-events: none;
  z-index: 0;
}

.hero-left, .hero-right { position: relative; z-index: 1; }

/* Eyebrow badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 14px 5px 8px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
}

.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: pulseGreen 2.2s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Headline */
.hero-main h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

/* Gradient-highlighted word in h1 */
.hero-main h1 em,
.hero-main h1 span.hl {
  font-style: normal;
  background: linear-gradient(135deg, #a5f3fc 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.04rem;
  opacity: 0.88;
  max-width: 50ch;
  line-height: 1.68;
  margin-bottom: 0;
}

/* CTA buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 18px;
}

.btn-hero-primary {
  background: #fff;
  color: var(--p2);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  border: none;
  gap: 7px;
}

.btn-hero-primary:hover {
  background: #f0f3ff;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.38);
  backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.7);
}

/* Trust signals */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ---- Hero Right Card ---- */
.hero-right {
  position: relative;
}

.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-card-file-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-card-header strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-card-header span {
  font-size: 0.76rem;
  opacity: 0.7;
}

.hero-card-drop {
  border: 1.5px dashed rgba(255,255,255,0.35);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.hero-card-drop:hover {
  border-color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.08);
}

.hero-card-drop-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  transition: transform 0.2s;
}

.hero-card-drop:hover .hero-card-drop-icon { transform: translateY(-3px); }

.hero-card-drop p {
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0;
}

.hero-card-drop span {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Format chips */
.hero-card-formats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fmt-chip {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fmt-pdf  { background: rgba(220,38,38,0.28);   color: #fca5a5; border: 1px solid rgba(220,38,38,0.3); }
.fmt-img  { background: rgba(8,145,178,0.28);   color: #67e8f9; border: 1px solid rgba(8,145,178,0.3); }
.fmt-doc  { background: rgba(16,185,129,0.28);  color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }

/* White CTA inside card */
.btn-hero-white {
  background: rgba(255,255,255,0.95);
  color: var(--p2);
  font-weight: 700;
  border: none;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 11px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 0.94rem;
  font-family: var(--font);
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}

.btn-hero-white:hover {
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* Floating mini-badges */
.hero-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  z-index: 2;
}

.hero-badge-a { top: -14px; right: 16px; }
.hero-badge-b { bottom: -12px; left: 20px; }

.hb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: pulseGreen 2s infinite;
}

.small { font-size: 0.84rem; }

/* ---- Section Badge ---- */
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(91,33,182,0.1), rgba(37,99,235,0.1));
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--p2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.section-badge-light {
  background: rgba(255,255,255,0.25);
  border-color: rgba(99,102,241,0.2);
}

/* ---- Stats Row ---- */
.stats-row {
  margin: 20px auto 0;
  width: min(960px, 92%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.stat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.stat-icon-files { background: linear-gradient(135deg, #ede9fe, #dbeafe); color: var(--p2); }
.stat-icon-tools { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.stat-icon-langs { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }

.stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--p1), var(--b1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat span { color: var(--muted); font-size: 0.84rem; font-weight: 500; }

/* ---- Steps Section ---- */
.steps {
  margin: 64px 0 20px;
  text-align: center;
}

.steps > .section-badge { margin-bottom: 10px; }

.steps h2, .toolkit h2, .faq-split h2, section > h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  text-align: center;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 32px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* Grid: [card] [arrow] [card] [arrow] [card] — 5 columns */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  gap: 0 8px;
  align-items: center;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  padding-top: 12px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.step-card:hover {
  box-shadow: 0 8px 28px rgba(99,102,241,0.12);
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.3);
}

/* Icon circle */
.step-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.step-icon-1 { background: linear-gradient(135deg, #ede9fe, #dbeafe); color: var(--p2); }
.step-icon-2 { background: linear-gradient(135deg, #fef9c3, #fde68a); color: #b45309; }
.step-icon-3 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857; }

/* Step number in top-right */
.step-num-badge {
  position: absolute;
  top: 20px; right: 20px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--b1));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.step-card h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 7px; }
.step-card p { color: var(--muted); font-size: 0.92rem; margin: 0; line-height: 1.6; }

/* Legacy .step-num (used in other places) */
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--b1));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

/* ---- Feature Band ---- */
.feature-band {
  margin: 60px 0;
  padding: 64px 0;
  background: linear-gradient(160deg, #f0f2fb 0%, #eef0fa 50%, #f3f4fc 100%);
  border-top: 1px solid rgba(99,102,241,0.1);
  border-bottom: 1px solid rgba(99,102,241,0.1);
}

.feature-band h2 { text-align: center; font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 10px; }
.centered { text-align: center; color: var(--muted); margin-bottom: 36px; font-size: 1rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-grid article {
  background: #fff;
  border: 1px solid #e8edf8;
  border-radius: 18px;
  padding: 26px 22px;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
}

.feature-grid article:hover {
  box-shadow: 0 8px 32px rgba(99,102,241,0.1);
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.25);
}

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.fi-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.fi-red    { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; }
.fi-yellow { background: linear-gradient(135deg, #fef9c3, #fde68a); color: #b45309; }
.fi-green  { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857; }
.fi-blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.fi-teal   { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0f766e; }

.feature-grid h3 { font-size: 1.04rem; font-weight: 700; margin-bottom: 7px; }
.feature-grid p { color: var(--muted); font-size: 0.91rem; margin: 0; line-height: 1.6; }

/* ---- Tools Hub ---- */
.tools-hub {
  margin: 0 0 24px;
  padding: 56px 0 16px;
}

.tools-hub-head {
  text-align: center;
  margin-bottom: 36px;
}

.tools-hub-head h2 { margin-bottom: 8px; }

.tools-hub-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Category group */
.tool-group { margin-bottom: 32px; }

.tool-group-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 13px 5px 10px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.tgl-pdf  { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.tgl-conv { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.tgl-img  { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }

/* Icon grid */
.tool-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

/* Tool card */
.tic {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 14px 14px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

/* Category color tints */
.tic.pdf   { --tic-color: #dc2626; --tic-bg: #fef2f2; }
.tic.conv  { --tic-color: #7c3aed; --tic-bg: #f5f3ff; }
.tic.img   { --tic-color: #0891b2; --tic-bg: #ecfeff; }

/* Bottom accent strip on hover */
.tic::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tic-color);
  border-radius: 0 0 16px 16px;
  transform: scaleX(0);
  transition: transform 0.2s;
}

.tic:hover::after { transform: scaleX(1); }

.tic-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--tic-bg);
  display: grid;
  place-items: center;
  margin-bottom: 11px;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tic-icon svg { width: 20px; height: 20px; color: var(--tic-color); }

.tic-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
  transition: color 0.18s;
}

.tic-tag {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
  flex: 1;
}

/* Arrow appears bottom-right on hover */
.tic-arrow {
  position: absolute;
  bottom: 12px; right: 12px;
  font-size: 0.8rem;
  color: var(--tic-color);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s;
}

.tic:hover {
  border-color: var(--tic-color);
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

.tic:hover .tic-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tic:hover .tic-name  { color: var(--tic-color); }
.tic:hover .tic-arrow { opacity: 1; transform: translateX(0); }

/* ---- Toolkit Section (used on 404/blog pages) ---- */
.toolkit { margin: 50px 0 26px; }

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.toolkit-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1f2a44;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.toolkit-item:hover {
  border-color: #b9c6f0;
  background: #f4f7ff;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.1);
  transform: translateY(-1px);
  color: var(--p2);
}

.tool-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--b1));
  flex-shrink: 0;
}

/* ---- FAQ Split Section ---- */
.faq-split {
  margin: 64px 0 44px;
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: 48px;
  align-items: start;
}

.faq-split h2 { text-align: left; line-height: 1.1; }
.faq-split .faq-description { color: var(--muted); font-size: 0.96rem; margin-top: 10px; margin-bottom: 20px; }

.faq-all-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--p2);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(99,102,241,0.3);
  padding-bottom: 1px;
  transition: border-color 0.15s, color 0.15s;
}

.faq-all-link:hover { border-color: var(--p2); }

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 14px 4px;
}

.faq-list details:first-child { border-top: 1px solid var(--line); }

.faq-list summary {
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list p {
  color: var(--muted);
  margin: 10px 0 4px;
  line-height: 1.65;
  font-size: 0.96rem;
}

/* ---- Blog Section ---- */
.blog-section { margin-bottom: 24px; }
.blog-section-head { text-align: center; margin-bottom: 28px; }
.blog-section-head h2 { margin-bottom: 8px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
}

/* Blog card accent colors */
.blog-card   { --bc: #6366f1; }
.blog-card-0 { --bc: #6366f1; }
.blog-card-1 { --bc: #0891b2; }
.blog-card-2 { --bc: #059669; }
.blog-card-3 { --bc: #d946ef; }
.blog-card-4 { --bc: #ea580c; }

.blog-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-top: 3.5px solid var(--bc);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 8px 28px rgba(99,102,241,0.12);
  transform: translateY(-4px);
}

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

.blog-category {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--bc);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: color-mix(in srgb, var(--bc) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--bc) 20%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
  width: fit-content;
}

.blog-card h2,
.blog-card h3 {
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 700;
  margin: 0 0 8px;
}
.blog-card h2 a,
.blog-card h3 a { text-decoration: none; color: var(--heading); }
.blog-card h2 a:hover,
.blog-card h3 a:hover { color: var(--bc); }

.blog-card-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 0 auto;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--bc);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.15s;
  width: fit-content;
}
.blog-read-more:hover { border-color: var(--bc); }

/* ---- Footer ---- */
.site-footer {
  margin-top: 60px;
  background: #1e2135;
  color: #c9d0e8;
  padding: 44px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand .brand { color: #fff; }
.footer-brand p {
  color: #8a93b0;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-top: 12px;
  max-width: 28ch;
}

.footer-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6ee7b7;
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
}

.trust-badge::before {
  content: '✓';
  font-size: 0.72rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: #8a93b0;
  margin: 0 0 9px;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.83rem;
  color: #6b7694;
  flex-wrap: wrap;
}

.footer-bottom a { color: #8a93b0; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---- Ad Slots ---- */
.ad-slot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  display: none;
}
.ad-slot.ad-filled {
  display: block;
  margin: 28px 0;
}

.ad-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ad-box {
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #94a3b8;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.82rem;
  min-height: 0;
}

.ad-desktop { }
.ad-mobile { display: none; }

.ad-ready .ad-box {
  border: none;
  background: transparent;
}

/* Real AdSense slot placeholder */
.adsense-slot {
  display: block;
  min-width: 320px;
  width: 100%;
}

/* ---- Grid / Card Layout ---- */
.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.tool-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: #c4cde8;
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(130deg, rgba(91,33,182,.12), rgba(37,99,235,.12));
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  color: var(--p2);
}

/* ================================================================
   QUICK TOOL SWITCHER
   ================================================================ */
.tool-switcher {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

/* Trigger button */
.tsw-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #dde3f0;
  border-radius: 10px;
  padding: 7px 12px 7px 10px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  user-select: none;
}

.tsw-trigger:hover {
  border-color: var(--p2);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
  background: #f8f7ff;
}

.tsw-trigger[aria-expanded="true"] {
  border-color: var(--p2);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
  background: #f8f7ff;
}

.tsw-trigger[aria-expanded="true"] .tsw-caret svg {
  transform: rotate(180deg);
}

.tsw-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.tsw-label svg { flex-shrink: 0; color: var(--p2); }

.tsw-caret svg {
  transition: transform 0.2s;
  color: var(--muted);
}

/* Dropdown panel */
.tsw-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  background: #fff;
  border: 1.5px solid #e1e7f5;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.14);
  z-index: 400;
  overflow: hidden;
  animation: tsw-in 0.15s ease;
}

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

/* Search input inside dropdown */
.tsw-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef0f8;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.tsw-search-wrap svg { flex-shrink: 0; color: var(--muted); }

.tsw-search {
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 0.84rem;
  color: var(--text);
  width: 100%;
  background: transparent;
}

.tsw-search::placeholder { color: #b0bcd4; }

/* Scrollable list area */
.tsw-dropdown {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #dde3f0 transparent;
}

/* Category group */
.tsw-group { padding: 8px 0 4px; }
.tsw-group:not(:last-child) { border-bottom: 1px solid #f0f2f8; }

.tsw-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 12px 6px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tsw-group-label::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sw-red    { color: #b91c1c; }
.sw-red::before { background: #dc2626; }
.sw-purple { color: #6d28d9; }
.sw-purple::before { background: #7c3aed; }
.sw-teal   { color: #0e7490; }
.sw-teal::before { background: #0891b2; }

/* Each tool item */
.tsw-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
  border-radius: 0;
}

.tsw-item:hover {
  background: #f5f6ff;
  color: var(--p2);
}

.tsw-item-active {
  color: var(--p2);
  font-weight: 700;
  background: #f0f3ff;
}

.tsw-check { color: var(--p2); flex-shrink: 0; }

.tsw-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
}

/* Hidden item when search filters it out */
.tsw-item.tsw-hidden { display: none; }
.tsw-group.tsw-hidden { display: none; }

/* ---- Tool Page ---- */
.tool-page {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.tool-page h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ======================================================
   TOOL UI CARD — Professional Redesign
   ====================================================== */
.tool-ui {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 24px rgba(15,23,42,0.07);
  margin: 24px 0;
}

/* ---- Step Indicators ---- */
.tool-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}

.tstep {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tstep-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e9edf5;
  color: #94a3b8;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.tstep-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.2s;
}

.tstep.active .tstep-num {
  background: linear-gradient(135deg, var(--p1), var(--b1));
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.35);
}

.tstep.active .tstep-label { color: var(--p2); }

.tstep.done .tstep-num {
  background: #dcfce7;
  color: #16a34a;
}

.tstep.done .tstep-label { color: #16a34a; }

.tstep-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 8px;
  min-width: 20px;
  border-radius: 999px;
  transition: background 0.3s;
}

.tstep-line.done { background: linear-gradient(90deg, var(--p1), var(--b1)); }

/* ---- Drop Zone ---- */
.tool-drop-zone {
  position: relative;
  border: 2px dashed #c8d2e8;
  border-radius: 16px;
  background: #f8f9ff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  overflow: hidden;
  margin-bottom: 16px;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-drop-zone:hover,
.tool-drop-zone:focus {
  border-color: var(--p2);
  background: #f0f3ff;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
  outline: none;
}

.tool-drop-zone.dragging {
  border-color: var(--p1);
  background: #eef0ff;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
}

.tool-drop-zone.has-files {
  border-color: #10b981;
  border-style: solid;
  background: #f0fdf4;
  min-height: unset;
  padding: 14px 18px;
  cursor: default;
}

/* Hidden real file input */
.tool-drop-zone input[type="file"] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Drop zone body (visible in empty state) */
.tool-drop-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  width: 100%;
  pointer-events: none;
}

.tool-drop-zone.has-files .tool-drop-body {
  display: none;
}

.tool-drop-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.2s;
}

.tool-drop-zone:hover .tool-drop-icon-wrap,
.tool-drop-zone.dragging .tool-drop-icon-wrap {
  transform: translateY(-3px);
}

.tool-drop-icon-wrap svg {
  width: 28px;
  height: 28px;
  color: var(--p2);
}

.tool-drop-title {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.tool-drop-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.tool-drop-browse {
  color: var(--p2);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

/* Format chips inside drop zone */
.tool-format-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #dde3f0;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-2);
}

.tool-chip-size  { color: var(--muted); }
.tool-chip-secure { color: #059669; border-color: #a7f3d0; background: #f0fdf4; }

/* Drag overlay (shows when dragging over) */
.tool-drag-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(59,130,246,0.12));
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  border-radius: 14px;
}

.tool-drag-overlay svg { color: var(--p2); }

.tool-drag-overlay p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--p2);
  margin: 0;
}

.tool-drop-zone.dragging .tool-drag-overlay { display: flex; }
.tool-drop-zone.dragging .tool-drop-body { visibility: hidden; }

/* ---- File List ---- */
.tool-file-list {
  background: #f8fffe;
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.tool-file-list-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tfi {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #d1fae5;
}

.tfi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tfi-icon svg { color: var(--p2); }

.tfi-info { flex: 1; min-width: 0; }

.tfi-name {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.tfi-size {
  font-size: 0.75rem;
  color: var(--muted);
}

.tfi-remove {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tfi-remove:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }

.tool-add-more {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--p2);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 10px 2px;
  font-family: var(--font);
}

.tool-add-more:hover { text-decoration: underline; }

/* ---- Tool Options ---- */
.tool-options { margin-bottom: 16px; }

.opt-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 1;
  min-width: 150px;
}

.tool-options .tool-panel {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tool-options input[type="number"],
.tool-options input[type="text"],
.tool-panel input[type="number"],
.tool-panel input[type="text"] {
  flex: 1;
  min-width: 160px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 0.92rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tool-options input:focus,
.tool-panel input:focus {
  outline: none;
  border-color: var(--p2);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.tool-options select {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  font-family: var(--font);
  font-size: 0.92rem;
  min-width: 200px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s;
}

.tool-options select:hover { border-color: var(--p2); }
.upload-meta { color: var(--muted); font-size: 0.84rem; margin-top: 4px; }

/* ---- Process Button ---- */
.tool-process-btn {
  width: 100%;
  justify-content: center;
  gap: 9px;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

.tool-process-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.tool-process-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}

/* ---- Progress Stack ---- */
.progress-stack {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.progress-block {
  background: #f8faff;
  border: 1px solid #dbe5fb;
  border-radius: 12px;
  padding: 13px 16px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #475569;
  margin-bottom: 9px;
  font-weight: 600;
}

.progress-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-label svg { color: var(--p2); }

.progress-track {
  width: 100%;
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--p1), var(--b1));
  border-radius: 999px;
  transition: width 0.28s ease;
  position: relative;
}

/* Shimmer animation on progress bar */
.progress-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}

/* ---- Tool Message ---- */
.tool-message {
  margin-top: 14px;
  min-height: 22px;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ---- Download Result (Success State) ---- */
.download-result {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid #6ee7b7;
  border-radius: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.download-result.visible { display: flex; }

.download-result-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-result-icon {
  width: 42px;
  height: 42px;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.download-result-icon svg { color: #16a34a; }
.download-result strong { display: block; font-size: 0.95rem; color: #15803d; font-weight: 700; }
.download-result span { font-size: 0.81rem; color: #4b7a60; }

/* ---- Reset row ---- */
.tool-reset-row {
  margin-top: 14px;
  text-align: center;
}

.tool-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.tool-reset-btn:hover { border-color: var(--p2); color: var(--p2); background: #f5f3ff; }

/* ---- FAQ Tool Page ---- */
.faq { margin-top: 32px; }

.faq h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  text-align: left;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
  transition: box-shadow 0.15s;
}

.faq details:hover { box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05); }

.faq details[open] {
  border-color: #c4cde8;
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.08);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  color: var(--muted);
  font-weight: 400;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq details[open] summary::after { content: '−'; }

.faq p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 16px 0;
  flex-wrap: wrap;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
}

.breadcrumbs li::after {
  content: '/';
  color: #a0aac0;
}

.breadcrumbs li:last-child::after { content: ''; }

.breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumbs a:hover { color: var(--p2); }
.breadcrumbs li:last-child { color: var(--muted); font-weight: 500; }

/* ---- Chips (Keywords) ---- */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.chips span {
  background: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid #e0e7ff;
}

/* ---- Status Pills ---- */
.status-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.status-pill.live { background: #dcfce7; color: #166534; }
.status-pill.soon { background: #fef3c7; color: #92400e; }

/* ---- Article / Static Pages ---- */
.article, .trust-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 24px auto;
}

.article h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.article .lead { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: 24px; }

.article h2 {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left !important;
  margin: 32px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.static-body h2:first-child { border-top: none; padding-top: 0; margin-top: 18px; }

.article p { color: var(--text); line-height: 1.75; margin-bottom: 14px; }
.article p a { color: var(--primary); text-decoration: underline; }
.article p a:hover { color: var(--primary-hover, #1a4fd4); }

.static-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 0.92rem; color: var(--muted);
}
.static-footer-links a { color: var(--muted); text-decoration: none; }
.static-footer-links a:hover { color: var(--primary); text-decoration: underline; }

/* ---- Blog Article ---- */
.blog-article {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.blog-article h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
.blog-article p { line-height: 1.8; color: #334155; font-size: 1.02rem; margin-bottom: 18px; }
.blog-article h2 { font-size: 1.4rem; text-align: left !important; margin: 32px 0 12px; }

/* ---- 404 Page ---- */
.page-404 {
  text-align: center;
  padding: 80px 20px;
  max-width: 520px;
  margin: 0 auto;
}

.page-404-code {
  font-size: 7rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--p1), var(--b1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 h1 { font-size: 1.8rem; margin-bottom: 12px; }
.page-404 p { color: var(--muted); font-size: 1.06rem; margin-bottom: 28px; }

/* ---- Blog Page ---- */
.blog-page-header {
  padding: 40px 0 28px;
  text-align: center;
}

.blog-page-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 12px;
  line-height: 1.25;
}

.blog-page-header p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto;
}

.blog-listing { margin-bottom: 32px; }

.blog-popular-tools {
  margin-top: 48px;
  margin-bottom: 24px;
}
.blog-popular-tools h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  text-align: center;
}

/* ---- Muted / Utility ---- */
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---- SEO About Section ---- */
.seo-about {
  margin-top: 28px;
  padding: 22px 24px;
  background: #f8f9ff;
  border: 1px solid #e8ecf8;
  border-radius: 16px;
}

.seo-about h2 { font-size: 1.3rem; margin-bottom: 10px; text-align: left !important; }
.seo-about p { color: var(--muted); font-size: 0.96rem; line-height: 1.7; margin: 0; }

/* ---- Use Cases / Benefits ---- */
.use-cases-section { margin-top: 32px; }
.use-cases { margin-top: 8px; }
.use-cases li { color: var(--muted); font-size: 0.96rem; margin-bottom: 6px; line-height: 1.6; }

/* ---- Long-tail SEO Section ---- */
.seo-long-tail { margin-top: 32px; }
.seo-long-tail h2 { text-align: left !important; font-size: 1.3rem; margin-bottom: 14px; }

.long-tail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lt-chip {
  display: inline-block;
  background: #f0f3ff;
  border: 1px solid #dde3f5;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}

.lt-chip:hover { background: #e8ecff; border-color: var(--p2); }

/* ---- Related Tools Section ---- */
.related-tools-section { margin-top: 36px; }
.related-tools-section h2 { text-align: left !important; font-size: 1.4rem; margin-bottom: 4px; }
.related-tools-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--b1));
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px rgba(67, 56, 202, 0.35);
  cursor: pointer;
  display: none;
  place-items: center;
  font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 50;
}

.back-to-top.visible { display: grid; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(67, 56, 202, 0.45); }

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e2135;
  color: #c9d0e8;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 100;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: #93c5fd; text-decoration: underline; }
.cookie-banner .btn { padding: 7px 16px; font-size: 0.84rem; }

/* ============================
   RESPONSIVE — TABLET (≤1100px)
   ============================ */
@media (max-width: 1100px) {
  .hero-main { padding: 40px 34px; grid-template-columns: 1fr; gap: 32px; }
  .hero-right { max-width: 480px; }
  .hero-badge { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-connector { display: none; }
  .tool-icon-grid { grid-template-columns: repeat(4, 1fr); }
  .toolkit-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .panel-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}

/* ============================
   RESPONSIVE — MOBILE (≤780px)
   ============================ */
@media (max-width: 780px) {
  .topbar {
    min-height: 62px;
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 10px 0;
  }

  .mega-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mega-nav::-webkit-scrollbar { display: none; }

  .menu-trigger { padding: 8px 12px; font-size: 0.87rem; }

  .mega-panel {
    position: fixed;
    left: 4%;
    right: 4%;
    top: 76px;
    transform: none;
    width: auto;
    max-height: 72vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .panel-grid { grid-template-columns: 1fr 1fr; }
  .right-actions { margin-left: auto; }
  .btn-ghost { display: none; }

  /* Hero */
  .hero-wrap { margin-top: 16px; }
  .hero-main { padding: 28px 22px; border-radius: 22px; gap: 26px; }
  .hero-main h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { margin: 16px 0 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 10px 16px; }
  .hero-badge { display: none; }
  .hero-card { padding: 18px; }

  /* Stats */
  .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Grids */
  .feature-grid,
  .toolkit-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 14px; }
  .step-connector { display: none; }

  /* Tool icon grid */
  .tool-icon-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tic { padding: 12px 12px 11px; }
  .tic-icon { width: 34px; height: 34px; margin-bottom: 8px; }
  .tic-name { font-size: 0.82rem; }
  .tic-tag  { font-size: 0.72rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .faq-split { grid-template-columns: 1fr; }
  .faq-split h2 { text-align: center; }

  /* Ads */
  .ad-desktop { display: none !important; }
  .ad-filled .ad-mobile { display: grid; }

  /* Tool page */
  .tool-page { max-width: 100%; }
  .tool-ui { padding: 20px 16px; border-radius: 16px; }
  .tool-steps { gap: 0; }
  .tstep-label { display: none; }
  .tool-drop-body { padding: 24px 16px; }
  .tool-drop-icon-wrap { width: 52px; height: 52px; }
  .tool-options select, .tool-options input { width: 100%; min-width: unset; }
  .tool-panel input[type="number"], .tool-panel input[type="text"] { min-width: 100%; }

  /* Article */
  .article { padding: 22px 18px; }

  /* Footer */
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* Back to top */
  .back-to-top { bottom: 18px; right: 18px; width: 40px; height: 40px; }
}

/* ============================
   RESPONSIVE — SMALL (≤480px)
   ============================ */
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .hero-main { padding: 24px 18px; border-radius: 18px; }
  .hero-main h1 { font-size: 1.6rem; }
  .hero-card { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-trust { flex-direction: column; align-items: flex-start; }
  .tool-icon-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .tic-tag { display: none; }
  .tic-name { font-size: 0.8rem; }
  .feature-grid { grid-template-columns: 1fr; }
}

