/* =========================================================
   HEIC → JPG  ·  styles
   ========================================================= */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #fbfbfe;
  --text: #101828;
  --text-2: #475467;
  --muted: #8b93a7;
  --line: #e7e9f2;
  --line-strong: #d6dae7;
  --brand: #5457e5;
  --brand-2: #8b5cf6;
  --brand-soft: #eef0ff;
  --ok: #0d9b74;
  --ok-soft: #e6f7f1;
  --err: #d92d20;
  --err-soft: #fef3f2;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 40px -20px rgba(16, 24, 40, .18);
  --radius: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 背景装饰 ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}

.blob-a {
  width: 620px; height: 620px;
  top: -300px; left: -160px;
  background: radial-gradient(circle at 30% 30%, #c7d2fe, rgba(199, 210, 254, 0));
}

.blob-b {
  width: 680px; height: 680px;
  top: -220px; right: -240px;
  background: radial-gradient(circle at 60% 40%, #e9d5ff, rgba(233, 213, 255, 0));
}

.bg-decor .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(16, 24, 40, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 24, 40, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- 顶栏 ---------- */
.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 6px 14px -6px rgba(99, 102, 241, .8);
}

.brand-mark svg { width: 19px; height: 19px; }

.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
}

.brand-2 { color: var(--brand); }

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, .14);
}

.ghost-link {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}

.ghost-link:hover { color: var(--text); border-color: var(--line-strong); }

/* ---------- 主区域 ---------- */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px 40px;
}

.hero {
  text-align: center;
  padding: 58px 0 38px;
  animation: rise .55s cubic-bezier(.22, .8, .3, 1) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--brand);
  background: rgba(255, 255, 255, .7);
  border: 1px solid #e3e4fb;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.eyebrow .arrow { color: var(--muted); }

h1 {
  margin: 22px 0 0;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 720;
}

