/* Homepage finishing layer. Loaded after shared public styles. */

/* One readable ink palette for the complete light homepage. */
.tn-home {
  --tn-ink: #0b1220;
  --tn-text: #263449;
  --tn-soft: #526177;
  color: var(--tn-text);
}

.tn-home .tn-main,
.tn-home .tn-main p,
.tn-home .tn-main li,
.tn-home .tn-main small,
.tn-home .tn-footer,
.tn-home .tn-footer a {
  color: var(--tn-text);
}

.tn-home .tn-main h1,
.tn-home .tn-main h2,
.tn-home .tn-main h3,
.tn-home .tn-main h4,
.tn-home .tn-main b,
.tn-home .tn-main strong,
.tn-home .tn-menu a,
.tn-home .tn-lang,
.tn-home .tn-signin,
.tn-home .tn-mnav a {
  color: var(--tn-ink);
}

.tn-home .tn-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 168px;
}

.tn-home .tn-logo img {
  display: block;
  width: 100%;
  max-width: 168px;
  height: auto;
  object-fit: contain;
}

/* Rotating audience name: polished sentence case with a restrained accent. */
.tn-home .tn-hero-business {
  display: inline-block;
  font-style: italic;
  text-transform: capitalize;
}

/* Keep every centered section introduction visually aligned as one block. */
.tn-home :is(
  .tn-intro,
  .tn-section-head,
  .tn-sec-head,
  .tn-ind-head,
  .tn-pricing-head,
  .tn-faq-head,
  .tn-closing-head
) {
  width: min(100%, 780px);
  margin-inline: auto;
  text-align: center;
}

