/* ==========================================================================
   400Tools.com — Design System
   ========================================================================== */

:root {
  --brand: #e5484d;
  --brand-dark: #c93a3f;
  --brand-light: #fef2f2;
  --ink: #1a1a2e;
  --ink-2: #3d3d56;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #e5e7eb;
  --line-2: #f3f4f6;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-tint: #fdf6f6;
  --card: #ffffff;
  --gold: #f59e0b;
  --gold-soft: #fffbeb;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #16a34a;
  --green-soft: #f0fdf4;
  --purple: #7c3aed;
  --purple-soft: #f5f3ff;
  --teal: #0d9488;
  --teal-soft: #f0fdfa;
  --orange: #ea580c;
  --orange-soft: #fff7ed;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo .heart {
  color: var(--brand);
  font-size: 16px;
}

.logo span.tools { color: var(--ink); }
.logo span.com { color: var(--muted-2); font-weight: 600; font-size: 13px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.main-nav > a,
.main-nav .nav-drop > a {
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.main-nav > a:hover,
.main-nav .nav-drop > a:hover {
  background: var(--line-2);
  color: var(--ink);
}

.nav-drop { position: relative; }
.nav-drop .caret { font-size: 10px; color: var(--muted-2); transition: transform .15s; }
.nav-drop:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .18s ease;
  z-index: 200;
  max-height: 420px;
  overflow-y: auto;
}

.nav-drop:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .12s;
}

.dropdown a:hover { background: var(--line-2); color: var(--ink); }

.dropdown a .dd-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.dropdown .dd-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  transition: all .15s;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(229,72,77,.35); }

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--ink-2); background: var(--bg-soft); }

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: #d97706; }

.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 10px; }
.btn-xl { padding: 15px 36px; font-size: 16px; border-radius: 10px; }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--ink);
  padding: 6px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 56px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

.hero h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--ink);
}

.hero h1 .accent { color: var(--brand); }

.hero p.sub {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Filter pills */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .15s;
}

.filter-pill:hover { border-color: var(--ink-2); }

.filter-pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ==========================================================================
   Tool Grid
   ========================================================================== */

.tools-section { padding: 32px 0 64px; background: var(--bg-soft); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .18s ease;
  position: relative;
  overflow: hidden;
}

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

