/* GenClean toolkit - homepage + tool page styles.
   Loads after styles.css; header/footer/pricing/faq/modal styles come from there. */

.gradient-word {
  background: linear-gradient(100deg, #ff765f, #c24eea 48%, #4678ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hand {
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
}

.kicker {
  display: block;
  margin-bottom: 10px;
  color: #79808e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- toolkit hero ---------- */
.tk-hero {
  display: grid;
  grid-template-columns: minmax(360px, 470px) minmax(520px, 1fr);
  align-items: center;
  column-gap: clamp(26px, 3vw, 52px);
  row-gap: clamp(14px, 1.6vw, 24px);
  width: min(1120px, calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
  padding: 40px 0 30px;
}

.tk-hero .pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(207, 255, 51, 0.35);
  margin-right: 8px;
}

.tk-hero h1 {
  max-width: 520px;
  margin-bottom: 22px;
  font-size: clamp(44px, 4.5vw, 70px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.tk-lede {
  max-width: 430px;
  margin-bottom: 26px;
  color: #252832;
  font-size: 19px;
  line-height: 1.55;
}

.tk-lede strong {
  color: inherit;
  font-weight: 800;
}

.hero-tool-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 460px;
}

.hero-tool-ticker a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.hero-tool-ticker a:hover {
  transform: translateY(-2px);
  border-color: rgba(9, 9, 9, 0.3);
  box-shadow: 0 10px 22px rgba(43, 31, 18, 0.1);
}

.hero-tool-ticker a b {
  color: var(--violet);
  font-size: 15px;
  line-height: 1;
}

.hero-tool-ticker .ticker-more {
  border-style: dashed;
  color: var(--muted);
}

.tk-upload-card {
  position: relative;
}

/* homepage: once a file is loaded, the workspace takes the full hero width */
.tk-hero .tk-upload-card:has(.tool-workspace.has-file) {
  grid-column: 1 / -1;
}

.tk-hero .tool-workspace {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.tk-hero .tool-workspace.has-file {
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 80px rgba(43, 31, 18, 0.1);
  backdrop-filter: blur(18px);
  border-radius: 28px;
}

.tk-hero .tk-drop {
  box-shadow: 0 34px 90px rgba(58, 44, 32, 0.12);
}

.tk-upload-card .hand-note {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 14px;
}

.tk-drop {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 34%, rgba(207, 255, 51, 0.09), transparent 26%),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 34px 90px rgba(58, 44, 32, 0.12);
  backdrop-filter: blur(18px);
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.tk-drop:hover,
.tk-drop.is-dragging {
  border-color: rgba(9, 9, 9, 0.22);
  box-shadow: 0 34px 90px rgba(58, 44, 32, 0.14), 0 0 0 5px rgba(207, 255, 51, 0.08);
}

.tk-drop.is-dragging {
  border-color: rgba(139, 92, 255, 0.7);
}

.tk-drop::before {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px dashed #d8d0ca;
  border-radius: 22px;
  pointer-events: none;
}

.tk-drop-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: #0b0b0b;
  color: var(--green);
  font-size: 40px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.tk-drop-icon::before,
.tk-drop-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(139, 92, 255, 0.16);
  transform: rotate(8deg);
  z-index: -1;
}

.tk-drop-icon::after {
  inset: -15px;
  border-color: rgba(207, 255, 51, 0.16);
  transform: rotate(-10deg);
}

.tk-drop h2 {
  margin-bottom: 6px;
  font-size: 26px;
  line-height: 1.25;
}

.verb-slot {
  display: inline-grid;
  position: relative;
  min-width: 5.4ch;
  text-align: left;
}

.verb-slot span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms ease, transform 320ms cubic-bezier(.2, .7, .2, 1);
  background: linear-gradient(100deg, #ff765f, #c24eea 48%, #4678ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.verb-slot span.is-active {
  opacity: 1;
  transform: translateY(0);
}

.tk-drop > p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
}

.tk-drop small {
  color: #747b8d;
  font-size: 15px;
}

.privacy-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #0b0b0b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.privacy-ribbon i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #111;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

/* ---------- trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 64px);
  width: var(--page-width);
  margin: 8px auto 0;
  padding: 18px clamp(12px, 3vw, 34px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #252832;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.proof-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: center;
}

.proof-item img {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.proof-item span {
  display: block;
  max-width: 160px;
  line-height: 1.18;
}

/* ---------- tool shelf ---------- */
.tool-shelf {
  width: var(--page-width);
  margin: 76px auto 0;
}

.shelf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.shelf-head h2 {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.02;
}

.shelf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shelf-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #252832;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.shelf-tabs button:hover {
  border-color: rgba(9, 9, 9, 0.3);
}

.shelf-tabs button.is-active {
  background: #0b0b0b;
  border-color: #0b0b0b;
  color: var(--green);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tool-card {
  position: relative;
  display: grid;
  grid-template-rows: 56px auto auto;
  gap: 8px;
  min-height: 132px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tool-card-icon {
  display: grid;
  place-items: center;
  align-self: flex-start;
  width: 64px;
  height: 56px;
  margin: 0;
  overflow: visible;
}

.tool-card-icon img {
  display: block;
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: contain !important;
}

.tool-card-icon.suggest-icon {
  opacity: 0.62;
  filter: grayscale(0.25);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(9, 9, 9, 0.24);
  box-shadow: 0 24px 54px rgba(43, 31, 18, 0.12);
}

.tool-card.is-hidden {
  display: none;
}

.tool-card h3 {
  margin: 0;
  font-size: 15.5px;
  letter-spacing: -0.01em;
}

.tool-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.tool-card .card-foot {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  font-weight: 800;
}

.tag-free { color: #4f7717; }
.tag-soon { color: #9aa0ad; }
.tag-pro { color: var(--violet); }

.card-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 14px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.tool-card:hover .card-arrow {
  background: #0b0b0b;
  color: var(--green);
  transform: rotate(45deg);
}

.tool-card.is-soon {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.45);
}

.tool-card.is-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.fmt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fmt {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.fmt-dark { background: #0b0b0b; color: #fff; }
.fmt-lime { background: var(--green); color: #111; }
.fmt-mint { background: var(--mint); color: #2c4a12; }
.fmt-ghost { background: transparent; border: 1.5px dashed #cfc7c0; color: #8b93a3; }
.fmt-violet { background: rgba(139, 92, 255, 0.14); color: #5b32c7; }
.fmt-blue { background: rgba(70, 120, 255, 0.13); color: #2b56d8; }
.fmt-peach { background: rgba(255, 118, 95, 0.15); color: #c74a32; }

.fmt-arrow {
  color: #9aa0ad;
  font-size: 15px;
  font-weight: 900;
}

.tool-card.card-wide {
  grid-column: span 2;
  grid-template-rows: 48px auto auto;
  background:
    radial-gradient(circle at 12% 20%, rgba(207, 255, 51, 0.14), transparent 32%),
    radial-gradient(circle at 90% 85%, rgba(139, 92, 255, 0.16), transparent 34%),
    #080808;
  border-color: #080808;
  color: #fff;
}

.tool-card.card-wide p { color: rgba(255, 255, 255, 0.72); }
.tool-card.card-wide h3 { font-size: 17px; color: #fff; }
.tool-card.card-wide .tag-free { color: var(--green); }
.tool-card.card-wide .tool-card-icon {
  width: 64px;
  height: 56px;
}

.tool-card.card-wide .tool-card-icon img {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  filter: drop-shadow(0 16px 28px rgba(207, 255, 51, 0.12));
}

.tool-card.card-wide .card-arrow {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tool-card.card-wide:hover .card-arrow {
  background: var(--green);
  color: #111;
}

.shelf-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.shelf-note a {
  color: #111;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.privacy-panel {
  position: relative;
  width: var(--page-width);
  margin: 90px auto 0;
  padding: clamp(38px, 4.6vw, 66px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 26%, rgba(207, 255, 51, 0.12), transparent 24%),
    radial-gradient(circle at 92% 72%, rgba(139, 92, 255, 0.14), transparent 24%),
    #080808;
  color: #fff;
  overflow: hidden;
}

.privacy-art-panel {
  padding: 0;
  background: transparent;
  color: inherit;
}

.privacy-art-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  box-shadow: 0 26px 80px rgba(9, 9, 9, 0.12);
}

.privacy-panel .kicker {
  color: rgba(255, 255, 255, 0.55);
}

.privacy-panel h2 {
  max-width: 640px;
  margin-bottom: 14px;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.04;
}

.privacy-panel h2 em {
  font-style: normal;
  color: var(--green);
}

.privacy-panel > p {
  max-width: 560px;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.65;
}

.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr auto 1fr;
  align-items: stretch;
}

.pipe-node {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 30px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  text-align: center;
  backdrop-filter: blur(10px);
}

.pipe-node.engine {
  border-color: rgba(207, 255, 51, 0.4);
  box-shadow: 0 0 0 1px rgba(207, 255, 51, 0.12), 0 24px 60px rgba(0, 0, 0, 0.4);
}

.pipe-node svg { display: block; }

.pipe-node strong { font-size: 17px; }

.pipe-node span {
  max-width: 240px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13.5px;
  line-height: 1.5;
}

.pipe-link {
  position: relative;
  align-self: center;
  width: clamp(30px, 4vw, 64px);
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 6px, transparent 6px 12px);
}

.pipe-link::after {
  content: "→";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 6px;
  background: #0c0c0c;
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
}

.no-cloud {
  position: absolute;
  top: clamp(30px, 4.4vw, 58px);
  right: clamp(30px, 5vw, 70px);
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: rotate(6deg);
}

.no-cloud small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.privacy-receipts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.privacy-receipts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  font-weight: 700;
}

.privacy-receipts b {
  color: var(--green);
  font-weight: 900;
}

/* ---------- why (4-col toolkit variant) ---------- */
.tk-why {
  width: var(--page-width);
  margin: 0 auto;
  padding: 78px 0 70px;
  text-align: center;
}

.tk-why h2 {
  margin-bottom: 38px;
  font-size: clamp(30px, 3vw, 44px);
}

.tk-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tk-why-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 200px;
  padding: 0 30px;
  border-right: 1px solid var(--line);
}

.tk-why-grid article:last-child { border-right: 0; }

.tk-why-grid h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.tk-why-grid p {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- final cta tool wall ---------- */
.final-cta {
  display: block;
  width: var(--page-width);
  min-height: 0;
  margin: 0 auto 36px;
  padding: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}

.final-cta > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  box-shadow: 0 24px 80px rgba(9, 9, 9, 0.12);
}


/* ---------- tool pages ---------- */
.tool-page {
  width: var(--page-width);
  margin: 18px auto 88px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumbs a {
  color: #111;
}

.breadcrumbs i {
  font-style: normal;
  color: #b9b0aa;
}

/* compact, centered hero - the tool itself stays above the fold */
.tool-hero {
  display: grid;
  justify-items: center;
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
}

.tool-hero .fmt-row {
  justify-content: center;
  margin-bottom: 14px;
}

.tool-hero-icon {
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.tool-hero-icon img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(24, 24, 24, 0.12));
}

.tool-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.tool-hero .lead {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

/* linked format words inside the parent tool's lead sentence */
.tool-hero .lead a {
  color: #111;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(139, 92, 255, 0.55);
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease;
}

.tool-hero .lead a:hover {
  text-decoration-color: var(--violet);
}

/* format-variant cross-links under the tool hero */
.variant-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 13px;
}

.variant-links span {
  color: #79808e;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}

.variant-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #252832;
  font-weight: 700;
  transition: border-color 160ms ease, transform 160ms ease;
}

.variant-links a:hover {
  border-color: rgba(9, 9, 9, 0.3);
  transform: translateY(-1px);
}

/* workspace card */
.tool-workspace {
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 80px rgba(43, 31, 18, 0.1);
  backdrop-filter: blur(18px);
}

.tool-workspace .tk-drop {
  min-height: 320px;
  box-shadow: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(207, 255, 51, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.6);
}

.tool-workspace .tk-drop::before {
  inset: 22px;
}

.tool-workspace .tk-drop .tk-drop-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  font-size: 32px;
}

.tool-workspace .tk-drop h2 {
  font-size: 22px;
}

.tool-stage[hidden],
.tk-drop[hidden] {
  display: none;
}

.tool-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stage-panel {
  min-width: 0;
}

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 800;
}

.stage-bar .stage-size {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
}

.stage-label {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.stage-file-name {
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-stage.is-busy [data-result-preview] {
  opacity: 0.45;
  transition: opacity 160ms ease;
}

.tool-settings {
  display: contents;
}

/* single-result stage (resize) */
.stage-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.single-meta {
  margin: 12px 0 0;
  color: #343842;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: pre;
}

/* metadata report stage */
.stage-grid-report {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.report-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 300px;
  margin: 0;
  padding: 16px;
  list-style: none;
  border-radius: 18px;
  background: #fbfaf7;
  border: 1px solid var(--line);
}

.report-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 13.5px;
}

.report-row span {
  font-weight: 800;
  color: #111;
}

.report-row em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-row b {
  justify-self: end;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0ece5;
  color: #6a7180;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-row b.is-removed {
  background: var(--green);
  color: #111;
}

.report-row.is-alert span {
  color: #a93124;
}

.report-row.is-pending,
.report-row.is-clean {
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 4px;
  color: var(--muted);
}

.report-row.is-clean span {
  color: #4f7717;
}

.report-row.is-clean em {
  white-space: normal;
}

/* crop editor stage */
.crop-stage {
  place-items: center;
}

.crop-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.crop-wrap img {
  display: block;
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
}

.crop-box {
  position: absolute;
  border: 2px solid var(--green);
  border-radius: 6px;
  background: rgba(207, 255, 51, 0.08);
  box-shadow: 0 0 0 9999px rgba(9, 9, 9, 0.45);
  cursor: move;
  touch-action: none;
}

.crop-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 33.34% 33.34%;
  pointer-events: none;
}

.crop-handle {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 18px;
  height: 18px;
  border: 3px solid #0b0b0b;
  border-radius: 6px;
  background: var(--green);
  cursor: nwse-resize;
  touch-action: none;
}

/* pdf pages stage */
.pages-stage {
  display: grid;
  gap: 12px;
}

.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfaf7;
  max-height: 560px;
  overflow: auto;
}

.page-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.page-card img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.035) 25%, transparent 25% 75%, rgba(0, 0, 0, 0.035) 75%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.035) 25%, transparent 25% 75%, rgba(0, 0, 0, 0.035) 75%),
    #f8f5ef;
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}

.page-card .page-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.page-card .page-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 10px;
  background: var(--green);
  color: #111;
  font-size: 13px;
  font-weight: 800;
}

/* pro upsell dialog (free user selected multiple files) */
.pro-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 36px;
  border: 0;
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 10%, rgba(139, 92, 255, 0.18), transparent 34%),
    #0a0a0a;
  color: #fff;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.42);
}

