/* ============================================================
   Image Tools Kit — Inner-Page Design System (site.css)
   ------------------------------------------------------------
   Loaded ONLY on non-front pages. The home page keeps its own
   styles in main.css and is never affected by these rules.

   Palette: not just blue-on-dark. A multi-hue, editorial system —
   deep ink base with amber, teal, rose and violet accents used
   per-purpose (actions, success, attention, brand).
   ============================================================ */

:root {
  /* Base surfaces */
  --itk-is-bg: #0a0d14;
  --itk-is-bg-2: #0e121b;
  --itk-is-surface: #121826;
  --itk-is-surface-2: #171f30;
  --itk-is-surface-3: #1d2740;
  --itk-is-border: rgba(158, 176, 211, 0.14);
  --itk-is-border-strong: rgba(158, 176, 211, 0.26);

  /* Text */
  --itk-is-text: #e9edf6;
  --itk-is-text-soft: #c3cad9;
  --itk-is-muted: #8b93a7;
  --itk-is-muted-2: #6b7284;

  /* Accent family */
  --itk-is-amber: #f0a83b;
  --itk-is-amber-soft: rgba(240, 168, 59, 0.14);
  --itk-is-teal: #3ad6c6;
  --itk-is-teal-soft: rgba(58, 214, 198, 0.12);
  --itk-is-rose: #ef6a9a;
  --itk-is-rose-soft: rgba(239, 106, 154, 0.12);
  --itk-is-violet: #8b7cf6;
  --itk-is-violet-soft: rgba(139, 124, 246, 0.14);
  --itk-is-blue: #5aa7ff;
  --itk-is-mint: #7ce3a8;

  /* Gradients */
  --itk-is-grad-amber: linear-gradient(135deg, #f0a83b 0%, #ffcf6b 55%, #ff9e6b 100%);
  --itk-is-grad-teal: linear-gradient(135deg, #2fc7b6 0%, #3ad6c6 50%, #7ce3a8 100%);
  --itk-is-grad-rose: linear-gradient(135deg, #ef6a9a 0%, #f48fb1 60%, #ffb199 100%);
  --itk-is-grad-violet: linear-gradient(135deg, #6b5bf0 0%, #8b7cf6 55%, #c29bfa 100%);
  --itk-is-aurora: radial-gradient(120% 120% at 15% 0%, rgba(240,168,59,.16) 0%, transparent 42%),
                  radial-gradient(120% 130% at 90% 12%, rgba(139,124,246,.18) 0%, transparent 46%),
                  radial-gradient(150% 160% at 70% 100%, rgba(58,214,198,.13) 0%, transparent 55%),
                  radial-gradient(120% 120% at 30% 90%, rgba(239,106,154,.11) 0%, transparent 45%);

  --itk-is-radius: 16px;
  --itk-is-radius-sm: 10px;
  --itk-is-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body.itk-inner {
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(139,124,246,.10), transparent 60%),
    radial-gradient(900px 480px at -10% 12%, rgba(240,168,59,.10), transparent 60%),
    var(--itk-is-bg);
  color: var(--itk-is-text);
}

body.itk-inner h1,
body.itk-inner h2,
body.itk-inner h3,
body.itk-inner h4 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  letter-spacing: -0.01em;
  color: var(--itk-is-text);
}

body.itk-inner a {
  color: var(--itk-is-teal);
}
body.itk-inner a:hover {
  color: var(--itk-is-amber);
}

/* ------------------------------------------------------------
   1. HEADER — restyled for inner pages
   ------------------------------------------------------------ */
body.itk-inner .itk-header {
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--itk-is-border);
}
body.itk-inner .itk-header__brand-name { color: var(--itk-is-text); }
body.itk-inner .itk-header__brand-tag {
  color: var(--itk-is-amber);
  background: var(--itk-is-amber-soft);
  border: 1px solid rgba(240, 168, 59, 0.25);
}
body.itk-inner .itk-nav__link { color: var(--itk-is-text-soft); }
body.itk-inner .itk-nav__link:hover,
body.itk-inner .itk-nav__link[aria-current] { color: var(--itk-is-amber); }
body.itk-inner .itk-btn--primary {
  background: var(--itk-is-grad-amber);
  color: #241403;
  border: none;
  box-shadow: 0 4px 18px rgba(240, 168, 59, 0.28);
}
body.itk-inner .itk-btn--primary:hover {
  color: #241403;
  box-shadow: 0 6px 26px rgba(240, 168, 59, 0.4);
}

/* ------------------------------------------------------------
   2. BREADCRUMBS
   ------------------------------------------------------------ */
body.itk-inner .itk-breadcrumbs {
  font-family: var(--itk-is-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--itk-is-muted);
  text-transform: uppercase;
}
body.itk-inner .itk-breadcrumbs a { color: var(--itk-is-muted); }
body.itk-inner .itk-breadcrumbs a:hover { color: var(--itk-is-amber); }
body.itk-inner .itk-breadcrumbs .itk-breadcrumbs__sep { color: var(--itk-is-muted-2); }

/* ------------------------------------------------------------
   3. SECTION LABELS / EYEBROWS
   ------------------------------------------------------------ */
body.itk-inner .itk-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--itk-is-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--itk-is-amber);
}
body.itk-inner .itk-section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--itk-is-amber), transparent);
}

