:root {
  color-scheme: light only;
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f8;
  --bg-inset: #f4f4f7;
  --border: #e2e2ea;
  --border-subtle: #ededf2;
  --accent: #e53935;
  --accent-hover: #c62828;
  --accent-dim: rgba(229, 57, 53, 0.07);
  --text: #111116;
  --text-muted: #55555f;
  --text-dim: #9090a0;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
  --header-bg: #111116;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── HEADER ── */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 28px;
  height: 34px;
  flex-shrink: 0;
  display: block;
}
.logo-mark img,
.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
}
.logo-text span { color: #00ACC1; }
.logo-img { display: none; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
}

.nav-desktop a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-desktop a:hover,
.nav-desktop a.active { color: #ffffff; background: rgba(255,255,255,0.09); }

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 32px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  box-sizing: border-box;
}
.btn-ghost:hover { color: #ffffff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.09); }

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }

/* ── Premium (gold) — reuses the nav Upgrade crown palette ──────────── */
.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 45%, #f59e0b 100%);
  color: #3a2c00 !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(120,53,15,0.25);
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.btn-premium:hover  { filter: brightness(1.05); color: #3a2c00 !important; }
.btn-premium:active { transform: scale(0.98); }
.premium-crown {
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 45%, #f59e0b 100%);
  color: #3a2c00;
}
.premium-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 45%, #f59e0b 100%);
  color: #3a2c00; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.03em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 99px;
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 500;
  padding: 0 18px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
.btn-icon-only { padding: 0 8px; }

.btn-outline {
  background: transparent;
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.btn-outline:hover { background: var(--bg-card-hover); border-color: #ccc; color: var(--text) !important; }

/* Hamburger */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
}
.hamburger-btn:hover { background: rgba(255,255,255,0.09); }

/* ── MOBILE DRAWER ── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
}
.drawer-overlay.open { display: block; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer .logo-text { color: var(--text); }
.drawer .logo-text span { color: #00ACC1; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 20px;
  line-height: 1;
}
.drawer-close:hover { color: var(--text); background: var(--bg-card); }

.drawer-nav { padding: 12px 0; }
.drawer-nav a {
  display: block;
  padding: 11px 20px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.drawer-nav a:hover { color: var(--text); border-left-color: var(--accent); background: var(--accent-dim); }
.drawer-nav .section-label {
  padding: 12px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.drawer-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ── FLASH MESSAGES ── */
.flash-container { max-width: 1200px; margin: 0 auto; padding: 12px 20px 0; }
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flash-success { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.flash-danger  { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.flash-warning { background: rgba(234, 179, 8, 0.12); border: 1px solid rgba(234,179,8,0.3); color: #fde047; }
.flash-info    { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }

/* ── MAIN CONTENT ── */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}
.page-narrow {
  max-width: 860px;
  margin: 0 auto;
}

/* ── HERO SECTION ── */
.hero {
  padding: 48px 0 32px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero p.lead {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 480px;
  line-height: 1.7;
}

/* Format selector */
.format-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.format-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  min-width: 90px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.format-box:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.format-box .fmt-icon { font-size: 28px; margin-bottom: 4px; display: block; }
.format-box .fmt-label { font-size: 13px; font-weight: 700; color: var(--text); }
.format-arrow { color: var(--accent); font-size: 18px; font-weight: 700; }
.format-to-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-align: center;
  display: block;
}

/* ── UPLOAD ZONE ── */
.upload-section {
  background: var(--bg-elevated);
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.upload-section:hover,
.upload-section.drag-over {
  border-color: var(--accent);
  background: rgba(229,57,53,0.04);
}
.upload-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
  font-size: 22px;
}
.upload-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.upload-section p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.upload-btn {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.upload-btn:hover { background: var(--accent-hover); }
.upload-btn svg { width: 16px; height: 16px; }

/* ── CONVERSION OPTIONS ── */
.options-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  display: none;
}
.options-panel.visible { display: block; }
.options-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.option-label {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 100px;
}
.option-select, .option-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  padding: 6px 10px;
  outline: none;
}
.option-select:focus, .option-input:focus { border-color: var(--accent); }

.quality-slider {
  width: 200px;
  accent-color: var(--accent);
}

/* ── JOB STATUS / PROGRESS ── */
.job-status-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  display: none;
  margin-top: 16px;
}
.job-status-panel.visible { display: block; }

.progress-bar-wrap {
  background: var(--bg-card);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  margin: 16px 0;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.3s;
  width: 0%;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  display: none;
}
.download-card.visible { display: flex; }
.download-info { text-align: left; }
.download-info .file-name { font-weight: 600; font-size: 14px; }
.download-info .file-size { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* ── TRUST BADGES ── */
.trust-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 99px;
}
.trust-badge svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* ── SECTION HEADINGS ── */
.section {
  margin-top: 48px;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 0 0 18px 0;
}
.section-label svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

.section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

/* ── About / NLP overview block on homepage ─────────────────────────── */
.hp-about {
  margin: 48px 0;
}
.hp-about-body {
  max-width: 920px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}
.hp-about-body p { margin: 0 0 14px; }
.hp-about-body strong { color: var(--text); font-weight: 700; }
.hp-about-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.hp-about-body a:hover { color: var(--accent-hover, var(--accent)); }
.hp-about-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px !important;
  font-size: 14px;
}
.hp-about-cta a {
  text-decoration: none !important;
  font-weight: 600;
  color: var(--accent);
}
.hp-about-cta a:hover { text-decoration: underline !important; }

.section p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ── FORMAT CHIPS ── */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--accent); background: var(--accent-dim); }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip img { flex-shrink: 0; }

