/*
 * PDFToolShack — style.css
 * Global stylesheet. All pages share these rules.
 * Font: Sora (headings/UI) + Inter (body copy)
 */

/* ═══════════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════════ */
:root {
  /* Brand */
  --red:          #E53E3E;
  --red-light:    #FC8181;
  --red-dark:     #C53030;
  --orange:       #DD6B20;
  --orange-light: #F6AD55;

  /* Dark surfaces (hero, nav, footer) */
  --dark-bg:      #0D1117;
  --dark-bg2:     #161B22;
  --dark-bg3:     #1C2128;
  --dark-bg4:     #21262D;
  --dark-border:  #30363D;
  --dark-border2: #444C56;

  /* Dark text */
  --dark-text:    #E6EDF3;
  --dark-text2:   #8B949E;
  --dark-text3:   #656D76;

  /* Light content area */
  --page-bg:      #E8EDF2;
  --white:        #ffffff;
  --light-text:   #0D1117;
  --light-text2:  #3A4046;
  --light-text3:  #6A737D;
  --light-border: #C8D0D8;
  --light-bg2:    #F0F3F6;

  /* Semantic */
  --green:        #3FB950;
  --purple:       #7C3AED;
  --purple-light: #A78BFA;

  /* Typography */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --container:    1200px;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    20px;

  /* Transitions */
  --transition:   all 0.18s ease;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--dark-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-display); }
input, textarea, select { font-family: var(--font-body); }

/* ═══════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.grad-text {
  background: linear-gradient(135deg, #FC8181, #F6AD55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--dark-text);
  border: 1px solid var(--dark-border2);
}
.btn-secondary:hover { border-color: var(--red-light); color: var(--red-light); }

.btn-nav-cta {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  padding: 8px 18px;
  font-size: 13px;
}
.btn-nav-cta:hover { opacity: 0.9; }

/* ═══════════════════════════════════════════
   SITE HEADER / NAV
═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.97);
  border-bottom: 1px solid var(--dark-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 58px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 32px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-text);
  letter-spacing: -0.01em;
}

.logo-accent { color: var(--red-light); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  list-style: none;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-text2);
  transition: var(--transition);
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--dark-text);
  background: var(--dark-bg4);
}

/* Dropdown */
.has-dropdown { position: relative; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  grid-template-columns: repeat(4, 200px);
  gap: 0;
  background: var(--dark-bg2);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  z-index: 200;
  /* Invisible top padding acts as a mouse bridge from nav link to dropdown */
  margin-top: 0;
  padding-top: 22px;
}

.dropdown-col { padding: 0 16px; border-right: 1px solid var(--dark-border); }
.dropdown-col:last-child { border-right: none; }

.dropdown-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-text3);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--dark-border);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--dark-text2);
  transition: var(--transition);
}

.nav-dropdown a:hover {
  color: var(--red-light);
  background: rgba(229, 62, 62, 0.08);
}

/* Search */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dark-bg3);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 7px 14px;
  color: var(--dark-text3);
  transition: var(--transition);
}

.nav-search:focus-within {
  border-color: rgba(229, 62, 62, 0.5);
  background: var(--dark-bg4);
}

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--dark-text);
  font-size: 13px;
  width: 180px;
}

.nav-search input::placeholder { color: var(--dark-text3); }

/* Hamburger (hidden on desktop) */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  color: var(--dark-text2);
  padding: 7px 10px;
  font-size: 16px;
  margin-left: auto;
}

/* ═══════════════════════════════════════════
   HERO (dark) — homepage
═══════════════════════════════════════════ */
.hero-home {
  padding: 72px 24px 60px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(229,62,62,0.12) 0%, transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229,62,62,0.1);
  border: 1px solid rgba(229,62,62,0.25);
  border-radius: 99px;
  padding: 6px 18px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red-light);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-badge .badge-dot {
  width: 7px; height: 7px;
  background: var(--red-light);
  border-radius: 50%;
}