.tool-card .badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.tool-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.tool-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.tool-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Category icon colors */
.icon-red    { background: #fef2f2; color: #dc2626; }
.icon-blue   { background: #eff6ff; color: #2563eb; }
.icon-green  { background: #f0fdf4; color: #16a34a; }
.icon-purple { background: #f5f3ff; color: #7c3aed; }
.icon-orange { background: #fff7ed; color: #ea580c; }
.icon-teal   { background: #f0fdfa; color: #0d9488; }
.icon-pink   { background: #fdf2f8; color: #db2777; }
.icon-slate  { background: #f1f5f9; color: #475569; }

/* Tools page (tools.html) */

.tools-search {
  position: relative;
  max-width: 460px;
  margin: 0 auto 20px;
}

.tools-search input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.tools-search input:focus {
  border-color: var(--ink-2);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

.tools-search .ts-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: .5;
  pointer-events: none;
}

.tools-meta {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 16px;
}

.no-results {
  display: none;
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
  font-size: 14px;
}

.no-results.show { display: block; }

/* FAQ page */

.faq-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.faq-jump .filter-pill {
  display: inline-block;
  text-decoration: none;
}

.faq-group {
  max-width: 720px;
  margin: 0 auto 40px;
  scroll-margin-top: 90px;
}

.faq-group h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-group h2 .fg-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
  margin-bottom: 10px;
}

.faq-item summary {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
}

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

.faq-item summary .faq-chevron {
  color: var(--muted-2);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform .2s ease;
  line-height: 1;
}

.faq-item[open] summary .faq-chevron { transform: rotate(45deg); }

.faq-item .faq-answer {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  padding: 0 0 18px;
}

.faq-item .faq-answer a { color: var(--brand); font-weight: 600; }

/* Homepage intro + FAQ band */

.intro {
  padding: 4px 0 36px;
  background: var(--bg-soft);
  text-align: center;
}

.intro h2 {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}

.intro p {
  font-size: 14px;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.65;
}

.tools-heading {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
}

.faq-sec { padding: 64px 0; background: var(--bg-soft); }

.faq-sec h2 {
  text-align: center;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 28px;
}

.faq-list { max-width: 720px; margin: 0 auto; }

/* Privacy / legal policy pages */

.policy-content { max-width: 760px; }

.policy-content h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 40px 0 12px;
  scroll-margin-top: 90px;
}

.policy-content h2:first-child { margin-top: 0; }

.policy-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  margin: 24px 0 8px;
}

.policy-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.policy-content ul,
.policy-content ol {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px 20px;
}

.policy-content li { margin-bottom: 6px; }

.policy-content a { color: var(--brand); font-weight: 600; }

.policy-content strong { color: var(--ink-2); }

.policy-toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 8px;
}

.policy-toc h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.policy-toc ol {
  margin: 0 0 0 18px;
  font-size: 13.5px;
  line-height: 2;
}

.policy-toc a {
  color: var(--ink-2);
  text-decoration: none;
}

.policy-toc a:hover { color: var(--brand); }

.policy-updated {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Workflow promo card (homepage) */

.workflow-card {
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow-card h3 { font-size: 15px; font-weight: 700; }
.workflow-card p { font-size: 12.5px; color: var(--muted); }
.workflow-card .wf-link {
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.workflow-card .wf-link:hover { gap: 8px; }

/* ==========================================================================
   Work Your Way
   ========================================================================== */

.wyw { padding: 80px 0; background: #fff; }
.wyw h2 {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

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

.wyw-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all .2s;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.wyw-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.wyw-card .wyw-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

.wyw-card:nth-child(1) .wyw-img { background: linear-gradient(135deg, #dbeafe, #ede9fe); }
.wyw-card:nth-child(2) .wyw-img { background: linear-gradient(135deg, #fce7f3, #fef3c7); }
.wyw-card:nth-child(3) .wyw-img { background: linear-gradient(135deg, #d1fae5, #e0e7ff); }

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

.wyw-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.wyw-card p { font-size: 13px; color: var(--muted); flex: 1; line-height: 1.55; }

.wyw-card .arrow {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-2);
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

.wyw-card:hover .arrow { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================================
   Premium Banner
   ========================================================================== */

.premium { padding: 80px 0; background: #fff; }

.premium-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-radius: 20px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.premium-box h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.premium-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }

.premium-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.premium-features .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}

.premium-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.premium-visual .pv-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  font-size: 64px;
  width: 100%;
  max-width: 300px;
}

.premium-visual .pv-card .pv-title {
  font-size: 14px;
  font-weight: 700;
  margin-top: 12px;
  color: var(--ink);
}

.premium-visual .pv-card .pv-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ==========================================================================
   Cross-sell (iLoveIMG style)
   ========================================================================== */

.crosssell { padding: 60px 0 80px; background: #fff; }

.crosssell-box {
  background: linear-gradient(135deg, #f0f9ff, #eff6ff);
  border-radius: 20px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.crosssell-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.crosssell-visual .cs-tile {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: var(--shadow);
}

.crosssell-visual .cs-tile:nth-child(1) { background: linear-gradient(135deg,#fde68a,#fca5a5); }
.crosssell-visual .cs-tile:nth-child(2) { background: linear-gradient(135deg,#a5b4fc,#6ee7b7); width: 120px; height: 120px; }
.crosssell-visual .cs-tile:nth-child(3) { background: linear-gradient(135deg,#93c5fd,#c4b5fd); }

.crosssell-box h2 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 800; margin-bottom: 12px; }
.crosssell-box p { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }

/* ==========================================================================
   Trust Section
   ========================================================================== */

.trust { padding: 72px 0; background: #fff; text-align: center; border-top: 1px solid var(--line-2); }

.trust h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 12px; }
.trust p { font-size: 14px; color: var(--muted); max-width: 640px; margin: 0 auto 40px; line-height: 1.6; }

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.trust-badge .tb-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--ink-2);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 0;
  transition: color .12s;
}

.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-2);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 16px;
  margin-bottom: 0;
}

.footer-legal a {
  font-size: 12px;
  color: var(--muted);
  transition: color .12s;
}

.footer-legal a:hover { color: var(--brand); }

/* ==========================================================================
   Tool Page Layout
   ========================================================================== */

.tool-hero {
  padding: 48px 0 12px;
  text-align: center;
}

.tool-hero .tool-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 18px;
}

.tool-hero h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.tool-hero p {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Upload zone */

.upload-zone {
  max-width: 720px;
  margin: 32px auto 24px;
  border: 2px dashed #d1d5db;
  border-radius: 16px;
  padding: 56px 32px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
  background: #fff;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--brand);
  background: var(--brand-light);
}

.upload-zone .uz-icon { font-size: 48px; margin-bottom: 16px; }
.upload-zone .uz-btn {
  display: inline-flex;
  background: var(--brand);
  color: #fff;
  padding: 13px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  transition: all .15s;
}
.upload-zone .uz-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.upload-zone .uz-hint { font-size: 13px; color: var(--muted-2); }
.upload-zone input[type="file"] { display: none; }

.dropbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 24px;
  border: 1.5px solid #0061FF;
  border-radius: 10px;
  background: #fff;
  color: #0061FF;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.dropbox-btn:hover {
  background: #0061FF;
  color: #fff;
}

.gdrive-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 24px;
  border: 1.5px solid #4285F4;
  border-radius: 10px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.gdrive-btn:hover {
  background: #4285F4;
  color: #fff;
}
.gdrive-btn:hover svg path { fill: #fff; }

/* Options panel */

.options-panel {
  max-width: 720px;
  margin: 0 auto 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.options-panel h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.opt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.opt-btn {
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .12s;
}
.opt-btn:hover { border-color: var(--ink-2); }
.opt-btn.active { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }

.opt-field { margin-bottom: 16px; }
.opt-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-2);
}
.opt-field input[type="text"],
.opt-field input[type="password"],
.opt-field input[type="number"],
.opt-field input[type="color"],
.opt-field select,
.opt-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .12s;
}
.opt-field input:focus,
.opt-field select:focus,
.opt-field textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.opt-field .field-hint { font-size: 12px; color: var(--muted-2); margin-top: 4px; }

.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--brand); }
.range-row .range-val { font-size: 13px; font-weight: 700; color: var(--brand); min-width: 40px; text-align: right; }

/* File list (after selection) */

.file-list {
  max-width: 720px;
  margin: 0 auto 24px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all .15s;
}

.file-item:hover { border-color: #d1d5db; box-shadow: var(--shadow-sm); }

.file-item .fi-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.file-item .fi-info { flex: 1; min-width: 0; }
.file-item .fi-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .fi-size { font-size: 12px; color: var(--muted-2); }

.file-item .fi-remove {
  background: none;
  border: none;
  color: var(--muted-2);
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .12s;
}
.file-item .fi-remove:hover { color: var(--brand); background: var(--brand-light); }

.file-item .fi-reorder { display: flex; gap: 4px; }
.file-item .fi-reorder button {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  font-size: 13px;
  color: var(--ink-2);
  transition: all .12s;
}
.file-item .fi-reorder button:hover { background: var(--line-2); }

/* Process bar */

.process-bar {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.progress-track {
  height: 8px;
  background: var(--line-2);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), #f87171);
  border-radius: var(--radius-pill);
  transition: width .3s ease;
}

.process-status { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Result zone */

.result-zone {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  padding: 40px;
  background: var(--green-soft);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  display: none;
}

.result-zone.show { display: block; }

.result-zone .rz-icon { font-size: 48px; margin-bottom: 12px; }
.result-zone h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: #166534; }
.result-zone p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

.result-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Secondary CTA under tool */

.tool-cta {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.tool-cta .cta-try {
  font-size: 14px;
  color: var(--muted);
}

.tool-cta .cta-try a { color: var(--brand); font-weight: 600; }
.tool-cta .cta-try a:hover { text-decoration: underline; }

/* Related tools */

.related { padding: 48px 0 64px; background: var(--bg-soft); }
.related h2 { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 28px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.related-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all .15s;
}
.related-card:hover { border-color: #d1d5db; box-shadow: var(--shadow); }

.related-card .rc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.related-card .rc-name { font-size: 13px; font-weight: 600; }

/* ==========================================================================
   PDF Page Thumbnails (organize tools)
   ========================================================================== */

.pages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}

.page-thumb {
  width: 100px;
  border: 2px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  background: #fff;
}

.page-thumb:hover { border-color: var(--muted-2); }
.page-thumb.selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(229,72,77,.25); }
.page-thumb canvas { width: 100%; height: auto; display: block; }

.page-thumb .pt-num {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Split range */

.split-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .premium-box { grid-template-columns: 1fr; padding: 40px 28px; }
  .crosssell-box { grid-template-columns: 1fr; padding: 36px 28px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .wyw-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 560px) {
  .tools-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool-card { padding: 14px; }
  .tool-card .icon { width: 36px; height: 36px; font-size: 18px; }
  .tool-card h3 { font-size: 12.5px; }
  .tool-card p { display: none; }
  .hero { padding: 36px 0 28px; }
  .upload-zone { padding: 36px 20px; margin-left: 16px; margin-right: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-badges { gap: 24px; }
  .premium-box { padding: 28px 20px; }
}

/* ==========================================================================
   Mobile Nav Overlay
   ========================================================================== */

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-nav .mn-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mobile-nav .mn-close {
  background: none;
  border: none;
  font-size: 26px;
  color: var(--ink);
}

.mobile-nav .mn-section { margin-bottom: 24px; }
.mobile-nav .mn-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted-2);
  margin-bottom: 8px;
  font-weight: 700;
}

.mobile-nav .mn-section a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}

/* ==========================================================================
   Auth — login / signup modal + account menu
   ========================================================================== */

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 500;
  animation: fadeIn .18s ease;
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  animation: fadeIn .22s ease;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
}
.auth-close:hover { background: var(--line-2); color: var(--ink); }

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--line-2);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all .15s;
}
.auth-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.auth-modal h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.auth-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

.auth-msg {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
}
.auth-msg.error { background: var(--brand-light); color: var(--brand-dark); }
.auth-msg.success { background: var(--green-soft); color: var(--green); }

.auth-submit {
  width: 100%;
  padding: 12px;
  font-size: 14.5px;
  margin-top: 4px;
}
.auth-submit .spinner { width: 16px; height: 16px; border-width: 2px; }

.auth-switch { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--brand); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.auth-notice {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--gold-soft);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #92400e;
  line-height: 1.45;
}
.auth-notice code { font-size: 11px; background: rgba(0,0,0,.06); padding: 1px 4px; border-radius: 4px; }

.auth-account { position: relative; }
.auth-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .15s;
}
.auth-avatar:hover { box-shadow: 0 0 0 3px var(--brand-light); }

.auth-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .18s ease;
  z-index: 200;
}
.auth-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }

.auth-menu-email {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-logout {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .12s, color .12s;
}
.auth-logout:hover { background: var(--line-2); color: var(--brand); }

.auth-avatar.premium {
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.auth-avatar.premium:hover { box-shadow: 0 0 0 4px #fde68a; }

.plan-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: var(--gold);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  vertical-align: 1px;
}

.upsell-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.upsell-list {
  margin: 4px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upsell-list li {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  align-items: baseline;
}
.upsell-list .check { color: var(--green); font-weight: 700; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

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

.fade-in { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Blog
   ========================================================================== */

.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px 0;
  font-size: 12.5px;
  color: var(--muted-2);
}
.breadcrumb a { color: var(--muted); transition: color .12s; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span.sep { margin: 0 7px; color: var(--line); }
.breadcrumb [aria-current] { color: var(--ink-2); font-weight: 600; }

.blog-hero {
  padding: 32px 0 28px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line-2);
}

.blog-hero-inner { max-width: 820px; margin: 0 auto; padding: 0 20px; }

.blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.blog-hero h1 {
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
}

.blog-hero .blog-dek {
  font-size: clamp(14.5px, 2vw, 16.5px);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.blog-meta .bm-dot { color: var(--line); }
.blog-meta strong { color: var(--ink-2); font-weight: 600; }
.blog-meta .bm-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}

/* Layout: content + sticky TOC */

.blog-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 48px;
  align-items: start;
}

.blog-content { min-width: 0; max-width: 760px; }

/* TOC */

.blog-toc {
  position: sticky;
  top: 80px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.blog-toc h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.blog-toc ol {
  list-style: none;
  counter-reset: toc;
  font-size: 13px;
  line-height: 1.5;
}

.blog-toc li { counter-increment: toc; margin-bottom: 2px; }

.blog-toc a {
  display: flex;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--ink-2);
  font-weight: 500;
  transition: background .12s, color .12s;
}
.blog-toc a::before {
  content: counter(toc);
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  min-width: 12px;
  padding-top: 1px;
}
.blog-toc a:hover { background: var(--line-2); color: var(--brand); }

/* Article typography */

.blog-content h2 {
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 44px 0 14px;
  scroll-margin-top: 84px;
  line-height: 1.25;
}
.blog-content h2:first-child { margin-top: 0; }

.blog-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 30px 0 10px;
  scroll-margin-top: 84px;
}

.blog-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  margin: 22px 0 8px;
}

.blog-content p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 16px;
}

.blog-content a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(229,72,77,.35);
  text-underline-offset: 2px;
  transition: text-decoration-color .15s;
}
.blog-content a:hover { text-decoration-color: var(--brand); }

.blog-content ul, .blog-content ol {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
  margin: 0 0 18px 22px;
}
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin-bottom: 8px; padding-left: 4px; }
.blog-content li::marker { color: var(--brand); font-weight: 700; }

.blog-content strong { color: var(--ink); font-weight: 700; }

.blog-content blockquote {
  border-left: 3px solid var(--brand);
  background: var(--bg-tint);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.blog-content blockquote p:last-child { margin-bottom: 0; }

/* Quick answer (AEO featured-snippet block) */

.quick-answer {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 0 0 32px;
  scroll-margin-top: 84px;
}

.quick-answer .qa-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--brand);
  margin-bottom: 10px;
}

.quick-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 0;
  font-weight: 500;
}

/* Key takeaways */

.takeaways {
  background: var(--green-soft);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 8px;
  scroll-margin-top: 84px;
}

.takeaways .tk-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #15803d;
  margin-bottom: 12px;
}

.takeaways ul { margin: 0 0 0 18px; }
.takeaways li { font-size: 14px; color: #166534; margin-bottom: 7px; }
.takeaways li:last-child { margin-bottom: 0; }
.takeaways li::marker { color: #16a34a; }

/* Tables */

.blog-content .table-wrap {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 480px;
}

.blog-content th {
  text-align: left;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.blog-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: top;
}

.blog-content tr:last-child td { border-bottom: none; }
.blog-content tbody tr:hover { background: var(--bg-soft); }

/* Steps */

.steps { counter-reset: step; margin: 0 0 24px; }

.step {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 52px;
  border-left: 2px solid var(--line);
  margin-left: 17px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }

.step::before {
  content: counter(step);
  position: absolute;
  left: -18px;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin-top: 4px; }

/* Inline tool CTA */

.tool-cta-box {
  background: linear-gradient(135deg, #fff 0%, var(--bg-tint) 100%);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.tool-cta-box .tcb-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.tool-cta-box .tcb-body { flex: 1; min-width: 220px; }
.tool-cta-box h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; color: var(--ink); }
.tool-cta-box p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* Keep button labels readable inside article body links */
.blog-content a.btn,
.blog-content .tool-cta-box a.btn {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.blog-content a.btn:hover { color: #fff; }

/* FAQ on blog */

.blog-faq { margin-top: 48px; scroll-margin-top: 84px; }

.blog-faq > h2 { margin-top: 0; }

/* Related posts */

.blog-related {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-2);
  padding: 56px 0 64px;
}
.blog-related h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 28px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .18s ease;
}
.post-card:hover { border-color: #d1d5db; box-shadow: var(--shadow-md); transform: translateY(-2px); }

.post-card .pc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.post-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.post-card p { font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; }
.post-card .pc-meta { font-size: 11.5px; color: var(--muted-2); font-weight: 600; }

/* Blog index hero */

.blog-index-hero {
  padding: 56px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line-2);
}
.blog-index-hero h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.blog-index-hero h1 .accent { color: var(--brand); }
.blog-index-hero p {
  font-size: 15px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

.blog-index-sec { padding: 48px 0 72px; background: var(--bg-soft); }

.blog-featured {
  max-width: 900px;
  margin: 0 auto 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  transition: all .2s;
}
.blog-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.blog-featured .bf-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.blog-featured .bf-kicker {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--brand); margin-bottom: 8px;
}
.blog-featured h2 { font-size: clamp(19px, 2.6vw, 24px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.blog-featured p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.blog-featured .bf-meta { font-size: 12px; color: var(--muted-2); font-weight: 600; }

@media (max-width: 940px) {
  .blog-wrap { grid-template-columns: 1fr; gap: 32px; }
  .blog-toc { position: static; order: -1; }
  .blog-featured { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .blog-content p, .blog-content ul, .blog-content ol { font-size: 14.5px; }
  .step { padding-left: 42px; }
  .tool-cta-box { padding: 20px; gap: 16px; }
  .blog-hero { padding: 24px 0 20px; }
}

