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

* { 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; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: min(1680px, 94vw);
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

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

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

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

.container {
  max-width: min(1680px, 94vw);
  margin: 0 auto;
  padding: 56px 48px 80px;
}

.hero { text-align: center; }

.hero h1 {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

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

.section-title {
  font-size: 24px;
  font-weight: 700;
  text-align: left;
  margin: 48px 0 24px;
}

.tool-grid {
  display: grid;
  /* Auto-fill instead of a fixed column count — on a wide screen this
     naturally shows more, reasonably-sized cards instead of stretching 3
     cards to fill the space, which was reading as "dead space on the
     sides" at desktop widths. */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
}

.tool-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(27,27,31,0.03);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(27,27,31,0.08);
  transform: translateY(-2px);
}

.tool-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--text); text-decoration: none; }
.tool-subtitle { font-size: 13.5px; color: var(--text-muted); line-height: 1.4; text-decoration: none; }
.back-link, .back-link:visited { color: var(--text-muted); }

.tool-view {
  text-align: center;
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tool-view[hidden] { display: none; }
.tool-view h1 { font-size: 32px; margin: 8px 0 8px; }

.tool-view-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.tool-view-icon svg { width: 26px; height: 26px; }

.back-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
}
.back-link:hover { color: var(--accent); }

.dropzone {
  width: 100%;
  max-width: 560px;
  margin: 32px auto 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(27,27,31,0.04);
}
/* Dashed only means "drop something here" — reserved for the empty upload
   prompt. Every other state (ready/busy/done/error) is a solid card, not
   an active drop target, and should look finished, not mid-upload. */
.dropzone.is-idle { border: 2px dashed #D8D2C6; }
.dropzone.drag-over { border-color: var(--accent); background: #FFF7F3; }

.dz-text { font-size: 17px; font-weight: 600; }
.dz-or { font-size: 14px; color: #9A958A; }
.dz-filesize { font-size: 14px; color: var(--text-muted); }
#done-text { font-size: 17px; font-weight: 600; }

.dz-upload-icon, .dz-file-icon { color: var(--text-muted); }
.dz-done-icon { color: #1F8A4C; }
.dz-error-icon { color: var(--accent); }

.cta {
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.cta:hover { background: #C8481F; }

.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;
}

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

.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);
}

.site-footer {
  background: var(--primary);
  color: #D9E2EF;
  margin-top: 48px;
}

.footer-main {
  max-width: min(1360px, 92vw);
  margin: 0 auto;
  padding: 48px 48px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .brand { color: #FFFFFF; margin-bottom: 10px; }
.footer-tagline { font-size: 13px; color: #A9B8CC; line-height: 1.55; 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;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: #A9B8CC;
  text-decoration: none;
  margin-bottom: 10px;
}
.footer-col a:hover { color: #FFFFFF; }

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

.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 24px;
}
.content-page h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
}
.content-page .updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.content-page h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 32px 0 10px;
}
.content-page p, .content-page li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}
.content-page ul { padding-left: 20px; margin: 10px 0; }
.content-page a { color: var(--accent); font-weight: 600; }

@media (max-width: 760px) {
  .header-inner, .container { padding-left: 20px; padding-right: 20px; }
  .footer-main, .footer-bottom { padding-left: 20px; padding-right: 20px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .tool-grid { grid-template-columns: repeat(1, minmax(0,1fr)); }
}
