/* BatchWebP design tokens — homepage & site theme */

:root {
  --bw-primary: #0f766e;
  --bw-primary-dark: #115e59;
  --bw-primary-deep: #123c35;
  --bw-primary-light: #e9f6f2;
  --bw-primary-soft: #cfe9e2;
  --bw-on-primary: #fbfefd;
  --bw-text: #17201c;
  --bw-muted: #63736d;
  --bw-surface: #f6f8f5;
  --bw-surface-strong: #edf3ee;
  --bw-border: #dbe5df;
  --bw-cta: #0f766e;
  --bw-cta-dark: #115e59;
  --bw-accent-warm: #d97706;
  --bw-shadow: rgba(18, 60, 53, 0.14);
}

:focus-visible {
  outline: 3px solid #f59e0b !important;
  outline-offset: 3px !important;
}

body {
  background: var(--bw-surface);
  color: var(--bw-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bw-offline {
  width: min(680px, calc(100% - 40px));
  margin: 12vh auto;
  padding: 36px;
  border: 1px solid var(--bw-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 50px var(--bw-shadow);
  text-align: center;
}

.bw-offline h1 {
  margin: 28px 0 14px !important;
}

/* Subpages: remove legacy full-viewport hero shell from s.css */
#page,
#page.bw-text-page {
  min-height: auto !important;
  padding-top: 0 !important;
  align-items: stretch !important;
}

#h1General {
  margin-top: 0 !important;
}

.bw-text-page #h1General {
  margin-bottom: 16px !important;
  font-size: clamp(22px, 3.2vw, 32px) !important;
  line-height: 1.2 !important;
  text-align: center;
  color: var(--bw-primary);
}

.bw-text-page #txtCont {
  margin: 16px auto 48px !important;
  padding: 0 24px;
  max-width: 900px;
  width: 100%;
  align-self: center !important;
}

.bw-text-page #txtCont h2,
.bw-text-page #txtCont h3 {
  margin-top: 28px;
}

.bw-text-page #txtCont p:first-of-type {
  margin-top: 0;
}

.bw-answer-block {
  padding: 20px 22px;
  border-left: 4px solid var(--bw-primary);
  border-radius: 0 10px 10px 0;
  background: var(--bw-primary-light);
  color: var(--bw-text);
}

.bw-page-note {
  color: var(--bw-muted);
  font-size: 0.88rem;
}

.bw-guide-steps,
.bw-guide-list {
  margin: 16px 0 24px 24px;
  padding-left: 14px;
}

.bw-guide-steps li,
.bw-guide-list li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.bw-guide-table-wrap {
  margin: 18px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--bw-border);
  border-radius: 10px;
}

.bw-guide-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
}

.bw-guide-table th,
.bw-guide-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bw-border);
  text-align: left;
  vertical-align: top;
}

.bw-guide-table th {
  background: var(--bw-surface-strong);
  color: var(--bw-primary-dark);
}

.bw-guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.bw-guide-cta {
  margin-top: 30px !important;
  padding: 18px 20px;
  border: 1px solid var(--bw-primary-soft);
  border-radius: 10px;
  background: #fff;
}

.bw-hero #h1General {
  margin: 0 0 10px !important;
  font-size: clamp(22px, 3.2vw, 32px) !important;
  line-height: 1.2 !important;
  text-align: center;
  color: var(--bw-primary);
}

.link {
  color: var(--bw-primary);
}

.link:hover {
  color: var(--bw-primary-dark);
}

/* Header nav links */
#linksTop a {
  color: var(--bw-text);
  transition: color 0.2s ease;
}

#linksTop a:hover {
  color: var(--bw-primary);
}

h1, #h1Span, #h1General {
  color: var(--bw-primary) !important;
}

#h1Span::after,
#h1Span::before {
  display: none;
}

#headerText {
  margin: 0;
  color: var(--bw-muted);
  line-height: 1.55;
}

.bw-hero {
  text-align: center;
  margin: 0 0 20px !important;
}

.bw-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.2;
}

.bw-hero #headerText {
  font-size: 13pt;
  max-width: 720px;
  margin: 0 auto;
}

.bw-converter-wrap {
  width: 100%;
  background: linear-gradient(180deg, var(--bw-primary-light) 0%, var(--bw-surface) 42%, #fff 100%);
  padding: 16px 0 40px;
  margin: 0;
  border-top: none;
  border-bottom: 1px solid var(--bw-border);
}

.bw-converter-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

#WEBP-Converter {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--bw-border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
  padding: 24px 28px 22px;
}

