/* ============================================
   PNG2JPG CMS — Frontend Styles
   Aesthetic: clean editorial light, soft glassy
   accents, grid-respecting but with personality.
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: #0f172a;
  background: #fafbff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid #e5e7eb;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #0f172a; text-decoration: none; }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-radius: 10px; font-size: 12px; font-weight: 800;
  box-shadow: 0 6px 20px -8px var(--primary);
}
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { color: #475569; font-weight: 500; font-size: 15px; }
.site-header nav a:hover { color: var(--primary); text-decoration: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 90% 0%, rgba(245,158,11,.12), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 30%, rgba(37,99,235,.10), transparent 60%),
    #fafbff;
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.badge {
  display: inline-block; padding: 8px 16px; border-radius: 99px;
  background: #fff; border: 1px solid #e5e7eb;
  font-size: 13px; font-weight: 600; color: #475569;
  box-shadow: 0 4px 12px -4px rgba(15,23,42,.08);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 800; margin: 20px 0 16px;
}
.grad {
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: 19px; color: #475569; max-width: 540px; }
.hero-stats { display: flex; gap: 36px; margin-top: 36px; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 28px; font-weight: 800; color: #0f172a; }
.hero-stats span { font-size: 13px; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }

.hero-blob {
  aspect-ratio: 1;
  background:
    conic-gradient(from 200deg at 50% 50%, var(--primary), var(--secondary), var(--primary));
  filter: blur(30px); opacity: .55;
  border-radius: 50% 60% 70% 40% / 50% 60% 40% 50%;
  animation: morph 14s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 50% 60% 70% 40% / 50% 60% 40% 50%; transform: rotate(0); }
  50%     { border-radius: 70% 40% 50% 60% / 40% 70% 50% 60%; transform: rotate(180deg); }
}

/* ---------- TOOL ---------- */
.tool-section { padding: 20px 0 80px; }
.tool-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 80px -30px rgba(15,23,42,.15), 0 0 0 1px #eef0f4;
}
.dropzone {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 16px;
  padding: 60px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--primary);
  background: #eff6ff;
  transform: translateY(-2px);
}
.dz-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  font-size: 36px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-radius: 50%;
  box-shadow: 0 12px 30px -10px var(--primary);
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.dz-content h3, .dz-content .dz-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: #0f172a; }
.dz-content p { margin: 0 0 8px; color: #475569; }
.dz-content small { color: #475569; font-size: 13px; }
.link {
  background: none; border: none; padding: 0;
  color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline;
}

.quality-row {
  margin-top: 24px; display: flex; align-items: center; gap: 16px;
  background: #f8fafc; border-radius: 12px; padding: 16px 20px;
}
.quality-row label { font-weight: 600; min-width: 180px; }
.quality-row input[type=range] { flex: 1; accent-color: var(--primary); }

.file-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.file-item {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  gap: 14px; align-items: center;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.file-thumb {
  width: 44px; height: 44px; border-radius: 8px; object-fit: cover;
  background: #e2e8f0;
}
.file-info strong { display: block; font-size: 14px; font-weight: 600; }
.file-info small { color: #94a3b8; font-size: 12px; }
.file-status {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px;
  background: #fef3c7; color: #b45309;
}
.file-status.done { background: #d1fae5; color: #047857; }

.actions { margin-top: 24px; display: flex; gap: 12px; }
.btn-primary, .btn-ghost {
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: 12px; cursor: pointer;
  border: none; transition: all .15s;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 10px 24px -10px var(--primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--primary); }
.btn-ghost { background: #f1f5f9; color: #0f172a; }
.btn-ghost:hover { background: #e2e8f0; }
.dl-btn {
  background: var(--primary); color: #fff;
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
}

/* ---------- BENEFITS ---------- */
.benefits { padding: 80px 0; background: #fff; }
.benefits h2, .howto h2, .faq h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 12px; text-align: center;
}
.section-lead { text-align: center; color: #64748b; max-width: 600px; margin: 0 auto 48px; font-size: 17px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  padding: 28px;
  background: #fafbff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(15,23,42,.15); }
.f-icon { font-size: 32px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: #64748b; font-size: 15px; }

/* ---------- HOW TO ---------- */
.howto { padding: 80px 0; }
.steps-list {
  max-width: 720px; margin: 40px auto 0;
  list-style: none; padding: 0;
  counter-reset: step;
}
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 24px 24px 24px 80px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 16px;
}
.steps-list li::before {
  content: counter(step);
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq { padding: 80px 0; background: #fff; }
.faq details {
  background: #fafbff; border: 1px solid #eef0f4;
  border-radius: 12px; padding: 18px 22px; margin-bottom: 12px;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none;
}
.faq summary::after { content: '+'; float: right; font-size: 22px; color: #94a3b8; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; color: #64748b; }

/* ---------- BLOG ---------- */
.page-head { padding: 60px 0 40px; background: #fff; border-bottom: 1px solid #eef0f4; }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); margin: 12px 0 8px; font-weight: 800; letter-spacing: -0.02em; }
.crumbs { font-size: 14px; color: #64748b; }
.crumbs a { color: #64748b; }
.blog-list { padding: 60px 0; }
.post-card {
  background: #fff; padding: 28px; border-radius: 16px;
  border: 1px solid #eef0f4;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(15,23,42,.15); }
.post-card .cat {
  display: inline-block; padding: 4px 10px; border-radius: 99px;
  background: #eff6ff; color: var(--primary); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.post-card h2 { margin: 14px 0 8px; font-size: 22px; font-weight: 700; }
.post-card h2 a { color: #0f172a; }
.post-card p { color: #64748b; margin: 0 0 16px; }
.read-more { font-weight: 600; }

/* ---------- SINGLE ---------- */
.single { padding: 60px 0; }
.single header { margin-bottom: 40px; }
.single .cat {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  background: #eff6ff; color: var(--primary); font-size: 12px; font-weight: 700;
  text-transform: uppercase;
}
.single h1 { font-size: clamp(32px, 5vw, 52px); margin: 16px 0 8px; line-height: 1.1; letter-spacing: -0.02em; }
.single time { color: #94a3b8; font-size: 14px; }
.prose { font-size: 18px; line-height: 1.8; color: #334155; }
.prose h2 { font-size: 28px; margin-top: 40px; }
.prose p { margin: 1em 0; }
.tags { margin-top: 32px; }
.tag { display: inline-block; padding: 4px 12px; background: #f1f5f9; border-radius: 99px; font-size: 13px; color: #475569; margin-right: 6px; }
.share { margin-top: 32px; padding-top: 24px; border-top: 1px solid #eef0f4; }
.share a { margin-left: 14px; }

/* ---------- FOOTER ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 60px 0 24px; margin-top: 60px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-grid h3 { color: #fff; margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.foot-grid a { display: block; color: #94a3b8; padding: 4px 0; font-size: 14px; }
.foot-grid a:hover { color: #fff; text-decoration: none; }
.copy { margin-top: 40px; padding-top: 24px; border-top: 1px solid #1e293b; font-size: 13px; color: #94a3b8; text-align: center; }

/* ---------- ADS ---------- */
.ad-slot { margin: 24px auto; text-align: center; min-height: 90px; }
.ad-header { padding: 8px; background: #f8fafc; border-bottom: 1px solid #eef0f4; }

/* ---------- RESPONSIVE ---------- */
/* ---------- Mobile menu toggle (hamburger) ---------- */
.menu-toggle {
  display: none; /* hidden on desktop */
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
}
.menu-toggle:hover { background: #f1f5f9; }
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #0f172a;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-blob { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }

  /* Hamburger is visible */
  .menu-toggle { display: flex; }

  /* Nav drops down from the sticky header */
  .site-header nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 16px 40px -16px rgba(15,23,42,.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .site-header nav.main-nav.open { max-height: 420px; }
  .site-header nav.main-nav a {
    padding: 18px 24px;
    font-size: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
  }
  .site-header nav.main-nav a:last-child { border-bottom: none; }
}

/* ============================================
   PATCH ADDITIONS — new sections & components
   ============================================ */

/* ---------- Mode tabs (Quality / Target Size) ---------- */
.mode-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: #f1f5f9; border-radius: 12px;
  margin-bottom: 20px; max-width: 360px;
}
.mode-tab {
  flex: 1; padding: 10px 18px;
  border: none; background: transparent;
  font: inherit; font-weight: 600; font-size: 14px;
  color: #334155; border-radius: 9px; cursor: pointer;
  transition: all .15s;
}
.mode-tab.active {
  background: #fff; color: var(--primary);
  box-shadow: 0 2px 6px rgba(15,23,42,.08);
}

/* ---------- Target size mode controls ---------- */
.size-row {
  margin-top: 24px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
}
.size-row > label { font-weight: 600; display: block; margin-bottom: 12px; }
.size-presets {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.size-chip {
  padding: 9px 18px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 99px;
  font: inherit; font-weight: 600; font-size: 13px;
  color: #475569; cursor: pointer;
  transition: all .15s;
}
.size-chip:hover { border-color: var(--primary); color: var(--primary); }
.size-chip.active {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 16px -8px var(--primary);
}
#customSize {
  width: 130px; padding: 9px 14px;
  border: 1.5px solid #e2e8f0; border-radius: 99px;
  font: inherit; font-size: 13px;
}
#customSize:focus { outline: none; border-color: var(--primary); }

/* ---------- Size target section ---------- */
.size-targets { padding: 80px 0; background: #fff; }
.size-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 40px;
}
.size-card {
  padding: 28px;
  background: #fafbff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  transition: transform .2s, box-shadow .2s;
}
.size-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(15,23,42,.15); }
.size-card.highlight {
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(245,158,11,.06));
  border-color: rgba(37,99,235,.2);
}
.size-card h3 {
  margin: 0 0 10px;
  font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.size-card p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.6; }
.size-note {
  text-align: center; max-width: 720px; margin: 36px auto 0;
  color: #64748b; font-size: 15px; font-style: italic;
}

/* ---------- Comparison table ---------- */
.comparison { padding: 80px 0; }
.compare-table {
  max-width: 820px; margin: 40px auto 0;
  background: #fff; border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eef0f4;
}
.compare-row {
  display: grid; grid-template-columns: 2fr 1.5fr 1.5fr;
  border-bottom: 1px solid #eef0f4;
}
.compare-row:last-child { border-bottom: none; }
.compare-row > div {
  padding: 18px 24px;
  border-right: 1px solid #eef0f4;
}
.compare-row > div:last-child { border-right: none; }
.compare-row > div:first-child {
  background: #fafbff; font-weight: 600; color: #475569;
}
.compare-head { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.compare-head > div { color: #fff !important; background: transparent !important; font-weight: 800 !important; font-size: 16px; }

/* ---------- Use cases ---------- */
.usecases { padding: 80px 0; background: #fff; }
.usecase {
  padding: 24px;
  background: #fafbff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  transition: transform .2s, border-color .2s;
}
.usecase:hover { transform: translateY(-3px); border-color: var(--primary); }
.usecase h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--primary); }
.usecase p { margin: 0; color: #64748b; font-size: 14.5px; line-height: 1.65; }

/* ---------- Contact page ---------- */
.contact-wrap {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 48px; margin-top: 40px;
}
.contact-form {
  background: #fff; padding: 36px;
  border-radius: 18px;
  box-shadow: 0 30px 80px -30px rgba(15,23,42,.15), 0 0 0 1px #eef0f4;
}
.contact-form label {
  display: block; font-size: 13px; font-weight: 600;
  color: #475569; margin: 16px 0 6px;
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font: inherit; background: #fff;
  transition: border .15s; box-sizing: border-box;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  margin-top: 22px; width: 100%;
  background: var(--primary); color: #fff;
  border: none; padding: 16px;
  border-radius: 12px; font: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer;
  box-shadow: 0 12px 30px -10px var(--primary);
  transition: transform .15s;
}
.contact-form button:hover { transform: translateY(-2px); }
.contact-info {
  padding: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-radius: 18px;
}
.contact-info h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.contact-info p { color: rgba(255,255,255,.92); margin: 0 0 20px; line-height: 1.6; }
.contact-info .info-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-top: 1px solid rgba(255,255,255,.2);
}
.contact-info .info-item:last-child { padding-bottom: 0; }
.contact-info .info-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(255,255,255,.2); border-radius: 10px;
  display: grid; place-items: center; font-size: 16px;
}
.contact-info .info-item strong { display: block; font-size: 13px; opacity: .8; }
.contact-info .info-item span { font-size: 15px; font-weight: 600; }

.success-banner {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 20px 28px;
  border-radius: 14px;
  margin-bottom: 24px;
  font-weight: 600;
  box-shadow: 0 12px 30px -12px rgba(16,185,129,.5);
  display: flex; align-items: center; gap: 14px;
}
.success-banner::before {
  content: '✓';
  width: 32px; height: 32px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 800;
  flex-shrink: 0;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* ---------- About hero ---------- */
.about-hero {
  background: linear-gradient(135deg, #eff6ff, #fef3c7);
  padding: 80px 0;
  margin-bottom: -40px;
}
.about-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 16px;
  font-weight: 800; letter-spacing: -0.02em;
}
.about-hero .lead { font-size: 19px; max-width: 640px; }
.about-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin: 50px 0;
}
.about-card {
  background: #fff; padding: 28px;
  border-radius: 16px; border: 1px solid #eef0f4;
}
.about-card .num {
  font-size: 32px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.about-card h3 { margin: 0 0 8px; font-size: 18px; }
.about-card p { margin: 0; color: #64748b; font-size: 14.5px; }

/* ---------- Legal pages typography polish ---------- */
.prose h2 {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid #eef0f4;
}
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { margin-top: 32px; font-size: 20px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul li, .prose ol li { margin: 8px 0; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .size-grid { grid-template-columns: 1fr 1fr; }
  .compare-row { grid-template-columns: 1.5fr 1fr 1fr; }
  .compare-row > div { padding: 12px 14px; font-size: 13px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* Tighter container padding */
  .container { padding: 0 16px; }

  /* ----- HERO ----- */
  .hero { padding: 50px 0 40px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; margin-top: 28px; }
  .hero-stats strong { font-size: 22px; }
  .hero-stats span { font-size: 11px; }
  .badge { font-size: 12px; padding: 6px 14px; }

  /* ----- TOOL CARD ----- */
  .tool-section { padding: 20px 0 60px; }
  .tool-card { padding: 20px 16px; border-radius: 16px; }

  /* Mode tabs fill width */
  .mode-tabs { max-width: 100%; }
  .mode-tab { padding: 10px 12px; font-size: 13px; }

  /* Dropzone compact */
  .dropzone { padding: 40px 16px; border-radius: 14px; }
  .dz-icon { width: 56px; height: 56px; font-size: 28px; margin-bottom: 12px; }
  .dz-content h3, .dz-content .dz-title { font-size: 18px; }
  .dz-content small { font-size: 12px; }

  /* Quality row stacks vertically — fixes the cramped slider */
  .quality-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }
  .quality-row label { min-width: auto; text-align: center; font-size: 14px; }
  .quality-row input[type=range] { width: 100%; height: 28px; }

  /* Size targets mode */
  .size-row { padding: 16px; }
  .size-presets { gap: 6px; }
  .size-chip {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding: 11px 8px;
    text-align: center;
    font-size: 12px;
  }
  #customSize { width: 100%; flex-basis: 100%; margin-top: 4px; text-align: center; }

  /* Action buttons stack full width */
  .actions { flex-direction: column; gap: 10px; }
  .actions button { width: 100%; padding: 14px; }

  /* File items: thumbnail, info, status stacked */
  .file-item {
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "thumb info"
      "status status"
      "action action";
    gap: 10px;
    padding: 12px 14px;
  }
  .file-item .file-thumb { grid-area: thumb; }
  .file-item .file-info { grid-area: info; min-width: 0; overflow: hidden; }
  .file-item .file-info strong { font-size: 13px; word-break: break-all; }
  .file-item .file-status { grid-area: status; justify-self: start; }
  .file-item .file-action { grid-area: action; }
  .file-item .dl-btn { display: block; text-align: center; width: 100%; }

  /* ----- Section spacing ----- */
  .benefits, .size-targets, .howto, .comparison, .usecases, .faq { padding: 50px 0; }
  .benefits h2, .size-targets h2, .howto h2, .comparison h2, .usecases h2, .faq h2 {
    font-size: 26px;
  }
  .section-lead { font-size: 15px; margin-bottom: 32px; }

  /* Feature cards */
  .feature { padding: 22px; }
  .feature h3 { font-size: 17px; }
  .feature p { font-size: 14px; }

  /* Size target cards */
  .size-grid { grid-template-columns: 1fr; gap: 14px; }
  .size-card { padding: 22px; }
  .size-card h3 { font-size: 18px; }

  /* Use cases */
  .usecase { padding: 20px; }

  /* How-to steps */
  .steps-list li {
    padding: 20px 20px 20px 66px;
    font-size: 15px;
  }
  .steps-list li::before { left: 16px; width: 36px; height: 36px; }

  /* Comparison table */
  .compare-row { grid-template-columns: 1.3fr 1fr 1fr; }
  .compare-row > div { padding: 10px 10px; font-size: 12px; }

  /* FAQ details */
  .faq details { padding: 16px 18px; }
  .faq summary { font-size: 15px; }

  /* Page head (about, blog, contact headers) */
  .page-head { padding: 40px 0 30px; }
  .page-head h1 { font-size: 32px; }

  /* Single pages */
  .single { padding: 40px 0; }
  .single h1 { font-size: 28px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 22px; margin-top: 32px; }

  /* Blog cards */
  .blog-list { padding: 40px 0; }
  .post-card { padding: 22px; }
  .post-card h2 { font-size: 19px; }

  /* Contact form */
  .contact-form { padding: 24px 20px; }
  .contact-info { padding: 24px 20px; }

  /* About hero and cards */
  .about-hero { padding: 50px 0; }
  .about-hero h1 { font-size: 30px; }

  /* Footer tighter */
  .site-footer { padding: 50px 0 20px; }

  /* Ad slot never overflow */
  .ad-slot { overflow-x: auto; max-width: 100%; }
}
