

/* "See all …" link → proper bottom CTA pill, centered, max-width so it's a button (not a strip) */
.ai-tools-see-all {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px auto 4px !important;
  padding: 10px 22px !important;
  border-top: none !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 9px;
  text-align: center !important;
  text-decoration: none !important;
  transition: background 0.15s;
  width: auto !important;
  max-width: 320px;
}
/* Wrap a div around it so it can be centered as a block */
.ai-tools-dropdown,
.nav-converters-dropdown,
.nav-compress-dropdown,
.nav-free-dropdown {
  text-align: center;
}
.ai-tools-dropdown .ai-tools-grid,
.nav-converters-dropdown .ai-tools-grid,
.nav-compress-dropdown .ai-tools-grid,
.nav-free-dropdown .ai-tools-grid {
  text-align: left;
}
.ai-tools-see-all:hover {
  background: #c62828 !important;
  text-decoration: none !important;
}

/* ── FAQ article: related-article cards ── */
.faq-related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq-related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-related-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
h3.faq-related-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
  flex: 1;
}
.faq-related-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── All Tools dropdown → same design system as the other dropdowns ── */
@media (min-width: 901px) {
  /* Override the earlier grid:repeat(4) rule and use sections instead */
  .nav-tools-dropdown.open {
    display: block !important;
    grid-template-columns: none !important;
  }
  .nav-tools-section {
    margin-bottom: 18px;
  }
  .nav-tools-section:last-of-type {
    margin-bottom: 8px;
  }
  /* Slightly denser grid inside All Tools (more entries to show) */
  .nav-tools-dropdown .ai-tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  }
  /* Show the format icon inside the red square - white-filtered */
  .nav-tools-dropdown .ai-tool-icon img {
    display: block;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   2026-05-19: FAQ listing — every question is its own article page.
   Grid of link cards (no inline answers); each card opens /faq/<slug>.
   ────────────────────────────────────────────────────────────────────── */
.faq-q-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.faq-q-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.faq-q-card:hover {
  border-color: var(--accent);
  background: rgba(229,57,53,0.03);
}
.faq-q-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}
.faq-q-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.faq-q-meta {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h3.faq-q-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

/* ── All Tools dropdown — 2 outer columns × 4 inner columns ── */
@media (min-width: 901px) {
  /* Outer: from-JPG section on the left, to-JPG section on the right */
  .nav-tools-dropdown.open {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 36px !important;
    row-gap: 0 !important;
    align-items: start !important;
  }
  .nav-tools-section {
    min-width: 0;
    margin-bottom: 0 !important;
  }
  /* Inner: 4 columns of conversion cards (high specificity to win) */
  .nav-tools-dropdown.ai-tools-dropdown .ai-tools-grid,
  .nav-tools-dropdown .nav-tools-section .ai-tools-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  /* Format-SVG icon — JUST the icon, no red square background */
  .nav-tools-dropdown .ai-tool-icon--fmt {
    background: transparent !important;
    border: none !important;
    width: 26px !important;
    height: 30px !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
  }
  .nav-tools-dropdown .ai-tool-icon--fmt img {
    width: 22px;
    height: auto;
    display: block;
    filter: none !important;
  }
  .nav-tools-dropdown .ai-tool-card {
    padding: 7px 9px !important;
    gap: 8px !important;
  }
  .nav-tools-dropdown .ai-tool-desc { display: none; }
  .nav-tools-dropdown .ai-tool-name { font-size: 12.5px !important; }
  /* See-all button spans both columns at the bottom */
  .nav-tools-dropdown .ai-tools-see-all {
    grid-column: 1 / -1 !important;
    margin-top: 16px !important;
  }
}

/* ── Dropdown headings: proper column heading sizing, LEFT aligned ── */
h3.ai-tools-heading {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 0 12px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--border) !important;
  text-align: left !important;
}
/* Override the parent text-align:center we set earlier so only headings are
   left-aligned and the "See all" CTA button stays centered. */
.nav-tools-dropdown .nav-tools-section,
.nav-converters-dropdown,
.nav-free-dropdown,
.nav-compress-dropdown,
.ai-tools-dropdown {
  text-align: left !important;
}
/* But keep the bottom CTA button visually centred within its row */
.ai-tools-see-all { margin-left: auto !important; margin-right: auto !important; display: block !important; max-width: 280px; }

/* ──────────────────────────────────────────────────────────────────────
   FAQ article page — full width with a 2-column grid (article + sticky
   related rail on the right). Replaces the narrow 860px wrapper.
   ────────────────────────────────────────────────────────────────────── */
.faq-article-page { max-width: 1200px; padding: 20px 20px 60px; }