.bw-format-profile {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--bw-border);
  border-radius: 8px;
  background: var(--bw-border);
}

.bw-format-profile div {
  min-height: 82px;
  padding: 14px 16px;
  background: #f8fbf8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.bw-format-profile div:nth-child(2) {
  background: var(--bw-primary-light);
}

.bw-format-profile span {
  color: var(--bw-muted);
  font-size: 10pt;
  font-weight: 700;
}

.bw-format-profile strong {
  color: var(--bw-text);
  font-size: 13pt;
  line-height: 1.3;
}

.bw-route-hint {
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 3px solid var(--bw-accent-warm);
  color: var(--bw-muted);
  font-size: 11pt;
  line-height: 1.55;
}

#sliderCont {
  width: 100%;
  max-width: none;
  margin: 28px auto 0;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
  border: 1px solid var(--bw-border);
}

#uploadButtons {
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}

#uploadButtons .btn {
  min-height: 48px;
  padding: 0 28px;
  font-size: 12pt;
  white-space: nowrap;
  width: auto !important;
  min-width: max-content;
  flex-shrink: 0;
}

#options {
  margin: 16px 0 20px;
  padding: 18px 0;
  border-top: 1px solid var(--bw-border);
  border-bottom: 1px solid var(--bw-border);
  gap: 12px;
}

#files {
  margin: 16px 0 20px;
}

.optionCont-target {
  width: auto;
  gap: 8px;
  justify-content: center;
}

.optionCont-preset {
  width: auto;
  min-width: 250px;
}

.optionCont-preset .select {
  width: 168px;
}

.bw-preset-note {
  margin: -8px 0 16px;
  color: var(--bw-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.bw-option-help {
  display: block;
  margin-left: 8px;
  color: var(--bw-muted);
  font-size: 10px;
  line-height: 1.25;
  max-width: 84px;
}

.targetToggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 600;
}

#targetSizeKB {
  width: 86px;
  min-height: 32px;
  border: 1px solid var(--bw-border);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--bw-text);
}

#targetSizeKB:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

.batchStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.batchStats span {
  border: 1px solid var(--bw-border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
  color: var(--bw-muted);
  font-size: 11pt;
  text-align: center;
}

.batchStats strong {
  color: var(--bw-text);
}

.bw-format-note {
  margin: -8px 0 16px;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11pt;
}

.msgAllowed {
  margin-top: 8px;
  font-size: 10pt;
  opacity: 0.92;
}

#filesScroll {
  border: 2px dashed var(--bw-primary-soft);
  border-radius: 16px;
  background: var(--bw-surface);
  min-height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
}

#dropFilesPlaceHolder {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 16px;
  font-size: 15pt;
  font-weight: 500;
  color: #475569;
  pointer-events: none;
}

#downloadAllCont {
  margin-top: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

#downloadAll {
  min-height: 52px;
  padding: 0 36px;
  font-size: 13pt;
}

.bw-secondary-button {
  min-height: 52px;
  padding: 0 24px;
  background: var(--bw-surface-strong);
  border: 1px solid var(--bw-border);
  color: var(--bw-text);
}

.bw-secondary-button:hover:not(:disabled) {
  background: var(--bw-primary-light);
  border-color: var(--bw-primary-soft);
  color: var(--bw-primary-dark);
}

.btn {
  background: var(--bw-primary);
  color: var(--bw-on-primary);
  box-shadow: none;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover:not(:disabled) {
  background: var(--bw-primary-dark);
  color: var(--bw-on-primary);
}

#uploadBtn {
  background: var(--bw-primary);
  color: var(--bw-on-primary);
  border: 2px solid var(--bw-primary);
}

#uploadBtn:hover {
  background: var(--bw-primary-dark);
  border-color: var(--bw-primary-dark);
  color: var(--bw-on-primary);
}

#clearAll {
  background: transparent;
  color: var(--bw-text);
  border: 2px solid var(--bw-border);
  box-shadow: none;
}

#clearAll:not(:disabled) {
  color: var(--bw-muted);
}

#clearAll:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

#clearAll:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Upload queue cards — dark preview style */
#filesList {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  padding: 14px;
  align-items: stretch;
  width: 100%;
  min-height: 120px;
}

