/* ================================================================
   ConvertFree.net — Main Design System CSS
   Phase 1: Complete shared stylesheet for all pages
   ================================================================ */

/* ── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
  /* Colors – Dark Mode (default) */
  --bg:           #07080f;
  --bg-alt:       #0d0e1a;
  --bg-card:      #111220;
  --bg-card2:     #161728;
  --bg-input:     #0d0e1a;
  --border:       rgba(255,255,255,0.07);
  --border-med:   rgba(255,255,255,0.12);
  --border-hover: rgba(108,99,255,0.4);

  --text:         #eeeef8;
  --text-2:       #8888aa;
  --text-3:       #4a4a6a;
  --text-inv:     #07080f;

  --accent:       #5b52f5;
  --accent-light: #7b74ff;
  --accent-glow:  rgba(91,82,245,0.22);
  --accent-bg:    rgba(91,82,245,0.1);

  --green:        #22c55e;
  --green-bg:     rgba(34,197,94,0.1);
  --red:          #ef4444;
  --orange:       #f97316;
  --orange-bg:    rgba(249,115,22,0.1);
  --yellow:       #eab308;
  --yellow-bg:    rgba(234,179,8,0.1);
  --cyan:         #06b6d4;
  --cyan-bg:      rgba(6,182,212,0.1);
  --pink:         #ec4899;
  --pink-bg:      rgba(236,72,153,0.1);
  --purple:       #a855f7;
  --purple-bg:    rgba(168,85,247,0.1);

  /* Typography */
  --font-main:    'Outfit', system-ui, sans-serif;
  --font-serif:   'Lora', Georgia, serif;

  /* Spacing */
  --radius-xs:    6px;
  --radius-sm:    10px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-pill:  999px;

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
  --shadow:       0 6px 24px rgba(0,0,0,0.4);
  --shadow-lg:    0 16px 60px rgba(0,0,0,0.5);
  --shadow-glow:  0 0 40px var(--accent-glow);

  /* Transitions */
  --ease:         cubic-bezier(0.4,0,0.2,1);
  --dur:          0.2s;
}

/* Light Mode */
body.light {
  --bg:           #f4f5fa;
  --bg-alt:       #ecedf5;
  --bg-card:      #ffffff;
  --bg-card2:     #f8f9fe;
  --bg-input:     #ffffff;
  --border:       rgba(0,0,0,0.07);
  --border-med:   rgba(0,0,0,0.13);
  --text:         #0f1022;
  --text-2:       #5a5a7a;
  --text-3:       #9999bb;
  --shadow:       0 6px 24px rgba(0,0,0,0.1);
  --shadow-lg:    0 16px 60px rgba(0,0,0,0.15);
}

/* ── Reset ────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
a { color:inherit; text-decoration:none; }
img,svg { display:block; max-width:100%; }
button,input,select,textarea { font-family:inherit; }
ul,ol { list-style:none; }

/* ── Layout ───────────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-sm { max-width: 820px; margin:0 auto; padding:0 20px; }
.container-md { max-width: 1000px; margin:0 auto; padding:0 20px; }

/* ── Grain Overlay ────────────────────────────────────────────── */
body::after {
  content:'';
  position:fixed;
  inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events:none;
  z-index:9998;
  opacity:0.4;
}

/* ── Navigation ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(7,8,15,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}
body.light .site-header {
  background: rgba(244,245,250,0.9);
}
.nav-wrap {
  display: flex;
  align-items: center;
  height: 62px;
  gap: 4px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  margin-right: 8px;
}
.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg,#5b52f5,#a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 17px;
  box-shadow: 0 0 18px rgba(91,82,245,0.35);
  flex-shrink: 0;
}
.nav-logo img {
  height: 34px;
  width: auto;
}

/* Mega menu nav */
.nav-main {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-card); }
.nav-link svg { width:12px; height:12px; transition: transform var(--dur) var(--ease); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.18s var(--ease);
  z-index: 100;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-2);
  transition: all var(--dur) var(--ease);
}
.nav-dropdown a:hover { color: var(--text); background: var(--bg-alt); }
.nav-dropdown a .dd-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.nav-dropdown .dd-label { font-size: 0.8rem; font-weight: 500; }
.nav-dropdown .dd-sub { font-size: 0.72rem; color: var(--text-3); margin-top: 1px; }
.dd-sep { height: 1px; background: var(--border); margin: 6px 0; }
.dd-new {
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--red);
  color: white;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  margin-left: auto;
  letter-spacing: 0.04em;
}