.faq-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
.faq-article-main { min-width: 0; }

.faq-article-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.faq-article-h1 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text);
}
.faq-article-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.faq-article-section { margin-bottom: 32px; }
.faq-article-h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.35;
}
.faq-article-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}
.faq-article-body p { margin: 0 0 14px; }
.faq-article-body ul, .faq-article-body ol { margin: 0 0 14px; padding-left: 22px; }
.faq-article-body li { margin-bottom: 6px; }
.faq-article-body a { color: var(--accent); }
.faq-article-body a:hover { color: var(--accent-hover); }
.faq-article-body code {
  background: rgba(0,0,0,.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.faq-article-body strong { color: var(--text); }

.faq-article-cta {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 40px;
}
.faq-article-cta-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.faq-article-cta-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.faq-article-back {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.faq-article-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.faq-article-back a:hover { color: var(--text); }

/* Right rail */
.faq-article-aside {
  position: sticky;
  top: 84px;
  align-self: start;
}
.faq-aside-list { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 980px) {
  .faq-article-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-article-aside { position: static; }
}

/* ──────────────────────────────────────────────────────────────────────
   /tools — unify the riot of coloured icon squares to brand red and hide
   the noisy "Free · N/day" / "Compress" pill labels on each card.
   ────────────────────────────────────────────────────────────────────── */
.tools-page .ai-featured-icon,
.tools-page .tool-card-icon-wrap,
body .ai-featured-icon[style*="linear-gradient"] {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%) !important;
  color: #fff !important;
}
.tools-page .ai-featured-icon svg,
body .ai-featured-icon svg {
  color: #fff !important;
  stroke: #fff !important;
}

/* Hide the small "Free · N/day", "Compress", etc. badge pills */
.tools-page .ai-featured-badge,
.tools-page .tool-card-badge,
.ai-tools-featured-grid .ai-featured-badge {
  display: none !important;
}

/* H2/H3 sizing on /tools (proper hierarchy: H1 hero, H2 section, H3 cards) */
.tools-page .tools-section-title {
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.tools-page .tools-section-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 0 18px;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────────────
   /ai-tools — clean up the rainbow icons, hide pricing labels, add the
   missing vertical rhythm between sections.
   ────────────────────────────────────────────────────────────────────── */

/* Hide "Free", "Free + Premium", "Premium" labels on cards */
.ai-hub-badge,
.ai-tools-hub .mss-stat,
.ai-tools-hub .quota-engine {
  display: none !important;
}

/* Unify every gradient icon — Background Remover green, Creator purple,
   Upscaler orange, OCR cyan, etc. — into a single brand-red treatment */
.mss-icon,
.mss-icon--bg, .mss-icon--gen, .mss-icon--up, .mss-icon--ocr,
.uc-icon,
.uc-icon--ecom, .uc-icon--social, .uc-icon--doc, .uc-icon--restore {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%) !important;
  color: #fff !important;
}

/* Related-tool icons (bottom of /ai-tools) — kill the inline gradients */
.related-tool-icon[style*="linear-gradient"],
.related-tool-icon {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%) !important;
  color: #fff !important;
}
.related-tool-icon svg { stroke: #fff !important; color: #fff !important; }

/* Vertical rhythm between sections */
.pillar-section {
  margin: 0 0 56px;
  scroll-margin-top: 80px;
}
.pillar-section:last-of-type { margin-bottom: 32px; }
.pillar-section-title {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.3;
}

/* Style preset dots (10 styles section) — drop the rainbow, use accent-dim */
.ai-style-dot { background: var(--accent) !important; }

/* Quota badges — green/blue/gold rainbow → muted accent for visual calm */
.quota-badge {
  background: var(--accent-dim) !important;
  color: var(--accent) !important;
}

/* ──────────────────────────────────────────────────────────────────────
   /faq — hero + per-topic card grid (each topic links to /faq/topic/<k>)
   ────────────────────────────────────────────────────────────────────── */
.faq-hero {
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.faq-hero-title {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--text);
}
.faq-hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
  margin: 0;
}
.faq-count-inline {
  font-size: 0.7em;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.faq-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.faq-topic-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.faq-topic-card:hover {
  border-color: var(--accent);
  background: rgba(229,57,53,0.03);
}
h3.faq-topic-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.faq-topic-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── /faq inline contact form ───────────────────────────────────────── */
.faq-contact-section {
  margin: 56px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.faq-contact-lede {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
  max-width: 600px;
}
.faq-contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}
.faq-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.faq-contact-row--bottom {
  grid-template-columns: 220px auto;
  align-items: end;
  gap: 16px;
}
.faq-contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq-contact-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.faq-contact-form input[type="text"],
.faq-contact-form input[type="email"],
.faq-contact-form input[type="number"],
.faq-contact-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.faq-contact-form input:focus,
.faq-contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229,57,53,0.12);
}
.faq-contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
.faq-contact-submit {
  padding: 11px 22px !important;
  height: 41px;
}
@media (max-width: 640px) {
  .faq-contact-row, .faq-contact-row--bottom { grid-template-columns: 1fr; }
}