.uploadedImgDiv {
  width: 148px;
  flex-shrink: 0;
  border: 2px solid #fff;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #121212;
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.24), 0 8px 24px rgba(18, 60, 53, 0.24);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.uploadedImgDiv:hover {
  box-shadow: 0 0 0 2px var(--bw-primary), 0 12px 28px rgba(18, 60, 53, 0.2);
  transform: translateY(-2px);
}

.uploadedImgDiv.activeThumb {
  box-shadow: 0 0 0 3px var(--bw-primary), 0 12px 32px rgba(18, 60, 53, 0.22);
}

.imgHead {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 6px;
  background: transparent;
}

.imgHead .imgName {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.imgHead .removeImgBtn {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  fill: #334155;
  cursor: pointer;
}

.imgHead .removeImgBtn:hover {
  background: #fee2e2;
  fill: #dc2626;
}

.imgThumbWrap {
  position: relative;
  flex: 1;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  border-radius: 6px;
  overflow: hidden;
}

.uploadedImg {
  width: 100%;
  height: 132px;
  object-fit: contain;
  margin: 0;
  display: block;
}

.fileState {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 9pt;
  padding: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  pointer-events: none;
}

.fileState[state="D"] {
  background: rgba(0, 0, 0, 0.35);
}

.fileState[state="D"] .fileStateIcon {
  width: 52px !important;
  height: 52px !important;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.fileState[state="D"] .fileStateText {
  display: none;
}

.fileState[state="U"] .fileStateIcon {
  width: 40px !important;
  height: 42px !important;
}

.fileStateText {
  margin: 0;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.imgFooter {
  width: 100%;
  padding: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.imgFooter .download {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #334155 !important;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.imgFooter .download:hover {
  background: var(--bw-primary-light);
  color: var(--bw-primary) !important;
}

.imgFooter .editImgBtn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 6px;
  background: #fff;
  fill: #334155;
  cursor: pointer;
  box-sizing: border-box;
}

.imgFooter .editImgBtn:hover {
  background: var(--bw-primary-light);
  fill: var(--bw-primary);
}

.imgFooter .loader,
.imgFooter .progressText {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
}

/* Compare slider + zoom */
#sliderHD {
  color: var(--bw-primary) !important;
}

#compareViewport {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--bw-border);
  background: #0f172a;
  overflow: hidden;
}

#compareDiv {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 400px;
  overflow: hidden;
  margin: 0 auto;
  background: #0f172a;
  touch-action: none;
}

#compareDiv.can-pan {
  cursor: grab;
}

#compareDiv.can-pan.is-panning {
  cursor: grabbing;
}

#compareStage {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  will-change: transform;
}

#compareDiv #slider {
  z-index: 10;
  cursor: ew-resize;
}

#compareZoomBar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 12px auto 0;
  padding: 0 8px;
}

.zoomBtn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--bw-border);
  border-radius: 8px;
  background: #fff;
  color: var(--bw-text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.zoomBtn:hover {
  background: var(--bw-primary-light);
  border-color: var(--bw-primary-soft);
  color: var(--bw-primary);
}

.zoomBtn-reset {
  font-size: 12px;
  font-weight: 600;
  padding: 0 14px;
}

#zoomLevel {
  min-width: 52px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--bw-text);
}

.zoomHint {
  flex-basis: 100%;
  text-align: center;
  font-size: 11px;
  color: var(--bw-muted);
}

#qualityLbl,
#quality {
  color: var(--bw-primary) !important;
}

#applyQuality {
  background: var(--bw-primary);
  color: var(--bw-on-primary);
  border: none;
  border-radius: 8px;
}

#applyQuality:hover:not(:disabled) {
  background: var(--bw-primary-dark);
}

.select {
  background: var(--bw-primary-light);
  color: var(--bw-text);
  border-radius: 6px 0 0 6px;
}

.selectCont::after {
  background: var(--bw-primary);
  content: "v";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  border-radius: 0 6px 6px 0;
}


#files.has-files #dropFilesPlaceHolder {
  display: none;
}

#files.has-files #filesScroll {
  align-items: flex-start;
  justify-content: flex-start;
}

.activeThumb {
  border-color: var(--bw-primary);
}

.prevBtn,
.nextBtn {
  background: var(--bw-primary-light);
  border-radius: 8px;
  height: auto;
  min-height: 120px;
  align-self: stretch;
}

