/* Recordback. System fonts, with the data itself in the system monospace like a terminal listing. Cool
   grey "platinum" ground from the Mac OS 8 and 9 years these files come from, white cards, one rust accent.
   Dark mode has its own warmer palette. */

:root {
  --bg: #eef0f2;
  --bg-2: #e3e6ea;
  --surface: #ffffff;
  --surface-2: #f7f8f9;
  --ink: #16181b;
  --ink-2: #434951;
  --ink-3: #5d646e;
  --line: #d3d8de;
  --line-2: #b7bec7;
  --accent: #a3401c;
  --accent-2: #86330f;
  --accent-ink: #ffffff;
  --accent-soft: #f6e5dc;
  --ok: #1d6b4f;
  --warn-bg: #fbf0d9;
  --warn-ink: #5e4209;
  --warn-line: #e6cf98;
  --bad: #a3241b;
  --bad-bg: #fbe8e6;
  --grid-head: #e8ebef;
  --grid-alt: #f6f7f9;
  --shadow: 0 1px 2px rgba(22, 24, 27, 0.08), 0 6px 18px -10px rgba(22, 24, 27, 0.25);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Cascadia Mono", "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --bg-2: #1c1d21;
    --surface: #212328;
    --surface-2: #26292e;
    --ink: #edebe7;
    --ink-2: #c3c0b9;
    --ink-3: #a29f98;
    --line: #34373d;
    --line-2: #4a4e55;
    --accent: #f0895c;
    --accent-2: #f6a580;
    --accent-ink: #1a0d06;
    --accent-soft: #3b261c;
    --ok: #7fd1ad;
    --warn-bg: #3a3020;
    --warn-ink: #f1dca9;
    --warn-line: #5d4c2a;
    --bad: #ff9d92;
    --bad-bg: #3d2220;
    --grid-head: #2a2d33;
    --grid-alt: #1d1f23;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 22px -12px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: 1.55rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.small { font-size: 0.88rem; color: var(--ink-3); }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 46rem; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; z-index: 50; border-radius: 4px; }
.skip:focus { top: 0.6rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.55rem 1.1rem;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: 6px;
  font: 600 0.98rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn.quiet { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.quiet:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-2); color: var(--ink-3); border-color: var(--line); cursor: not-allowed; }
.small-btn { min-height: 44px; padding: 0.35rem 0.8rem; font-size: 0.88rem; }

/* ---------- header ---------- */
header.site { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 1.25rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.12rem; letter-spacing: -0.01em; min-height: 44px; }
.brand:hover { color: var(--ink); }
.mark { width: 30px; height: 30px; flex: none; }
.m-box { fill: var(--accent); }
.m-pull { fill: var(--surface); }
.m-card { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.m-line { stroke: var(--ink-3); stroke-width: 1.4; stroke-linecap: round; }
nav.top { display: flex; gap: 0.25rem; margin-left: auto; }
nav.top a { color: var(--ink-2); text-decoration: none; padding: 0.55rem 0.7rem; border-radius: 5px; font-size: 0.95rem; min-height: 44px; display: inline-flex; align-items: center; }
nav.top a:hover { background: var(--bg); color: var(--ink); }
nav.top a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.head-cta { padding: 0.45rem 0.9rem; font-size: 0.92rem; }
details.menu { display: none; position: relative; }
details.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; min-width: 44px; padding: 0 0.6rem; border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; color: var(--ink); }
details.menu summary::-webkit-details-marker { display: none; }
details.menu summary svg { width: 20px; height: 20px; }
details.menu nav { position: absolute; right: 0; top: calc(100% + 0.4rem); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 0.4rem; min-width: 14rem; display: grid; }
details.menu nav a { color: var(--ink); text-decoration: none; padding: 0.7rem 0.8rem; border-radius: 5px; min-height: 44px; }
details.menu nav a:hover { background: var(--bg); }
@media (max-width: 960px) {
  nav.top { display: none; }
  details.menu { display: block; }
  .head-cta { margin-left: auto; }
}
@media (max-width: 420px) {
  .head-cta { display: none; }
  details.menu { margin-left: auto; }
}

/* ---------- hero and converter ---------- */
.hero { padding: 3.2rem 0 2.6rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 3rem; align-items: start; }
.hero-copy { max-width: 36rem; padding-top: 0.6rem; }
.lede { font-size: 1.16rem; color: var(--ink); }
.hero-copy p:not(.lede) { color: var(--ink-2); }
.convert-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem; box-shadow: var(--shadow); }
.drop { border: 2px dashed var(--line-2); border-radius: 8px; padding: 1.8rem 1.2rem 1.4rem; text-align: center; background: var(--surface-2); transition: border-color 0.15s, background 0.15s; }
.vh:focus-visible + .btn { outline: 3px solid var(--accent); outline-offset: 3px; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-icon { width: 46px; height: 46px; margin: 0 auto 0.6rem; color: var(--accent); }
.drop-title { font-weight: 700; font-size: 1.12rem; margin-bottom: 0.9rem; }
.drop .small { margin: 0.9rem auto 0; max-width: 24rem; }
.try { margin: 0.9rem 0.2rem 0; }
.try a { display: inline-block; padding: 0.15rem 0; }
.status { margin: 0.6rem 0.2rem 0; font-weight: 600; min-height: 1.6em; }
.status:empty { display: none; }
@media (max-width: 860px) {
  .hero { padding: 2rem 0 1.6rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .drop { transition: none; } }

/* ---------- results ---------- */
.results { padding: 0 0 2.5rem; }
.files { display: grid; gap: 1.1rem; }
.file { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem 1.1rem; min-width: 0; }
.file-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.file-head h2 { margin: 0; font-family: var(--mono); font-size: 1.05rem; font-weight: 650; overflow-wrap: anywhere; letter-spacing: 0; }
.file .meta { color: var(--ink-3); font-size: 0.92rem; margin: 0.15rem 0 0.6rem; }
.file progress { width: 100%; height: 0.7rem; }
.problem { background: var(--bad-bg); color: var(--bad); border-radius: 6px; padding: 0.7rem 0.9rem; margin: 0.6rem 0 0; }
.warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); border-radius: 6px; padding: 0.6rem 0.85rem; font-size: 0.93rem; margin: 0.5rem 0; }
.enc { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.7rem; margin: 0.2rem 0 0.8rem; }
.enc label { font-weight: 650; font-size: 0.92rem; }
.enc select { min-height: 44px; font: inherit; font-size: 0.93rem; padding: 0.3rem 0.5rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink); max-width: 100%; }
.enc .small { flex: 1 1 16rem; }

