@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --ink: #17211f;
  --muted: #77817a;
  --subtle: #a5aca5;
  --paper: #f7f6f2;
  --paper-strong: #efeee9;
  --white: #fffefa;
  --line: #dfdfd7;
  --green: #a5c83e;
  --green-dark: #789b24;
  --violet: #7e65c8;
  --peach: #f4b194;
  --orange: #ee8058;
  --shadow: 0 22px 70px rgba(31, 39, 27, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.page-width { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }

.site-shell { overflow: hidden; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Space Grotesk", sans-serif; font-size: 19px; font-weight: 600; letter-spacing: -0.04em; }
.brand-name span { color: var(--orange); }
.brand-mark { width: 26px; height: 26px; display: inline-flex; align-items: end; gap: 3px; padding: 5px; border: 1px solid var(--ink); border-radius: 9px 9px 9px 2px; transform: rotate(-7deg); }
.brand-mark span { width: 4px; border-radius: 4px; background: var(--ink); display: block; }
.brand-mark span:nth-child(1) { height: 7px; opacity: .45; }
.brand-mark span:nth-child(2) { height: 11px; }
.brand-mark span:nth-child(3) { height: 15px; background: var(--orange); }
.topnav { display: flex; align-items: center; gap: 32px; font-size: 13px; color: #657069; }
.topnav a { transition: color .2s ease; }
.topnav a:hover { color: var(--ink); }

.hero { min-height: 414px; display: flex; align-items: center; justify-content: space-between; position: relative; padding: 60px 10px 86px; }
.hero-copy { width: 59%; position: relative; z-index: 1; }
.eyebrow, .section-kicker, .mini-label, .workspace-path, .privacy-badge, .drop-caption, .range-labels, .footer-credit { font-family: "DM Mono", monospace; letter-spacing: .01em; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--green-dark); font-size: 11px; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(165, 200, 62, .2); }
h1, h2, h3, p { margin: 0; }
.hero h1 { max-width: 700px; margin: 18px 0 22px; font-family: "Space Grotesk", sans-serif; font-size: clamp(58px, 7vw, 91px); line-height: .92; letter-spacing: -.085em; font-weight: 500; }
h1 em, h2 em { color: var(--violet); font-style: normal; }
.hero-lede { max-width: 505px; color: #626d65; font-size: 16px; line-height: 1.65; }
.hero-proof { display: flex; align-items: center; gap: 11px; margin-top: 29px; color: var(--muted); font-size: 12px; }
.hero-proof strong { color: var(--ink); font-weight: 600; }
.proof-avatars { display: flex; }
.proof-avatars i { width: 27px; height: 27px; display: grid; place-items: center; margin-right: -7px; border: 2px solid var(--paper); border-radius: 50%; background: #dae7ad; color: var(--green-dark); font-style: normal; font-size: 11px; }
.proof-avatars i:nth-child(2) { background: #f9d9a8; color: #be713d; }
.proof-avatars i:nth-child(3) { background: #dacff3; color: var(--violet); }
.hero-orbit { width: 320px; height: 295px; position: relative; margin: 8px 40px 0 20px; transform: rotate(9deg); }
.orbit { position: absolute; border: 1px solid rgba(126, 101, 200, .24); border-radius: 50%; transform: rotate(-15deg); }
.orbit-one { width: 325px; height: 156px; top: 77px; left: 0; }
.orbit-two { width: 253px; height: 253px; left: 35px; top: 28px; border-color: rgba(238, 128, 88, .25); }
.orbit-core { width: 135px; height: 135px; position: absolute; left: 94px; top: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 50%; background: #dce7af; color: var(--green-dark); box-shadow: 0 18px 45px rgba(118, 145, 37, .18); transform: rotate(-9deg); }
.orbit-core span { font-size: 31px; line-height: 1; }
.orbit-core small { font-family: "DM Mono", monospace; font-size: 9px; line-height: 1.25; text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.orbit-card { position: absolute; z-index: 2; padding: 11px 14px 10px; display: flex; flex-direction: column; gap: 3px; border-radius: 8px; box-shadow: 0 14px 36px rgba(38, 41, 29, .13); transform: rotate(-9deg); }
.orbit-card span { font-family: "DM Mono", monospace; font-size: 8px; letter-spacing: .08em; }
.orbit-card strong { font-family: "Space Grotesk", sans-serif; font-size: 20px; letter-spacing: -.05em; }
.orbit-card-top { top: 10px; right: 20px; background: var(--ink); color: var(--paper); }
.orbit-card-bottom { bottom: 18px; left: 12px; background: #f5ccbc; color: #a34d2e; transform: rotate(-19deg); }

.compressor-section, .results-section, .how-section { padding-bottom: 116px; }
.section-kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.section-kicker > span:first-child { color: var(--orange); }
.section-kicker .line { width: 70px; height: 1px; background: var(--line); }
.workspace { margin-top: 19px; border: 1px solid #daddd2; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.workspace-bar { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid #e9e9e2; }
.workspace-title, .workspace-actions { display: flex; align-items: center; gap: 10px; }
.workspace-title { font-size: 13px; font-weight: 600; }
.status-light { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(165, 200, 62, .15); }
.workspace-path { color: var(--subtle); font-size: 10px; font-weight: 400; }
.privacy-badge { padding: 7px 10px; border-radius: 99px; background: #f0f4df; color: var(--green-dark); font-size: 9px; }
.ghost-button { border: 0; background: none; color: var(--muted); font-size: 12px; }
.ghost-button:hover:not(:disabled) { color: var(--ink); }
button:disabled { cursor: not-allowed; opacity: .42; }
.workspace-grid { min-height: 460px; display: grid; grid-template-columns: 1fr 330px; }
.input-column { padding: 23px; border-right: 1px solid #e9e9e2; }
.dropzone { min-height: 207px; display: flex; align-items: center; flex-direction: column; justify-content: center; border: 1px dashed #ccd1bd; border-radius: 10px; background: #fafbf4; transition: .2s ease; }
.dropzone:hover, .dropzone.dragging { border-color: var(--green); background: #f5f8e7; transform: translateY(-2px); }
.dropzone input { display: none; }
.drop-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 10px; border: 1px solid #d6dfb6; border-radius: 50%; background: #ebf1cf; color: var(--green-dark); font-size: 24px; line-height: 1; }
.dropzone h2 { font-family: "Space Grotesk", sans-serif; font-size: 19px; letter-spacing: -.04em; font-weight: 600; }
.dropzone p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.text-button { border: 0; border-bottom: 1px solid var(--muted); padding: 0; background: none; color: var(--ink); font-size: inherit; }
.text-button:hover { border-color: var(--orange); color: var(--orange); }
.drop-caption { margin-top: 14px; color: #a0a88f; font-size: 9px; }
.queue-heading { display: flex; justify-content: space-between; align-items: center; margin: 25px 0 11px; }
.queue-heading > div { display: flex; align-items: center; gap: 7px; font-family: "Space Grotesk", sans-serif; font-size: 15px; font-weight: 600; }
.queue-count { min-width: 21px; padding: 2px 6px; border-radius: 20px; background: #f0f2eb; color: var(--green-dark); font-family: "DM Mono", monospace; font-size: 10px; text-align: center; }
.queue-heading > span { color: var(--subtle); font-family: "DM Mono", monospace; font-size: 9px; }
.file-list { display: flex; flex-direction: column; gap: 7px; }
.empty-queue { height: 83px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #f0f0ea; border-radius: 8px; background: #fcfcf9; color: var(--subtle); }
.empty-queue p { font-size: 11px; }
.empty-spark { color: #cad3a7; font-size: 20px; }
.file-card { min-height: 63px; display: flex; align-items: center; gap: 11px; padding: 8px 10px 8px 8px; border: 1px solid transparent; border-radius: 9px; background: #fafaf7; transition: .2s ease; }
.file-card.active { border-color: #d4dfae; background: #f8faef; }
.file-card:hover { border-color: #e5e7dc; }
.file-preview { width: 47px; height: 47px; flex: 0 0 47px; overflow: hidden; padding: 0; border: 0; border-radius: 6px; background: #ecece6; }
.file-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pdf-thumb { width: 100%; height: 100%; display: grid; place-items: center; background: #f6d5c9; color: #b4593c; }
.pdf-thumb span { padding: 4px 5px; border: 1px solid rgba(180, 89, 60, .35); border-radius: 4px; font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; }
.file-details { min-width: 0; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.file-name { overflow: hidden; padding: 0; border: 0; background: none; color: var(--ink); font-size: 12px; font-weight: 600; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.file-details > span { color: var(--subtle); font-family: "DM Mono", monospace; font-size: 9px; }
.file-dot { padding: 0 3px; color: #d3d7cf; }
.file-status { min-width: 43px; color: var(--subtle); font-family: "DM Mono", monospace; font-size: 9px; text-align: right; }
.file-status.done { color: var(--green-dark); font-weight: 500; }
.file-status.processing { color: var(--violet); }
.file-status.error { color: var(--orange); }
.icon-button { width: 24px; height: 24px; flex: 0 0 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 16px; }
.icon-button:hover { background: #ebece5; color: var(--ink); }
.download-icon { color: var(--green-dark); font-size: 19px; }
.settings-column { padding: 28px 26px 24px; background: #fdfdfb; }
.settings-header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 28px; }
.mini-label { display: block; margin-bottom: 6px; color: var(--subtle); font-size: 9px; text-transform: uppercase; }
.settings-header h2, .panel-topline h2 { font-family: "Space Grotesk", sans-serif; font-size: 21px; letter-spacing: -.05em; font-weight: 600; }
.settings-icon { color: var(--orange); font-size: 23px; line-height: 1; }
.setting-group { margin-bottom: 23px; }
.setting-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.setting-label label, .setting-label strong { font-size: 11px; font-weight: 600; }
.setting-label > span, .muted { color: var(--subtle); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 400; }
.setting-label strong { color: var(--orange); }
select, .input-with-suffix { width: 100%; height: 38px; border: 1px solid #dedfd7; border-radius: 6px; background: var(--white); color: var(--ink); }
select { padding: 0 11px; outline: none; font-size: 12px; }
select:focus, .input-with-suffix:focus-within { border-color: var(--violet); }
.input-with-suffix { display: flex; align-items: center; padding-right: 11px; }
.input-with-suffix input { width: 100%; height: 100%; min-width: 0; padding: 0 11px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.input-with-suffix span { color: var(--subtle); font-family: "DM Mono", monospace; font-size: 10px; }
input[type="range"] { width: 100%; height: 4px; margin: 6px 0 0; accent-color: var(--orange); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; margin-top: 7px; color: var(--subtle); font-size: 9px; }
.setting-group.disabled { opacity: .47; }
.recipe-note { display: flex; gap: 9px; min-height: 53px; margin: 1px 0 20px; padding: 11px; border-radius: 7px; background: #f2f0fa; color: #6b599e; }
.recipe-note > span { font-size: 15px; }
.recipe-note p { font-size: 10px; line-height: 1.55; }
.compress-button, .download-all { width: 100%; height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border: 0; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; transition: .2s ease; }
.compress-button:hover:not(:disabled), .download-all:hover:not(:disabled) { background: #2b3933; transform: translateY(-1px); box-shadow: 0 8px 19px rgba(23, 33, 31, .15); }
.button-arrow { color: var(--green); font-size: 18px; }
.progress-wrap { margin-top: 15px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }
.progress-track { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 4px; background: #e7eadc; }
.progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--green); transition: width .25s ease; }

.results-section { padding-top: 3px; }
.results-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; margin-top: 19px; }
.preview-panel, .summary-panel { min-height: 310px; padding: 24px; border: 1px solid #dedfd7; border-radius: 13px; background: var(--white); }
.panel-topline { display: flex; justify-content: space-between; align-items: start; }
.panel-topline h2 { overflow: hidden; max-width: 460px; text-overflow: ellipsis; white-space: nowrap; }
.preview-format { padding: 6px 8px; border-radius: 5px; background: #f0f4df; color: var(--green-dark); font-family: "DM Mono", monospace; font-size: 9px; }
.preview-stage { height: 175px; display: grid; place-items: center; margin-top: 19px; overflow: hidden; border-radius: 9px; background: repeating-conic-gradient(#f0f0eb 0% 25%, #fafaf6 0% 50%) 50% / 18px 18px; }
.preview-empty { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--subtle); font-size: 11px; }
.preview-empty span { color: #d1d6c0; font-size: 33px; }
.pdf-preview { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pdf-preview-icon { padding: 12px 14px; border: 1px solid rgba(180, 89, 60, .28); border-radius: 7px; background: #f6d5c9; color: #b4593c; font-family: "DM Mono", monospace; font-size: 12px; }
.pdf-preview strong { font-family: "Space Grotesk", sans-serif; font-size: 15px; letter-spacing: -.04em; }
.pdf-preview p { max-width: 255px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.preview-image-wrap { width: 100%; height: 100%; position: relative; display: grid; place-items: center; padding: 12px; }
.preview-image-wrap img { max-width: 100%; max-height: 100%; display: block; object-fit: contain; border-radius: 4px; box-shadow: 0 8px 20px rgba(30, 36, 31, .12); }
.preview-chip { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 5px 7px; border-radius: 4px; background: rgba(23, 33, 31, .82); color: var(--paper); font-family: "DM Mono", monospace; font-size: 8px; }
.preview-footer { display: flex; gap: 9px; align-items: center; margin-top: 13px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }
.preview-savings { margin-left: auto; color: var(--green-dark); }
.summary-panel { display: flex; flex-direction: column; }
.summary-stat strong { display: block; margin: 10px 0 4px; font-family: "Space Grotesk", sans-serif; font-size: 38px; letter-spacing: -.07em; font-weight: 500; }
.summary-stat > span:last-child { color: var(--muted); font-size: 10px; line-height: 1.5; }
.summary-divider { height: 1px; margin: 20px 0 14px; background: #e9e9e2; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.summary-row strong { color: var(--ink); font-weight: 600; }
.download-all { margin-top: auto; justify-content: center; gap: 9px; background: var(--orange); }
.download-all span { font-size: 18px; }
.summary-footnote { margin-top: 11px; color: var(--subtle); font-family: "DM Mono", monospace; font-size: 8px; line-height: 1.45; text-align: center; }

.how-section { padding-bottom: 93px; }
.how-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 13px; margin-top: 22px; }
.how-intro { padding: 10px 15px 0 0; }
.how-intro h2 { font-family: "Space Grotesk", sans-serif; font-size: 38px; line-height: .98; letter-spacing: -.07em; font-weight: 500; }
.how-intro p { max-width: 195px; margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.feature-card { min-height: 224px; position: relative; padding: 20px; border-radius: 10px; }
.feature-card h3 { margin-top: 45px; font-family: "Space Grotesk", sans-serif; font-size: 18px; letter-spacing: -.05em; font-weight: 600; }
.feature-card p { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.feature-card a { display: inline-block; margin-top: 11px; color: var(--ink); font-size: 10px; font-weight: 600; border-bottom: 1px solid var(--ink); }
.feature-number { position: absolute; top: 18px; right: 18px; color: rgba(23, 33, 31, .38); font-family: "DM Mono", monospace; font-size: 9px; }
.feature-icon { position: absolute; top: 17px; left: 19px; color: var(--ink); font-size: 23px; }
.feature-local { background: #dfeab4; }
.feature-fast { background: #f7d0bf; }
.feature-open { background: #dcd3f2; }

.footer { display: flex; align-items: center; gap: 20px; padding: 25px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.brand-mark.small { width: 19px; height: 19px; gap: 2px; padding: 3px; border-radius: 6px 6px 6px 1px; }
.brand-mark.small span { width: 3px; }
.brand-mark.small span:nth-child(1) { height: 5px; }
.brand-mark.small span:nth-child(2) { height: 8px; }
.brand-mark.small span:nth-child(3) { height: 11px; }
.footer > p { flex: 1; text-align: center; }
.footer-credit a { color: var(--ink); }

noscript { display: block; padding: 18px; background: #f7d0bf; color: var(--ink); text-align: center; }

@media (max-width: 900px) {
  .page-width { width: min(100% - 40px, 680px); }
  .topbar { height: 74px; }
  .topnav { gap: 16px; }
  .hero { min-height: 0; padding: 52px 0 70px; }
  .hero-copy { width: 64%; }
  .hero-orbit { width: 245px; height: 230px; margin: 0 -3px 0 0; transform: scale(.78) rotate(9deg); transform-origin: center right; }
  .workspace-grid { grid-template-columns: 1fr; }
  .input-column { border-right: 0; }
  .settings-column { border-top: 1px solid #e9e9e2; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .how-intro { grid-column: span 2; padding-bottom: 20px; }
}

@media (max-width: 600px) {
  .page-width { width: calc(100% - 28px); }
  .topbar { height: 67px; }
  .topnav { display: none; }
  .hero { display: block; padding: 40px 0 52px; }
  .hero-copy { width: 100%; }
  .hero h1 { margin-top: 15px; font-size: clamp(53px, 16vw, 74px); }
  .hero-lede { font-size: 14px; }
  .hero-orbit { width: 260px; height: 230px; margin: 23px auto -3px; transform: scale(.74) rotate(9deg); transform-origin: center; }
  .compressor-section, .results-section, .how-section { padding-bottom: 74px; }
  .workspace-bar { height: auto; min-height: 58px; align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px; }
  .workspace-actions { width: 100%; justify-content: space-between; }
  .input-column, .settings-column { padding: 16px; }
  .dropzone { min-height: 185px; }
  .queue-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .file-card { gap: 7px; }
  .file-status { min-width: 34px; }
  .results-layout { grid-template-columns: 1fr; }
  .preview-panel, .summary-panel { min-height: 0; padding: 18px; }
  .summary-panel { min-height: 260px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-intro { grid-column: auto; }
  .feature-card { min-height: 190px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 13px; }
  .footer > p { text-align: left; }
}
