:root {
  --cream:#f5f3ec;
  --navy:#23354b;
  --blue:#a8c7e8;
  --lime:#d8ef9b;
  --white:#fff;
  --muted:#606b75;
  --line:#d8dbd8
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--cream);
  color:var(--navy);
  font-family:Arial,Helvetica,sans-serif;
  font-size:14px
}
.wrap {
  width:min(1200px,calc(100% - 96px));
  margin-inline:auto
}
button,input,select {
  font:inherit;
  color:inherit
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
a {
  color:inherit
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid var(--navy);
  outline-offset:4px
}
[hidden] {
  display:none!important
}
.site-header {
  height:106px;
  display:flex;
  align-items:center;
  gap:24px;
  border-bottom:1px solid var(--line)
}
.brand {
  display:flex;
  gap:10px;
  align-items:center;
  text-decoration:none;
  font-size:25px;
  font-weight:800;
  letter-spacing:-1.2px
}
.brand-dot {
  color:#527aa3
}
.header-label {
  font-size:12px;
  border-left:1px solid #b9bfbe;
  padding-left:24px;
  color:var(--muted)
}
.intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:51px 0 42px
}
.eyebrow,.section-label,.workspace-top,.format-tags,.empty-caption,.empty-bottom,.result-detail>span {
  font-family:Consolas,'Courier New',monospace;
  letter-spacing:1.1px;
  font-size:10px
}
.eyebrow {
  display:flex;
  gap:8px;
  align-items:center;
  font-weight:600
}
.tiny-square {
  width:7px;
  height:7px;
  background:var(--blue);
  border:1px solid var(--navy);
  display:inline-block
}
h1 {
  font-size:clamp(44px,5.1vw,65px);
  line-height:1.04;
  letter-spacing:-3.4px;
  margin:19px 0 19px;
  font-weight:750;
  position:relative
}
.highlight {
  position:relative;
  isolation:isolate
}
.highlight:after {
  content:'';
  position:absolute;
  z-index:-1;
  left:-3px;
  right:-8px;
  height:15px;
  bottom:4px;
  background:var(--blue);
  transform:rotate(-2deg)
}
.intro p {
  line-height:1.75;
  color:var(--muted);
  font-size:14px;
  margin:0
}
.workstation {
  background:var(--white);
  border:1.5px solid var(--navy);
  border-radius:12px;
  overflow:hidden;
  box-shadow:4px 5px 0 #23354b0a;
  animation:enter .55s ease both
}
.workspace-top {
  height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 25px;
  border-bottom:1px solid var(--line);
  font-weight:bold
}
.workspace-top>span:first-child {
  display:flex;
  gap:9px;
  align-items:center
}
.status-dot {
  width:6px;
  height:6px;
  background:var(--navy);
  border-radius:50%
}
.workspace-grid {
  display:grid;
  grid-template-columns:40% 60%;
  min-height:373px
}
.controls-panel {
  padding:24px;
  border-right:1px solid var(--line)
}
.section-label {
  display:flex;
  justify-content:space-between;
  font-size:9px;
  letter-spacing:.7px;
  color:var(--muted);
  margin-bottom:18px
}
.section-label span:first-child {
  font-weight:bold;
  color:var(--navy)
}
.dropzone {
  border:1.5px dashed var(--navy);
  border-radius:7px;
  width:100%;
  background:#e9f1f9;
  display:flex;
  align-items:center;
  flex-direction:column;
  padding:17px 10px 24px;
  transition:background .2s,transform .2s
}
.dropzone:hover,.dropzone.dragging {
  background:#d5e5f6
}
.dropzone.dragging {
  outline:4px solid #a8c7e860;
  transform:scale(1.01)
}
.upload-art {
  width:172px;
  height:113px;
  margin-bottom:7px
}
.dropzone strong {
  font-size:18px;
  letter-spacing:-.4px
}
.dropzone>span:not(.format-tags) {
  font-size:12px;
  margin-top:9px
}
.dropzone u {
  text-underline-offset:3px
}
.format-tags {
  font-size:9px;
  margin-top:23px;
  letter-spacing:.5px;
  color:#52677d
}
.format-tags i {
  font-style:normal;
  margin-inline:6px
}
.device-note {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:10px;
  color:var(--muted);
  margin-top:18px
}
.device-note svg {
  width:13px;
  height:14px;
  stroke:var(--navy);
  stroke-width:1.6;
  fill:none
}
.preview-panel {
  padding:24px 25px 0;
  display:flex;
  flex-direction:column;
  min-width:0
}
.preview-empty {
  background:var(--cream);
  border-radius:6px;
  flex:1;
  min-height:259px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  position:relative;
  overflow:hidden
}
.empty-graphic svg {
  width:87px;
  height:66px;
  stroke:#758a9d;
  fill:none;
  stroke-width:1.5;
  transform:rotate(6deg)
}
.preview-empty h2 {
  font-size:23px;
  line-height:1.16;
  letter-spacing:-.7px;
  margin:12px 0 9px
}
.preview-empty p {
  font-size:11px;
  color:var(--muted);
  margin:0
}
.empty-caption {
  font-size:8px;
  letter-spacing:1px;
  margin-top:26px;
  color:var(--muted)
}
.preview-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 0;
  font-size:10px;
  color:var(--muted)
}
.empty-bottom {
  padding:20px 24px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:8px;
  letter-spacing:.65px
}
.benefits {
  display:flex;
  justify-content:center;
  gap:32px;
  padding:23px;
  font-size:11px;
  color:var(--muted)
}
.benefits b {
  margin-right:6px;
  color:var(--navy)
}
footer {
  border-top:1px solid var(--line);
  padding:24px 0 26px;
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:var(--muted);
  margin-top:25px
}
.file-row {
  display:flex;
  align-items:center;
  gap:10px;
  padding-bottom:17px;
  margin-bottom:18px;
  border-bottom:1px solid var(--line)
}
#filename {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:bold;
  font-size:12px;
  flex:1
}
.text-button {
  border:0;
  background:none;
  padding:5px 0;
  font-size:11px;
  text-decoration:underline;
  text-underline-offset:3px;
  white-space:nowrap
}
.text-button:hover {
  color:#486887
}
.field-label {
  font-size:12px;
  font-weight:bold
}
select {
  display:block;
  width:100%;
  border:1px solid #aab4bb;
  border-radius:5px;
  background:var(--white);
  padding:11px;
  margin:8px 0 21px
}
.quality-heading,.resize-heading {
  display:flex;
  justify-content:space-between;
  align-items:center
}
output {
  font-family:Consolas,monospace;
  font-weight:bold;
  font-size:13px
}
input[type=range] {
  accent-color:var(--navy);
  width:100%;
  cursor:pointer
}
#quality {
  appearance:none;
  height:5px;
  background:linear-gradient(to right,var(--blue) var(--quality,78%),#e1e5e7 var(--quality,78%));
  border-radius:8px;
  margin:18px 0 8px
}
#quality::-webkit-slider-thumb {
  appearance:none;
  width:17px;
  height:17px;
  background:var(--navy);
  border:3px solid white;
  border-radius:50%;
  box-shadow:0 0 0 1px var(--navy)
}
#quality::-moz-range-thumb {
  width:12px;
  height:12px;
  background:var(--navy);
  border:3px solid white;
  border-radius:50%;
  box-shadow:0 0 0 1px var(--navy)
}
#quality:disabled {
  opacity:.35;
  cursor:not-allowed
}
.field-hint {
  font-size:10px;
  color:var(--muted);
  line-height:1.5;
  margin:6px 0 19px
}
.dimensions {
  display:flex;
  align-items:flex-end;
  gap:10px;
  margin-top:10px
}
.dimensions label {
  font-size:10px;
  flex:1;
  min-width:0;
  color:var(--muted)
}
.dimensions input {
  display:block;
  width:100%;
  margin-top:7px;
  border:1px solid #aab4bb;
  border-radius:5px;
  padding:10px;
  font-family:Consolas,monospace;
  background:white
}
.lock-button {
  height:38px;
  width:31px;
  border:1px solid var(--navy);
  border-radius:4px;
  background:var(--blue);
  font-size:19px;
  flex-shrink:0
}
.lock-button[aria-pressed=false] {
  background:var(--cream);
  opacity:.65
}
.unit {
  font-family:monospace;
  font-size:10px;
  padding-bottom:12px
}
.format-note {
  font-size:10px;
  line-height:1.6;
  background:var(--cream);
  padding:10px;
  border-radius:4px
}
.comparison {
  position:relative;
  flex:1;
  min-height:320px;
  background-color:#f5f3ec;
  background-image:linear-gradient(45deg,#e2e5e3 25%,transparent 25%),linear-gradient(-45deg,#e2e5e3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e5e3 75%),linear-gradient(-45deg,transparent 75%,#e2e5e3 75%);
  background-size:20px 20px;
  background-position:0 0,0 10px,10px -10px,-10px 0;
  border-radius:6px;
  overflow:hidden;
  --split:50%
}
.comparison>img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain
}
.original-image {
  clip-path:inset(0 calc(100% - var(--split)) 0 0)
}
.comparison-line {
  position:absolute;
  left:var(--split);
  top:0;
  bottom:0;
  width:2px;
  background:white;
  box-shadow:0 0 3px #23354b88;
  pointer-events:none
}
.comparison-line span {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  background:white;
  color:var(--navy);
  border:1px solid var(--navy);
  border-radius:50%;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  font-size:21px;
  letter-spacing:3px;
  padding-left:3px
}
.preview-label {
  position:absolute;
  top:13px;
  background:#fffffff0;
  padding:6px 9px;
  border:1px solid #23354b22;
  border-radius:3px;
  font-size:9px;
  pointer-events:none
}
.original-label {
  left:12px
}
.compressed-label {
  right:12px
}
#comparison-slider {
  appearance:none;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:ew-resize;
  touch-action:pan-y
}
.comparison:focus-within {
  outline:3px solid var(--navy);
  outline-offset:3px
}
.results {
  border-top:1px solid var(--navy);
  display:flex;
  gap:23px;
  align-items:center;
  padding:22px 24px
}
.savings {
  background:var(--lime);
  border:1px solid var(--navy);
  border-radius:6px;
  padding:15px 20px;
  min-width:126px;
  text-align:center
}
.savings strong {
  display:block;
  font-family:Consolas,monospace;
  letter-spacing:-2px;
  font-size:36px;
  line-height:1
}
.savings>span {
  font-family:monospace;
  font-size:9px;
  letter-spacing:1px;
  display:block;
  margin-top:7px
}
.savings.larger {
  background:var(--blue)
}
.result-detail {
  display:flex;
  flex-direction:column;
  gap:8px
}
.result-detail>span {
  font-size:8px;
  color:var(--muted)
}
.result-detail strong {
  font-family:Consolas,monospace;
  font-size:20px;
  white-space:nowrap
}
.result-detail small {
  font-family:Consolas,monospace;
  font-size:9px;
  color:var(--muted)
}
.result-arrow {
  font-size:22px;
  color:#81909b
}
.download-actions {
  margin-left:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px
}
.primary-button {
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  background:var(--navy);
  border:1px solid var(--navy);
  color:white;
  font-size:12px;
  font-weight:bold;
  border-radius:5px;
  padding:16px 18px;
  transition:transform .2s,box-shadow .2s
}
.primary-button span {
  font-size:20px;
  line-height:12px
}
.primary-button:hover:enabled {
  transform:translateY(-2px);
  box-shadow:3px 4px 0 var(--blue)
}
.primary-button:disabled {
  opacity:.5;
  cursor:wait
}
.workstation.processing .status-dot {
  animation:pulse .7s infinite alternate
}
.workstation.processing .comparison {
  opacity:.65
}
.toast {
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  max-width:calc(100% - 32px);
  width:max-content;
  background:var(--navy);
  color:white;
  border-radius:7px;
  padding:15px 22px;
  font-size:13px;
  box-shadow:0 4px 18px #23354b33;
  z-index:10
}
.privacy-consent {
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9;
  width:min(310px,calc(100vw - 36px));
  padding:18px;
  border:1.5px solid var(--navy);
  border-radius:10px;
  background:var(--blue);
  color:var(--navy);
  box-shadow:5px 5px 0 var(--navy);
  animation:enter .35s ease both
}
.privacy-consent h2 {
  margin:0 0 8px;
  font-size:16px;
  line-height:1.25
}
.privacy-consent p {
  margin:0 0 15px;
  font-size:12px;
  line-height:1.5
}
.privacy-consent button {
  width:100%;
  min-height:40px;
  border:1.5px solid var(--navy);
  border-radius:6px;
  background:var(--white);
  color:var(--navy);
  font-size:12px;
  font-weight:bold;
  box-shadow:2px 3px 0 var(--navy)
}
.privacy-consent button:active {
  transform:translate(2px,3px);
  box-shadow:none
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.result-detail strong,.savings strong {
  animation:enter .25s ease
}
@keyframes enter {
  from {
    opacity:0;
    transform:translateY(6px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}
@keyframes pulse {
  to {
    opacity:.25
  }
}
@media(min-width:1450px) {
  .intro {
    padding-top:65px;
    padding-bottom:50px
  }
  .workspace-grid {
    min-height:405px
  }
  .dropzone {
    padding-top:28px;
    padding-bottom:32px
  }
  .upload-art {
    height:128px
  }
  .preview-empty {
    min-height:290px
  }
}
@media(max-width:1050px) {
  .wrap {
    width:calc(100% - 48px)
  }
  .results {
    gap:16px;
    flex-wrap:wrap
  }
  .download-actions {
    flex:1;
    min-width:230px
  }
  .workspace-grid {
    grid-template-columns:42% 58%
  }
}
@media(max-width:720px) {
  .privacy-consent {
    right:14px;
    bottom:14px;
    width:min(310px,calc(100vw - 28px));
    padding:16px
  }
  .wrap {
    width:calc(100% - 32px)
  }
  .site-header {
    height:79px;
    gap:8px
  }
  .brand {
    font-size:22px
  }
  .header-label {
    display:none
  }
  .intro {
    display:block;
    padding:35px 0 27px
  }
  h1 {
    font-size:48px;
    letter-spacing:-2.5px
  }
  .eyebrow {
    font-size:9px
  }
  .workspace-top {
    padding:0 17px;
    font-size:9px
  }
  .workspace-grid {
    grid-template-columns:1fr
  }
  .controls-panel {
    padding:19px;
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .dropzone {
    padding-top:14px
  }
  .upload-art {
    height:100px
  }
  .preview-panel {
    padding:20px 19px 0
  }
  .preview-empty {
    min-height:260px
  }
  .comparison {
    min-height:300px
  }
  .empty-bottom {
    padding:17px 19px
  }
  .benefits {
    gap:15px;
    padding:20px 0;
    font-size:9px
  }
  .results {
    padding:19px;
    gap:17px
  }
  .savings {
    min-width:105px;
    padding:14px 10px
  }
  .savings strong {
    font-size:30px
  }
  .result-detail strong {
    font-size:17px
  }
  .result-detail small {
    font-size:8px
  }
  .result-arrow {
    display:none
  }
  .download-actions {
    flex-basis:100%;
    margin-top:4px
  }
  .primary-button {
    width:100%;
    min-height:48px
  }
  .text-button {
    min-height:34px
  }
  footer {
    margin-top:8px;
    gap:15px;
    flex-wrap:wrap;
    font-size:9px
  }
  .field-hint {
    font-size:11px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}

.footer-brand {
  font-size:15px;
  font-weight:700;
  color:var(--navy);
  letter-spacing:-.6px;
}
footer a {
  text-decoration:none;
  text-underline-offset:3px;
}
footer a:hover {
  text-decoration:underline;
}
