/* ─────────────────────────────────────────────────────────────────────────── */
/* Textora Theme v4  ·  TechCriterion style                                    */
/* Primary: #1a56db  Dark nav: #1e2939  Font: Inter                            */
/* ─────────────────────────────────────────────────────────────────────────── */

:root {
  --blue:      #1a56db;
  --blue-dark: #1e40af;
  --blue-bg:   #eff6ff;
  --blue-br:   #bfdbfe;
  --dark:      #1e2939;
  --ink:       #0f172a;
  --ink-2:     #334155;
  --ink-3:     #64748b;
  --ink-4:     #94a3b8;
  --border:    #e2e8f0;
  --border-2:  #cbd5e1;
  --surface:   #f8fafc;
  --white:     #ffffff;
  --green:     #22c55e;
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --ease:      150ms ease;
  --r:         10px;
  --r-sm:      7px;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(26,86,219,.06);
  --shadow-md: 0 4px 24px rgba(26,86,219,.10), 0 1px 4px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── HEADER ─────────────────────────────────────────────────────────────────── */

.tx-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tx-header__inner {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo */
.tx-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
  margin-right: 32px;
  flex-shrink: 0;
  white-space: nowrap;
}
.tx-logo__t { color: var(--blue); font-style: italic; }
.tx-logo--footer { color: var(--ink); }
.tx-logo--footer .tx-logo__t { color: var(--blue); }

/* Nav */
.tx-nav {
  display: flex;
  align-items: center;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.tx-nav::-webkit-scrollbar { display: none; }
.tx-nav__link {
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  padding: 0 14px;
  height: 56px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
  flex-shrink: 0;
}
.tx-nav__link:hover { color: var(--white); }
.tx-nav__link--active { color: var(--white); border-bottom-color: var(--blue); }

/* Header right */
.tx-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── LANGUAGE SWITCH (Polylang) ──────────────────────────────────────────────
   Polylang outputs: <ul class="language-switcher-..."><li class="lang-item [current-lang]"><a ...>slug</a></li></ul>
   We wrap it in .tx-lang-switch — target all possible structures.
─────────────────────────────────────────────────────────────────────────── */
.tx-lang-switch {
  display: flex;
  align-items: center;
}

/* Strip list defaults — both direct ul and any nested */
.tx-lang-switch ul,
.tx-lang-switch > ul {
  display: flex;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.tx-lang-switch li,
.tx-lang-switch ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Base pill for every link/span Polylang might output */
.tx-lang-switch a,
.tx-lang-switch span.no-translation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(156,163,175,.85);
  text-decoration: none !important;
  background: transparent;
  border: 1px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  line-height: 1;
  white-space: nowrap;
}

.tx-lang-switch a:hover {
  color: var(--white);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.12);
}

/* Active language — Polylang adds .current-lang on the <li> */
.tx-lang-switch .current-lang a,
.tx-lang-switch li.current-lang a,
.tx-lang-switch li.current-lang > a,
.tx-lang-switch .lang-item.current-lang a,
/* Also handle if Polylang puts aria-current on the link itself */
.tx-lang-switch a[aria-current="page"],
/* Fallback: class directly on <a> */
.tx-lang-switch a.current-lang {
  background: var(--blue) !important;
  color: var(--white) !important;
  border-color: var(--blue) !important;
  pointer-events: none;
}

/* Header Telegram button */
.tx-btn-tg-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--ease);
  flex-shrink: 0;
}
.tx-btn-tg-header:hover { background: var(--blue-dark); }

/* Burger */
.tx-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.tx-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* ── MAIN ────────────────────────────────────────────────────────────────────── */
.tx-main { min-height: 60vh; }

/* ── HERO ────────────────────────────────────────────────────────────────────── */