#footer {
  background: var(--bw-primary-deep);
}

#footer::after {
  background: var(--bw-primary-deep);
}

#companyInfo {
  background: var(--bw-primary-dark);
  border-radius: 8px;
  line-height: 1.5;
}

#footerLinks a {
  color: rgba(255, 255, 255, 0.88);
}

#footerLinks a:hover {
  color: var(--bw-on-primary);
}

#footer h4 {
  color: var(--bw-on-primary);
}

.menuBG {
  background: var(--bw-primary-deep);
}

.menuContainer a {
  background: var(--bw-primary-dark);
}

.menuContainer a:hover {
  background: var(--bw-primary);
  color: var(--bw-on-primary);
}

.line {
  stroke: var(--bw-primary);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10pt;
  font-weight: 600;
  color: var(--bw-primary);
  margin: 0 0 8px;
}

.bw-section {
  padding: 48px 20px;
}

.bw-learn {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.bw-steps {
  background: var(--bw-primary-light);
}

.intro {
  padding: 0;
  gap: 48px;
  align-items: center;
}

.intro-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.intro-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.intro-copy {
  flex: 1.2;
}

.introH2 {
  color: var(--bw-text);
  font-size: 24pt;
  margin: 0 0 16px;
  line-height: 1.25;
}

.faq-mini {
  margin: 20px 0;
}

.faq-mini dt {
  font-weight: 600;
  color: #0f172a;
  margin-top: 14px;
}

.faq-mini dd {
  margin: 6px 0 0;
  color: var(--bw-muted);
  line-height: 1.55;
}

#howToH2,
#missionH2,
#happyH3 {
  color: var(--bw-text);
  text-align: center;
  font-size: 22pt;
  margin: 8px 0 32px;
}

#steps {
  gap: 24px;
}

.step {
  border: 1px solid var(--bw-border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  padding: 28px 22px 22px;
  margin: 16px 0 24px;
  flex: 1 1 280px;
  max-width: 360px;
  background: #fff;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.step span {
  background: var(--bw-primary);
  color: var(--bw-on-primary);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  left: 16px;
  top: -16px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11pt;
  transition: background 0.25s ease, color 0.25s ease;
}

.step:hover {
  background: var(--bw-primary);
  border-color: var(--bw-primary);
  color: var(--bw-on-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--bw-shadow);
}

.step:hover span {
  background: var(--bw-on-primary);
  color: var(--bw-primary);
}

.step:hover div {
  color: rgba(255, 255, 255, 0.92);
}

.missionWrap {
  padding: 20px;
  background: #fff;
}

#missions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 24px auto 8px;
  width: 100%;
}

.mission {
  border: 1px solid var(--bw-border);
  border-left: 4px solid var(--bw-primary);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  border-radius: 12px;
  flex: none !important;
  min-width: 0 !important;
  max-width: none !important;
  width: 100%;
  background: #fff;
  margin: 0 !important;
  padding: 24px !important;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mission:hover {
  background: var(--bw-primary) !important;
  color: var(--bw-on-primary) !important;
  border-color: var(--bw-primary) !important;
  border-left-color: var(--bw-primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--bw-shadow);
  cursor: default;
}

.mission:hover h3,
.mission:hover .missionText,
.mission:hover a {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Override remaining legacy towebp colors with the BatchWebP brand tokens. */
#txtCont h2,
#txtCont h3 {
  color: var(--bw-primary-dark) !important;
}

.bw-text-page #txtCont a.link {
  color: var(--bw-primary);
}

.mission h3 {
  color: var(--bw-primary);
  margin: 0 0 8px;
  font-size: 13pt;
  transition: color 0.25s ease;
}

.missionText {
  color: var(--bw-muted);
  transition: color 0.25s ease;
}

.benefit-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 20px;
  margin: 8px auto 24px;
  padding: 0;
  max-width: 900px;
  width: 100%;
}

.benefit-grid .customer {
  border: 1px solid var(--bw-border);
  border-radius: 12px;
  padding: 22px;
  flex: none;
  min-width: 0;
  background: #fff;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-grid .customer:hover {
  background: var(--bw-primary);
  border-color: var(--bw-primary);
  color: var(--bw-on-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--bw-shadow);
}

.benefit-grid .customer h4 {
  color: var(--bw-primary);
  margin: 0 0 10px;
  font-size: 13pt;
  transition: color 0.25s ease;
}

