/* ============================================
   TrustMatrix Marketing — Professional Editorial
   Clean • Confident • Enterprise-grade
   ============================================ */

/* Override base marketing styles */
.tm-marketing.tm-pro-page {
  background: var(--mk-bg) !important;
}
.tm-marketing.tm-pro-page[data-bs-theme="dark"] {
  background: var(--mk-bg) !important;
}

.tm-marketing {
  --mk-bg: #ffffff;
  --mk-bg-alt: #f8fafc;
  --mk-text: #0f172a;
  --mk-text-muted: #475569;
  --mk-text-light: #64748b;
  --mk-border: #e2e8f0;
  --mk-accent: #0369a1;
  /* the same colour as channels, so a translucent shadow or border can follow the
     accent instead of restating it. Keep the two in step. */
  --mk-accent-rgb: 3, 105, 161;
  --mk-accent-hover: #0284c7;
  --mk-accent-soft: #e0f2fe;
  --mk-success: #059669;
  --mk-font: "Inter", "Cairo", system-ui, sans-serif;
}

.tm-marketing[data-bs-theme="dark"] {
  --mk-bg: #0f172a;
  --mk-bg-alt: #1e293b;
  --mk-text: #f1f5f9;
  --mk-text-muted: #94a3b8;
  --mk-text-light: #64748b;
  --mk-border: #334155;
  --mk-accent: #38bdf8;
  --mk-accent-rgb: 56, 189, 248;
  --mk-accent-hover: #7dd3fc;
  --mk-accent-soft: rgba(56,189,248,.12);
  --mk-success: #34d399;
}

.tm-marketing .tm-pro-page { font-family: var(--mk-font); }
.tm-marketing .tm-pro-page .container { max-width: 1120px; }

/* ---- Hero: Clean & focused ---- */
.tm-pro-hero {
  padding: 100px 0 80px;
  text-align: center;
}
.tm-pro-hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mk-accent);
  margin-bottom: 20px;
}
.tm-pro-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--mk-text);
  margin-bottom: 24px;
  max-width: 800px;
  margin-inline: auto;
}
.tm-pro-hero-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--mk-text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}
.tm-pro-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tm-pro-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 8px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none; transition: all 0.2s;
}
.tm-pro-btn-primary {
  background: var(--mk-accent); color: #fff; border: none;
}
.tm-pro-btn-primary:hover { background: var(--mk-accent-hover); color: #fff; transform: translateY(-1px); }
.tm-pro-btn-secondary {
  background: transparent; color: var(--mk-text);
  border: 1px solid var(--mk-border);
}
.tm-pro-btn-secondary:hover { border-color: var(--mk-accent); color: var(--mk-accent); }

/* ---- Section blocks ---- */
.tm-pro-section { padding: 72px 0; }
.tm-pro-section-alt { background: var(--mk-bg-alt); }
.tm-pro-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--mk-text);
  margin-bottom: 12px;
}
.tm-pro-section .tm-pro-section-lead {
  font-size: 1.1rem;
  color: var(--mk-text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

/* ---- Numbered feature list ---- */
.tm-pro-features { list-style: none; padding: 0; margin: 0; }
.tm-pro-features li {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px 0; border-bottom: 1px solid var(--mk-border);
}
.tm-pro-features li:last-child { border-bottom: 0; }
.tm-pro-feature-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--mk-accent-soft);
  color: var(--mk-accent);
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.tm-pro-feature-title { font-weight: 600; font-size: 1.1rem; color: var(--mk-text); margin-bottom: 6px; }
.tm-pro-feature-desc { color: var(--mk-text-muted); font-size: 1rem; line-height: 1.6; }

/* ---- Platform: Module list (table-like) ---- */
.tm-pro-modules { display: flex; flex-direction: column; gap: 0; }
.tm-pro-module {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--mk-border);
  border-bottom: 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.tm-pro-module:last-child { border-bottom: 1px solid var(--mk-border); }
.tm-pro-module:hover { background: var(--mk-bg-alt); }
.tm-pro-module-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--mk-accent-soft);
  color: var(--mk-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.tm-pro-module-content { flex: 1; min-width: 0; }
.tm-pro-module-title { font-weight: 600; font-size: 1.1rem; color: var(--mk-text); margin-bottom: 4px; }
.tm-pro-module-desc { font-size: 0.95rem; color: var(--mk-text-muted); }
.tm-pro-module-arrow { color: var(--mk-text-light); font-size: 1.1rem; }

/* ---- Module detail page ---- */
.tm-pro-module-hero { padding: 60px 0 48px; }
.tm-pro-module-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.tm-pro-module-hero .lead { color: var(--mk-text-muted); font-size: 1.1rem; }
.tm-pro-module-body { padding: 48px 0; }
.tm-pro-module-body h3 { font-size: 1.125rem; font-weight: 600; margin: 24px 0 12px; }
.tm-pro-module-body ul { padding-inline-start: 24px; }
.tm-pro-module-body li { margin-bottom: 8px; color: var(--mk-text-muted); line-height: 1.6; }

/* ---- Stats strip ---- */
/* Four stats in a three-column grid orphaned the fourth on every width, with two
   empty cells beside it. auto-fit at a 240px floor splits 4 / 2 / 1 instead, so the
   row divides evenly at every size it reaches. */
/* Four stats. repeat(3, 1fr) orphaned the fourth at every width; auto-fit with a 240px
   floor fixed 1440 and 768 but still gave 3 + 1 at 1024, because that container fits
   exactly three 240px columns and auto-fit cannot be told to skip a count. So the
   breakpoints are explicit: four across when there is room for four, otherwise two,
   otherwise one. Four divides by all three, so no width leaves a stat standing alone. */
.tm-pro-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 48px 0; }
@media (min-width: 1100px) { .tm-pro-stats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 575px)  { .tm-pro-stats { grid-template-columns: 1fr; } }
.tm-pro-stat { text-align: center; padding: 24px 16px; }
.tm-pro-stat-value { font-size: 2rem; font-weight: 700; color: var(--mk-accent); margin-bottom: 8px; }
.tm-pro-stat-label { font-size: 0.95rem; color: var(--mk-text-muted); }

