/* FBviddl — Clean, Fast, Mobile-First Stylesheet
 * Palette: 60% white/slate-50 canvas, 30% hairline borders & slate typography, 10% #1877F2 accent
 */

:root {
  --brand: #1877f2;
  --brand-hover: #1464cc;
  --brand-soft: #eff6ff;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-muted: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #991b1b;
  --warning-icon: #d97706;
  --success-text: #047857;
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out),
    color 150ms var(--ease-out), opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}

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

.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;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-prose {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container,
  .container-narrow,
  .container-prose {
    padding: 0 16px;
  }
}

/* Header — Strict 3-Zone Top Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--text);
  border-bottom-color: var(--border-strong);
}

.nav-link.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.btn-header:hover {
  background: var(--border);
  color: var(--text);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--surface-muted);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 12px 16px 16px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.mobile-nav a:hover {
  background: var(--surface);
  color: var(--text);
}

.mobile-nav a.active {
  background: var(--brand-soft);
  color: var(--brand);
}

@media (max-width: 1024px) {
  .primary-nav,
  .btn-header {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

/* Breadcrumb */
.breadcrumb {
  padding-top: 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 500;
}

/* Hero & Downloader Card */
.hero-section {
  padding: 40px 0 48px;
}

.hero-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero-desc {
  margin-top: 14px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (max-width: 640px) {
  .tool-card {
    padding: 16px;
  }
}

/* Segmented Tool Tabs */
.tool-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.tool-tabs.five-cols {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .tool-tabs,
  .tool-tabs.five-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tool-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  min-height: 42px;
}

.tool-tab:hover {
  color: var(--text);
}

.tool-tab.active,
.tool-tab[aria-selected="true"] {
  background: var(--bg);
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.tool-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* URL Input Row */
.url-form-row {
  display: flex;
  gap: 10px;
}

@media (max-width: 640px) {
  .url-form-row {
    flex-direction: column;
  }
}

.url-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.url-input {
  width: 100%;
  height: 52px;
  padding: 0 108px 0 16px;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
}

.url-input::placeholder {
  color: #94a3b8;
}

.url-input:focus {
  background: var(--bg);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.16);
  outline: none;
}

.input-inline-actions {
  position: absolute;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.btn-inline:hover {
  background: var(--surface);
  color: var(--text);
}

.btn-inline svg {
  width: 14px;
  height: 14px;
}

.btn-primary {
  height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-hover);
}

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

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-download {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.btn-download:hover:not(:disabled) {
  background: var(--brand-hover);
}

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

.btn-download.full-width {
  width: 100%;
}

.btn-secondary {
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--border);
}

.detected-hint {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.detected-hint strong {
  color: var(--text);
  font-weight: 600;
}

.inline-status-note {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.alert-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-box svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Supported formats line (clean unboxed metadata) */
.supported-formats {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-muted);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.supported-formats .label {
  font-weight: 600;
  color: var(--text-secondary);
}

.supported-formats code {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.supported-formats .sep {
  color: var(--border-strong);
}

/* Loading & Result Panels */
.result-region {
  margin-top: 24px;
}

.loading-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.loading-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.error-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.error-card .error-icon {
  color: var(--warning-icon);
  flex-shrink: 0;
  margin-top: 2px;
}

.error-card h2 {
  font-size: 1rem;
  font-weight: 700;
}

.error-card p {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.error-card .meta-note {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Video & Profile Result Split Card */
.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.result-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
}

@media (max-width: 768px) {
  .result-split {
    grid-template-columns: 1fr;
  }
}

.media-stage-video {
  background: #020617;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-stage-video video,
.media-stage-video img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

.media-stage-dp {
  background: var(--surface-muted);
  padding: 24px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-stage-dp img {
  width: 240px;
  height: 240px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg);
}

.media-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
  color: #94a3b8;
  font-size: 0.75rem;
  text-align: center;
}

.result-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.result-kicker {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-title {
  margin-top: 6px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.stream-list {
  margin-top: 18px;
  border-top: 1px solid var(--surface-muted);
  border-bottom: 1px solid var(--surface-muted);
}

.stream-row {
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stream-row + .stream-row {
  border-top: 1px solid var(--surface-muted);
}

@media (max-width: 540px) {
  .stream-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.stream-quality {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.stream-meta {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stream-meta .fmt {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.dl-feedback {
  margin-top: 6px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dl-feedback.success {
  color: var(--success-text);
}

.dl-feedback.error {
  color: var(--danger-text);
}

.spec-grid {
  margin: 18px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--surface-muted);
  border-bottom: 1px solid var(--surface-muted);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.spec-grid dt {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.spec-grid dd {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
}

.source-link:hover {
  color: var(--brand);
}

/* Image Grid Result */
.image-result-wrap {
  padding: 24px;
}

.image-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--surface-muted);
  margin-bottom: 20px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.image-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.image-tile-preview {
  aspect-ratio: 4 / 3;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-tile-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-tile-footer {
  padding: 16px;
  border-top: 1px solid var(--surface-muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Editorial Content Sections */
.content-sections {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

@media (max-width: 640px) {
  .content-sections {
    padding: 0 16px;
    gap: 40px;
  }
}

.section-divider {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.section-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Tools Directory Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.tool-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.tool-link-card:hover {
  border-color: rgba(24, 119, 242, 0.5);
}

.tool-link-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.tool-link-card:hover h3 {
  color: var(--brand);
}

.tool-link-card p {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.tool-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}

/* Steps List */
.steps-grid {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand);
}

.step-title {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.step-desc {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Guide + Compliance Callout */
.guide-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: start;
}

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

.guide-copy p {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.compliance-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.compliance-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compliance-header svg {
  color: var(--brand);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.compliance-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.compliance-box p {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.compliance-links {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.compliance-links a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.compliance-links a:hover {
  color: var(--brand);
}

/* FAQ Accordion */
.faq-list {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.faq-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 150ms var(--ease-out);
}

.faq-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-panel {
  padding: 0 24px 18px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Static / Prose Pages */
.prose-article {
  padding: 24px 0 48px;
}

.prose-header {
  margin-top: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.prose-header h1 {
  font-size: clamp(1.875rem, 3.5vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.prose-header p {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.prose-body {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.prose-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.prose-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact Form */
.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  background: var(--bg);
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.14);
}

.contact-success {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.contact-success h2 {
  font-size: 1.0625rem;
  color: var(--success-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-success p {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* 404 Page */
.not-found-box {
  padding: 80px 16px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.not-found-code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}

.not-found-box h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
}

.not-found-box p {
  margin-top: 12px;
  color: var(--text-secondary);
}

.not-found-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-desc {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 380px;
}

.footer-disclaimer {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 440px;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom-links a:hover {
  color: var(--text);
}

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

/* Homepage design adapted from the Pinviddl reference */
.home-page {
  background:
    radial-gradient(ellipse 78% 430px at 50% 7%, rgba(218, 235, 255, 0.72), transparent 100%),
    radial-gradient(ellipse 58% 480px at 7% 48%, rgba(232, 243, 255, 0.62), transparent 100%),
    radial-gradient(ellipse 64% 520px at 94% 78%, rgba(225, 239, 255, 0.58), transparent 100%),
    var(--bg);
}

.home-page .header-inner { height: 62px; gap: 18px; }
.home-page .brand-link { gap: 8px; font-size: 1.18rem; }
.home-page .brand-logo { width: 34px; height: 34px; }
.home-page .primary-nav { gap: 16px; }
.home-page .nav-link { color: #172033; font-size: 0.78rem; }
.home-page .nav-link.active { color: var(--brand); }
.home-page .btn-header { padding: 7px 10px; border: 1px solid var(--border); background: #fff; color: var(--text-muted); font-size: 0.75rem; }
.home-page .hero-section { padding: 50px 0 35px; border-bottom: 1px solid #dce8f7; }
.home-page .hero-header { max-width: 100%; margin: 0 auto 28px; }
.home-page .hero-title { font-size: clamp(2.4rem, 4.5vw, 3.25rem); letter-spacing: -0.05em; }
.home-page .hero-accent,.home-page .home-accent { color: var(--brand); }
.home-page .hero-accent { margin-right: 0.12em; }
.home-page .hero-desc { max-width: 930px; margin: 12px auto 0; color: #56647c; font-size: 1.1rem; line-height: 1.55; }
.home-page .tool-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.home-page .tool-tabs { display: none; }
.home-page .url-form-row { gap: 12px; }
.home-page .url-input { height: 60px; border-color: #d7dfea; border-radius: 16px; background: #fff; box-shadow: 0 3px 8px rgba(15,23,42,.06); font-family: var(--font-sans); font-size: 0.95rem; }
.home-page .btn-primary { min-width: 150px; height: 60px; border-radius: 15px; box-shadow: 0 5px 14px rgba(24,119,242,.2); }
.home-page .supported-formats { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 0; border: 0; color: #59667f; font-size: 0.78rem; }
.home-page .hero-usage-note { line-height: 1.5; }
.home-page .hero-format-types { flex: 0 0 auto; white-space: nowrap; }
.home-page .hero-format-types span { padding: 0 5px; color: #aab5c4; }
.home-page .home-content { max-width: 1200px; gap: 58px; padding: 58px 28px 0; }
.home-page .home-section-heading { display: block; margin-bottom: 24px; text-align: center; }
.home-page .section-title { font-size: clamp(1.7rem, 2.5vw, 2.15rem); letter-spacing: -0.04em; }
.home-page .section-meta { margin-top: 4px; color: #58657b; font-size: 1rem; }
.home-page .home-steps-grid { gap: 30px; margin-top: 48px; }
.home-page .home-steps-grid li { position: relative; min-height: 325px; padding: 52px 23px 20px; overflow: visible; border: 2px solid #dce9f8; border-radius: 24px; background: #fff; box-shadow: 0 14px 28px rgba(24,119,242,.045); text-align: center; }
.home-page .home-steps-grid li:not(:last-child)::after { position: absolute; top: 47%; right: -24px; z-index: 1; color: var(--brand); content: "→"; font-size: 1.45rem; }
.home-page .home-steps-grid .step-number { position: absolute; top: -30px; left: 50%; display: grid; width: 70px; height: 70px; place-items: center; transform: translateX(-50%); border: 7px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 8px 20px rgba(24,119,242,.13); color: #8a94a5; font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; }
.home-page .home-steps-grid .step-title { margin-top: 0; font-size: 1.12rem; }
.home-page .home-steps-grid .step-desc { max-width: 280px; min-height: 48px; margin: 7px auto 0; color: #59667f; font-size: 0.95rem; line-height: 1.5; }
.home-page .step-visual { display: grid; height: 112px; max-width: 230px; place-items: center; margin: 18px auto 0; overflow: hidden; border-radius: 16px; background: linear-gradient(140deg,#f4f8ff,#e9f3ff); }
.home-page .mock-window { position: relative; width: 88%; height: 76px; overflow: visible; border-radius: 12px; background: #fff; box-shadow: 0 6px 14px rgba(22,46,82,.16); transform: rotate(-2deg); }
.home-page .mock-window-top { display: flex; height: 18px; align-items: center; gap: 4px; padding: 0 8px; border-radius: 12px 12px 0 0; background: #1e293b; }
.home-page .mock-window-top i { width: 6px; height: 6px; border-radius: 50%; background: #4c9aff; }
.home-page .mock-window-top i:first-child { background: #f87171; }
.home-page .mock-window-top i:nth-child(2) { background: #fbbf24; }
.home-page .mock-address { margin: 8px 9px; padding: 5px 7px; border: 1px solid #dce6f3; border-radius: 6px; color: #5b6678; font-size: .58rem; white-space: nowrap; }
.home-page .mock-address span { color: var(--brand); }
.home-page .mock-copy { position: absolute; right: 8px; bottom: -5px; padding: 5px 9px; border-radius: 7px; background: #26344a; box-shadow: 0 3px 7px #b6c9e2; color: #fff; font-size: .6rem; }
.home-page .mock-download { width: 70%; padding: 7px; border: 1px solid #dbe6f4; border-radius: 10px; background: #fff; box-shadow: 0 6px 14px rgba(22,46,82,.13); }
.home-page .mock-download-brand { display: flex; align-items: center; gap: 5px; color: #16243a; font-size: .6rem; font-weight: 700; }
.home-page .mock-download-brand span { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 5px; background: var(--brand); color: #fff; font-size: .7rem; }
.home-page .mock-download-brand b { margin-left: auto; color: #8b98aa; }
.home-page .mock-download-input { margin: 6px 0; padding: 5px 6px; border: 1px solid #dce6f3; border-radius: 6px; color: #707c8e; font-size: .53rem; }
.home-page .mock-download-button { padding: 5px; border-radius: 6px; background: var(--brand); color: #fff; font-size: .58rem; font-weight: 700; }
.home-page .mock-file { position: relative; width: 88px; padding: 7px; border-radius: 13px; background: #fff; box-shadow: 0 6px 15px rgba(22,46,82,.15); color: #536176; font-size: .53rem; text-align: center; }
.home-page .mock-landscape { display: grid; height: 48px; place-items: center; margin-bottom: 5px; border-radius: 8px; background: linear-gradient(140deg,#cce4ff,#73b8f0 55%,#89c99b 56%,#55a779); color: #fff; font-size: 1rem; }
.home-page .mock-save-check { position: absolute; top: 26px; right: -13px; display: grid; width: 27px; height: 27px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #17ae71; color: white; font-size: 1rem; font-weight: 800; }
.home-page .expect-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.home-page .expect-card { min-height: 200px; padding: 24px 16px 20px; border: 1px solid #e0e5ed; border-radius: 17px; background: #fff; box-shadow: 0 3px 8px rgba(15,23,42,.035); text-align: center; }
.home-page .expect-icon { display: grid; width: 38px; height: 38px; place-items: center; margin: 0 auto 12px; color: var(--brand); font-size: 1.55rem; font-weight: 700; }
.home-page .expect-card h3 { font-size: .95rem; line-height: 1.35; }
.home-page .expect-card p { margin-top: 7px; color: #59667f; font-size: .82rem; line-height: 1.5; }
.home-page .home-tools-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.home-page .download-choice-card { display: flex; min-height: 190px; align-items: center; gap: 9px; padding: 18px 14px; border: 1px solid #dce8f6; border-radius: 17px; background: #fff; box-shadow: 0 3px 10px rgba(15,23,42,.025); }
.home-page .download-choice-card:hover { border-color: #a9cbf6; box-shadow: 0 8px 22px rgba(24,119,242,.09); }
.home-page .choice-copy { min-width: 0; flex: 1; }
.home-page .choice-copy h3 { font-size: .98rem; line-height: 1.3; }
.home-page .choice-copy p { margin-top: 7px; color: #59667f; font-size: .8rem; line-height: 1.45; }
.home-page .download-choice-card .tool-link-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--brand); font-size: .75rem; font-weight: 600; line-height: 1.35; }
.home-page .choice-art { display: grid; width: 72px; flex: 0 0 72px; place-items: center; }
.home-page .choice-art svg { width: 100%; height: auto; filter: drop-shadow(0 4px 5px rgba(32,90,160,.12)); }
.home-page .choice-video { border-color: #d8e6f6; }
.home-page .choice-reels { border-color: #dce5fb; }
.home-page .choice-image { border-color: #d6eee2; }
.home-page .choice-profile { border-color: #dbe6f5; }
.home-page .home-save-info .home-section-heading { margin-bottom: 23px; }
.home-page .save-info-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.home-page .link-type-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.home-page .save-info-grid article { padding: 22px 20px; border: 1px solid #e0e5ed; border-radius: 17px; background: #fff; }
.home-page .save-info-grid h3 { font-size: 1.05rem; }
.home-page .save-info-grid p { margin-top: 10px; color: #59667f; font-size: .94rem; line-height: 1.6; }
.home-page .save-info-grid a { display: inline-block; margin-top: 13px; color: var(--brand); font-size: .88rem; font-weight: 700; }
.home-page .save-info-note { margin: 20px auto 0; max-width: 1040px; color: #59667f; font-size: .9rem; line-height: 1.6; text-align: center; }
.home-page .home-tips { max-width: 950px; margin: 0 auto; }
.home-page .home-tips .section-title { margin-bottom: 24px; }
.home-page .tip-copy h3 { margin-top: 21px; font-size: 1.1rem; }
.home-page .tip-copy h3:first-child { margin-top: 0; }
.home-page .tip-copy p { margin-top: 7px; color: #59667f; font-size: .98rem; line-height: 1.65; }
.home-page .home-faq { max-width: 1000px; width: 100%; margin: 0 auto; }
.home-page .home-faq .home-section-heading { margin-bottom: 30px; }
.home-page .home-faq .faq-list { margin-top: 0; }
.home-page .home-faq .faq-trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; border: 0; background: transparent; color: var(--text); font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; text-align: left; cursor: pointer; }
.home-page .home-faq .faq-symbol { color: var(--brand); font-family: var(--font-sans); font-size: 1.35rem; }
.home-page .home-faq .faq-panel { padding: 0 32px 19px 0; color: #59667f; font-size: .98rem; line-height: 1.65; }
.home-page .site-footer { margin-top: 0; padding: 38px 0 24px; border-top: 1px solid #dce5ef; background: #fff; }
.home-page .footer-grid { gap: 38px; padding-bottom: 26px; }
.home-page .footer-desc { margin-top: 10px; font-size: .84rem; }
.home-page .footer-disclaimer { display: block; width: 100%; max-width: none; margin: 18px 0 0; padding-top: 15px; border-top: 1px solid var(--border); color: #59667f; font-size: .76rem; line-height: 1.5; }
.home-page .footer-heading { margin-bottom: 9px; }
.home-page .footer-links { gap: 5px; font-size: .84rem; }
.home-page .footer-bottom { padding-top: 14px; }

@media (min-width: 961px) {
  .home-page .primary-nav,.home-page .btn-header { display: flex; }
  .home-page .menu-toggle { display: none; }
}
@media (max-width: 960px) {
  .home-page .primary-nav,.home-page .btn-header { display: none; }
  .home-page .menu-toggle { display: inline-flex; }
  .home-page .expect-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .home-page .home-tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .home-page .home-steps-grid { grid-template-columns: 1fr; gap: 44px; }
  .home-page .home-steps-grid li { min-height: 300px; }
  .home-page .home-steps-grid li:not(:last-child)::after { top: auto; right: auto; bottom: -37px; left: 50%; content: "↓"; transform: translateX(-50%); }
  .home-page .save-info-grid { grid-template-columns: 1fr; }
  .home-page .link-type-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .home-page .hero-section { padding: 34px 0 25px; }
  .home-page .hero-title { font-size: 2.2rem; }
  .facebook-video-downloader-page .hero-title { font-size: clamp(1.125rem, 6.25vw, 2.2rem); letter-spacing: -0.055em; white-space: nowrap; }
  .facebook-image-downloader-page .hero-title { font-size: clamp(1.125rem, 6.25vw, 2.2rem); letter-spacing: -0.055em; white-space: nowrap; }
  .facebook-reels-downloader-page .hero-title { font-size: clamp(1.125rem, 6.25vw, 2.2rem); letter-spacing: -0.055em; white-space: nowrap; }
  .home-page .hero-desc { font-size: .98rem; }
  .home-page .supported-formats { align-items: flex-start; flex-direction: column; gap: 4px; }
  .home-page .home-content { gap: 43px; padding: 42px 16px 0; }
  .home-page .link-type-grid { grid-template-columns: 1fr; }
  .home-page .home-section-heading { margin-bottom: 20px; }
  .home-page .home-steps-grid { margin-top: 42px; }
  .home-page .expect-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .home-page .expect-card { min-height: 175px; padding: 18px 12px; }
  .home-page .home-tools-grid { gap: 10px; }
  .home-page .download-choice-card { min-height: 190px; flex-direction: column-reverse; align-items: flex-start; justify-content: space-between; padding: 14px; }
  .home-page .choice-art { width: 58px; flex-basis: 48px; align-self: flex-end; }
  .home-page .choice-copy h3 { font-size: .93rem; }
  .home-page .choice-copy p { font-size: .78rem; }
  .home-page .download-choice-card .tool-link-cta { font-size: .72rem; }
  .home-page .save-info-grid article { padding: 19px 16px; }
  .home-page .home-tips .section-title { font-size: 1.5rem; }
  .home-page .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .home-page .footer-grid > div:first-child { grid-column: 1 / -1; }
  .home-page .footer-disclaimer { margin-top: 15px; }
}
@media (max-width: 420px) {
  .home-page .home-tools-grid { grid-template-columns: 1fr; }
  .home-page .download-choice-card { min-height: 165px; flex-direction: row; align-items: center; }
  .home-page .choice-art { width: 72px; flex-basis: 72px; }
  .home-page .choice-copy h3 { font-size: 1rem; }
}

/* Keep the dedicated Facebook tools in the same visual system as the homepage. */
.downloader-page .breadcrumb { display: none; }
.downloader-page .content-sections { max-width: 1200px; gap: 58px; padding: 58px 28px 0; }
.downloader-page .content-sections > .section-divider { padding-top: 0; border-top: 0; }
.downloader-page .content-sections > .section-divider > .section-title { margin-bottom: 24px; text-align: center; }
.downloader-page .content-sections .steps-grid { gap: 20px; margin-top: 42px; }
.downloader-page .content-sections .steps-grid li { position: relative; min-height: 190px; padding: 44px 20px 22px; border: 1px solid #dce8f6; border-radius: 18px; background: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .035); text-align: center; }
.downloader-page .content-sections .step-number { position: absolute; top: -22px; left: 50%; display: grid; width: 48px; height: 48px; place-items: center; transform: translateX(-50%); border: 5px solid #fff; border-radius: 50%; background: #e4f0ff; color: #1877f2; font-size: 1rem; font-weight: 800; }
.downloader-page .content-sections .step-title { margin-top: 0; font-size: 1rem; }
.downloader-page .content-sections .step-desc { color: #59667f; line-height: 1.5; }
.downloader-page .content-sections .guide-grid { padding: 26px; border-radius: 20px; background: rgba(239, 246, 255, .66); }
.downloader-page .content-sections .guide-grid > div { min-width: 0; }
.downloader-page .content-sections .guide-grid .section-title { margin-bottom: 14px; }
.downloader-page .content-sections .faq-item { margin-top: 10px; padding: 0 18px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.downloader-page .content-sections .faq-item + .faq-item { margin-top: 10px; }
.downloader-page .content-sections .faq-trigger { padding: 17px 0; }
.downloader-page .content-sections .faq-panel { padding: 0 0 17px; color: #59667f; }
.downloader-page .content-sections .tool-link-card { border-color: #dce8f6; border-radius: 17px; box-shadow: 0 3px 10px rgba(15, 23, 42, .025); }
.downloader-page .content-sections .tool-link-card:hover { border-color: #a9cbf6; box-shadow: 0 8px 22px rgba(24, 119, 242, .09); }

/* Keep downloader guides readable, with the homepage-style illustrated steps. */
.simple-tool-page .video-format-list,
.simple-tool-page .video-troubleshooting-list {
  display: grid;
  max-width: 900px;
  gap: 13px;
  margin: 26px auto 0;
  padding-left: 24px;
  color: #46536a;
  font-size: .98rem;
  line-height: 1.65;
}
.simple-tool-page .video-format-list li,
.simple-tool-page .video-troubleshooting-list li { padding: 0 0 12px; border-bottom: 1px solid #e5eaf2; }
.simple-tool-page .video-format-list code { overflow-wrap: anywhere; }
.simple-tool-page .video-format-note { max-width: 900px; margin: 18px auto 0; color: #59667f; text-align: center; }
.simple-tool-page .content-sections .video-steps-grid { gap: 30px; margin-top: 46px; }
.simple-tool-page .content-sections .video-steps-grid li {
  position: relative;
  min-height: 325px;
  padding: 52px 23px 20px;
  overflow: visible;
  border: 2px solid #dce9f8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(24,119,242,.045);
  text-align: center;
}
.simple-tool-page .content-sections .video-steps-grid .step-number {
  position: absolute;
  top: -30px;
  left: 50%;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  transform: translateX(-50%);
  border: 7px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px rgba(24,119,242,.13);
  color: #1877f2;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
}
.simple-tool-page .content-sections .video-steps-grid .step-title { margin: 0; color: #0f172a; font-size: 1.08rem; }
.simple-tool-page .content-sections .video-steps-grid .step-desc { max-width: 280px; min-height: 48px; margin: 7px auto 0; color: #59667f; line-height: 1.5; }
.simple-tool-page .video-text-section { max-width: 960px; margin-right: auto; margin-left: auto; }
.simple-tool-page .video-text-section > p { max-width: 900px; margin: 11px auto 0; color: #59667f; font-size: .98rem; line-height: 1.7; }
.simple-tool-page .video-troubleshooting-list { counter-reset: none; }
.simple-tool-page .faq-list { border-top: 1px solid #e2e8f0; }
.simple-tool-page .content-sections .faq-item,
.simple-tool-page .content-sections .faq-item + .faq-item {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
}
.simple-tool-page .content-sections .faq-trigger { padding: 18px 0; }
.simple-tool-page .content-sections .faq-panel { padding: 0 32px 18px 0; }
.simple-tool-page .related-tool-links { color: #1877f2; text-align: center; }
.simple-tool-page .related-tool-links span { margin: 0 12px; color: #94a3b8; }
.home-page .mock-profile-card { position: relative; width: 94px; padding: 9px 7px 7px; border-radius: 13px; background: #fff; box-shadow: 0 6px 15px rgba(22,46,82,.15); color: #536176; font-size: .53rem; text-align: center; }
.home-page .mock-profile-avatar { display: grid; width: 48px; height: 48px; place-items: center; margin: 0 auto 5px; border-radius: 50%; background: #dbeafe; color: #1877f2; }
.home-page .mock-profile-avatar svg { width: 31px; height: 31px; fill: currentColor; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.home-page .mock-audio-art { display: grid; height: 48px; place-items: center; margin-bottom: 5px; border-radius: 8px; background: linear-gradient(135deg,#e2efff,#1877f2); color: #fff; font-size: 1.65rem; }
.audio-bitrate-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; border: 0; }
.audio-bitrate-options legend { width: 100%; margin-bottom: 9px; color: #334155; font-size: .9rem; font-weight: 700; text-align: center; }
.audio-bitrate-options label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #d8e2ef; border-radius: 999px; background: #fff; color: #475569; font-size: .85rem; cursor: pointer; }
.audio-bitrate-options label:has(input:checked) { border-color: #1877f2; background: #eff6ff; color: #1459b8; }
.audio-bitrate-options input { accent-color: #1877f2; }
.audio-form-hint { margin: 13px 0 0; color: #64748b; font-size: .82rem; line-height: 1.5; text-align: center; }
.local-audio-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 18px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; text-align: center; }
.local-audio-panel p { flex-basis: 100%; margin: 0; color: #526077; font-size: .87rem; line-height: 1.5; }
.local-audio-button { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 8px 13px; overflow: hidden; border: 1px solid #cbdcf2; border-radius: 9px; background: #fff; color: #176bd4; font-size: .84rem; font-weight: 700; cursor: pointer; }
.local-audio-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.local-audio-hint { color: #64748b; font-size: .77rem; }
.audio-progress-panel,.audio-result-card { max-width: 720px; margin: 22px auto 0; padding: 22px; border: 1px solid #dce8f6; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.045); }
.audio-progress-message { color: #475569; font-size: .95rem; }
.audio-progress-track { height: 9px; margin-top: 13px; overflow: hidden; border-radius: 999px; background: #e8eef7; }
.audio-progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2e89ff,#1265da); transition: width .2s ease; }
.audio-result-card h2 { margin: 0; color: #0f172a; font-size: 1.2rem; }
.audio-result-meta { margin: 6px 0 15px; color: #64748b; font-size: .88rem; }
.audio-result-player { display: block; width: 100%; margin: 0 0 15px; }
.audio-download-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border-radius: 10px; color: #fff; font-weight: 700; text-decoration: none; }

@media (max-width: 760px) {
  .simple-tool-page .content-sections .video-steps-grid li { min-height: 300px; }
}
@media (max-width: 640px) {
  .simple-tool-page .content-sections .video-steps-grid { margin-top: 42px; }
}

@media (max-width: 760px) {
  .downloader-page .content-sections { gap: 43px; padding: 42px 16px 0; }
  .downloader-page .content-sections .guide-grid { padding: 20px; }
}


/* Shared layout for About, legal, and not-found pages */
.info-page-main {
  min-height: 55vh;
  padding: 28px 0 8px;
  background: linear-gradient(180deg, rgba(232, 243, 255, 0.5) 0, rgba(255, 255, 255, 0) 340px);
}

.info-page-article {
  max-width: 896px;
  padding-top: 0;
}

.info-page-hero {
  margin-top: 18px;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f2f8ff 0%, #ffffff 72%);
  text-align: center;
}

.info-page-hero h1 {
  color: var(--text);
  line-height: 1.15;
}

.info-page-hero p {
  max-width: 680px;
  margin: 12px auto 0;
  line-height: 1.7;
}

.info-prose-card {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(15, 35, 75, 0.04);
}

.info-prose-card section + section {
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.info-prose-card p {
  line-height: 1.75;
}

.info-not-found {
  max-width: 896px;
  margin: 20px auto 0;
  padding: clamp(36px, 7vw, 72px) 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f2f8ff 0%, #ffffff 72%);
  box-shadow: 0 12px 32px rgba(15, 35, 75, 0.05);
}

@media (max-width: 640px) {
  .info-page-main { padding-top: 18px; }
  .info-page-article { padding-left: 16px; padding-right: 16px; }
  .info-prose-card { padding: 20px 18px; }
}