.pro-dialog::backdrop {
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
}

.pro-dialog .kicker {
  color: var(--green);
}

.pro-dialog h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.1;
}

.pro-dialog p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14.5px;
  line-height: 1.6;
}

.pro-dialog ul {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.pro-dialog li {
  display: grid;
  grid-template-columns: 22px 1fr;
}

.pro-dialog li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

.pro-dialog .lime-button {
  width: 100%;
  min-width: 0;
  margin-bottom: 12px;
}

.pro-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
}

.pro-dialog-continue {
  width: 100%;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* batch queue (Pro) */
.batch-stage[hidden] {
  display: none;
}

.batch-stage {
  display: grid;
  gap: 14px;
}

.batch-bar {
  min-height: 30px;
}

.batch-queue {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 420px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfaf7;
}

.batch-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 60px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.batch-row img {
  width: 48px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #111;
}

.batch-row .batch-name {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-row .batch-meta {
  color: var(--muted);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.batch-row .batch-status {
  min-width: 74px;
  text-align: right;
  color: #6a7180;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.batch-row.is-working .batch-status {
  color: #b07a1e;
}

.batch-row.is-done .batch-status {
  color: #4f7717;
}

.batch-row.is-invalid {
  opacity: 0.6;
}

.batch-row.is-invalid .batch-status {
  color: #a93124;
}

.stage-bar .stage-size.is-smaller {
  color: #4f7717;
}

.stage-canvas {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  border-radius: 18px;
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.035) 25%, transparent 25% 75%, rgba(0, 0, 0, 0.035) 75%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.035) 25%, transparent 25% 75%, rgba(0, 0, 0, 0.035) 75%),
    #f8f5ef;
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  overflow: hidden;
}

