:root {
  --bg: #FAF8F5;
  --text: #1B1B1F;
  --text-muted: #6B6B6F;
  --primary: #1E3A5F;
  --accent: #E2572B;
  --accent-dark: #C8481F;
  --border: #ECE7DD;
  --card-bg: #FFFFFF;
  --surface: #F3EFE8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', system-ui, sans-serif;
}

h1, h2, .brand { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.pill-badge {
  background: #EAF1FB;
  color: #2454A6;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 40px 0;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.hero-sub {
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 26px;
  line-height: 1.5;
}

.search-wrap {
  max-width: 560px;
  margin: 0 auto 18px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9A958A;
  display: flex;
}

.search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 17px 66px 17px 52px;
  border-radius: 15px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(27, 27, 31, 0.03), 0 10px 26px rgba(27, 27, 31, 0.06);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-input::placeholder { color: #A69F91; }
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(27, 27, 31, 0.03), 0 12px 32px rgba(226, 87, 43, 0.12);
}

.search-kbd {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  color: #B5AE9F;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 7px;
  background: #FBF9F6;
  pointer-events: none;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hero-trust-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust-item svg { flex-shrink: 0; }

/* ---------- Benefits strip (sits below the tool grid, not above it) ---------- */
.benefits-strip {
  border-top: 1px solid var(--border);
  background: #fff;
}
.benefits-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 13px;
}
.benefit-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-title { font-size: 14px; font-weight: 700; }
.benefit-sub { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Tools band + filters ---------- */
.tools-band {
  background: var(--surface);
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.filters-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 40px 0;
  width: 100%;
}

.pills-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}

.pill {
  --pill-color: #1E3A5F;
  --pill-tint: #EEF2F6;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pill:hover { border-color: var(--pill-color); transform: translateY(-1px); }
.pill.active {
  background: var(--pill-tint);
  color: var(--pill-color);
  border-color: var(--pill-color);
  box-shadow: 0 4px 14px rgba(27, 27, 31, 0.08);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--pill-color); }

.result-label { text-align: center; font-size: 13px; color: #A69F91; margin-bottom: 40px; }

.tool-grid-main {
  flex: 1 0 auto;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px 80px;
  width: 100%;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tool-card {
  --ring: #1E3A5F;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 176px;
  box-sizing: border-box;
  padding: 24px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(27, 27, 31, 0.03);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(27, 27, 31, 0.11), 0 3px 10px rgba(27, 27, 31, 0.05);
  border-color: var(--ring);
}
.tool-card:hover .arrow { transform: translateX(3px); opacity: 1; color: var(--ring); }
.tool-card:hover .icon-chip { transform: scale(1.04); }

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.icon-chip {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform .18s ease;
}

.arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  margin-top: 5px;
  opacity: 0.4;
  transition: transform .18s ease, opacity .18s ease, color .18s ease;
}

.tool-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 6px;
}
.tool-card-title { font-size: 16px; font-weight: 700; margin-bottom: 5px; letter-spacing: -0.005em; }
.tool-card-subtitle { font-size: 13px; color: var(--text-muted); line-height: 1.45; }

.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Buttons ---------- */
.cta {
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  font-size: 15.5px;
  font-weight: 700;
  padding: 15px 34px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
  box-shadow: 0 8px 18px rgba(226, 87, 43, 0.22);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cta:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(226, 87, 43, 0.3); }

.cta-secondary {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}

.cta-text {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}
.cta-text:hover { color: var(--accent); }

/* ---------- Tool view ---------- */
.tool-view {
  min-height: 46vh;
}
.tool-view[hidden] { display: none; }

.tool-page-main {
  flex: 1 0 auto;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 40px 80px;
  width: 100%;
  box-sizing: border-box;
}

.tool-page-layout {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tool-page-primary {
  flex: 1 1 660px;
  min-width: 0;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color .15s ease;
}
.back-link:hover { color: var(--accent); }

.tool-view-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.tool-view-icon svg { width: 30px; height: 30px; }

.tool-view h1 { font-size: 34px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em; }
.tool-view-sub { font-size: 16px; color: var(--text-muted); margin: 0 0 16px; }

.tool-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tool-format-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}
.tool-limits { font-size: 12px; font-weight: 600; color: #9A958A; }

/* ---------- Dropzone ---------- */
/* Dashed border means "drop something here" — reserved for the idle, empty
   upload prompt. Every other state (ready/busy/done/error) is a finished
   card, not an active drop target, and gets a plain border so it doesn't
   read as still-waiting-for-a-file. */
.dropzone {
  width: 100%;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 1px 2px rgba(27, 27, 31, 0.03), 0 18px 44px rgba(27, 27, 31, 0.06);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.dropzone.is-idle { border: 2px dashed #D8D2C6; }
.dropzone.is-idle:hover { border-color: #CDBFA3; box-shadow: 0 1px 2px rgba(27, 27, 31, 0.03), 0 22px 48px rgba(27, 27, 31, 0.08); }
.dropzone.drag-over { border-color: var(--accent); background: #FFF7F3; }

.dz-icon-chip {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.dz-icon-chip.is-done { background: #E3F5E9; color: #1F8A4C; }
.dz-icon-chip.is-error { background: #FDEAEA; color: #C23B3B; }

.dz-text { font-size: 18px; font-weight: 700; }
.dz-or { font-size: 13.5px; color: #9A958A; }
.dz-filesize { font-size: 13.5px; color: var(--text-muted); }
#done-text { font-size: 18px; font-weight: 700; }
#error-text { font-size: 16px; font-weight: 600; }
#status-text { font-size: 15px; font-weight: 600; }
#ready-text { font-size: 16px; font-weight: 700; }

.dz-divider {
  font-size: 13px;
  color: #9A958A;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
}
.dz-divider span { flex: 1; height: 1px; background: var(--border); }

.progress-track {
  width: 100%;
  max-width: 320px;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}
.progress-percent { font-size: 14px; font-weight: 700; color: var(--text-muted); }

/* ---------- Steps strip ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 60px;
  text-align: left;
}
.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(27, 27, 31, 0.07); border-color: #E7DFD2; }
.step-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step-title { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; }
.step-body { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Related tools rail ---------- */
.related-rail { flex: 0 0 300px; width: 300px; margin-top: 52px; }
.rail-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.mini-card-list { display: flex; flex-direction: column; gap: 12px; }
.mini-card {
  --ring: #1E3A5F;
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mini-card:hover { transform: translateX(3px); box-shadow: 0 10px 22px rgba(27, 27, 31, 0.07); border-color: var(--ring); }
.mini-icon-chip {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-card-title { font-size: 14px; font-weight: 700; }
.mini-card-sub { font-size: 12px; color: var(--text-muted); }

.privacy-note {
  margin-top: 28px;
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
}
.privacy-note-title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.privacy-note-body { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

/* ---------- Content pages (About / Privacy) ---------- */
.content-page-main {
  flex: 1 0 auto;
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 40px 80px;
  width: 100%;
  box-sizing: border-box;
}
.content-page-layout {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.content-page-body { flex: 1 1 600px; min-width: 0; }
.content-page-body h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; }
.content-page-body .updated { font-size: 13px; color: #9A958A; margin-bottom: 40px; }
.content-page-body p { font-size: 16px; line-height: 1.7; color: #33333A; margin: 0 0 16px; }
.content-page-body h2 { font-size: 20px; font-weight: 700; margin: 40px 0 12px; }
.content-page-body ul { padding-left: 20px; margin: 10px 0; }
.content-page-body a { color: var(--accent); font-weight: 600; }

.callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 4px 14px 14px 4px;
  padding: 22px 26px;
  margin: 32px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.6;
}

.content-toc {
  flex: 0 0 240px;
  width: 240px;
  position: sticky;
  top: 96px;
}
.toc-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.toc-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--border);
  padding-left: 16px;
}
.toc-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 7px 0;
}
.toc-links a:hover { color: var(--accent); }

.toc-card {
  margin-top: 24px;
  background: var(--surface);
  border-radius: 14px;
  padding: 18px;
}
.toc-card-title { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.toc-card-body { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: #D9E2EF;
  flex-shrink: 0;
}

.footer-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 52px 40px 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .brand { color: #FFFFFF; margin-bottom: 10px; }
.footer-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.footer-tagline { font-size: 13px; color: #A9B8CC; line-height: 1.6; max-width: 280px; margin: 0; }

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.foot-link {
  color: #B9C6D6;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 11px;
  transition: color .15s ease;
}
.foot-link:last-child { margin-bottom: 0; }
.foot-link:hover { color: #FFFFFF; }
.foot-link span { opacity: 0; transform: translateX(-3px); display: inline-block; transition: opacity .15s ease, transform .15s ease; }
.foot-link:hover span { opacity: 1; transform: translateX(0); }

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #8FA0B8;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .tool-page-layout, .content-page-layout { gap: 32px; }
  .related-rail, .content-toc { flex-basis: 100%; width: 100%; position: static; margin-top: 8px; }
}

@media (max-width: 760px) {
  .header-inner, .hero, .benefits-inner, .filters-section, .tool-grid-main,
  .tool-page-main, .content-page-main, .footer-main, .footer-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }
  .tool-grid { grid-template-columns: 1fr; }
  .benefits-inner { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .stats-row { gap: 0; }
  .stat { padding: 0 16px; }
  .dropzone { padding: 40px 20px; }
}