.tn-home :is(
  .tn-intro,
  .tn-section-head,
  .tn-sec-head,
  .tn-ind-head,
  .tn-pricing-head,
  .tn-faq-head,
  .tn-closing-head
) :is(small, .tn-kicker, .tn-eyebrow) {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

.tn-home :is(
  .tn-intro,
  .tn-section-head,
  .tn-sec-head,
  .tn-ind-head,
  .tn-pricing-head,
  .tn-faq-head,
  .tn-closing-head
) h2 {
  max-width: 720px;
  margin-inline: auto;
  text-wrap: balance;
}

.tn-home :is(
  .tn-intro,
  .tn-section-head,
  .tn-sec-head,
  .tn-ind-head,
  .tn-pricing-head,
  .tn-faq-head,
  .tn-closing-head
) > p {
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.72;
  text-wrap: pretty;
}

/* The daily-operations heading is one introduction, not two distant columns. */
.tn-home .tn-ops-head {
  display: block;
  width: min(100%, 780px);
  margin-inline: auto;
  text-align: center;
}

.tn-home .tn-ops-head > div {
  width: 100%;
}

.tn-home .tn-ops-head small {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

.tn-home .tn-ops-head h2 {
  max-width: 720px;
  margin-inline: auto;
  text-wrap: balance;
}

.tn-home .tn-ops-head > p {
  max-width: 680px;
  margin: 18px auto 0;
  line-height: 1.72;
  text-align: center;
  text-wrap: pretty;
}

/* Card icons stay simple: no filled tiles, circles or artificial shadows. */
.tn-home :is(
  .tn-mods li,
  .tn-inds li,
  .tn-start li,
  .tn-ops-list article,
  .tn-control-roles article,
  .tn-detail__column
) :is(svg, .tn-icon, .tn-ind-icon),
.tn-home .tn-mods svg,
.tn-home .tn-ind-icon,
.tn-home .tn-detail__column-heading::before {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Previous package visual experiment intentionally disabled.
.tn-home .tn-pricing .pos-package-sections {
  width: 100%;
  max-width: 1180px;
  margin: 38px auto 0;
}

.tn-home .tn-pricing .package-type-tabs {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 34px;
  padding: 5px;
  border: 1px solid var(--tn-line);
  border-radius: 999px;
  background: #f4f7fa;
}

.tn-home .tn-pricing .package-type-tabs button {
  min-width: 160px;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  color: var(--tn-text);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.tn-home .tn-pricing .package-type-tabs button.is-active {
  color: #fff;
  background: var(--tn-brand);
  box-shadow: 0 7px 16px rgba(8, 127, 183, .2);
}

.tn-home .tn-pricing .section,
.tn-home .tn-pricing .package-slider {
  width: 100%;
  max-width: none;
  padding: 0;
}

.tn-home .tn-pricing .package-slider__controls {
  display: none;
}

.tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid) {
  display: grid !important;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 22px;
  overflow: visible !important;
  scroll-snap-type: none !important;
}

.tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid)[data-package-count="1"] {
  max-width: 620px;
  grid-template-columns: minmax(0, 1fr) !important;
}

.tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid)[data-package-count="2"] {
  max-width: 860px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid)[data-package-count="4"] {
  max-width: 920px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.tn-home .tn-pricing .advanced-package-card,
.tn-home .tn-pricing .essential-packages-grid > .advanced-package-card:only-child,
.tn-home .tn-pricing .advanced-packages-grid > .advanced-package-card:only-child {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 30px;
  flex-direction: column;
  border: 1px solid #dfe7ee;
  border-radius: 18px;
  color: var(--tn-ink);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 35, 55, .065);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.tn-home .tn-pricing .advanced-package-card:hover {
  border-color: rgba(8, 127, 183, .42);
  box-shadow: 0 18px 38px rgba(15, 35, 55, .1);
  transform: translateY(-4px);
}

.tn-home .tn-pricing .advanced-package-card header {
  min-height: 132px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e7edf2;
}

.tn-home .tn-pricing .package-card-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--tn-brand);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tn-home .tn-pricing .advanced-package-card header h3 {
  margin: 0 0 9px;
  color: var(--tn-ink);
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.tn-home .tn-pricing .advanced-package-card header p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--tn-text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tn-home .tn-pricing .package-card-price {
  display: grid;
  min-height: 112px;
  margin: 0;
  padding: 24px 0 22px;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: end;
  column-gap: 10px;
  border: 0;
  border-bottom: 1px solid #e7edf2;
}

.tn-home .tn-pricing .package-card-price s {
  grid-column: 1 / -1;
  margin-bottom: 5px;
  color: #7d8998;
  font-size: 14px;
}

.tn-home .tn-pricing .package-card-price strong {
  color: var(--tn-ink);
  font-size: clamp(38px, 4vw, 48px);
  font-weight: 750;
  line-height: .95;
  letter-spacing: -.045em;
}

.tn-home .tn-pricing .package-card-price span {
  display: grid;
  padding-bottom: 2px;
  color: var(--tn-text);
  font-size: 12px;
  line-height: 1.35;
}

.tn-home .tn-pricing .package-card-price span b {
  color: var(--tn-ink);
  font-size: 13px;
  font-weight: 750;
}

.tn-home .tn-pricing :is(.advanced-package-card__offer, .package-conversion-note) {
  margin: 12px 0 0;
  color: var(--tn-text);
  font-size: 12px;
  line-height: 1.5;
}

.tn-home .tn-pricing .advanced-package-card__features {
  min-width: 0;
  margin: 0;
  padding: 24px 0 28px;
  border: 0;
}

.tn-home .tn-pricing .package-feature-title {
  display: block;
  margin: 0 0 12px;
  color: var(--tn-ink);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tn-home .tn-pricing .advanced-package-card__market {
  margin: 0 0 9px;
  color: var(--tn-text);
  font-size: 13px;
  line-height: 1.5;
}

.tn-home .tn-pricing .advanced-package-card__features ul {
  display: grid;
  margin: 0 0 22px;
  padding: 0;
  grid-template-columns: 1fr;
  gap: 10px;
  list-style: none;
}

.tn-home .tn-pricing .essential-package-card .advanced-package-card__features ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tn-home .tn-pricing .advanced-package-card__features ul:last-child {
  margin-bottom: 0;
}

.tn-home .tn-pricing .advanced-package-card__features li {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
  color: var(--tn-ink);
  font-size: 14px;
  line-height: 1.45;
}

.tn-home .tn-pricing .advanced-package-card__features li i {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tn-brand);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.tn-home .tn-pricing .package-buy-button {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  margin-top: auto;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

html.is-dark .tn-home .tn-pricing .package-type-tabs,
html[data-theme="dark"] .tn-home .tn-pricing .package-type-tabs {
  border-color: var(--tn-line2);
  background: #0d1726;
}

html.is-dark .tn-home .tn-pricing .advanced-package-card header,
html.is-dark .tn-home .tn-pricing .package-card-price,
html[data-theme="dark"] .tn-home .tn-pricing .advanced-package-card header,
html[data-theme="dark"] .tn-home .tn-pricing .package-card-price {
  border-color: var(--tn-line2);
}

html.is-dark .tn-home .tn-pricing .advanced-package-card header h3,
html.is-dark .tn-home .tn-pricing .package-card-price strong,
html.is-dark .tn-home .tn-pricing .package-card-price span b,
html.is-dark .tn-home .tn-pricing .package-feature-title,
html.is-dark .tn-home .tn-pricing .advanced-package-card__features li,
html[data-theme="dark"] .tn-home .tn-pricing .advanced-package-card header h3,
html[data-theme="dark"] .tn-home .tn-pricing .package-card-price strong,
html[data-theme="dark"] .tn-home .tn-pricing .package-card-price span b,
html[data-theme="dark"] .tn-home .tn-pricing .package-feature-title,
html[data-theme="dark"] .tn-home .tn-pricing .advanced-package-card__features li {
  color: var(--tn-ink) !important;
}

@media (max-width: 1000px) {
  .tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid),
  .tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid)[data-package-count="4"] {
    max-width: 860px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .tn-home .tn-pricing .pos-package-sections { margin-top: 28px; }

  .tn-home .tn-pricing .package-type-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tn-home .tn-pricing .package-type-tabs button {
    min-width: 0;
    padding-inline: 12px;
  }

  .tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid),
  .tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid)[data-package-count] {
    max-width: 520px;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  .tn-home .tn-pricing .advanced-package-card {
    padding: 24px;
  }

  .tn-home .tn-pricing .advanced-package-card header {
    min-height: 0;
  }

  .tn-home .tn-pricing .essential-package-card .advanced-package-card__features ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

*/

/* Package cards keep their original design; only the column layout is adjusted. */
.tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid) {
  display: grid !important;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 22px;
  overflow: visible !important;
  scroll-snap-type: none !important;
}

.tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid)[data-package-count="1"] {
  grid-template-columns: minmax(0, 1fr) !important;
}

.tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid)[data-package-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid)[data-package-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.tn-home .tn-pricing .package-slider.is-slider :is(.advanced-package-card, .essential-package-card) {
  width: auto;
  min-width: 0;
  max-width: none;
}

@media (max-width: 1050px) {
  .tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid),
  .tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid)[data-package-count] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid)[data-package-count="1"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid),
  .tn-home .tn-pricing :is(.essential-packages-grid, .advanced-packages-grid)[data-package-count] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 720px) {
  .tn-home :is(
    .tn-intro,
    .tn-section-head,
    .tn-sec-head,
    .tn-ind-head,
    .tn-pricing-head,
    .tn-faq-head,
    .tn-closing-head
  ) {
    width: 100%;
    padding-inline: 4px;
  }

  .tn-home :is(
    .tn-intro,
    .tn-section-head,
    .tn-sec-head,
    .tn-ind-head,
    .tn-pricing-head,
    .tn-faq-head,
    .tn-closing-head
  ) > p {
    line-height: 1.65;
  }

  .tn-home .tn-ops-head {
    width: 100%;
    padding-inline: 4px;
  }

  .tn-home .tn-ops-head > p {
    line-height: 1.65;
  }
}