/* ---- CTA block ---- */
.tm-pro-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--mk-bg-alt);
  border-radius: 16px;
  margin: 48px 0;
}
.tm-pro-cta h2 { margin-bottom: 16px; }
.tm-pro-cta p { color: var(--mk-text-muted); margin-bottom: 24px; }

/* ---- Frameworks badges ---- */
.tm-pro-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-pro-badge {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px; font-weight: 500;
  background: var(--mk-bg-alt);
  border: 1px solid var(--mk-border);
  color: var(--mk-text-muted);
}

/* Navbar & Footer overrides for pro design */
.tm-marketing.tm-pro-page .tm-navbar {
  background: rgba(255,255,255,.95) !important;
  border-bottom-color: var(--mk-border);
}
.tm-marketing.tm-pro-page .tm-navbar .nav-link { color: var(--mk-text-muted) !important; }
.tm-marketing.tm-pro-page .tm-navbar .nav-link:hover { color: var(--mk-text) !important; }
.tm-marketing.tm-pro-page .tm-navbar .nav-link.active { color: var(--mk-accent) !important; background: var(--mk-accent-soft) !important; }
.tm-marketing.tm-pro-page .tm-navbar .navbar-brand,
.tm-marketing.tm-pro-page .tm-navbar .tm-brand-name { color: var(--mk-text) !important; }
.tm-marketing.tm-pro-page .tm-brand-sub { color: var(--mk-text-muted) !important; }
.tm-marketing.tm-pro-page .tm-btn-primary {
  background: var(--mk-accent) !important;
  color: #fff !important;
  border: none !important;
}
.tm-marketing.tm-pro-page .tm-btn-primary:hover { background: var(--mk-accent-hover) !important; color: #fff !important; }
.tm-marketing.tm-pro-page .tm-btn-ghost {
  background: transparent !important;
  border-color: var(--mk-border) !important;
  color: var(--mk-text) !important;
}
.tm-marketing.tm-pro-page .tm-btn-ghost:hover { border-color: var(--mk-accent) !important; color: var(--mk-accent) !important; }
.tm-marketing.tm-pro-page .tm-footer {
  background: var(--mk-bg-alt) !important;
  border-top-color: var(--mk-border);
}
.tm-marketing.tm-pro-page .tm-footer-title { color: var(--mk-text) !important; }
.tm-marketing.tm-pro-page .tm-footer-links a { color: var(--mk-text-muted) !important; }
.tm-marketing.tm-pro-page .tm-footer-links a:hover { color: var(--mk-accent) !important; }
.tm-marketing.tm-pro-page .tm-scroll-progress-bar { background: var(--mk-accent) !important; }
.tm-marketing.tm-pro-page .tm-backtotop { background: var(--mk-bg-alt) !important; border-color: var(--mk-border) !important; color: var(--mk-text) !important; }
.tm-marketing.tm-pro-page .tm-backtotop:hover { border-color: var(--mk-accent) !important; }
.tm-marketing.tm-pro-page .tm-offcanvas { background: var(--mk-bg) !important; color: var(--mk-text) !important; }
.tm-marketing.tm-pro-page .offcanvas .list-group-item { color: var(--mk-text) !important; border-color: var(--mk-border) !important; }

.tm-marketing.tm-pro-page[data-bs-theme="dark"] .tm-navbar {
  background: rgba(15,23,42,.95) !important;
}
.tm-marketing.tm-pro-page[data-bs-theme="dark"] .tm-btn-ghost { color: var(--mk-text) !important; }

/* ══════════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY PASS — measured, not guessed
   ══════════════════════════════════════════════════════════════════════════════
   What the page measured before this block:

     line length      37-164 characters per line; 11 blocks over 80, one at 164
                      across 1,246px, and max-width was `none` EVERYWHERE
     leading          six different ratios; the bulk of the body (95 blocks) at 1.5
     tracking         one ARABIC heading at -1.04px
     weights          six Cairo weights downloaded, only 400 and 700 ever used

   1 — THE MEASURE. A 164-character line is the single worst thing here: the eye
   loses its place on the return sweep, so a reader re-reads lines without knowing
   why. 45-75 characters is comfortable for Latin, 50-80 for Arabic. `ch` is the
   right unit because it tracks the font size the reader actually has.

   But `ch` is NOT one character: it is the advance of the digit "0", and a digit is
   the widest glyph in most fonts. Measured on this page at 1440px: an Inter letter
   runs 0.754ch and a Cairo letter 0.782ch, so the 70ch I first wrote rendered 86
   Latin characters and 83 Arabic ones — both past the ceiling I was aiming under.
   54ch is what lands inside the band: ~72 Latin, ~69 Arabic. */
.tm-marketing p,
.tm-marketing li,
.tm-marketing dd,
.tm-marketing .tm-lead,
.tm-marketing .tm-pro-section-lead,
.tm-marketing .tm-module-more p {
  max-width: 54ch;
}
/* a lead that is centred must keep its centre when it stops being full-width */
.tm-marketing .tm-pro-section-lead,
.tm-marketing .text-center p {
  margin-inline: auto;
}
/* the three containers the long lines actually came from. They had 56ch for a while;
   measured, that rendered 76 Latin characters, so they share the one number now. */
.tm-marketing .tm-home-list li,
.tm-marketing .tm-pillar-card-wide p,
.tm-marketing .tm-pro-cta p {
  max-width: 54ch;
}

/* 2 — LEADING. Arabic packs ascenders, descenders and diacritics into one band, so
   the 1.5 that suits Latin crowds it. 1.8 is the difference between text you scan
   and text you read. Scoped to RTL so the Latin pages keep their own rhythm. */
html[dir="rtl"] .tm-marketing p,
html[dir="rtl"] .tm-marketing li,
html[dir="rtl"] .tm-marketing dd,
html[dir="rtl"] .tm-marketing .tm-lead,
html[dir="rtl"] .tm-marketing .tm-pro-section-lead,
html[dir="rtl"] .tm-marketing .tm-home-roadmap-phase,
html[dir="rtl"] .tm-marketing .tm-callout > div,
html[dir="rtl"] .tm-marketing div.text-body-secondary {
  line-height: 1.8;
}

/* 3 — TRACKING. Negative letter-spacing pulls Arabic letters apart at the joins —
   it is a connected script, so tightening it damages the word shape rather than
   refining it. Latin headings keep the tighter fit; Arabic gets normal. */
html[dir="rtl"] .tm-marketing h1,
html[dir="rtl"] .tm-marketing h2,
html[dir="rtl"] .tm-marketing h3,
html[dir="rtl"] .tm-marketing .tm-home-hero-prop,
html[dir="rtl"] .tm-marketing .display-5 {
  letter-spacing: normal;
}
/* ...except the wordmark, which is Latin inside an RTL page and keeps its fit */
html[dir="rtl"] .tm-marketing .tm-home-hero-brand { letter-spacing: -.03em; }

/* 4 — WEIGHTS WE ALREADY PAY FOR. Six Cairo weights download; two were used. A
   lead at 500 and a card title at 600 buy real hierarchy for zero extra bytes. */
.tm-marketing .tm-lead,
.tm-marketing .tm-pro-section-lead,
.tm-marketing .tm-home-hero-lead { font-weight: 500; }
.tm-marketing .tm-module-body h3,
.tm-marketing .tm-glossary-item dt,
.tm-marketing .tm-doc-card h3 { font-weight: 600; }

/* 5 — LINE BREAKING. `balance` stops a heading dropping one orphan word onto its
   own line, which is the most common reason a headline looks accidental; `pretty`
   does the same for the last line of a paragraph. Both degrade to normal wrapping
   where unsupported, so there is nothing to lose. */
.tm-marketing h1,
.tm-marketing h2,
.tm-marketing h3,
.tm-marketing .tm-home-hero-prop { text-wrap: balance; }
.tm-marketing p,
.tm-marketing li,
.tm-marketing dd { text-wrap: pretty; }

/* 6 — FIGURES. Statistics that change (counters, KPIs) must not shift width as
   they animate, and columns of numbers should align on the digit. */
.tm-marketing .tm-kpi-v,
.tm-marketing .tm-home-stat-num,
.tm-marketing .tm-home-section-num,
.tm-marketing time,
.tm-marketing .tm-num { font-variant-numeric: tabular-nums; }

/* The block above was written while looking at the home page, whose own stylesheet only
   loads on `/`. Moved here, into the file the LAYOUT links, so every public page gets it.
   These are the containers the Site pages use and the home page does not — measured at
   928px (docs prose), 895px (callouts) and 1,294px (accordion headers). */
.tm-marketing .tm-docs-section p,
.tm-marketing .tm-callout > div,
.tm-marketing .accordion-button,
.tm-marketing .accordion-body,
.tm-marketing .accordion-body li,
.tm-marketing .text-body-secondary {
  max-width: 54ch;
}
/* an accordion header is a flex row: cap the TEXT, not the clickable row */
.tm-marketing .accordion-button { max-width: none; }
.tm-marketing .accordion-button > span,
.tm-marketing .accordion-button { padding-inline-end: 1rem; }

/* Two measures the first pass missed, both found by re-measuring rather than by reading:

   HEADINGS used as sentences. An h3 on the home page ran 142 characters and another 130 —
   a heading that long is a sentence, and it needs a measure like any other sentence. Capped
   a little wider than body copy, because a heading's larger size makes the same character
   count feel shorter. */
.tm-marketing h1,
.tm-marketing h2,
.tm-marketing h3,
.tm-marketing h4,
.tm-marketing .display-5,
.tm-marketing .display-6 {
  max-width: 34ch;
}
/* a centred heading must stay centred once it is narrower than its column */
.tm-marketing .text-center h1,
.tm-marketing .text-center h2,
.tm-marketing .text-center h3 { margin-inline: auto; }
/* the hero mark is a word, not a sentence — never wrap it */
.tm-marketing .tm-home-hero-title,
.tm-marketing .tm-home-hero-brand { max-width: none; }

/* ACCORDION HEADERS. The row must stay full width to stay clickable, so the cap goes on the
   line box instead: end padding shortens the line without shrinking the target. 162 -> ~78. */
.tm-marketing .accordion-button {
  padding-inline-end: clamp(1rem, 34%, 34rem);
}

/* ============================================================================
   6 — THE SIZE SCALE. Measured on the home page: 20 distinct font sizes, seven of
   them crowded between 13px and 15.2px with steps of 1.007 to 1.05. A 1.007 step
   (14.1px next to 14px) cannot be seen as hierarchy and can be seen as carelessness
   — it is the reason the type reads as assembled rather than designed.

   The root cause of the fractions was one declaration: `body.tm-marketing` set
   1.05rem, so the base was 16.8px and every em-derived Bootstrap size compounded
   off it — `.small` at 0.875em landed on 14.7px. Setting the base to exactly 1rem
   makes Bootstrap's own steps land on integers, which removes two off-scale sizes
   by itself. The larger "enterprise" feel the 1.05rem was reaching for is carried
   better by the measure and the leading above than by 0.8px of body text.

   Seven levels, each a visible step from the next: 13 · 14 · 16 · 18 · 24 · 32 · 44.
   ============================================================================ */
.tm-marketing {
  --tm-ms-micro: 0.75rem;    /* 12px — Latin-only micro (the AR/EN badge) */
  --tm-ms-xs:    0.8125rem;  /* 13px — eyebrow, badge, section number, code */
  --tm-ms-sm:    0.875rem;   /* 14px — card copy, captions, nav */
  --tm-ms-base:  1rem;       /* 16px — page body */
  --tm-ms-md:    1.125rem;   /* 18px — lead, card title */
  --tm-ms-lg:    1.5rem;     /* 24px */
  --tm-ms-xl:    2rem;       /* 32px */
  --tm-ms-2xl:   2.75rem;    /* 44px */
}

/* the base, and with it every em-derived size in Bootstrap */
body.tm-marketing { font-size: var(--tm-ms-base); }

/* 13.6 / 14.1 / 14.4 / 15.2 were four sizes doing one job: secondary copy inside a
   card. They become one. Colour already carries the "secondary", not size. */
.tm-marketing .tm-nav-link,
.tm-marketing .tm-icon-btn,
.tm-marketing .tm-lang-btn,
.tm-marketing .tm-mobile-auth-text strong,
.tm-marketing .tm-home-quick-nav a,
.tm-marketing .tm-module-body > p,
.tm-marketing .tm-module-body ul,
.tm-marketing .tm-module-more > summary,
.tm-marketing .tm-module-more > p,
.tm-marketing .tm-pillar-card p,
.tm-marketing .tm-doc-card > p,
.tm-marketing .tm-doc-code,
.tm-marketing .tm-diagram-info p,
.tm-marketing .tm-home-kpi strong,
.tm-marketing .tm-home-kpi span,
.tm-marketing .tm-glossary-item dt,
.tm-marketing .tm-glossary-item dd,
.tm-marketing .tm-pro-module-desc,
.tm-marketing .tm-pro-stat-label,
.tm-marketing .tm-mobile-link {
  font-size: var(--tm-ms-sm);
}

/* 17.6 and 18.4 sat 0.8px apart; both are the "one step above body" role */
.tm-marketing .tm-module-body h3,
.tm-marketing .tm-pillar-card h3,
.tm-marketing .tm-doc-card h3,
.tm-marketing .tm-diagram-info h4,
.tm-marketing .tm-home-hero-lead,
.tm-marketing .tm-brand-name,
.tm-marketing .tm-pro-section .tm-pro-section-lead,
.tm-marketing .tm-pro-feature-title,
.tm-marketing .tm-pro-module-title,
.tm-marketing .tm-pro-module-hero .lead {
  font-size: var(--tm-ms-md);
}

/* the micro end: 10px, 11px, 11.2px and 12px were four ways of saying "small label".
   10px and 11px are below what Cairo renders legibly — Arabic carries diacritics and
   dense joins in the same band, so it loses more at small sizes than Latin does. */
.tm-marketing .tm-brand-sub,
.tm-marketing .tm-mobile-section-title,
.tm-marketing .tm-mobile-auth-text small,
.tm-marketing .tm-eyebrow,
.tm-marketing .tm-home-section-num,
.tm-marketing .tm-home-workflow-step span,
.tm-marketing .tm-codeblock code,
.tm-marketing .tm-home-hero-tag,
.tm-marketing .tm-pro-hero-tag,
.tm-marketing .tm-pro-badge {
  font-size: var(--tm-ms-xs);
}
/* the language badge is the one label that is always Latin ("AR" / "EN"), so it can
   sit a step below the Arabic floor without losing anything */
.tm-marketing .tm-lang-badge { font-size: var(--tm-ms-micro); }

/* icons sized in em travelled with the old 16.8px base; pin them to the scale so a
   glyph and its label stay in proportion */
.tm-marketing .tm-mobile-link i,
.tm-marketing .tm-mobile-auth-icon,
.tm-marketing .tm-offcanvas .list-group-item i,
.tm-marketing .tm-pro-module-arrow {
  font-size: var(--tm-ms-md);
}

/* 7 — TRACKING ON ARABIC LABELS. Section 3 above set the headings right but missed the
   small uppercase labels, which is where the habit really lives: an eyebrow gets
   `text-transform: uppercase` and positive letter-spacing because that is how a Latin
   label is set. Measured, two of them were spacing Arabic apart — 1.04px on the hero
   descriptor and 1.5px on the mobile menu titles, on all five pages. Arabic joins its
   letters, so tracking pulls the joins open instead of refining the fit; uppercase is
   simply inert. Both are neutralised for RTL only, so the Latin pages keep the effect. */
html[dir="rtl"] .tm-marketing .tm-home-hero-tag,
html[dir="rtl"] .tm-marketing .tm-pro-hero-tag,
html[dir="rtl"] .tm-marketing .tm-eyebrow,
html[dir="rtl"] .tm-marketing .tm-mobile-section-title,
html[dir="rtl"] .tm-marketing .tm-home-section-num,
html[dir="rtl"] .tm-marketing .tm-pro-badge {
  letter-spacing: normal;
}

/* The alternating section ground was #f8fafc against #ffffff — a 3% step, which is to
   say no step at all. Deep enough now to be seen, calm enough to stay a background. */
.tm-marketing .tm-pro-section-alt { background: #f2f6fa; }

/* The primary call to action was a flat rectangle of accent — correct, and the least
   finished thing on a page whose every card now has depth. A button the eye reads as
   raised gets pressed more than one painted on. Three changes, none of them colour:
   a rounder corner that matches the cards, a shadow tinted with its own hue rather
   than grey, and a one-pixel highlight along the top edge so the fill has a light
   source. The hover lifts; the active press puts it back down, because a control that
   rises and never returns does not feel like a button. */
.tm-marketing .tm-pro-btn { border-radius: 12px; }
.tm-marketing .tm-pro-btn-primary {
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset,
              0 2px 6px rgba(var(--mk-accent-rgb),.24),
              0 10px 24px rgba(var(--mk-accent-rgb),.22);
  transition: box-shadow .22s ease, transform .22s ease, background .22s ease;
}
.tm-marketing .tm-pro-btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset,
              0 4px 10px rgba(var(--mk-accent-rgb),.28),
              0 16px 34px rgba(var(--mk-accent-rgb),.28);
  transform: translateY(-2px);
}
.tm-marketing .tm-pro-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(var(--mk-accent-rgb),.3);
}
/* the secondary stops being a ghost outline and becomes a real surface, so the pair
   reads as two buttons of different weight rather than a button and a rectangle */