.tx-hero {
  background: linear-gradient(160deg, #f0f4ff 0%, var(--white) 65%);
  padding: 56px 24px 48px;
  border-bottom: 1px solid var(--border);
}
.tx-hero__text { max-width: 680px; margin: 0 auto; text-align: center; }

.tx-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-br);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #1d4ed8;
  margin-bottom: 20px;
}
.tx-hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(26,86,219,.4);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(26,86,219,.4); }
  70%  { box-shadow: 0 0 0 6px rgba(26,86,219,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,86,219,0); }
}

.tx-hero__h1 {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.02;
  color: var(--ink);
  margin-bottom: 18px;
}
.tx-hero__h1 span { color: var(--blue); }
.tx-hero__sub {
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 28px;
}

.tx-hero__desc {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 36px;
  text-align: center;
}
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin-top: 12px;
}
.tx-mono-strip--centered { justify-content: center; margin: 0 auto; }
.tx-mono-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.tx-mono-sep { width: 1px; height: 18px; background: var(--border); }

/* ── TOOL SECTIONS (on front page — homepage tool cards) ─────────────────────── */

.tx-tool-section { border-bottom: 1px solid var(--border); }
.tx-tool-section--alt { background: var(--surface); }

.tx-tool-section__label {
  padding: 24px 24px 0;
  max-width: 1040px;
  margin: 0 auto;
}
.tx-tool-section__desc {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 6px;
  max-width: 520px;
}
.tx-tool-section__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 24px 40px;
}
/* Plugin card inside front-page tool section */
.tx-tool-section__inner .ait-wrap { padding-top: 24px; }
.tx-tool-section__inner .ait-card { box-shadow: var(--shadow-md); }

/* Reset theme prose styles inside plugin wrap — plugin styles itself */
.tx-tool-section__inner .ait-wrap p,
.tx-tool-section__inner .ait-wrap ul,
.tx-tool-section__inner .ait-wrap ol,
.tx-tool-section__inner .ait-wrap li,
.tx-tool-section__inner .ait-wrap h2,
.tx-tool-section__inner .ait-wrap h3 { max-width: none; margin-left: 0; margin-right: 0; font-size: inherit; color: inherit; line-height: inherit; }

/* ── TOOL UI (on dedicated /tool-slug/ pages) ────────────────────────────────── */
/*
 * .tx-tool-ui wraps ONLY the shortcode output.
 * Editorial text lives in .tx-entry-content — separate, clean.
 * This section must NEVER contain prose — only the .ait-wrap plugin DOM.
 */

.tx-tool-ui {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.tx-tool-ui__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* Plugin's ait-wrap adjustments inside tool page */
.tx-tool-ui__inner .ait-wrap {
  padding-top: 0;       /* page header already provides top spacing */
  padding-bottom: 0;
}

.tx-tool-ui__inner .ait-card {
  box-shadow: var(--shadow-md);
}

/* Hard reset: plugin elements must not inherit theme prose rules.
   All selectors below are intentionally blank — specificity shield only. */
.tx-tool-ui__inner .ait-wrap p,
.tx-tool-ui__inner .ait-wrap ul,
.tx-tool-ui__inner .ait-wrap ol,
.tx-tool-ui__inner .ait-wrap li,
.tx-tool-ui__inner .ait-wrap h2,
.tx-tool-ui__inner .ait-wrap h3,
.tx-tool-ui__inner .ait-wrap label,
.tx-tool-ui__inner .ait-wrap span,
.tx-tool-ui__inner .ait-wrap button {
  /* Reset any theme inheritance that leaks in */
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* ── GENERIC SECTION ─────────────────────────────────────────────────────────── */

.tx-section {
  padding: 64px 24px;
  border-bottom: 1px solid var(--border);
  max-width: 1040px;
  margin: 0 auto;
}
.tx-section__head {
  text-align: center;
  margin-bottom: 48px;
}
.tx-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
  margin-bottom: 10px;
}
.tx-section__head h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1.1;
}

/* ── HOW IT WORKS ────────────────────────────────────────────────────────────── */