/* ── Hub-hero on mobile: tighter top padding so the H1 isn't lost in whitespace ── */
@media (max-width: 640px) {
  .tools-hero { padding: 18px 16px 22px !important; }
  .tools-hero-title { font-size: 1.55rem !important; line-height: 1.2; margin-bottom: 6px; }
  .tools-hero-sub { font-size: 14px; line-height: 1.55; }
  .tools-hero-stats { font-size: 11.5px; margin-top: 10px; }
  /* Same fix for the faq-hero on /faq */
  .faq-hero { padding: 14px 0 22px; }
}

/* ──────────────────────────────────────────────────────────────────────
   Mobile nav polish:
   - Upgrade pill shows only the crown (no "Upgrade" word)
   - Login / Sign up hidden — already accessible via hamburger drawer
   - Hamburger sits hard-left; tight gap to the logo
   ────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Tight hamburger ↔ logo spacing */
  .hamburger-btn {
    margin-left: -6px !important;   /* nudge left, flush with viewport edge */
    margin-right: 4px !important;
    padding: 6px !important;
  }
  .logo { margin-left: 0 !important; }

  /* Upgrade pill: just the crown */
  .btn-upgrade-text { display: none !important; }
  .btn-upgrade {
    padding: 7px 10px !important;
    gap: 0 !important;
    border-radius: 10px !important;   /* clearly rounded on the small square crown-only button */
  }
  .btn-upgrade-crown { margin: 0 !important; }

  /* Hide Login/Sign-up on mobile — they live inside the hamburger drawer */
  .hdr-auth-link { display: none !important; }

  /* Reduce header gap so nothing overflows the viewport */
  .header-inner { gap: 6px !important; padding: 8px 12px !important; }
}

/* ──────────────────────────────────────────────────────────────────────
   Hub-card system — shared by /free-tools, /ai-tools, /compress-image
   (was previously page-local; moved to main.css so the new /compress-image
   page actually inherits the styles after h2 → h3 promotion.)
   ────────────────────────────────────────────────────────────────────── */
.ft-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ai-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ai-hub-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 1.4rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color .15s;
}
.ai-hub-card:hover { border-color: var(--accent); }
.ai-hub-card-header { display: flex; align-items: center; justify-content: space-between; }
.ai-hub-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.ai-hub-badge {
  font-size: .72rem; font-weight: 700;
  padding: .25rem .6rem; border-radius: 20px;
  background: var(--accent-dim); color: var(--accent);
}
/* Same visual size whether the card title is h2, h3, or styled span */
.ai-hub-title,
h3.ai-hub-title,
h2.ai-hub-title {
  font-size: 1.15rem; font-weight: 700;
  margin: 0; line-height: 1.3;
  color: var(--text);
}
.ai-hub-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
.ai-hub-features {
  font-size: .82rem; color: var(--text-muted);
  padding-left: 1.2rem; margin: 0;
  display: flex; flex-direction: column; gap: 3px;
  flex: 1;
}
.ai-hub-cta { font-size: .85rem; font-weight: 600; color: var(--accent); margin-top: 4px; }
@media (max-width: 960px) { .ft-hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .ft-hub-grid { grid-template-columns: 1fr; } .ai-hub-grid { grid-template-columns: 1fr; } }

/* hub-table — also used across multiple hubs */
.hub-table-wrap { overflow-x: auto; }
.hub-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hub-table th { background: var(--bg-card); padding: .65rem 1rem; text-align: left; font-weight: 600; border-bottom: 2px solid var(--border); }
.hub-table td { padding: .6rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.hub-table tr:last-child td { border-bottom: none; }

/* pillar-section vertical rhythm (used by /compress-image, /ai-tools etc.) */
.pillar-section { margin: 0 0 56px; scroll-margin-top: 80px; }
.pillar-section:last-of-type { margin-bottom: 32px; }
.pillar-section-title {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.3;
}

/* ── Mobile drawer: trim "JPG Tools" oversize top margin ────────────── */
.drawer-nav .section-label:first-child {
  padding-top: 4px !important;
}
.drawer-nav .section-label {
  margin-top: 0 !important;
}

/* ──────────────────────────────────────────────────────────────────────
   .btn-account — small "Sign up / login" pill that sits next to Upgrade.
   Always visible (desktop + mobile) so the auth affordance is obvious.
   On mobile, the label collapses and only the user-icon is shown.
   ────────────────────────────────────────────────────────────────────── */
.btn-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.9);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-account:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.btn-account svg { flex-shrink: 0; }
@media (max-width: 900px) {
  /* Collapse to icon-only on mobile so it tucks neatly next to Upgrade */
  .btn-account-label { display: none; }
  .btn-account { padding: 6px 8px; }
}