.hero-home h1 {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-home .hero-sub {
  font-size: 17px;
  color: var(--dark-text2);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

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

/* Stats bar */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--red-light);
  display: block;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark-text3);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════
   TRUST BAR (homepage)
═══════════════════════════════════════════ */
.trust-bar {
  background: var(--dark-bg2);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: 28px 24px;
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.trust-icon.red    { background: rgba(229,62,62,0.12);   color: var(--red-light); }
.trust-icon.orange { background: rgba(221,107,32,0.12);  color: var(--orange-light); }
.trust-icon.green  { background: rgba(63,185,80,0.12);   color: var(--green); }
.trust-icon.purple { background: rgba(124,58,237,0.12);  color: var(--purple-light); }

.trust-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 3px;
}

.trust-desc {
  font-size: 12px;
  color: var(--dark-text3);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   TOOL GRID SECTION (homepage)
═══════════════════════════════════════════ */
.tools-section {
  padding: 56px 24px;
}

.tools-section-inner { max-width: var(--container); margin: 0 auto; }

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-light);
  text-align: center;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--dark-text2);
  text-align: center;
  font-size: 14px;
  margin-bottom: 32px;
}

/* Phase notice */
.phase-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--dark-bg3);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--dark-text2);
}

.phase-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.phase-dot.live   { background: var(--green); }
.phase-dot.soon   { background: var(--orange-light); }

/* Category tabs */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--dark-bg3);
  border: 1px solid var(--dark-border);
  border-radius: 99px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-text2);
  cursor: pointer;
  transition: var(--transition);
}

.cat-tab:hover { border-color: var(--dark-border2); color: var(--dark-text); }

.cat-tab.active {
  background: rgba(229,62,62,0.12);
  border-color: rgba(229,62,62,0.4);
  color: var(--red-light);
}

.cat-tab .tab-count {
  background: var(--dark-bg4);
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 11px;
}

.cat-tab.active .tab-count { background: rgba(229,62,62,0.2); }

/* Tool cards grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.tool-card {
  position: relative;
  background: var(--dark-bg2);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  opacity: 0;
  transition: opacity 0.18s;
}

.tool-card:hover {
  border-color: var(--dark-border2);
  background: var(--dark-bg3);
  transform: translateY(-2px);
}

.tool-card:hover::before { opacity: 1; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.card-icon.red    { background: rgba(229,62,62,0.12);   color: var(--red-light); }
.card-icon.orange { background: rgba(221,107,32,0.12);  color: var(--orange-light); }
.card-icon.green  { background: rgba(63,185,80,0.12);   color: var(--green); }
.card-icon.purple { background: rgba(124,58,237,0.12);  color: var(--purple-light); }

.tool-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 8px;
  border-radius: 5px;
}

.tool-badge.hot    { background: rgba(229,62,62,0.15);   color: var(--red-light); }
.tool-badge.pop    { background: rgba(221,107,32,0.15);  color: var(--orange-light); }
.tool-badge.new    { background: rgba(63,185,80,0.12);   color: var(--green); }
.tool-badge.free   { background: rgba(124,58,237,0.12);  color: var(--purple-light); }
.tool-badge.phase2 { background: rgba(139,148,158,0.12); color: var(--dark-text3); }

.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 6px;
}

.card-desc {
  font-size: 12px;
  color: var(--dark-text3);
  line-height: 1.55;
  margin-bottom: 14px;
}

.card-link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--red-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════════════════════════════
   BLOG PREVIEW SECTION (homepage)
═══════════════════════════════════════════ */
.blog-section {
  background: var(--dark-bg2);
  border-top: 1px solid var(--dark-border);
  padding: 56px 24px;
}

