/* Homepage-only styles */

.home-hero {
  padding-top: 4.5rem;
}

@media (max-width: 640px) {
  .home-hero {
    padding-top: 3rem;
  }
}

.format-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

html.dark .format-pill {
  border-color: #1e293b;
  background: #0f172a;
  color: #cbd5e1;
}

.tool-tile {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--card));
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tool-tile:hover {
  transform: translateY(-2px);
  border-color: hsl(var(--border) / 0.9);
  box-shadow: 0 24px 50px -38px rgba(15, 23, 42, 0.55);
}


/* Homepage converter */
.home-lede {
  max-width: 980px;
}

.home-converter-grid {
  align-items: stretch;
}

.home-setup-card {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.home-setup-card .tool-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.home-upload-note {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 20px;
  color: #64748b;
}

.home-setup-card .dropzone {
  flex: 0 0 auto;
}

.home-output {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.home-output-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.home-output-head strong {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.home-output-head span {
  font-size: 12px;
  color: #94a3b8;
}

.home-output-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-output-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.home-output-option:hover {
  border-color: #94a3b8;
}

.home-output-option.is-active {
  border-color: #0f172a;
  background: #f8fafc;
  box-shadow: 0 0 0 1px #0f172a;
}

.home-output-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.home-output-copy strong {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.home-output-copy span {
  overflow: hidden;
  font-size: 12px;
  line-height: 18px;
  color: #6b7280;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-output-ext {
  flex: 0 0 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.home-reverse {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.home-reverse a {
  font-weight: 600;
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-reverse .sep {
  margin: 0 6px;
  color: #cbd5e1;
}

.home-converter-privacy {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  line-height: 20px;
  color: #94a3b8;
}

html.dark .home-upload-note,
html.dark .home-output-copy span,
html.dark .home-reverse,
html.dark .home-converter-privacy {
  color: #94a3b8;
}

html.dark .home-output {
  border-color: #1e293b;
}

html.dark .home-output-option {
  border-color: #1e293b;
  background: #0f172a;
}

html.dark .home-output-option.is-active {
  border-color: #e2e8f0;
  background: #1e293b;
  box-shadow: 0 0 0 1px #e2e8f0;
}

html.dark .home-output-copy strong,
html.dark .home-output-head strong {
  color: #f8fafc;
}

html.dark .home-output-ext {
  color: #94a3b8;
}

html.dark .home-reverse a {
  color: #f8fafc;
}

@media (max-width: 1279px) {
  .home-setup-card {
    height: auto;
  }
}
