:root {
  color-scheme:light;
  --bg:#f5f6f3;
  --ink:#1e302a;
  --muted:#718078;
  --green:#176c54;
  --line:#dfe5df;
  --white:#fff;
  --soft:#e9f0e9;
  font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif
}

* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-size:15px
}
a {
  color:inherit;
  text-decoration:none
}
button,input,select {
  font:inherit
}
button,label.button {
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.55
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,label.button:focus-within {
  outline:3px solid #81bdaa;
  outline-offset:4px
}
[hidden] {
  display:none!important
}

.site-header,main,footer {
  width:min(1120px,calc(100% - 64px));
  margin:auto
}
.site-header {
  height:92px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:21px;
  font-weight:750;
  letter-spacing:-.6px
}
.brand-icon {
  display:grid;
  place-items:center;
  background:var(--green);
  color:white;
  width:33px;
  height:33px;
  border-radius:9px;
  font-size:30px;
  font-weight:400
}
.version {
  font-size:11px;
  color:var(--muted);
  font-weight:500;
  letter-spacing:1px;
  border-left:1px solid #ccd5cd;
  margin-left:8px;
  padding-left:18px
}
.header-note {
  color:var(--muted);
  font-size:12px;
  display:flex;
  align-items:center;
  gap:8px
}
.live-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green)
}

.intro {
  padding:64px 0 38px
}
.eyebrow {
  font-size:10px;
  font-weight:750;
  letter-spacing:2.2px;
  color:var(--green);
  margin:0 0 15px
}
h1 {
  font-size:clamp(34px,4.5vw,54px);
  line-height:1.3;
  letter-spacing:-1.8px;
  margin:0 0 18px;
  font-weight:750
}
.title-dot {
  color:var(--green)
}
.subtitle {
  color:#65776b;
  font-size:17px;
  line-height:1.8;
  margin:0
}
.privacy {
  display:flex;
  gap:8px;
  align-items:center;
  font-size:12px;
  color:var(--muted);
  margin:22px 0 0;
  line-height:1.8
}
.privacy svg {
  width:16px;
  height:18px;
  fill:none;
  stroke:var(--green);
  stroke-width:1.6;
  flex-shrink:0
}

.upload-card {
  display:flex;
  align-items:center;
  gap:24px;
  background:var(--white);
  border:1px dashed #aebeb1;
  border-radius:18px;
  padding:36px;
  box-shadow:0 5px 24px #243a2410;
  transition:background .15s,border-color .15s
}
.upload-card.dragover {
  background:#e2f0e7;
  border-color:var(--green)
}
.upload-icon {
  height:68px;
  width:68px;
  border-radius:16px;
  background:var(--soft);
  display:grid;
  place-items:center;
  flex-shrink:0
}
.upload-icon svg {
  width:33px;
  fill:none;
  stroke:var(--green);
  stroke-width:1.5
}
.upload-copy {
  flex:1
}
.upload-copy h2 {
  font-size:19px;
  margin:0 0 9px;
  font-weight:650
}
.upload-copy p {
  font-size:13px;
  color:#718078;
  margin:0 0 8px
}
.upload-copy>span {
  font-size:11px;
  color:#8d9990
}
.button {
  min-height:46px;
  border-radius:9px;
  border:1px solid transparent;
  padding:0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  font-weight:600;
  font-size:13px;
  white-space:nowrap
}
.primary {
  background:var(--green);
  color:white;
  box-shadow:0 3px 5px #155a5010
}
.primary:hover {
  background:#10583f
}
.secondary {
  background:white;
  border-color:var(--line);
  color:var(--green)
}
.secondary:hover {
  background:var(--soft)
}
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap
}
.upload-card:focus-within {
  outline:3px solid #81bdaa;
  outline-offset:4px
}
.status {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  margin:15px 3px 30px;
  min-height:23px
}
.status.error {
  color:#a83b2b
}
.status.warning {
  color:#956019
}
.status.busy {
  color:var(--green)
}
.status.busy::before {
  content:"";
  display:inline-block;
  width:10px;
  height:10px;
  border:2px solid #c1d8ca;
  border-top-color:var(--green);
  border-radius:50%;
  margin-right:8px;
  vertical-align:middle;
  animation:spin 1s linear infinite
}
@keyframes spin {
  to {
  transform:rotate(360deg)
}

}