/* ------------------------------------------------------------
   4. TOOL HERO — editorial, colour-led, with 3D backdrop
   ------------------------------------------------------------ */
.itk-tool-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.4rem, 4vw, 3.6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--itk-is-border);
}
.itk-tool-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.9;
}
.itk-tool-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--itk-is-aurora);
}
.itk-tool-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.4rem;
}
.itk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--itk-is-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--itk-is-amber);
  background: var(--itk-is-amber-soft);
  border: 1px solid rgba(240, 168, 59, 0.3);
  text-decoration: none;
}
.itk-tag--soft {
  color: var(--itk-is-teal);
  background: var(--itk-is-teal-soft);
  border-color: rgba(58, 214, 198, 0.28);
}
.itk-tag--accent {
  color: var(--itk-is-violet);
  background: var(--itk-is-violet-soft);
  border-color: rgba(139, 124, 246, 0.3);
}
.itk-tool-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 30%, var(--itk-is-text-soft) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 18ch;
}
.itk-tool-hero__desc {
  max-width: 62ch;
  margin: 0 0 1.2rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--itk-is-text-soft);
}
.itk-tool-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 1.8rem;
}
.itk-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--itk-is-radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--itk-is-mint);
  background: rgba(124, 227, 168, 0.1);
  border: 1px solid rgba(124, 227, 168, 0.24);
}
.itk-tool-hero__date {
  font-family: var(--itk-is-mono);
  font-size: 0.74rem;
  color: var(--itk-is-muted);
}
.itk-tool-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.itk-btn--ghost {
  color: var(--itk-is-text-soft);
  background: transparent;
  border: 1px solid var(--itk-is-border-strong);
}
.itk-btn--ghost:hover {
  color: var(--itk-is-amber);
  border-color: rgba(240, 168, 59, 0.45);
  background: var(--itk-is-amber-soft);
}

/* ------------------------------------------------------------
   5. TOOL STAGE + JUMP NAV
   ------------------------------------------------------------ */
.itk-tool-stage {
  padding: clamp(1.6rem, 3vw, 2.6rem) 0;
  background: var(--itk-is-bg-2);
  border-bottom: 1px solid var(--itk-is-border);
}
.itk-tool-panel__wrap .itk-tool-panel {
  border-radius: var(--itk-is-radius);
  border: 1px solid var(--itk-is-border-strong);
  box-shadow: 0 18px 50px rgba(3, 6, 12, 0.5);
  background: var(--itk-is-surface);
}
.itk-jump {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--itk-is-border);
  background: rgba(14, 18, 27, 0.6);
}
.itk-jump__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.itk-jump__label {
  font-family: var(--itk-is-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--itk-is-muted);
  margin-right: 6px;
}
.itk-jump__link {
  font-size: 0.82rem;
  color: var(--itk-is-text-soft);
  text-decoration: none;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.itk-jump__link:hover {
  color: var(--itk-is-amber);
  border-color: rgba(240, 168, 59, 0.3);
  background: var(--itk-is-amber-soft);
}

/* ------------------------------------------------------------
   6. TOOL BODY GRID (main + sticky sidebar)
   ------------------------------------------------------------ */
.itk-tool-body {
  padding: clamp(2.4rem, 5vw, 4rem) 0 0;
}
.itk-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.itk-tool-grid__side {
  position: sticky;
  top: calc(var(--itk-header-h, 72px) + 20px);
}
.itk-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.itk-side-card {
  border: 1px solid var(--itk-is-border);
  border-radius: var(--itk-is-radius);
  background: linear-gradient(180deg, rgba(23, 31, 48, 0.75), rgba(18, 24, 38, 0.85));
  padding: 20px;
}
.itk-side-card > h3 {
  margin: 0 0 14px;
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--itk-is-muted);
}
.itk-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.itk-toc a {
  position: relative;
  padding: 7px 10px 7px 18px;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--itk-is-text-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.itk-toc a::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--itk-is-muted-2);
  transform: translateY(-50%);
  transition: background 0.2s, transform 0.2s;
}
.itk-toc a:hover { background: rgba(240, 168, 59, 0.08); color: var(--itk-is-amber); }
.itk-toc a.is-active { border-left-color: var(--itk-is-amber); color: var(--itk-is-amber); }
.itk-toc a.is-active::before { background: var(--itk-is-amber); transform: translateY(-50%) scale(1.3); }

