/* Subconjunto estático das classes Tailwind usadas no layout.
   Pode ser substituído pela saída do Tailwind CLI sem reescrever o HTML. */

:root {
  --ink: #1c1917;
  --muted: #675f58;
  --paper: #f3efe7;
  --surface: #fffdf9;
  --line: #e6dfd4;
  --accent: #0c6b66;
  --accent-dark: #084e4b;
  --accent-soft: #e5f4f2;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
p, ul, ol { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.25; }

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

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  background: #fff;
  color: var(--accent);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip-link:focus { top: 0.75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(255 253 249 / 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.header-navs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}

.header-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.header-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.header-legal a[aria-current="page"],
.header-legal a:hover { color: var(--accent); }

.nav-list { list-style: none; padding: 0; }

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  color: #44403c;
  text-decoration: none;
}

.nav-list a[aria-current="page"],
.nav-list a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid #2a2420;
  background: #1c1917;
  color: #f3efe7;
  margin-top: auto;
}

.site-footer a { color: #d7f3f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1.5rem 1.25rem;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0.35rem 0; }
.footer-title {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-grid .footer-title + .footer-title,
.footer-grid ul + .footer-title { margin-top: 1.25rem; }
.footer-note {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #3a332e;
  color: #d6cdc3;
  font-size: 0.875rem;
}
.footer-note a { margin-left: 0.35rem; }

.page-intro { margin-bottom: 1.5rem; }

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top right, rgb(12 107 102 / 0.12), transparent 42%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 16px 40px rgb(28 25 23 / 0.06);
}

.hero .lead { margin-bottom: 1rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 1.1rem 1.15rem;
  background: var(--accent-soft);
  border-radius: 1rem;
}

.hero-facts li {
  margin: 0;
  padding: 0.7rem 0;
  border-top: 1px solid rgb(12 107 102 / 0.14);
  color: #24312f;
}

.hero-facts li:first-child { border-top: 0; padding-top: 0; }
.hero-facts li:last-child { padding-bottom: 0; }

.home-intro { margin-bottom: 1.25rem; }
.home-intro .lead { margin: 0.5rem 0 0; }

.home-drop { margin-bottom: 1.5rem; }

.home-next-title {
  margin: 1rem 0 0.75rem;
  font-weight: 600;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#home-next[hidden],
#home-resize[hidden],
#home-quality[hidden] {
  display: none;
}

.task-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.task {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 5.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.04);
}

.task strong {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.task span { color: var(--muted); }

.task-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #f4f0e6;
}

.task-primary span { color: rgb(244 240 230 / 0.82); }

.task:hover,
.task:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.task-primary:hover,
.task-primary:focus-visible { border-color: var(--accent-dark); }

.showcase {
  margin-top: 2.25rem;
  padding: 1.35rem 1.2rem 1.2rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgb(255 255 255 / 0.14), transparent 38%),
    var(--accent-dark);
  color: #f4f0e6;
}

.showcase-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  margin: 0 0 1.15rem;
  font-size: inherit;
  font-weight: inherit;
}

.showcase-kicker {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.showcase-title {
  max-width: 28rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgb(244 240 230 / 0.82);
}

.showcase-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.promo-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
  padding: 0.9rem 0.9rem 0.75rem;
  border-radius: 1rem;
  background: var(--surface);
  color: var(--ink);
}

.promo-go {
  text-decoration: none;
  color: inherit;
}

.promo-go strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.promo-go span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.promo-go:hover strong,
.promo-go:focus-visible strong { color: var(--accent-dark); }

.promo-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: auto 0 0;
  padding: 0;
}

.promo-sources a {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.promo-sources a:hover,
.promo-sources a:focus-visible {
  background: var(--accent);
  color: #f4f0e6;
}

.home-block { margin-top: 2.25rem; }

.home .converter-group { margin-top: 1.25rem; }
.home .converter-group > h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}
.home .choice-compact { padding: 0.8rem 1rem; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
}

.legal-links a {
  color: var(--accent);
  font-weight: 600;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.8fr);
    align-items: end;
    padding: 2rem;
  }
}

.lead {
  color: #57534e;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 42rem;
}

.breadcrumb { margin-bottom: 0.75rem; color: #57534e; }
.breadcrumb a { color: var(--accent); }

.card-grid { list-style: none; padding: 0; }

a.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.05);
}

a.card:hover { border-color: var(--accent); }

.tool-card,
.note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgb(28 25 23 / 0.05);
}

