/* mobopng — shared styles */

/* Self-hosted variable fonts (latin subset), SIL Open Font License */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
}

:root {
  --accent: #D4FF3A;
  --ink: #0F1115;
  --ink-2: #2F343D;
  --muted: #4B515C;
  --muted-2: #5B616E;
  --muted-3: #6B717C;
  --paper: #FAFAF7;
  --line: #E4E4DE;
  --line-2: #E1E1DA;
  --line-3: #D5D5CE;
  --chip: #EFEFEA;
  --ad: #F2F2EE;
  --ad-line: #C9C9C1;
  --dark-muted: #B9BEC8;
  --green: #22A06B;
  --link-hover: #4A3AE0;
  --font-body: Inter, system-ui, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

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

h1, h2, h3 { margin: 0; }
p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Checkerboard "transparency" backgrounds */
.chk {
  background-color: #FFFFFF;
  background-image: conic-gradient(#EDEDE7 25%, transparent 0 50%, #EDEDE7 0 75%, transparent 0);
  background-size: 18px 18px;
}
.chk-sm { background-size: 16px 16px; }
.chk-dark {
  background-color: #1A1D23;
  background-image: conic-gradient(#23272F 25%, transparent 0 50%, #23272F 0 75%, transparent 0);
  background-size: 18px 18px;
}

/* ---------- Layout ---------- */

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head-text { display: flex; flex-direction: column; gap: 8px; }

.h-section {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: -1px;
  line-height: 1.1;
}

/* ---------- Logo ---------- */

.logo { display: flex; align-items: center; gap: 10px; }

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.5px;
}
.logo-tag {
  background: var(--accent);
  padding: 0 4px;
  border-radius: 4px;
}
.logo-word-light .logo-tag { color: var(--ink); }

/* ---------- Buttons & chips ---------- */

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
}
.btn-dark:hover { color: #FFFFFF; }

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 22px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  border: 2px solid var(--ink);
}
.btn-accent:hover { color: var(--ink); }

.pill-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-3);
  background: transparent;
  color: var(--ink);
  font: 600 14px var(--font-body);
  cursor: pointer;
}
.pill-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
  border-width: 0;
  padding: 0 14px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 14px;
}
.chip:hover { color: var(--ink); background: #E4E4DE; }

.eyebrow {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

.hl {
  background: var(--accent);
  padding: 0 10px;
  border-radius: 12px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header-white { background: #FFFFFF; }

.site-header-bar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.site-header-bar-compact {
  height: auto;
  padding: 14px 24px;
  gap: 24px;
}

.main-nav {
  display: flex;
  gap: 24px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
}
.main-nav-compact { flex: 0 1 auto; gap: 20px; }

.header-search {
  flex: 0 1 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line-3);
  border-radius: 12px;
  background: #FFFFFF;
}
.header-search input {
  border: 0;
  outline: none;
  font: 500 15px var(--font-body);
  background: transparent;
  min-width: 0;
  flex: 1;
}

.search-form-wide {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 4px 4px 4px 16px;
  background: #FFFFFF;
}
.search-form-wide input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font: 500 16px var(--font-body);
  height: 44px;
  background: transparent;
}
.search-form-wide button {
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--accent);
  font: 700 15px var(--font-body);
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Home: hero ---------- */

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.hero-copy {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -2px;
}
.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
}

.hero-search { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.scope-tabs { display: flex; gap: 6px; }

.hero-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 6px 6px 6px 18px;
  box-shadow: 6px 6px 0 var(--ink);
}
.hero-search-box input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  font: 500 17px var(--font-body);
  height: 48px;
  background: transparent;
  color: var(--ink);
}
.hero-search-box .btn-accent { height: 52px; }

.popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

