/* =====================================================================
   tb-site.css — TricksBiz parent-company design system
   Shared header/footer on every page + homepage sections.
   Every selector is prefixed .tb- so it coexists with the legacy
   Bootstrap theme (css/style.css) still used by article/tool pages.
   ===================================================================== */

:root {
  --tb-ink: #141B3D;
  --tb-ink-2: #3A4266;
  --tb-muted: #5D6585;
  --tb-line: #E2E5EF;
  --tb-line-2: #D3D8E6;
  --tb-paper: #F5F6FA;
  --tb-white: #FFFFFF;
  --tb-brand: #2F3FC4;
  --tb-brand-hover: #2433A8;
  --tb-brand-deep: #1D2A6B;
  --tb-focus: #2F3FC4;
  --tb-ok: #0B7A5A;
  --tb-err: #B42318;

  --tb-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --tb-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --tb-wrap: 1180px;
  --tb-gutter: clamp(20px, 4vw, 40px);
  --tb-section: clamp(72px, 9vw, 120px);
  --tb-r-sm: 8px;
  --tb-r: 14px;
  --tb-r-lg: 22px;
  --tb-header-h: 68px;
}

/* Product colour coding (used consistently: nav, hero, cards, table) */
.tb-p--chat { --p: #0B7F76; --p-dot: #2EC4B6; --p-tint: #E3F6F4; }
.tb-p--seo  { --p: #8A5D00; --p-dot: #F2B544; --p-tint: #FCF1D9; }
.tb-p--app  { --p: #3D4BB8; --p-dot: #9AA8FF; --p-tint: #ECEEFF; }

/* ---------- Base (homepage owns the whole document) ---------- */
.tb-home { margin: 0; font-family: var(--tb-body); font-size: 17px; line-height: 1.6; color: var(--tb-ink-2); background: var(--tb-white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.tb-home *, .tb-home *::before, .tb-home *::after,
.tb-header *, .tb-footer *, .tb-form * { box-sizing: border-box; }
.tb-home h1, .tb-home h2, .tb-home h3, .tb-home p, .tb-home ul, .tb-home dl, .tb-home dd, .tb-home figure { margin: 0; }
.tb-home ul { padding: 0; list-style: none; }
.tb-home img, .tb-home svg { display: block; max-width: 100%; }
.tb-home a { color: inherit; }
html { scroll-padding-top: calc(var(--tb-header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.tb-wrap { width: 100%; max-width: calc(var(--tb-wrap) + 2 * var(--tb-gutter)); margin: 0 auto; padding: 0 var(--tb-gutter); }
.tb-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tb-ico { display: inline-block; flex: none; vertical-align: middle; }
.tb-muted { color: var(--tb-muted); }

.tb-skip { position: absolute; left: 12px; top: -60px; z-index: 1100; padding: 10px 16px; border-radius: var(--tb-r-sm); background: var(--tb-ink); color: #fff !important; font: 600 15px/1 var(--tb-body); text-decoration: none; }
.tb-skip:focus { top: 12px; }

.tb-header a:focus-visible, .tb-header button:focus-visible,
.tb-home a:focus-visible, .tb-home button:focus-visible,
.tb-footer a:focus-visible, .tb-form :focus-visible {
  outline: 3px solid var(--tb-focus); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Buttons ---------- */
.tb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--tb-body); letter-spacing: .005em; text-decoration: none !important;
  cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tb-btn--sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.tb-btn--lg { min-height: 52px; padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.tb-btn--primary { background: var(--tb-brand); color: #fff !important; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -8px rgba(47,63,196,.7); }
.tb-btn--primary:hover { background: var(--tb-brand-hover); }
.tb-btn--ghost { background: var(--tb-white); color: var(--tb-ink) !important; border-color: var(--tb-line-2); }
.tb-btn--ghost:hover { border-color: var(--tb-ink); }
.tb-btn--product { background: var(--p); color: #fff !important; align-self: flex-start; }
.tb-btn--product:hover { filter: brightness(.92); }
.tb-btn--light { background: #fff; color: var(--tb-brand-deep) !important; }
.tb-btn--light:hover { background: #E8EAFF; }
.tb-btn--outline-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.45); }
.tb-btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.tb-btn:active { transform: translateY(1px); }
.tb-btn[disabled], .tb-btn[aria-busy="true"] { opacity: .65; cursor: progress; }

.tb-link { color: var(--tb-brand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tb-link:hover { text-decoration-thickness: 2px; }

/* ---------- Brand ---------- */
.tb-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--tb-ink) !important; }
.tb-brand__word { font: 700 21px/1 var(--tb-display); letter-spacing: -.02em; }
.tb-brand--light { color: #fff !important; }
.tb-mark { flex: none; }

/* ---------- Header ---------- */
.tb-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
  font-family: var(--tb-body); color: var(--tb-ink);
}
.tb-header.is-scrolled { border-bottom-color: var(--tb-line); box-shadow: 0 6px 24px -18px rgba(20,27,61,.35); }
.tb-header__bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--tb-header-h); gap: 24px; }
.tb-header ul { list-style: none; margin: 0; padding: 0; }

.tb-nav { display: flex; align-items: center; flex: 1; justify-content: space-between; gap: 24px; }
.tb-nav__list { display: flex; align-items: center; gap: 4px; margin-left: 28px !important; }
.tb-nav__actions { display: flex; align-items: center; gap: 8px; }
.tb-nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px; border: 0; background: none;
  font: 500 15px/1.2 var(--tb-body); color: var(--tb-ink-2) !important; text-decoration: none !important; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.tb-nav__link:hover, .tb-nav__link[aria-expanded="true"] { background: var(--tb-paper); color: var(--tb-ink) !important; }
.tb-nav__link[aria-current="page"] { color: var(--tb-ink) !important; font-weight: 600; }
.tb-dd__btn .tb-ico { transition: transform .2s ease; }
.tb-dd__btn[aria-expanded="true"] .tb-ico { transform: rotate(180deg); }

.tb-dd { position: relative; }
.tb-dd__panel {
  position: absolute; top: calc(100% + 10px); left: -8px; min-width: 320px; padding: 8px;
  background: #fff; border: 1px solid var(--tb-line); border-radius: var(--tb-r);
  box-shadow: 0 24px 48px -24px rgba(20,27,61,.35), 0 2px 6px rgba(20,27,61,.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.tb-dd--right .tb-dd__panel { left: auto; right: 0; min-width: 240px; }
.tb-dd.is-open .tb-dd__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.tb-dd__item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none !important; color: var(--tb-ink) !important; }
.tb-dd__item:hover { background: var(--p-tint, var(--tb-paper)); }
.tb-dd__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--p-tint); color: var(--p); flex: none; }
.tb-dd__txt { display: flex; flex-direction: column; gap: 2px; }
.tb-dd__txt strong { font: 600 15px/1.3 var(--tb-body); }
.tb-dd__txt span { font-size: 13.5px; line-height: 1.35; color: var(--tb-muted); }
.tb-dd__note { margin: 4px 12px 6px !important; font-size: 13px; color: var(--tb-muted); }
.tb-dd__item--compact { align-items: center; padding: 9px 12px; font: 500 15px/1.3 var(--tb-body); }
.tb-dd__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--p-dot); flex: none; }

.tb-navtoggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--tb-line); border-radius: 10px; background: #fff; color: var(--tb-ink); cursor: pointer; place-items: center; }
.tb-navtoggle__close { display: none; }
.tb-navtoggle[aria-expanded="true"] .tb-navtoggle__open { display: none; }
.tb-navtoggle[aria-expanded="true"] .tb-navtoggle__close { display: inline; }

@media (max-width: 991.98px) {
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .tb-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .tb-navtoggle { display: grid; }
  .tb-nav {
    position: fixed; inset: var(--tb-header-h) 0 0 0; z-index: 1029;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 16px;
    padding: 16px var(--tb-gutter) 32px; background: #fff; overflow-y: auto;
    border-top: 1px solid var(--tb-line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .tb-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .tb-nav__list { flex-direction: column; align-items: stretch; margin-left: 0 !important; gap: 2px; }
  .tb-nav__link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 17px; }
  .tb-nav__actions { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 16px; border-top: 1px solid var(--tb-line); }
  .tb-nav__actions .tb-btn { width: 100%; min-height: 48px; font-size: 16px; }
  .tb-dd__panel, .tb-dd--right .tb-dd__panel {
    position: static; min-width: 0; margin: 2px 0 8px; box-shadow: none; border-color: var(--tb-line);
    display: none; opacity: 1; visibility: visible; transform: none;
  }
  .tb-dd.is-open .tb-dd__panel { display: block; }
  body.tb-nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.tb-section { padding: var(--tb-section) 0; }
.tb-section--tint { background: var(--tb-paper); }
.tb-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.tb-head h2, .tb-split__h h2, h2.tb-split__h, .tb-contact h2 {
  font: 700 clamp(1.9rem, 3.4vw, 2.7rem)/1.08 var(--tb-display); letter-spacing: -.025em; color: var(--tb-ink);
}
h2.tb-split__h { margin: 0; }
.tb-head p { margin-top: 14px !important; font-size: 18.5px; color: var(--tb-muted); max-width: 60ch; }
.tb-home h3 { font: 600 19px/1.3 var(--tb-display); letter-spacing: -.01em; color: var(--tb-ink); }

/* ---------- Hero ---------- */
.tb-hero {
  position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
  background:
    radial-gradient(520px 360px at 86% 8%, rgba(242,181,68,.16), transparent 70%),
    radial-gradient(560px 420px at 62% 92%, rgba(46,196,182,.14), transparent 70%),
    radial-gradient(640px 480px at 8% 0%, rgba(154,168,255,.22), transparent 70%),
    var(--tb-white);
  border-bottom: 1px solid var(--tb-line);
}
.tb-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(29,42,107,.13) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%); mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
}
.tb-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.tb-hero__title {
  font: 700 clamp(2.6rem, 5.6vw, 4.4rem)/1.0 var(--tb-display); letter-spacing: -.035em; color: var(--tb-ink);
  max-width: 13ch; text-wrap: balance;
}
.tb-hero__lead { margin-top: 24px !important; font-size: clamp(18px, 1.6vw, 20.5px); line-height: 1.55; color: var(--tb-ink-2); max-width: 54ch; }
.tb-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Ecosystem diagram — the one bold element */
.tb-eco { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1 / 1; margin: 0 auto !important; }
.tb-eco__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tb-eco__path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; }
.tb-eco__path--chat { stroke: #2EC4B6; }
.tb-eco__path--seo  { stroke: #E0A12F; }
.tb-eco__path--app  { stroke: #7F8EF5; }
.tb-eco__hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 22px 14px;
  background: #fff; border: 1px solid var(--tb-line); border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(29,42,107,.45), 0 0 0 8px rgba(255,255,255,.6);
  font: 700 16px/1 var(--tb-display); letter-spacing: -.01em; color: var(--tb-ink);
}
.tb-eco__node {
  position: absolute; transform: translate(-50%, -50%); width: 48%; max-width: 232px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center;
  padding: 14px 16px; background: #fff; border: 1px solid var(--tb-line); border-left: 4px solid var(--p-dot); border-radius: 14px;
  text-decoration: none !important; color: var(--tb-ink) !important;
  box-shadow: 0 18px 36px -24px rgba(20,27,61,.4);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tb-eco__node:hover { border-color: var(--p-dot); box-shadow: 0 22px 40px -22px rgba(20,27,61,.45); transform: translate(-50%, calc(-50% - 2px)); }
.tb-eco__node--chat { left: 23%; top: 23%; }
.tb-eco__node--seo  { left: 77%; top: 23%; }
.tb-eco__node--app  { left: 50%; top: 79.5%; }
.tb-eco__ico { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--p-tint); color: var(--p); }
.tb-eco__name { font: 700 16px/1.15 var(--tb-display); }
.tb-eco__host { font-size: 12.5px; line-height: 1.2; color: var(--tb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .tb-eco__path { stroke-dashoffset: 0; animation: tb-flow 1.6s linear infinite; animation-play-state: paused; }
  .tb-eco.is-live .tb-eco__path { animation-play-state: running; }
  .tb-eco__hub, .tb-eco__node { animation: tb-pop .55s cubic-bezier(.2,.8,.2,1) both; }
  .tb-eco__node { animation-delay: calc(.25s + var(--d) * .12s); }
  @keyframes tb-flow { to { stroke-dashoffset: -20; } }
  @keyframes tb-pop { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
}

/* ---------- Products ---------- */
.tb-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tb-product__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.tb-product__alt { font-size: 15px; font-weight: 600; color: var(--p) !important; text-decoration: underline; text-underline-offset: 3px; }
.tb-product__alt:hover { text-decoration-thickness: 2px; }
.tb-product {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 36px);
  background: #fff; border: 1px solid var(--tb-line); border-radius: var(--tb-r-lg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tb-product::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--p-dot); }
.tb-product:hover { border-color: var(--tb-line-2); box-shadow: 0 28px 56px -36px rgba(20,27,61,.45); }
.tb-product__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tb-product__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--p-tint); color: var(--p); }
.tb-product__host { font-size: 13.5px; font-weight: 500; color: var(--p); background: var(--p-tint); padding: 5px 10px; border-radius: 999px; }
.tb-product__name { font: 700 clamp(1.45rem, 2.2vw, 1.75rem)/1.15 var(--tb-display) !important; letter-spacing: -.02em; }
.tb-product__desc { color: var(--tb-ink-2); max-width: 52ch; }
.tb-checks { display: grid; align-content: start; gap: 10px; margin: 4px 0 8px !important; padding-top: 18px !important; border-top: 1px dashed var(--tb-line-2); flex: 1; }
.tb-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.tb-checks .tb-ico { color: var(--p); margin-top: 2px; }
.tb-product--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; background: linear-gradient(100deg, var(--p-tint), #fff 60%); }
.tb-product--wide .tb-btn--product { align-self: center; }
.tb-product__main { display: flex; flex-direction: column; gap: 14px; }
.tb-product--wide .tb-product__top { justify-content: flex-start; }

/* ---------- Split layout (About, Why) ---------- */
.tb-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.tb-split__h { position: sticky; top: calc(var(--tb-header-h) + 32px); }
.tb-split__h p { margin-top: 12px !important; font-size: 18px; }
.tb-prose p + p { margin-top: 16px; }
.tb-prose { max-width: 64ch; }
.tb-big { font: 500 clamp(1.3rem, 2vw, 1.6rem)/1.35 var(--tb-display); letter-spacing: -.015em; color: var(--tb-ink); }

.tb-reasons { display: grid; gap: 0; }
.tb-reasons > div { padding: 24px 0; border-top: 1px solid var(--tb-line-2); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; }
.tb-reasons > div:last-child { border-bottom: 1px solid var(--tb-line-2); }
.tb-reasons dt { font: 600 19px/1.3 var(--tb-display); color: var(--tb-ink); }
.tb-reasons dd { color: var(--tb-ink-2); }

/* ---------- Technology ---------- */
.tb-tech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--tb-line); border-left: 1px solid var(--tb-line); }
.tb-tech__item { padding: 32px 28px; border-right: 1px solid var(--tb-line); border-bottom: 1px solid var(--tb-line); }
.tb-tech__item h3 { margin-top: 18px !important; }
.tb-tech__item p { margin-top: 8px; font-size: 16px; color: var(--tb-muted); }
.tb-tech__ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #EEF0FF; color: var(--tb-brand); }

/* ---------- Ecosystem task map ---------- */
.tb-map { border: 1px solid var(--tb-line); border-radius: var(--tb-r-lg); overflow: hidden; background: #fff; }
.tb-map__row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px 28px; border-top: 1px solid var(--tb-line); }
.tb-map__row--head { border-top: 0; background: var(--tb-paper); font-size: 14px; font-weight: 600; color: var(--tb-muted); padding-top: 14px; padding-bottom: 14px; }
.tb-map__task { font-size: 17px; color: var(--tb-ink); }
.tb-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--p-tint); color: var(--p) !important; font-weight: 600; font-size: 15px; text-decoration: none !important; transition: box-shadow .15s ease; }
.tb-chip:hover { box-shadow: 0 0 0 2px var(--p-dot); }

/* ---------- Who we help ---------- */
.tb-who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.tb-who__item { padding-top: 24px; border-top: 2px solid var(--tb-ink); }
.tb-who__item .tb-ico { color: var(--tb-brand); }
.tb-who__item h3 { margin-top: 16px !important; }
.tb-who__item p { margin-top: 8px; font-size: 16px; color: var(--tb-muted); }

/* ---------- Vision & mission ---------- */
.tb-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--tb-r-lg); overflow: hidden; border: 1px solid var(--tb-line); }
.tb-vm__item { padding: clamp(28px, 4vw, 48px); }
.tb-vm__item + .tb-vm__item { border-left: 1px solid var(--tb-line); background: var(--tb-paper); }
.tb-vm__item h3 { display: flex; align-items: center; gap: 10px; color: var(--tb-brand) !important; font-size: 17px !important; }
.tb-vm__item p { margin-top: 16px; font: 500 clamp(1.2rem, 1.8vw, 1.45rem)/1.4 var(--tb-display); letter-spacing: -.01em; color: var(--tb-ink); }

/* ---------- Contact ---------- */
.tb-contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.tb-contact__intro p { margin-top: 16px; }
.tb-contact__mail { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--tb-ink); }
.tb-contact__mail a { color: var(--tb-brand); text-decoration: none; }
.tb-contact__mail a:hover { text-decoration: underline; }
.tb-contact__form { background: #fff; border: 1px solid var(--tb-line); border-radius: var(--tb-r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -44px rgba(20,27,61,.5); }

/* ---------- Form (also used on /contact) ---------- */
.tb-form { font-family: var(--tb-body); color: var(--tb-ink-2); }
.tb-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tb-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.tb-field label { font-size: 14.5px; font-weight: 600; color: var(--tb-ink); margin: 0; }
.tb-opt { font-weight: 400; color: var(--tb-muted); }
.tb-field input, .tb-field select, .tb-field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--tb-line-2); border-radius: 10px; background: #fff;
  font: 400 16px/1.4 var(--tb-body); color: var(--tb-ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.tb-field textarea { resize: vertical; min-height: 130px; }
.tb-field input:focus, .tb-field select:focus, .tb-field textarea:focus { outline: none; border-color: var(--tb-brand); box-shadow: 0 0 0 3px rgba(47,63,196,.18); }
.tb-field [aria-invalid="true"] { border-color: var(--tb-err); }
.tb-field__err { margin: 0 !important; font-size: 14px; color: var(--tb-err); }
.tb-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.tb-form__note { margin: 0 !important; font-size: 13.5px; color: var(--tb-muted); flex: 1; min-width: 200px; }
.tb-form__note a { color: var(--tb-brand); }
.tb-form__status:empty { display: none; }
.tb-form__status { margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.tb-form__status[data-state="ok"] { background: #E6F5EF; color: var(--tb-ok); }
.tb-form__status[data-state="error"] { background: #FDECEA; color: var(--tb-err); }
.tb-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Final CTA ---------- */
.tb-cta { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 104px) 0; color: #fff;
  background:
    radial-gradient(600px 300px at 90% 120%, rgba(46,196,182,.35), transparent 70%),
    radial-gradient(500px 300px at 0% -20%, rgba(154,168,255,.35), transparent 70%),
    var(--tb-brand-deep);
}
.tb-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.tb-cta h2 { font: 700 clamp(1.7rem, 3vw, 2.4rem)/1.12 var(--tb-display); letter-spacing: -.025em; color: #fff; max-width: 24ch; text-wrap: balance; }
.tb-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.tb-footer { background: #10163A; color: #C3C8DD; font: 400 15px/1.6 var(--tb-body); padding-top: 64px; }
.tb-footer ul { list-style: none; margin: 0; padding: 0; }
.tb-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.tb-footer__brand p { margin: 16px 0 !important; max-width: 34ch; color: #C3C8DD; }
.tb-footer__mail { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; text-decoration: none !important; font-weight: 600; }
.tb-footer__mail:hover { text-decoration: underline !important; }
.tb-footer__h { margin: 0 0 14px !important; font: 600 15px/1.3 var(--tb-display) !important; color: #fff !important; letter-spacing: 0; text-transform: none; }
.tb-footer__col li + li { margin-top: 8px; }
.tb-footer a:not(.tb-brand):not(.tb-footer__mail) { color: #C3C8DD !important; text-decoration: none !important; }
.tb-footer a:not(.tb-brand):not(.tb-footer__mail):hover { color: #fff !important; text-decoration: underline !important; }
.tb-footer__base { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 28px; font-size: 14px; }
.tb-footer__base::before { content: ""; position: absolute; top: 0; left: var(--tb-gutter); right: var(--tb-gutter); height: 1px; background: rgba(255,255,255,.12); }
.tb-footer__base p { margin: 0 !important; color: #9EA5C4; }
.tb-footer__social { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Legacy inner pages (static company pages) ---------- */
.tb-page { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); font-family: var(--tb-body); }
.tb-page__inner { max-width: 820px; margin: 0 auto; }
.tb-page__crumbs { font-size: 14px; color: var(--tb-muted); margin-bottom: 18px; }
.tb-page__crumbs a { color: var(--tb-muted); }
.tb-page__title { font: 700 clamp(2rem, 4vw, 2.8rem)/1.1 var(--tb-display) !important; letter-spacing: -.025em; color: var(--tb-ink) !important; margin: 0 0 24px !important; }
.tb-page__body { font-size: 17px; line-height: 1.7; color: var(--tb-ink-2); }
.tb-page__body h2 { font: 700 1.5rem/1.25 var(--tb-display); color: var(--tb-ink); margin: 1.8em 0 .6em; letter-spacing: -.015em; }
.tb-page__body h3 { font: 600 1.2rem/1.3 var(--tb-display); color: var(--tb-ink); margin: 1.5em 0 .5em; }
.tb-page__body a { color: var(--tb-brand); }
.tb-page__form { margin-top: 40px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--tb-line); border-radius: var(--tb-r-lg); background: #fff; }
.tb-page__form h2 { margin-top: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tb-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
  .tb-hero__grid { grid-template-columns: 1fr; }
  .tb-hero__title { max-width: 16ch; }
  .tb-eco { max-width: 420px; }
  .tb-tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-products { grid-template-columns: 1fr; }
  .tb-split, .tb-contact { grid-template-columns: 1fr; }
  .tb-split__h { position: static; }
}
@media (max-width: 767.98px) {
  .tb-home { font-size: 16px; }
  .tb-products { grid-template-columns: 1fr; }
  .tb-product--wide { flex-direction: column; align-items: stretch; }
  .tb-product--wide .tb-btn--product { align-self: flex-start; }
  .tb-reasons > div { grid-template-columns: 1fr; gap: 8px; }
  .tb-vm { grid-template-columns: 1fr; }
  .tb-vm__item + .tb-vm__item { border-left: 0; border-top: 1px solid var(--tb-line); }
  .tb-map__row { grid-template-columns: 1fr; gap: 10px; padding: 16px 20px; }
  .tb-map__row--head { display: none; }
  .tb-form__row { grid-template-columns: 1fr; gap: 0; }
  .tb-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575.98px) {
  .tb-tech { grid-template-columns: 1fr; }
  .tb-who { grid-template-columns: 1fr; gap: 28px; }
  .tb-footer__grid { grid-template-columns: 1fr 1fr; }
  .tb-hero__ctas .tb-btn { flex: 1 1 100%; }
  .tb-eco__node--app { top: 82%; }
  .tb-eco__node { width: 48%; padding: 10px 10px; column-gap: 8px; border-left-width: 3px; }
  .tb-eco__node--chat { left: 25%; }
  .tb-eco__node--seo { left: 75%; }
  .tb-eco__ico { width: 32px; height: 32px; }
  .tb-eco__name { font-size: 14.5px; }
  .tb-eco__host { font-size: 11px; }
  .tb-eco__hub { padding: 12px 14px 10px; font-size: 14px; }
}
@media print {
  .tb-header, .tb-footer, .tb-cta, .tb-eco { display: none !important; }
}

/* Company pages rendered by inner-common.php sit on the legacy stylesheet */
body.tb-inner { background: #fff; color: var(--tb-ink-2); font-family: var(--tb-body); }
body.tb-inner .tb-page__body ul, body.tb-inner .tb-page__body ol { padding-left: 1.3em; }
body.tb-inner .tb-page__body li + li { margin-top: .4em; }