.workspace-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:38px 0 20px
}
.workspace-heading .eyebrow {
  margin-bottom:7px
}
.workspace-heading h2 {
  font-size:24px;
  margin:0;
  letter-spacing:-.5px
}
.comparison {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px
}
.image-card {
  border:1px solid var(--line);
  border-radius:14px;
  background:white;
  overflow:hidden;
  min-width:0
}
.result-card {
  border-color:#b8cec0
}
.card-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:17px 20px;
  border-bottom:1px solid var(--line)
}
.card-heading h3 {
  font-size:14px;
  margin:0;
  display:flex;
  align-items:center;
  gap:9px
}
.step {
  font-size:10px;
  font-weight:500;
  color:var(--muted);
  background:var(--bg);
  padding:4px 5px;
  border-radius:4px
}
.dimension {
  font-size:11px;
  color:var(--muted);
  font-variant-numeric:tabular-nums
}
.image-stage {
  height:430px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background-color:#eff1ed;
  background-image:linear-gradient(45deg,#e6eae540 25%,transparent 25%),linear-gradient(-45deg,#e6eae540 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e6eae540 75%),linear-gradient(-45deg,transparent 75%,#e6eae540 75%);
  background-size:16px 16px;
  background-position:0 0,0 8px,8px -8px,-8px 0
}
.original-wrapper {
  position:relative;
  display:flex;
  max-width:100%;
  max-height:100%;
  overflow:hidden;
  border-radius:2px
}
#original-image {
  display:block;
  max-width:100%;
  max-height:394px;
  object-fit:contain;
  width:auto;
  height:auto
}
#crop-outline {
  position:absolute;
  left:0;
  right:0;
  border-top:2px solid #67daa6;
  border-bottom:2px solid #67daa6;
  box-shadow:0 0 0 10000px #051e2070;
  pointer-events:none
}
#preview {
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  border-radius:2px;
  box-shadow:0 4px 20px #17281a20
}
.card-foot {
  font-size:11px;
  color:var(--muted);
  padding:13px 20px;
  margin:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border-top:1px solid var(--line)
}

.adjustment-card {
  background:white;
  border:1px solid var(--line);
  border-radius:14px;
  padding:26px;
  margin:22px 0 0
}
.adjustment-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}
.adjustment-title h3 {
  font-size:16px;
  margin:0 0 7px
}
.adjustment-title p {
  font-size:12px;
  color:var(--muted);
  margin:0
}
.text-button {
  background:none;
  border:0;
  padding:10px 0;
  color:var(--green);
  font-size:12px;
  flex-shrink:0
}
.sliders {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  margin-top:27px
}
.slider-control>label {
  font-size:12px;
  color:#63766b
}
.slider-row {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:7px;
  color:var(--muted);
  font-size:12px
}
input[type=range] {
  width:100%;
  min-width:50px;
  accent-color:var(--green);
  height:36px;
  cursor:pointer
}
.pixel-input {
  width:78px;
  flex-shrink:0;
  padding:8px 5px 8px 10px;
  border:1px solid var(--line);
  border-radius:6px;
  color:var(--ink);
  font-variant-numeric:tabular-nums
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  background:var(--bg);
  padding:18px 20px;
  border-radius:9px;
  margin:24px 0
}
.metrics dt {
  font-size:11px;
  color:var(--muted);
  margin-bottom:8px
}
.metrics dd {
  margin:0;
  font-size:16px;
  font-weight:600;
  font-variant-numeric:tabular-nums
}
.export-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.format-control {
  display:flex;
  align-items:center;
  gap:12px
}
.format-control label {
  font-size:12px;
  color:var(--muted)
}
select {
  background:white;
  border:1px solid var(--line);
  border-radius:7px;
  padding:10px;
  color:var(--ink);
  font-size:12px;
  min-height:44px
}
.export-note {
  font-size:11px;
  color:var(--muted);
  margin:15px 0 0;
  line-height:1.8
}
.how-it-works {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:36px;
  margin:60px 0 65px
}
.how-it-works article {
  border-top:1px solid var(--line);
  padding-top:23px
}
.guide-number {
  font-size:11px;
  color:var(--green);
  font-weight:600;
  letter-spacing:1px
}
.how-it-works h3 {
  font-size:14px;
  margin:16px 0 9px
}
.how-it-works p {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  margin:0
}
footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:25px 0 30px;
  border-top:1px solid var(--line);
  font-size:11px;
  color:var(--muted)
}
footer>span:first-child {
  font-weight:700;
  color:var(--green)
}