/* ── CONVERSION TYPE COLUMNS ── */
.conversion-types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 16px;
}
.conv-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.conv-col-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.conv-subhead {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* ── FORMAT REFERENCE BOX ── */
.format-reference {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 16px;
}
.format-ref-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}
.format-ref-content { flex: 1; }
.format-ref-content strong { font-size: 14px; color: var(--text); }
.format-ref-content p { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin-top: 4px; }

/* ── SUPPORTED FORMATS PAGE ── */
.sf-wrap { max-width: 1060px; }

.sf-hero { padding: 48px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.sf-hero-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.sf-hero-sub { font-size: 1rem; color: var(--text-muted); max-width: 560px; line-height: 1.65; margin-bottom: 28px; }
.sf-hero-stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.sf-stat { display: flex; flex-direction: column; gap: 2px; }
.sf-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.sf-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); font-weight: 600; }
.sf-stat-div { width: 1px; height: 32px; background: var(--border); }

.sf-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 32px; }
.sf-search-wrap { position: relative; flex-shrink: 0; }
.sf-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.sf-search { height: 36px; padding: 0 12px 0 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text); font-size: 13px; width: 220px; outline: none; }
.sf-search:focus { border-color: var(--accent); }
.sf-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-tab { height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap; }
.sf-tab:hover { border-color: var(--accent); color: var(--accent); }
.sf-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.sf-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 0; color: var(--text-dim); text-align: center; }
.sf-empty p { font-size: 14px; margin: 0; }