/* Nav right side */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  box-shadow: 0 0 20px var(--accent-glow);
  white-space: nowrap;
}
.btn-nav-cta:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 30px var(--accent-glow);
  transform: translateY(-1px);
}
.theme-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items:center; justify-content:center;
  transition: all var(--dur) var(--ease);
}
.theme-btn:hover { border-color: var(--border-med); color: var(--text); }

/* Hamburger */
.nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  margin-left: auto;
}
.nav-ham span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 62px 0 0;
  background: var(--bg);
  z-index: 499;
  overflow-y: auto;
  padding: 16px 20px 40px;
}
.mobile-nav.open { display: block; }
.mobile-nav-section { margin-bottom: 24px; }
.mobile-nav-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 4px;
  margin-bottom: 8px;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-2);
  transition: all var(--dur) var(--ease);
}
.mobile-nav-link:hover { background: var(--bg-card); color: var(--text); }
.mobile-nav-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--bg-card);
  display: flex; align-items:center; justify-content:center;
  font-size: 15px;
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-3);
  padding: 12px 0;
}
.breadcrumb a { color: var(--text-3); transition: color var(--dur); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-3); }

/* ── Page Hero (tool pages) ───────────────────────────────────── */
.page-hero {
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% -30%, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner { position: relative; }
.page-hero-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--accent-bg);
  border: 1px solid rgba(91,82,245,0.25);
  display: flex; align-items:center; justify-content:center;
  font-size: 28px;
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
}
.page-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 500;
}
.hero-meta-item .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* ── Tool Panel ───────────────────────────────────────────────── */
.tool-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tool-panel-body { padding: 28px 32px; }
@media (max-width:600px) { .tool-panel-body { padding: 20px 18px; } }

/* ── Upload Zone ──────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border-med);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  background: var(--bg-alt);
  position: relative;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-bg);
  box-shadow: var(--shadow-glow);
}
.upload-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.upload-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.upload-sub {
  font-size: 0.83rem;
  color: var(--text-2);
  margin-bottom: 16px;
}
.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  box-shadow: 0 0 20px var(--accent-glow);
}
.upload-btn:hover { background: var(--accent-light); transform: translateY(-1px); }
.upload-hint {
  font-size: 0.76rem;
  color: var(--text-3);
  margin-top: 12px;
}
.upload-filename {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  display: none;
}

/* ── Form Controls ────────────────────────────────────────────── */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.form-select,
.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.875rem;
  transition: border-color var(--dur) var(--ease);
  outline: none;
}
.form-select:focus, .form-input:focus { border-color: var(--accent); }
.form-input-range { accent-color: var(--accent); cursor: pointer; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  border-radius: var(--radius-pill);
}
.btn-primary {
  background: var(--accent);
  color: white;
  padding: 12px 28px;
  font-size: 0.93rem;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 6px 32px var(--accent-glow); }
.btn-lg { padding: 14px 34px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.83rem; }
.btn-outline {
  background: transparent;
  color: var(--text-2);
  padding: 11px 24px;
  font-size: 0.9rem;
  border: 1px solid var(--border-med);
}
.btn-outline:hover { color: var(--text); border-color: var(--accent); background: var(--accent-bg); }
.btn-ghost {
  background: var(--bg-card);
  color: var(--text-2);
  padding: 10px 20px;
  font-size: 0.87rem;
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-med); }
.btn-success {
  background: var(--green);
  color: white;
  padding: 12px 28px;
  font-size: 0.93rem;
  box-shadow: 0 0 24px rgba(34,197,94,0.25);
}
.btn-success:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-convert-wrap {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ── Ad Slots ─────────────────────────────────────────────────── */
.ad-slot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
}
.ad-leaderboard { height: 90px; }
.ad-rectangle { min-height: 250px; }
.ad-inline { height: 90px; margin: 32px 0; }
.ad-below-tool { height: 250px; margin: 32px 0; }