/* Decorative language: rings only. */
.tn-home #platform,
.tn-home .tn-ops-sec,
.tn-home .tn-bi-sec,
.tn-home #compliance,
.tn-home .tn-ind-sec,
.tn-home .tn-pricing,
.tn-home #faq {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.tn-home #platform > .tn-wrap,
.tn-home .tn-ops-sec > .tn-wrap,
.tn-home .tn-bi-sec > .tn-wrap,
.tn-home #compliance > .tn-wrap,
.tn-home .tn-ind-sec > .tn-wrap,
.tn-home .tn-pricing > .tn-wrap,
.tn-home #faq > .tn-wrap {
  position: relative;
  z-index: 2;
}

.tn-home #platform::before,
.tn-home #platform::after,
.tn-home .tn-ops-sec::before,
.tn-home .tn-ops-sec::after,
.tn-home .tn-bi-sec::after,
.tn-home #compliance::before,
.tn-home .tn-ind-sec::before,
.tn-home .tn-ind-sec::after,
.tn-home .tn-pricing::before,
.tn-home #faq::after {
  position: absolute;
  display: block;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(8, 127, 183, .15);
  border-radius: 50%;
  background: none;
  background-image: none;
  box-shadow: 0 0 0 22px rgba(8, 127, 183, .026), 0 0 0 44px rgba(8, 127, 183, .014);
  content: "";
  opacity: 1;
  transform: none;
  animation: tn-theme-ring 8s ease-in-out infinite;
  pointer-events: none;
}