/* Quick facts — label/value pairs with clear separation */
.itk-side-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.itk-side-facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--itk-is-border-strong);
}
.itk-side-facts li:last-child { border-bottom: none; }
.itk-side-facts__label {
  font-size: 0.82rem;
  color: var(--itk-is-muted);
  white-space: nowrap;
}
.itk-side-facts__value {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--itk-is-text);
  text-align: right;
}

.itk-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.itk-side-list a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--itk-is-text-soft);
  text-decoration: none;
}
.itk-side-list a:hover { background: rgba(58, 214, 198, 0.08); color: var(--itk-is-teal); }

.itk-side-card--cta {
  text-align: center;
  background: linear-gradient(160deg, var(--itk-is-violet-soft), transparent 70%), var(--itk-is-surface-2);
  border-color: rgba(139, 124, 246, 0.3);
}
.itk-side-card--cta svg { color: var(--itk-is-violet); margin-bottom: 6px; }
.itk-side-card--cta h3 { color: var(--itk-is-text); text-transform: none; letter-spacing: 0; font-size: 1rem; margin-bottom: 8px; }
.itk-side-card--cta p { margin: 0 0 14px; font-size: 0.86rem; color: var(--itk-is-muted); }

/* ------------------------------------------------------------
   7. TOOL BLOCKS — editorial sections
   ------------------------------------------------------------ */
.itk-tool-block {
  padding-bottom: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--itk-is-border);
}
.itk-tool-block:last-child { border-bottom: none; }
.itk-h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  scroll-margin-top: calc(var(--itk-header-h, 72px) + 20px);
}
.itk-h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--itk-is-text-soft);
}
.itk-content { color: var(--itk-is-text-soft); line-height: 1.72; }
.itk-content p { margin: 0 0 1rem; }
.itk-content p:last-child { margin-bottom: 0; }

/* Numbered steps */
.itk-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.itk-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--itk-is-border);
  border-radius: var(--itk-is-radius-sm);
  background: linear-gradient(180deg, rgba(23, 31, 48, 0.5), rgba(18, 24, 38, 0.4));
}
.itk-steps__num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-family: var(--itk-is-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: #241403;
  background: var(--itk-is-grad-amber);
  box-shadow: 0 4px 14px rgba(240, 168, 59, 0.3);
}
.itk-steps p { margin: 0; color: var(--itk-is-text-soft); line-height: 1.6; }

/* Feature list */
.itk-feature-list li {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
}
.itk-feature-list li:nth-child(even) { background: rgba(58, 214, 198, 0.05); }
.itk-feature-list__icon {
  flex: 0 0 auto;
  color: var(--itk-is-teal);
}

/* Tables */
.itk-table-wrap {
  border: 1px solid var(--itk-is-border);
  border-radius: var(--itk-is-radius-sm);
  overflow: hidden;
  overflow-x: auto;
}
.itk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.itk-table th {
  text-align: left;
  font-family: var(--itk-is-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--itk-is-amber);
  background: rgba(240, 168, 59, 0.07);
  padding: 11px 16px;
  border-bottom: 1px solid var(--itk-is-border-strong);
  white-space: nowrap;
}
.itk-table td {
  padding: 12px 16px;
  color: var(--itk-is-text-soft);
  border-bottom: 1px solid var(--itk-is-border);
  vertical-align: top;
}
.itk-table tbody tr:last-child td { border-bottom: none; }
.itk-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.itk-table th[scope="row"] {
  width: 34%;
  white-space: normal;
}

