:root {
  color-scheme: light;
  --ink: #1c1b1a;
  --muted: #68635d;
  --paper: #f7f4ef;
  --panel: #fffefa;
  --line: #d9d2c7;
  --accent: #315c54;
  --accent-dark: #23453f;
  --focus: #b34b20;
  --success: #1d6646;
  --error: #a32626;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 450;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at top right, rgba(49, 92, 84, 0.08), transparent 30rem), var(--paper);
}
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shell { width: min(100% - 2rem, 52rem); margin: 0 auto; padding: 4rem 0 2rem; }
.intro { margin-bottom: 2rem; }
.eyebrow { margin: 0 0 0.6rem; color: var(--accent); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 14ch; margin-bottom: 0.8rem; font-size: clamp(2.4rem, 8vw, 4.6rem); line-height: 0.96; letter-spacing: -0.05em; }
h2 { margin-bottom: 0.4rem; font-size: 1.15rem; letter-spacing: -0.02em; }
h3 { margin-bottom: 0.35rem; color: var(--accent-dark); font-size: 0.94rem; }
.lead { max-width: 42rem; margin-bottom: 0; color: var(--muted); font-size: 1.1rem; }
.panel { margin-bottom: 1rem; padding: clamp(1.2rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 1.25rem; background: color-mix(in srgb, var(--panel) 92%, transparent); box-shadow: 0 1rem 3rem rgba(31, 26, 20, 0.05); }
.steps { display: grid; gap: 0.5rem; margin: 1rem 0 1.25rem; padding-left: 1.4rem; }
code { padding: 0.1em 0.3em; border-radius: 0.3em; background: #ece7de; font-size: 0.92em; }
.privacy { margin-bottom: 0; color: var(--accent-dark); font-size: 0.92rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.muted { color: var(--muted); font-size: 0.92rem; }
.button { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; padding: 0.65rem 1rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: 0.94rem; font-weight: 700; line-height: 1; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { width: 100%; margin-top: 1.25rem; color: #fff; background: var(--accent); }
.button-primary:hover:not(:disabled) { background: var(--accent-dark); }
.button-secondary { flex: 0 0 auto; color: var(--accent-dark); border-color: var(--accent); background: transparent; }
.button-secondary:hover { background: #e4eee9; }
.button:disabled { cursor: not-allowed; opacity: 0.45; }
.drop-zone { display: grid; min-height: 10rem; place-content: center; gap: 0.25rem; border: 1.5px dashed #9caea6; border-radius: 0.9rem; color: var(--accent-dark); text-align: center; cursor: pointer; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--accent); background: #edf4f0; }
.drop-icon { display: block; font-size: 2rem; line-height: 1; }
.file-list { display: grid; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.file-item, .empty-state { padding: 0.8rem 1rem; border-radius: 0.7rem; background: #f1ede6; }
.file-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.file-name { overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.file-kind { flex: 0 0 auto; color: var(--accent-dark); font-size: 0.8rem; font-weight: 750; text-transform: uppercase; }
.output-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.output-grid > div { padding: 1rem; border-radius: 0.8rem; background: #f1ede6; }
.output-grid p { margin-bottom: 0; color: var(--muted); font-size: 0.84rem; }
.status { min-height: 1.5em; margin: 0.9rem 0 0; color: var(--muted); font-size: 0.92rem; }
.status.is-success { color: var(--success); }
.status.is-error { color: var(--error); }
.footer { padding: 1rem 0; color: var(--muted); font-size: 0.8rem; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 36rem) {
  .shell { padding-top: 2rem; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .button-secondary { width: 100%; }
  .output-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