.tx-how__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
}
.tx-how__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 200px;
  padding: 0 8px;
}
.tx-how__step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(26,86,219,.3);
  flex-shrink: 0;
}
.tx-how__step-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.tx-how__step-desc  { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.tx-how__arrow {
  font-size: 20px;
  color: var(--blue-br);
  padding-top: 16px;
  flex-shrink: 0;
}

/* ── TOOLS GRID (overview) ───────────────────────────────────────────────────── */

.tx-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tx-tc {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--ease);
  background: var(--white);
}
.tx-tc:hover { background: var(--blue-bg); }
.tx-tc:nth-child(3n)    { border-right: none; }
.tx-tc:nth-last-child(-n+3) { border-bottom: none; }
.tx-tc__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tx-tc__n { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--ink-4); }
.tx-tc__tag {
  font-size: 10px; font-weight: 700;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid var(--blue-br);
  padding: 3px 9px; border-radius: 100px; letter-spacing: .04em;
}
.tx-tc__title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -.3px; }
.tx-tc__desc  { font-size: 12.5px; color: var(--ink-3); line-height: 1.65; flex: 1; margin-bottom: 18px; }
.tx-tc__link  { font-size: 12px; font-weight: 600; color: var(--blue); }
.tx-tc:hover .tx-tc__link { text-decoration: underline; }

/* ── PRICING ─────────────────────────────────────────────────────────────────── */

.tx-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tx-pc {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.tx-pc--featured {
  border: 2px solid var(--blue);
  background: var(--blue-bg);
}
.tx-pc__tier {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-4); margin-bottom: 10px;
}
.tx-pc--featured .tx-pc__tier { color: var(--blue); }
.tx-pc__price {
  font-size: 42px; font-weight: 900; color: var(--ink);
  letter-spacing: -2px; line-height: 1; margin-bottom: 20px;
}
.tx-pc__list {
  list-style: none; display: flex; flex-direction: column;
  gap: 8px; margin-bottom: 24px; flex: 1; text-align: left;
}
.tx-pc__list li {
  font-size: 13px; color: var(--ink-3);
  padding-left: 18px; position: relative;
}
.tx-pc__list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--green); font-weight: 700; font-size: 12px;
}
.tx-pc__btn {
  display: block; text-align: center; padding: 11px 20px;
  border: 1px solid var(--border-2);
  border-radius: 8px; font-size: 13px; font-weight: 700;
  color: var(--ink-2); cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  font-family: var(--font);
}
.tx-pc__btn:hover { border-color: var(--blue); color: var(--blue); }
.tx-pc--featured .tx-pc__btn {
  background: var(--blue); border-color: var(--blue);
  color: var(--white);
}
.tx-pc--featured .tx-pc__btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* ── FAQ ─────────────────────────────────────────────────────────────────────── */

.tx-faq__list { max-width: 720px; margin: 0 auto; }
.tx-faq__item { border-bottom: 1px solid var(--border); }
.tx-faq__q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 18px 0;
  font-size: 15px; font-weight: 600; color: var(--ink);
  background: none; border: none; cursor: pointer;
  text-align: left; font-family: var(--font);
  gap: 16px;
}
.tx-faq__q:hover { color: var(--blue); }
.tx-faq__icon { flex-shrink: 0; transition: transform var(--ease); }
.tx-faq__q[aria-expanded="true"] .tx-faq__icon { transform: rotate(180deg); }
/* Answer always in HTML (crawlable). Hidden visually until .is-open — no hidden attr */
.tx-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 220ms ease;
}
.tx-faq__a > p { min-height: 0; padding-bottom: 0; }
.tx-faq__item.is-open .tx-faq__a { grid-template-rows: 1fr; }
.tx-faq__item.is-open .tx-faq__a > p { padding-bottom: 16px; }
.tx-faq__a p { font-size: 14px; color: var(--ink-3); line-height: 1.7; }