details.tbl { border-top: 1px solid var(--line); padding-top: 0.2rem; margin-top: 0.4rem; }
details.tbl > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.9rem; padding: 0.7rem 0.2rem; min-height: 44px; }
details.tbl > summary::-webkit-details-marker { display: none; }
details.tbl > summary::before { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); margin-right: 0.2rem; align-self: center; flex: none; }
details.tbl[open] > summary::before { transform: rotate(45deg); }
.tname { font-weight: 700; font-size: 1.05rem; }
.tcount { color: var(--ink-3); font-size: 0.92rem; }
details.fieldlist { margin: 0 0 0.8rem; }
details.fieldlist > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.93rem; min-height: 44px; display: inline-flex; align-items: center; padding: 0 0.2rem; }
.fields-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; margin-top: 0.3rem; }
table.fields { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
table.fields th, table.fields td { text-align: left; padding: 0.4rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.fields th { background: var(--grid-head); font-weight: 650; white-space: nowrap; }
table.fields td:first-child { font-family: var(--mono); font-size: 0.86rem; white-space: nowrap; }
table.fields tr.off td { color: var(--ink-3); }
table.fields .num { text-align: right; font-variant-numeric: tabular-nums; }
table.fields tbody tr:last-child td { border-bottom: 0; }

.grid-wrap { overflow: auto; max-height: 30rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); }
table.grid { border-collapse: separate; border-spacing: 0; font: 0.82rem/1.45 var(--mono); min-width: 100%; }
table.grid th, table.grid td { padding: 0.35rem 0.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.grid thead th { position: sticky; top: 0; background: var(--grid-head); font-family: var(--sans); font-size: 0.82rem; font-weight: 650; white-space: nowrap; z-index: 1; }
table.grid tbody tr:nth-child(even) td { background: var(--grid-alt); }
table.grid .rn { color: var(--ink-3); text-align: right; font-weight: 400; background: var(--grid-head); position: sticky; left: 0; }
table.grid thead .rn { z-index: 2; }
table.grid .c { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; overflow-wrap: break-word; width: max-content; max-width: 30ch; }

.exportbar { margin-top: 1.2rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 1rem 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem; box-shadow: var(--shadow); position: sticky; bottom: 0.8rem; z-index: 5; }
.exportbar h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.exportbar p { font-size: 0.92rem; color: var(--ink-2); margin: 0 0 0.6rem; }
.ex-part.paid { border-left: 1px solid var(--line); padding-left: 2rem; }
.btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ex-out { grid-column: 1 / -1; }
.ex-out progress { width: 100%; height: 0.7rem; }
.again { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.notes p { font-size: 0.9rem; color: var(--warn-ink); background: var(--warn-bg); border-radius: 6px; padding: 0.45rem 0.7rem; margin: 0.4rem 0 0; }
.notes:empty, .ex-out:empty { display: none; }
@media (max-width: 760px) {
  .exportbar { grid-template-columns: minmax(0, 1fr); position: static; }
  .ex-part.paid { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 0.8rem; }
}

/* ---------- sections ---------- */
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3rem 0; }
.intro { max-width: 46rem; color: var(--ink-2); font-size: 1.05rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.6rem; }
.col { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.3rem 0.6rem; }
.col h3 { display: flex; align-items: center; gap: 0.5rem; }
.col h3::before { content: ""; width: 0.75rem; height: 0.75rem; border-radius: 2px; background: var(--ok); }
.col.out h3::before { background: var(--ink-3); }
.col ul { margin: 0; padding: 0 0 0 1.1rem; }
.col li { margin: 0 0 0.6rem; color: var(--ink-2); }
.plain { padding: 3rem 0; }
.plain + .plain { padding-top: 0; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.two-up > div > p { color: var(--ink-2); }
.credits p { color: var(--ink-2); max-width: 46rem; }
@media (max-width: 760px) {
  .split, .two-up { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .band, .plain { padding: 2.2rem 0; }
}

/* ---------- article pages ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 2.6rem 0 1.6rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 0.4rem; }
.prose { padding-top: 2rem; padding-bottom: 3rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose li { margin-bottom: 0.5rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table.compare { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--grid-head); }
table.compare tbody th { font-weight: 650; min-width: 9rem; }
table.compare tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 600px) {
  table.compare thead { display: none; }
  table.compare tr { display: block; border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
  table.compare tbody tr:last-child { border-bottom: 0; }
  table.compare th, table.compare td { display: block; border-bottom: 0; padding: 0.3rem 0.8rem; }
  table.compare td::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
}
pre.policy, pre.licence { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1rem; overflow-x: auto; font: 0.8rem/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
pre.licence { white-space: pre; overflow-wrap: normal; }
pre.policy .k { color: var(--accent); font-weight: 700; }

/* ---------- pricing and thanks ---------- */
.buybox { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 1.1rem 1.2rem; margin: 0.4rem 0 1.4rem; }
.buybox .price { font-size: 1.9rem; font-weight: 750; margin: 0 0 0.2rem; }
.buybox .price small { font-size: 1rem; font-weight: 600; color: var(--ink-3); }
.buybox p { color: var(--ink-2); }
dl.terms { margin: 0; border-top: 1px solid var(--line); }
dl.terms > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.2rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
dl.terms dt { font-weight: 650; }
dl.terms dd { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { dl.terms > div { grid-template-columns: minmax(0, 1fr); } }
.licence-form { display: grid; gap: 0.35rem; max-width: 34rem; margin: 0.6rem 0 0; }
.licence-form label { font-weight: 650; font-size: 0.92rem; margin-top: 0.4rem; }
.licence-form input, .licence-form textarea, textarea.code { font: inherit; font-size: 0.95rem; min-height: 44px; padding: 0.45rem 0.6rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink); width: 100%; }
.licence-form textarea, textarea.code { font-family: var(--mono); font-size: 0.82rem; resize: vertical; }
.licence-form .btn { justify-self: start; margin-top: 0.5rem; }
.status.good { color: var(--ok); }
.status.error { color: var(--bad); }

/* ---------- done for you ---------- */
.prose h3 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0.4rem 0 0.8rem; }
.tier { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; padding: 1rem 1.15rem 0.3rem; }
.tier .price { font-size: 1.7rem; font-weight: 750; margin: 0; }
.tier .price small { font-size: 0.95rem; font-weight: 600; color: var(--ink-3); }
.prose .tier h2 { font-size: 1.1rem; margin: 0.2rem 0 0.4rem; }
.tier p:not(.price) { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 600px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
ol.steps { padding-left: 1.4rem; }
ol.steps li::marker { font-weight: 700; color: var(--accent); }
.dfy-form { display: grid; gap: 0.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem 1.2rem; margin: 0.6rem 0 1rem; }
.dfy-form > label, .dfy-form legend { font-weight: 650; font-size: 0.95rem; margin-top: 0.5rem; }
.dfy-form input[type="text"], .dfy-form input[type="email"], .dfy-form textarea {
  font: inherit; font-size: 0.98rem; min-height: 44px; padding: 0.45rem 0.6rem; width: 100%;
  border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink);
}
.dfy-form textarea { resize: vertical; }
.dfy-form input[type="file"] { font: inherit; font-size: 0.95rem; min-height: 44px; padding: 0.5rem; width: 100%; border: 2px dashed var(--line-2); border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.dfy-form input[type="file"]::file-selector-button { font: 600 0.92rem/1.2 var(--sans); min-height: 36px; margin-right: 0.8rem; padding: 0.4rem 0.9rem; border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface); color: var(--ink); cursor: pointer; }
.dfy-form fieldset { border: 0; padding: 0; margin: 0.3rem 0 0; display: grid; gap: 0.3rem; }
.dfy-form legend { padding: 0; margin-bottom: 0.3rem; }
.choice { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex: none; margin: 0; }
.hint { font-size: 0.88rem; color: var(--ink-3); margin: 0; }
.opt { font-weight: 400; color: var(--ink-3); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dfy-form .btn { justify-self: start; margin-top: 0.8rem; }
.dfy-form progress { width: 100%; height: 0.7rem; margin-top: 0.6rem; }
.dfy-form .status { margin: 0.4rem 0 0; }
.status.is-error { color: var(--bad); }
.aside { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1.15rem 0.2rem; margin: 1.6rem 0 0.4rem; }
.prose .aside h2 { margin-top: 0; font-size: 1.15rem; }
.job .terms { margin-bottom: 1rem; }

/* ---------- footer ---------- */
footer.site { background: var(--surface); border-top: 1px solid var(--line); padding: 2.2rem 0 1.6rem; margin-top: 1rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem 3rem; }
.foot-brand p { color: var(--ink-2); font-size: 0.93rem; max-width: 34rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 0.1rem 2.5rem; }
footer.site ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
footer.site ul a:hover { color: var(--accent); text-decoration: underline; }
.foot-legal { grid-column: 1 / -1; font-size: 0.84rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 1rem; margin: 0; }
@media (max-width: 700px) { .foot { grid-template-columns: minmax(0, 1fr); } }