/* How it works cards */
.itk-works { display: grid; grid-template-columns: 1fr; gap: 0; }
.itk-works__item {
  padding: 18px 0 4px;
}
.itk-works__item + .itk-works__item { border-top: 1px dashed var(--itk-is-border-strong); }

/* Example / compare */
.itk-compare--table { max-width: 520px; }
.itk-compare .itk-muted { margin-top: 10px; }

/* Pro tips */
.itk-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.itk-tips__item {
  padding: 18px;
  border-radius: var(--itk-is-radius-sm);
  border: 1px solid rgba(240, 168, 59, 0.25);
  background: linear-gradient(160deg, var(--itk-is-amber-soft), transparent 60%), var(--itk-is-surface);
}
.itk-tips__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--itk-is-amber);
}
.itk-tips__body { margin: 0; font-size: 0.9rem; line-height: 1.65; color: var(--itk-is-text-soft); }

/* When to use / watch out for duo */
.itk-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.itk-duo__col {
  padding: 18px;
  border-radius: var(--itk-is-radius-sm);
  border: 1px solid var(--itk-is-border);
}
.itk-duo__col--yes {
  background: linear-gradient(160deg, var(--itk-is-teal-soft), transparent 65%);
  border-color: rgba(58, 214, 198, 0.28);
}
.itk-duo__col--yes .itk-h3 { color: var(--itk-is-teal); }
.itk-duo__col--no {
  background: linear-gradient(160deg, var(--itk-is-rose-soft), transparent 65%);
  border-color: rgba(239, 106, 154, 0.28);
}
.itk-duo__col--no .itk-h3 { color: var(--itk-is-rose); }
.itk-list { list-style: none; margin: 0; padding: 0; }
.itk-list li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: var(--itk-is-text-soft);
  line-height: 1.6;
}
.itk-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--itk-is-teal);
}
.itk-duo__col--no .itk-list li::before { background: var(--itk-is-rose); }

/* Callout */
.itk-callout {
  margin: 14px 0;
  padding: 12px 16px;
  border-radius: 10px;
  border-left: 3px solid var(--itk-is-amber);
  background: var(--itk-is-amber-soft);
  color: var(--itk-is-text-soft);
  font-size: 0.9rem;
}

/* Alerts */
.itk-alert {
  border-radius: var(--itk-is-radius-sm);
  border-width: 1px;
}
.itk-alert--info {
  color: var(--itk-is-text-soft);
  background: var(--itk-is-violet-soft);
  border-color: rgba(139, 124, 246, 0.3);
}
.itk-alert--info .itk-alert__icon { color: var(--itk-is-violet); }

/* FAQ accordion */
.itk-faq {
  border: 1px solid var(--itk-is-border);
  border-radius: var(--itk-is-radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--itk-is-surface);
}
.itk-faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: transparent;
  border: none;
  color: var(--itk-is-text);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.itk-faq__q svg { flex: 0 0 auto; color: var(--itk-is-muted); transition: transform 0.25s ease, color 0.25s; }
.itk-faq__q:hover { background: rgba(255, 255, 255, 0.03); }
.itk-faq__item--open .itk-faq__q svg { transform: rotate(180deg); color: var(--itk-is-amber); }
.itk-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.itk-faq__a p {
  padding: 0 18px 16px;
  margin: 0;
  color: var(--itk-is-text-soft);
  line-height: 1.65;
}

/* Definition list */
.itk-content dl { margin: 0; }
.itk-content dt { margin-top: 14px; }
.itk-content dt strong {
  color: var(--itk-is-teal);
  font-weight: 600;
}
.itk-content dd { margin: 4px 0 0; }

/* Muted + updated */
.itk-muted { color: var(--itk-is-muted); }
.itk-tool-updated a { color: var(--itk-is-teal); }

/* ------------------------------------------------------------
   8. RELATED TOOLS SECTION
   ------------------------------------------------------------ */
.itk-tool-related {
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  background: var(--itk-is-bg-2);
  border-top: 1px solid var(--itk-is-border);
}
.itk-tool-related .itk-section-head--center .itk-section-label { color: var(--itk-is-teal); }