/* ── TOOL PAGE ───────────────────────────────────────────────────────────────── */

.tx-tool-page__header {
  background: linear-gradient(160deg, #f0f4ff 0%, var(--white) 70%);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px 32px;
  margin-top: 0;
}
.tx-tool-page__header-inner { max-width: 1040px; margin: 0 auto; }
.tx-tool-page__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
  margin-top: 6px;
  line-height: 1.1;
}
/* .tx-tool-page__content and .tx-tool-page__mono removed —
   replaced by .tx-tool-ui and .tx-entry-content respectively */

/* ── ENTRY CONTENT (editorial prose after shortcode — primary SEO content) ───── */
.tx-entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.85;
  font-family: var(--font);
}
.tx-entry-content > *:first-child { margin-top: 0 !important; }

.tx-entry-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 40px 0 14px;
  letter-spacing: -.5px;
  line-height: 1.2;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.tx-entry-content h2:first-child { margin-top: 0; }

.tx-entry-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-2);
  margin: 28px 0 10px;
  letter-spacing: -.3px;
  line-height: 1.3;
  padding-left: 11px;
  position: relative;
}
.tx-entry-content h3::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--blue);
  border-radius: 2px;
}

.tx-entry-content h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  margin: 22px 0 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.tx-entry-content p {
  margin-bottom: 16px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.85;
}

.tx-entry-content ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 18px !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tx-entry-content ul li {
  padding: 0 0 0 20px !important;
  margin: 0 !important;
  position: relative;
  line-height: 1.7;
  list-style: none !important;
  color: var(--ink-3);
}
.tx-entry-content ul li::before {
  content: '' !important;
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.tx-entry-content ul li::marker { content: '' !important; }

.tx-entry-content ol {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 18px !important;
  counter-reset: tx-ol;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tx-entry-content ol li {
  padding: 0 0 0 28px !important;
  margin: 0 !important;
  position: relative;
  line-height: 1.7;
  list-style: none !important;
  counter-increment: tx-ol;
  color: var(--ink-3);
}
.tx-entry-content ol li::before {
  content: counter(tx-ol) !important;
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-br);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: var(--font);
}
.tx-entry-content ol li::marker { content: '' !important; }

.tx-entry-content strong, .tx-entry-content b { color: var(--ink-2); font-weight: 700; }
.tx-entry-content em, .tx-entry-content i    { color: var(--ink-2); font-style: italic; }

/* ── SEO TEXT (below tool) ───────────────────────────────────────────────────── */
/* High-specificity selectors to override WordPress core / block-library styles   */

.tx-seo-text {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 64px 24px 72px;
}

.tx-seo-text--bare {
  border-top: none;
  background: none;
  padding: 0 24px 48px;
}

.tx-seo-text .tx-seo-text__inner {
  max-width: 800px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.85;
  font-family: var(--font);
}

.tx-seo-text .tx-seo-text__inner > *:first-child { margin-top: 0 !important; }

/* ── Headings ── */
.tx-seo-text .tx-seo-text__inner h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  margin: 40px 0 14px !important;
  letter-spacing: -.5px;
  line-height: 1.2 !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--border) !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  background: none !important;
}
.tx-seo-text .tx-seo-text__inner h2:first-child { margin-top: 0 !important; }

.tx-seo-text .tx-seo-text__inner h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--ink-2) !important;
  margin: 28px 0 10px !important;
  letter-spacing: -.3px;
  line-height: 1.3 !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: none !important;
  border: none !important;
  padding: 0 0 0 11px !important;
  position: relative;
}
.tx-seo-text .tx-seo-text__inner h3::before {
  content: '' !important;
  display: block !important;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px !important;
  height: 16px !important;
  background: var(--blue) !important;
  border-radius: 2px !important;
}

.tx-seo-text .tx-seo-text__inner h4 {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--blue) !important;
  margin: 22px 0 8px !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

