/* ============ EveryPDF ============ */
:root {
  --red: #4f46e5;
  --red-dark: #4338ca;
  --red-soft: #eceafd;
  --ink: #1f2430;
  --ink-soft: #5b6270;
  --line: #e7e9ee;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --card: #ffffff;
  --header-bg: rgba(255, 255, 255, .92);
  --pill-bg: #eafaf1;
  --pill-ink: #1e8e4e;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 36, 48, .08);
  --shadow-lg: 0 14px 40px rgba(31, 36, 48, .14);
}

:root[data-theme="dark"] {
  --red: #6d64f0;
  --red-dark: #5b51e8;
  --red-soft: #201d3f;
  --ink: #e8eaef;
  --ink-soft: #9aa1ae;
  --line: #2a303c;
  --bg: #12151c;
  --bg-soft: #191d26;
  --card: #1e2330;
  --header-bg: rgba(18, 21, 28, .92);
  --pill-bg: #14331f;
  --pill-ink: #6fdc99;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, .5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
button { font-family: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- partner strip (renamed from "sponsor" so ad blockers don't hide it) ---------- */
.partner-strip {
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 7px 16px;
  background: #171b24;
  font-size: 13px;
}
.partner-tag {
  background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 5px;
}
.partner-link { color: #cdd3dd; text-decoration: none; font-weight: 600; }
.partner-strip:hover .partner-link { color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-badge {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 19px;
}
.logo-text { font-size: 20px; font-weight: 500; letter-spacing: -.2px; }
.logo-text b { font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a, .nav-drop-btn {
  padding: 8px 14px; border-radius: 8px; border: none; background: none;
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s, background .15s;
}
.main-nav > a:hover, .nav-drop-btn:hover { color: var(--red); background: var(--red-soft); }
.nav-dropdown { position: relative; }
.nav-drop-menu {
  position: absolute; right: 0; top: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px;
  z-index: 80;
  display: none; grid-template-columns: repeat(3, 205px); gap: 2px;
  max-height: 72vh; overflow-y: auto;
}
.nav-dropdown:hover .nav-drop-menu, .nav-dropdown:focus-within .nav-drop-menu { display: grid; }
.nav-drop-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.nav-drop-menu a:hover { background: var(--bg-soft); }
.nav-drop-menu .mini-ico {
  width: 28px; height: 28px; border-radius: 7px; flex: 0 0 28px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-drop-menu .mini-ico svg { width: 16px; height: 16px; }
.hamburger { display: none; }
.btn-feature {
  padding: 9px 16px; font-size: 14px; border-radius: 9px;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.btn-header-contact {
  padding: 8px 14px; font-size: 14px; border-radius: 9px;
  background: none; border: 1.5px solid var(--line); color: var(--ink-soft);
  white-space: nowrap; display: inline-flex; align-items: center;
  margin-left: auto;
}
.btn-header-contact:hover { border-color: var(--red); color: var(--red); }
.btn-header-contact + .btn-feature { margin-left: 0; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink-soft); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--red); border-color: var(--red); }

/* ---------- modal (contact / feature / sponsor) ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 18, 26, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  backdrop-filter: blur(3px);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px;
  padding: 26px 24px 24px;
  max-height: 90vh; overflow-y: auto;
}
.modal h3 { font-size: 21px; margin-bottom: 4px; }
.modal-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  cursor: pointer; font-size: 14px;
}
.modal-close:hover { color: var(--red); border-color: var(--red); }
.opt-group textarea {
  width: 100%; padding: 10px 12px; resize: vertical;
  border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; font-family: inherit; color: var(--ink);
  background: var(--card);
}
.opt-group textarea:focus { outline: 2px solid var(--red-soft); border-color: var(--red); }
.form-status { color: var(--red); font-weight: 600; margin-top: 10px; }
.form-done { text-align: center; padding: 18px 0 4px; }
.form-done .done-check { width: 58px; height: 58px; margin-bottom: 12px; }
.form-done h3 { margin-bottom: 6px; }
.form-done p { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }

/* hero contact button */
.hero-actions { margin-top: 18px; }
.btn-hero-contact {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1.5px solid var(--line); color: var(--ink-soft);
  padding: 10px 22px; border-radius: 999px; font-size: 14.5px;
}
.btn-hero-contact:hover { border-color: var(--red); color: var(--red); }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 72px 0 40px; }
.hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 800; letter-spacing: -1px; line-height: 1.15;
  max-width: 820px; margin: 0 auto;
}
.hero .accent { color: var(--red); }
.hero-sub {
  max-width: 640px; margin: 18px auto 0;
  font-size: 18px; color: var(--ink-soft);
}
.privacy-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 9px 18px;
  background: var(--pill-bg); color: var(--pill-ink);
  border-radius: 999px; font-size: 14px; font-weight: 600;
}

/* ---------- tool search (strip under the header, always visible) ---------- */
.search-bar {
  border-top: 1px solid var(--line);
  padding: 9px 0 10px;
  background: var(--header-bg);
}
.search-wrap {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 560px; margin: 0 auto;
  background: var(--bg-soft); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 0 8px 0 16px;
  color: var(--ink-soft);
  transition: border-color .15s;
}
.search-wrap:focus-within { border-color: var(--red); }
.search-wrap svg { flex: 0 0 17px; }
.search-wrap input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-size: 15px; font-family: inherit; color: var(--ink);
  padding: 10px 6px 10px 0;
  -webkit-appearance: none; appearance: none;
}
.search-wrap input::-webkit-search-decoration { -webkit-appearance: none; }
.search-wrap input::placeholder { color: var(--ink-soft); opacity: .75; }
.search-empty {
  margin: 0 0 18px; font-size: 14.5px; color: var(--ink-soft);
}
.search-empty a { color: var(--red); font-weight: 600; text-decoration: none; }

/* ---------- tool grid ---------- */
.tools-section { padding: 20px 0 70px; }
.cat-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px; letter-spacing: -.3px;
  margin: 38px 0 16px;
}
#toolGrid .cat-title:first-child { margin-top: 0; }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.tool-grid-row {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.tool-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 20px 20px; text-decoration: none; color: var(--ink);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: block;
}
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--tc);
  transition: width .22s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tool-card:hover::before { width: 7px; }