.stage-canvas img,
.stage-canvas canvas {
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
  display: block;
}

.stage-canvas img[hidden] {
  display: none;
}

.stage-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #737987;
  font-size: 14px;
  text-align: center;
}

.stage-empty.is-hidden {
  display: none;
}

.tool-controls {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tool-controls label {
  display: grid;
  gap: 8px;
  color: #343842;
  font-size: 12px;
  font-weight: 800;
}

.tool-controls select,
.tool-controls input[type="number"] {
  min-height: 44px;
  min-width: 120px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-weight: 700;
}

.tool-controls input[type="range"] {
  min-height: 44px;
  min-width: 170px;
  accent-color: var(--green);
}

.quality-value {
  display: inline-block;
  min-width: 4ch;
  color: var(--muted);
  font-weight: 800;
}

.aspect-toggle {
  display: inline-flex !important;
  grid-template-columns: none;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.aspect-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.percent-presets {
  display: inline-flex;
  gap: 6px;
}

.percent-presets button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.percent-presets button:hover {
  border-color: rgba(9, 9, 9, 0.3);
}

.tool-controls .spacer {
  flex: 1;
}

/* buttons and the download link share one geometry */
.tool-controls .primary-action,
.tool-controls .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
}

.tool-controls .download-action {
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(207, 255, 51, 0.28);
}

.tool-controls .primary-action[hidden],
.tool-controls .secondary-action[hidden] {
  display: none;
}

.tool-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tool-error {
  margin: 14px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 118, 95, 0.5);
  border-radius: 12px;
  background: rgba(255, 118, 95, 0.08);
  color: #a93124;
  font-size: 14px;
  font-weight: 700;
}

