:root {
  color-scheme: light;
  --ink: #111412;
  --muted: #5e6861;
  --paper: #f4f1e6;
  --card: #fffdf7;
  --line: #e2dfd5;
  --green: #0da267;
  --deep: #073b2b;
  --lime: #d8ff7a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17,20,18,.035) 1px, transparent 1px),
    linear-gradient(rgba(17,20,18,.035) 1px, transparent 1px),
    radial-gradient(circle at 84% 10%, rgba(13,162,103,.22), transparent 32%),
    linear-gradient(135deg, var(--paper), #e9e6d8);
  background-size: 36px 36px, 36px 36px, auto, auto;
}

button, input { font: inherit; }
button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ecebe4;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
button:disabled { opacity: .42; cursor: not-allowed; }
button.primary, button.dark { background: var(--ink); color: #fff; }

.shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.logo span {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.logo img { width: 38px; height: 38px; object-fit: contain; }
.logo strong { font-size: 19px; }
.nav-actions { display: flex; gap: 10px; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(430px,1fr);
  gap: 28px;
  align-items: center;
  padding-bottom: 34px;
}
.copy p {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.copy h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(48px, 6vw, 88px);
  line-height: .98;
  letter-spacing: 0;
}
.copy span {
  display: block;
  max-width: 560px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.tool {
  min-width: 0;
  border-radius: 28px;
  padding: 22px;
  background: rgba(255,253,247,.94);
  border: 1px solid rgba(17,20,18,.08);
  box-shadow: 0 26px 80px rgba(20,24,20,.12);
}
.status-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.status-bar strong, .status-bar span { display: block; }
.status-bar span { color: var(--muted); font-size: 13px; margin-top: 3px; }
.account-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.account-line strong {
  min-width: 0;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-badge {
  min-height: 26px;
  display: inline-flex !important;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid var(--line);
  font-size: 12px !important;
  font-weight: 950;
  line-height: 1;
}
.account-badge.guest {
  color: #6d756f;
  background: #f1efe4;
}
.account-badge.free {
  color: #33413a;
  background: linear-gradient(180deg, #fff, #f3f1e7);
}
.account-badge.yearly {
  color: #063d2c;
  border-color: rgba(13,162,103,.28);
  background: linear-gradient(135deg, #e6fff0, #d8ff7a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.account-badge.lifetime {
  color: #fffdf7;
  border-color: rgba(216,255,122,.4);
  background:
    linear-gradient(135deg, rgba(216,255,122,.28), transparent 38%),
    linear-gradient(135deg, #06251c, #0da267);
  box-shadow: 0 8px 24px rgba(13,162,103,.22), inset 0 1px 0 rgba(255,255,255,.2);
}

.dropzone {
  position: relative;
  min-height: 205px;
  border-radius: 22px;
  border: 1.5px dashed rgba(7,59,43,.25);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(13,162,103,.08), rgba(255,253,247,.72));
}
.dropzone.is-dragging { border-color: var(--green); background: rgba(13,162,103,.12); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { width: 92px; height: 92px; object-fit: contain; }
.dropzone strong { font-size: 30px; }
.dropzone p { margin: 0; color: var(--muted); }

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 12px;
}
.metrics div {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px 14px;
  background: rgba(255,255,255,.56);
}
.metrics strong { display: block; font-size: 29px; line-height: 1; }
.metrics span { color: var(--muted); font-size: 12px; }

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.file-list { display: grid; gap: 10px; min-width: 0; }
.empty {
  min-height: 138px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  text-align: center;
  background: #f7f5ec;
  color: var(--muted);
}
.empty strong { color: var(--ink); }
.empty p { margin: 0; }

.file-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(170px,.65fr) 126px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}
.file-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.file-meta > span {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: var(--lime);
  font-size: 11px;
  font-weight: 950;
}
.file-meta > div { min-width: 0; }
.file-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-detail, .file-status {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.file-progress { min-width: 0; }
.file-progress div {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e4e3dc;
}
.file-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width .22s ease;
}
.row-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.row-actions button { min-height: 36px; padding: 0 8px; }

.settings {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.settings summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.metadata-box,
.checks {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin-top: 10px;
}
.metadata-box label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.metadata-box input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px;
  outline: 0;
  background: #fff;
}
.checks label {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 850;
}
.checks input { accent-color: var(--green); }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin: 0 0 42px;
}
.value-grid article {
  border-radius: 22px;
  padding: 22px;
  background: rgba(255,253,247,.88);
  border: 1px solid rgba(17,20,18,.08);
}
.value-grid h2 { margin: 0 0 8px; }
.value-grid p { margin: 0; color: var(--muted); line-height: 1.75; }

.pricing {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(220px,.7fr) minmax(220px,.7fr);
  gap: 14px;
  align-items: stretch;
  margin: 0 0 56px;
}
.pricing > div,
.pricing article {
  border-radius: 22px;
  padding: 22px;
  background: rgba(17,20,18,.94);
  color: #fffdf7;
}
.pricing > div p,
.pricing article span {
  display: block;
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pricing > div p { color: var(--lime); }
.pricing h2 { margin: 0; font-size: 32px; line-height: 1.12; }
.pricing article {
  background: rgba(255,253,247,.95);
  color: var(--ink);
  border: 1px solid rgba(17,20,18,.08);
}
.pricing article strong { display: block; font-size: 34px; line-height: 1; }
.pricing article p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; }

.proof {
  margin: 0 0 18px;
  padding: 30px;
  border-radius: 28px;
  background: rgba(255,253,247,.9);
  border: 1px solid rgba(17,20,18,.08);
}
.section-head {
  max-width: 760px;
  margin-bottom: 20px;
}
.section-head.compact {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}
.section-head p {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.compare article {
  min-height: 220px;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #f7f5ec;
}
.compare article:nth-child(2) {
  background: var(--deep);
  color: #fffdf7;
}
.compare span,
.review-grid span,
.privacy-strip span {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
}
.compare article:nth-child(2) span { color: var(--lime); }
.compare p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.75;
}
.compare article:first-child p {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #774238;
  word-break: break-word;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin: 0 0 18px;
}
.review-grid article {
  border-radius: 22px;
  padding: 22px;
  background: rgba(255,253,247,.9);
  border: 1px solid rgba(17,20,18,.08);
}
.review-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.72;
}
.privacy-strip {
  display: grid;
  grid-template-columns: minmax(260px,.7fr) minmax(0,1fr);
  gap: 22px;
  align-items: center;
  margin: 0 0 56px;
  padding: 24px;
  border-radius: 24px;
  color: #fffdf7;
  background: var(--deep);
}
.privacy-strip span { color: var(--lime); }
.privacy-strip h2 { margin: 0; font-size: 28px; line-height: 1.16; }
.privacy-strip p { margin: 0; color: rgba(255,253,247,.82); font-size: 17px; line-height: 1.75; }

.faq {
  margin: 0 0 26px;
  padding: 30px;
  border-radius: 28px;
  background: rgba(255,253,247,.9);
  border: 1px solid rgba(17,20,18,.08);
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.faq summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 950;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1efe4;
  color: var(--deep);
}
.faq details[open] summary::after {
  content: "-";
  background: var(--deep);
  color: var(--lime);
}
.faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.75;
}
.site-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(17,20,18,.1);
  color: var(--muted);
  font-size: 14px;
}
.site-footer strong {
  color: var(--ink);
  font-size: 18px;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 850;
}
.site-footer a:hover { color: var(--deep); }

.legal-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}
.legal-page article {
  margin-top: 40px;
  padding: 34px;
  border-radius: 26px;
  background: rgba(255,253,247,.92);
  border: 1px solid rgba(17,20,18,.08);
  box-shadow: 0 22px 70px rgba(20,24,20,.1);
}
.legal-page article > p:first-child {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.legal-page h1 {
  margin: 0 0 22px;
  font-size: 46px;
  line-height: 1.05;
}
.legal-page h2 {
  margin: 26px 0 8px;
  font-size: 20px;
}
.legal-page p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

dialog {
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: transparent;
}
dialog::backdrop { background: rgba(0,0,0,.28); }
.dialog-card {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 22px;
  background: var(--card);
}
.dialog-card h2, .dialog-card p { margin: 0; }
.dialog-card p { color: var(--muted); line-height: 1.65; }
.dialog-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.dialog-card input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  outline: 0;
}
.code-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 128px;
  gap: 8px;
}
.code-row button {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 10px;
  font-size: 13px;
}
.close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.report-dialog { max-width: min(760px, calc(100vw - 32px)); }
.report-card {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 24px 90px rgba(20,24,20,.22);
}
.report-title {
  padding: 4px 46px 18px 0;
  border-bottom: 1px solid var(--line);
}
.report-title span {
  display: block;
  margin-bottom: 8px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.report-title h2 { margin: 0; font-size: 28px; line-height: 1.2; word-break: break-word; }
.report-title p { margin: 10px 0 0; color: var(--muted); line-height: 1.7; }
.report-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin: 16px 0;
}
.report-metrics div {
  border-radius: 16px;
  padding: 14px;
  background: #f7f5ec;
  border: 1px solid var(--line);
}
.report-metrics strong { display: block; font-size: 30px; line-height: 1; }
.report-metrics span { color: var(--muted); font-size: 12px; font-weight: 850; }
.report-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.report-sections section {
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.report-sections h3 { margin: 0 0 10px; font-size: 16px; }
.report-sections ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.report-sections li {
  display: grid;
  gap: 3px;
  padding-left: 12px;
  border-left: 3px solid var(--green);
}
.report-sections li strong { font-size: 13px; }
.report-sections li span { color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 980px) {
  .hero, .value-grid, .pricing, .compare, .review-grid, .privacy-strip { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 24px 0 34px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 20px, 1220px); }
  .nav-actions { gap: 6px; }
  .nav-actions button { min-height: 38px; padding: 0 11px; border-radius: 10px; }
  .copy h1 { font-size: 40px; line-height: 1.08; }
  .copy span { font-size: 15px; margin-top: 14px; }
  .tool { border-radius: 20px; padding: 14px; }
  .actions, .file-row, .checks, .report-sections { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(3,1fr); }
  .status-bar { align-items: flex-start; flex-direction: column; }
  .report-card { padding: 18px; }
  .report-metrics { grid-template-columns: 1fr; }
  .proof, .faq { padding: 18px; border-radius: 20px; }
  .section-head h2 { font-size: 25px; }
  .compare p, .review-grid p, .privacy-strip p { font-size: 15px; }
  .privacy-strip h2 { font-size: 23px; }
  .code-row { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 20px 0; }
}