.tool-card:hover h3 { color: var(--tc); }
.tool-card-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.tool-card-ico {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px;
  background: var(--tc-bg); color: var(--tc);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.tool-card:hover .tool-card-ico { transform: scale(1.1) rotate(-4deg); }
:root[data-theme="dark"] .tool-card-ico { background: color-mix(in srgb, var(--tc) 24%, #39415a); }
.tool-card-arrow {
  margin-left: auto; flex: 0 0 auto;
  color: var(--ink-soft); opacity: 0; transform: translateX(-6px);
  transition: opacity .2s, transform .2s, color .2s;
}
.tool-card:hover .tool-card-arrow { opacity: 1; transform: translateX(0); color: var(--tc); }
.tool-card-ico svg { width: 24px; height: 24px; }
.tool-card h3 { font-size: 16.5px; font-weight: 700; transition: color .18s; }
.tool-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- features ---------- */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px; padding-bottom: 90px;
}
.feature { text-align: center; padding: 10px 14px; }
.feature-ico {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); max-width: 300px; margin: 0 auto; }

/* ---------- tool view ---------- */
.tool-container { padding: 34px 24px 90px; }
.back-link {
  display: inline-block; margin-bottom: 22px;
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 14px;
}
.back-link:hover { color: var(--red); }
.tool-head { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; }
.tool-head-ico {
  width: 54px; height: 54px; border-radius: 14px; flex: 0 0 54px;
  display: flex; align-items: center; justify-content: center;
}
.tool-head-ico svg { width: 28px; height: 28px; }
.tool-head h1 { font-size: 28px; letter-spacing: -.4px; }
.tool-head p { color: var(--ink-soft); font-size: 15px; }

/* dropzone */
.dropzone {
  border: 2px dashed #cfd4dd; border-radius: 18px;
  background: var(--bg-soft);
  padding: 64px 24px; text-align: center;
  color: var(--ink-soft);
  transition: border-color .15s, background .15s;
}
.dropzone.dragover { border-color: var(--red); background: var(--red-soft); }
.dropzone svg { color: #aab1bd; margin-bottom: 10px; }
.dz-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.dz-sub { font-size: 14px; margin: 4px 0 20px; }

/* buttons */
.btn {
  border: none; border-radius: 10px; cursor: pointer;
  font-weight: 700; font-size: 15px;
  padding: 10px 20px;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.3); }
.btn-primary:hover { background: var(--red-dark); }
.btn-primary:disabled { background: #e9a5a3; cursor: not-allowed; box-shadow: none; }
.btn-lg { padding: 14px 34px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-ghost {
  background: none; color: var(--ink-soft);
  border: 1px solid var(--line); margin-top: 14px;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* work layout */
.work-layout { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.work-side {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: sticky; top: 84px;
  box-shadow: var(--shadow);
}
.work-side h3 { font-size: 16px; margin-bottom: 14px; }
.work-side .btn-block { margin-top: 18px; }

/* file list */
.file-list { display: flex; flex-direction: column; gap: 10px; }
.file-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px;
}
.file-row.draggable { cursor: grab; }
.file-row.drag-src { opacity: .4; }
.file-ico {
  width: 38px; height: 38px; border-radius: 9px; flex: 0 0 38px;
  background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px;
}
.file-name { font-weight: 600; font-size: 14.5px; word-break: break-all; }
.file-meta { font-size: 12.5px; color: var(--ink-soft); }
.file-actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.icon-btn:hover { color: var(--red); border-color: var(--red); }

/* page board (organize / split visual) */
.page-board {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px; margin-top: 6px;
}
.page-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; text-align: center; position: relative;
  cursor: grab; transition: box-shadow .15s, transform .15s;
}
.page-tile:hover { box-shadow: var(--shadow); }
.page-tile.drag-src { opacity: .35; }
.page-tile.drag-over { outline: 2px solid var(--red); }
.page-tile canvas {
  width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; display: block;
}
.page-tile .pg-num { font-size: 12px; color: var(--ink-soft); margin-top: 6px; font-weight: 600; }
.page-tile .pg-del, .page-tile .pg-rot {
  position: absolute; top: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(31,36,48,.75); color: #fff; font-size: 13px;
  display: none; align-items: center; justify-content: center;
}
.page-tile .pg-del { right: 6px; }
.page-tile .pg-rot { right: 38px; }
.page-tile:hover .pg-del, .page-tile:hover .pg-rot { display: inline-flex; }
.page-tile.deleted { opacity: .3; }
.page-tile.deleted canvas { filter: grayscale(1); }

/* redact board */
.page-board.redact-board { display: block; }
.redact-page { margin-bottom: 22px; }
.redact-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; font-weight: 700; font-size: 14px; color: var(--ink-soft);
}
.redact-stage {
  position: relative; display: inline-block; max-width: 100%;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow);
}
.redact-stage canvas { display: block; max-width: 100%; height: auto; }
.redact-overlay {
  position: absolute; inset: 0; cursor: crosshair; touch-action: none;
}
.redact-rect {
  position: absolute; background: #000; pointer-events: none;
}
.redact-rect.drawing { background: rgba(0,0,0,.65); outline: 2px dashed var(--red); }

/* crop selection */
.crop-rect {
  position: absolute; pointer-events: none;
  background: rgba(79, 70, 229, .12);
  outline: 2px dashed var(--red);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35);
}