.blog-section-inner { max-width: var(--container); margin: 0 auto; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.blog-card {
  background: var(--dark-bg3);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: var(--transition);
  display: block;
  text-decoration: none;
}

.blog-card:hover { border-color: var(--dark-border2); background: var(--dark-bg4); }

.blog-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 5px;
  margin-bottom: 12px;
}

.blog-tag.tips  { background: rgba(229,62,62,0.12);   color: var(--red-light); }
.blog-tag.guide { background: rgba(124,58,237,0.12);  color: var(--purple-light); }
.blog-tag.howto { background: rgba(63,185,80,0.12);   color: var(--green); }

.blog-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-desc {
  font-size: 13px;
  color: var(--dark-text3);
  line-height: 1.55;
  margin-bottom: 16px;
}

.blog-link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--red-light);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ═══════════════════════════════════════════
   TOOL PAGE — HERO (dark)
═══════════════════════════════════════════ */
.tool-hero {
  background: var(--dark-bg);
  background-image: radial-gradient(ellipse 50% 90% at 15% 50%, rgba(229,62,62,0.09) 0%, transparent 70%);
  padding: 30px 24px 36px;
  border-bottom: 1px solid var(--dark-border);
}

.tool-hero-inner { max-width: var(--container); margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--dark-text3);
  margin-bottom: 18px;
}

.breadcrumb a { color: var(--dark-text3); }
.breadcrumb a:hover { color: var(--red-light); }
.breadcrumb .sep { color: var(--dark-border2); }

.tool-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(229,62,62,0.1);
  border: 1px solid rgba(229,62,62,0.25);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-light);
  margin-bottom: 14px;
}

.tool-hero h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.tool-hero .hero-sub {
  font-size: 15px;
  color: var(--dark-text2);
  max-width: 580px;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   TOOL PAGE — CONTENT AREA (light)
═══════════════════════════════════════════ */
.tool-content {
  background: var(--page-bg);
  padding: 24px;
}

.tool-content-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Ad zone */
.ad-zone {
  background: var(--white);
  border: 1px dashed #bbc3cb;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  color: var(--light-text3);
  font-size: 11px;
  margin-bottom: 22px;
}

/* 2-col layout */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  column-gap: 22px;
  row-gap: 0;
  align-items: start;
}

/* Tool left column */
.tool-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 74px;
  align-self: start;
}

/* FAQ — inside tool-left, inherits flex gap */
.faq-outer {
  width: 100%;
}
.tool-card-wrap {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tool-card-head {
  padding: 20px 22px 0;
}

.tool-card-head h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 5px;
}

.tool-card-head p {
  font-size: 13px;
  color: var(--light-text2);
  margin-bottom: 18px;
}

/* Drop zone */
.drop-zone {
  margin: 0 22px 22px;
  background: var(--dark-bg2);
  border: 2px dashed rgba(229,62,62,0.35);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.drop-zone:hover { border-color: rgba(229,62,62,0.65); }

.drop-icon {
  width: 62px;
  height: 62px;
  background: rgba(229,62,62,0.12);
  border: 1px solid rgba(229,62,62,0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--red-light);
  margin: 0 auto 16px;
}

.drop-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 6px;
}

.drop-sub {
  font-size: 13px;
  color: var(--dark-text3);
  margin-bottom: 16px;
}

.btn-upload {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  transition: var(--transition);
}

.btn-upload:hover { opacity: 0.9; transform: translateY(-1px); }

.drop-formats {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.drop-formats span {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--dark-border);
  border-radius: 4px;
  padding: 3px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--dark-text3);
  letter-spacing: 0.05em;
}

/* Workspace sections */
.workspace { display: none; }
.workspace.visible { display: block; }

.ws-section {
  padding: 18px 22px;
  border-bottom: 1px solid var(--light-border);
}

.ws-section:last-of-type { border-bottom: none; }

.ws-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light-text2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-label::before {
  content: '';
  width: 3px;
  height: 12px;
  background: linear-gradient(var(--red), var(--orange));
  border-radius: 2px;
}