.tn-home #platform::before { top: 46px; right: -80px; width: 220px; height: 220px; animation-delay: -3s; }
.tn-home #platform::after { top: 82px; left: 4%; }
.tn-home .tn-ops-sec::before { right: 5%; bottom: 54px; width: 82px; height: 82px; animation-delay: -2s; }
.tn-home .tn-ops-sec::after { top: 68px; left: -46px; width: 146px; height: 146px; animation-delay: -4s; }
.tn-home .tn-bi-sec::after { top: 50%; right: -150px; width: 340px; height: 340px; animation-delay: -5s; }
.tn-home #compliance::before { top: 64px; left: 6%; width: 76px; height: 76px; animation-delay: -3s; }
.tn-home .tn-ind-sec::before { bottom: 46px; left: -110px; width: 250px; height: 250px; animation-delay: -1s; }
.tn-home .tn-ind-sec::after { top: 76px; right: 7%; width: 90px; height: 90px; animation-delay: -5s; }
.tn-home .tn-pricing::before { top: 56px; right: -32px; width: 132px; height: 132px; animation-delay: -1s; }
.tn-home #faq::after { bottom: 62px; left: 5%; width: 84px; height: 84px; animation-delay: -6s; }

@keyframes tn-theme-ring {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -9px, 0) scale(1.025); }
}

/* Authoritative dark palette. */
html.is-dark body.tn-home,
html[data-theme="dark"] body.tn-home {
  color-scheme: dark;
  --tn-ink: #f1f5f9;
  --tn-text: #b5c1d1;
  --tn-soft: #91a1b6;
  --tn-line: #27384d;
  --tn-line2: #35485f;
  --tn-bg: #090f19;
  --tn-mist: #0e1726;
  --tn-surface: #111c2c;
  --tn-tint: #13283b;
  --tn-border-clean: #2a3b51;
  color: var(--tn-text);
  background: var(--tn-bg) !important;
}

html.is-dark .tn-home .tn-main,
html[data-theme="dark"] .tn-home .tn-main { color: var(--tn-text); background: var(--tn-bg); }

html.is-dark .tn-home .tn-sec,
html.is-dark .tn-home #platform,
html.is-dark .tn-home .tn-ind-sec,
html.is-dark .tn-home #faq,
html.is-dark .tn-home .tn-closing,
html[data-theme="dark"] .tn-home .tn-sec,
html[data-theme="dark"] .tn-home #platform,
html[data-theme="dark"] .tn-home .tn-ind-sec,
html[data-theme="dark"] .tn-home #faq,
html[data-theme="dark"] .tn-home .tn-closing { background: var(--tn-bg) !important; }

html.is-dark .tn-home .tn-ops-sec,
html.is-dark .tn-home .tn-bi-sec,
html.is-dark .tn-home #compliance,
html.is-dark .tn-home .tn-detail,
html.is-dark .tn-home .tn-pricing,
html[data-theme="dark"] .tn-home .tn-ops-sec,
html[data-theme="dark"] .tn-home .tn-bi-sec,
html[data-theme="dark"] .tn-home #compliance,
html[data-theme="dark"] .tn-home .tn-detail,
html[data-theme="dark"] .tn-home .tn-pricing {
  border-color: var(--tn-line) !important;
  background: var(--tn-mist) !important;
}

html.is-dark .tn-home .tn-main h1,
html.is-dark .tn-home .tn-main h2,
html.is-dark .tn-home .tn-main h3,
html.is-dark .tn-home .tn-main h4,
html.is-dark .tn-home .tn-main b,
html.is-dark .tn-home .tn-main strong,
html[data-theme="dark"] .tn-home .tn-main h1,
html[data-theme="dark"] .tn-home .tn-main h2,
html[data-theme="dark"] .tn-home .tn-main h3,
html[data-theme="dark"] .tn-home .tn-main h4,
html[data-theme="dark"] .tn-home .tn-main b,
html[data-theme="dark"] .tn-home .tn-main strong { color: var(--tn-ink) !important; }