/* ── Status Messages ──────────────────────────────────────────── */
.tool-error {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius);
  color: #fca5a5;
  font-size: 0.875rem;
  line-height: 1.6;
}
.tool-error h3 { font-size: 0.9rem; margin-bottom: 6px; color: #f87171; }
.tool-error ul { padding-left: 16px; list-style: disc; margin-top: 6px; }
.tool-error li { margin-bottom: 4px; }
.tool-success {
  margin-top: 20px;
  padding: 20px 22px;
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius);
}
.tool-success h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool-success p { font-size: 0.875rem; color: var(--text-2); margin-bottom: 14px; }
.result-file-list {
  margin: 10px 0 0;
  padding-left: 16px;
  list-style: disc;
  font-size: 0.82rem;
  color: var(--text-2);
}
.result-file-list li { margin-bottom: 3px; }

/* ── Content Sections ─────────────────────────────────────────── */
.content-section { padding: 72px 0; }
.content-section-sm { padding: 48px 0; }
.content-section-alt { background: var(--bg-alt); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 10px;
}
.section-heading {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-heading span { color: var(--text-2); }
.section-subheading {
  font-size: 0.95rem;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.75;
}

/* ── Tool Card Grid ───────────────────────────────────────────── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tool-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.tool-card:hover::before { opacity: 1; }
.tc-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items:center; justify-content:center;
  font-size: 19px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.tc-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.3;
}
.tc-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
}
.tc-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tc-badge-new { background: var(--red); color: white; }
.tc-badge-hot { background: var(--orange); color: white; }
.tc-badge-pop { background: var(--accent); color: white; }

/* Color themes for icons */
.ic-blue  { background: var(--cyan-bg); }
.ic-purple { background: var(--purple-bg); }
.ic-red   { background: rgba(239,68,68,0.1); }
.ic-green { background: var(--green-bg); }
.ic-orange { background: var(--orange-bg); }
.ic-pink  { background: var(--pink-bg); }
.ic-yellow { background: var(--yellow-bg); }
.ic-accent { background: var(--accent-bg); }

/* ── Tabs ─────────────────────────────────────────────────────── */
.tabs-wrap {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: fit-content;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 28px;
}
.tabs-wrap::-webkit-scrollbar { display:none; }
.tab-btn {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-main);
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.tab-btn.active { background: var(--accent); color: white; }
.tab-btn:not(.active):hover { background: var(--bg-alt); color: var(--text); }

/* ── SEO Article ──────────────────────────────────────────────── */
.article-body {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.8;
}
.article-body h2 {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 14px;
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
}
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol {
  padding-left: 20px;
  margin-bottom: 14px;
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--accent-light); text-decoration: underline; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.85em;
  font-family: 'Courier New', monospace;
  color: var(--accent-light);
}
.article-callout {
  background: var(--accent-bg);
  border: 1px solid rgba(91,82,245,0.2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.875rem;
  color: var(--text-2);
}
.article-callout strong { color: var(--text); }

/* ── FAQ Accordion ────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.faq-item.open { border-color: var(--border-med); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-arrow {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items:center; justify-content:center;
  font-size: 10px;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
  color: var(--text-2);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--accent); color: white; }
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-item.open .faq-body { max-height: 600px; }
.faq-body-inner {
  padding: 0 20px 18px;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.75;
}
.faq-body-inner a { color: var(--accent-light); text-decoration: underline; }

/* ── Related Tools ────────────────────────────────────────────── */
.related-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.related-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--dur) var(--ease);
}
.related-tool-link:hover { border-color: var(--accent); color: var(--text); background: var(--accent-bg); }