/* Action bar */
.action-bar {
  padding: 16px 22px;
  background: var(--light-bg2);
  border-top: 1px solid var(--light-border);
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-action {
  flex: 1;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: var(--transition);
}

.btn-action:hover { opacity: 0.9; }

.btn-reset {
  background: transparent;
  color: var(--light-text2);
  border: 1px solid var(--light-border);
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reset:hover { border-color: var(--light-text3); }

/* ── About / prose blocks ── */
.prose-block {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 0;
}

.prose-block h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 14px;
}

.prose-block p {
  font-size: 13px;
  color: var(--light-text2);
  line-height: 1.75;
  margin-bottom: 12px;
}

.prose-block p:last-child { margin-bottom: 0; }
.prose-block a { color: var(--red); }

.faq-section {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.faq-section h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 20px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.faq-question {
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--light-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--white);
  user-select: none;
  transition: background 0.15s;
}

.faq-question:hover { background: var(--light-bg2); }

.faq-chevron {
  color: var(--light-text3);
  font-size: 12px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-answer {
  display: none;
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--light-text2);
  line-height: 1.65;
  background: var(--white);
}

.faq-answer a { color: var(--red); }

.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open { border-color: rgba(229,62,62,0.3); }
.faq-item.open .faq-question { background: rgba(229,62,62,0.03); }

/* Affiliate card */
.aff-card {
  background: linear-gradient(135deg, #FFF5F5, #FFFAF0);
  border: 1px solid rgba(229,62,62,0.2);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.aff-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--red);
  margin-bottom: 12px;
}

.aff-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 7px;
}

.aff-desc {
  font-size: 12px;
  color: var(--light-text2);
  line-height: 1.55;
  margin-bottom: 14px;
}

.btn-aff {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.btn-aff:hover { opacity: 0.9; }

.aff-disc {
  font-size: 10px;
  color: #aaa;
  margin-top: 8px;
  text-align: center;
}

/* Sidebar card (shared) */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-card-head {
  padding: 13px 16px;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--light-text);
}

.sidebar-card-head i { color: var(--red-light); }

.sidebar-card-body { padding: 14px 16px; }

/* Pro tips */
.pro-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--light-border);
}

.pro-tip:last-child { border-bottom: none; padding-bottom: 0; }

.tip-num {
  width: 22px;
  height: 22px;
  background: rgba(229,62,62,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 1px;
}

.tip-text {
  font-size: 12px;
  color: var(--light-text2);
  line-height: 1.55;
}

.tip-text strong { color: var(--light-text); font-weight: 600; }
.tip-text a { color: var(--red); }

/* Related tools */
.related-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--light-border);
  text-decoration: none;
  transition: var(--transition);
}

.related-tool:last-child { border-bottom: none; padding-bottom: 0; }
.related-tool:hover .related-name { text-decoration: underline; }

.related-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

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

.related-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.related-desc { font-size: 11px; color: var(--light-text3); }

.related-arrow { font-size: 12px; color: var(--light-text3); }

/* Sidebar ad */
/* ── File rows (shared across all tool pages) ── */
.file-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--light-bg2);
  border: 1px solid var(--light-border);
  border-radius: 9px;
  padding: 10px 14px;
}

.file-row.highlighted { border-color: rgba(229,62,62,.35); background: rgba(229,62,62,.02); }

.file-thumb {
  width: 34px;
  height: 42px;
  background: linear-gradient(135deg, #E53E3E, #DD6B20);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: .04em;
}

.file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--light-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta { font-size: 11px; color: var(--light-text2); margin-top: 2px; }

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

.file-actions { display: flex; gap: 6px; }

.icon-btn {
  width: 28px;
  height: 28px;
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: var(--light-text2);
  transition: var(--transition);
}

.icon-btn:hover { border-color: var(--light-text3); }
.icon-btn.danger { color: var(--red); }
.icon-btn.danger:hover { background: rgba(229,62,62,.06); border-color: var(--red); }

.add-more-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: var(--white);
  border: 1px dashed var(--light-border);
  border-radius: 9px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--light-text2);
  transition: var(--transition);
}