/* Hero visual */
.hero-visual {
  flex: 1 1 400px;
  min-width: 0;
  position: relative;
  height: 440px;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.hero-dots {
  position: absolute;
  left: 32px;
  top: 28px;
  display: flex;
  gap: 6px;
}
.hero-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  box-sizing: border-box;
}
.hero-dots span:first-child { background: var(--ink); }
.hero-sticker {
  position: absolute;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-sticker-ok { left: -14px; top: 96px; transform: rotate(-4deg); }
.hero-sticker-ok i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.hero-sticker-size {
  right: -10px;
  top: 210px;
  background: var(--accent);
  font-weight: 700;
  font-family: var(--font-display);
  transform: rotate(5deg);
}
.hero-file {
  left: 40px;
  bottom: 28px;
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
  gap: 10px;
}
.hero-file span { color: var(--dark-muted); font-weight: 500; }
.hero-art {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
}

/* ---------- Ads ---------- */

.ad-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.ad-slot {
  width: 100%;
  max-width: 728px;
  height: 90px;
  border: 1.5px dashed var(--ad-line);
  border-radius: 8px;
  background: var(--ad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-3);
  font-size: 14px;
}
.ad-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ad-leaderboard {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 24px 40px;
}
.ad-leaderboard .ad-stack { width: 100%; }

/* ---------- Home: tools ---------- */

.tools { display: flex; flex-direction: column; gap: 28px; padding: 48px 24px; max-width: 1240px; margin: 0 auto; }
.section-lede { margin: 0; color: var(--muted); font-size: 17px; }
.more-link {
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.tool-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: #FFFFFF;
  border: 1.5px solid var(--line-2);
  border-radius: 18px;
  min-height: 96px;
}
.tool-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-icon-accent { background: var(--accent); }
.tool-text { display: flex; flex-direction: column; gap: 4px; }
a.tool-card { border-color: var(--ink); }
a.tool-card:hover { color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.tool-card-soon .tool-name { color: var(--muted-2); }
.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 2px;
}
.tool-name { font-weight: 600; font-size: 17px; }
.tool-desc { font-size: 14px; line-height: 1.45; color: var(--muted-2); }

/* ---------- Home: library band ---------- */

.library {
  background: var(--ink);
  color: #FFFFFF;
  margin-top: 32px;
}
.library-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.library .h-section { color: #FFFFFF; }
.library .section-lede { color: var(--dark-muted); }
.library .more-link { color: #FFFFFF; border-bottom-color: var(--accent); }
.library .more-link:hover { color: #FFFFFF; }

.cat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-pill {
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid #3A3F49;
  font-size: 15px;
  font-weight: 500;
}
.cat-pill:hover { color: #FFFFFF; border-color: var(--accent); }

.png-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.png-tile {
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.png-tile:hover { color: #FFFFFF; }
.png-tile-frame {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1.5px solid #2C3038;
  display: flex;
  align-items: center;
  justify-content: center;
}
.png-tile-frame svg { width: 56%; height: 56%; }
.png-tile-name { font-size: 14px; font-weight: 500; }

/* ---------- Home: steps ---------- */

.how {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.how-main {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.step-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1.5px solid var(--line-2);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 { font-size: 18px; }
.step-card p { font-size: 15px; line-height: 1.5; color: var(--muted-2); }
.how-aside {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.ad-rect {
  width: 300px;
  max-width: 100%;
  height: 250px;
  border: 1.5px dashed var(--ad-line);
  border-radius: 8px;
  background: var(--ad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-3);
  font-size: 14px;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #FFFFFF;
  border: 1.5px solid var(--line-2);
  border-radius: 16px;
  padding: 0 24px;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { font-size: 22px; font-weight: 400; }
.faq-item p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--dark-muted); }
.site-footer a { color: var(--dark-muted); }
.site-footer a:hover { color: #FFFFFF; }

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-brand {
  flex: 2 1 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand .logo-word { color: #FFFFFF; font-size: 24px; }
.footer-brand .logo-tag { color: var(--ink); }
.footer-brand p { font-size: 15px; line-height: 1.6; max-width: 300px; }

.footer-col {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.footer-col-title {
  color: #FFFFFF;
  font-weight: 600;
  margin-bottom: 4px;
}
.footer-bottom {
  border-top: 1px solid #2C3038;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-slim-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

/* ---------- Search page ---------- */

.results-top {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.results-body {
  padding-top: 24px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.crumbs {
  font-size: 14px;
  color: var(--muted-2);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.crumbs a { color: var(--muted-2); }
.crumbs .current { color: var(--ink); font-weight: 500; }

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.results-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -1px;
  line-height: 1.05;
}
.results-count { color: var(--muted); font-size: 16px; }
.sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.sort-label select {
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--line-3);
  padding: 0 10px;
  font: 500 14px var(--font-body);
  background: #FFFFFF;
  color: var(--ink);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  border: 1.5px solid var(--line-3);
  font: 500 14px var(--font-body);
  cursor: pointer;
}
.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
  font-weight: 600;
}
.filter-divider {
  width: 1px;
  background: var(--line-3);
  margin: 4px 6px;
}
.swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  cursor: pointer;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.result-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1.5px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-thumb svg { width: 58%; height: 58%; }
.result-get {
  position: absolute;
  right: 10px;
  bottom: 10px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #FFFFFF;
  font: 600 13px var(--font-body);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.result-get:hover { background: #2A2E36; }
.result-get:disabled { opacity: 0.6; cursor: progress; }
.results-empty {
  grid-column: 1 / -1;
  padding: 32px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1.5px solid var(--line-2);
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}
.result-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.result-meta span:last-child { color: var(--muted-2); }

.native-ad {
  aspect-ratio: 1;
  border: 1.5px dashed var(--ad-line);
  border-radius: 16px;
  background: var(--ad);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted-3);
  font-size: 13px;
  padding: 12px;
}
.sponsored {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-3);
}

.billboard-ad {
  width: 100%;
  max-width: 970px;
  height: 250px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line-3);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--ink);
}
.page-num-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}
.page-next {
  width: auto;
  padding: 0 18px;
}

.seo-block {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.seo-main {
  flex: 2 1 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.seo-main h2 { font-family: var(--font-display); font-size: 26px; }
.seo-main p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.seo-main p a { text-decoration: underline; }
.seo-related {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.seo-related h2 { font-family: var(--font-display); font-size: 20px; }
.seo-related .chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.seo-related .chip { padding: 8px 12px; }

/* ---------- Compress tool ---------- */

.crumbs-row { padding-top: 28px; }

.tool-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.tool-main {
  flex: 999 1 640px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.tool-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tool-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -1.5px;
  line-height: 1.05;
}
.tool-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 620px;
}

.workspace {
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dropzone {
  border: 2px dashed #9A9FA8;
  border-radius: 18px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
}
.drop-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.drop-title {
  font-size: 20px;
  font-weight: 600;
  background: #FFFFFF;
  padding: 2px 8px;
  border-radius: 6px;
}
.drop-sub {
  font-size: 15px;
  color: var(--muted);
  background: #FFFFFF;
  padding: 2px 8px;
  border-radius: 6px;
}
.btn-ink {
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  border: 0;
  background: var(--ink);
  color: #FFFFFF;
  font: 600 16px var(--font-body);
  cursor: pointer;
}

.file-view {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}
.preview {
  flex: 1 1 260px;
  min-height: 240px;
  border-radius: 16px;
  border: 1.5px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.preview-name {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
}
.file-controls {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.control-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.level-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.level-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font: 600 15px var(--font-body);
  cursor: pointer;
  background: #FFFFFF;
  color: var(--ink);
  border: 1.5px solid var(--line-3);
}
.level-btn[aria-pressed="true"] {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stat {
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-before { background: var(--ad); }
.stat-after {
  background: var(--accent);
  border: 1.5px solid var(--ink);
}
.stat-label { font-size: 13px; color: var(--muted-2); }
.stat-after .stat-label { color: var(--ink); }
.stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.file-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.file-actions .btn-dark {
  flex: 1 1 auto;
  height: 52px;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.btn-outline {
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1.5px solid var(--line-3);
  background: #FFFFFF;
  font: 600 15px var(--font-body);
  color: var(--ink);
  cursor: pointer;
}

.trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seo-article {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
.seo-article h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--ink);
}
.seo-article h2 + p,
.seo-article h2 + ol { margin-top: 0; }
.seo-article ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-tools { display: flex; flex-direction: column; gap: 16px; }
.related-tools h2 { font-family: var(--font-display); font-size: 24px; }
.related-list { display: flex; flex-wrap: wrap; gap: 10px; }
.related-link {
  padding: 12px 16px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--line-2);
  font-weight: 500;
}

.tool-aside {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ad-tall {
  width: 300px;
  max-width: 100%;
  height: 600px;
}
.cta-card {
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.cta-card p {
  font-size: 15px;
  color: var(--dark-muted);
  line-height: 1.5;
}
.cta-card .btn-accent {
  height: 44px;
  border-radius: 10px;
  font-size: 16px;
  justify-content: center;
}

/* ---------- Utilities & states ---------- */

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

:focus-visible {
  outline: 3px solid var(--link-hover);
  outline-offset: 2px;
}

.swatch-gold { background: #FFD23F; }
.swatch-red { background: #FF5A6E; }
.swatch-blue { background: #4FC3F7; }
.swatch-black { background: var(--ink); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }

.dropzone.is-dragover { border-color: var(--ink); background-color: #F7FFE0; }
.preview img {
  max-width: 80%;
  max-height: 220px;
  object-fit: contain;
}
.tool-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFF0F1;
  border: 1.5px solid #E0435A;
  color: #8A1426;
  font-size: 15px;
}
.btn-dark[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.page-404 {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* ---------- Tool options ---------- */

.options { display: flex; flex-direction: column; gap: 14px; }
.opt {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opt-label {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.opt-label output { font-weight: 500; color: var(--muted); }
.seg-group { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { position: relative; cursor: pointer; }
.seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.seg span {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line-3);
  background: #FFFFFF;
  font: 600 15px var(--font-body);
  color: var(--ink);
}
.seg input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}
.seg input:focus-visible + span { outline: 3px solid var(--link-hover); outline-offset: 2px; }

.opt-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.opt-check input { width: 20px; height: 20px; accent-color: var(--ink); }
.opt-color {
  width: 88px;
  height: 44px;
  padding: 4px;
  border: 1.5px solid var(--line-3);
  border-radius: 10px;
  background: #FFFFFF;
  cursor: pointer;
}
.opt-range { width: 100%; height: 32px; accent-color: var(--ink); }
.opt-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--line-3);
  border-radius: 10px;
  background: #FFFFFF;
  max-width: 200px;
  color: var(--muted);
  font-size: 14px;
}
.opt-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: 500 16px var(--font-body);
  color: var(--ink);
}
.opt-input:focus-within { border-color: var(--ink); }
.options .opt-number + .opt-number { margin-top: -4px; }

.preview-doc {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 18px 22px;
}
.preview-busy {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--accent);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}
.workspace[aria-busy="true"] .preview img { opacity: 0.55; }
.result-dims { margin: -6px 0 0; font-size: 13px; color: var(--muted-2); min-height: 18px; }

/* ---------- Mobile menu (CSS-only, uses <details>) ---------- */

.mobile-menu { display: none; position: relative; margin-left: auto; }
.mobile-menu summary {
  list-style: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line-3);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 52px;
  z-index: 50;
  width: min(280px, calc(100vw - 40px));
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.mobile-menu-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 500;
}
.mobile-menu-panel a:hover { background: var(--chip); color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .main-nav, .header-cta, .header-search { display: none; }
  .mobile-menu { display: block; }
  .site-header-bar { gap: 16px; }
  .site-header-bar-compact .logo { flex: 1 1 auto; }
  .site-header-bar-compact .search-form-wide { order: 3; flex-basis: 100%; }
}

@media (max-width: 720px) {
  .wrap, .wrap-wide { padding: 0 16px; }
  .site-header-bar { height: 64px; }
  .site-header-bar-compact { height: auto; padding: 12px 16px; }

  .hero { padding: 32px 16px 24px; gap: 40px; }
  .hero-title { letter-spacing: -1px; }
  .hero-lede { font-size: 17px; }
  .hero-search-box { padding: 6px 6px 6px 12px; box-shadow: 4px 4px 0 var(--ink); }
  .hero-search-box input { font-size: 16px; }
  .hero-search-box .btn-accent { height: 48px; padding: 0 16px; }
  .hero-visual { height: 300px; margin: 0 8px 8px; }
  .hero-art { width: 160px; height: 160px; }
  .hero-sticker-ok { left: 8px; top: 56px; }
  .hero-sticker-size { right: 8px; top: auto; bottom: 84px; }
  .hero-file { left: 16px; bottom: 16px; }

  .ad-leaderboard { padding: 8px 16px 24px; }
  .ad-slot { height: 60px; max-width: 320px; }

  .tools { padding: 32px 16px; gap: 20px; }
  .h-section { font-size: 30px; }
  .tool-grid { grid-template-columns: 1fr; gap: 10px; }
  .tool-card { padding: 16px; min-height: 0; }

  .library { margin-top: 16px; }
  .library-inner { padding: 48px 16px; gap: 24px; }
  .cat-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .cat-pill { flex: 0 0 auto; }
  .png-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .png-tile { gap: 6px; }
  .png-tile-name { font-size: 13px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.04em; padding: 5px 10px; }

  .how { padding: 48px 16px 24px; gap: 32px; }
  .how-main { flex-basis: 100%; }
  .step-grid { grid-template-columns: 1fr; }
  .step-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px; }
  .step-card p { flex-basis: 100%; }
  .step-num { width: 44px; height: 44px; font-size: 24px; }

  .faq { padding: 32px 16px 56px; }
  .faq-item { padding: 0 16px; }
  .faq-item summary { font-size: 16px; }

  .footer-inner { padding: 48px 16px 28px; gap: 32px; }
  .footer-top { gap: 28px 16px; }
  .footer-col { flex: 1 1 40%; }
  .footer-col a { min-height: 32px; display: flex; align-items: center; }
  .footer-slim-inner { padding: 24px 16px; }

  .results-head { align-items: stretch; flex-direction: column; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters > * { flex: 0 0 auto; }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .result-get { right: 8px; bottom: 8px; height: 30px; padding: 0 10px; }
  .billboard-ad { height: 250px; max-width: 300px; }
  .seo-main, .seo-related { flex-basis: 100%; }

  .tool-layout { padding: 16px 16px 48px; gap: 28px; }
  .tool-main { flex-basis: 100%; }
  .tool-lede { font-size: 16px; }
  .workspace { padding: 14px; border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
  .dropzone { min-height: 220px; padding: 24px 16px; }
  .file-view { flex-direction: column; }
  .preview { min-height: 200px; flex-basis: auto; }
  .file-controls { flex-basis: auto; }
  .level-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .level-btn { padding: 0 8px; }
  .file-actions .btn-dark, .btn-outline { flex: 1 1 100%; }
  .trust { gap: 8px 16px; }
  .seo-article { font-size: 16px; }
  .seo-article h2 { font-size: 26px; }
  .tool-aside { flex-basis: 100%; }
  .ad-tall { height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