/* ------------------------------------------------------------
   9. TOOL CARDS — colour-coded by category, 3D hover
   ------------------------------------------------------------ */
.itk-concept-banner { text-align: center; padding: 26px 0 6px; }

.itk-tool-cards { position: relative; }

body.itk-inner .itk-card.itk-tool-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--itk-is-border);
  border-radius: var(--itk-is-radius);
  background: linear-gradient(180deg, var(--itk-is-surface-2), var(--itk-is-surface));
  transform: translateZ(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
body.itk-inner .itk-card.itk-tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--cat-grad, var(--itk-is-grad-amber));
  opacity: 0.85;
}
body.itk-inner .itk-card.itk-tool-card:hover {
  border-color: var(--cat-border, rgba(240, 168, 59, 0.4));
  box-shadow: 0 22px 48px rgba(3, 6, 12, 0.55), 0 0 0 1px var(--cat-border, rgba(240, 168, 59, 0.25));
}
body.itk-inner .itk-card__icon {
  color: var(--cat-fg, var(--itk-is-amber));
  background: var(--cat-grad, var(--itk-is-grad-amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: rgba(240, 168, 59, 0.9);
}
body.itk-inner .itk-card.itk-tool-card h3 { color: var(--itk-is-text); }
body.itk-inner .itk-card.itk-tool-card p { color: var(--itk-is-muted); }

/* Per-category colour tokens */
.itk-tool-card[data-tool-cat="compression"]  { --cat-grad: var(--itk-is-grad-amber);  --cat-fg: var(--itk-is-amber);  --cat-border: rgba(240,168,59,.40); }
.itk-tool-card[data-tool-cat="conversion"]   { --cat-grad: var(--itk-is-grad-violet); --cat-fg: var(--itk-is-violet); --cat-border: rgba(139,124,246,.40); }
.itk-tool-card[data-tool-cat="resize"]       { --cat-grad: var(--itk-is-grad-teal);   --cat-fg: var(--itk-is-teal);   --cat-border: rgba(58,214,198,.40); }
.itk-tool-card[data-tool-cat="crop"]         { --cat-grad: var(--itk-is-grad-rose);   --cat-fg: var(--itk-is-rose);   --cat-border: rgba(239,106,154,.40); }
.itk-tool-card[data-tool-cat="metadata"]     { --cat-grad: linear-gradient(135deg,#f0a83b,#ef6a9a); --cat-fg: #ffbe6b; --cat-border: rgba(255,190,107,.40); }
.itk-tool-card[data-tool-cat="privacy"]      { --cat-grad: var(--itk-is-grad-teal);   --cat-fg: var(--itk-is-mint);   --cat-border: rgba(124,227,168,.40); }
.itk-tool-card[data-tool-cat="analysis"]     { --cat-grad: var(--itk-is-grad-violet); --cat-fg: #a99cf7; --cat-border: rgba(169,156,247,.40); }
.itk-tool-card[data-tool-cat="editing"]      { --cat-grad: var(--itk-is-grad-rose);   --cat-fg: var(--itk-is-rose);   --cat-border: rgba(239,106,154,.40); }
.itk-tool-card[data-tool-cat="comparison"]   { --cat-grad: var(--itk-is-grad-amber);  --cat-fg: var(--itk-is-amber);  --cat-border: rgba(240,168,59,.40); }
.itk-tool-card[data-tool-cat="background"]   { --cat-grad: var(--itk-is-grad-violet); --cat-fg: var(--itk-is-violet); --cat-border: rgba(139,124,246,.40); }
.itk-tool-card[data-tool-cat="color"]        { --cat-grad: var(--itk-is-grad-rose);   --cat-fg: var(--itk-is-rose);   --cat-border: rgba(239,106,154,.40); }
.itk-tool-card[data-tool-cat="developer"]    { --cat-grad: var(--itk-is-grad-teal);   --cat-fg: var(--itk-is-teal);   --cat-border: rgba(58,214,198,.40); }
.itk-tool-card[data-tool-cat="seo"]          { --cat-grad: linear-gradient(135deg,#5aa7ff,#2fc7b6); --cat-fg: #7cc4ff; --cat-border: rgba(90,167,255,.40); }
.itk-tool-card[data-tool-cat="accessibility"]{ --cat-grad: linear-gradient(135deg,#7ce3a8,#3ad6c6); --cat-fg: #a5efc1; --cat-border: rgba(124,227,168,.40); }
.itk-tool-card[data-tool-cat="photo"]        { --cat-grad: var(--itk-is-grad-amber);  --cat-fg: var(--itk-is-amber);  --cat-border: rgba(240,168,59,.40); }
.itk-tool-card[data-tool-cat="gif"]          { --cat-grad: linear-gradient(135deg,#ef6a9a,#8b7cf6); --cat-fg: #f28aaa; --cat-border: rgba(239,106,154,.40); }

.itk-tool-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.itk-badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--itk-is-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--itk-is-text-soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--itk-is-border);
}
.itk-badge--privacy {
  color: var(--itk-is-mint);
  background: rgba(124, 227, 168, 0.1);
  border-color: rgba(124, 227, 168, 0.3);
}

/* Filter bar */
.itk-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.itk-chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--itk-is-text-soft);
  background: transparent;
  border: 1px solid var(--itk-is-border-strong);
  cursor: pointer;
  transition: all 0.2s;
}
.itk-chip:hover { color: var(--itk-is-amber); border-color: rgba(240, 168, 59, 0.4); }
.itk-chip--active {
  color: #241403;
  background: var(--itk-is-grad-amber);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(240, 168, 59, 0.25);
}

/* Search hero on tools page */
.itk-search-hero {
  padding: 22px 26px;
  border-radius: var(--itk-is-radius);
  border: 1px solid var(--itk-is-border-strong);
  background: linear-gradient(160deg, var(--itk-is-violet-soft), transparent 70%), var(--itk-is-surface);
  margin-bottom: 0;
}
.itk-search-hero__label {
  font-family: var(--itk-is-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--itk-is-violet);
  margin: 0 0 12px;
}
.itk-tool-search__input {
  background: var(--itk-is-surface-2);
  border: 1px solid var(--itk-is-border-strong);
  border-radius: 12px;
  color: var(--itk-is-text);
}
.itk-tool-search__input:focus { border-color: var(--itk-is-amber); box-shadow: 0 0 0 3px var(--itk-is-amber-soft); }
.itk-tool-search__hint { color: var(--itk-is-muted); }
.itk-tool-search__hint strong { color: var(--itk-is-text-soft); }

/* ------------------------------------------------------------
   10. SHARED LONG-FORM PAGE LAYOUT (pages, resources, legal)
   ------------------------------------------------------------ */
.itk-page {
  position: relative;
}
.itk-page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  border-bottom: 1px solid var(--itk-is-border);
}
.itk-page-hero__backdrop[data-itk-3d] {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.itk-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--itk-is-aurora);
}
.itk-page-hero h1 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.itk-page-hero__lead {
  max-width: 60ch;
  color: var(--itk-is-text-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  margin: 0;
}

.itk-page-body {
  padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}
.itk-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.itk-page-grid__side {
  position: sticky;
  top: calc(var(--itk-header-h, 72px) + 20px);
}
.itk-prose {
  color: var(--itk-is-text-soft);
  font-size: 1.02rem;
  line-height: 1.78;
}
.itk-prose > *:first-child { margin-top: 0; }
.itk-prose h2 {
  margin: 2.6rem 0 1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  scroll-margin-top: calc(var(--itk-header-h, 72px) + 20px);
  color: var(--itk-is-text);
}
.itk-prose h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--itk-is-text);
}
.itk-prose p { margin: 0 0 1.1rem; }
.itk-prose ul, .itk-prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3em;
}
.itk-prose li { margin-bottom: 0.4rem; }
.itk-prose a { color: var(--itk-is-teal); text-decoration: underline; text-underline-offset: 3px; }
.itk-prose strong { color: var(--itk-is-text); }
.itk-prose blockquote {
  margin: 1.6rem 0;
  padding: 14px 20px;
  border-left: 3px solid var(--itk-is-amber);
  background: var(--itk-is-amber-soft);
  border-radius: 0 10px 10px 0;
  color: var(--itk-is-text-soft);
}
.itk-prose blockquote p { margin: 0; }
.itk-prose code {
  font-family: var(--itk-is-mono);
  font-size: 0.86em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(139, 124, 246, 0.12);
  color: #c7bdfa;
}
.itk-prose hr {
  border: none;
  border-top: 1px solid var(--itk-is-border);
  margin: 2rem 0;
}
.itk-prose .itk-table { font-size: 0.9rem; }

/* Page-side card (navigation) */
.itk-page-side-card {
  border: 1px solid var(--itk-is-border);
  border-radius: var(--itk-is-radius);
  background: var(--itk-is-surface);
  padding: 20px;
}
.itk-page-side-card > h3 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--itk-is-muted);
}
.itk-page-side-card a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--itk-is-text-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.itk-page-side-card a:hover { color: var(--itk-is-amber); background: var(--itk-is-amber-soft); }
.itk-page-side-card a.is-active { border-left-color: var(--itk-is-amber); color: var(--itk-is-amber); }

/* FAQ full page */
.itk-faq-page__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 2rem;
}
.itk-faq-page__cat {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--itk-is-text-soft);
  background: transparent;
  border: 1px solid var(--itk-is-border-strong);
  cursor: pointer;
}
.itk-faq-page__cat:hover { color: var(--itk-is-violet); border-color: rgba(139, 124, 246, 0.5); }
.itk-faq-page__cat.is-active {
  color: #fff;
  background: var(--itk-is-grad-violet);
  border-color: transparent;
}
.itk-faq-group { margin-bottom: 2.4rem; }
.itk-faq-group > h2 { margin: 0 0 1.1rem; font-size: 1.5rem; }

