/**
 * ConverterSEO — stylesheet.
 *
 * No web fonts by design. This page competes in search results against other
 * converters, and Core Web Vitals are part of that ranking — a font request
 * costs 100–300 ms of Largest Contentful Paint for a typographic gain nobody
 * notices on a tool page. System faces render instantly and look native.
 */

:root {
  --bg: #FBFBFC;
  --surface: #FFFFFF;
  --surface-sunk: #F2F4F7;
  --border: #E1E5EB;
  --border-strong: #C6CDD7;
  --text: #14181F;
  --text-soft: #414B59;
  --muted: #5F6A79;

  --accent: #0F5FA6;
  --accent-hover: #0C4C86;
  --accent-soft: #E7F0F8;
  --success: #17784E;
  --success-soft: #E2F1EA;
  --danger: #B3261E;
  --danger-soft: #FBE9E7;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 31, .05), 0 8px 24px -14px rgba(20, 24, 31, .25);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1319;
    --surface: #171C24;
    --surface-sunk: #1E242E;
    --border: #262E3A;
    --border-strong: #3A4553;
    --text: #E8ECF2;
    --text-soft: #C3CBD6;
    --muted: #909BAA;

    --accent: #62AEEA;
    --accent-hover: #8AC4F2;
    --accent-soft: #16283A;
    --success: #5FC895;
    --success-soft: #122A20;
    --danger: #E8897C;
    --danger-soft: #2E1A17;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -16px rgba(0, 0, 0, .8);
  }
}

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

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 860px; margin: 0 auto; }
.prose { max-width: 66ch; }

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

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

/* ------------------------------------------------------------------- header */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }

.masthead nav {
  display: flex;
  gap: 20px;
  font-size: 14.5px;
}
.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a:hover { color: var(--text); }

/* --------------------------------------------------------------------- hero */

.hero { padding: 40px 0 32px; }

h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 0 0 14px;
  text-wrap: balance;
}

.lede {
  font-size: 1.13rem;
  color: var(--text-soft);
  margin: 0;
  max-width: 56ch;
}

.trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { flex: none; color: var(--success); }

/* ----------------------------------------------------------------- dropzone */

.drop {
  margin: 30px 0 0;
  padding: 44px 24px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  transition: border-color .15s, background .15s;
}
.drop.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.drop p { margin: 0 0 6px; font-size: 1.05rem; color: var(--text-soft); }
.drop .drop__hint { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

/* ------------------------------------------------------------------ controls */

.controls {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 20px 0 0;
  padding: 18px 20px;
  background: var(--surface-sunk);
  border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.field input {
  width: 130px;
  padding: 8px 11px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
}
.field small { font-size: 12.5px; color: var(--muted); max-width: 30ch; }

.field--check { justify-content: flex-end; }
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  padding: 8px 0;
}
.check input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }

/* -------------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 11px 20px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }

.btn--ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-sunk); color: var(--text); border-color: var(--border-strong); }

.btn--small { padding: 6px 13px; font-size: 13.5px; }

/* -------------------------------------------------------------------- results */

.results { margin: 28px 0 0; }

.results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.results__summary { font-size: 15px; color: var(--text-soft); }
.results__actions { display: flex; gap: 10px; }

.list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: none; }

.row__name { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row__filename {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row__meta { font-size: 12.5px; color: var(--muted); }

.row__status {
  font-size: 14px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.row__status.is-error { color: var(--danger); white-space: normal; font-size: 13px; }
.row__status.is-muted { color: var(--muted); }
.row__status { flex-wrap: wrap; }

.row__saving {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-soft);
  padding: 2px 7px;
  border-radius: 4px;
}
.row__saving.is-neutral { color: var(--muted); background: var(--surface-sunk); }

.row__note { font-size: 12.5px; color: var(--muted); white-space: normal; }

.spinner {
  width: 13px;
  height: 13px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.5s; }
  * { transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------------- hints */

.hint {
  margin: 14px 0 0;
  padding: 15px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 7px 7px 0;
  font-size: 14.5px;
  color: var(--text-soft);
}
.hint strong { color: var(--text); }
.hint a { font-weight: 600; }
.hint code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text);
}

.notice { margin: 0; padding: 14px 16px; border-radius: 7px; font-size: 15px; }
.notice--error { background: var(--danger-soft); color: var(--danger); }

/* Page-level notes about a format's limitations. These sit in the hero, above
   the dropzone, because finding out after the conversion that animation was
   dropped is worse than being told before. */
.notice--warn,
.notice--info {
  margin: 24px 0 0;
  max-width: 62ch;
  line-height: 1.55;
  border-left: 3px solid;
  border-radius: 0 7px 7px 0;
}
.notice--warn { background: var(--danger-soft); color: var(--text-soft); border-left-color: var(--danger); }
.notice--info { background: var(--surface-sunk); color: var(--text-soft); border-left-color: var(--border-strong); }

/* -------------------------------------------------------------------- content */

section.content { margin-top: 68px; }

h2 {
  font-size: 1.5rem;
  letter-spacing: -.015em;
  margin: 0 0 14px;
  text-wrap: balance;
}
h3 { font-size: 1.06rem; margin: 28px 0 6px; }
p { margin: 0 0 1em; color: var(--text-soft); }

.formats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.formats a {
  display: block;
  padding: 12px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.formats a:hover { border-color: var(--accent); color: var(--accent); }

.faq { border-top: 1px solid var(--border); margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  padding: 15px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+ '; color: var(--accent); font-weight: 700; }
.faq details[open] summary::before { content: '− '; }
.faq details > p { padding: 0 0 15px; margin: 0; max-width: 66ch; }

/* ---------------------------------------------------------------------- promo */

.promo {
  margin-top: 56px;
  padding: 30px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.promo h2 { margin-bottom: 10px; }
.promo ul { margin: 16px 0 22px; padding-left: 20px; color: var(--text-soft); }
.promo li { margin-bottom: 6px; }

footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer a { color: var(--muted); }

@media (max-width: 600px) {
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row__status { white-space: normal; }
  .controls { gap: 16px; }
  .field input { width: 100%; }
}

/* ---------------------------------------------------------------- documents */

/* Legal pages and pricing. Longer measure than the tool pages because these are
   read start to finish rather than scanned. */
.document h2 {
  font-size: 1.25rem;
  margin: 42px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.document h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.document .prose { max-width: 68ch; }
.document table { font-size: 14.5px; }
.document .faq { margin-top: 14px; }

.pricing td, .pricing th { text-align: center; }
.pricing td:first-child, .pricing th:first-child { text-align: left; }
.pricing tbody tr:last-child td {
  background: var(--surface-sunk);
  font-size: 15.5px;
  padding-top: 14px;
  padding-bottom: 14px;
}