/* ──────────────────────────────────────────────────────────────────────
   Upgrade pill — glossy/shiny finish + animated shimmer sweep.
   ────────────────────────────────────────────────────────────────────── */
.btn-upgrade {
  /* Replace the flat amber-400 with a top-to-bottom gradient for a glass
     look. Lighter at the top (highlight) → core amber → slightly deeper
     amber at the bottom (shadow side). */
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 45%, #f59e0b 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),       /* inner top highlight */
    inset 0 -1px 0 rgba(120, 53, 15, 0.18),         /* inner bottom edge */
    0 2px 6px rgba(245, 158, 11, 0.35),             /* soft amber glow */
    0 1px 2px rgba(0, 0, 0, 0.18);                  /* drop shadow */
  position: relative;
  overflow: hidden;
}
/* Hover: brighter + lift */
.btn-upgrade:hover {
  background: linear-gradient(180deg, #fef3c7 0%, #fde047 45%, #fbbf24 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(120, 53, 15, 0.18),
    0 4px 12px rgba(245, 158, 11, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}
.btn-upgrade:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(120, 53, 15, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Animated shimmer — diagonal white band sweeps across every 3.5s.
   Implemented as an animated BACKGROUND on an untransformed, inset overlay:
   a skewed/moving child can't be clipped to border-radius by overflow:hidden
   on mobile WebKit/Blink (it painted square over the left corners). A
   background gradient can never paint outside the pseudo-element, and the
   pseudo-element inherits the pill's rounding at every breakpoint. */
.btn-upgrade::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 42%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 58%
  ) no-repeat;
  background-size: 250% 100%;
  background-position-x: 150%;   /* band parked off the left edge */
  animation: btn-upgrade-shimmer 3.5s infinite;
  pointer-events: none;
}
@keyframes btn-upgrade-shimmer {
  0%   { background-position-x: 150%; }
  60%  { background-position-x: -50%; }
  100% { background-position-x: -50%; }  /* pause off-screen for ~40% of cycle */
}
@media (prefers-reduced-motion: reduce) {
  .btn-upgrade::before { animation: none; }
}

/* Crown sits above the shimmer */
.btn-upgrade-crown,
.btn-upgrade-text { position: relative; z-index: 1; }

/* ──────────────────────────────────────────────────────────────────────
   Mobile: tighten the homepage converter workspace
     - Convert button centered, BELOW the "Select a file…" hint
     - Trust badges in one compact row, not three lines
     - Drop zone height ~halved
   ────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Action bar — stack as column, reorder so the Convert button is on TOP
     and the "Select a file…" hint sits underneath, both centered. */
  .cv-action-bar {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 14px 16px !important;
  }
  .cv-action-btns {
    width: 100% !important;
    justify-content: center !important;
  }
  .cv-action-left {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .cv-action-info {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 12.5px;
  }
  .cv-convert-btn {
    min-width: 180px;
    justify-content: center;
  }

  /* Trust badges — compress to one tight row, smaller icons & text,
     wraps only if absolutely necessary. */
  .cv-trust-row,
  .cv-trust-row--center {
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 10px 12px 8px !important;
    margin-bottom: 0 !important;
    justify-content: center !important;
  }
  .cv-trust {
    font-size: 10.5px !important;
    gap: 4px !important;
  }
  .cv-trust svg { width: 11px !important; height: 11px !important; }

  /* Drop zone — chop the vertical padding roughly in half */
  .cv-dropzone {
    padding: 18px 16px 22px !important;
  }
  .cv-drop-icon {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 10px !important;
  }
  .cv-drop-icon svg { width: 22px !important; height: 22px !important; }
  .cv-drop-title {
    font-size: 15px !important;
    margin-bottom: 4px !important;
  }
  .cv-drop-sub {
    font-size: 12px !important;
    margin-bottom: 14px !important;
  }
  .cv-select-btn {
    padding: 9px 18px !important;
    font-size: 13px !important;
  }
  .cv-drop-quota {
    font-size: 11.5px !important;
    margin-top: 10px !important;
  }
}