.tm-marketing .tm-pro-btn-secondary {
  background: var(--mk-bg);
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.tm-marketing .tm-pro-btn-secondary:hover {
  background: var(--mk-bg);
  box-shadow: 0 2px 8px rgba(15,23,42,.09);
  transform: translateY(-2px);
}
/* keyboard users get the same affordance as the mouse */
.tm-marketing .tm-pro-btn:focus-visible {
  outline: 3px solid rgba(var(--mk-accent-rgb),.45);
  outline-offset: 2px;
}

/* ============================================
   Footer — 2026-09-23 redesign: accent rule, social row, CTA card, bottom bar
   ============================================ */
.tm-marketing.tm-pro-page .tm-footer-pro {
  position: relative;
  border-top: 0 !important;
}
.tm-marketing.tm-pro-page .tm-footer-pro::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--mk-accent), #7c3aed, #db2777);
}
.tm-marketing.tm-pro-page .tm-footer-pro .tm-footer-title {
  font-size: .95rem; font-weight: 800; margin-bottom: .9rem;
}
.tm-marketing.tm-pro-page .tm-footer-pro .tm-footer-about { color: var(--mk-text-muted); line-height: 1.8; }
.tm-marketing.tm-pro-page .tm-footer-pro .tm-footer-links li + li { margin-top: .15rem; }
.tm-marketing.tm-pro-page .tm-footer-pro .tm-footer-links a { transition: color .15s ease, padding .15s ease; }
.tm-marketing.tm-pro-page .tm-footer-pro .tm-footer-links a:hover { text-decoration: none; padding-inline-start: .3rem; }