/* Tools hero category quick-links */
.itk-tools-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.5rem 0 0;
}
.itk-tools-cats a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--itk-is-text-soft);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--itk-is-border-strong);
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.itk-tools-cats a:hover {
  color: var(--itk-is-amber);
  border-color: rgba(240, 168, 59, 0.5);
  background: rgba(240, 168, 59, 0.06);
}
.itk-tools-cats__count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--itk-is-muted);
  background: rgba(255, 255, 255, 0.06);
}

/* Contact form blocks on the contact page */
.itk-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 1.5rem 0;
}
.itk-contact-tile {
  padding: 22px;
  border: 1px solid var(--itk-is-border);
  border-radius: var(--itk-is-radius);
  background: var(--itk-is-surface);
}
.itk-contact-tile h3 { margin: 0 0 8px; font-size: 1.05rem; }
.itk-contact-tile p { margin: 0; font-size: 0.92rem; color: var(--itk-is-muted); }
.itk-contact-tile a { color: var(--itk-is-teal); }

/* Glossary cards */
.itk-glossary-group { margin-bottom: 2.2rem; }
.itk-glossary-group h2 { color: var(--itk-is-amber); }
.itk-glossary-term {
  padding: 14px 18px;
  border: 1px solid var(--itk-is-border);
  border-left: 3px solid var(--itk-is-teal);
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--itk-is-surface);
}
.itk-glossary-term h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--itk-is-teal); }
.itk-glossary-term p { margin: 0; font-size: 0.94rem; color: var(--itk-is-text-soft); }