.note-card ul { margin: 0.75rem 0 0; padding-left: 1.1rem; }

.dropzone {
  border: 2px dashed #c9dcd9;
  border-radius: 1.25rem;
  min-height: 13rem;
  padding: 1.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  background:
    radial-gradient(circle at top, rgb(12 107 102 / 0.08), transparent 55%),
    var(--surface);
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.25rem;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.dropzone-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}

.controls {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.control { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; }

.control input[type="range"] { width: 100%; accent-color: var(--accent); }

.control input[type="number"] {
  min-height: 44px;
  border: 1px solid #d6d3d1;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  font-weight: 400;
}

.file-list,
.results {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.file-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.file-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #e7e5e4;
}

.file-meta p { overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .file-item { grid-template-columns: 64px minmax(0, 1fr); }
  .file-item .btn { grid-column: 1 / -1; }
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.compare-shot {
  margin: 0;
  min-width: 0;
}

.compare-shot img,
.compare-missing {
  width: 100%;
  height: 240px;
  object-fit: contain;
  border-radius: 0.5rem;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e7e5e4 25%, transparent 25%),
    linear-gradient(-45deg, #e7e5e4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e7e5e4 75%),
    linear-gradient(-45deg, transparent 75%, #e7e5e4 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.compare-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.compare-shot figcaption {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.result-warn {
  color: #9a3412;
  font-weight: 600;
}

@media (min-width: 800px) {
  .compare { grid-template-columns: 1fr 1fr; }
  .compare-shot img,
  .compare-missing { height: 380px; }
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  grid-column: 1 / -1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover { background: var(--accent-dark); }

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover { background: var(--accent-soft); }

.alert {
  background: #fef2f2;
  color: #991b1b;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.progress-track {
  height: 0.5rem;
  background: #e7e5e4;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
}

.prose { max-width: 42rem; margin-top: 2.5rem; }
.prose h2 { font-size: 1.5rem; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.125rem; margin: 1.25rem 0 0.5rem; }
.prose p, .prose li { color: #44403c; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose + .prose { margin-top: 2rem; }
.steps { list-style: decimal; }
.steps h3 { margin-bottom: 0.25rem; }

.faq details { border-top: 1px solid #e7e5e4; padding: 0.35rem 0; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.ad-slot.is-empty { min-height: 0; }
.ad-slot.is-ready.ad-slot-top,
.ad-slot.is-ready.ad-slot-after { min-height: 90px; }
.ad-slot.is-ready.ad-slot-sidebar { min-height: 250px; }
.ad-reserve,
.adsbygoogle { display: block; min-height: inherit; }

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}

.quick-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}

.quick-steps li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.35rem 0.8rem 0.35rem 0.35rem;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 9999px;
  font-weight: 600;
}

.quick-steps span {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
}

.pair {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 700;
}

.pair-lg { margin: 0 0 0.5rem; letter-spacing: 0.04em; }
.pair-arrow { color: #78716c; font-weight: 500; }

.choice-grid {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.choice {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 44px;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.04);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.choice:hover,
.choice:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgb(28 25 23 / 0.08);
}
.choice:focus-visible,
.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.format-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.chip {
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--surface);
  color: #44403c;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.choice-summary { color: #57534e; font-size: 0.875rem; font-weight: 400; }
.choice-compact { justify-content: center; }

.converter-group { margin-top: 2rem; scroll-margin-top: 5.5rem; }
.converter-group > p { max-width: 42rem; }

.alert { margin-top: 1rem; }

@media (min-width: 640px) {
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  .task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase { padding: 1.6rem 1.5rem 1.35rem; }
}

@media (min-width: 960px) {
  .home .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .showcase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .showcase-kicker { font-size: 2.5rem; }
}

.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.m-0 { margin: 0; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.tracking-tight { letter-spacing: -0.025em; }
.bg-stone-100 { background: var(--paper); }
.text-stone-900 { color: #1c1917; }
.text-stone-600 { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 640px) {
  .file-item { grid-template-columns: 72px minmax(0, 1fr) auto; }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls { grid-template-columns: minmax(0, 20rem); }
  .controls:has(.control:nth-child(2)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .controls { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .controls:has(.preset-row) {
    grid-template-columns: 1fr 1fr;
    max-width: 42rem;
  }

  .controls:has(.preset-row) > .preset-row,
  .controls:has(.preset-row) > .control:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-\[minmax\(0\,1fr\)_18rem\] {
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: start;
  }
}