/* ── Stats Bar ────────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 4px 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 36px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl { font-size: 0.75rem; color: var(--text-3); font-weight: 500; }

/* ── Feature Cards ────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all var(--dur) var(--ease);
}
.feature-card:hover { border-color: var(--border-med); transform: translateY(-2px); }
.fc-icon { font-size: 26px; margin-bottom: 12px; }
.fc-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 7px; }
.fc-desc { font-size: 0.83rem; color: var(--text-2); line-height: 1.6; }

/* ── Trust Strip ──────────────────────────────────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 32px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--bg-alt);
  display: flex; align-items:center; justify-content:center;
  font-size: 16px;
}
.trust-text strong { font-size: 0.85rem; display: block; font-weight: 600; }
.trust-text span { font-size: 0.73rem; color: var(--text-3); }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand { }
.footer-logo {
  display: flex; align-items:center; gap: 9px;
  font-weight: 800; font-size: 1rem; letter-spacing:-0.02em;
  margin-bottom: 14px;
}
.footer-logo .lm {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg,#5b52f5,#a855f7);
  display: flex; align-items:center; justify-content:center;
  color: white; font-size: 15px;
}
.footer-logo img { height: 32px; width: auto; }
.footer-about {
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 16px;
}
.footer-socials { display:flex; gap:8px; }
.footer-social {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items:center; justify-content:center;
  font-size: 14px; color: var(--text-2);
  transition: all var(--dur) var(--ease);
}
.footer-social:hover { border-color: var(--border-med); color: var(--text); }
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 0.84rem;
  color: var(--text-2);
  transition: color var(--dur) var(--ease);
  display: flex; align-items:center; gap: 6px;
}
.footer-links a:hover { color: var(--text); }
.footer-links .new-tag {
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--red);
  color: white;
  padding: 1px 5px;
  border-radius: 3px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.78rem; color: var(--text-3); }
.footer-legal { display:flex; gap: 20px; }
.footer-legal a { font-size: 0.78rem; color: var(--text-3); transition: color var(--dur); }
.footer-legal a:hover { color: var(--text-2); }

/* ── Scroll Reveal ────────────────────────────────────────────── */
.sr {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.sr.visible { opacity: 1; transform: translateY(0); }

/* ── Utility ──────────────────────────────────────────────────── */
.text-accent { color: var(--accent-light); }
.text-muted  { color: var(--text-2); }
.text-dim    { color: var(--text-3); }
.flex        { display: flex; }
.flex-center { display:flex; align-items:center; justify-content:center; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.gap-16      { gap: 16px; }
.mt-8        { margin-top: 8px; }
.mt-16       { margin-top: 16px; }
.mt-24       { margin-top: 24px; }
.mt-32       { margin-top: 32px; }
.mt-48       { margin-top: 48px; }
.mb-8        { margin-bottom: 8px; }
.mb-16       { margin-bottom: 16px; }
.mb-24       { margin-bottom: 24px; }
.mb-32       { margin-bottom: 32px; }
.hidden      { display: none !important; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 768px) {
  .nav-main { display: none; }
  .nav-ham  { display: flex; }
  .content-section { padding: 48px 0; }
  .stats-inner { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); width: 100%; }
  .stat-item:last-child { border-bottom: none; }
  .trust-strip { gap: 20px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 2; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 32px 0 28px; }
}
@media (max-width: 420px) {
  .tool-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ── Blog Layout ──────────────────────────────────────────────── */
.blog-post-wrap { padding-bottom: 80px; }
.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  margin-top: 8px;
}
.blog-post-main { min-width: 0; }
.blog-sidebar { min-width: 0; }

/* Post Header */
.post-header { margin-bottom: 28px; }
.post-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
  margin: 12px 0 10px;
}
.post-meta {
  display: flex;
  gap: 16px;
  font-size: .8rem;
  color: var(--text-3);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.post-intro {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 0;
}

/* CTA block inside post */
.post-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--accent-bg);
  border: 1px solid rgba(91,82,245,.2);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  flex-wrap: wrap;
}
.post-cta-icon { font-size: 2.4rem; line-height: 1; flex-shrink: 0; }
.post-cta h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; }
.post-cta p { margin: 0; font-size: .875rem; color: var(--text-2); }
.post-cta .btn { flex-shrink: 0; white-space: nowrap; }

/* Code blocks in posts */
.code-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 16px 0;
}
.code-block code {
  font-family: 'Courier New', Consolas, monospace;
  font-size: .82rem;
  color: var(--accent-light);
  white-space: pre-wrap;
  word-break: break-all;
  background: none;
  border: none;
  padding: 0;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}
.comparison-table th, .comparison-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.comparison-table th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--text);
}
.comparison-table td { color: var(--text-2); }
.comparison-table a { color: var(--accent-light); text-decoration: underline; }
.comparison-table tr:hover td { background: var(--bg-alt); }

/* Blog responsive */
@media (max-width: 900px) {
  .blog-post-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar { display: none; }
}