/* Navigation, hero and CTA adapted from Langford Kwabena's MIT Apple landing page.
   See product/saas/THIRD_PARTY_NOTICES.md. No external fonts or UI runtime. */
.home-page {
  background: #fff;
  color: #1d1d1f;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.home-page .page-shell { width: min(1120px, calc(100% - 32px)); margin: auto; }
.home-page h1, .home-page h2, .home-page h3 { font-family: inherit; font-weight: 600; }
.home-page a { color: inherit; }
.home-page a:focus-visible, .home-page button:focus-visible, .home-page input:focus-visible { outline: 2px solid #515154; outline-offset: 4px; }
.home-page .skip-link { background: #1d1d1f; color: #fff; }
.home-page .messages { max-width: 720px; margin: 20px auto 0; }
.home-page .notice { background: #f5f5f7; border-color: #e5e5e7; font-size: 14px; }
.home-brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; font-weight: 650; line-height: 1.2; letter-spacing: -.05em; text-decoration: none; white-space: nowrap; }
.brand-dot { color: #1d1d1f; }
.home-workspace { padding-top: 36px; }
.home-intro { text-align: center; padding-bottom: 26px; }
.home-intro h1 { max-width: 800px; margin: 0 auto; font-size: clamp(32px, 8.5vw, 46px); line-height: 1.12; letter-spacing: -.055em; text-wrap: balance; }
.home-intro h1 > span { color: #6e6e73; }
.home-editor { display: flex; flex-direction: column; gap: 28px; }
.start-upload { min-width: 0; width: 100%; }
.start-card { padding: 0; background: #fff; border: 1px solid #ededf0; border-radius: 24px; overflow: hidden; box-shadow: none; }
.start-dropzone { min-height: 258px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 24px 18px; text-align: center; transition: background .15s, border-color .15s; }
.start-dropzone.drag-over { background: #e8e8eb; outline: 2px dashed #6e6e73; outline-offset: -6px; border-radius: 24px; }
.start-dropzone.is-busy { opacity: .55; }
.start-upload-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; color: #6e6e73; }
.start-upload-icon .icon { width: 30px; height: 30px; stroke-width: 1.4; }
.start-dropzone h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.04em; }
.home-page .button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 12px 22px; border: 1px solid #1d1d1f; border-radius: 99px; background: #1d1d1f; color: #fff; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: -.01em; box-shadow: none; transition: background .15s; }
.home-page .button:hover:enabled, .home-page .button[href]:hover { background: #363638; border-color: #363638; color: #fff; text-decoration: none; }
.home-page .button:disabled { cursor: wait; opacity: .45; }
.home-page .start-choose { width: min(100%, 280px); min-width: 0; margin-top: 20px; }
.start-choose .icon { width: 18px; height: 18px; }
.home-showcase { order: 1; min-width: 0; width: 100%; border: 0; border-radius: 24px; background: #fff; overflow: hidden; }
.image-compare { position: relative; isolation: isolate; aspect-ratio: 1.15; background: #fff; overflow: hidden; --position: 50%; }
.image-compare img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.compare-after { position: absolute; inset: 0; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--position)) 0 0); background: #fff; }
.compare-label { position: absolute; top: 14px; padding: 5px 11px; border-radius: 99px; background: #ffffffed; color: #1d1d1f; font-size: 12px; font-weight: 500; pointer-events: none; }
.compare-label-before { left: 14px; }
.compare-label-after { right: 14px; }
.compare-handle { position: absolute; left: var(--position); top: 0; bottom: 0; width: 2px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 4px #0002; pointer-events: none; }
.compare-handle > span { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%); background: #fff; color: #494950; box-shadow: 0 2px 15px #0002; font-size: 24px; line-height: 1; }
.compare-handle i { height: 13px; width: 1px; background: #d2d2d7; }
.image-compare .compare-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.image-compare:has(.compare-range:focus-visible) .compare-handle > span { outline: 2px solid #515154; outline-offset: 3px; }
.home-showcase figcaption { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; font-size: 12px; color: #6e6e73; }
.compare-hint-icon { font-size: 18px; }
.showcase-caption-detail { display: none; }
.start-legal { max-width: 400px; margin: 12px auto 0; font-size: 11px; line-height: 1.5; color: #6e6e73; text-align: center; }
.start-legal-links { white-space: nowrap; }
.start-legal a { display: inline; text-decoration: none; }
.start-legal a:hover { text-decoration: underline; }
.home-how { margin-top: 36px; padding-top: 32px; border-top: 1px solid #e8e8ed; }
.section-intro h2, .home-credit-detail h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.045em; }
.section-intro h2 span, .home-credit-detail h2 span { color: #6e6e73; }
.home-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: #6e6e73; }
.home-steps { display: grid; gap: 26px; margin-top: 28px; }
.home-steps article { display: grid; grid-template-columns: 28px 1fr; gap: 0 12px; }
.step-number { margin-top: 4px; font-size: 12px; color: #86868b; }
.home-steps h3 { font-size: 19px; letter-spacing: -.03em; }
.home-steps p { grid-column: 2; max-width: 380px; margin-top: 7px; font-size: 14px; line-height: 1.7; color: #6e6e73; }
.home-credit-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 36px; padding: 26px 20px; border-radius: 24px; background: #f5f5f7; }
.home-credit-detail h2 { margin-top: 12px; font-size: 30px; }
.home-credit-detail > div > p:not(.home-eyebrow) { margin-top: 17px; font-size: 13px; line-height: 1.8; color: #6e6e73; }
.home-pricing-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; font-size: 13px; font-weight: 500; text-decoration: none; }
.home-pricing-link:hover { text-decoration: underline; }
.home-pricing-link .icon { width: 16px; height: 16px; }
.file-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.file-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 16px 12px; border: 1px solid #e7e7eb; border-radius: 16px; background: #fff; }
.file-card > strong { font-size: 12px; font-weight: 600; line-height: 1.6; letter-spacing: -.02em; }
.file-card > span:last-child { margin-top: 5px; font-size: 11px; line-height: 1.7; color: #6e6e73; }
.file-extension { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #6e6e73; }
.home-notes { margin-top: 22px; font-size: 11px; line-height: 1.8; color: #6e6e73; }
.home-notes p + p { margin-top: 9px; }
.home-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 15px; margin-top: 20px; padding: 17px 0 23px; border-top: 1px solid #e8e8ed; }
.home-footer .home-brand { font-size: 15px; }
.home-footer > span { margin-left: auto; font-size: 11px; color: #6e6e73; }
.home-footer nav { display: flex; width: 100%; gap: 22px; }
.home-footer nav > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; text-decoration: none; color: #6e6e73; }
.start-progress { padding: 24px 12px 12px; }
.start-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; line-height: 1.6; }
.start-progress > div > span { min-width: 0; overflow-wrap: anywhere; }
.start-progress strong { font-weight: 500; white-space: nowrap; color: #6e6e73; }
.start-progress progress { display: block; width: 100%; height: 5px; margin-top: 17px; border: 0; border-radius: 20px; accent-color: #1d1d1f; background: #ececf0; }
.start-progress progress::-webkit-progress-bar { background: #ececf0; border-radius: 20px; }
.start-progress progress::-webkit-progress-value { background: #1d1d1f; border-radius: 20px; }
.start-progress > p { margin-top: 15px; font-size: 12px; line-height: 1.7; color: #6e6e73; text-align: center; }
.start-error { margin: 16px; padding: 14px; border: 1px solid #f0d4cd; border-radius: 12px; background: #fff4f2; color: #b42318; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.start-account-help { display: flex; justify-content: center; gap: 23px; flex-wrap: wrap; margin-top: 11px; }
.start-account-help > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration: underline; }
.home-result { text-align: center; }
.home-result #result-message { margin: 7px auto 0; max-width: 400px; font-size: 12px; line-height: 1.7; color: #6e6e73; }
.result-picture { border-radius: 12px; border: 1px solid #ededf0; aspect-ratio: 1.2; }
.result-actions { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 17px; }
.result-actions > .button-secondary { background: #f2f2f4; color: #1d1d1f; border-color: #e5e5e7; }
.result-account-note { flex-basis: 100%; font-size: 12px; line-height: 1.65; color: #6e6e73; }
.result-meta { margin-top: 13px; font-size: 11px; line-height: 1.7; color: #6e6e73; overflow-wrap: anywhere; }
.result-meta:empty { display: none; }
.result-warnings { margin-top: 13px; padding: 10px 12px; border: 1px solid #eee6d2; border-radius: 9px; background: #fcf8ee; color: #816027; font-size: 11px; line-height: 1.75; text-align: left; }
.result-next { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; padding: 9px 14px; border: 0; background: none; color: #515154; font-size: 13px; }
.result-next > span { font-size: 18px; }
.result-processing { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; height: 167px; }
.home-workspace:is([data-state="uploading"], [data-state="restoring"], [data-state="processing"]) .result-processing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 25%, rgb(29 29 31 / 6%) 40%, rgb(255 255 255 / 55%) 50%, rgb(29 29 31 / 6%) 60%, transparent 75%);
  animation: processing-sheen 2.8s ease-in-out infinite;
}
.processing-orbit, .processing-dots { position: relative; z-index: 2; }
@keyframes processing-sheen {
  0% { transform: translateX(-100%); opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
.processing-orbit { display: grid; place-items: center; width: 69px; height: 69px; border-radius: 24px; background: transparent; color: #515154; }
.processing-orbit .icon { width: 30px; height: 30px; animation: gentle-pulse 2s ease-in-out infinite; }
.processing-dots { display: flex; gap: 6px; }
.processing-dots i { width: 5px; height: 5px; background: #6e6e73; border-radius: 50%; animation: gentle-pulse 1.4s ease-in-out infinite; }
.processing-dots i:nth-child(2) { animation-delay: .2s; }
.processing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes gentle-pulse { 0%, 100% { opacity: .4; transform: scale(.9); } 50% { opacity: 1; transform: scale(1); } }
@media (min-width: 701px) {
  .home-page .page-shell { width: min(1120px, calc(100% - 48px)); }
  .home-workspace { padding-top: 54px; }
  .home-intro { padding-bottom: 36px; }
  .home-intro h1 { font-size: clamp(48px, 5.2vw, 66px); line-height: 1.08; }
  .home-editor { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; gap: 24px; }
  .home-showcase { order: -1; }
  .start-dropzone { min-height: 350px; padding: 30px 18px; }
  .start-dropzone h2 { font-size: 26px; }
  .image-compare { aspect-ratio: 1.4; }
  .home-how { margin-top: 56px; padding-top: 44px; }
  .section-intro h2 { font-size: 36px; }
  .home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
  .home-steps article { display: block; }
  .step-number { display: block; margin: 0 0 12px; }
  .home-steps p { margin-top: 11px; }
  .home-credit-detail { gap: 30px; padding: 36px; margin-top: 56px; }
  .file-cards { width: 100%; max-width: 560px; margin: auto; }
  .home-footer { flex-wrap: nowrap; gap: 25px; padding: 23px 0 29px; }
  .home-footer > span { margin-left: 0; }
  .home-footer nav { width: auto; margin-left: auto; }
}
@media (min-width: 1001px) {
  .home-page .page-shell { width: min(1120px, calc(100% - 64px)); }
  .home-workspace { padding-top: 64px; }
  .home-intro { padding-bottom: 40px; }
  .start-dropzone { min-height: 388px; }
  .start-upload-icon { width: 48px; height: 48px; margin-bottom: 18px; }
  .showcase-caption-detail { display: inline; }
  .home-credit-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 42px; }
  .home-credit-detail h2 { font-size: 35px; }
}
@media (max-width: 370px) {
  .home-workspace { padding-top: 28px; }
  .start-dropzone { padding: 22px 14px; }
  .start-dropzone h2 { font-size: 22px; }
  .home-credit-detail { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) { .home-page * { animation: none !important; transition: none !important; } }
@media (prefers-reduced-motion: reduce) { .home-page .home-workspace .result-processing::after { content: none; animation: none; } }

/* After the first upload, the user's photo owns a single focused workspace. */
.is-editing .home-workspace{padding-top:24px}.is-editing .home-editor{display:block;max-width:880px;margin:0 auto}.is-editing .start-upload{width:100%}.is-editing .start-card{padding:20px;border-radius:24px}.is-editing .home-result{padding:0}.result-heading{margin:0 0 17px}.home-result .result-status{font-size:24px;line-height:1.25;letter-spacing:-.04em;font-weight:600;color:#1d1d1f;margin:0;min-height:30px}.home-result[data-status=ready] .result-status{color:#1d1d1f}.result-name{font-size:11px;color:#6e6e73;line-height:1.6;margin:6px auto 0;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-name:empty{display:none}.is-editing .result-picture,.is-editing .result-processing{width:100%;height:clamp(270px,43svh,490px);aspect-ratio:auto;border-radius:14px}.is-editing .result-picture img{object-fit:contain;transform:none}.is-editing .result-processing{position:relative;background:#fff;border:1px solid #ededf0;overflow:hidden}.result-processing>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.result-processing.has-original .processing-orbit{position:absolute;right:16px;bottom:16px;width:42px;height:42px;border-radius:14px;box-shadow:0 2px 15px #0000000d;background:#fffffff2}.result-processing.has-original .processing-orbit .icon{width:23px;height:23px}.result-processing.has-original .processing-dots{display:none}.is-editing .result-actions{margin-top:19px;gap:10px}.is-editing .result-actions .button{font-size:14px;min-height:46px;padding:11px 23px}.is-editing .result-meta{font-size:11px;margin-top:10px}.is-editing .home-result #result-message{max-width:650px;font-size:12px;margin-top:7px}.is-editing .result-account-note{font-size:12px;max-width:540px;line-height:1.6}.is-editing .result-warnings{background:transparent;border:0;text-align:center;font-size:11px;padding:0;margin:8px auto 0;max-width:640px}.is-editing .result-next{font-size:13px;min-height:44px;margin-top:9px}.is-editing .start-progress{padding:12px 8px 4px}.is-editing .start-progress>div{justify-content:flex-end}.is-editing .start-progress>div>span{display:none}.is-editing .start-progress progress{margin-top:6px}.is-editing .start-progress>p{margin-top:7px}.is-editing .home-footer{max-width:880px;margin:22px auto 0}.home-workspace[data-state=choose] .home-editor{max-width:600px}.home-workspace[data-state=choose] .start-dropzone{min-height:320px}.home-workspace[data-state=choose] .upload-step{display:none}.home-workspace[data-state=choose] .start-dropzone h2{max-width:400px}
@media(max-width:700px){.is-editing .home-workspace{padding-top:18px}.is-editing .start-card{padding:14px;border-radius:21px}.home-result .result-status{font-size:23px;min-height:29px}.result-heading{margin-bottom:13px}.is-editing .result-picture,.is-editing .result-processing{height:clamp(245px,36svh,350px);border-radius:11px}.is-editing .result-actions{margin-top:15px}.is-editing .result-actions .button{font-size:13px;min-height:46px;padding:10px 18px}.is-editing .result-account-note{font-size:11px;line-height:1.6}.is-editing .home-result #result-message{font-size:11px}.is-editing .result-meta{font-size:10px;margin-top:9px}.is-editing .result-warnings{font-size:10px;line-height:1.6}.is-editing .result-next{margin-top:8px}.is-editing .home-footer{margin-top:15px}.home-workspace[data-state=choose] .start-dropzone{min-height:295px}.home-workspace[data-state=choose] .start-dropzone h2{font-size:25px}}
@media(max-width:370px){.home-result .result-status{font-size:21px}.is-editing .start-card{padding:12px}.is-editing .result-actions .button{font-size:12px;padding:10px 14px}}
.result-status:focus{outline:none}
/* Format choice changes the actual pixels and the single download target. */
.result-picture.is-transparent{background-color:#fff;background-image:linear-gradient(45deg,#e6e6ec 25%,transparent 25%),linear-gradient(-45deg,#e6e6ec 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e6e6ec 75%),linear-gradient(-45deg,transparent 75%,#e6e6ec 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.result-format-options{display:inline-flex;align-items:center;padding:3px;background:#f2f2f7;border:1px solid #e5e5ea;border-radius:99px;gap:2px}.result-format{border:0;background:transparent;border-radius:99px;min-width:62px;min-height:44px;padding:9px 15px;font-size:13px;color:#6e6e73}.result-format[aria-pressed=true]{background:#fff;color:#1d1d1f;box-shadow:0 1px 5px #0000000d}.result-format:hover{color:#1d1d1f}.result-format:focus-visible{outline:3px solid #1d1d1f;outline-offset:2px}
@media(max-width:370px){.result-format{min-width:53px;padding:9px 12px}.is-editing .result-actions{gap:8px}}

/* The same product demonstrates white JPG and genuine transparent PNG exports. */
.file-cards{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.file-card{min-width:0;min-height:290px;padding:18px 14px;overflow:hidden}.file-card-png{transform:none}.file-extension{font-size:11px}.file-preview{width:100%;height:180px;display:grid;place-items:center;overflow:hidden;border:1px solid #eeeeF2;border-radius:10px;margin:12px 0 16px;background:#fff}.file-preview img{display:block;width:100%;height:100%;object-fit:contain}.file-preview-transparent{background-color:#fff;background-image:linear-gradient(45deg,#e2e5ec 25%,transparent 25%),linear-gradient(-45deg,#e2e5ec 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e5ec 75%),linear-gradient(-45deg,transparent 75%,#e2e5ec 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
@media(max-width:1000px) and (min-width:701px){.home-credit-detail{grid-template-columns:1fr;gap:26px}.file-cards{max-width:560px;width:100%;margin:0 auto}.file-preview{height:190px}}
@media(max-width:700px){.file-card{min-height:250px;padding:15px 11px}.file-preview{height:160px;margin:10px 0 12px}.file-card>strong{font-size:11px}.file-card>span:last-child{font-size:10px}}
@media(max-width:370px){.home-credit-detail .file-cards{gap:9px}.file-card{padding:12px 9px;min-height:220px}.file-preview{height:130px;border-radius:8px}}
.file-preview:focus-visible{outline:3px solid #1d1d1f;outline-offset:3px}
.file-preview{position:relative;display:block}.file-preview img{position:absolute;inset:0;min-width:0;min-height:0;width:100%;height:100%;object-fit:contain}
