/* Free Background Remover — site styles (no framework) */
:root {
  --ink: #16161a;
  --muted: #5b5b66;
  --brand: #4f46e5;
  --brand-dark: #3d36c4;
  --bg: #ffffff;
  --panel: #f6f6fb;
  --line: #e3e3ee;
  --ok: #0a7d4f;
  --radius: 14px;
  --maxw: 1060px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo span { color: var(--brand); }
.site-nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: .95rem; }
.site-nav a:hover { color: var(--ink); }

/* Hero */
.hero { text-align: center; padding: 44px 0 8px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin: 0 auto; }
.hero .badges { margin-top: 14px; color: var(--ok); font-weight: 600; font-size: .95rem; }

/* Tool */
.tool { padding: 26px 0 10px; }
#bgr-dropzone {
  border: 2px dashed #b9b9d6; border-radius: var(--radius); background: var(--panel);
  padding: 38px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
#bgr-dropzone:hover, #bgr-dropzone:focus-visible { border-color: var(--brand); outline: none; }
#bgr-dropzone.is-dragging { border-color: var(--brand); background: #eceaff; }
.dz-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }
.dz-sub { color: var(--muted); margin: 0; font-size: .95rem; }
#bgr-progress { margin-top: 16px; }
#bgr-progress .bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
#bgr-progress-bar { height: 100%; width: 0; background: var(--brand); transition: width .2s; }
#bgr-progress-text { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
#bgr-status { color: var(--muted); min-height: 1.2em; }
#bgr-editor { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.editor-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.editor-head h3 { margin: 0; font-size: 1rem; word-break: break-all; }
#bgr-provider { color: var(--muted); font-size: .82rem; }
#bgr-compare {
  --split: 50%;
  position: relative; margin-top: 12px; border-radius: 10px; overflow: hidden;
  background:
    repeating-conic-gradient(#d9d9e3 0% 25%, #ffffff 0% 50%) 0 0 / 24px 24px;
  line-height: 0;
}
#bgr-display { width: 100%; height: auto; display: block; }
#bgr-original {
  position: absolute; inset: 0; width: 100%; height: 100%;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.tag {
  position: absolute; top: 10px; z-index: 2; line-height: 1; font-size: .75rem; font-weight: 700;
  background: rgba(0,0,0,.65); color: #fff; padding: 5px 9px; border-radius: 99px; pointer-events: none;
}
.tag-before { left: 10px; } .tag-after { right: 10px; }
#bgr-slider { width: 100%; margin: 14px 0 4px; accent-color: var(--brand); }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.bg-options { display: inline-flex; gap: 6px; align-items: center; margin-right: auto; }
.bg-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px;
  font-size: .9rem; cursor: pointer;
}
.bg-btn.is-active { border-color: var(--brand); color: var(--brand); font-weight: 700; }
#bgr-color { width: 38px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.btn-primary {
  background: var(--brand); color: #fff; border: 0; border-radius: 99px;
  padding: 11px 22px; font-size: 1rem; font-weight: 700; cursor: pointer;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost {
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 99px;
  padding: 10px 18px; font-size: .95rem; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
#bgr-queue { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
#bgr-queue li {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px;
}
#bgr-queue img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; }
#bgr-queue .qmeta { flex: 1; min-width: 0; }
#bgr-queue .qmeta strong { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bgr-queue .qmeta small { color: var(--muted); }
#bgr-queue button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: .85rem; }
#bgr-queue button:hover { border-color: var(--brand); color: var(--brand); }
.batch-bar { margin-top: 14px; text-align: right; }

/* Content sections */
section.content { padding: 34px 0; }
section.content h2 { font-size: 1.55rem; margin: 0 0 14px; }
.steps, .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--panel); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.compare th { background: var(--panel); }
details.faq { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { color: var(--muted); margin: 8px 0 0; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 28px; }
.prose p, .prose li { color: #2c2c33; }
.cta-band { background: var(--panel); border-radius: var(--radius); padding: 26px; text-align: center; }
.cta-band .btn-primary { display: inline-block; text-decoration: none; }

/* Ad slots (hidden until an AdSense publisher ID is configured) */
.ad-slot { display: none; margin: 22px auto; max-width: 970px; min-height: 90px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 30px; }
.site-footer .wrap { padding-top: 20px; padding-bottom: 26px; color: var(--muted); font-size: .9rem; }
.site-footer nav a { color: var(--muted); margin-right: 18px; text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .site-nav a { margin-left: 14px; }
  .controls { flex-direction: column; align-items: stretch; }
  .bg-options { margin-right: 0; }
}