.sf-section { margin-bottom: 52px; }
.sf-section-heading { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.sf-section-count { margin-left: 6px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim); }
.sf-section-intro { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin: -12px 0 20px; max-width: 680px; }
.sf-section-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sf-icon-raster  { background: #fef3c7; color: #b45309; }
.sf-icon-raw     { background: #fce7f3; color: #be185d; }
.sf-icon-vector  { background: #ecfdf5; color: #047857; }
.sf-icon-design  { background: #eff6ff; color: #1d4ed8; }
.sf-icon-office  { background: #f5f3ff; color: #6d28d9; }

/* cards */
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.sf-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s; }
.sf-card:hover { border-color: var(--accent); }
.sf-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.sf-card-name { font-size: 12px; font-weight: 600; color: var(--text-muted); margin: 0; }
.sf-card-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.65; margin: 0; flex: 1; }
.sf-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.sf-tag { font-size: 10.5px; padding: 2px 7px; border-radius: 4px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-dim); font-weight: 500; }
.sf-tag-io { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.sf-tag-in { background: var(--bg-elevated); border-color: var(--border); color: var(--text-dim); }

/* extension badges */
.sf-ext-badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 5px; letter-spacing: .04em; text-transform: uppercase; flex-shrink: 0; }
.sf-ext-alias { font-size: 11px; color: var(--text-dim); font-weight: 600; }
.sf-badge-orange { background: #fef3c7; color: #92400e; }
.sf-badge-blue   { background: #dbeafe; color: #1e3a8a; }
.sf-badge-teal   { background: #ccfbf1; color: #0f5749; }
.sf-badge-green  { background: #dcfce7; color: #14532d; }
.sf-badge-purple { background: #ede9fe; color: #4c1d95; }
.sf-badge-pink   { background: #fce7f3; color: #831843; }
.sf-badge-red    { background: #fee2e2; color: #7f1d1d; }
.sf-badge-grey   { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); }

/* RAW grid */
.sf-raw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sf-raw-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.sf-raw-card:hover { border-color: var(--accent); }
.sf-raw-ext { font-size: 13px; font-weight: 800; color: var(--text); letter-spacing: .04em; }
.sf-raw-maker { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.sf-raw-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin-top: 2px; }
.sf-raw-link { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--accent); text-decoration: none; }
.sf-raw-link:hover { text-decoration: underline; }

/* format card converter links */
.sf-card-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.sf-card-link { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s; }
.sf-card-link:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* office groups */
.sf-office-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.sf-office-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.sf-office-group-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 14px; }
.sf-office-list { display: flex; flex-direction: column; gap: 8px; }
.sf-office-item { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sf-mini-badge { font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text); white-space: nowrap; flex-shrink: 0; }
.sf-office-link { font-size: 11px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.sf-office-link:hover { text-decoration: underline; }

/* output section */
.sf-output-section { border-top: 1px solid var(--border); padding-top: 40px; margin-top: 8px; margin-bottom: 48px; }
.sf-output-title { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.sf-output-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.sf-output-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sf-output-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s; }
.sf-output-card:hover { border-color: var(--accent); }
.sf-output-card p { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin: 0; flex: 1; }
.sf-output-link { font-size: 12px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 4px; text-decoration: none; margin-top: 4px; }
.sf-output-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .sf-hero-title { font-size: 1.6rem; }
  .sf-controls { flex-direction: column; align-items: flex-start; }
  .sf-search { width: 100%; }
  .sf-section-heading { font-size: 1rem; }
  .sf-office-groups { grid-template-columns: 1fr; }
}

/* ── HOW IT WORKS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.step-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.step-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.step-card p { font-size: 13px; color: var(--text-muted); }

/* ── RELATED TOOLS GRID (legacy, still used on converter pages) ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.tool-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.15s, background 0.15s;
  display: block;
}
.tool-card:hover { border-color: var(--accent); background: var(--bg-card); color: var(--text); }
.tool-card .tool-fmt {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.tool-card .tool-name { font-size: 13px; font-weight: 600; color: var(--text); }
.tool-card .tool-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── TOOLS PAGE v2 ── */
.tools-hero {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 52px 20px 44px;
  text-align: center;
}
.tools-hero-inner { max-width: 640px; margin: 0 auto; }
.tools-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.tools-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}
.tools-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.tools-hero-dot { margin: 0 8px; }
.tools-hero--compact { padding: 24px 20px 20px; }
.tools-hero--compact .tools-hero-title { font-size: 1.6rem; margin-bottom: 8px; }
.tools-hero--compact .tools-hero-sub { margin-bottom: 12px; font-size: 15px; }

.tools-page { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }

/* ── AI Featured Tools grid (tools page) ── */
.ai-tools-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.ai-featured-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.ai-featured-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.ai-featured-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.ai-featured-body { min-width: 0; }
.ai-featured-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px 0;
  line-height: 1.3;
}
.ai-featured-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.ai-featured-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 2px 8px;
  border-radius: 20px;
}

.tools-section { margin-top: 52px; }
.tools-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tools-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.tools-section-desc {
  font-size: 13.5px;
  color: var(--text-muted);
}

.tools-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.tool-card-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.tool-card-v2:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(229,57,53,0.08);
  background: rgba(229,57,53,0.015);
}
.tool-card-v2--featured { border-color: var(--accent); }
.tool-card-icon { width: 32px; height: 37px; object-fit: contain; flex-shrink: 0; }
.tool-card-body { min-width: 0; }
.tool-card-fmts {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}
.tool-card-from {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.tool-card-arrow { font-size: 10px; color: var(--text-dim); }
.tool-card-to {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.tool-card-badge {
  font-size: 9px;
  font-weight: 700;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 3px;
  padding: 1px 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tool-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
  /* Wrap to a second line instead of truncating with an ellipsis */
}

/* Tools about section */
.tools-about {
  margin-top: 64px;
  padding: 40px;
  background: var(--bg-inset);
  border-radius: 16px;
}
.tools-about h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.tools-about > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.tools-intro-list {
  margin: 0 0 16px 1.1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tools-intro-list li {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.tools-intro-list li strong { color: var(--text); }
.tools-about-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 1100px) { .tools-about-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .tools-about-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .tools-about-grid { grid-template-columns: 1fr; } }
.tools-about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.tools-about-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tools-about-icon svg { width: 32px; height: 32px; }
.tools-about-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.tools-about-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── TOOLS PAGE - EXTRAS ── */
.tools-see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  align-self: flex-end;
}
.tools-see-all:hover { text-decoration: underline; }
.tools-subhead {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 16px 0 10px;
}
.tool-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.5;
}

/* ── RICH CONTENT TABLES ── */
.rich-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius);
  border: 1px solid #d0d0d8;
}
.rich-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
  table-layout: auto;
}
.rich-table thead tr { background: #f4f4f7; }
.rich-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6a6a7a;
  border-bottom: 1px solid #d0d0d8;
  white-space: nowrap;
}
.rich-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #e8e8ee;
  border-right: 1px solid #e8e8ee;
  color: var(--text-muted);
  line-height: 1.5;
  vertical-align: top;
}
.rich-table td:last-child { border-right: none; }
.rich-table th:not(:last-child) { border-right: 1px solid #d0d0d8; }
.rich-table tr:last-child td { border-bottom: none; }
.rich-table tbody tr:hover td { background: #f8f8fb; }
.rich-table td strong { color: var(--text); }
.rich-table td a { color: var(--accent); font-weight: 600; }
.rich-table td a:hover { text-decoration: underline; }

/* ── IMAGE CONVERTER GUIDE GRID ── */
.imgconv-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.imgconv-guide-card {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.imgconv-guide-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.imgconv-guide-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.imgconv-guide-card a { color: var(--accent); font-weight: 600; }
.imgconv-guide-card a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .imgconv-guide-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .imgconv-guide-grid { grid-template-columns: 1fr; }
}

/* ── FAQ ACCORDION ── */
/* FAQ page nav pills */
.faq-nav-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 20px; font-size: 13px; font-weight: 500;
  color: var(--text); text-decoration: none;
  transition: border-color .15s, color .15s;
}
.faq-nav-pill:hover { border-color: var(--accent); color: var(--accent); }
.faq-nav-count {
  font-size: 11px; color: var(--text-dim); font-weight: 400;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1px 6px;
}
/* FAQ section heading */
.faq-section-heading {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 1rem; font-weight: 700; color: var(--text);
}
.faq-section-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 8px; color: var(--accent); flex-shrink: 0;
}
.faq-section-badge {
  font-size: 11px; color: var(--text-dim); font-weight: 400;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 10px; padding: 2px 8px;
}
/* FAQ read/open button */
.faq-read-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  background: var(--accent); color: #fff;
  border-radius: 6px; font-size: 12px; font-weight: 600;
  text-decoration: none; transition: opacity .15s;
}
.faq-read-btn:hover { background: var(--accent-hover); color: #fff; }
/* FAQ contact button */
.faq-contact-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--text); text-decoration: none; transition: border-color .15s;
}
.faq-contact-btn:hover { border-color: var(--accent); }

