/* tools.css: the shared design system of the free tool pages and their hub
   (11 Nov 2026). Loaded last, after guide.css, shell.css and each page's own
   <style>, only by free-instagram-tools.html and the 24 tool pages. It sets
   the parts every tool shares (the panel, labels, fields, buttons, chips,
   segmented controls, drop zones, wells, sliders, the copied state, stat
   tiles, the icon tiles, the tool cards and the "More free tools" block), so
   a page's own <style> keeps only what is its own. Local file, no external
   fetches, and nothing here runs any code. */

:root {
  /* Space, on a 4/8 grid */
  --t-1: 4px; --t-2: 8px; --t-3: 12px; --t-4: 16px; --t-5: 20px; --t-6: 24px; --t-8: 32px; --t-10: 40px; --t-12: 48px;
  /* Radii */
  --t-r-xs: 6px; --t-r-sm: 10px; --t-r-md: 14px; --t-r-lg: 20px; --t-r-pill: 999px;
  /* Control heights: 40 default, 36 for chips, 32 compact, 48 for the big call to action */
  --t-h: 40px; --t-h-chip: 36px; --t-h-sm: 32px; --t-h-lg: 48px;
  /* Type */
  --t-fs-xs: 12px; --t-fs-sm: 13px; --t-fs-md: 14px; --t-fs-base: 15px; --t-fs-lg: 17px;
  /* Colour (the site's own: black, warm white, the pink) */
  --t-text: #f1efec; --t-text-2: #a4a8b0; --t-text-3: #93939d; --t-label: #dedbd7; --t-body: #ddd9d4;
  --t-panel: rgba(255, 255, 255, 0.03);
  --t-well: rgba(0, 0, 0, 0.3);
  --t-fill: rgba(255, 255, 255, 0.05);
  --t-fill-2: rgba(255, 255, 255, 0.085);
  --t-fill-3: rgba(255, 255, 255, 0.13);
  --t-line: rgba(255, 255, 255, 0.09);
  --t-line-2: rgba(255, 255, 255, 0.15);
  --t-line-3: rgba(255, 255, 255, 0.3);
  --t-accent: #dc3a70; --t-accent-hi: #ef5f8d; --t-accent-ink: #ff8fb4;
  --t-accent-tint: rgba(220, 58, 112, 0.16); --t-accent-line: rgba(239, 95, 141, 0.62);
  --t-ok: #a9d3ad; --t-ok-tint: rgba(123, 169, 127, 0.14); --t-ok-line: rgba(123, 169, 127, 0.5); --t-warn: #f3b26b;
  --t-ring: #ef5f8d;
  /* Depth */
  --t-sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --t-sh-lift: 0 16px 36px -18px rgba(0, 0, 0, 0.9);
  --t-sh-media: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 30px rgba(0, 0, 0, 0.4);
  /* Motion: 150 to 250 ms, off for anyone who asks for less */
  --t-fast: 150ms; --t-base: 200ms; --t-slow: 250ms; --t-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Icons drawn in CSS */
  --t-i-upload: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23ff8fb4%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 15.5V4.5M7.5 9 12 4.5 16.5 9M4.5 14.5v3.2a2.3 2.3 0 0 0 2.3 2.3h10.4a2.3 2.3 0 0 0 2.3-2.3v-3.2%22/%3E%3C/svg%3E");
  --t-i-chevron: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23a4a8b0%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 9.5l6 6 6-6%22/%3E%3C/svg%3E");
  --t-i-search: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%2393939d%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2210.8%22 cy=%2210.8%22 r=%226.3%22/%3E%3Cpath d=%22M15.6 15.6l4.9 4.9%22/%3E%3C/svg%3E");
  --t-i-arrow: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14M13 6l6 6-6 6%22/%3E%3C/svg%3E");
  --t-i-lock: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%225%22 y=%2210.5%22 width=%2214%22 height=%2210%22 rx=%222.4%22/%3E%3Cpath d=%22M8.2 10.5V8a3.8 3.8 0 0 1 7.6 0v2.5%22/%3E%3C/svg%3E");
}