/* social buttons: brand colour visible at rest, filled on hover */
.tm-social-link {
  --tm-social: var(--mk-accent);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  font-size: 1.2rem; text-decoration: none;
  color: var(--tm-social);
  background: var(--mk-bg);
  border: 1px solid var(--mk-border);
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tm-social-link:hover, .tm-social-link:focus-visible {
  color: #fff; background: var(--tm-social); border-color: var(--tm-social);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(15,23,42,.18);
}
.tm-social-link:focus-visible { outline: 3px solid rgba(var(--mk-accent-rgb),.45); outline-offset: 2px; }
.tm-social-facebook  { --tm-social: #1877f2; }
.tm-social-x         { --tm-social: #0f1419; }
.tm-social-instagram { --tm-social: #e1306c; }
.tm-social-linkedin  { --tm-social: #0a66c2; }
.tm-social-youtube   { --tm-social: #ff0000; }
.tm-social-whatsapp  { --tm-social: #1faa53; }
.tm-social-instagram:hover, .tm-social-instagram:focus-visible {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.tm-marketing[data-bs-theme="dark"] .tm-social-x { --tm-social: #e7e9ea; }
.tm-marketing[data-bs-theme="dark"] .tm-social-x:hover { color: #0f1419; }

.tm-marketing.tm-pro-page .tm-footer-cta {
  background: var(--mk-bg); border: 1px solid var(--mk-border);
  border-radius: 16px; padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.tm-marketing.tm-pro-page .tm-footer-mail { color: var(--mk-text-muted); text-decoration: none; font-size: .9rem; }
.tm-marketing.tm-pro-page .tm-footer-mail:hover { color: var(--mk-accent); }

.tm-marketing.tm-pro-page .tm-footer-bottom {
  border-top: 1px solid var(--mk-border);
  color: var(--mk-text-light); font-size: .875rem;
}
.tm-marketing.tm-pro-page .tm-footer-bottom a { color: var(--mk-text-muted); text-decoration: none; }
.tm-marketing.tm-pro-page .tm-footer-bottom a:hover { color: var(--mk-accent); }
