/* Gemini Watermark Remover — tool-specific styles.
   Layered on top of styles.css and built entirely from its tokens, so the page
   retints automatically with body[data-product]. Nothing here overrides an
   existing rule, so the other pages are unaffected. */

/* ── hero: shorter than the landing hero, the tool is the point ── */
.tool-hero {
  padding-bottom: 26px;
}
.tool-hero .lede {
  max-width: 620px;
}

.wm-wrap {
  padding-top: 34px;
  display: grid;
  gap: 18px;
}

/* ── privacy banner ── */
.wm-privacy {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--ok-wash);
  border: 1px solid rgba(31, 138, 61, 0.22);
}
.wm-privacy-icon {
  font-size: 20px;
  line-height: 1.3;
}
.wm-privacy strong {
  color: var(--ok);
  font-weight: 700;
}
.wm-privacy p {
  margin: 2px 0 0;
  color: var(--text-2);
  font-size: 14.5px;
}

/* ── cards ── */
.wm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow-1);
}
.wm-card-head {
  margin-bottom: 16px;
}
.wm-card-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wm-card-head p {
  margin: 5px 0 0;
  color: var(--text-2);
  font-size: 14.5px;
}
.wm-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
}

/* ── mode selector ── */
.wm-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.wm-mode {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 2px solid var(--line);
  background: var(--surface);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.wm-mode:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
}
.wm-mode.is-active {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.wm-mode-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-3);
  font-size: 18px;
}
.wm-mode.is-active .wm-mode-icon {
  background: var(--accent-grad);
}
.wm-mode strong {
  display: block;
  font-weight: 650;
  font-size: 15px;
}
.wm-mode small {
  color: var(--text-2);
  font-size: 13px;
}

/* ── dropzone ── */
.wm-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wm-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 46px 20px;
  border: 2px dashed var(--line-2);
  border-radius: var(--r);
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.wm-drop:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: var(--accent-wash);
}
.wm-drop.is-dragging {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.wm-drop[aria-disabled] {
  opacity: 0.55;
  pointer-events: none;
}
.wm-drop-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}
.wm-drop strong {
  font-weight: 650;
  font-size: 15px;
}
.wm-drop small {
  color: var(--text-2);
  font-size: 13px;
}

/* ── result stage ── */
.wm-stage:not(:empty) {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.wm-filebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.wm-filebar-meta {
  min-width: 0;
  display: grid;
}
.wm-filebar-name {
  font-weight: 600;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-filebar-size {
  color: var(--text-2);
  font-size: 12.5px;
}

.wm-busy {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 46px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 14px;
}
.wm-busy span:last-child {
  color: var(--text-2);
  font-size: 13px;
}
.wm-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid rgba(var(--accent-rgb), 0.25);
  border-top-color: var(--accent);
  animation: wm-spin 0.8s linear infinite;
}
@keyframes wm-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── notices ── */
.wm-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14px;
}
.wm-notice strong {
  display: block;
  font-weight: 700;
}
.wm-notice p {
  margin: 3px 0 0;
  color: var(--text-2);
}
.wm-notice::before {
  font-size: 17px;
  line-height: 1.35;
}
.wm-notice.ok {
  background: var(--ok-wash);
  border-color: rgba(31, 138, 61, 0.22);
}
.wm-notice.ok::before {
  content: "✓";
  color: var(--ok);
  font-weight: 800;
}
.wm-notice.ok strong {
  color: var(--ok);
}
.wm-notice.warn {
  background: rgba(200, 130, 0, 0.09);
  border-color: rgba(200, 130, 0, 0.25);
}
.wm-notice.warn::before {
  content: "!";
  color: #a8700a;
  font-weight: 800;
}
.wm-notice.warn strong {
  color: #a8700a;
}
.wm-notice.error {
  background: rgba(215, 0, 21, 0.07);
  border-color: rgba(215, 0, 21, 0.24);
}
.wm-notice.error::before {
  content: "×";
  color: var(--danger);
  font-weight: 800;
}
.wm-notice.error strong {
  color: var(--danger);
}