/* ── Paragraphs ── */
.tx-seo-text .tx-seo-text__inner p {
  margin-bottom: 16px !important;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.85;
}

/* ── Unordered lists — reset browser + WP defaults, apply custom dots ── */
.tx-seo-text .tx-seo-text__inner ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.tx-seo-text .tx-seo-text__inner ul li {
  padding: 0 0 0 20px !important;
  margin: 0 !important;
  position: relative !important;
  line-height: 1.7 !important;
  list-style: none !important;
  color: var(--ink-3);
}
.tx-seo-text .tx-seo-text__inner ul li::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 11px !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: var(--blue) !important;
}
/* kill any WP bullet marker */
.tx-seo-text .tx-seo-text__inner ul li::marker { display: none !important; color: transparent !important; content: '' !important; }

/* ── Ordered lists ── */
.tx-seo-text .tx-seo-text__inner ol {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 18px !important;
  counter-reset: tx-ol !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.tx-seo-text .tx-seo-text__inner ol li {
  padding: 0 0 0 28px !important;
  margin: 0 !important;
  position: relative !important;
  line-height: 1.7 !important;
  list-style: none !important;
  counter-increment: tx-ol !important;
  color: var(--ink-3);
}
.tx-seo-text .tx-seo-text__inner ol li::before {
  content: counter(tx-ol) !important;
  position: absolute !important;
  left: 0 !important;
  top: 3px !important;
  width: 19px !important;
  height: 19px !important;
  background: var(--blue-bg) !important;
  border: 1px solid var(--blue-br) !important;
  border-radius: 4px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  color: var(--blue) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  font-family: var(--font) !important;
}
.tx-seo-text .tx-seo-text__inner ol li::marker { display: none !important; color: transparent !important; content: '' !important; }

/* ── Inline elements ── */
.tx-seo-text .tx-seo-text__inner strong,
.tx-seo-text .tx-seo-text__inner b {
  color: var(--ink-2) !important;
  font-weight: 700 !important;
}

.tx-seo-text .tx-seo-text__inner em,
.tx-seo-text .tx-seo-text__inner i {
  color: var(--ink-2);
  font-style: italic;
}

.tx-seo-text .tx-seo-text__inner a {
  color: var(--blue) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  transition: color var(--ease);
}
.tx-seo-text .tx-seo-text__inner a:hover { color: var(--blue-dark) !important; }

/* ── Blockquote ── */
.tx-seo-text .tx-seo-text__inner blockquote {
  margin: 24px 0 !important;
  padding: 16px 20px 16px 44px !important;
  background: var(--blue-bg) !important;
  border-left: 3px solid var(--blue) !important;
  border-radius: 0 var(--r-sm) var(--r-sm) 0 !important;
  position: relative !important;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.tx-seo-text .tx-seo-text__inner blockquote::before {
  content: '\201C' !important;
  position: absolute !important;
  left: 14px !important;
  top: 10px !important;
  font-size: 28px !important;
  color: var(--blue) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* ── Code / pre ── */
.tx-seo-text .tx-seo-text__inner code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  background: var(--border);
  color: var(--ink-2);
  padding: 2px 6px;
  border-radius: 4px;
}
.tx-seo-text .tx-seo-text__inner pre {
  background: var(--ink);
  color: #e2e8f0;
  border-radius: var(--r-sm);
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.7;
}
.tx-seo-text .tx-seo-text__inner pre code { background: none; color: inherit; padding: 0; }

/* ── Horizontal rule ── */
.tx-seo-text .tx-seo-text__inner hr {
  border: none !important;
  border-top: 1px solid var(--border) !important;
  margin: 32px 0 !important;
}

/* ── Table ── */
.tx-seo-text .tx-seo-text__inner table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 18px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.tx-seo-text .tx-seo-text__inner th {
  background: var(--dark) !important;
  color: var(--white) !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 10px 14px;
  text-align: left;
}
.tx-seo-text .tx-seo-text__inner td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-3);
  vertical-align: top;
}
.tx-seo-text .tx-seo-text__inner tr:last-child td { border-bottom: none; }
.tx-seo-text .tx-seo-text__inner tr:nth-child(even) td { background: var(--surface); }