.tool-error[hidden] {
  display: none;
}

/* tool page content sections */
.tool-section-head {
  max-width: 620px;
  margin: 0 auto 28px;
  text-align: center;
}

.tool-section-head h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.05;
}

.steps-band {
  margin-top: 72px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.step-card b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #0b0b0b;
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
}

.step-card p {
  margin: 0;
  color: #343842;
  font-size: 14.5px;
  line-height: 1.6;
}

.info-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 56px;
}

.info-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
}

.info-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: clamp(20px, 2vw, 26px);
}

.info-card h2 span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #0b0b0b;
  color: var(--green);
  font-size: 17px;
}

.info-card .info-intro {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.info-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-card li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.info-card li::before {
  content: "✓";
  color: #4f7717;
  font-weight: 900;
}

.tool-page .tool-faq {
  width: 100%;
  margin: 64px 0 0;
  padding-top: 0;
}

.related-tools {
  width: var(--page-width);
  margin: 64px auto 0;
}

.related-tools h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 2.6vw, 34px);
}

.related-tools .tool-section-head {
  margin-bottom: 22px;
}

.related-tools .tool-section-head h2 {
  margin-bottom: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* tools directory */
.tools-directory {
  width: var(--page-width);
  margin: 26px auto 88px;
}

.tools-directory > header {
  max-width: 720px;
  margin-bottom: 40px;
}

.tools-directory h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
}