.faq-list { margin-top: 16px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--bg-elevated);
  border: none;
  padding: 14px 16px;
  text-align: left;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--bg-card); }
.faq-arrow { transition: transform 0.2s; color: var(--text-muted); font-size: 12px; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 16px 18px; }

/* ── FAQ article cross-link (uses article title as anchor text) ── */
.faq-article-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 6px 10px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
  max-width: 100%;
  transition: background 0.15s, border-color 0.15s;
}
.faq-article-link:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.32);
}
.faq-article-link-prefix {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 2px;
}
.faq-article-link-title {
  color: var(--accent);
  font-weight: 600;
}

/* ── RELATED GUIDES ── (FAQ articles surfaced on converter/hub pages) */
.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.related-guide-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.related-guide-card:hover {
  background: var(--bg-card-hover, var(--bg-elevated));
  border-color: var(--accent);
  transform: translateX(2px);
}
.related-guide-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
}
.related-guide-card:hover .related-guide-arrow {
  background: var(--accent);
  color: white;
}
.related-guide-title { flex: 1; }
@media (max-width: 640px) {
  .related-guides-grid { grid-template-columns: 1fr; }
  .related-guide-card { font-size: 13px; padding: 12px 14px; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--bg-elevated);
  margin-top: 80px;
}
.footer-upgrade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f59e0b;          /* amber-500, matches .btn-upgrade */
  color: #1f2937;
  padding: 14px 22px;
  max-width: 1200px;
  margin: 24px auto 0;
  border-radius: var(--radius);
}
.footer-upgrade-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-upgrade-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}
.footer-upgrade-text span {
  font-size: 12px;
  color: rgba(31,41,55,0.78);
}