/* ── FOOTER ─────────────────────────────────────────────────────────────────── */

.tx-footer { border-top: 1px solid var(--border); }

.tx-footer__tg-band {
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  gap: 20px;
  flex-wrap: wrap;
}
.tx-footer__tg-text { font-size: 14px; color: #9ca3af; }
.tx-footer__tg-text a { color: #60a5fa; }

.tx-btn-tg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--ease);
  flex-shrink: 0;
}
.tx-btn-tg:hover { background: var(--blue-dark); }

.tx-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 40px 32px;
  max-width: 1040px;
  margin: 0 auto;
}
.tx-footer__brand {}
.tx-footer__tagline { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.tx-footer__dev {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 8px;
}
.tx-footer__dev a { color: var(--blue); }
.tx-footer__dev a:hover { text-decoration: underline; }

.tx-footer__col-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-4); margin-bottom: 12px;
}
.tx-footer__link {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 8px;
  transition: color var(--ease);
}
.tx-footer__link:hover { color: var(--blue); }

/* Polylang language links in footer */
.tx-footer__col a {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 8px;
  transition: color var(--ease);
}
.tx-footer__col a:hover { color: var(--blue); }

.tx-footer__bottom {
  border-top: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1040px;
  margin: 0 auto;
}
.tx-footer__copy { font-size: 12px; color: var(--ink-4); }
.tx-footer__bottom-links { display: flex; gap: 16px; }
.tx-footer__bottom-links a { font-size: 12px; color: var(--ink-4); transition: color var(--ease); }
.tx-footer__bottom-links a:hover { color: var(--blue); }

/* ── BUTTONS (global) ────────────────────────────────────────────────────────── */

.tx-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--ease), box-shadow var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.tx-btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(26,86,219,.35);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .tx-tools-grid    { grid-template-columns: 1fr 1fr; }
  .tx-tc:nth-child(3n)    { border-right: 1px solid var(--border); }
  .tx-tc:nth-child(2n)    { border-right: none; }
  .tx-tc:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .tx-tc:nth-last-child(-n+2) { border-bottom: none; }
  .tx-pricing__grid { grid-template-columns: 1fr; }
  .tx-footer__grid  { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tx-how__steps   { flex-wrap: wrap; justify-content: center; gap: 24px; }
  .tx-how__arrow   { display: none; }
}

@media (max-width: 640px) {
  .tx-header__inner { padding: 0 16px; }
  .tx-nav           { display: none; }
  .tx-burger        { display: flex; }
  .tx-hero          { padding: 40px 16px 36px; }
  .tx-hero__h1      { letter-spacing: -1.5px; }
  .tx-tools-grid    { grid-template-columns: 1fr; }
  .tx-tc            { border-right: none; border-bottom: 1px solid var(--border); }
  .tx-tc:last-child { border-bottom: none; }
  .tx-footer__tg-band { padding: 16px; flex-direction: column; align-items: center; text-align: center; }
  .tx-footer__grid  { grid-template-columns: 1fr; padding: 24px 16px; }
  .tx-footer__bottom{ padding: 16px; flex-direction: column; align-items: flex-start; }
  .tx-mono-strip    { flex-direction: column; align-items: center; gap: 8px; }
  .tx-mono-sep      { display: none; }
}

/* ── Nav mobile open ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .tx-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: var(--dark);
    padding: 8px 0 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    z-index: 199;
    overflow-y: auto;
    max-height: calc(100vh - 56px);
  }
  .tx-nav.is-open .tx-nav__link {
    height: auto;
    padding: 12px 24px;
    border-bottom: none;
    border-top: 1px solid rgba(255,255,255,.06);
  }
}