.tools-directory .lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.tools-category {
  margin-bottom: 44px;
}

.tools-category h2 {
  margin-bottom: 16px;
  font-size: clamp(22px, 2.4vw, 30px);
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .tk-hero {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .tool-stage-grid {
    grid-template-columns: 1fr;
  }

  .stage-grid-report {
    grid-template-columns: 1fr;
  }

  .info-duo {
    grid-template-columns: 1fr;
  }

  .tool-page .tool-faq {
    grid-template-columns: 1fr;
  }

  .pipeline {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pipe-link {
    width: 2px;
    height: 30px;
    justify-self: center;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0 6px, transparent 6px 12px);
  }

  .pipe-link::after {
    content: "↓";
  }

  .no-cloud {
    position: static;
    margin-bottom: 26px;
    transform: none;
    justify-items: start;
  }

  .tk-why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }

  .tk-why-grid article:nth-child(even) {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .tk-hero {
    width: 100vw;
    padding: 26px 18px;
    text-align: center;
  }

  .tk-hero .pill {
    margin-left: auto;
    margin-right: auto;
  }

  .tk-hero h1 {
    max-width: 340px;
    margin: 0 auto 20px;
    font-size: clamp(36px, 10vw, 42px);
  }

  .tk-lede {
    margin: 0 auto 22px;
    font-size: 17px;
  }

  .hero-tool-ticker {
    justify-content: center;
    margin: 0 auto;
  }

  .tk-drop {
    min-height: 380px;
    padding: 28px 22px;
  }

  .tk-drop::before {
    inset: 20px;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card.card-wide {
    grid-column: span 1;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    font-size: 13.5px;
  }

  .proof-item img {
    width: 64px;
    height: 64px;
  }

  .privacy-panel {
    width: calc(100% - 24px);
    padding: 30px 20px;
    border-radius: 28px;
  }

  .tk-why {
    padding: 54px 18px;
  }

  .tk-why-grid {
    grid-template-columns: 1fr;
  }

  .tk-why-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 18px 28px;
  }

  .tk-why-grid article:last-child {
    border-bottom: 0;
  }

  .cta-tool-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-page,
  .tools-directory {
    width: calc(100% - 24px);
  }

  .tool-controls {
    display: grid;
    align-items: stretch;
  }

  .tool-controls select,
  .tool-controls input[type="number"],
  .tool-controls input[type="range"],
  .percent-presets,
  .tool-controls .primary-action,
  .tool-controls .secondary-action {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .verb-slot span,
  .tool-card,
  .hero-tool-ticker a {
    transition: none;
  }
}
