:root {
  --paper: #f7f5ed;
  --paper-deep: #eeeade;
  --card: #fffefa;
  --ink: #153748;
  --muted: #647780;
  --line: #d9ddd5;
  --blue: #1d7187;
  --blue-dark: #14586b;
  --mint: #78c9b2;
  --mint-soft: #e5f5ee;
  --amber: #e7a24f;
  --red: #b54c46;
  --shadow: 0 26px 70px rgba(29, 63, 75, .11);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --body: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 16%, rgba(120, 201, 178, .19), transparent 22rem),
    radial-gradient(circle at 96% 42%, rgba(231, 162, 79, .12), transparent 27rem),
    var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }

.paper-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .23;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  z-index: -1;
}

.orbit {
  position: fixed;
  width: 33rem;
  height: 33rem;
  border: 1px solid rgba(29, 113, 135, .08);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.orbit::after { content: ""; position: absolute; inset: 4rem; border: 1px solid rgba(29, 113, 135, .07); border-radius: inherit; }
.orbit-one { top: -19rem; right: -9rem; }
.orbit-two { bottom: -24rem; left: -16rem; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(21, 55, 72, .11);
}

.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-logo { width: 42px; height: 51px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(21, 55, 72, .16)); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.12; }
.brand-copy strong { font-size: 16px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.local-pill, .limit-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid #c8ded5;
  border-radius: 999px;
  background: rgba(255, 254, 250, .72);
  color: #306858;
  font-size: 12px;
  font-weight: 800;
}
.local-pill span { width: 8px; height: 8px; border-radius: 50%; background: #3b9c7f; box-shadow: 0 0 0 5px rgba(59, 156, 127, .11); animation: breathe 2.5s ease-in-out infinite; }

main { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

.hero { padding: 88px 0 58px; text-align: center; animation: rise .75s ease-out both; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow i { width: 40px; height: 1px; background: var(--blue); position: relative; }
.eyebrow i::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); position: absolute; right: 0; top: -1.5px; }
.hero h1 { margin: 21px 0 20px; font-family: var(--display); font-size: clamp(54px, 8.4vw, 96px); font-weight: 500; line-height: .89; letter-spacing: -.065em; }
.hero h1 em { color: var(--blue); font-style: italic; font-weight: 400; }
.hero-copy { width: min(660px, 100%); margin: 0 auto; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.7; }
.trust-row { margin-top: 36px; display: flex; justify-content: center; flex-wrap: wrap; gap: 13px 30px; color: #4f676f; font-size: 13px; font-weight: 700; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row b { color: var(--amber); font-size: 10px; letter-spacing: .08em; }

.workspace, .results {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(21, 55, 72, .12);
  border-radius: 30px 30px 30px 8px;
  background: rgba(255, 254, 250, .93);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.workspace::before { content: ""; position: absolute; width: 140px; height: 140px; border: 34px solid rgba(120, 201, 178, .09); border-radius: 50%; top: -80px; right: -70px; }
.workspace-heading, .results-heading { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.workspace-heading > div:first-child, .results-heading > div:first-child { display: flex; align-items: center; gap: 15px; }
.section-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.success-number { background: #2d8b70; }
h2 { margin: 0; font-family: var(--display); font-size: 27px; font-weight: 600; letter-spacing: -.025em; }
.workspace-heading p, .results-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.dropzone {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #9bb9b4;
  border-radius: 22px 22px 22px 5px;
  background:
    linear-gradient(90deg, rgba(120, 201, 178, .07) 1px, transparent 1px),
    linear-gradient(rgba(120, 201, 178, .07) 1px, transparent 1px),
    #f8fcf9;
  background-size: 28px 28px;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
  outline: none;
}
.dropzone:hover, .dropzone:focus-within, .dropzone.is-dragging { border-color: var(--blue); background-color: #f1faf7; transform: translateY(-2px); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 24px 24px 24px 7px; color: var(--blue); background: #e2f3ed; box-shadow: inset 0 0 0 1px rgba(29, 113, 135, .08); }
.drop-icon svg { width: 42px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dropzone > strong { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
.dropzone > span:not(.drop-icon) { margin-top: 8px; color: var(--muted); font-size: 14px; }
.dropzone u { color: var(--blue); font-weight: 800; text-underline-offset: 3px; }
.dropzone small { margin-top: 26px; padding: 7px 11px; border-radius: 7px; background: rgba(255,255,255,.8); color: #789098; font-size: 10px; font-weight: 900; letter-spacing: .1em; }

.queue { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.queue-top { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 12px; }
.queue-top span { color: var(--muted); }
.queue-list { display: grid; gap: 9px; }
.queue-item { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; animation: rise .35s ease-out both; }
.file-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #edf4f4; color: var(--blue); font-size: 10px; font-weight: 900; }
.file-copy { min-width: 0; }
.file-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.file-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.file-progress { width: 100%; height: 6px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #e5eeec; box-shadow: inset 0 1px 2px rgba(21, 55, 72, .08); }
.file-progress span { display: block; width: 4%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--mint)); transition: width .85s ease; }
.file-timing { color: #5e777c !important; font-size: 10px !important; font-weight: 700; letter-spacing: .015em; }
.file-state { min-width: 92px; color: var(--blue); font-size: 11px; font-weight: 800; text-align: right; }
.queue-item.is-done .file-icon { color: #22755e; background: var(--mint-soft); }
.queue-item.is-done .file-state { color: #22755e; }
.queue-item.is-done .file-progress span { background: #3b9c7f; }
.queue-item.is-error .file-icon { color: var(--red); background: #faece9; }
.queue-item.is-error .file-state { color: var(--red); max-width: 220px; }
.queue-item.is-error .file-progress span { background: var(--red); }
.spinner { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border: 2px solid #c9dbde; border-top-color: var(--blue); border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }

.results { margin-top: 28px; animation: rise .55s ease-out both; }
.result-actions { display: flex; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 15px; border-radius: 11px; border: 1px solid transparent; cursor: pointer; font-size: 12px; font-weight: 900; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.button.primary, .copy-button { color: #fff; background: var(--blue); box-shadow: 0 8px 18px rgba(29, 113, 135, .2); }
.button.primary:hover, .copy-button:hover { background: var(--blue-dark); }
.button.secondary { color: var(--blue-dark); border-color: #b9d4d4; background: #edf7f5; }
.button.ghost { color: var(--muted); border-color: var(--line); background: transparent; }
.result-list { display: grid; gap: 18px; }
.result-card { border: 1px solid var(--line); border-radius: 18px 18px 18px 5px; overflow: hidden; background: #fff; }
.result-card-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 16px; border-bottom: 1px solid var(--line); background: #fbfcf9; }
.result-file { display: flex; min-width: 0; align-items: center; gap: 11px; }
.result-file .file-icon { flex: 0 0 auto; background: var(--mint-soft); color: #22755e; }
.result-file div { min-width: 0; }
.result-file strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.result-file small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.copy-button { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer; font-size: 11px; font-weight: 900; }
.result-text { width: 100%; min-height: 260px; max-height: 580px; padding: 22px; resize: vertical; border: 0; outline: 0; color: #213e4b; background: #fff; font-family: "Avenir Next", Avenir, sans-serif; font-size: 15px; line-height: 1.7; }

.how-it-works { margin: 30px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how-it-works article { display: flex; gap: 13px; padding: 20px; border: 1px solid rgba(21, 55, 72, .1); border-radius: 16px 16px 16px 4px; background: rgba(255, 254, 250, .54); }
.how-it-works article > span { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #b6cfca; border-radius: 50%; color: var(--blue); font-size: 10px; font-weight: 900; }
.how-it-works strong { font-family: var(--display); font-size: 17px; }
.how-it-works p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.quality-note { display: flex; align-items: flex-start; gap: 13px; margin: 0 0 76px; padding: 18px 20px; border-left: 3px solid var(--amber); border-radius: 4px 13px 13px 4px; background: rgba(255, 248, 232, .78); color: #675d48; }
.quality-note svg { width: 21px; flex: 0 0 auto; fill: none; stroke: var(--amber); stroke-width: 2; }
.quality-note p { margin: 0; font-size: 12px; line-height: 1.6; }

footer { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 34px; display: flex; align-items: center; gap: 13px; color: #7c8c91; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.footer-line { height: 1px; flex: 1; background: rgba(21, 55, 72, .12); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translateX(-50%); padding: 13px 18px; border-radius: 12px; color: #fff; background: var(--ink); box-shadow: 0 14px 40px rgba(21,55,72,.25); font-size: 12px; font-weight: 900; animation: toast-in .25s ease both; }

[hidden] { display: none !important; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { box-shadow: 0 0 0 8px rgba(59, 156, 127, .05); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

@media (max-width: 760px) {
  .site-header { padding: 20px 0; }
  .local-pill { font-size: 0; gap: 0; padding: 10px; }
  .hero { padding: 64px 0 42px; text-align: left; }
  .hero-copy { margin: 0; }
  .trust-row { justify-content: flex-start; gap: 10px 20px; }
  .workspace, .results { padding: 21px; border-radius: 22px 22px 22px 7px; }
  .workspace-heading, .results-heading { align-items: flex-start; }
  .limit-pill { display: none; }
  .dropzone { min-height: 275px; padding: 25px; text-align: center; }
  .dropzone > strong { font-size: 23px; }
  .results-heading { flex-direction: column; }
  .result-actions { width: 100%; }
  .result-actions .button { flex: 1; }
  .result-card-head { align-items: flex-start; }
  .copy-button { padding: 0 11px; }
  .how-it-works { grid-template-columns: 1fr; }
  footer { flex-wrap: wrap; }
  .footer-line { min-width: 30px; }
}

@media (max-width: 430px) {
  main, .site-header, footer { width: min(100% - 24px, 1080px); }
  .brand-logo { width: 37px; height: 45px; }
  .brand-copy strong { font-size: 14px; }
  .hero h1 { font-size: 51px; }
  .trust-row { display: grid; }
  .workspace-heading > div:first-child, .results-heading > div:first-child { align-items: flex-start; }
  h2 { font-size: 23px; }
  .queue-item { grid-template-columns: 36px minmax(0, 1fr); }
  .file-state { grid-column: 2; text-align: left; }
  .result-card-head { flex-direction: column; }
  .copy-button { width: 100%; }
}

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