.benefit-grid .customer:hover h4 {
  color: var(--bw-on-primary);
}

.benefit-grid .customer p {
  margin: 0;
  color: var(--bw-muted);
  line-height: 1.55;
  font-size: 11pt;
  transition: color 0.25s ease;
}

.benefit-grid .customer:hover p {
  color: rgba(255, 255, 255, 0.92);
}

.cust {
  padding-bottom: 48px;
}

@media (max-width: 960px) {
  .intro {
    flex-direction: column;
  }

  #missions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bw-converter-wrap {
    padding: 12px 0 32px;
  }

  .bw-hero {
    margin-bottom: 14px;
  }

  .bw-hero h1 {
    font-size: 20pt;
  }

  .bw-hero #headerText {
    font-size: 11pt;
  }

  #WEBP-Converter {
    padding: 16px;
    border-radius: 12px;
  }

  .batchStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .optionCont-target {
    flex-wrap: wrap;
  }

  .step {
    flex: 1 1 100%;
    max-width: none;
  }

  #missions {
    grid-template-columns: 1fr;
  }
}

/* Conversion-first homepage and shared workbench controls */
.bw-workbench-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
}

.bw-local-proof {
  padding: 20px 0 20px 24px;
  border-left: 1px solid var(--bw-border);
  display: grid;
  gap: 8px;
}

.bw-local-proof strong {
  color: var(--bw-primary-dark);
  font-size: 18px;
}

.bw-local-proof span {
  color: var(--bw-muted);
  line-height: 1.55;
}

.bw-local-proof a {
  color: var(--bw-primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bw-upload-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.bw-upload-heading strong,
.bw-upload-heading span {
  display: block;
}

.bw-upload-heading strong {
  color: var(--bw-text);
  font-size: 20px;
}

.bw-upload-heading div > span {
  margin-top: 4px;
  color: var(--bw-muted);
  font-size: 14px;
}

.bw-local-label {
  flex-shrink: 0;
  padding: 8px 10px;
  border: 1px solid var(--bw-primary-soft);
  border-radius: 8px;
  background: var(--bw-primary-light);
  color: var(--bw-primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.bw-target-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bw-target-field > span {
  color: var(--bw-muted);
  font-size: 13px;
  font-weight: 700;
}

.batchStats[hidden] {
  display: none;
}

#dropFilesPlaceHolder strong,
#dropFilesPlaceHolder span {
  display: block;
}

#dropFilesPlaceHolder span {
  max-width: 520px;
  margin: 8px auto 0;
  color: var(--bw-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.bw-icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bw-icon-button svg {
  fill: currentColor;
}

#errMsg .bw-icon-button {
  margin: -12px -8px -12px 12px;
  color: var(--bw-on-primary);
}

#closeSlider.bw-icon-button {
  top: 8px;
  right: 8px;
  color: var(--bw-text);
}

.bw-workflow-list {
  border-top: 1px solid var(--bw-border);
}

.bw-workflow-list a {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--bw-border);
  color: var(--bw-text);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.bw-workflow-list a:hover {
  padding-left: 8px;
  color: var(--bw-primary-dark);
}

.bw-workflow-list strong {
  font-size: 17px;
}

.bw-workflow-list span {
  color: var(--bw-muted);
  line-height: 1.55;
}

@media (max-width: 960px) {
  .bw-local-proof {
    padding: 16px 0 0;
    border-top: 1px solid var(--bw-border);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .bw-upload-heading {
    align-items: flex-start;
  }

  .bw-local-label {
    display: none;
  }

  #options {
    align-items: stretch;
  }

  #options .optionCont,
  #options .selectCont {
    width: 100%;
  }

  #options .selectCont {
    justify-content: space-between;
  }

  #options .select {
    width: min(220px, 62vw);
  }

  .optionCont-target {
    justify-content: space-between;
  }

  .optionCont-preset {
    min-width: 0;
  }

  .bw-workflow-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* BatchWebP release-desk identity refresh */
.container {
  background: rgba(251, 254, 253, 0.96);
  border-bottom: 1px solid var(--bw-border);
}

.data {
  max-width: 1320px;
}

#linksTop a {
  font-weight: 700;
  letter-spacing: 0;
}