.grad-text {
  background: linear-gradient(100deg, #4f46e5 10%, #7c3aed 50%, #db2777 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 20px auto 0;
  max-width: 540px;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.7;
}

/* ---------- 转换卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.converter {
  padding: 22px;
  animation: rise .6s .06s cubic-bezier(.22, .8, .3, 1) both;
}

.engine-warning {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--err-soft);
  border: 1px solid #fecdca;
  color: #b42318;
  font-size: 13.5px;
}

.engine-warning code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: rgba(180, 35, 24, .07);
  padding: 1px 5px;
  border-radius: 4px;
}

/* 拖拽区 */
.dropzone {
  position: relative;
  border: 1.5px dashed var(--line-strong);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 50% 0%, #fbfbff 0%, #f9f9fd 100%);
  padding: 42px 24px 34px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
  outline: none;
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: #b9baf3;
  background: radial-gradient(120% 120% at 50% 0%, #f7f7ff 0%, #f4f4fe 100%);
}

.dropzone:focus-visible {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}

.dropzone.is-dragging {
  border-color: var(--brand);
  border-style: solid;
  background: #f5f6ff;
  transform: scale(1.005);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .18), 0 10px 30px -18px rgba(79, 70, 229, .6);
}

.dz-icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(140deg, #6366f1, #8b5cf6 55%, #a855f7);
  box-shadow: 0 12px 24px -12px rgba(99, 102, 241, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.dz-icon svg { width: 27px; height: 27px; }

.dz-title {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.dz-sub {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 14px;
}

.fake-link {
  color: var(--brand);
  font-weight: 600;
  margin-left: 3px;
  border-bottom: 1px solid rgba(84, 87, 229, .3);
}

.sep { color: #c3c8d6; margin: 0 7px; }

kbd {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 2px 5px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  background: #fff;
  color: var(--text-2);
}

.dz-types {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* 参数行 */
.controls {
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  gap: 18px;
  padding: 20px 6px 18px;
  align-items: start;
}

.control-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.control label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.control-head b {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

/* range */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #6366f1 0%, #8b5cf6 var(--fill, 80%), #e9ebf4 var(--fill, 80%), #e9ebf4 100%);
  outline: none;
  cursor: pointer;
  margin: 6px 0 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #6366f1;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .18);
  transition: transform .15s;
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.08); }

input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #6366f1;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .18);
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(99, 102, 241, .18);
}

select {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
}

select:focus-visible {
  outline: none;
  border-color: #b9baf3;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .13);
}

.hint {
  margin: 7px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

.control-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0 0 14px;
  border-left: 1px solid var(--line);
  max-width: 190px;
}

.note-dot {
  flex: none;
  width: 8px; height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 4px rgba(18, 183, 106, .12);
}

.control-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  font-weight: 550;
}

.control-note p span {
  color: var(--muted);
  font-weight: 400;
  font-size: 11.5px;
}

/* ---------- 文件列表 ---------- */
.list-section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 6px;
}

.list-head h2 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.count {
  font-family: var(--mono);
  font-size: 11.5px;
  background: #f2f4f9;
  color: var(--text-2);
  border-radius: 999px;
  padding: 1px 7px;
  font-weight: 600;
}

.stat {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 372px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.file-list::-webkit-scrollbar { width: 8px; }
.file-list::-webkit-scrollbar-thumb { background: #dfe2ec; border-radius: 99px; }

.file {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 10px 10px 10px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
  animation: fadeIn .25s ease both;
}

.file:hover {
  background: #fbfbfe;
  border-color: var(--line);
}

.thumb {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 9px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef0f7, #e3e6f1);
  border: 1px solid rgba(16, 24, 40, .06);
  flex: none;
}

.thumb span {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #7d869c;
}

.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.file-main { min-width: 0; }

.file-top {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -.005em;
}

.pill {
  flex: none;
  font-size: 10.5px;
  font-weight: 650;
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pill.pending { background: #f2f4f9; color: #667085; }
.pill.working { background: var(--brand-soft); color: var(--brand); }
.pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.error { background: var(--err-soft); color: var(--err); }

.spinner {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(84, 87, 229, .25);
  border-top-color: var(--brand);
  animation: spin .7s linear infinite;
}

.file-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta .save {
  color: var(--ok);
  font-weight: 600;
}

.file-meta .grow {
  color: var(--muted);
  font-weight: 500;
}

.file-meta .fail { color: var(--err); }

.file-bar {
  margin-top: 7px;
  height: 3px;
  border-radius: 99px;
  background: #edeff7;
  overflow: hidden;
}

.file-bar i {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #818cf8, #a78bfa, #818cf8);
  background-size: 200% 100%;
  animation: slide 1.1s ease-in-out infinite;
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.icon-btn {
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .16s;
  text-decoration: none;
  padding: 0;
}

.icon-btn svg { width: 15px; height: 15px; }

.icon-btn:hover {
  border-color: #c9cbf0;
  color: var(--brand);
  background: #f8f8ff;
}

.icon-btn.danger:hover {
  border-color: #fecdca;
  color: var(--err);
  background: var(--err-soft);
}

.icon-btn[disabled] { opacity: .35; pointer-events: none; }

/* ---------- 操作区 ---------- */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  flex-wrap: wrap;
}

.btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(.995); }

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #5457e5, #7c3aed);
  box-shadow: 0 10px 22px -12px rgba(84, 87, 229, .95), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn.primary:hover:not(:disabled) {
  box-shadow: 0 14px 26px -12px rgba(84, 87, 229, 1), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn.primary:disabled {
  background: #e4e7f0;
  color: #98a2b3;
  box-shadow: none;
  cursor: not-allowed;
}

.btn.primary.is-stop {
  background: #fff;
  color: var(--err);
  border-color: #fecdca;
  box-shadow: var(--shadow-sm);
}

.btn.secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover:not(:disabled) {
  border-color: #b9baf3;
  background: #fbfbff;
}

.btn.secondary:disabled { opacity: .5; cursor: progress; }

.btn.ghost {
  background: transparent;
  color: var(--text-2);
  padding: 0 12px;
}

.btn.ghost:hover:not(:disabled) { background: #f4f5fa; color: var(--text); }
.btn.ghost:disabled { opacity: .4; cursor: not-allowed; }

.sample-link {
  margin-left: auto;
  background: none;
  border: 0;
  padding: 6px 2px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line-strong);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

.sample-link:hover { color: var(--brand); border-color: #b9baf3; }

.overall {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-2);
}

.overall-bar {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: #edeff7;
  overflow: hidden;
}

.overall-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transition: width .35s ease;
}

.privacy-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 18px 0 2px;
  font-size: 12px;
  color: var(--muted);
}

.privacy-line svg { width: 15px; height: 15px; color: #12b76a; flex: none; }

/* ---------- 特性 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.feature {
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(231, 233, 242, .9);
  border-radius: 18px;
  padding: 22px 22px 20px;
  backdrop-filter: blur(6px);
}

.f-icon {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.f-icon svg { width: 18px; height: 18px; }

.feature h3 {
  margin: 14px 0 5px;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.feature p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: 62px;
}

.faq h2 {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-2);
  margin: 0 0 14px;
  letter-spacing: .01em;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

details {
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  transition: background .2s, border-color .2s;
}

details[open] { background: #fff; border-color: #e0e2ee; box-shadow: var(--shadow-sm); }

summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 15px;
  color: var(--muted);
  font-weight: 400;
  transition: transform .2s;
}

details[open] summary::after { content: "−"; }

details p {
  margin: 9px 0 0;
  font-size: 12.8px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ---------- 页脚 ---------- */
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 28px 46px;
  border-top: 1px solid rgba(231, 233, 242, .8);
}

.site-footer p {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

.site-footer .icp {
  margin-top: 8px;
  font-size: 11.5px;
}

.site-footer .icp a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.site-footer .icp a:hover { color: var(--text-2); }

.site-footer a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.site-footer a:hover { color: var(--brand); border-color: #b9baf3; }

.noscript {
  position: fixed;
  left: 50%; bottom: 20px;
  transform: translateX(-50%);
  background: #101828;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 99;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: min(92vw, 480px);
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(16, 24, 40, .94);
  color: #fff;
  font-size: 12.8px;
  line-height: 1.5;
  box-shadow: 0 14px 34px -14px rgba(16, 24, 40, .7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.toast .t-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #f79009;
  flex: none;
}

.toast.ok .t-dot { background: #12b76a; }
.toast.err .t-dot { background: #f04438; }

/* ---------- 动画 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}

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

@keyframes slide {
  0% { transform: translateX(-60%); }
  100% { transform: translateX(180%); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .controls { grid-template-columns: 1fr 1fr; }
  .control-note { display: none; }
  .features { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding: 18px 18px 0; }
  .ghost-link { display: none; }
  .badge { font-size: 11.5px; padding: 5px 10px; }
  main { padding: 0 16px 32px; }
  .hero { padding: 40px 0 28px; }
  .lede { font-size: 15px; }
  .converter { padding: 14px; border-radius: 20px; }
  .dropzone { padding: 32px 16px 26px; }
  .dz-title { font-size: 16px; }
  .dz-sub { font-size: 12.5px; }
  .dz-sub .sep { margin: 0 4px; }
  .controls { grid-template-columns: 1fr; gap: 14px; padding: 18px 4px 14px; }
  .actions { gap: 8px; }
  .btn.primary { flex: 1 1 100%; order: -2; }
  .btn.secondary { flex: 1 1 auto; }
  .sample-link { margin-left: 0; width: 100%; text-align: center; border-bottom: 0; }
  .file { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 9px 4px; gap: 10px; }
  .thumb { width: 42px; height: 42px; }
  .file-name { font-size: 13px; }
  .file-meta { font-size: 11px; }
  .site-footer { padding: 20px 18px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