.add-more-btn:hover { border-color: var(--red); color: var(--red); }

.add-more-btn--primary {
  background: linear-gradient(135deg, var(--red), var(--orange));
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  justify-content: center;
}
.add-more-btn--primary:hover { opacity: .9; color: #fff; border: none; }

/* Options grid (merge, etc.) */
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.option-item { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; cursor: pointer; }
.option-item input[type="checkbox"] { accent-color: var(--red); margin-top: 3px; flex-shrink: 0; width: 15px; height: 15px; }
.option-name { font-weight: 600; color: var(--light-text); font-size: 13px; }
.option-desc { font-size: 11px; color: var(--light-text2); }

/* Filename row */
.filename-row { display: flex; align-items: center; gap: 8px; }
.filename-row input {
  flex: 1;
  background: var(--light-bg2);
  border: 1px solid var(--light-border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--light-text);
  outline: none;
  transition: var(--transition);
}
.filename-row input:focus { border-color: rgba(229,62,62,.5); }
.filename-ext { font-size: 13px; color: var(--light-text2); }

.sidebar-ad {
  background: var(--white);
  border: 1px dashed var(--light-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  color: var(--light-text3);
  font-size: 11px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--dark-bg2);
  border-top: 1px solid var(--dark-border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.footer-logo { margin-bottom: 0; }

.footer-tagline {
  font-size: 12px;
  color: var(--dark-text3);
  line-height: 1.65;
  margin-top: 12px;
  max-width: 240px;
}

.footer-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(63,185,80,0.1);
  border: 1px solid rgba(63,185,80,0.2);
  color: var(--green);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 12px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-text3);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  font-size: 13px;
  color: var(--dark-text2);
  transition: color 0.15s;
}

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

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid var(--dark-border);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
}

.footer-bottom p { font-size: 12px; color: var(--dark-text3); }

.footer-network {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-network span {
  font-size: 11px;
  color: var(--dark-text3);
}

.footer-network a {
  font-size: 12px;
  color: var(--dark-text3);
  transition: color 0.15s;
}

.footer-network a:hover { color: var(--dark-text); }

/* Footer network blurb */
.footer-network-blurb {
  margin-top: 18px;
}
.footer-network-blurb p {
  font-size: 12px;
  color: var(--dark-text3);
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-network-blurb ul { list-style: none; }

.footer-network-blurb li { margin-bottom: 6px; }

.footer-network-blurb li::before {
  content: '\2022';
  color: var(--red-light);
  margin-right: 7px;
}

.footer-network-blurb a {
  font-size: 13px;
  color: var(--dark-text2);
  transition: color 0.15s;
}

.footer-network-blurb a:hover { color: var(--red-light); }

/* Footer legal links */
.footer-legal {
  display: flex;
  gap: 20px;
}

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

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

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-dropdown { grid-template-columns: repeat(2, 200px); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-home h1 { font-size: 36px; }
  .hero-stats { gap: 28px; }
  .trust-bar-inner { grid-template-columns: 1fr 1fr; }
  .tool-layout { grid-template-columns: 1fr; }
  .faq-outer { width: 100%; margin-top: 16px; }
  .sidebar {
    order: -1;
    position: static;
  }
  .faq-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

  /* Mobile nav */
  .nav-links {
    display: none;
    position: fixed;
    top: 58px;
    left: 0; right: 0;
    background: var(--dark-bg2);
    border-bottom: 1px solid var(--dark-border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    z-index: 99;
  }

  .nav-links.nav-open { display: flex; }
  .nav-right { display: none; }
  .nav-right.nav-open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-dropdown { position: static; display: none !important; } /* simplify on mobile */
}

@media (max-width: 480px) {
  .tool-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