.bw-converter-wrap {
  background:
    radial-gradient(circle at 14% 12%, rgba(15, 118, 110, 0.13), transparent 28%),
    linear-gradient(180deg, #fbfefd 0%, var(--bw-surface) 64%, #ffffff 100%);
  padding: 36px 0 52px;
  border-bottom: 1px solid var(--bw-border);
}

.bw-converter-inner {
  max-width: 1320px;
}

.bw-workbench-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: end;
  text-align: left;
  margin: 8px 0 28px !important;
}

.bw-hero-copy {
  max-width: 760px;
}

.bw-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 10px;
  border: 1px solid var(--bw-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--bw-primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.bw-workbench-hero h1,
.bw-workbench-hero #h1Span {
  color: var(--bw-text) !important;
  text-align: left;
  font-size: clamp(34px, 5.3vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.bw-workbench-hero #headerText {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--bw-muted);
  text-align: left;
  font-size: 18px;
  line-height: 1.65;
}

#WEBP-Converter,
#sliderCont {
  border-radius: 8px;
  border-color: var(--bw-border);
  box-shadow: 0 18px 44px var(--bw-shadow);
}

#WEBP-Converter {
  background: #fbfefd;
}

#filesScroll {
  border-color: #9ccfc3;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px),
    #ffffff;
  background-size: 28px 28px;
}

#dropFilesPlaceHolder {
  color: var(--bw-primary-dark);
  font-weight: 800;
}

.btn,
#uploadBtn,
#applyQuality,
.zoomBtn,
.select,
#targetSizeKB,
.batchStats span,
.uploadedImgDiv,
.imgFooter .download,
.imgFooter .editImgBtn,
.step,
.mission,
.benefit-grid .customer {
  border-radius: 8px;
}

.btn {
  font-family: Manrope, sans-serif;
  font-weight: 800;
}

.batchStats span {
  background: var(--bw-surface-strong);
}

.uploadedImgDiv {
  border: 1px solid #d6e3dc;
  background: #10201c;
  box-shadow: 0 12px 28px rgba(18, 60, 53, 0.2);
}

.uploadedImgDiv:hover,
.uploadedImgDiv.activeThumb {
  box-shadow: 0 0 0 2px var(--bw-primary), 0 14px 30px rgba(18, 60, 53, 0.2);
}

.bw-section {
  padding: 72px 20px;
}

.bw-pipeline {
  background: #ffffff;
}

.bw-pipeline-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.bw-section-copy p {
  max-width: 66ch;
  color: var(--bw-muted);
  font-size: 17px;
  line-height: 1.7;
}

.introH2 {
  color: var(--bw-text);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  text-transform: none;
  letter-spacing: 0;
  color: var(--bw-primary-dark);
  font-weight: 800;
}

.bw-audit {
  background: var(--bw-surface-strong);
}

.bw-audit-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1px;
  background: var(--bw-border);
  border: 1px solid var(--bw-border);
  border-radius: 8px;
  overflow: hidden;
}

.bw-audit-card {
  background: #ffffff;
  padding: 28px;
}

.bw-audit-card-large {
  grid-row: span 2;
  background: #10201c;
  color: #f7fffb;
}

.bw-audit-card-large h2 {
  color: #f7fffb !important;
  text-align: left !important;
  margin: 0 0 18px !important;
  font-size: clamp(30px, 3.4vw, 48px) !important;
  line-height: 1.12 !important;
}

.bw-audit-card h3 {
  margin: 0 0 10px;
  color: var(--bw-text);
  font-size: 20px;
}

.bw-audit-card p {
  margin: 0;
  color: var(--bw-muted);
  line-height: 1.65;
}

.bw-audit-card-large p {
  color: rgba(247, 255, 251, 0.78);
  font-size: 17px;
}

#footer {
  background: #10201c;
}

#footer::after {
  background: #10201c;
}

#companyInfo {
  background: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 960px) {
  .bw-workbench-hero,
  .bw-pipeline-grid {
    grid-template-columns: 1fr;
  }

  .bw-audit-grid {
    grid-template-columns: 1fr;
  }

  .bw-audit-card-large {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .bw-converter-wrap {
    padding-top: 24px;
  }

  .bw-workbench-hero h1,
  .bw-workbench-hero #h1Span {
    font-size: 38px;
  }

  .bw-workbench-hero #headerText {
    font-size: 16px;
  }

  .bw-format-profile {
    grid-template-columns: 1fr;
  }

  .bw-section {
    padding: 52px 20px;
  }
}