/* ---------- top of the page: crumb, title, promise ---------- */
.article .crumb { margin-bottom: var(--t-4); }
.article .crumb a { text-decoration: none; }
.article .crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article .standfirst { margin-bottom: var(--t-3); }

/* ---------- the panel every tool sits in ---------- */
.article .tool {
  margin: var(--t-6) 0 var(--t-10); padding: var(--t-6);
  border: 1px solid var(--t-line); border-radius: var(--t-r-lg);
  background: var(--t-panel); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  color-scheme: dark; accent-color: var(--t-accent);
}
.tool [hidden] { display: none !important; }

/* Wells: the darker inset areas inside the panel (previews, results, download bars) */
.tool :is(.stage, .well) {
  background: var(--t-well); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--t-r-md); padding: var(--t-4);
}

/* ---------- labels ---------- */
/* One label style for every control group: sentence case, 13 px, semibold. */
.tool :is(.t-label, fieldset > legend, .lbl, .lab, .field:is(label, legend), .ht, .pv-title, .qr-field > label, .qr-lbl, .vc-lbl) {
  font-size: var(--t-fs-sm); line-height: 1.35; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--t-label);
}
.tool :is(fieldset > legend, .lbl, .lab, .field:is(label, legend)) :is(small, .sub) {
  font-size: var(--t-fs-xs); font-weight: 400; color: var(--t-text-3); letter-spacing: 0; text-transform: none;
}
.tool .lab output, .tool .range output { font-size: var(--t-fs-sm); font-weight: 500; color: var(--t-text-2); font-variant-numeric: tabular-nums; }

/* ---------- fields ---------- */
.tool :is(input[type="text"], input[type="url"], input[type="search"], input[type="number"], input:not([type]), select, textarea) {
  font-family: var(--sh-font); font-size: var(--t-fs-base); line-height: 1.4; color: var(--t-text);
  background-color: rgba(0, 0, 0, 0.28); border: 1px solid var(--t-line-2); border-radius: var(--t-r-sm);
  transition: border-color var(--t-fast) var(--t-ease), box-shadow var(--t-fast) var(--t-ease);
}
.tool :is(input[type="text"], input[type="url"], input[type="search"], input[type="number"], input:not([type]), select) {
  min-height: var(--t-h); padding: 0 var(--t-3);
}
.tool :is(input[type="text"], input[type="url"], input[type="search"], input[type="number"], input:not([type]), textarea) { width: 100%; }
.tool textarea { padding: var(--t-3) 14px; line-height: 1.55; }
.tool select {
  -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer;
  background-image: var(--t-i-chevron); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
}
.tool select option { background: #16181c; color: var(--t-text); }
.tool :is(input, textarea)::placeholder { color: #80838b; }
.tool :is(input[type="text"], input[type="url"], input[type="search"], input[type="number"], input:not([type]), select, textarea):hover { border-color: var(--t-line-3); }
.tool :is(input[type="text"], input[type="url"], input[type="search"], input[type="number"], input:not([type]), select, textarea):focus {
  outline: 2px solid var(--t-accent-hi); outline-offset: -1px; border-color: var(--t-accent-hi); box-shadow: 0 0 0 5px rgba(239, 95, 141, 0.16);
}
.tool :is(input, textarea, select):disabled { opacity: 0.5; cursor: not-allowed; }
.tool input[type="color"] { cursor: pointer; }

/* Checkboxes and radios that show: the pink tick, the same size everywhere */
.tool :is(.check, .opts > label) {
  display: flex; align-items: flex-start; gap: 10px; font-size: var(--t-fs-md); line-height: 1.45; color: var(--t-body); cursor: pointer;
}
.tool :is(.check, .opts > label) > input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; cursor: pointer; }
.tool :is(.check, .opts > label) small { display: block; font-size: 12.5px; color: var(--t-text-3); }

/* Sliders: a hairline track and a white knob, the same in every browser */
.tool input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 24px; margin: 0; padding: 0; background: transparent; cursor: pointer;
}
.tool input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); }
.tool input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); }
.tool input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--t-accent); }
.tool input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -8px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(0, 0, 0, 0.2);
  transition: transform var(--t-fast) var(--t-ease), box-shadow var(--t-fast) var(--t-ease);
}
.tool input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.tool input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.08); }
.tool input[type="range"]:focus-visible { outline: none; }
.tool input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 3px var(--t-ring); }
.tool input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 3px var(--t-ring); }
.tool input[type="range"]:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- buttons ---------- */
/* Primary: pink. Secondary (.ghost): a quiet grey. Compact: .sm. A text button: .linkbtn. */
.tool .btn {
  min-height: var(--t-h); padding: 0 18px; gap: var(--t-2);
  border-radius: var(--t-r-pill); border: 1px solid var(--t-accent); background: var(--t-accent); color: #fff;
  font-family: var(--sh-font); font-size: var(--t-fs-md); font-weight: 600; line-height: 1.2; letter-spacing: -0.005em;
  cursor: pointer; text-decoration: none;
  transition: background-color var(--t-fast) var(--t-ease), border-color var(--t-fast) var(--t-ease), color var(--t-fast) var(--t-ease), transform var(--t-fast) var(--t-ease);
}
.tool .btn:hover { background: var(--t-accent-hi); border-color: var(--t-accent-hi); }
.tool .btn:active { transform: scale(0.98); }
.tool .btn.ghost { background: var(--t-fill-2); border-color: var(--t-line); color: var(--t-text); }
.tool .btn.ghost:hover { background: var(--t-fill-3); border-color: var(--t-line-2); }
.tool .btn.sm { min-height: var(--t-h-sm); padding: 0 14px; font-size: var(--t-fs-sm); }
.tool .btn:is(:disabled, [disabled]) { opacity: 0.45; cursor: not-allowed; transform: none; }
.tool .btn.ghost:is(:disabled, [disabled]):hover { background: var(--t-fill-2); border-color: var(--t-line); }
.tool .btn:not(.ghost):is(:disabled, [disabled]):hover { background: var(--t-accent); border-color: var(--t-accent); }
.tool .btn.done { background: var(--t-ok-tint); border-color: var(--t-ok-line); color: var(--t-ok); }
.tool .linkbtn {
  font: inherit; font-size: var(--t-fs-md); font-weight: 500; background: none; border: 0; padding: 2px 0; cursor: pointer;
  color: var(--t-accent-ink); text-decoration: underline; text-decoration-color: rgba(255, 143, 180, 0.4); text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast) var(--t-ease);
}
.tool .linkbtn:hover { text-decoration-color: currentColor; }