.wm-preview {
  width: 100%;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.wm-hint {
  margin: 0;
  text-align: center;
  color: var(--text-2);
  font-size: 12.5px;
}
.wm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wm-actions .btn {
  flex: 1 1 200px;
}

/* ── before/after slider ── */
.wm-compare {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  touch-action: none;
  user-select: none;
  /* checkerboard so transparent PNGs read correctly */
  background-image: linear-gradient(45deg, var(--surface-3) 25%, transparent 25%),
    linear-gradient(-45deg, var(--surface-3) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--surface-3) 75%),
    linear-gradient(-45deg, transparent 75%, var(--surface-3) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.wm-compare img {
  display: block;
  width: 100%;
}
.wm-compare-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.wm-compare-tag {
  position: absolute;
  top: 9px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  color: #fff;
  pointer-events: none;
}
.wm-compare-tag.left {
  left: 9px;
  background: rgba(19, 19, 19, 0.68);
}
.wm-compare-tag.right {
  right: 9px;
  background: var(--accent);
}
.wm-compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(19, 19, 19, 0.25);
  pointer-events: none;
}
.wm-compare-grip {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-1), 0 4px 14px rgba(19, 19, 19, 0.22);
  cursor: ew-resize;
}
.wm-compare-grip svg {
  width: 17px;
  height: 17px;
}

/* ── bulk ── */
.wm-rejects {
  margin: 12px 0 0;
  padding: 12px 14px 12px 30px;
  list-style: disc;
  border-radius: var(--r-sm);
  background: rgba(215, 0, 21, 0.06);
  border: 1px solid rgba(215, 0, 21, 0.22);
  color: var(--danger);
  font-size: 13px;
}
.wm-bulk {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.wm-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.wm-bulk-actions .wm-danger {
  margin-left: auto;
  color: var(--danger);
  border-color: rgba(215, 0, 21, 0.3);
}
.wm-bulk-actions .wm-danger:hover {
  color: var(--danger);
  border-color: var(--danger);
}
.wm-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.wm-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent-grad);
  transition: width 0.3s var(--ease);
}

.wm-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.wm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
}
.wm-item + .wm-item {
  border-top: 1px solid var(--line);
}
.wm-item-thumb {
  width: 54px;
  height: 54px;
  flex: none;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-3);
}
.wm-item-body {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}
.wm-item-name {
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-item-meta {
  color: var(--text-2);
  font-size: 12.5px;
}
.wm-item-actions {
  display: flex;
  gap: 5px;
  flex: none;
}
.wm-item-actions .btn {
  padding: 7px 11px;
}

.wm-pill {
  justify-self: start;
  margin-top: 2px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  background: var(--surface-3);
  color: var(--text-2);
}
.wm-pill.processing {
  background: var(--accent-wash);
  color: var(--accent);
}
.wm-pill.done {
  background: var(--ok-wash);
  color: var(--ok);
}
.wm-pill.skipped {
  background: rgba(200, 130, 0, 0.13);
  color: #a8700a;
}
.wm-pill.error {
  background: rgba(215, 0, 21, 0.1);
  color: var(--danger);
}

/* ── how it works ── */
.wm-steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 16px;
}
.wm-step {
  padding: 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.wm-step-n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-size: 13.5px;
  font-weight: 750;
}
.wm-step h3 {
  margin: 12px 0 6px;
}
.wm-step p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

/* ── FAQ ── */
.wm-faq {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.wm-faq-item + .wm-faq-item {
  border-top: 1px solid var(--line);
}
.wm-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 17px 20px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 650;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s var(--ease);
}
.wm-faq-q:hover {
  color: var(--accent);
}
.wm-faq-caret {
  flex: none;
  color: var(--text-3);
  transition: transform 0.2s var(--ease);
}
.wm-faq-q[aria-expanded="true"] .wm-faq-caret {
  transform: rotate(180deg);
}
.wm-faq-a {
  height: 0;
  overflow: hidden;
  transition: height 0.22s var(--ease);
}
.wm-faq-a p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-2);
  font-size: 14.5px;
}

@media (max-width: 620px) {
  .wm-card {
    padding: 17px;
  }
  .wm-actions .btn {
    flex-basis: 100%;
  }
  .wm-bulk-actions .wm-danger {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wm-spinner {
    animation-duration: 2s;
  }
  .wm-faq-a,
  .wm-progress span {
    transition: none;
  }
}