/* Resource cards */
.itk-resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.itk-resource-card {
  padding: 22px;
  border: 1px solid var(--itk-is-border);
  border-radius: var(--itk-is-radius);
  background: var(--itk-is-surface);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.itk-resource-card:hover {
  border-color: rgba(240, 168, 59, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(3, 6, 12, 0.45);
}
.itk-resource-card h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--itk-is-text); }
.itk-resource-card h3 a { color: var(--itk-is-text); text-decoration: none; }
.itk-resource-card h3 a:hover { color: var(--itk-is-amber); }
.itk-resource-card p { margin: 0; font-size: 0.92rem; color: var(--itk-is-muted); line-height: 1.6; }
.itk-resource-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--itk-is-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--itk-is-violet);
}

/* ------------------------------------------------------------
   11. FOOTER
   ------------------------------------------------------------ */
body.itk-inner .itk-footer {
  border-top: 1px solid var(--itk-is-border);
  background: var(--itk-is-bg-2);
}
body.itk-inner .itk-footer__title {
  font-family: var(--itk-is-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--itk-is-amber);
}
body.itk-inner .itk-footer a { color: var(--itk-is-muted); }
body.itk-inner .itk-footer a:hover { color: var(--itk-is-amber); }

/* ------------------------------------------------------------
   12. SCROLL-REVEAL ANIMATION
   ------------------------------------------------------------ */
.itk-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.itk-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   13. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .itk-tool-grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .itk-page-grid { grid-template-columns: minmax(0, 1fr) 240px; }
}

