:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --green: #1d8a3a;
  --orange: #b25b00;
  --purple: #6d4bd8;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.06), 0 24px 48px rgba(0, 0, 0, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1080px) / 2));
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 650; font-size: 1.02rem; letter-spacing: -0.03em; color: #383e48; }
.logo-mark { width: 28px; height: 28px; display: block; flex: none; object-fit: contain; }
.logo-type em { font-style: normal; color: #0577fe; font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 1.6rem; }
.nav-links { display: flex; gap: 1.6rem; font-size: 0.8rem; }
.nav-links a { text-decoration: none; color: rgba(29,29,31,0.8); transition: color .25s var(--ease); }
.nav-links a:hover { color: #000; }

/* Hero */
.hero {
  text-align: center;
  padding: 120px 22px 96px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}
.hero > * { animation: rise .9s var(--ease) both; }
.hero > *:nth-child(2) { animation-delay: .08s; }
.hero > *:nth-child(3) { animation-delay: .16s; }
.hero > *:nth-child(4) { animation-delay: .24s; }
.hero > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.eyebrow { font-size: 1.1rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; letter-spacing: -0.01em; }
h1 {
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.045em;
  max-width: 17ch;
  margin: 0 auto;
}
.grad {
  background: linear-gradient(90deg, #0071e3 0%, #8e5cf0 55%, #e9459a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede { margin: 24px auto 0; max-width: 34em; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--muted); line-height: 1.4; }

.search {
  margin: 40px auto 0; max-width: 640px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 20px;
  background: #fff; border-radius: 999px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15), var(--shadow); }
.search-icon { color: var(--muted); flex-shrink: 0; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--ink); }
.search input::placeholder { color: #a1a1a6; }
.hero-meta { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }

/* Buttons */
.search button, .submit-form button, .card-link {
  font: inherit; font-weight: 500; font-size: 0.95rem;
  border: 0; cursor: pointer; text-decoration: none;
  background: var(--blue); color: #fff;
  padding: 11px 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.search button:hover, .submit-form button:hover, .card-link:hover { background: var(--blue-hover); }
.search button:active, .submit-form button:active, .card-link:active { transform: scale(.97); }
.card-link { align-self: flex-start; padding: 8px 18px; font-size: 0.88rem; }
.card-link::after { content: "›"; margin-left: 6px; font-size: 1.15em; line-height: 1; transition: transform .25s var(--ease); }
.card-link:hover::after { transform: translateX(3px); }

/* Sections */
section.featured, section.directory, section.submit, section.guides { padding: 96px max(22px, calc((100vw - 1080px) / 2)); }
section.featured { background: var(--bg-alt); }
section.directory { background: #fff; }
section.guides { background: var(--bg-alt); }
section.submit { background: #fff; }

.section-head { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head .eyebrow { font-size: 0.95rem; margin-bottom: 6px; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; }
.section-note { max-width: 30em; color: var(--muted); font-size: 1.05rem; }

/* Cards */
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card, .tool-card {
  background: #fff; border-radius: 24px; padding: 28px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tool-card { background: var(--bg-alt); box-shadow: none; padding: 24px; border-radius: 20px; }
.feature-card { min-height: 250px; }
.feature-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-hover); }
.tool-card:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-hover); }

.badge-row { display: flex; flex-wrap: wrap; flex: none; align-items: flex-start; align-content: flex-start; gap: 6px; margin-bottom: 18px; }
.badge { font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,0.05); color: var(--muted); letter-spacing: 0; }
.badge.featured { background: var(--ink); color: #fff; }
.badge.cat { color: var(--blue); background: rgba(0,113,227,.09); }
.badge.pricing-free { color: var(--green); background: rgba(29,138,58,.1); }
.badge.pricing-freemium { color: var(--purple); background: rgba(109,75,216,.1); }
.badge.pricing-paid { color: var(--orange); background: rgba(178,91,0,.1); }

.feature-card h3 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.035em; }
.tool-card h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.025em; }
.feature-card p, .tool-card p { margin: 8px 0 22px; color: var(--muted); font-size: 1rem; flex: 1; }
.tool-card p { font-size: 0.95rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-btn {
  font: inherit; font-size: 0.9rem; color: var(--ink);
  background: var(--bg-alt); border: 0; border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.filter-btn:hover { background: #e8e8ed; }
.filter-btn.active { background: var(--ink); color: #fff; }
.results-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
.empty { color: var(--muted); padding: 32px 0; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty-chat {
  font: inherit; font-size: 0.92rem; font-weight: 500;
  border: 0; background: none; color: var(--blue); cursor: pointer;
  text-decoration: none; padding: 0;
}
.empty-chat:hover { text-decoration: underline; }
.empty[hidden] { display: none !important; }

/* Submit */
.submit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.submit-copy p { color: var(--muted); font-size: 1.1rem; margin: 16px 0 24px; max-width: 28em; }
.submit-copy strong { color: var(--ink); font-weight: 600; }
.submit-copy ul { list-style: none; display: grid; gap: 12px; }
.submit-copy li { padding-left: 28px; position: relative; }
.submit-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

.submit-form { background: var(--bg-alt); border-radius: 28px; padding: 32px; display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid transparent; border-radius: 12px;
  padding: 12px 14px; outline: 0; width: 100%;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.submit-form button { width: 100%; padding: 14px; font-size: 1rem; margin-top: 4px; }
.submit-form button:disabled { opacity: .6; cursor: wait; }
.form-status { font-size: 0.9rem; min-height: 1.3em; color: var(--muted); text-align: center; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #d70015; }

.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 32px max(22px, calc((100vw - 1080px) / 2)) 48px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; }
.footer strong { color: var(--ink); display: block; margin-bottom: 4px; }
.footer-note { max-width: 40em; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal.in.feature-card:hover, .reveal.in.tool-card:hover { transition-delay: 0s; transition-duration: .45s; }
.reveal.in.feature-card:hover { transform: translateY(-4px) scale(1.01); }
.reveal.in.tool-card:hover { transform: translateY(-4px); }

@media (max-width: 960px) {
  .featured-grid, .submit { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .submit { gap: 40px; }
  .hero { padding-top: 80px; }
  section.featured, section.directory, section.submit, section.guides { padding-top: 64px; padding-bottom: 64px; }
}
@media (max-width: 600px) {
  .tools-grid, .row { grid-template-columns: 1fr; }
  .nav-links { gap: 1.1rem; }
  .search button { padding: 10px 16px; }
  .submit-form { padding: 22px; }
  .hero { padding: 56px 18px 48px; }
  .filters { gap: 6px; }
  .filter-btn { font-size: 0.8rem; padding: 6px 12px; }
  .hero .lede { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero > * { opacity: 1; transform: none; transition: none; animation: none; }
}

.no-reveal .reveal, .no-reveal .hero > * { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }

/* Language switcher */
.lang { position: relative; font-size: 0.8rem; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; color: rgba(29,29,31,.8); transition: background .25s var(--ease); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: rgba(0,0,0,.06); }
.lang ul { list-style: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-hover); padding: 6px; }
.lang li a { display: block; padding: 8px 12px; border-radius: 9px; text-decoration: none; transition: background .2s var(--ease); }
.lang li a:hover { background: var(--bg-alt); }
.lang li a[aria-current] { font-weight: 600; color: var(--blue); }

/* Guides block (home) */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guides-grid.two { grid-template-columns: repeat(2, 1fr); }
.guide-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.guide-card.reveal.in:hover { transform: translateY(-4px); }
.guide-num { font-size: .85rem; font-weight: 600; color: var(--blue); }
.guide-card h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.guide-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.guide-cta { color: var(--blue); font-weight: 500; font-size: .95rem; margin-top: 6px; }
.guides-grid.two .guide-card { padding: 22px; }

/* Guide pages */
.guide-hero { text-align: center; padding: 88px 22px 64px; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.guide-hero > * { animation: rise .9s var(--ease) both; }
.guide-hero h1 { font-size: clamp(2.3rem, 6.5vw, 4.5rem); max-width: 18ch; }
.guide-hero .lede { max-width: 38em; }
.crumbs { display: flex; justify-content: center; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; color: var(--blue); }
.crumbs a:hover { text-decoration: underline; }
.guide-body { background: var(--bg-alt); padding: 0 max(22px, calc((100vw - 880px) / 2)) 96px; }
.guide-list { display: grid; gap: 20px; }
.guide-item { background: #fff; border-radius: 28px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.guide-item-head { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.guide-item-head .badge-row { margin: 8px 0 0; }
.guide-rank { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.guide-item h2 { font-size: 1.9rem; letter-spacing: -0.035em; line-height: 1.1; }
.guide-item-desc { color: var(--muted); font-size: 1.05rem; margin-bottom: 20px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.pc { border-radius: 18px; padding: 18px 20px; background: var(--bg-alt); }
.pc h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.pc.pros h3 { color: var(--green); }
.pc.cons h3 { color: var(--orange); }
.pc p { font-size: .95rem; color: #3a3a3d; }
.verdict { margin-top: 40px; background: var(--ink); color: #fff; border-radius: 28px; padding: 36px; }
.verdict h2 { font-size: 1.8rem; letter-spacing: -0.035em; margin-bottom: 10px; }
.verdict p { color: rgba(255,255,255,.86); font-size: 1.08rem; }
.verdict .fineprint { margin-top: 18px; font-size: .82rem; color: rgba(255,255,255,.6); }
.guide-more { margin-top: 56px; }
.guide-more h2 { font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 18px; }
.back { margin-top: 24px; }
.back a { color: var(--blue); text-decoration: none; font-weight: 500; }
.back a:hover { text-decoration: underline; }

.disclosure { max-width: 46em; line-height: 1.5; }
.footer-col { max-width: 28em; }
.root-pick { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 12px; padding: 24px; }
.root-pick a { color: var(--blue); text-decoration: none; }

@media (max-width: 960px) {
  .guides-grid, .guides-grid.two { grid-template-columns: 1fr; }
  .proscons { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .guide-hero { padding-top: 64px; }
  .guide-item, .verdict { padding: 24px; }
}

[hidden] { display: none !important; }

/* ---- Assistente (client-side, sem API) ---- */
.chat-root { position: relative; z-index: 40; }
.chat-fab {
  position: fixed; right: 22px; bottom: 88px; z-index: 42;
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: var(--ink); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.chat-fab:hover { transform: scale(1.05); background: #000; }
.chat-fab:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.chat-fab-close { display: none; }
.chat-root.is-open .chat-fab-open { display: none; }
.chat-root.is-open .chat-fab-close { display: block; }

.chat-panel {
  position: fixed; right: 22px; bottom: 156px; z-index: 41;
  width: min(392px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 200px));
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,.18), 0 0 0 1px var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatIn .28s var(--ease);
}
.chat-panel[hidden] { display: none !important; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.chat-kicker { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.chat-head h2 { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.03em; }
.chat-x {
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: var(--bg-alt); color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
}
.chat-x:hover { background: #e8e8ed; }

.chat-log { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 100%; }
.chat-msg > p { margin: 0; font-size: .95rem; line-height: 1.4; }
.chat-msg.bot > p {
  background: var(--bg-alt); color: var(--ink);
  padding: 12px 14px; border-radius: 18px 18px 18px 6px;
}
.chat-msg.user { align-self: flex-end; max-width: 85%; }
.chat-msg.user > p {
  background: var(--ink); color: #fff;
  padding: 12px 14px; border-radius: 18px 18px 6px 18px;
}
.chat-cards { display: grid; gap: 8px; margin-top: 10px; }
.chat-card {
  display: block; text-decoration: none;
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.chat-card:hover { border-color: rgba(0,113,227,.35); box-shadow: var(--shadow); }
.chat-card h3 { font-size: .98rem; font-weight: 650; letter-spacing: -0.02em; margin: 0 0 4px; }
.chat-card p { font-size: .82rem; color: var(--muted); margin: 0 0 8px; line-height: 1.35; }
.chat-card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chat-card .badge { font-size: .65rem; }
.chat-card-go { margin-left: auto; font-size: .8rem; font-weight: 500; color: var(--blue); }

.chat-guide {
  display: inline-flex; margin-top: 10px; font-size: .88rem; font-weight: 500;
  color: var(--blue); text-decoration: none;
}
.chat-guide:hover { text-decoration: underline; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat-chips[hidden] { display: none !important; }
.chat-chip {
  font: inherit; font-size: .78rem; font-weight: 500;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 6px 11px; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.chat-chip:hover { background: var(--bg-alt); border-color: rgba(0,0,0,.16); }

.chat-form {
  display: flex; gap: 8px; padding: 10px 12px 14px;
  border-top: 1px solid var(--line); background: #fff;
}
.chat-form input {
  flex: 1; min-width: 0; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 14px; outline: 0; background: var(--bg-alt);
}
.chat-form input:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.15); }
.chat-form button {
  font: inherit; font-weight: 600; font-size: .88rem;
  border: 0; border-radius: 999px; padding: 0 16px;
  background: var(--blue); color: #fff; cursor: pointer;
}
.chat-form button:hover { background: var(--blue-hover); }

@media (max-width: 600px) {
  .chat-fab { right: 16px; bottom: 80px; }
  .chat-panel {
    right: 8px; left: 8px; bottom: 144px; width: auto;
    height: min(72vh, calc(100vh - 170px));
    border-radius: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel, .chat-fab { animation: none; transition: none; }
}

/* ===== Conversores (correm no navegador) ===== */
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hero-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #30b45a; box-shadow: 0 0 0 4px rgba(48,180,90,.18); }
.hero-pill span:last-child { color: var(--blue); font-size: 1.15em; line-height: 1; }

section.converters { padding: 80px max(22px, calc((100vw - 1080px) / 2)); background: #fff; }
.conv-hub-grid { padding-top: 24px !important; background: var(--bg-alt) !important; }
.conv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.conv-grid.compact { grid-template-columns: repeat(3, 1fr); }
.conv-hub-grid .conv-grid { grid-template-columns: repeat(3, 1fr); }
.conv-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: var(--bg-alt);
  border-radius: 22px; padding: 22px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.conv-hub-grid .conv-card { background: #fff; box-shadow: var(--shadow); }
.conv-card:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-hover); }
.conv-card.reveal.in:hover { transform: translateY(-4px); }
.conv-card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.conv-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.conv-formats { display: flex; flex-wrap: wrap; gap: 6px; }
.fmt { font-size: .7rem; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 6px; background: rgba(0,113,227,.09); color: var(--blue); }
.conv-all { margin-top: 24px; }
.conv-all a, .btn-link { color: var(--blue); text-decoration: none; font-weight: 500; }
.conv-all a:hover, .btn-link:hover { text-decoration: underline; }
.badge.own { background: rgba(48,180,90,.12); color: #1d8a3a; }

.conv-hub-hero { padding-bottom: 36px; }
.privacy-note {
  display: flex; align-items: center; gap: 10px; justify-content: center; text-align: left;
  max-width: 44em; margin: 22px auto 0; padding: 12px 18px; border-radius: 14px;
  background: rgba(48,180,90,.1); color: #17703a; font-size: .95rem; font-weight: 500;
}
.privacy-note svg { flex: none; }
.conv-hero { padding-bottom: 8px; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.conv-body { background: var(--bg-alt); padding: 8px max(18px, calc((100vw - 880px) / 2)) 96px; display: grid; gap: 28px; }
.conv-hub-grid + .conv-body { padding-top: 0; }

.conv { background: #fff; border-radius: 28px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.dz {
  border: 2px dashed rgba(0,0,0,.18); border-radius: 22px; padding: 34px 20px; text-align: center;
  display: grid; justify-items: center; gap: 8px; background: var(--bg-alt); cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.dz.over, .dz:hover { border-color: var(--blue); background: rgba(0,113,227,.05); }
.dz.has-files { padding: 20px; }
.dz-icon { color: var(--blue); }
.dz strong { font-size: 1.1rem; font-weight: 600; }
.dz-or { color: var(--muted); font-size: .85rem; }
.dz small { color: var(--muted); font-size: .8rem; }
.conv-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.btn {
  font: inherit; font-size: .98rem; font-weight: 500; border: 0; border-radius: 999px; cursor: pointer;
  padding: 11px 22px; transition: background .25s var(--ease), transform .2s var(--ease), opacity .2s;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--blue-hover); }
.btn.secondary { background: rgba(0,113,227,.1); color: var(--blue); }
.btn.secondary:hover { background: rgba(0,113,227,.16); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); }
.btn.small { padding: 6px 14px; font-size: .85rem; background: var(--blue); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(.98); }

.conv-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-items: end; }
.opt { display: grid; gap: 6px; }
.opt label { font-size: .8rem; font-weight: 500; color: var(--muted); }
.opt select, .opt input[type="number"] {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-alt); border: 1px solid transparent;
  border-radius: 12px; padding: 11px 12px; width: 100%; outline: 0;
}
.opt select:focus, .opt input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.opt output { color: var(--ink); font-weight: 600; }
.opt input[type="range"] { width: 100%; accent-color: var(--blue); height: 32px; }
.opt.disabled { opacity: .45; }
.opt-note { color: var(--muted); font-size: .88rem; }

.conv-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.conv-status { min-height: 1.3em; color: var(--muted); font-size: .92rem; }
.conv-errors { list-style: none; display: grid; gap: 6px; }
.conv-errors:empty { display: none; }
.conv-errors li { background: rgba(215,0,21,.07); color: #b0001a; padding: 10px 14px; border-radius: 12px; font-size: .9rem; }

.flist { list-style: none; display: grid; gap: 8px; }
.flist:empty { display: none; }
.f-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-alt); border-radius: 14px; }
.f-thumb, .f-icon { width: 44px; height: 44px; border-radius: 10px; flex: none; object-fit: cover; }
.f-icon { display: grid; place-items: center; background: rgba(0,113,227,.1); color: var(--blue); font-size: .72rem; font-weight: 700; }
.f-info { min-width: 0; flex: 1; display: grid; gap: 2px; }
.f-name { font-weight: 500; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-meta { font-size: .78rem; color: var(--muted); }
.f-prog { height: 4px; background: rgba(0,0,0,.08); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.f-prog[hidden] { display: none; }
.f-prog i { display: block; height: 100%; background: var(--blue); transition: width .2s linear; }
.f-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.f-out { font-size: .8rem; color: var(--green); font-weight: 500; white-space: nowrap; }
.f-err { font-size: .8rem; color: #b0001a; }
.f-error { background: rgba(215,0,21,.06); }
.icon-btn { font: inherit; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: var(--muted); cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.icon-btn:hover:not(:disabled) { color: var(--ink); }
.icon-btn:disabled { opacity: .3; cursor: default; }

.conv-result { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: rgba(48,180,90,.1); border-radius: 16px; padding: 16px 18px; }
.conv-result[hidden] { display: none; }
.res-info { display: grid; gap: 2px; }
.res-info span { color: var(--muted); font-size: .85rem; }
.conv-noscript { color: #b0001a; }

.conv-partner { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; background: #fff; border-radius: 22px; padding: 22px 26px; }
.conv-partner h2, .conv-more h2, .conv-faq h2 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.2; }
.conv-partner p { color: var(--muted); max-width: 38em; margin-top: 6px; font-size: .95rem; }
.conv-more h2, .conv-faq h2 { margin-bottom: 16px; }
.conv-more .conv-card { background: #fff; box-shadow: var(--shadow); }
.faq-item { background: #fff; border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); padding: 0 0 16px; }
.ad-slot:empty { display: none; }
.ad-slot { min-height: 0; }

@media (max-width: 960px) {
  .conv-grid, .conv-grid.compact, .conv-hub-grid .conv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  section.converters { padding: 56px 18px; }
  .conv-grid, .conv-grid.compact, .conv-hub-grid .conv-grid { grid-template-columns: 1fr; }
  .conv { padding: 16px; border-radius: 22px; }
  .dz { padding: 24px 14px; }
  .f-row { flex-wrap: wrap; }
  .f-actions { width: 100%; justify-content: flex-end; }
  .privacy-note { font-size: .88rem; text-align: left; }
  .conv-opts { grid-template-columns: 1fr 1fr; }
  .opt-quality { grid-column: 1 / -1; }
}
.conv[data-mode="audio"] .conv-opts, .conv[data-mode="img2pdf"] .conv-opts { grid-template-columns: 1fr; }
@media (min-width: 601px) {
  .conv[data-mode="audio"] .conv-opts, .conv[data-mode="img2pdf"] .conv-opts { grid-template-columns: repeat(2, 1fr); }
}
.btn.primary:disabled { background: var(--blue); }

@media (max-width: 400px) {
  .logo { gap: 0.4rem; font-size: 0.95rem; }
  .logo-mark { width: 26px; height: 26px; }
}