@media(max-width:700px) {
  .site-header,main,footer {
  width:calc(100% - 36px)
}
.site-header {
  height:72px
}
.brand {
  font-size:19px
}
.version {
  display:none
}
.header-note {
  font-size:10px
}
.intro {
  padding:40px 0 28px
}
.eyebrow {
  font-size:9px
}
h1 {
  font-size:36px;
  letter-spacing:-1px
}
.subtitle {
  font-size:14px;
  max-width:270px
}
.privacy {
  font-size:11px;
  align-items:flex-start;
  margin-top:18px
}
.privacy svg {
  margin-top:2px
}
.upload-card {
  flex-wrap:wrap;
  padding:24px 20px;
  gap:16px
}
.upload-icon {
  width:49px;
  height:49px;
  border-radius:12px
}
.upload-icon svg {
  width:26px
}
.upload-copy h2 {
  font-size:16px
}
.upload-copy p {
  font-size:11px
}
.upload-copy>span {
  font-size:10px;
  display:block;
  line-height:1.8
}
.upload-button {
  width:100%;
  margin-top:4px;
  min-height:48px
}
.status {
  font-size:11px;
  margin-bottom:20px
}
.comparison {
  grid-template-columns:1fr;
  gap:16px
}
.image-stage {
  height:350px
}
#original-image {
  max-height:314px
}
.workspace-heading {
  margin-top:28px
}
.workspace-heading h2 {
  font-size:21px
}
.workspace-heading .button {
  padding:0 13px;
  font-size:11px;
  min-height:40px
}
.adjustment-card {
  padding:20px 16px
}
.adjustment-title {
  align-items:flex-start
}
.adjustment-title p {
  font-size:10px
}
.text-button {
  font-size:11px;
  padding:2px 0
}
.sliders {
  grid-template-columns:1fr;
  gap:18px;
  margin-top:22px
}
.metrics {
  grid-template-columns:1fr 1fr;
  gap:20px;
  padding:16px
}
.metrics dd {
  font-size:15px
}
.export-row {
  flex-direction:column;
  align-items:stretch
}
.format-control {
  justify-content:space-between
}
.export-row .button {
  min-height:49px
}
.how-it-works {
  grid-template-columns:1fr;
  gap:21px;
  margin:36px 0
}
.how-it-works article {
  padding-top:16px;
  display:grid;
  grid-template-columns:40px 1fr;
  column-gap:10px
}
.guide-number {
  grid-row:1/3;
  padding-top:3px
}
.how-it-works h3 {
  margin:0 0 7px
}
.how-it-works p {
  grid-column:2
}
footer {
  flex-wrap:wrap;
  font-size:10px
}
footer a {
  margin-left:auto
}

}

@media(prefers-reduced-motion:reduce) {
  * {
  animation:none!important;
  transition:none!important
}

}

