/* Watermark removal uses the same colors, typography and upload card as home. */
.wm-upload-hint { margin-top: 12px !important; text-align: center; color: var(--home-muted); font-size: 10px; line-height: 1.6; }
.wm-page .sr-comparison { position: relative; aspect-ratio: var(--sr-ratio, 1.5); width: 100%; overflow: hidden; isolation: isolate; }
.wm-page .sr-comparison img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: fill; }
.wm-page .sr-comparison:focus-within { outline: 3px solid var(--home-orange); outline-offset: -3px; }
.wm-ai-badge { position: absolute; bottom: 16px; right: 16px; display: grid; place-items: center; width: 42px; height: 42px; background: var(--home-raised); border: 1px solid var(--home-line); border-radius: 50%; color: var(--home-orange); font-size: 14px; }
.wm-faq { max-width: 750px; }
.wm-faq details { border-bottom: 1px solid var(--home-line); padding: 22px 0; }
.wm-faq summary { cursor: pointer; font-size: 16px; font-weight: 600; line-height: 1.6; }
.wm-faq summary:focus-visible { outline: 3px solid var(--home-orange); outline-offset: 5px; }
.wm-faq details p { padding-top: 14px; color: var(--home-muted); font-size: 14px; line-height: 1.8; }
.wm-final-wrap { padding-block: 72px 80px; }
.wm-result-header { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; padding-top: 48px; }
.wm-result-header h1 { font-size: clamp(30px, 4vw, 42px); }
.wm-result-upload .home-upload-card { margin-top: 0; padding: 16px; }
.wm-result-upload .home-samples, .wm-result-upload .home-privacy, .wm-result-upload .wm-upload-hint { display: none; }
.wm-workspace-section { padding-block: 34px 70px; }
.wm-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: 24px; align-items: start; }
.wm-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--home-line); }
.wm-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.wm-tabs button, .wm-compare-button, .wm-check-button { border: 1px solid transparent; border-radius: 7px; background: transparent; padding: 8px 12px; color: var(--home-muted); font-size: 12px; transition: background 180ms; }
.wm-tabs button[aria-selected='true'] { color: var(--home-ink); background: var(--home-raised); }
.wm-tabs button:hover:not(:disabled), .wm-compare-button:hover, .wm-check-button:hover { background: var(--home-raised); }
.wm-compare-button { display: inline-flex; align-items: center; gap: 6px; border-color: var(--home-line); }
.wm-compare-button[aria-pressed='true'] { color: var(--home-orange); }
.wm-page button:disabled { opacity: .45; cursor: default; }
.wm-stage { --wm-stage-height: clamp(320px, 37vw, 510px); position: relative; height: var(--wm-stage-height); display: flex; align-items: center; justify-content: center; overflow: hidden; background: #14171a; }
.wm-stage > img { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.wm-stage .sr-comparison { flex: none; width: min(100%, calc(var(--wm-stage-height) * var(--sr-ratio, 1.5))); max-height: 100%; }
.wm-stage .sr-comparison img { object-fit: contain; }
.wm-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden; background: #11131580; }
.wm-processing-scan { position: absolute; inset: 0 0 auto; height: 100%; width: 100%; background: linear-gradient(180deg, transparent 50%, #f19a7030); border-bottom: 2px solid var(--home-orange); animation: wm-scan 2s ease-in-out infinite; pointer-events: none; }
.wm-status-pill { position: relative; display: inline-flex; align-items: center; gap: 9px; max-width: 100%; background: #1a1d21ed; color: var(--home-ink); border: 1px solid var(--home-line); border-radius: 40px; padding: 10px 16px; font-size: 12px; }
.wm-spinner { flex: none; width: 14px; height: 14px; border: 2px solid #f19a7040; border-top-color: var(--home-orange); border-radius: 50%; animation: wm-spin 1s linear infinite; }
.wm-sidebar { padding: 24px; border: 1px solid var(--home-line); border-radius: 16px; background: var(--home-surface); }
.wm-sidebar h2 { margin-top: 14px; font-size: 23px; line-height: 1.4; }
.wm-sidebar p { margin-block: 12px 24px; color: var(--home-muted); font-size: 13px; line-height: 1.8; }
.wm-sidebar .home-upload-button { font-size: 14px !important; gap: 8px; }
.wm-sidebar .wm-error { color: #ffb7a8; margin-bottom: 14px; }
.wm-check-button { border-color: var(--home-line); width: 100%; margin-top: 12px; }
.wm-empty { min-height: 260px; display: grid; place-items: center; padding: 24px; color: var(--home-muted); text-align: center; }
.wm-result-info > span { display: inline-flex; align-items: center; gap: 8px; }
.wm-result-info > span + span { direction: ltr; unicode-bidi: isolate; }
@keyframes wm-spin { to { transform: rotate(360deg); } }
@keyframes wm-scan { 0%, 100% { transform: translateY(-85%); } 50% { transform: translateY(0); } }
@media (max-width: 991px) { .wm-workspace { grid-template-columns: minmax(0, 1fr); } .wm-sidebar { max-width: none; } .wm-sidebar .home-upload-button { max-width: 320px; } }
@media (max-width: 767px) { .wm-result-header { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; } .wm-result-upload { width: 100%; } .wm-result-upload .home-upload-card { max-width: none; } .wm-result-header h1 { font-size: 34px; } .wm-workspace-section { padding-top: 24px; } .wm-final-wrap { padding-block: 48px; } .wm-toolbar { padding: 10px; } .wm-tabs button { padding-inline: 8px; } .wm-sidebar { padding: 20px; } }
@media (max-width: 767px) { .wm-stage { --wm-stage-height: clamp(260px, 65vw, 420px); } }
@media (prefers-reduced-motion: reduce) { .wm-spinner, .wm-processing-scan { animation: none; } }

/* Keep the physical before/after slider orientation consistent in RTL pages. */
html[dir="rtl"] .wm-page .sr-comparison { direction: ltr; }
:is(html[dir="rtl"], html[lang="hi"], html[lang="th"]) .wm-page :is(h1, h2, h3, .home-eyebrow) { letter-spacing: normal; }
:is(html[lang="hi"], html[lang="th"]) .wm-page :is(h1, h2) { line-height: 1.35; }