/* edit-pdf text boxes */
.edit-stage { overflow: visible; }
.edit-text {
  position: absolute; min-width: 30px;
  font-family: Helvetica, Arial, sans-serif; line-height: 1.25;
  z-index: 5;
}
.edit-text-inner {
  outline: 1.5px dashed rgba(79, 70, 229, .6); border-radius: 3px;
  padding: 1px 4px; min-width: 26px; white-space: pre-wrap;
  background: rgba(255, 255, 255, .25);
}
.edit-text-inner:focus { outline: 2px solid var(--red); background: rgba(255, 255, 255, .5); }
.edit-text-del {
  position: absolute; top: -12px; right: -12px;
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: rgba(31, 36, 48, .8); color: #fff; font-size: 11px;
  cursor: pointer; display: none; align-items: center; justify-content: center;
}
.edit-text:hover .edit-text-del { display: inline-flex; }

/* options widgets */
.opt-group { margin-bottom: 16px; }
.opt-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.opt-group input[type=text], .opt-group input[type=email], .opt-group input[type=number], .opt-group select {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; font-family: inherit; color: var(--ink);
  background: var(--card);
}
.opt-group input:focus, .opt-group textarea:focus, .opt-group select:focus { outline: 2px solid var(--red-soft); border-color: var(--red); }
.opt-group input[type=range] { width: 100%; accent-color: var(--red); }
.opt-hint { font-size: 12px; color: var(--ink-soft); margin-top: 5px; }
.radio-cards { display: flex; flex-direction: column; gap: 8px; }
.radio-card {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 12px; cursor: pointer; font-size: 13.5px;
}
.radio-card input { accent-color: var(--red); margin-top: 2px; }
.radio-card.selected { border-color: var(--red); background: var(--red-soft); }
.radio-card b { display: block; font-size: 14px; }
.radio-card span { color: var(--ink-soft); font-size: 12.5px; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check-row input { accent-color: var(--red); width: 16px; height: 16px; }

/* signature pad */
.sig-pad {
  border: 1.5px dashed #cfd4dd; border-radius: 10px;
  background: #fff; width: 100%; touch-action: none; cursor: crosshair;
}
.sig-tools { display: flex; gap: 8px; margin-top: 8px; }
.sig-tools .icon-btn { width: auto; padding: 0 12px; font-size: 13px; font-weight: 600; }

/* busy */
.busy-box { text-align: center; padding: 90px 20px; }
.spinner {
  width: 52px; height: 52px; margin: 0 auto 22px;
  border: 5px solid var(--red-soft); border-top-color: var(--red);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#busyMsg { font-size: 17px; font-weight: 600; margin-bottom: 18px; }
.progress-track {
  max-width: 380px; height: 8px; margin: 0 auto;
  background: var(--line); border-radius: 99px; overflow: hidden;
}
.progress-fill { height: 100%; width: 0%; background: var(--red); border-radius: 99px; transition: width .2s; }

/* done */
.done-box { text-align: center; padding: 70px 20px; }
.done-check {
  width: 72px; height: 72px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--pill-bg); color: var(--pill-ink);
  display: flex; align-items: center; justify-content: center;
}
.done-box h2 { font-size: 26px; margin-bottom: 8px; }
.done-box p { color: var(--ink-soft); margin-bottom: 26px; }

/* seo blurb on tool pages */
.tool-seo {
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.tool-seo h2 { font-size: 20px; margin: 26px 0 10px; }
.tool-seo h2:first-child { margin-top: 0; }
.tool-seo h3 { font-size: 15.5px; margin: 16px 0 5px; }
.tool-seo p { color: var(--ink-soft); font-size: 15px; margin-bottom: 12px; }
.tool-seo .related-tools a { color: var(--red); font-weight: 600; text-decoration: none; }
.tool-seo .related-tools a:hover { text-decoration: underline; }

/* error */
.error-bar {
  margin-top: 18px; padding: 13px 18px;
  background: var(--red-soft); color: var(--red);
  border: 1px solid var(--red); border-radius: 10px;
  font-size: 14px; font-weight: 600;
}

/* ---------- footer ---------- */
.site-footer { background: #171b24; color: #aab1bd; padding: 52px 0 0; }
.site-footer .logo-text { color: #fff; }
.footer-tag { margin-top: 12px; font-size: 14px; max-width: 260px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-cols h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.footer-cols a { display: block; color: #aab1bd; text-decoration: none; font-size: 14px; margin-bottom: 9px; }
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2a2f3a; padding: 18px 24px; font-size: 13px;
}

/* ---------- touch devices (no hover) ---------- */
@media (hover: none) {
  /* hover-revealed controls must always be visible on touch screens */
  .page-tile .pg-del, .page-tile .pg-rot { display: inline-flex; }
  .edit-text-del { display: inline-flex; }
  .tool-card-arrow { opacity: 1; transform: none; }
  .nav-dropdown:active .nav-drop-menu { display: grid; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .work-layout { grid-template-columns: 1fr; }
  .work-side { position: static; }
}
@media (max-width: 720px) {
  .header-inner { gap: 6px; }
  .search-bar { padding: 7px 0 8px; }
  .search-wrap input { font-size: 16px; } /* no iOS zoom */

  .logo { gap: 6px; }
  .logo-text { display: none; } /* badge-only logo frees room for both buttons */
  .logo-badge { width: 32px; height: 32px; font-size: 17px; border-radius: 8px; }
  .btn-feature { padding: 8px 9px; font-size: 12px; }
  .btn-header-contact { padding: 7px 9px; font-size: 12px; }
  .theme-toggle { width: 38px; height: 38px; flex: 0 0 38px; }
  .hamburger { padding: 8px 6px; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    z-index: 60; max-height: calc(100vh - 140px); overflow-y: auto;
    background: var(--card); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 13px 14px; font-size: 16px; }
  .nav-drop-menu { position: static; display: grid; grid-template-columns: 1fr; box-shadow: none; border: none; padding: 0; }
  .nav-drop-menu a { padding: 12px; font-size: 15px; }
  .nav-drop-btn { display: none; }
  .hamburger {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
  }
  .hamburger span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; }
  .partner-strip {
  cursor: pointer; font-size: 12px; text-align: center; }
  .hero { padding: 40px 0 20px; }
  .hero-sub { font-size: 16px; }
  .privacy-pill { font-size: 13px; padding: 8px 14px; }
  .cat-title { font-size: 19px; }

  /* tool pages: comfortable one-hand use */
  .tool-container { padding: 22px 16px 120px; }
  .tool-head { gap: 12px; }
  .tool-head-ico { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; }
  .tool-head h1 { font-size: 23px; }
  .dropzone { padding: 44px 18px; }
  .dz-sub { display: none; } /* no drag & drop on phones */
  .btn-lg { padding: 15px 30px; font-size: 16px; width: 100%; }

  /* the action button floats at the bottom of the screen */
  #stepWork .work-side .btn-block {
    position: fixed; left: 14px; right: 14px; bottom: 14px; width: auto;
    z-index: 45; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }

  /* bigger touch targets */
  .icon-btn { width: 40px; height: 40px; font-size: 17px; }
  .file-row { padding: 12px; gap: 10px; }
  .page-tile .pg-del, .page-tile .pg-rot { width: 32px; height: 32px; font-size: 15px; }
  .page-tile .pg-rot { right: 44px; }
  .radio-card { padding: 13px 12px; }
  .check-row { padding: 6px 0; }

  /* prevent iOS auto-zoom on focus (needs >=16px inputs) */
  .opt-group input[type=text], .opt-group input[type=email], .opt-group input[type=number], .opt-group select { font-size: 16px; padding: 12px; }

  .footer-cols { gap: 28px; }
  .done-box, .busy-box { padding: 50px 16px; }
}

/* sister-site link in footer */
.sister-link { color: #fff; font-weight: 700; text-decoration: none; }
.sister-link:hover { text-decoration: underline; }

.footer-legal { color: #cdd3dd; text-decoration: none; font-weight: 600; }
.footer-legal:hover { color: #fff; text-decoration: underline; }
.legal-content h2 { font-size: 19px; margin: 26px 0 8px; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.legal-content ul { padding-left: 22px; margin-bottom: 12px; }
.legal-updated { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }

/* guide pages */
.guide-cta {
  display: block; margin: 22px 0;
  background: var(--red-soft); border: 1.5px solid var(--red);
  border-radius: 14px; padding: 16px 20px;
  color: var(--red); font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s;
}
.guide-cta:hover { transform: translateY(-2px); }
.guide-list { list-style: none; padding: 0; }
.guide-list li { margin-bottom: 14px; }
.guide-list a { font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: none; }
.guide-list a:hover { color: var(--red); }
.guide-list p { margin: 3px 0 0; color: var(--ink-soft); font-size: 14px; }

.home-guides { padding-bottom: 60px; }
.home-guides .guide-list li { margin-bottom: 16px; }

/* feedback widget */
.fb-block { margin-top: 26px; }
.fb-wrap { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.fb-form { max-width: 420px; margin: 14px auto 0; }
.fb-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-family: inherit; color: var(--ink); background: var(--card); resize: vertical; margin-bottom: 8px; }

/* guide images */
.guide-img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); margin: 8px 0 16px; display: block; }

/* ---------- live tools (everySIMPLEtool) ---------- */
.live-layout {
  display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: start;
}
.live-controls {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.live-output {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; min-height: 280px; text-align: center;
}
.qr-frame { display: flex; align-items: center; justify-content: center; min-height: 220px; }
.qr-frame canvas { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pw-box {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 19px; font-weight: 600; letter-spacing: .5px;
  word-break: break-all; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; width: 100%; user-select: all;
}
.pw-meta { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.wc-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px;
}
.wc-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 10px; text-align: center;
}
.wc-stat b { display: block; font-size: 21px; letter-spacing: -.4px; }
.wc-stat span { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.sister-link { color: #fff; font-weight: 700; text-decoration: none; }
.sister-link:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .live-layout { grid-template-columns: 1fr; }
}

.footer-legal { color: #cdd3dd; text-decoration: none; font-weight: 600; }
.footer-legal:hover { color: #fff; text-decoration: underline; }
.legal-content h2 { font-size: 19px; margin: 26px 0 8px; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.legal-content ul { padding-left: 22px; margin-bottom: 12px; }
.legal-updated { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }

/* guide pages */
.guide-cta {
  display: block; margin: 22px 0;
  background: var(--red-soft); border: 1.5px solid var(--red);
  border-radius: 14px; padding: 16px 20px;
  color: var(--red); font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s;
}
.guide-cta:hover { transform: translateY(-2px); }
.guide-list { list-style: none; padding: 0; }
.guide-list li { margin-bottom: 14px; }
.guide-list a { font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: none; }
.guide-list a:hover { color: var(--red); }
.guide-list p { margin: 3px 0 0; color: var(--ink-soft); font-size: 14px; }

.home-guides { padding-bottom: 60px; }
.home-guides .guide-list li { margin-bottom: 16px; }

/* feedback widget */
.fb-block { margin-top: 26px; }
.fb-wrap { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.fb-form { max-width: 420px; margin: 14px auto 0; }
.fb-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-family: inherit; color: var(--ink); background: var(--card); resize: vertical; margin-bottom: 8px; }

/* merged-site nav polish */
.nav-drop-menu .mini-ico { font-size: 9px; font-weight: 800; letter-spacing: .3px; }
.header-inner { min-width: 0; }
.main-nav { min-width: 0; }
@media (max-width: 720px) {
  .nav-drop-menu { max-height: none; }
}

/* logo redesign */
.logo-badge-svg { display: block; border-radius: 9px; flex: 0 0 34px; }
.logo-text b { color: var(--red); }
.site-footer .logo-text b { color: #8b8ff5; }
@media (max-width: 720px) {
  .logo-badge-svg { width: 30px; height: 30px; flex-basis: 30px; }
}
/* dropdown: stay open while traveling from button to menu */
.nav-dropdown { padding-bottom: 8px; margin-bottom: -8px; }

/* keep the search strip below the open All-tools menu */
.search-bar { position: relative; z-index: 1; }

/* ---------- live privacy proof ---------- */
.privacy-proof {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 20px; padding: 11px 16px;
  background: var(--pill-bg); border: 1px solid color-mix(in srgb, var(--pill-ink) 30%, transparent);
  border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--pill-ink);
}
.pp-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px;
  background: var(--pill-ink); box-shadow: 0 0 0 0 currentColor;
  animation: ppPulse 2.4s ease-out infinite;
}
@keyframes ppPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.pp-text b { font-weight: 800; }
.pp-more {
  margin-left: auto; border: none; background: none; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--pill-ink);
  text-decoration: underline; text-underline-offset: 3px; padding: 2px 0;
}
.privacy-proof.pp-alert { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.pp-panel {
  margin: -8px 0 22px; padding: 16px 18px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
}
.pp-panel p { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.pp-panel p:last-child { margin-bottom: 0; }
.pp-panel b { color: var(--ink); }
.pp-live {
  font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 13px !important;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
}
.pp-done { font-size: 13.5px; color: var(--pill-ink); font-weight: 600; margin-top: -14px; margin-bottom: 22px; }
@media (max-width: 720px) {
  .privacy-proof { font-size: 13px; padding: 10px 13px; }
  .pp-more { margin-left: 0; flex-basis: 100%; text-align: left; }
}

/* footer bottom: legal links get their own visible row */
.footer-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; padding: 22px 24px 26px;
}
.footer-legal-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.footer-legal-row a {
  color: #dfe3ea; font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 4px 2px; border-bottom: 1px solid transparent; cursor: pointer;
}
.footer-legal-row a:hover { color: #fff; border-bottom-color: #fff; }
.footer-copy { font-size: 13px; color: #99a1b0; max-width: 640px; margin: 0; }
@media (max-width: 720px) {
  .footer-legal-row { gap: 8px 18px; }
  .footer-legal-row a { font-size: 15px; padding: 6px 2px; }
}
