/* ============================================================
   MetaRemoval — design system
   Deep Navy + Electric Cyan. Space Grotesk (headings) + Inter (body).
   Legacy variable names (--indigo, --ink-*, --text-lo …) are kept as
   aliases so every existing tool / dashboard / admin view inherits the
   new palette without markup changes.
   ============================================================ */
/* Self-hosted fonts (Latin subset, variable weight) — no third-party font requests */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2"); }

:root {
  /* Brand */
  --navy: #071A2B;          /* Deep Navy  — primary brand            */
  --cyan: #19D3E6;          /* Electric Cyan — accent                */
  --mist: #CBD5E1;          /* light text on navy                    */

  /* Core palette */
  --bg: #F6F9FC;
  --surface: #FFFFFF;
  --surface-soft: #EAF7FA;  /* light accent background               */
  --text: #071A2B;
  --text-secondary: #64748B;
  --text-light: #94A3B8;
  --accent: #19D3E6;        /* fills, icons, lines, borders          */
  --accent-hover: #3FE0F0;
  --accent-text: #0B7285;   /* cyan used AS TEXT on light surfaces (AA contrast). Set to #19D3E6 to use pure cyan. */
  --accent-dark: var(--accent-text);
  --accent-soft: #DDF8FB;   /* light cyan                            */
  --on-accent: #071A2B;     /* text on cyan                          */
  --border: #D9E5EA;
  --border-strong: #BCCDD6;

  /* Status (functional colours; success is teal to stay on-palette) */
  --ok: #0B7A75;      --ok-50: #E3F6F4;    --ok-line: #B9E3DF;
  --warn: #8F6420;    --warn-50: #F6EFE0;  --warn-line: #E6D6B3;
  --bad: #A2453B;     --bad-50: #F8ECE9;   --bad-line: #E8C6C0;

  /* Legacy aliases (do not remove — app.js and older rules reference these) */
  --surface-alt: var(--surface-soft);
  --surface-sunken: #E3EDF2;
  --ink-900: var(--text);
  --ink-800: var(--text);
  --ink-600: var(--text-secondary);
  --text-lo: var(--text-secondary);
  --text-faint: var(--text-light);
  --indigo: var(--accent);
  --indigo-600: var(--accent-dark);
  --indigo-50: var(--accent-soft);
  --line: var(--border);
  --sand: var(--navy);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: var(--sans);
  --code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Subtle navy-tinted shadows */
  --shadow-sm: 0 1px 2px rgba(7, 26, 43, 0.05);
  --shadow-md: 0 4px 14px rgba(7, 26, 43, 0.06), 0 1px 3px rgba(7, 26, 43, 0.04);
  --shadow-lg: 0 14px 36px rgba(7, 26, 43, 0.12);
  --glow-sm: 0 10px 28px rgba(25, 211, 230, 0.14);

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: clip; interpolate-size: allow-keywords; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { display: flex; flex-direction: column; min-height: 100vh; font-variant-numeric: tabular-nums; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font-family: var(--code); font-size: 0.9em; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
img { max-width: 100%; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0 0 0.5em; color: var(--text); letter-spacing: -0.02em; }
h1 { font-size: 2.25rem; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.015em; }
h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; }
p { line-height: 1.65; color: var(--text-secondary); max-width: 62ch; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(25, 211, 230, 0.28); color: var(--text); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 72px;
  padding: 0.75rem max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.wordmark {
  display: inline-flex; align-items: center;
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text);
}
.wordmark::before {
  content: ""; width: 18px; height: 18px; margin-right: 0.55rem; border-radius: 50%;
  border: 2px solid var(--accent); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 9px var(--accent);
  flex: none;
}
.wordmark span { color: var(--accent); }
.wordmark:hover { text-decoration: none; }

.topnav { display: flex; align-items: center; gap: 0.25rem; flex: 1; position: relative; }
.nav-item { position: relative; }
.nav-link {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); font-size: 14px; font-weight: 500; font-family: var(--sans);
  padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
  transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover { color: var(--text); text-decoration: none; background: var(--surface-soft); }
.nav-link.active { color: var(--text); font-weight: 600; }
.nav-item .caret { font-size: 0.6em; margin-left: 0.2em; opacity: .7; }
.nav-spacer { flex: 1; }
.nav-auth { display: flex; align-items: center; gap: 0.5rem; }
.nav-user { font-size: 13px; color: var(--text-secondary); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-signin {
  font-size: 14px; font-weight: 500; color: var(--text); padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
}
.nav-signin:hover { background: var(--surface-soft); text-decoration: none; }

/* Mega menu */
.has-mega .mega-menu {
  position: absolute; top: calc(100% + 0.9rem); left: -0.5rem;
  display: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 1.25rem; gap: 1.5rem;
  grid-template-columns: repeat(3, 230px);
  z-index: 50;
}
.has-mega.open .mega-menu { display: grid; }
.mega-col-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 0.5rem; padding: 0 0.5rem; }
.mega-item { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.55rem 0.5rem; border-radius: var(--radius-sm); color: var(--text); }
.mega-item:hover { background: var(--surface-soft); text-decoration: none; }
.mega-item-icon { width: 30px; height: 30px; border-radius: 8px; flex: none; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.mega-item-icon .ic { width: 16px; height: 16px; }
.mega-item-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.mega-item-desc { display: block; font-size: 12.5px; color: var(--text-secondary); margin-top: 0.1rem; line-height: 1.4; }

/* Dev-only connection panel */
.conn-toggle {
  background: var(--surface-soft); border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer;
  font-size: 0.7rem; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.conn-toggle:hover { border-color: var(--border-strong); }
.conn-toggle.ok { color: var(--ok); border-color: var(--ok); background: var(--ok-50); }
.conn-toggle.bad { color: var(--bad); border-color: var(--bad); background: var(--bad-50); }
.conn-panel {
  position: absolute; right: var(--gutter); top: 100%; margin-top: 0.5rem; z-index: 60;
  background: var(--surface); border: 1px solid var(--border);
  padding: 1.1rem; width: 320px; max-width: calc(100vw - 2.5rem); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.conn-panel label { font-size: 12px; margin-bottom: 0.4rem; }
.conn-panel input { width: 100%; margin-bottom: 0.7rem; }
.conn-row { display: flex; align-items: center; gap: 0.75rem; }
.conn-status { font-size: 12px; color: var(--text-secondary); }
.conn-help { font-size: 12px; margin-top: 0.7rem; color: var(--text-secondary); }

/* ============================================================
   Layout shell
   ============================================================ */
#app { flex: 1; padding: 3rem var(--gutter) 3rem; max-width: 1080px; margin: 0 auto; width: 100%; }
#app:has(.lp) { max-width: var(--wrap); padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: 0; }

/* ============================================================
   Form controls & buttons
   ============================================================ */
input, select, textarea {
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  padding: 0.62rem 0.8rem; border-radius: 10px; font-family: var(--sans); font-size: 0.92rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--text-light); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
label { font-size: 13px; font-weight: 600; color: var(--text-secondary); display: block; margin-bottom: 0.35rem; }
.field { margin-bottom: 1.1rem; max-width: 380px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: 0.62rem 1.25rem; font-weight: 600; font-size: 14px; font-family: var(--sans); line-height: 1.2;
  border-radius: 10px; cursor: pointer; box-shadow: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-quiet { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-quiet:hover { background: var(--surface-soft); border-color: var(--border-strong); color: var(--text); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover { background: #8A382F; border-color: #8A382F; }
.btn-sm { padding: 0.5rem 1rem; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; text-align: center; display: flex; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ============================================================
   Generic panels & inner-page heroes
   ============================================================ */
.panel { background: var(--surface); border: 1px solid var(--border); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 1.25rem; }

.hero { padding: 1rem 0 2rem; margin-bottom: 1rem; }
.hero .kicker { margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.035em; max-width: 24ch; text-wrap: balance; }
.hero p { font-size: 1.05rem; margin-top: 0.75rem; }
.hero-narrow { max-width: 680px; }
.hero-cta { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

.kicker { display: inline-block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11.5px; font-weight: 600; color: var(--accent); }

.content-section { margin: 3rem 0; }
.content-section h1 { margin-bottom: 0.75rem; }
.content-section h2 { font-size: 1.5rem; }
.content-section .lede { font-size: 1.05rem; max-width: 70ch; }
.section-lede { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-lede p { margin: 0; font-size: 0.92rem; }

/* Legacy card grids (CMS sections, tool pages) */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.feature-card h3 { margin-bottom: 0.35rem; font-size: 1rem; }
.feature-card p { font-size: 0.9rem; margin: 0; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }
.step-card { padding-top: 0.25rem; }
.step-num { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 0.2rem 0.55rem; border-radius: 999px; margin-bottom: 0.6rem; }
.step-card h3 { margin-bottom: 0.3rem; }
.step-card p { font-size: 0.88rem; margin: 0; }
.cta-banner { text-align: center; background: var(--surface-soft); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-xl); padding: 3rem 2rem; margin: 3.5rem 0 1rem; }
.cta-banner h2 { color: var(--text); }
.cta-banner p { max-width: 50ch; margin: 0 auto; }
.cta-banner .hero-cta { justify-content: center; margin-top: 1.5rem; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; box-shadow: var(--shadow-sm); }
a.tool-card { text-decoration: none; color: inherit; }
.tool-card h3 { margin-bottom: 0; }
.tool-card .tier { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.tool-card .quota { font-size: 0.82rem; color: var(--text-secondary); margin-top: auto; }
.tool-card.disabled { opacity: 0.5; }
.tool-card-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.tool-card-icon .ic { width: 18px; height: 18px; }
.tool-card-desc { font-size: 0.85rem; margin: 0; }

/* ============================================================
   Tool workspace pieces
   ============================================================ */
.rail { display: flex; flex-direction: column; }
.rail-step { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); opacity: 0.45; }
.rail-step.active, .rail-step.done { opacity: 1; }
.rail-num { font-size: 0.85rem; color: var(--text-secondary); width: 1.8rem; height: 1.8rem; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-soft); }
.rail-step.active .rail-num { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.rail-step.done .rail-num { color: #fff; background: var(--ok); border-color: var(--ok); }
.rail-title { font-weight: 600; color: var(--text); }
.rail-desc { font-size: 0.85rem; color: var(--text-secondary); }

.workspace { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.workspace > * { min-width: 0; }
.canvas-wrap {
  /* Displayed size is purely CSS: never wider than the column or the image's own
     width, and never taller than ~72% of the viewport (height = width / --ar). */
  position: relative; width: 100%; max-width: min(var(--cw, 100%), calc(72vh * var(--ar, 1))); margin-inline: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: repeating-conic-gradient(var(--surface-sunken) 0% 25%, var(--surface) 0% 50%) 50% / 20px 20px;
  overflow: hidden; touch-action: none; box-shadow: var(--shadow-sm);
}
.canvas-wrap canvas { display: block; width: 100%; height: auto; cursor: crosshair; }
.canvas-wrap canvas + canvas { position: absolute; inset: 0; height: 100%; touch-action: none; }

.dropzone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface);
  padding: 3.25rem 1rem; text-align: center; color: var(--text-secondary); font-weight: 500; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

.status-line { font-size: 0.85rem; color: var(--text-secondary); margin: 0.6rem 0; }
.status-line .val { color: var(--text); font-weight: 600; }
.status-line .ok { color: var(--ok); }
.status-line .bad { color: var(--bad); }

.reveal { position: relative; width: 100%; max-width: min(var(--cw, 100%), calc(72vh * var(--ar, 1))); aspect-ratio: var(--ar, 4 / 3); margin-inline: auto; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; user-select: none; box-shadow: var(--shadow-sm); background: var(--surface-sunken); }
.reveal .reveal-base, .reveal .reveal-after { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; }
.reveal input[type=range] { position: absolute; inset: auto 0 0.6rem 0; width: calc(100% - 1.2rem); margin: 0 0.6rem; accent-color: var(--accent); }
.reveal .tag { position: absolute; top: 0.6rem; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: rgba(7, 26, 43, 0.72); padding: 0.2rem 0.55rem; border-radius: 999px; z-index: 2; }
.reveal .tag.before { left: 0.6rem; }
.reveal .tag.after { right: 0.6rem; }

.batch-item-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.batch-item-row > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pill { font-weight: 600; font-size: 12px; padding: 0.2rem 0.6rem; border-radius: 20px; }
.pill.ok { color: var(--ok); background: var(--ok-50); border: 1px solid var(--ok-line); }
.pill.bad { color: var(--bad); background: var(--bad-50); border: 1px solid var(--bad-line); }
.pill.wait { color: var(--text-secondary); background: var(--surface-soft); border: 1px solid var(--border); }

.error-box { border: 1px solid var(--bad-line); background: var(--bad-50); color: #7C332B; padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; margin: 1rem 0; }
.notice-box { border: 1px solid var(--ok-line); background: var(--accent-soft); color: var(--accent-dark); padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; margin: 1rem 0; }

.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.usage-cell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow-sm); }
.usage-cell .num { font-size: 1.6rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.usage-cell .lbl { font-size: 12.5px; color: var(--text-secondary); margin-top: 0.15rem; }

.tab-row { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab-row button { background: none; border: none; color: var(--text-secondary); padding: 0.65rem 1.1rem; cursor: pointer; font-size: 0.9rem; font-weight: 500; font-family: var(--sans); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab-row button:hover { color: var(--text); }
.tab-row button.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ============================================================
   Auth modal
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(7, 26, 43, 0.45); display: flex; align-items: center; justify-content: center; padding: 1.5rem; z-index: 100; }
.modal-card { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem 0.5rem; }
.modal-head h2 { margin: 0; }
.modal-close { background: var(--surface-soft); border: none; color: var(--text-secondary); width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; font-size: 0.9rem; }
.modal-close:hover { background: var(--border); }
.modal-body { padding: 1rem 1.5rem 0.5rem; }
.modal-body .field { max-width: none; }
.modal-body input:not([type=checkbox]):not([type=radio]) { width: 100%; }
.modal-foot { padding: 0 1.5rem 1.5rem; font-size: 0.9rem; color: var(--text-secondary); text-align: center; }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 2.6rem; }
.pw-toggle { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-secondary); cursor: pointer; width: 1.8rem; height: 1.8rem; display: flex; align-items: center; justify-content: center; }
.pw-toggle svg { width: 18px; height: 18px; }
.pw-toggle:hover { color: var(--text); }

/* ============================================================
   Accordion — clean rows with thin borders (home, FAQ, tool pages)
   ============================================================ */
.accordion { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); background: transparent; }
.acc-item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 0.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  font-weight: 600; font-size: 1rem; color: var(--text); letter-spacing: -0.01em;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--accent-dark); }
.acc-item summary:focus-visible { outline-offset: -2px; border-radius: 6px; }
.acc-plus { flex: none; width: 22px; height: 22px; position: relative; color: var(--text-secondary); font-size: 0; }
.acc-plus::before, .acc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .2s ease; }
.acc-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item[open] .acc-plus { color: var(--accent); }
.acc-item[open] .acc-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-body { padding: 0 2.5rem 1.35rem 0.25rem; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; max-width: 68ch; }
.acc-body a { font-weight: 600; }
.tool-faq { margin-top: 2.5rem; padding-top: 1.5rem; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; grid-auto-rows: 1fr; gap: 1.25rem; max-width: 900px; }
.pricing-grid > .panel, .pricing-grid > .panel + .panel { margin-top: 0; }
.pricing-card { display: flex; flex-direction: column; height: 100%; padding: 1.85rem; gap: 0.9rem; border-radius: var(--radius-lg); }
.pricing-card h3 { margin: 0; font-size: 1.05rem; }
.pricing-amount { font-size: 2rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.pricing-amount span { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); letter-spacing: 0; }
.pricing-card .plan-features { list-style: none; margin: 0.25rem 0 0.5rem; padding: 0; display: grid; gap: 0.6rem; font-size: 0.92rem; color: var(--text-secondary); }
.pricing-card .plan-features li { display: flex; gap: 0.6rem; align-items: flex-start; }
.pricing-card .plan-features li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 0.22rem; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.pricing-card .btn { margin-top: auto; }

/* ============================================================
   Framed documents (Privacy, Terms, FAQ, Blog, Contact)
   ============================================================ */
.doc-frame { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.doc-head { padding: 2.25rem 2.5rem 1.6rem; background: var(--surface-soft); border-bottom: 1px solid var(--border); }
.doc-head h1 { margin: 0.35rem 0 0.4rem; font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; }
.doc-meta { margin: 0; font-size: 0.92rem; color: var(--text-secondary); }
.doc-body { padding: 1.9rem 2.5rem 2.5rem; }
.doc-body h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; padding-left: 0.8rem; border-left: 2px solid var(--accent); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { line-height: 1.75; }
.doc-body ul, .doc-body ol { padding-left: 1.25rem; color: var(--text-secondary); }
.doc-back { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.post-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.post-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.35rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.post-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); text-decoration: none; }
.post-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.post-card p { margin: 0; font-size: 0.92rem; }
.post-cat { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.post-meta { margin-top: auto; font-size: 12.5px; color: var(--text-secondary); }

/* Tool pages */
.tool-lede { max-width: 68ch; font-size: 1.05rem; }
.tool-about, .tool-faq { margin-top: 2.75rem; }
.about-frame { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.85rem; box-shadow: var(--shadow-sm); }
.about-frame > h3 { margin: 1.75rem 0 0.75rem; }
.about-cols { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.about-cols h3 { margin: 0 0 0.4rem; }
.about-cols p { margin: 0; }
.usecase-grid { display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.usecase-grid .feature-card { padding: 1rem 1.1rem; background: var(--surface-soft); box-shadow: none; }
.usecase-grid .feature-card h3 { margin: 0 0 0.25rem; font-size: 0.95rem; }
.usecase-grid .feature-card p { margin: 0; font-size: 0.88rem; }
.how-list { counter-reset: how; list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.how-list li { counter-increment: how; display: flex; gap: 0.85rem; align-items: flex-start; }
.how-list li::before { content: counter(how); flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
.good-to-know { margin-top: 1.75rem; padding: 0.95rem 1.15rem; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 0.92rem; }

/* Shared form bits */
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 1.25rem; }
.form-grid .field { max-width: none; margin: 0; }
.field .hint { font-weight: 400; color: var(--text-secondary); font-size: 0.8rem; }
.field select { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.compare-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1rem 0; }
.compare-grid figure { margin: 0; }
.compare-grid img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.compare-grid figcaption { font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.35rem; }
.spinner { display: inline-block; width: 0.9em; height: 0.9em; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: pl-spin .7s linear infinite; vertical-align: -0.1em; margin-right: 0.35rem; }
@keyframes pl-spin { to { transform: rotate(360deg); } }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-strong); }
.admin-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
#adminBody .panel .field, #adminBody .panel label { margin-bottom: 0; }
#adminBody input[type="number"], #adminBody input[type="text"] { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0.35rem 0.55rem; font-size: 0.88rem; }

/* ============================================================
   LANDING PAGE (.lp)
   ============================================================ */
.lp > section + section { margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.lp h1, .lp h2 { text-wrap: balance; }
.lp p { max-width: 56ch; }
.eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.lp h2 { font-size: clamp(2.125rem, 1.4rem + 2vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1rem; }
.lp .num { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }
.arrow-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 14px; font-weight: 600; color: var(--accent); }
.arrow-link .arrow { transition: transform .15s ease; }
a:hover > .arrow-link .arrow, .arrow-link:hover .arrow { transform: translateX(3px); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { font-size: 1.05rem; margin: 0; }

/* ---------- Hero ---------- */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.lp-hero h1 { font-size: clamp(2.5rem, 1.4rem + 3vw, 3.5rem); line-height: 1.06; font-weight: 700; letter-spacing: -0.038em; margin-bottom: 1.25rem; max-width: 17ch; text-wrap: balance; }
.lp-hero-lede { font-size: 1.125rem; line-height: 1.65; max-width: 44ch; margin: 0 0 2rem; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.lp-trust { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 2.75rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--border); }
.lp-trust li { display: grid; gap: 0.2rem; align-content: start; }
.lp-trust strong { font-size: 13.5px; font-weight: 650; color: var(--text); display: flex; align-items: center; gap: 0.45rem; }
.lp-trust strong svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.lp-trust span { font-size: 13px; line-height: 1.45; color: var(--text-secondary); }

/* Product-analysis visual */
.scan {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 14px;
  box-shadow: var(--shadow-md);
  animation: scan-in .6s ease both;
}
@keyframes scan-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.scan-photo { position: relative; border-radius: 12px; overflow: hidden; min-height: 440px; background: var(--surface-soft); }
.scan-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-photo::after { content: ""; position: absolute; inset: 12px; border-radius: 6px; pointer-events: none;
  background:
    linear-gradient(#fff,#fff) top left / 14px 1.5px no-repeat, linear-gradient(#fff,#fff) top left / 1.5px 14px no-repeat,
    linear-gradient(#fff,#fff) top right / 14px 1.5px no-repeat, linear-gradient(#fff,#fff) top right / 1.5px 14px no-repeat,
    linear-gradient(#fff,#fff) bottom left / 14px 1.5px no-repeat, linear-gradient(#fff,#fff) bottom left / 1.5px 14px no-repeat,
    linear-gradient(#fff,#fff) bottom right / 14px 1.5px no-repeat, linear-gradient(#fff,#fff) bottom right / 1.5px 14px no-repeat;
  opacity: .85; }
.scan-flag { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,.94); color: var(--text); font-size: 12px; font-weight: 600; padding: 0.35rem 0.65rem; border-radius: 999px; }
.scan-flag i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.scan-panel { display: flex; flex-direction: column; padding: 6px 4px 4px 0; min-width: 0; }
.scan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding: 4px 2px 12px; border-bottom: 1px solid var(--border); }
.scan-file { font-size: 14px; font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-count { font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.scan-rows { margin: 0; padding: 0; list-style: none; flex: 1; }
.scan-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 0.75rem; padding: 11px 2px; border-bottom: 1px solid var(--border); align-items: center; }
.scan-row:last-child { border-bottom: none; }
.scan-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.scan-value { grid-column: 1; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; overflow-wrap: anywhere; }
.scan-src { grid-row: 1 / span 2; grid-column: 2; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-secondary); background: var(--surface-soft); border: 1px solid var(--border); padding: 0.18rem 0.5rem; border-radius: 6px; }
.scan-row.is-flagged { background: var(--warn-50); margin: 0 -8px; padding-left: 10px; padding-right: 10px; border-radius: 8px; border-bottom-color: transparent; }
.scan-row.is-flagged .scan-src { background: #fff; border-color: var(--warn-line); color: var(--warn); }
.scan-row.is-ok .scan-src { background: var(--accent-soft); border-color: var(--ok-line); color: var(--accent-dark); }
.scan-foot { display: flex; gap: 0.4rem; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }
.scan-foot span { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent-dark); background: var(--accent-soft); padding: 0.25rem 0.6rem; border-radius: 999px; }

/* ---------- What MetaRemoval does (editorial split) ---------- */
.lp-does { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.75fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.lp-does h2 { max-width: 14ch; }
.lp-does .lede { font-size: 1.125rem; margin: 0; color: var(--text-secondary); }
.does-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.does-col { padding: 0.25rem 1.4rem 0.25rem 1.4rem; border-left: 1px solid var(--border); }
.does-col:first-child { padding-left: 0; border-left: none; }
.does-col h3 { font-size: 1.25rem; margin: 0.6rem 0 1rem; letter-spacing: -0.02em; }
.does-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.does-col li { font-size: 14.5px; line-height: 1.45; color: var(--text-secondary); }

/* ---------- What's inside your image (cards) ---------- */
.inside-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.inside-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 12px 1.25rem; box-shadow: var(--shadow-sm); color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.inside-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); text-decoration: none; }
.inside-visual { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-soft); margin-bottom: 1.1rem; }
.inside-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inside-visual > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.inside-chips { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 4px; }
.inside-chips span { font-size: 11px; font-weight: 600; background: rgba(255,255,255,.94); color: var(--text); padding: 0.2rem 0.5rem; border-radius: 6px; }
.inside-body { padding: 0 6px; display: flex; flex-direction: column; flex: 1; }
.inside-body h3 { font-size: 1.15rem; margin: 0.35rem 0 0.5rem; }
.inside-body p { font-size: 14.5px; line-height: 1.55; margin: 0 0 1.25rem; }
.inside-arrow { margin-top: auto; align-self: flex-end; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.inside-arrow svg { width: 14px; height: 14px; }
.inside-card:hover .inside-arrow { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Our tools (divided grid, not floating cards) ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.tool-cell { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.75rem 1.6rem 1.6rem; color: inherit; border-left: 1px solid var(--border); transition: background-color .15s ease; }
.tool-cell:first-child { border-left: none; }
.tool-cell:hover { background: var(--bg); text-decoration: none; }
.tool-cell.is-off { opacity: .55; }
.tool-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.tool-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.tool-ico .ic { width: 19px; height: 19px; }
.tool-cell h3 { font-size: 1.2rem; margin: 0; }
.tool-cell p { font-size: 14.5px; line-height: 1.55; margin: 0 0 1.25rem; }
.tool-cell .arrow-link { margin-top: auto; }
.lp .more-tools { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.25rem; margin-top: 1.5rem; padding: 0 0.25rem; font-size: 14px; color: var(--text-secondary); }
.more-tools a { font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; }
.more-tools a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

/* ---------- Feature CTA (warm sand + photograph) ---------- */
.lp-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--sand); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.lp-feature-photo { position: relative; min-height: 440px; }
.lp-feature-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-feature-body { padding: clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; }
.lp-feature-body h2 { max-width: 14ch; }
.lp-feature-body p { font-size: 1.1rem; margin: 0 0 2rem; max-width: 38ch; }
.lp-feature-body .btn { align-self: flex-start; }

/* ---------- How it works (connected steps) ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; position: relative; }
.flow li { position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: 62px; right: calc(-2rem + 14px); height: 1px; background: var(--border-strong); }
.flow-ico { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border-strong); color: var(--accent); display: grid; place-items: center; margin-bottom: 1.5rem; }
.flow-ico svg { width: 20px; height: 20px; }
.flow h3 { font-size: 1.2rem; margin: 0.4rem 0 0.5rem; }
.flow p { font-size: 14.5px; line-height: 1.55; margin: 0; max-width: 24ch; }

/* ---------- Who it's for (editorial rows) ---------- */
.lp-who { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.75fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.lp-who .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.who-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.who-list li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 1.5rem; align-items: baseline; padding: 1.5rem 0.25rem; border-bottom: 1px solid var(--border); }
.who-list h3 { margin: 0; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem); letter-spacing: -0.025em; }
.who-list p { margin: 0; font-size: 15px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.lp-faq { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.75fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.lp-faq .section-head { margin-bottom: 0; }
.lp-faq .section-head .arrow-link { margin-top: 1.25rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-foot { background: var(--bg); border-top: 1px solid var(--border); margin-top: clamp(3rem, 5vw, 4.5rem); }
.site-foot-inner { max-width: var(--wrap); margin: 0 auto; padding: 4rem var(--gutter) 3rem; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; }
.foot-brand p { font-size: 15px; line-height: 1.6; margin-top: 1rem; max-width: 30ch; }
.foot-col .foot-title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 1rem; }
.foot-col { display: flex; flex-direction: column; gap: 0.65rem; align-content: start; }
.foot-col a { color: var(--text); font-size: 14.5px; }
.foot-col a:hover { color: var(--accent); text-decoration: none; }
.site-foot-bottom { max-width: var(--wrap); margin: 0 auto; border-top: 1px solid var(--border); padding: 1.5rem var(--gutter); font-size: 13px; color: var(--text-secondary); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ============================================================
   THEME LAYER — Deep Navy #071A2B + Electric Cyan #19D3E6
   Visual ratio target: ~70% light surfaces · 20% navy · 10% cyan.
   Cyan is used for fills, icons, lines and borders. Where cyan would
   be small TEXT on a light surface it uses --accent-text (a deeper
   cyan) so it stays readable.
   ============================================================ */

/* ---------- Typography roles ---------- */
.wordmark, .lp .num, .pricing-amount, .usage-cell .num, .doc-head h1 { font-family: var(--display); }
.lp-hero h1 { letter-spacing: -0.03em; }
.lp h2 { letter-spacing: -0.025em; }

/* Small cyan text on light surfaces */
.kicker, .eyebrow, .lp .num, .arrow-link, .tool-card .tier, .post-cat, .step-num { color: var(--accent-text); }

/* Keyboard focus on navy surfaces */
.lp-hero :focus-visible, .lp-feature :focus-visible, .site-foot :focus-visible { outline-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease, transform .2s ease;
}
.btn:hover {
  background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent);
  box-shadow: 0 6px 20px rgba(25, 211, 230, 0.32); transform: translateY(-1px);
}
.btn:active { transform: none; box-shadow: none; }
.btn-quiet { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-quiet:hover { background: var(--surface-soft); border-color: var(--accent); color: var(--text); box-shadow: 0 4px 14px rgba(25, 211, 230, 0.14); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover { background: #8A382F; border-color: #8A382F; color: #fff; box-shadow: none; transform: none; }
.btn:disabled:hover { background: var(--accent); border-color: var(--accent); box-shadow: none; transform: none; }
.btn-quiet:disabled:hover { background: var(--surface); border-color: var(--border-strong); }

/* Form focus */
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(25, 211, 230, 0.25); }

/* ---------- 1. Navbar ---------- */
.topbar { background: var(--bg); }
.wordmark { font-weight: 700; color: var(--text); }
.wordmark::before { border: 2px solid var(--text); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 9px var(--accent); }
.wordmark span { color: var(--accent-text); }
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.1rem; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link.active { color: var(--text); font-weight: 600; }
.nav-link.active::after { transform: scaleX(1); }
.mega-item-icon, .tool-card-icon, .tool-ico {
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(25, 211, 230, 0.28);
  transition: background-color .25s ease, border-color .25s ease;
}

/* ---------- 2. Hero (full-bleed navy) ---------- */
#app:has(.lp) { padding-top: 0; }
.lp-hero { position: relative; isolation: isolate; padding-block: clamp(3rem, 6vw, 5.5rem); }
.lp-hero::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: radial-gradient(760px 420px at 80% 30%, rgba(25, 211, 230, 0.13), transparent 70%), var(--navy);
}
.lp-hero .eyebrow { color: var(--accent); }
.lp-hero h1 { color: #fff; }
.lp-hero h1 .hl, .lp-feature h2 .hl { color: var(--accent); }
.lp-hero-lede { color: var(--mist); }
.lp-hero .btn-quiet { background: transparent; color: var(--accent); border-color: rgba(25, 211, 230, 0.45); }
.lp-hero .btn-quiet:hover { background: rgba(25, 211, 230, 0.1); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px rgba(25, 211, 230, 0.12); }
.lp-trust { border-top-color: rgba(203, 213, 225, 0.18); }
.lp-trust strong { color: #fff; }
.lp-trust strong svg { color: var(--accent); }
.lp-trust span { color: var(--mist); }

/* Existing analysis image: cyan ring, cyan corner brackets, slow scan line */
.scan { border-color: rgba(25, 211, 230, 0.35); box-shadow: 0 0 0 6px rgba(25, 211, 230, 0.06), 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 48px rgba(25, 211, 230, 0.1); }
.scan-photo::after {
  opacity: 1;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 14px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) top left / 2px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 14px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) top right / 2px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 14px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom left / 2px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 14px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom right / 2px 14px no-repeat;
}
.scan-photo::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 4%; height: 2px; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px 2px rgba(25, 211, 230, 0.4);
  animation: scan-sweep 6s ease-in-out 1.2s infinite;
}
@keyframes scan-sweep {
  0% { top: 4%; opacity: 0; }
  12% { opacity: .75; }
  50% { top: 94%; opacity: .75; }
  62%, 100% { top: 94%; opacity: 0; }
}
.scan-flag i { background: var(--accent); box-shadow: 0 0 0 3px rgba(25, 211, 230, 0.28); }
.scan-row.is-flagged { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.scan-row.is-flagged .scan-src { background: #fff; border-color: var(--accent); color: var(--accent-text); }
.scan-row.is-ok .scan-src { background: var(--accent-soft); border-color: rgba(25, 211, 230, 0.55); color: var(--accent-text); }

/* ---------- 3. Feature / metadata cards ---------- */
.inside-card, a.tool-card, .post-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.inside-card:hover, a.tool-card:hover, .post-card:hover {
  transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--glow-sm), 0 2px 6px rgba(7, 26, 43, 0.04);
}
.inside-arrow { color: var(--accent); }
.inside-card:hover .inside-arrow { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.inside-card:hover .inside-arrow svg { transform: translateX(1px); }
.inside-arrow svg { transition: transform .2s ease; }
.does-col h3 { color: var(--text); }

/* ---------- 4. Our tools ---------- */
.tool-cell { transition: background-color .25s ease; }
.tool-cell h3, .tool-cell p, .tool-cell .arrow-link { transition: color .25s ease; }
.tool-cell:hover { background: var(--navy); text-decoration: none; }
.tool-cell:hover h3 { color: #fff; }
.tool-cell:hover p { color: var(--mist); }
.tool-cell:hover .tool-ico { background: rgba(25, 211, 230, 0.14); border-color: rgba(25, 211, 230, 0.45); color: var(--accent); }
.tool-cell:hover .arrow-link { color: var(--accent); }
.tool-cell:hover .arrow-link .arrow { transform: translateX(3px); }
.tool-cell:hover .num { color: var(--accent); }
.more-tools a:hover { color: var(--accent-text); border-bottom-color: var(--accent); }

/* ---------- 5. Image / feature highlight ---------- */
.lp-feature { background: var(--navy); border-color: var(--navy); }
.lp-feature .eyebrow { color: var(--accent); }
.lp-feature-body h2 { color: #fff; }
.lp-feature-body p { color: var(--mist); }
.lp-feature-photo::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--accent), transparent); opacity: .7;
}

/* ---------- 6. How it works ---------- */
.flow-ico { background: var(--surface); border: 1px solid var(--border-strong); color: var(--accent); transition: border-color .25s ease, box-shadow .25s ease; }
.flow li:hover .flow-ico { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(25, 211, 230, 0.14); }
.flow li:not(:last-child)::after { top: 23px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), rgba(25, 211, 230, 0.2)); }
.flow h3 { color: var(--text); }
/* scroll reveal (class added by JS; without JS everything is simply visible) */
.flow.reveal-ready li { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.flow.reveal-ready li.in { opacity: 1; transform: none; }
.flow.reveal-ready li:nth-child(2) { transition-delay: .08s; }
.flow.reveal-ready li:nth-child(3) { transition-delay: .16s; }
.flow.reveal-ready li:nth-child(4) { transition-delay: .24s; }
.flow.reveal-ready li:not(:last-child)::after { transform: scaleX(0); transform-origin: left; transition: transform .7s ease .3s; }
.flow.reveal-ready li.in:not(:last-child)::after { transform: scaleX(1); }

/* ---------- 7. Users / trust ---------- */
.who-list li { transition: box-shadow .25s ease; }
.who-list li:hover { box-shadow: inset 2px 0 0 var(--accent); }
.who-list h3 { color: var(--text); }

/* ---------- 8. FAQ ---------- */
.accordion { margin-inline: -0.5rem; }
.acc-item { padding-inline: 0.5rem; transition: background-color .2s ease; }
.acc-item:hover, .acc-item[open] { background: var(--surface-soft); }
.acc-item summary:hover { color: var(--text); }
.acc-plus, .acc-item[open] .acc-plus { color: var(--accent); }
.acc-plus::before, .acc-plus::after { height: 2px; border-radius: 2px; }
.acc-item[open] .acc-body { animation: acc-in .3s ease both; }
@keyframes acc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@supports selector(details::details-content) {
  .acc-item::details-content { block-size: 0; overflow: clip; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
  .acc-item[open]::details-content { block-size: auto; }
}

/* ---------- 9. Footer ---------- */
.site-foot { background: var(--navy); border-top: 0; }
.site-foot .wordmark { color: #fff; }
.site-foot .wordmark::before { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 9px var(--accent); }
.site-foot .wordmark span { color: var(--accent); }
.foot-brand p { color: var(--mist); }
.foot-col .foot-title { color: #fff; }
.foot-col a { color: var(--mist); transition: color .2s ease; }
.foot-col a:hover { color: var(--accent); text-decoration: none; }
.site-foot-bottom { border-top-color: rgba(203, 213, 225, 0.16); color: rgba(203, 213, 225, 0.75); }

/* ============================================================
   POLISH LAYER — consistency, trust cues, product feel
   ============================================================ */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; font-size: 14px; transition: top .15s ease; }
.skip-link:focus { top: 0.75rem; text-decoration: none; outline: 2px solid var(--accent); outline-offset: 2px; }
#app:focus { outline: none; }
#lpTools { scroll-margin-top: 96px; }

/* Section labels: one calm treatment everywhere (sentence case + short cyan rule) */
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 0.6rem; text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 600; }
.eyebrow::before, .kicker::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--accent); flex: none; }
.eyebrow { margin-bottom: 1.1rem; }
.doc-head .kicker { margin-bottom: 0.15rem; }

/* "What it does" columns — categories, not a sequence */
.does-col { position: relative; padding-top: 1.15rem; }
.does-col::before { content: ""; position: absolute; top: 0; left: 1.4rem; width: 28px; height: 2px; border-radius: 2px; background: var(--accent); }
.does-col:first-child::before { left: 0; }
.does-col h3 { margin: 0 0 1rem; }
.lp-does { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.lp-does h2 { max-width: 18ch; }

/* Inside-image cards without the numeric marker */
.inside-body h3 { margin-top: 0.1rem; }

/* Tools: trust tag instead of an arbitrary number */
.tool-tag { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 11.5px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); border: 1px solid rgba(25, 211, 230, 0.35); padding: 0.2rem 0.55rem 0.2rem 0.45rem; border-radius: 999px; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.tool-tag svg { width: 11px; height: 11px; }
.tool-cell:hover .tool-tag { background: rgba(25, 211, 230, 0.14); color: var(--accent); border-color: rgba(25, 211, 230, 0.5); }

/* Feature panel: annotate the photo with what gets removed */
.lp-feature-photo .strip {
  position: absolute; left: 20px; bottom: 20px; z-index: 2; margin: 0; padding: 0.7rem 0.8rem; list-style: none; display: grid; gap: 0.15rem;
  background: rgba(7, 26, 43, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(25, 211, 230, 0.3); border-radius: 14px;
}
.lp-feature-photo .strip li { display: flex; align-items: center; justify-content: space-between; gap: 1.75rem; font-size: 12.5px; padding: 0.3rem 0.1rem; color: #fff; }
.lp-feature-photo .strip span { opacity: .85; text-decoration: line-through; text-decoration-color: rgba(203, 213, 225, 0.55); }
.lp-feature-photo .strip b { font-weight: 600; font-size: 11px; color: var(--accent); }

/* Upload dropzone — the main product moment */
.dropzone { padding: 3.25rem 1.25rem; border-color: var(--border-strong); transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .25s ease; }
.dropzone::before {
  content: ""; display: block; width: 48px; height: 48px; margin: 0 auto 1rem; border-radius: 14px; border: 1px solid rgba(25, 211, 230, 0.35);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M10 13V4m0 0L6.5 7.5M10 4l3.5 3.5M4 13.5v2A1.5 1.5 0 005.5 17h9a1.5 1.5 0 001.5-1.5v-2' stroke='%2319D3E6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat, var(--accent-soft);
}
.dropzone:hover, .dropzone.drag { box-shadow: 0 0 0 4px rgba(25, 211, 230, 0.12); }

/* Inner-page headers + cards: calmer, consistent rhythm */
.hero h1 { color: var(--text); }
.panel, .about-frame, .doc-frame { border-color: var(--border); }
.pricing-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.pricing-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--glow-sm); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .does-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
  .does-col:nth-child(3) { padding-left: 0; border-left: none; }
  .inside-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-cell:nth-child(3) { border-left: none; }
  .tool-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.75rem; }
  .flow li:not(:last-child)::after { display: none; }
  .site-foot-inner { grid-template-columns: repeat(4, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .foot-brand p { max-width: 44ch; }
}
@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-hero h1 { max-width: 18ch; }
  .scan { max-width: 640px; }
  .lp-does, .lp-who, .lp-faq { grid-template-columns: 1fr; gap: 2.25rem; }
  .lp-does h2 { max-width: 20ch; }
  .lp-who .section-head { position: static; }
  .lp-feature { grid-template-columns: 1fr; }
  .lp-feature-photo { min-height: 280px; }
  .lp-feature-photo::after { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
  .workspace { grid-template-columns: 1fr; }
  .has-mega .mega-menu { grid-template-columns: 1fr; width: min(320px, calc(100vw - 2.5rem)); max-height: 70vh; overflow-y: auto; }
}
@media (max-width: 720px) {
  #app { padding-top: 2rem; padding-bottom: 3.5rem; }
  .topbar { flex-wrap: wrap; gap: 0.25rem 0.75rem; min-height: 0; padding-top: 0.75rem; padding-bottom: 0.5rem; }
  .topnav { order: 3; flex: 1 1 100%; flex-wrap: wrap; gap: 0 0.1rem; margin: 0 -0.5rem; }
  .nav-auth { margin-left: auto; }
  .nav-user { display: none; }
  .nav-signin { padding: 0.45rem 0.5rem; }
  .conn-toggle { order: 2; }
  .has-mega .mega-menu { left: 0; }
  .lp > section + section { margin-top: 4.5rem; }
  .lp-trust { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
  .lp-trust li { grid-template-columns: 1fr; }
  .lp-hero-cta .btn { flex: 1 1 100%; }
  .scan { grid-template-columns: 1fr; }
  .scan-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .scan-panel { padding: 0 4px 4px; }
  .does-cols { grid-template-columns: 1fr; row-gap: 0; }
  .does-col, .does-col:first-child, .does-col:nth-child(3) { padding: 1.5rem 0; border-left: none; border-top: 1px solid var(--border); }
  .does-col:first-child { border-top: none; padding-top: 0; }
  .inside-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .inside-card { flex-direction: row; align-items: stretch; gap: 1rem; padding: 10px; border-radius: 14px; }
  .inside-visual { width: 116px; flex: none; aspect-ratio: 1; margin: 0; }
  .inside-chips { display: none; }
  .inside-body { padding: 0.15rem 0.25rem 0.15rem 0; min-width: 0; }
  .inside-body h3 { font-size: 1.05rem; margin: 0.15rem 0 0.3rem; }
  .inside-body p { font-size: 14px; line-height: 1.5; margin: 0 0 0.6rem; }
  .inside-arrow { width: 28px; height: 28px; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-cell, .tool-cell:nth-child(3) { border-left: none; border-top: 1px solid var(--border); }
  .tool-cell:first-child { border-top: none; }
  .tool-top { margin-bottom: 1.1rem; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow li { display: grid; grid-template-columns: 48px 1fr; column-gap: 1.1rem; padding-bottom: 2rem; }
  .flow li:last-child { padding-bottom: 0; }
  .flow li:not(:last-child)::after { display: block; content: ""; position: absolute; left: 24px; right: auto; top: 54px; bottom: 6px; width: 1px; height: auto; background: var(--border-strong); }
  .flow-ico { margin: 0; grid-row: 1 / span 2; }
  .flow h3 { margin-top: 0.75rem; }
  .flow p { max-width: none; }
  .who-list li { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.25rem 0; }
  .acc-body { padding-right: 0.25rem; }
  .doc-head, .doc-body { padding-left: 1.25rem; padding-right: 1.25rem; }
  .site-foot-inner { grid-template-columns: 1fr 1fr; padding-top: 3rem; }
  .site-foot-bottom { flex-direction: column; }
  .flow li:not(:last-child)::after { left: 23px; width: 2px; background: linear-gradient(180deg, var(--accent), rgba(25, 211, 230, 0.2)); }
  .flow.reveal-ready li:not(:last-child)::after { transform: scaleY(0); transform-origin: top; }
  .flow.reveal-ready li.in:not(:last-child)::after { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Polish: small screens ---------- */
@media (max-width: 720px) {
  .topbar { gap: 0.15rem 0.5rem; padding-top: 0.65rem; padding-bottom: 0.35rem; }
  .wordmark { font-size: 1.05rem; }
  .wordmark::before { margin-right: 0.45rem; }
  .nav-auth { gap: 0.25rem; }
  .nav-signin { font-size: 13.5px; padding: 0.4rem 0.45rem; }
  .nav-auth .btn-sm { padding: 0.45rem 0.8rem; font-size: 13px; }
  .topnav { margin: 0 -0.5rem; border-top: 1px solid var(--border); padding-top: 0.15rem; }
  .nav-link { padding: 0.5rem 0.65rem; }
  .nav-link::after { left: 0.65rem; right: 0.65rem; bottom: 0.05rem; }
  .lp-feature-photo .strip { left: 12px; bottom: 12px; padding: 0.5rem 0.6rem; }
  .lp-feature-photo .strip li { gap: 1.25rem; font-size: 12px; }
  .does-col::before, .does-col:first-child::before { left: 0; }
  .does-col { padding-top: 1.4rem; }
  .does-col, .does-col:first-child, .does-col:nth-child(3) { border-top: 0; }
}

/* ============================================================
   Watermark-removal selection editor: toolbar + multi-shape list
   ============================================================ */
.wm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.wm-tool-group { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); overflow: hidden; }
.wm-tool-btn {
  padding: 0.4rem 0.75rem; font-size: 0.85rem; background: var(--surface, #fff); border: none;
  border-right: 1px solid var(--border); cursor: pointer; color: var(--text-secondary);
}
.wm-tool-btn:last-child { border-right: none; }
.wm-tool-btn.active { background: var(--accent); color: var(--bg); font-weight: 600; }
.wm-brush-size { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-secondary); }
.wm-brush-size input[type="range"] { width: 90px; accent-color: var(--accent); }
.shape-panel { border: 1px solid var(--border); border-radius: var(--radius, 12px); padding: 0.75rem 0.9rem; margin: 1rem 0; background: var(--surface, #fff); }
.shape-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.shape-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; font-size: 0.85rem; border-top: 1px solid var(--border); }
.shape-row:first-child { border-top: none; }
.shape-row > span:nth-child(2) { flex: 1; color: var(--text-secondary); }
.shape-swatch { width: 0.65rem; height: 0.65rem; border-radius: 50%; flex: none; }
.shape-swatch.add { background: var(--accent); }
.shape-swatch.erase { background: #9CA3AF; }

/* Result preview: multi-shape marker (replaces the old single-rect div) */
.reveal .region-mark-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none;
  animation: pl-mark-pulse 2.2s ease-in-out infinite;
}
.reveal .region-mark-svg rect {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 4;
  filter: drop-shadow(0 0 1.5px rgba(7, 26, 43, 0.7));
}
.reveal .region-mark-svg polyline {
  stroke: var(--accent); stroke-dasharray: 6 4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 1.5px rgba(7, 26, 43, 0.7));
}
@keyframes pl-mark-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
#resultArea { margin-top: 1.5rem; }



/* ============================================================
   Pricing management, toggles, toast, confirm, tool polish
   ============================================================ */
.switch { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.9rem; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--mist, #CBD5E1); transition: background-color .15s ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(7, 26, 43, .3); transition: transform .15s ease; }
.switch input:checked + .switch-track { background: var(--accent-text, #0B7285); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .5; }
.pricing-global { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.pricing-global h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.admin-plan-list { display: grid; gap: 1.25rem; }
.admin-plan { min-width: 0; }
.admin-plan-head h2 { margin: 0 0 .15rem; font-size: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.admin-plan-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; align-items: end; margin: 1rem 0; }
.field-inline { display: grid; gap: .3rem; font-size: .8rem; color: var(--text-secondary); min-width: 0; }
.field-inline input { width: 100%; min-width: 0; }
.switch-stack { display: grid; gap: 0; }
.feature-set { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem 1rem 1rem; min-width: 0; }
.feature-set legend { font-size: .8rem; color: var(--text-secondary); padding: 0 .4rem; }
.feature-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .5rem; }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; align-items: center; }
.feature-row input[type=text] { min-width: 0; width: 100%; }
.admin-plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.admin-plan-foot .status-line { margin: 0; color: var(--bad); }
.empty-state { text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.empty-state h2 { margin-top: 0; }
.plan-name { margin: 0; font-size: 1.05rem; }
#toastHost { position: fixed; z-index: 1000; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; max-width: calc(100vw - 2rem); }
.toast { padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; color: #fff; background: var(--navy, #071A2B); box-shadow: var(--shadow-sm); }
.toast.bad { background: var(--bad); }
.confirm-dialog { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; max-width: min(420px, calc(100vw - 2rem)); box-shadow: 0 20px 50px rgba(7, 26, 43, .3); }
.confirm-dialog::backdrop { background: rgba(7, 26, 43, .55); }
.confirm-dialog p { margin: 0 0 1rem; }
.confirm-dialog .btn-row { display: flex; justify-content: flex-end; gap: .5rem; }

/* Watermark tool polish */
.dropzone { display: grid; justify-items: center; gap: .4rem; }
.dropzone:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dz-icon { width: 36px; height: 36px; color: var(--accent-text, #0B7285); }
.dz-hint { font-size: .8rem; font-weight: 400; color: var(--text-secondary); }
.wm-toolbar.is-busy { opacity: .5; pointer-events: none; }
.wm-toolbar .wm-change { margin-left: auto; }
.wm-meta { overflow-wrap: anywhere; }
.wm-tool-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.result-title { font-size: 1.1rem; margin: 0 0 .75rem; }
#resultArea .btn-row { margin-top: 1rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.btn:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled], .btn:disabled { cursor: not-allowed; }

/* Overflow safety for grid/flex children across the app */
.view, .panel, .tool-card, .pricing-card, .doc-frame { min-width: 0; }
img, canvas, svg, video { max-width: 100%; }
.admin-table { width: 100%; }
@media (max-width: 720px) {
  .admin-plan-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-row { grid-template-columns: minmax(0, 1fr) auto; }
  .feature-row .switch { grid-column: 1 / 2; }
  .wm-toolbar .wm-change { margin-left: 0; }
  .wm-tool-btn, .btn-sm { min-height: 40px; }
  #toastHost { left: 1rem; right: 1rem; }
}

.boot-loading { color: var(--text-secondary); font-size: .9rem; min-height: 60vh; }

/* Header: a signed-in user's header (Tools · Pricing · Blog · About · Dashboard · Admin
   + email + Log out) is wider than a tablet screen. Switch to the two-row header at
   <=900px (it used to wait until 720px, so 721-860px overflowed the viewport). */
.topnav { min-width: 0; }
@media (max-width: 1000px) { .nav-user { display: none; } }
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 0.25rem 0.75rem; min-height: 0; padding-top: 0.75rem; padding-bottom: 0.5rem; }
  .topnav { order: 3; flex: 1 1 100%; flex-wrap: wrap; gap: 0 0.1rem; margin: 0 -0.5rem; }
  .nav-auth { margin-left: auto; }
  .conn-toggle { order: 2; }
}
/* `hidden` must win over display:flex (the brush-size slider was visible in Rectangle mode) */
.wm-brush-size[hidden], .wm-toolbar[hidden], .shape-panel[hidden] { display: none !important; }
