/* MOV to MP4 — minimal, no external fonts */
:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --surface-2: #243040;
  --border: #334155;
  --text: #e8eef4;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --ok: #22c55e;
  --err: #f87171;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --max: 40rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.wrap {
  width: min(100% - 2rem, 44rem);
  margin-inline: auto;
}

.site-header {
  padding: 1rem 0 0.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.trust {
  margin: 0.25rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero {
  padding: 1.75rem 0 1rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.dropzone {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dropzone:focus-visible {
  border-color: var(--accent);
}

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

.dropzone-inner {
  text-align: center;
  padding: 1.25rem 0.5rem;
}

.dropzone-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.dropzone-sub {
  margin: 0.5rem 0;
  color: var(--muted);
}

.dropzone-hint {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.dropzone-active {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hidden {
  display: none !important;
}

.file-name {
  margin: 0;
  font-weight: 600;
  word-break: break-all;
}

.file-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-wrap {
  display: grid;
  gap: 0.35rem;
}

.progress-bar {
  height: 0.55rem;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.2s ease;
}

.progress-label,
.status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.status.is-ok {
  color: var(--ok);
}

.error {
  margin: 0;
  color: var(--err);
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

.btn-secondary {
  background: var(--ok);
  color: #052e16;
}

.btn-secondary:hover {
  filter: brightness(1.05);
}

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

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
}

.section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.plain-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.plain-list li + li {
  margin-top: 0.4rem;
}

.plain-list strong {
  color: var(--text);
}

.steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.steps li + li {
  margin-top: 0.5rem;
}

.faq {
  margin: 0;
}

.faq dt {
  margin-top: 1rem;
  font-weight: 600;
}

.faq dt:first-child {
  margin-top: 0;
}

.faq dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.faq code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }
}

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

  .progress-fill {
    transition: none !important;
  }
}

/* Footer nav + content pages */
.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.site-footer .footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer .footer-nav a:hover,
.site-footer .footer-nav a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.site-footer .footer-note {
  margin: 0;
}

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

.brand a:hover,
.brand a:focus-visible {
  text-decoration: underline;
}

.prose {
  padding: 1.75rem 0 1rem;
}

.prose h1 {
  margin: 0 0 0.75rem;
}

.prose h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose p {
  margin: 0 0 0.9rem;
}

.prose ul {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose a {
  color: var(--accent);
}

.prose strong {
  color: var(--text);
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .site-footer {
    padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  }

  .site-footer .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .site-footer .footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0;
    font-size: 1rem;
  }

  .site-footer .footer-note {
    margin-top: 0.35rem;
    overflow-wrap: anywhere;
  }
}

/* Header tool nav */
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.35rem 0 0.75rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.section-lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.section-lead strong {
  color: var(--text);
}

.section-more {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-more a {
  color: var(--accent);
}

.prose .btn {
  margin: 0.5rem 0 1.25rem;
}

/* Track 1: tighter mobile header + above-fold CTA */
.header-brand {
  min-width: 0;
  flex: 1 1 auto;
}

.site-header .trust {
  margin: 0.2rem 0 0;
}

.site-nav {
  align-items: center;
}

.site-nav a {
  white-space: nowrap;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.site-nav a[aria-current="page"] {
  background: var(--surface-2);
  text-decoration: none;
}

.hero {
  padding: 1.35rem 0 0.85rem;
}

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

.section {
  padding: 1.35rem 0;
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1.5rem, 44rem);
  }

  .site-header {
    padding: 0.65rem 0 0.5rem;
  }

  .header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .site-header .trust {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .site-nav {
    margin: 0;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
    min-height: 40px;
    background: var(--surface-2);
    border: 1px solid var(--border);
  }

  .site-nav a[aria-current="page"] {
    border-color: var(--accent);
    color: var(--text);
  }

  .hero {
    padding: 1rem 0 0.65rem;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .hero .lead {
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .dropzone {
    padding: 1.1rem;
  }

  .dropzone-inner {
    padding: 0.75rem 0.25rem;
  }

  .dropzone-title {
    font-size: 1.05rem;
  }

  .section {
    padding: 1.15rem 0;
  }

  .prose {
    padding: 1.15rem 0 0.75rem;
  }
}


.answer-box {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.answer-box p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.breadcrumb {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

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

.section-more a + a {
  margin-left: 0.75rem;
}


.guide-list {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.guide-card {
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.guide-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