@media (max-width: 900px) {
  .itk-tool-grid { grid-template-columns: 1fr; }
  .itk-tool-grid__side {
    position: static;
    order: -1;
  }
  .itk-side-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .itk-side-card--cta { grid-column: 1 / -1; }
  .itk-page-grid { grid-template-columns: 1fr; }
  .itk-page-grid__side { position: static; }
  .itk-duo { grid-template-columns: 1fr; }
  .itk-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .itk-side-stack { grid-template-columns: 1fr; }
  .itk-tool-hero h1 { font-size: 2rem; }
  .itk-tool-hero__cta a { width: 100%; justify-content: center; }
  .itk-tag { font-size: 0.66rem; }
  .itk-table th, .itk-table td { padding: 10px 12px; }
  .itk-tips { grid-template-columns: 1fr; }
}
/* ------------------------------------------------------------
   18. CONTACT FORM & NEWSLETTER
   ------------------------------------------------------------ */
.itk-form,
.itk-newsletter {
  position: relative;
  display: block;
  margin: 0;
}

.itk-form {
  padding: 26px;
  background: var(--itk-is-surface);
  border: 1px solid var(--itk-is-border);
  border-radius: var(--itk-is-radius);
}

.itk-form__row { margin-bottom: 18px; }

.itk-form__row label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--itk-is-text-soft);
}

.itk-form__row input[type="text"],
.itk-form__row input[type="email"],
.itk-form__row textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--itk-is-text);
  background: var(--itk-is-bg-2);
  border: 1px solid var(--itk-is-border-strong);
  border-radius: var(--itk-is-radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.itk-form__row input:focus,
.itk-form__row textarea:focus {
  border-color: var(--itk-is-teal);
  box-shadow: 0 0 0 3px var(--itk-is-teal-soft);
}

.itk-form__row textarea { resize: vertical; min-height: 130px; }

.itk-form__honeypot,
.itk-newsletter__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.itk-form__legal {
  margin: 0 0 16px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--itk-is-muted);
}

.itk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.itk-btn--primary {
  color: #14100a;
  background: var(--itk-is-grad-amber);
  box-shadow: 0 8px 22px -8px rgba(240, 168, 59, 0.55);
}

.itk-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(240, 168, 59, 0.65);
}

.itk-btn--sm { padding: 9px 16px; font-size: 0.82rem; }

.itk-note {
  padding: 16px 18px;
  border-radius: var(--itk-is-radius-sm);
  border: 1px solid var(--itk-is-border-strong);
  background: var(--itk-is-surface-2);
  color: var(--itk-is-text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.itk-note--ok {
  border-color: rgba(58, 214, 198, 0.4);
  background: var(--itk-is-teal-soft);
  color: var(--itk-is-mint);
}

.itk-note--warn {
  border-color: rgba(240, 168, 59, 0.45);
  background: var(--itk-is-amber-soft);
  color: var(--itk-is-amber);
}

.itk-footer__newsletter {
  margin-top: 40px;
  padding: 34px 26px;
  border: 1px solid var(--itk-is-border);
  border-radius: var(--itk-is-radius);
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(240,168,59,.10), transparent 45%),
    radial-gradient(120% 150% at 100% 100%, rgba(139,124,246,.12), transparent 45%),
    var(--itk-is-surface);
}

.itk-newsletter__head { max-width: 640px; }

.itk-newsletter__kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--itk-is-amber);
}

.itk-newsletter__head h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--itk-is-text);
}

.itk-newsletter__head p {
  margin: 0 0 20px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--itk-is-text-soft);
}

.itk-newsletter__row {
  display: flex;
  gap: 10px;
  max-width: 520px;
}

.itk-newsletter__row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--itk-is-text);
  background: var(--itk-is-bg-2);
  border: 1px solid var(--itk-is-border-strong);
  border-radius: var(--itk-is-radius-sm);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.itk-newsletter__row input[type="email"]:focus {
  border-color: var(--itk-is-teal);
  box-shadow: 0 0 0 3px var(--itk-is-teal-soft);
}

.itk-newsletter__legal {
  margin: 14px 0 0;
  font-size: 0.76rem;
  color: var(--itk-is-muted);
}

@media (max-width: 640px) {
  .itk-newsletter__row { flex-direction: column; }
  .itk-newsletter__row button { width: 100%; justify-content: center; }
}
