@font-face {
  font-family: Inter;
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f6f2;
  --surface: #fff;
  --ink: #121824;
  --muted: #535b66;
  --line: #d7dbdd;
  --blue: #2547d5;
  --blue-dark: #1d37ac;
  --blue-soft: #f0f3ff;
  --error: #a31e34;
  --round: 18px;
  --sans: Inter, system-ui, sans-serif;
  --display: 'DM Sans', Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 18px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.55 var(--sans); }
button, select, input { font: inherit; color: inherit; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #5274fa; outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 5; inset: 12px auto auto 12px; padding: 12px 16px; background: white; }
.top, .foot { border-bottom: 1px solid var(--line); }
.top-inner, .foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 68px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font: 850 17px/1 var(--display);
  white-space: nowrap;
  letter-spacing: -.025em;
}
.brand > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  color: white;
  background: var(--blue);
  font-weight: 850;
}
nav { display: flex; align-items: center; gap: clamp(13px, 3vw, 32px); }
nav a { min-height: 40px; display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 610; text-decoration: none; white-space: nowrap; }
nav a:hover { color: var(--blue); }

.hero { padding: 53px 0 32px; }
.signal {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 11px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .135em;
}
.signal i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.12; }
h1 { font-size: clamp(48px, 7vw, 90px); font-weight: 820; letter-spacing: -.072em; }
.intro { max-width: 580px; margin: 17px 0 0; color: var(--muted); font-size: clamp(16px, 2.1vw, 19px); }
.tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 308px;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--round);
  box-shadow: 0 10px 30px #1724390c;
}
.tool-work { padding: 20px; min-width: 0; }
.drop-zone {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #a9b6eb;
  border-radius: 12px;
  padding: 26px 14px 17px;
  background: linear-gradient(180deg, #f8f9ff, #f3f5ff);
  text-align: center;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.drop-zone[data-dragging] { border-color: #2445d4; background: #e9eeff; box-shadow: inset 0 0 0 2px #96a8f2; }
.upload-mark {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  margin-bottom: 17px;
  border: 1px solid #d1d9fc;
  background: white;
  border-radius: 13px;
  color: var(--blue);
  font: 700 29px/1 var(--display);
  box-shadow: 0 3px 5px #21347a14;
}
.drop-zone h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.045em; font-weight: 800; }
.drop-zone p { margin: 8px 0 18px; color: var(--muted); font-size: 13px; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 15px;
  font-weight: 680;
  line-height: 1.2;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.button.primary { color: #fff; background: var(--blue); }
.button.primary:hover { background: var(--blue-dark); }
.button.outline { border-color: #c8cede; color: #26388f; background: #fff; }
.button.outline:hover { background: var(--blue-soft); }
.button:disabled, .text-button:disabled, .remove:disabled, .choose:has(input:disabled) { opacity: .58; cursor: default; }
.button.small { min-height: 39px; font-size: 12px; padding: 7px 11px; }
.choose { position: relative; min-width: 158px; min-height: 47px; padding-inline: 20px; }
.choose input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: inherit; }
.choose:focus-within { outline: 3px solid #5274fa; outline-offset: 3px; }
.text-button {
  min-height: 40px;
  border: 0;
  padding: 6px 4px;
  color: #394c9a;
  background: transparent;
  font-size: 13px;
  font-weight: 660;
  cursor: pointer;
}
.text-button:hover { text-decoration: underline; }
#sample { margin-top: 4px; }

.settings {
  padding: 22px;
  border-left: 1px solid var(--line);
  border-radius: 0 var(--round) var(--round) 0;
  background: #fafbf8;
}
.format-strip { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.format-strip span {
  min-width: 39px;
  border: 1px solid #dce1f2;
  border-radius: 5px;
  background: #fff;
  padding: 3px 7px;
  color: #3b4a85;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
}
.format-strip span:last-child { border-color: #cdd9ff; color: #223aab; background: #eaf0ff; }
.format-strip b { color: #64708d; font-weight: 590; }
.settings h2 { margin-bottom: 18px; font-size: 21px; font-weight: 790; letter-spacing: -.03em; }
.control { margin-top: 14px; }
.control label { display: inline-block; margin-bottom: 4px; font-weight: 650; font-size: 13px; }
.control-label { display: flex; align-items: baseline; justify-content: space-between; }
.control output { color: var(--blue-dark); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.control input[type="range"] { width: 100%; height: 25px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.control select {
  display: block;
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd0da;
  border-radius: 7px;
  padding: 5px 10px;
  background: #fff;
  font-size: 14px;
}
.hint { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.privacy-icon { position: relative; display: inline-block; width: 11px; height: 9px; margin-top: 3px; border: 1.4px solid #596989; border-radius: 2px; }
.privacy-icon::before { content: ''; position: absolute; top: -6px; left: 1px; width: 5px; height: 5px; border: 1.4px solid #596989; border-bottom: 0; border-radius: 5px 5px 0 0; }
.queue-header { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.queue-header h2 { font-size: 18px; }
.queue-header h2 span { margin-left: 6px; color: var(--muted); font: 600 12px var(--sans); }
.queue { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }
.queue-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe0e7;
  border-radius: 8px;
  padding: 8px;
  background: white;
}
.thumb, .file-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: #384f9a;
  font: 800 11px var(--sans);
  object-fit: cover;
}
.file-info { min-width: 0; }
.file-info > * { display: block; }
.filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 720; font-size: 13px; }
.file-state, .file-error { color: var(--muted); overflow-wrap: anywhere; font-size: 12px; }
.file-error { color: var(--error); }
.remove { grid-column: 4; width: 36px; height: 39px; border: 0; color: #525b70; border-radius: 6px; background: transparent; font-size: 22px; cursor: pointer; }
.remove:hover { background: #eef0f6; }
.notice { margin: 11px 0 0; padding: 9px 11px; border: 1px solid #dbe2fb; border-radius: 7px; background: #f7f9ff; color: #26387d; font-size: 13px; overflow-wrap: anywhere; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.lower { margin-top: 64px; }
.lower-head h2 { font-size: clamp(26px, 4vw, 37px); font-weight: 800; letter-spacing: -.05em; }
.steps {
  list-style: none;
  counter-reset: steps;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  padding: 0;
  margin: 18px 0 0;
}
.steps li {
  counter-increment: steps;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.steps li::before {
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #e9eeff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}
.steps h3 { font-size: 19px; letter-spacing: -.02em; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 25px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { padding: 14px 0; color: var(--ink); font-weight: 680; cursor: pointer; }
details p { margin: 0 0 16px; max-width: 680px; color: var(--muted); }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 46px; }
.related a {
  position: relative;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 44px 15px 16px;
  text-decoration: none;
  color: var(--ink);
}
.related a:hover { background: #fff; }
.related a small { color: var(--muted); font-size: 12px; }
.related a span { position: absolute; inset: 19px 17px auto auto; color: var(--blue); font-size: 18px; }

.reading { max-width: 810px; margin-top: 73px; }
.reading h1 { font-size: clamp(42px, 7vw, 67px); }
.reading-body { margin: 23px 0 30px; color: #404859; font-size: 17px; }
.reading-body h2 { margin: 31px 0 12px; font-size: 24px; color: var(--ink); }
.reading-body dt { font-weight: 750; }
.reading-body dd { margin: 3px 0 17px; }
.reading-body p { margin: 0 0 16px; }
.reading-body li { margin-bottom: 7px; }
code { font-family: ui-monospace, monospace; font-size: .88em; }
.foot { margin-top: 65px; border-bottom: 0; border-top: 1px solid var(--line); }
.foot nav { flex-wrap: wrap; justify-content: flex-start; }

@media (max-width: 820px) {
  .wrap { width: calc(100% - 36px); }
  .tool { grid-template-columns: minmax(0, 1fr) 250px; }
  .settings { padding: 17px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .top-inner, .foot-inner { min-height: 59px; flex-wrap: wrap; gap: 4px 11px; }
  nav { gap: 13px; }
  nav a { font-size: 12px; }
  .hero { padding: 34px 0 21px; }
  h1 { font-size: clamp(44px, 13vw, 69px); }
  .intro { margin-top: 12px; }
  .tool { grid-template-columns: 1fr; padding: 11px; }
  .tool-work { display: contents; }
  .drop-zone { min-height: 223px; padding: 20px 9px 10px; }
  .upload-mark { width: 40px; height: 40px; margin-bottom: 11px; font-size: 25px; }
  .drop-zone p { margin: 6px 0 13px; font-size: 12px; }
  .drop-zone[data-has-files] { min-height: 0; padding-top: 11px; }
  .drop-zone[data-has-files] .upload-mark { display: none; }
  .drop-zone[data-has-files] h2 { font-size: 18px; }
  .settings {
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #e1e4e8;
    border-radius: 9px;
  }
  .format-strip { display: none; }
  .settings h2 { margin: 0; font-size: 18px; }
  .control { margin-top: 8px; }
  .privacy-note { margin-top: 13px; }
  .lower { margin-top: 45px; }
  .steps, .faq { grid-template-columns: 1fr; gap: 8px; }
  .steps li { padding: 15px; }
  .faq .lower-head { margin-bottom: 8px; }
  .related { grid-template-columns: 1fr; margin-top: 27px; }
  .reading { margin-top: 40px; }
  .foot { margin-top: 45px; }
}
@media (max-width: 355px) {
  .top-inner, .foot-inner { padding-block: 9px 3px; }
  nav { justify-content: space-between; width: 100%; }
  .queue-row { grid-template-columns: 34px minmax(0, 1fr) auto 30px; gap: 5px; }
  .thumb, .file-mark { width: 34px; height: 34px; }
  .remove { width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

.control input[type="text"] {
  display: block;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cbd0da;
  border-radius: 7px;
  padding: 7px 10px;
  background: white;
}
.control input[type="text"] { width: 100%; font-size: 14px; }
.upgrade-note { margin: 16px 0 0; font-size: 13px; }
.pricing-title { font-size: clamp(41px, 8vw, 74px); }
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--round);
  background: var(--surface);
  padding: clamp(18px, 3vw, 30px);
}
.plan-pro { border-color: #a9b9ff; }
.plan h2, .pricing-faq h2 {
  font-size: 25px;
  letter-spacing: -.04em;
}
.plan p { margin: 8px 0; color: var(--muted); }
.plan .plan-price {
  color: var(--ink);
  font: 810 40px/1.2 var(--display);
  letter-spacing: -.055em;
}
.plan-price small { color: var(--muted); font: 620 13px/1.2 var(--sans); letter-spacing: 0; white-space: nowrap; }
.plan ul { padding-left: 20px; margin-bottom: 22px; }
.plan li { margin: 7px 0; }
.plan #plan-status { min-height: 2em; }
.billing-status:empty { display: none; }
.pricing-faq { max-width: 820px; margin-left: max(32px, calc((100% - 1160px) / 2)); }
.pricing-faq h2 { margin-bottom: 16px; }
@media (max-width: 820px) {
  .pricing-faq { margin-left: 18px; }
}
@media (max-width: 640px) {
  nav { gap: 10px; }
  .top-inner { padding-block: 8px 3px; }
  .pricing-plans { grid-template-columns: 1fr; }
  .pricing-faq { margin-left: 14px; }
}

.format-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 14px 0 26px; font-size: 15px; }
.format-table caption { text-align: left; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.format-table th, .format-table td {
  padding: 10px 11px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}
.format-table thead th { background-color: var(--blue-soft); color: var(--ink); font-weight: 700; }
.format-table thead th:first-child { width: 23%; }
.format-table tbody th { background-color: var(--paper); color: var(--ink); font-weight: 650; }
.format-table tbody td { background-color: var(--surface); }
@media (max-width: 640px) {
  .format-table { font-size: 13px; }
  .format-table th, .format-table td { padding: 8px 6px; }
}