/* Focus: one ring, everywhere */
.tool :is(button, a, summary, canvas, [tabindex], input[type="checkbox"], input[type="radio"], input[type="color"]):focus-visible { outline: 2px solid var(--t-ring); outline-offset: 2px; }

/* ---------- segmented control (two or three modes) ---------- */
.tool .seg {
  display: inline-flex; gap: 2px; padding: 3px; margin: 0; min-width: 0; max-width: 100%;
  border: 1px solid var(--t-line); border-radius: var(--t-r-pill); background: rgba(0, 0, 0, 0.32);
}
.tool .seg > label {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: calc(var(--t-h) - 8px); padding: 0 var(--t-4); margin: 0;
  border: 0; border-radius: var(--t-r-pill); background: none;
  font-size: var(--t-fs-md); font-weight: 500; color: var(--t-text-2); white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-fast) var(--t-ease), color var(--t-fast) var(--t-ease), box-shadow var(--t-fast) var(--t-ease);
}
.tool .seg > label:hover { color: var(--t-text); }
.tool .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tool .seg > label > span { padding: 0; background: none; color: inherit; font: inherit; border-radius: 0; }
.tool .seg > label:has(input:checked) {
  background: rgba(255, 255, 255, 0.16); color: #fff;
  box-shadow: var(--t-sh-1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tool .seg > label:has(input:focus-visible) { outline: 2px solid var(--t-ring); outline-offset: 2px; }

/* ---------- chips (options in a group) ---------- */
.tool .chips { gap: var(--t-2); }
.tool label.chip { position: relative; }
.tool label.chip > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tool :is(label.chip > span, .pills > label) {
  display: inline-flex; flex-direction: column; justify-content: center; position: relative;
  min-height: var(--t-h-chip); padding: 6px 14px; line-height: 1.25;
  border: 1px solid var(--t-line-2); border-radius: var(--t-r-pill); background: var(--t-fill);
  font-size: var(--t-fs-md); font-weight: 500; color: var(--t-text); cursor: pointer;
  transition: background-color var(--t-fast) var(--t-ease), border-color var(--t-fast) var(--t-ease), color var(--t-fast) var(--t-ease);
}
/* A chip with a second line (a size under its name) is a rounded square, not a pill */
.tool label.chip > span:has(small) { border-radius: var(--t-r-md); padding: 7px 14px; }
.tool label.chip > span small { font-size: var(--t-fs-xs); font-weight: 400; color: var(--t-text-2); }
.tool :is(label.chip > span, .pills > label):hover { border-color: var(--t-line-3); }
.tool :is(label.chip > input:checked + span, .pills > label:has(input:checked)) {
  background: var(--t-accent-tint); border-color: var(--t-accent-line); color: #fff;
}
.tool label.chip > input:checked + span small { color: rgba(255, 255, 255, 0.78); }
.tool :is(label.chip > input:focus-visible + span, .pills > label:has(input:focus-visible)) { outline: 2px solid var(--t-ring); outline-offset: 2px; }

/* ---------- drop zones ---------- */
.tool .drop {
  position: relative; display: block; width: 100%;
  padding: var(--t-8) var(--t-6); text-align: center; color: var(--t-text); cursor: pointer;
  border: 1.5px dashed rgba(255, 255, 255, 0.2); border-radius: var(--t-r-md); background: rgba(0, 0, 0, 0.22);
  transition: border-color var(--t-fast) var(--t-ease), background-color var(--t-fast) var(--t-ease);
}
.tool .drop::before {
  content: ""; display: block; width: 44px; height: 44px; margin: 0 auto var(--t-3); flex: 0 0 auto; border-radius: 12px;
  background: var(--t-i-upload) center / 22px 22px no-repeat, linear-gradient(180deg, rgba(220, 58, 112, 0.22), rgba(220, 58, 112, 0.08));
  box-shadow: inset 0 0 0 1px rgba(239, 95, 141, 0.24);
}
.tool .drop:hover { border-color: rgba(255, 255, 255, 0.36); background-color: rgba(255, 255, 255, 0.03); }
.tool .drop.over, .tool:is(.gp-over, .sz-over, .vc-over) .drop { border-color: var(--t-accent-hi); background-color: var(--t-accent-tint); }
.tool .drop :is(.big, b) { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; color: var(--t-text); }
.article .tool .drop :is(p, b + span) { font-size: 13.5px; line-height: 1.5; color: var(--t-text-2); }
.article .tool .drop > p { margin: var(--t-1) 0 var(--t-4); }
.article .tool .drop > p.safe { margin: var(--t-3) 0 0; }
.tool .drop .acts { display: flex; gap: 10px 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
/* After the first file: a slim row (and the same row for the tools that never had the big one) */
.tool :is(.drop.compact, .drop:has(> .txt)) {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; text-align: left; padding: var(--t-3) var(--t-4);
}
.tool :is(.drop.compact, .drop:has(> .txt))::before { width: 36px; height: 36px; margin: 0; border-radius: 10px; background-size: 18px 18px, auto; }
.tool .drop.compact .big { font-size: var(--t-fs-base); margin: 0; }
.article .tool .drop.compact > p { margin: 0; flex: 1; min-width: 180px; }
.tool .drop.compact :is(p.safe, .linkbtn) { display: none; }
.tool .drop > .txt { flex: 1; min-width: 200px; }
.article .tool .drop > .txt p { margin: 2px 0 0; }

/* ---------- small print ---------- */
.article .tool :is(.privacy, p.safe) { font-size: var(--t-fs-sm); line-height: 1.5; color: var(--t-text-3); }
.article .tool .privacy { display: flex; align-items: flex-start; gap: var(--t-2); }
.article .tool .privacy::before {
  content: ""; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 2px; background: currentColor;
  -webkit-mask: var(--t-i-lock) center / 14px 14px no-repeat; mask: var(--t-i-lock) center / 14px 14px no-repeat;
}
.tool .status { font-size: 13.5px; color: var(--t-text-2); }
.tool .status.err { color: #ff9db8; }

/* ---------- the copied state ---------- */
.tool .copied { font-size: 13.5px; font-weight: 500; color: var(--t-ok); }
.tool .copied:not(:empty) {
  display: inline-flex; align-items: center; min-height: var(--t-h-sm); padding: 0 14px;
  border-radius: var(--t-r-pill); background: var(--t-ok-tint); box-shadow: inset 0 0 0 1px rgba(123, 169, 127, 0.3);
  animation: t-in var(--t-base) var(--t-ease) both;
}
@keyframes t-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ---------- stat tiles ---------- */
.tool .stat { padding: var(--t-3) 14px; border-radius: var(--t-r-sm); background: var(--t-well); border: 1px solid rgba(255, 255, 255, 0.06); }
.tool .stat b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.tool .stat > span { font-size: 12.5px; color: var(--t-text-3); }
.tool .stat.warn { border-color: rgba(243, 178, 107, 0.55); }

/* ---------- icon tiles (the hub's cards and "More free tools") ---------- */
.t-ico {
  display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  color: var(--t-accent-ink);
  background: linear-gradient(180deg, rgba(220, 58, 112, 0.22), rgba(220, 58, 112, 0.08));
  box-shadow: inset 0 0 0 1px rgba(239, 95, 141, 0.22);
}
.t-ico::before {
  content: ""; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: var(--i) center / 24px 24px no-repeat; mask: var(--i) center / 24px 24px no-repeat;
}
.ti-resize { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14.5 3.5h6v6M9.5 20.5h-6v-6M20.5 3.5 14 10M3.5 20.5 10 14%22/%3E%3C/svg%3E"); }
.ti-watermark { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3.5c3.3 4.1 5.5 7.3 5.5 10.2a5.5 5.5 0 0 1-11 0C6.5 10.8 8.7 7.6 12 3.5z%22/%3E%3Cpath d=%22M9.6 14.2a2.6 2.6 0 0 0 2.4 2.3%22/%3E%3C/svg%3E"); }
.ti-palette { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3.5a8.5 8.5 0 1 0 0 17c1 0 1.7-.8 1.7-1.7 0-.4-.2-.8-.4-1.1-.3-.3-.4-.7-.4-1.1 0-.9.8-1.7 1.7-1.7h2.1a3.8 3.8 0 0 0 3.8-3.8C20.5 7 16.7 3.5 12 3.5z%22/%3E%3Ccircle cx=%227.6%22 cy=%2211.4%22 r=%22.9%22/%3E%3Ccircle cx=%2210.2%22 cy=%227.6%22 r=%22.9%22/%3E%3Ccircle cx=%2214.6%22 cy=%227.8%22 r=%22.9%22/%3E%3C/svg%3E"); }
.ti-collage { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223.5%22 y=%223.5%22 width=%2217%22 height=%2217%22 rx=%222.5%22/%3E%3Cpath d=%22M11 3.5v17M11 12h9.5%22/%3E%3C/svg%3E"); }
.ti-carousel { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223.5%22 y=%224.5%22 width=%2213%22 height=%2215%22 rx=%222.2%22/%3E%3Cpath d=%22M20.5 7v10M7 9.5h6M7 12.5h6M7 15.5h3.5%22/%3E%3C/svg%3E"); }
.ti-panorama { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%222.5%22 y=%226.5%22 width=%2219%22 height=%2211%22 rx=%222.2%22/%3E%3Cpath d=%22M8.8 6.5v11M15.2 6.5v11%22/%3E%3C/svg%3E"); }
.ti-avatar { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%225%22/%3E%3Cpath d=%22M3.5 8V5.8a2.3 2.3 0 0 1 2.3-2.3H8M16 3.5h2.2a2.3 2.3 0 0 1 2.3 2.3V8M20.5 16v2.2a2.3 2.3 0 0 1-2.3 2.3H16M8 20.5H5.8a2.3 2.3 0 0 1-2.3-2.3V16%22/%3E%3C/svg%3E"); }
.ti-bio { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 6.5h11M4 10.5h8M4 14.5h5%22/%3E%3Cpath d=%22M13.5 20.2l.7-2.9 5.1-5.1a1.55 1.55 0 0 1 2.2 2.2l-5.1 5.1z%22/%3E%3C/svg%3E"); }
.ti-highlight { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%228.5%22/%3E%3Cpath d=%22M12 7.8l1.25 2.55 2.8.4-2.03 1.98.48 2.79L12 14.2l-2.5 1.32.48-2.79-2.03-1.98 2.8-.4z%22/%3E%3C/svg%3E"); }
.ti-puzzle { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223.5%22 y=%223.5%22 width=%2217%22 height=%2217%22 rx=%222.5%22/%3E%3Cpath d=%22M9.2 3.5v17M14.8 3.5v17M3.5 9.2h17M3.5 14.8h17%22/%3E%3C/svg%3E"); }
.ti-gridphone { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%226%22 y=%222.5%22 width=%2212%22 height=%2219%22 rx=%222.6%22/%3E%3Cpath d=%22M8.6 8.5h6.8v7.5H8.6zM12 8.5V16M8.6 12.25h6.8%22/%3E%3C/svg%3E"); }
.ti-qr { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h2.5v2.5H14zM18.5 18.5H20V20h-1.5zM18.5 14H20M14 20h2%22/%3E%3C/svg%3E"); }
.ti-reel { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%225.5%22 y=%222.5%22 width=%2213%22 height=%2219%22 rx=%222.6%22/%3E%3Cpath d=%22M10.5 9.6v4.8l4-2.4z%22/%3E%3C/svg%3E"); }
.ti-safezone { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%225.5%22 y=%222.5%22 width=%2213%22 height=%2219%22 rx=%222.6%22/%3E%3Cpath d=%22M5.5 7h13M5.5 17h13%22/%3E%3C/svg%3E"); }
.ti-video { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%222.5%22 y=%226%22 width=%2213%22 height=%2212%22 rx=%222.6%22/%3E%3Cpath d=%22M15.5 10.5l5-3v9l-5-3M6.3 12.2l2 2 3.4-3.6%22/%3E%3C/svg%3E"); }
.ti-caption { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 6h16M4 10.5h16M4 15h8.5%22/%3E%3Cpath d=%22M20 12.5v2.6a2.4 2.4 0 0 1-2.4 2.4h-3.1M16.6 15.4l-2.1 2.1 2.1 2.1%22/%3E%3C/svg%3E"); }
.ti-fonts { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3.5 18.5L8 5.5l4.5 13M5.2 14h5.6%22/%3E%3Ccircle cx=%2217.2%22 cy=%2215.6%22 r=%222.9%22/%3E%3Cpath d=%22M20.1 12.4v6.1%22/%3E%3C/svg%3E"); }
.ti-hashtag { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9.8 3.5 7.8 20.5M16.2 3.5l-2 17M4.5 8.8h16M3.5 15.2h16%22/%3E%3C/svg%3E"); }
.ti-chart { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3.5 20.5h17M5 16l4.4-4.6 3.4 3 6.7-7.6M15 6.8h4.5v4.5%22/%3E%3C/svg%3E"); }
.ti-money { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%222.5%22 y=%226.5%22 width=%2219%22 height=%2211%22 rx=%222.2%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%222.6%22/%3E%3Cpath d=%22M6 9.8v4.4M18 9.8v4.4%22/%3E%3C/svg%3E"); }
.ti-sizes { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223.5%22 y=%223.5%22 width=%2217%22 height=%2217%22 rx=%222.5%22/%3E%3Cpath d=%22M3.5 8.5h3M3.5 12h5M3.5 15.5h3M8.5 3.5v3M12 3.5v5M15.5 3.5v3%22/%3E%3C/svg%3E"); }
.ti-quote { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M10.2 6.2c-2.7.9-4.7 3.2-4.7 6.4v5h4.8v-4.8H7.5M18.7 6.2c-2.7.9-4.7 3.2-4.7 6.4v5h4.8v-4.8H16%22/%3E%3C/svg%3E"); }
.ti-at { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223.6%22/%3E%3Cpath d=%22M15.6 12v1.5a2.5 2.5 0 0 0 5 0V12a8.6 8.6 0 1 0-3.4 6.9%22/%3E%3C/svg%3E"); }
.ti-compress { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3.5v6M8.8 6.5 12 9.7l3.2-3.2M12 20.5v-6M8.8 17.5l3.2-3.2 3.2 3.2M4.5 12h15%22/%3E%3C/svg%3E"); }
.ti-guide { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 6.6C10.2 5.2 7.4 4.6 4 4.6v13.6c3.4 0 6.2.6 8 2 1.8-1.4 4.6-2 8-2V4.6c-3.4 0-6.2.6-8 2zM12 6.6v13.6%22/%3E%3C/svg%3E"); }
.ti-search { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2210.8%22 cy=%2210.8%22 r=%226.3%22/%3E%3Cpath d=%22M15.6 15.6l4.9 4.9%22/%3E%3C/svg%3E"); }
.ti-arrow { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14M13 6l6 6-6 6%22/%3E%3C/svg%3E"); }
.ti-upload { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 15.5V4.5M7.5 9 12 4.5 16.5 9M4.5 14.5v3.2a2.3 2.3 0 0 0 2.3 2.3h10.4a2.3 2.3 0 0 0 2.3-2.3v-3.2%22/%3E%3C/svg%3E"); }
.ti-lock { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%225%22 y=%2210.5%22 width=%2214%22 height=%2210%22 rx=%222.4%22/%3E%3Cpath d=%22M8.2 10.5V8a3.8 3.8 0 0 1 7.6 0v2.5%22/%3E%3C/svg%3E"); }
.ti-check { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12.5l4.4 4.4L19 7.4%22/%3E%3C/svg%3E"); }

/* ---------- tool cards ---------- */
.article ul.tcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: var(--t-3); }
.article .tcard {
  position: relative; display: flex; flex-direction: column; margin: 0; padding: var(--t-5);
  border: 1px solid var(--t-line); border-radius: 18px; background: rgba(255, 255, 255, 0.025);
  transition: transform var(--t-base) var(--t-ease), border-color var(--t-base) var(--t-ease), background-color var(--t-base) var(--t-ease), box-shadow var(--t-base) var(--t-ease);
}
.article .tcard:hover {
  transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.045);
  box-shadow: var(--t-sh-lift), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.article .tcard:hover .t-ico { color: #ffa9c6; }
.article .tcard .t-ico { margin-bottom: 14px; transition: color var(--t-base) var(--t-ease); }
.article .tcard h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.article .tcard h3 a { color: var(--t-text); text-decoration: none; }
.article .tcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.article .tcard h3 a:focus-visible { outline: none; }
.article .tcard:has(h3 a:focus-visible) { border-color: var(--t-accent-line); box-shadow: 0 0 0 2px var(--t-ring); }
.article .tcard p { margin: 0; font-size: var(--t-fs-md); line-height: 1.5; color: var(--t-text-2); }
.article .tcard .go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px;
  font-size: 13.5px; font-weight: 600; color: var(--t-accent-ink);
}
.tcard .go::after {
  content: ""; width: 14px; height: 14px; background: currentColor; transition: transform var(--t-base) var(--t-ease);
  -webkit-mask: var(--t-i-arrow) center / 14px 14px no-repeat; mask: var(--t-i-arrow) center / 14px 14px no-repeat;
}
.tcard:hover .go::after { transform: translateX(3px); }

/* ---------- "More free tools", the same block at the end of every tool ---------- */
.article .more-tools { margin-top: var(--t-12); padding-top: var(--t-8); border-top: 1px solid var(--line-soft); }
.article .more-tools h2 { margin: 0 0 var(--t-4); font-size: 20px; letter-spacing: -0.015em; }
.article .more-tools ul.tcards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.article .more-tools .tcard { flex-direction: row; align-items: flex-start; gap: 14px; padding: var(--t-4); border-radius: 16px; }
.article .more-tools .tcard .t-ico { width: 40px; height: 40px; margin: 0; border-radius: 11px; }
.article .more-tools .tcard .t-ico::before { width: 22px; height: 22px; -webkit-mask-size: 22px 22px; mask-size: 22px 22px; }
.article .more-tools .tcard h3 { margin: 1px 0 3px; font-size: 15px; }
.article .more-tools .tcard p { font-size: 13.5px; line-height: 1.45; }
.article .more-tools .all {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--t-4);
  font-size: var(--t-fs-md); font-weight: 600; color: var(--t-accent-ink); text-decoration: none;
}
.article .more-tools .all::after {
  content: ""; width: 14px; height: 14px; background: currentColor; transition: transform var(--t-base) var(--t-ease);
  -webkit-mask: var(--t-i-arrow) center / 14px 14px no-repeat; mask: var(--t-i-arrow) center / 14px 14px no-repeat;
}
.article .more-tools .all:hover::after { transform: translateX(3px); }

/* ---------- the pitch block ---------- */
.article .cta {
  margin-top: var(--t-12); padding: var(--t-6); gap: var(--t-5); border: 1px solid var(--t-line); border-radius: var(--t-r-lg);
  background: radial-gradient(120% 140% at 100% 0%, rgba(220, 58, 112, 0.13), transparent 58%), rgba(20, 22, 26, 0.72);
}
.article .cta b { font-size: 18px; letter-spacing: -0.015em; line-height: 1.35; margin-bottom: 6px; }
.article .cta span { font-size: 14.5px; line-height: 1.55; }
.article .cta .btn { min-height: var(--t-h-lg); padding: 0 24px; font-size: 15px; transition: background-color var(--t-fast) var(--t-ease), transform var(--t-fast) var(--t-ease); }
.article .cta .btn:active { transform: scale(0.98); }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .article .tool { padding: var(--t-4); margin: var(--t-5) calc(var(--t-2) * -1) var(--t-8); border-radius: 18px; }
  .tool :is(.stage, .well) { padding: var(--t-3); }
  /* 16 px stops a phone zooming in when a field is tapped */
  .tool :is(input[type="text"], input[type="url"], input[type="search"], input[type="number"], input:not([type]), select, textarea) { font-size: 16px; }
  .tool .drop { padding: var(--t-6) var(--t-4); }
  .tool .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; border-radius: var(--t-r-md); }
  .tool .seg > label { white-space: normal; text-align: center; line-height: 1.25; padding: 6px 10px; border-radius: 11px; }
  .tool label.chip > span { font-size: 13.5px; }
  .tool .stat { padding: 10px 12px; }
  .tool .stat b { font-size: 18px; }
  .article .cta { padding: var(--t-5); }
  .article .cta .btn { width: 100%; }
  .article .more-tools ul.tcards { grid-template-columns: 1fr; }
  /* On a phone a card is a row: the icon beside the words, so the list stays short */
  .article ul.tcards { grid-template-columns: 1fr; gap: 10px; }
  .article .tcard { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: var(--t-4); border-radius: 16px; }
  .article .tcard .t-ico { grid-row: 1 / span 3; width: 40px; height: 40px; margin: 0; border-radius: 11px; }
  .article .tcard .t-ico::before { width: 22px; height: 22px; -webkit-mask-size: 22px 22px; mask-size: 22px 22px; }
  .article .tcard h3 { margin: 1px 0 4px; font-size: 15.5px; }
  .article .tcard p { font-size: 13.5px; }
  .article .tcard .go { padding-top: 8px; font-size: 13px; }
  .article .tcard:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tool *, .tool *::before, .tool *::after, .tcard, .tcard *, .tcard *::after, .more-tools .all::after, .article .cta .btn {
    transition: none !important; animation: none !important;
  }
  .article .tcard:hover, .tool .btn:active, .article .cta .btn:active { transform: none; }
}