html.is-dark .tn-home .tn-main p,
html.is-dark .tn-home .tn-main li,
html.is-dark .tn-home .tn-main small,
html[data-theme="dark"] .tn-home .tn-main p,
html[data-theme="dark"] .tn-home .tn-main li,
html[data-theme="dark"] .tn-home .tn-main small { color: var(--tn-text); }

html.is-dark .tn-home .tn-header,
html[data-theme="dark"] .tn-home .tn-header { border-color: var(--tn-line); background: rgba(9, 15, 25, .9); }

html.is-dark .tn-home .tn-nav,
html[data-theme="dark"] .tn-home .tn-nav {
  border-color: var(--tn-line);
  background: rgba(17, 28, 44, .96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

html.is-dark .tn-home .tn-nav .tn-logo,
html.is-dark .tn-home .tn-footer .tn-logo,
html[data-theme="dark"] .tn-home .tn-nav .tn-logo,
html[data-theme="dark"] .tn-home .tn-footer .tn-logo {
  width: 168px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .24);
}

html.is-dark .tn-home .tn-nav .tn-logo img,
html.is-dark .tn-home .tn-footer .tn-logo img,
html[data-theme="dark"] .tn-home .tn-nav .tn-logo img,
html[data-theme="dark"] .tn-home .tn-footer .tn-logo img {
  opacity: 1;
  filter: none;
}

@media (max-width: 720px) {
  .tn-home .tn-logo,
  html.is-dark .tn-home .tn-nav .tn-logo,
  html.is-dark .tn-home .tn-footer .tn-logo,
  html[data-theme="dark"] .tn-home .tn-nav .tn-logo,
  html[data-theme="dark"] .tn-home .tn-footer .tn-logo {
    width: 142px;
  }

  .tn-home .tn-logo img {
    max-width: 142px;
  }
}

html.is-dark .tn-home .tn-mnav,
html[data-theme="dark"] .tn-home .tn-mnav { border-color: var(--tn-line); background: var(--tn-surface); }

html.is-dark .tn-home .tn-menu a,
html.is-dark .tn-home .tn-lang,
html.is-dark .tn-home .tn-signin,
html.is-dark .tn-home .tn-mnav a,
html[data-theme="dark"] .tn-home .tn-menu a,
html[data-theme="dark"] .tn-home .tn-lang,
html[data-theme="dark"] .tn-home .tn-signin,
html[data-theme="dark"] .tn-home .tn-mnav a { color: #d0d9e6; }

html.is-dark .tn-home .tn-theme,
html.is-dark .tn-home .tn-burger,
html[data-theme="dark"] .tn-home .tn-theme,
html[data-theme="dark"] .tn-home .tn-burger {
  border-color: var(--tn-line2);
  color: #e2e8f0;
  background: #152235;
}

html.is-dark .tn-home .tn-hero,
html[data-theme="dark"] .tn-home .tn-hero {
  border-color: var(--tn-line);
  background: radial-gradient(circle at 72% 24%, rgba(8, 127, 183, .13), transparent 28%), linear-gradient(135deg, #090f19 0 58%, #0d1827 58% 100%) !important;
}

html.is-dark .tn-home .tn-hero .tn-lead,
html.is-dark .tn-home .tn-hero .tn-trust li,
html[data-theme="dark"] .tn-home .tn-hero .tn-lead,
html[data-theme="dark"] .tn-home .tn-hero .tn-trust li { color: #afbbcc; }

html.is-dark .tn-home .tn-btn-text,
html[data-theme="dark"] .tn-home .tn-btn-text {
  border-color: var(--tn-line2);
  color: #e2e8f0;
  background: var(--tn-surface);
  box-shadow: none;
}

html.is-dark .tn-home .tn-mods li,
html.is-dark .tn-home .tn-inds li,
html[data-theme="dark"] .tn-home .tn-mods li,
html[data-theme="dark"] .tn-home .tn-inds li { color: var(--tn-text); background: transparent; }

html.is-dark .tn-home .tn-mods svg,
html.is-dark .tn-home .tn-ind-icon,
html.is-dark .tn-home .tn-detail__column-heading::before,
html[data-theme="dark"] .tn-home .tn-mods svg,
html[data-theme="dark"] .tn-home .tn-ind-icon,
html[data-theme="dark"] .tn-home .tn-detail__column-heading::before { color: #65c8ef; background: #152b40; }

html.is-dark .tn-home .tn-ops-list article,
html.is-dark .tn-home .tn-tax-card,
html.is-dark .tn-home .tn-start li,
html.is-dark .tn-home .tn-detail__column,
html.is-dark .tn-home .tn-control-roles article,
html.is-dark .tn-home .tn-faq-list details,
html.is-dark .tn-home .advanced-package-card,
html.is-dark .tn-home .trusted-business-card,
html[data-theme="dark"] .tn-home .tn-ops-list article,
html[data-theme="dark"] .tn-home .tn-tax-card,
html[data-theme="dark"] .tn-home .tn-start li,
html[data-theme="dark"] .tn-home .tn-detail__column,
html[data-theme="dark"] .tn-home .tn-control-roles article,
html[data-theme="dark"] .tn-home .tn-faq-list details,
html[data-theme="dark"] .tn-home .advanced-package-card,
html[data-theme="dark"] .tn-home .trusted-business-card {
  border-color: var(--tn-line) !important;
  color: var(--tn-text);
  background: var(--tn-surface) !important;
  box-shadow: none;
}

html.is-dark .tn-home .tn-paper,
html[data-theme="dark"] .tn-home .tn-paper {
  border-color: var(--tn-line2);
  color: #e7edf5;
  background: var(--tn-surface) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .26);
}

html.is-dark .tn-home .tn-paper .p-head,
html.is-dark .tn-home .tn-paper .p-tbl td,
html.is-dark .tn-home .tn-paper .p-tot,
html[data-theme="dark"] .tn-home .tn-paper .p-head,
html[data-theme="dark"] .tn-home .tn-paper .p-tbl td,
html[data-theme="dark"] .tn-home .tn-paper .p-tot { border-color: var(--tn-line2); }

html.is-dark .tn-home .package-type-tabs,
html.is-dark .tn-home .tn-seg,
html[data-theme="dark"] .tn-home .package-type-tabs,
html[data-theme="dark"] .tn-home .tn-seg { border-color: var(--tn-line2); background: var(--tn-surface); box-shadow: none; }

html.is-dark .tn-home .tn-control-sec,
html.is-dark .tn-home .tn-proof,
html[data-theme="dark"] .tn-home .tn-control-sec,
html[data-theme="dark"] .tn-home .tn-proof { color: #d8e3ef; background: #0d2b40 !important; }

html.is-dark .tn-home .tn-control-grid,
html.is-dark .tn-home .tn-proof__inner,
html.is-dark .tn-home .tn-close,
html[data-theme="dark"] .tn-home .tn-control-grid,
html[data-theme="dark"] .tn-home .tn-proof__inner,
html[data-theme="dark"] .tn-home .tn-close {
  border-color: #2c4258 !important;
  background: #102e46 !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .25);
}

html.is-dark .tn-home .contact-widget__panel,
html.is-dark .tn-home .demo-modal__dialog,
html[data-theme="dark"] .tn-home .contact-widget__panel,
html[data-theme="dark"] .tn-home .demo-modal__dialog {
  border-color: var(--tn-line2);
  color: var(--tn-text);
  background: var(--tn-surface) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
}

html.is-dark .tn-home .contact-widget__panel input,
html.is-dark .tn-home .contact-widget__panel select,
html.is-dark .tn-home .contact-widget__panel textarea,
html.is-dark .tn-home .demo-option,
html[data-theme="dark"] .tn-home .contact-widget__panel input,
html[data-theme="dark"] .tn-home .contact-widget__panel select,
html[data-theme="dark"] .tn-home .contact-widget__panel textarea,
html[data-theme="dark"] .tn-home .demo-option {
  border-color: var(--tn-line2);
  color: #e7edf5;
  background: #0d1726 !important;
}

html.is-dark .tn-home .tn-footer,
html[data-theme="dark"] .tn-home .tn-footer { border-color: var(--tn-line); color: var(--tn-text); background: #070c14 !important; }

html.is-dark .tn-home .tn-footer h4,
html.is-dark .tn-home .tn-footer a,
html[data-theme="dark"] .tn-home .tn-footer h4,
html[data-theme="dark"] .tn-home .tn-footer a { color: #dbe5f1; }

html.is-dark .tn-home .tn-fbase,
html[data-theme="dark"] .tn-home .tn-fbase { border-color: var(--tn-line); }

html.is-dark .tn-home #platform::before,
html.is-dark .tn-home #platform::after,
html.is-dark .tn-home .tn-ops-sec::before,
html.is-dark .tn-home .tn-ops-sec::after,
html.is-dark .tn-home .tn-bi-sec::after,
html.is-dark .tn-home #compliance::before,
html.is-dark .tn-home .tn-ind-sec::before,
html.is-dark .tn-home .tn-ind-sec::after,
html.is-dark .tn-home .tn-pricing::before,
html.is-dark .tn-home #faq::after,
html[data-theme="dark"] .tn-home #platform::before,
html[data-theme="dark"] .tn-home #platform::after,
html[data-theme="dark"] .tn-home .tn-ops-sec::before,
html[data-theme="dark"] .tn-home .tn-ops-sec::after,
html[data-theme="dark"] .tn-home .tn-bi-sec::after,
html[data-theme="dark"] .tn-home #compliance::before,
html[data-theme="dark"] .tn-home .tn-ind-sec::before,
html[data-theme="dark"] .tn-home .tn-ind-sec::after,
html[data-theme="dark"] .tn-home .tn-pricing::before,
html[data-theme="dark"] .tn-home #faq::after {
  border-color: rgba(101, 200, 239, .2);
  box-shadow: 0 0 0 22px rgba(101, 200, 239, .024), 0 0 0 44px rgba(101, 200, 239, .012);
}

@media (max-width: 540px) {
  .tn-home #platform::after,
  .tn-home .tn-ops-sec::before,
  .tn-home .tn-ops-sec::after,
  .tn-home #compliance::before,
  .tn-home .tn-ind-sec::after,
  .tn-home .tn-pricing::before,
  .tn-home #faq::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tn-home #platform::before,
  .tn-home #platform::after,
  .tn-home .tn-ops-sec::before,
  .tn-home .tn-ops-sec::after,
  .tn-home .tn-bi-sec::after,
  .tn-home #compliance::before,
  .tn-home .tn-ind-sec::before,
  .tn-home .tn-ind-sec::after,
  .tn-home .tn-pricing::before,
  .tn-home #faq::after { animation: none; }
}

/* Daily operations cards size to their content. */
.tn-home .tn-sec.tn-ops-sec {
  padding-block-end: clamp(24px, 4vw, 52px);
}

.tn-home .tn-ops-sec .tn-ops-list {
  grid-template-columns: minmax(0, 1fr);
}

.tn-home .tn-ops-sec .tn-ops-list article {
  min-height: 0;
  padding: clamp(20px, 2vw, 28px);
}

.tn-home .tn-ops-sec .tn-ops-list ul {
  gap: 8px;
  margin-block-start: 16px;
  padding-block-start: 0;
}

@media (min-width: 680px) {
  .tn-home .tn-ops-sec .tn-ops-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .tn-home .tn-ops-sec .tn-ops-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tn-home .tn-integrations-grid .tn-tax-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tn-home .tn-integrations-grid .tn-integration-icon {
  width: 28px;
  height: 28px;
  color: var(--tn-blue);
}

.tn-home .tn-integrations-grid .tn-integration-link {
  margin-block-start: auto;
  padding-block-start: 18px;
  color: var(--tn-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tn-home .tn-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 390px));
  justify-content: center;
  align-items: start;
  gap: clamp(16px, 2vw, 24px);
  margin-block-start: clamp(24px, 4vw, 44px);
}

.tn-home .tn-review {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--tn-line);
  border-radius: 16px;
  background: var(--tn-surface);
}

.tn-home .tn-review img,
.tn-home .tn-review video {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 10px;
}

.tn-home .tn-review video {
  aspect-ratio: 16 / 9;
  background: #0b1220;
}

.tn-home .tn-review blockquote {
  margin: 0;
  padding: 6px 8px;
  color: var(--tn-ink);
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

/* Must remain last so shared and dark-theme card rules cannot restore icon tiles. */
.tn-home :is(
  .tn-mods li,
  .tn-inds li,
  .tn-start li,
  .tn-ops-list article,
  .tn-control-roles article,
  .tn-detail__column
) :is(svg, .tn-icon, .tn-ind-icon),
.tn-home .tn-mods svg,
.tn-home .tn-ind-icon,
.tn-home .tn-detail__column-heading::before {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
